/* Emerald Vision — Mohram Ali | typography, surfaces and responsive layout */
:root {
  color-scheme: dark;
  --bg: #06271e;
  --deep: #041f18;
  --surface: #0a3025;
  --surface-raised: #123b2e;
  --cream: #fcf8e9;
  --muted: #d0dacd;
  --secondary: #b8cbbb;
  --gold: #d6c594;
  --lime: #deed96;
  --line: rgba(218, 231, 209, .19);
  --header-height: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; background: var(--bg); color: var(--cream); font: 400 17px/1.75 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { color: var(--deep); background: var(--lime); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
h1 em, h2 em { font-weight: 400; }
h2 { font-size: clamp(2.6rem, 4.3vw, 3.75rem); margin-bottom: 26px; }
.wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 80px; scroll-margin-top: 0; }
.section-label { display: flex; align-items: center; gap: 22px; margin-bottom: 38px; color: var(--gold); font-size: 12px; line-height: 1.5; letter-spacing: .15em; }
.section-label > span:first-child { border-bottom: 1px solid var(--gold); padding-bottom: 5px; letter-spacing: .05em; }
.section-label .right { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--secondary); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 40px; }
.section-heading h2 { margin: 0; }
.section-heading > p { max-width: 390px; margin: 0 0 4px; color: var(--muted); }
.eyebrow { margin-bottom: 28px; color: var(--gold); font-size: 12px; letter-spacing: .16em; line-height: 1.6; }
/* Compact pinned navigation; opaque fallback when backdrop blur is unavailable. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(4, 31, 24, .96); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px #00000012; transition: box-shadow .25s ease; }
@supports (backdrop-filter: blur(20px)) { .site-header { background: rgba(4, 31, 24, .88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); } }
.site-header.is-scrolled { box-shadow: 0 8px 28px #00000038; border-bottom-color: #d6c59445; }
.header { min-height: var(--header-height); padding-block: 13px; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.identity { display: inline-flex; align-items: center; gap: 17px; flex-shrink: 0; }
.monogram { font: 44px/1 Georgia, serif; letter-spacing: -8px; padding-right: 8px; color: var(--cream); }
.identity strong { display: block; font: 25px/1.2 Georgia, serif; }
.identity small { display: block; margin-top: 5px; font-size: 10px; line-height: 1.4; letter-spacing: .14em; color: var(--gold); }
.header nav { display: flex; align-items: center; gap: 27px; font-size: 14px; }
.header nav > a:not(.button) { padding-block: 8px; position: relative; color: var(--muted); transition: color .2s; }
.header nav > a:not(.button)::after { content: ''; height: 1px; position: absolute; bottom: 2px; left: 0; right: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.header nav > a:hover, .header nav > a[aria-current="location"] { color: var(--cream); }
.header nav > a:hover::after, .header nav > a[aria-current="location"]::after { transform: scaleX(1); }
.menu-button { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 50px; font-size: 14px; font-weight: 600; line-height: 1.4; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.outline { border-color: #d5e3c76b; color: var(--cream); background: #ffffff03; }
.outline:hover { border-color: var(--gold); background: #d6c59410; box-shadow: 0 4px 18px #00000018; }
.primary { color: #132c16; background: linear-gradient(110deg, #deed96, #eaf4b6 55%, #d4e88a); box-shadow: 0 3px 20px #c9e38c14, inset 0 1px 0 #ffffff88; }
.primary:hover { background: #ebf6b7; box-shadow: 0 8px 26px #c9e38c26; }
.header .button { min-height: 42px; padding: 10px 20px; font-size: 13px; color: var(--lime); border-color: #deed9675; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
/* Hero — high-contrast editorial copy, soft metallic visual. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 665px; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform-origin: 75% 65%; animation: hero-drift 20s ease-in-out infinite alternate; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #06271e 0%, #06271ef5 23%, #06271ed9 39%, #06271e70 59%, transparent 81%), linear-gradient(0deg, #06271e, transparent 22%); }
.hero-content { padding-top: 88px; padding-bottom: 28px; }
h1 { max-width: 820px; margin-bottom: 28px; font-size: clamp(3rem, 5.4vw, 4.7rem); }
.intro { max-width: 570px; font-size: 18px; line-height: 1.8; color: #eef1e3; }
.hero-note { display: flex; justify-content: space-between; gap: 30px; margin-top: 85px; color: var(--muted); font-size: 12px; letter-spacing: .1em; line-height: 1.5; }
/* Seamless project carousel: no visible controls. */
.project-carousel { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; position: relative; }
.project-carousel::-webkit-scrollbar { display: none; }
.project-track { display: flex; gap: 36px; width: max-content; padding-bottom: 16px; }
.slide { width: 560px; flex-shrink: 0; }
.real-project-image { display: block; width: 100%; aspect-ratio: 1.9; overflow: hidden; border: 0; border-radius: 7px; mask-image: linear-gradient(to bottom, #000 95%, transparent); }
.real-project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.real-project-image:hover img { transform: scale(1.035); }
.card-heading { margin-top: 23px; }
.card-heading h3 { font: 31px/1.25 Georgia, serif; margin-bottom: 8px; }
.project-role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.venture .lead { font-size: 20px; line-height: 1.5; color: var(--cream); margin-bottom: 12px; }
.venture > p:not(.lead):not(.project-role) { color: var(--muted); max-width: 52ch; margin-bottom: 0; }
.text-link { display: inline-block; padding-bottom: 5px; margin-top: 22px; border-bottom: 1px solid var(--gold); color: var(--cream); font-size: 15px; line-height: 1.6; transition: color .2s, border-color .2s; }
.text-link:hover { color: var(--lime); border-bottom-color: var(--lime); }
/* Founder portrait and details. */
.about { background: linear-gradient(120deg, #0b3126, #082b21); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 76px; align-items: center; }
.portrait-frame { position: relative; max-width: 425px; height: 550px; border-radius: 8px; overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.portrait-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 65px 25px 24px; background: linear-gradient(transparent, #041f18 88%); }
.portrait-caption span { font-size: 14px; letter-spacing: .14em; color: var(--cream); }
.portrait-caption small { display: block; font-size: 14px; color: var(--muted); }
.about-copy .section-label { margin-bottom: 23px; }
.about-copy h2 { font-size: clamp(3rem, 4.6vw, 4rem); }
.about-copy > p { color: var(--muted); }
.about-copy .lead { font-size: 22px; line-height: 1.55; color: var(--cream); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .12em; color: var(--gold); margin-bottom: 9px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cream); }
/* Work and expertise. */
.project { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 26px; border-top: 1px solid var(--line); padding: 31px 0; }
.project:last-child { border-bottom: 1px solid var(--line); }
.project-number { font: 29px/1.3 Georgia, serif; color: var(--gold); align-self: start; }
.project .eyebrow { font-size: 12px; letter-spacing: .13em; margin-bottom: 10px; }
.project h3 { font: 30px/1.25 Georgia, serif; margin-bottom: 12px; }
.project p:not(.eyebrow) { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.tags { display: flex; gap: 9px; flex-wrap: wrap; }
.tags span { padding: 5px 12px; border: 1px solid #d0dacd40; border-radius: 20px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.expertise { border-block: 1px solid var(--line); background: linear-gradient(135deg, #082c22, #06271e); }
.expertise-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 58px; }
.expertise-layout h2 { font-size: 46px; }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.skill-no { color: var(--lime); font: 22px/1.3 Georgia, serif; }
.skill-grid h3 { font-size: 20px; line-height: 1.4; margin: 14px 0 12px; }
.skill-grid p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.toolbox { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 40px; }
.toolbox > span { flex-shrink: 0; font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.toolbox p { color: var(--muted); font-size: 15px; margin: 0; }
.toolbox b { margin-inline: 8px; color: var(--gold); font-weight: 400; }
/* Consistent emerald surfaces with readable warm gold labels. */
.recognition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.recognition-card, .recognition-source { min-height: 255px; padding: 28px; background: linear-gradient(135deg, #10372a, #092c22); border: 1px solid #d6c59428; border-top-color: #d6c59475; border-radius: 7px; box-shadow: inset 0 1px 0 #ffffff05; transition: border-color .25s, box-shadow .25s, transform .25s; }
.recognition-card:hover, .recognition-source:hover { border-color: #d6c59475; box-shadow: 0 12px 30px #00000016, inset 0 1px 0 #ffffff08; transform: translateY(-3px); }
.recognition-type { color: var(--gold); font-size: 12px; line-height: 1.6; letter-spacing: .075em; }
.recognition-card h3, .recognition-source h3 { margin: 20px 0 16px; font: 27px/1.3 Georgia, serif; }
.recognition-card p, .recognition-source p { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 13px; }
.recognition-card small { font-size: 14px; color: var(--cream); line-height: 1.65; }
.recognition-source .text-link { margin-top: 5px; }
.journey { background: var(--surface); border-block: 1px solid var(--line); }
.journey-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; }
.journey-grid article { margin-bottom: 26px; padding: 0 0 20px 26px; border-left: 1px solid #d6c59460; }
.journey-grid article:last-child { margin-bottom: 0; padding-bottom: 0; }
.journey-grid article > span { font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.journey-grid h3 { font: 27px/1.3 Georgia, serif; margin: 13px 0; }
.journey-grid p { margin: 0; color: var(--muted); font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.contact-grid h2 { margin: 0; font-size: 57px; }
.contact-grid p { max-width: 450px; color: var(--muted); }
.email { display: inline-block; margin-top: 24px; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.email:hover { color: var(--cream); }
footer { background: var(--deep); border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 34px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--lime); }
.footer-motto { font-size: 11px; line-height: 1.7; letter-spacing: .1em; color: var(--gold); border-left: 1px solid var(--line); padding-left: 25px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 20px; color: var(--secondary); font-size: 13px; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--lime); color: var(--deep); padding: 12px 18px; border-radius: 5px; }
.skip:focus { top: 12px; }
/* Content remains readable before and without JavaScript. */
.reveal { transition: transform .65s ease; }
.motion-ready .reveal:not(.is-visible) { transform: translateY(15px); }
.is-visible { transform: none; }
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.035); } }
@media (min-width: 1600px) { .hero { min-height: 730px; } .hero-content { padding-top: 108px; } .hero-art { object-position: center 55%; } }
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 56px); }
  .header nav { gap: 20px; }
  .identity strong { font-size: 23px; }
  .header .monogram { font-size: 38px; }
  .header .identity { gap: 13px; }
  .header .identity small { font-size: 9px; }
  .hero { min-height: 660px; }
  .hero-content { padding-top: 74px; }
  .hero-art { object-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, #06271efc, #06271eef 32%, #06271e80 68%, #06271e20), linear-gradient(0deg, #06271e, transparent 25%); }
  .intro { max-width: 535px; }
  .section-heading { gap: 30px; }
  .section-heading > p { max-width: 335px; }
  .slide { width: 470px; }
  .about-grid { gap: 40px; }
  .portrait-frame { height: 550px; }
  .expertise-layout { grid-template-columns: 1fr; gap: 20px; }
  .expertise-layout h2 br { display: none; }
  .toolbox { flex-direction: column; align-items: flex-start; gap: 15px; }
  .recognition-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { gap: 35px; }
  .contact-grid { gap: 35px; }
  .contact-grid h2 { font-size: 48px; }
  .footer-motto { display: none; }
}
@media (max-width: 850px) {
  :root { --header-height: 72px; }
  .header { position: relative; }
  .menu-button { display: inline-block; border: 1px solid #d6c59475; border-radius: 30px; padding: 9px 18px; min-height: 44px; background: #ffffff04; color: var(--cream); font-size: 14px; }
  .header nav { display: none; position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 20px; border: 1px solid #d6c59445; background: #082c22; border-radius: 0 0 10px 10px; box-shadow: 0 20px 35px #0000004d; max-height: calc(100dvh - 90px); overflow: auto; }
  .header nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .header nav > a:not(.button) { font-size: 16px; padding: 10px 9px; }
  .header nav > a::after { display: none; }
  .header .button { margin-top: 8px; min-height: 46px; font-size: 14px; }
  .about-grid { grid-template-columns: .75fr 1fr; gap: 28px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .about-copy h2 { font-size: 48px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.75; }
  .wrap { width: calc(100% - 40px); }
  .section { padding-block: 52px; }
  .header { padding-block: 10px; gap: 14px; }
  .header .monogram { font-size: 36px; }
  .header .identity strong { font-size: 22px; }
  .hero { min-height: 0; }
  .hero-content { padding-top: 40px; padding-bottom: 23px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .1em; margin-bottom: 22px; }
  h1 { font-size: clamp(2.7rem, 7.9vw, 3.5rem); letter-spacing: -.045em; margin-bottom: 23px; }
  .intro { font-size: 17px; line-height: 1.75; max-width: 100%; }
  .hero-art { height: 370px; inset: auto 0 0; object-position: 72% center; animation: none; }
  .hero-shade { background: linear-gradient(0deg, #06271e 0%, transparent 11%, transparent 21%, #06271e 46%); }
  .hero-note { margin-top: 310px; display: block; font-size: 11px; letter-spacing: .05em; }
  .hero-note span:last-child { display: none; }
  .actions { gap: 10px; margin-top: 25px; }
  .button { font-size: 14px; padding: 12px 20px; }
  h2 { font-size: clamp(2.55rem, 7.5vw, 3.2rem); }
  .section-label { font-size: 11px; gap: 16px; letter-spacing: .1em; margin-bottom: 27px; }
  .section-label .right { display: none; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { margin-bottom: 21px; }
  .section-heading > p { max-width: 100%; }
  .slide { width: calc(100vw - 52px); }
  .project-track { gap: 24px; }
  .card-heading h3 { font-size: 28px; }
  .venture .lead { font-size: 19px; }
  .project-role { font-size: 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait-frame { width: 100%; max-width: 400px; height: 465px; margin-inline: auto; }
  .about-copy h2 { font-size: 52px; }
  .about-copy .lead { font-size: 21px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 22px; }
  .facts dd { font-size: 14px; }
  .facts dt { font-size: 11px; }
  .project { grid-template-columns: 28px 1fr; gap: 16px; padding-block: 27px; }
  .project .button { grid-column: 2; justify-self: start; }
  .project h3 { font-size: 26px; }
  .project-number { font-size: 24px; }
  .project .eyebrow { font-size: 11px; }
  .expertise-layout h2 { font-size: 40px; }
  .skill-grid { gap: 30px 22px; }
  .skill-grid h3 { font-size: 18px; }
  .skill-grid p { font-size: 16px; }
  .toolbox b { margin-inline: 5px; }
  .toolbox p { line-height: 2; }
  .recognition-grid { grid-template-columns: 1fr; gap: 17px; }
  .recognition-card, .recognition-source { padding: 27px 24px; min-height: 0; }
  .recognition-card h3, .recognition-source h3 { font-size: 27px; }
  .journey-grid { grid-template-columns: 1fr; gap: 14px; }
  .journey-grid h3 { font-size: 25px; }
  .journey-grid article > span { font-size: 11px; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid h2 { font-size: 45px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-links { gap: 14px 25px; }
  .footer-bottom { flex-direction: column; gap: 7px; font-size: 12px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .header .monogram { display: none; }
  h1 { font-size: 2.65rem; }
  .facts { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .contact-grid h2 { font-size: 39px; }
  .button { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready .reveal:not(.is-visible) { transform: none; }
}
