/* =====================================================================
   Canada–Egypt Construction & Engineering Advisory — stylesheet v2
   Direction: "the drawing office" — blueprint ink, drafted lines, gold
   survey markers, wide structural display type, mono dimension labels.
   Single committed theme (ink + paper). Dependency-free.
   ===================================================================== */

:root {
  --ink: #0b1b33;
  --ink-2: #12294d;
  --ink-3: #1a3766;
  --blue: #1e4e8c;
  --blue-bright: #3a7bd5;
  --gold: #c89b3c;
  --gold-2: #e3c27a;
  --gold-ink: #3a2a08;
  --gold-deep: #8a6a23;
  --paper: #ffffff;
  --stone: #f3f5f8;
  --white: #ffffff;
  --text: #16233a;
  --muted: #5b6b80;
  --line: rgba(11, 27, 51, .12);
  --line-light: rgba(255, 255, 255, .16);
  --success: #1f7a4d;
  --error: #b42318;
  --radius: 4px;
  --shadow: 0 24px 48px -24px rgba(11, 27, 51, .35);
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.65;
  color: var(--text); background: var(--paper); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  line-height: 1.05; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; font-stretch: 105%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.container { width: min(var(--container), 92%); margin-inline: auto; }
.text-muted { color: var(--muted); }
.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.mt-20 { margin-top: 20px; }
.form-title { font-size: 1.6rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Motion primitives ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .1s; }
html.js .reveal[data-delay="2"] { transition-delay: .2s; }
html.js .reveal[data-delay="3"] { transition-delay: .3s; }
html.js .reveal[data-delay="4"] { transition-delay: .4s; }
html.js .reveal[data-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Skip link + progress ---------- */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 0; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); z-index: 90; transition: width .1s linear; }

/* ---------- Coordinates strip ---------- */
.coords { background: var(--ink); color: rgba(255, 255, 255, .55); border-bottom: 1px solid var(--line-light); }
.coords .container { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0; }
.coords span b { color: var(--gold-2); font-weight: 500; }
.coords a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); color: var(--ink);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.site-footer .brand { color: #fff; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1rem; letter-spacing: .01em; }
.brand-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--ink); margin: 3px auto; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { position: relative; display: inline-block; padding: 10px 12px; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { margin-left: 10px; }
.site-nav .btn::after { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  padding: 13px 22px; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: 15px; line-height: 1.2;
  background: var(--blue); color: #fff; border: 1px solid var(--blue); cursor: pointer; isolation: isolate;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .14); transform: translateX(-101%); transition: transform .35s var(--ease); z-index: -1; }
.btn:hover::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.btn-gold::before { background: rgba(255, 255, 255, .28); }
.btn.secondary { background: transparent; color: var(--ink); border-color: rgba(11, 27, 51, .3); }
.btn.secondary::before { background: rgba(11, 27, 51, .06); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn.ghost::before { background: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--ink); background: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at var(--mx, 70%) var(--my, 30%), rgba(58, 123, 213, .14), transparent 70%),
    linear-gradient(160deg, #ffffff 0%, #f4f7fb 60%, #e9eff7 100%);
}
.hero-bg::before { content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(rgba(11,27,51,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(11,27,51,.6) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 95%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 95%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(11,27,51,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(11,27,51,.4) 1px, transparent 1px);
  background-size: 16px 16px; mask-image: radial-gradient(500px 300px at 80% 40%, rgba(0,0,0,.6), transparent 70%); -webkit-mask-image: radial-gradient(500px 300px at 80% 40%, rgba(0,0,0,.6), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 64px); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--ink); }
.hero h1 .w { display: inline-block; }
html.js .hero h1 .w { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(.6em) skewY(2deg); } to { opacity: 1; transform: none; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero.compact .hero-grid { grid-template-columns: 1fr; padding: clamp(44px, 6vw, 72px) 0; }
.hero.compact .lead { margin-bottom: 0; }
.hero.compact .hero-copy { max-width: 800px; }
.hero-tag { position: absolute; right: 4%; bottom: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: rgba(11, 27, 51, .4); text-transform: uppercase; }

/* Bridge drawing */
.hero-art { margin: 0; position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; } /* paths carry pathLength="1" */
html.js .draw { animation: draw 2.4s var(--ease) forwards; }
html.js .draw.d2 { animation-delay: .5s; }
html.js .draw.d3 { animation-delay: 1s; }
html.js .draw.d4 { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-late { opacity: 0; }
html.js .fade-late { animation: fadein 1s ease forwards; animation-delay: 1.8s; }
@keyframes fadein { to { opacity: 1; } }
.hero-art .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; fill: #ffffff; text-transform: uppercase; }
.hero-art .label.dim { fill: rgba(255, 255, 255, .75); }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats-strip .stat { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.stats-strip .stat:last-child { border-right: 0; }
.stats-strip .stat + .stat { padding-left: 24px; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--stone); padding: 14px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; }
html.js .marquee-track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.marquee span::after { content: ""; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section.alt { background: var(--stone); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.section.dark .section-head p { color: rgba(255, 255, 255, .7); }
.kicker { font-family: var(--mono); color: var(--gold-deep); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker, .kicker.center { justify-content: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); padding: 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
a.card:hover, .card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
a.card:hover::before, .card.hover:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); }
.card .idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: .18em; color: var(--gold-deep); margin-bottom: 16px; }
.card.dark .idx, .section.dark .kicker { color: var(--gold-2); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--blue); background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; transition: transform .4s var(--ease), background .3s, color .3s; }
.card-icon svg { width: 24px; height: 24px; }
a.card:hover .card-icon { background: var(--ink); color: var(--gold-2); transform: rotate(-6deg); }
.card .link { color: var(--blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--display); font-stretch: 105%; }
.card .link .arrow { transition: transform .3s var(--ease); }
a.card:hover .link .arrow { transform: translateX(5px); }
.card.dark { background: var(--ink); color: #fff; border-color: transparent; }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255, 255, 255, .7); }
.card.raised { box-shadow: var(--shadow); }

/* Checklist (survey ticks) */
.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.section.dark .checklist li { border-color: var(--line-light); }

/* Big number pull */
.pull { position: relative; }
.pull-num { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(6rem, 16vw, 13rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 27, 51, .35); margin: 0; font-variant-numeric: tabular-nums; }
.pull-num b { color: var(--gold); -webkit-text-stroke: 0; font-weight: 900; }
.pull-cap { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* Process line */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 1px; background: var(--line-light); }
.process .step { position: relative; padding-top: 40px; }
.process .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold-2); background: var(--ink); padding-right: 12px; line-height: 28px; }
.process .step::after { content: ""; position: absolute; top: 9px; left: 46px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.process h3 { color: #fff; font-size: 1.15rem; }
.process p { color: rgba(255, 255, 255, .68); font-size: 15px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project { position: relative; background: var(--white); border: 1px solid var(--line); padding: 30px 30px 30px 34px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.project::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(.35); transform-origin: top; transition: transform .5s var(--ease); }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project:hover::before { transform: scaleY(1); }
.project .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.project .value { display: inline-block; margin-top: 14px; font-family: var(--display); font-stretch: 110%; font-weight: 800; color: var(--ink); border: 1px solid var(--gold); padding: 5px 12px; font-size: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.project .big { position: absolute; right: 14px; bottom: -10px; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 5rem; color: transparent; -webkit-text-stroke: 1px rgba(11, 27, 51, .12); pointer-events: none; letter-spacing: -.05em; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 32px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 8px; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); }
.timeline strong { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--ink); margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: 15.5px; }

/* Two markets */
.markets { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: stretch; }
.market { background: var(--white); border: 1px solid var(--line); padding: 36px; position: relative; }
.market-flag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.market-flag i { width: 26px; height: 18px; display: inline-block; border: 1px solid var(--line); }
.market-flag .ca { background: linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75%); }
.market-flag .eg { background: linear-gradient(#ce1126 0 33.3%, #fff 33.3% 66.6%, #000 66.6%); }
.market-link { display: flex; align-items: center; justify-content: center; width: 120px; }
.market-link svg { width: 120px; height: 100%; min-height: 200px; overflow: visible; }
.arc-map { width: 100%; }
.arc-map .city { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; fill: var(--ink); text-transform: uppercase; }
.arc-map .coord { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; fill: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 88px) 0; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 15% 100%, rgba(200, 155, 60, .22), transparent 70%), radial-gradient(500px 300px at 95% 0%, rgba(58, 123, 213, .3), transparent 70%); }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .72); max-width: 600px; margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.field .hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-family: var(--body); }
input, textarea, select { width: 100%; padding: 14px; border: 1px solid rgba(11, 27, 51, .25); border-radius: var(--radius); font: inherit; color: var(--text); background: var(--white); transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 78, 140, .15); outline: none; }
textarea { min-height: 160px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; }
.form-status[data-state="success"] { display: block; background: #e6f4ec; color: var(--success); border: 1px solid #b9dfc9; }
.form-status[data-state="error"] { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }
.form-status[data-state="sending"] { display: block; background: var(--stone); color: var(--muted); }
.form-status a { text-decoration: underline; }

.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.contact-card dd { margin: 3px 0 0; }
.contact-card dd a { color: var(--blue); font-weight: 500; word-break: break-word; }
.contact-card dd a:hover { text-decoration: underline; }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .65); padding: 64px 0 28px; border-top: 1px solid var(--line-light); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 64px 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; position: relative; }
.site-footer h3 { color: #fff; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand { margin-bottom: 16px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .45); position: relative; }
.footer-bottom ul { display: flex; gap: 18px; }
.footer-bottom.solo { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-credit { position: relative; margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .4); max-width: 900px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.notfound .code { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(5rem, 16vw, 10rem); color: transparent; -webkit-text-stroke: 2px var(--gold); line-height: 1; letter-spacing: -.05em; margin: 0 0 12px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Services dropdown ---------- */
.has-menu { position: relative; display: flex; align-items: center; }
.menu-toggle { background: none; border: 0; color: var(--muted); width: 28px; height: 36px; cursor: pointer; padding: 0; display: inline-grid; place-items: center; margin-left: -6px; transition: transform .25s var(--ease), color .2s; }
.menu-toggle:hover { color: var(--ink); }
.has-menu.is-open .menu-toggle { transform: rotate(180deg); }
.site-nav .submenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 320px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 5; }
.site-nav .has-menu:hover .submenu, .site-nav .has-menu:focus-within .submenu, .site-nav .has-menu.is-open .submenu { display: block; }
.submenu li { display: block; }
.submenu a { display: block; padding: 10px 12px; font-size: 14.5px; }
.submenu a::after { display: none; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--stone); color: var(--ink); box-shadow: inset 3px 0 0 var(--gold); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }

/* ---------- Photography ---------- */
.figure-hero { margin: 0; position: relative; background: var(--stone); }
.figure-hero img { width: 100%; height: clamp(240px, 46vw, 560px); object-fit: cover; display: block; }
.figure-hero figcaption { background: var(--stone); color: var(--muted); }
.figcap, .figure-hero figcaption, .gallery figcaption, .strip figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.figure-hero figcaption .container { padding: 14px 0; display: flex; gap: 12px; align-items: flex-start; }
.figure-hero figcaption .container::before, .gallery figcaption::before, .strip figcaption::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 4px; background: var(--gold); transform: rotate(45deg); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.gallery figure.wide img { aspect-ratio: 8 / 3; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 12px 14px; color: var(--muted); }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 48px 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.gallery-head h3 { margin: 0; }
.gallery-head span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 14px; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(440px, 82vw); scroll-snap-align: start; margin: 0; background: var(--white); border: 1px solid var(--line); }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.strip figcaption { padding: 12px 14px; color: var(--muted); }

.card { padding: var(--card-pad, 30px); }
.card-media { margin: calc(-1 * var(--card-pad, 30px)) calc(-1 * var(--card-pad, 30px)) 22px; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .7s var(--ease); }
a.card:hover .card-media img { transform: scale(1.05); }

.photo-notice { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--white); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.photo-notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.photo-notice strong { color: var(--ink); font-weight: 600; }
.section.dark .photo-notice, .hero .photo-notice { background: rgba(255, 255, 255, .05); border-color: var(--line-light); border-left-color: var(--gold); color: rgba(255, 255, 255, .7); }
.section.dark .photo-notice strong, .hero .photo-notice strong { color: #fff; }
.figure-hero .photo-notice { margin: 0; border: 0; border-top: 1px solid var(--line); background: var(--stone); color: var(--muted); font-size: 12.5px; padding: 10px 0 14px; }
.figure-hero .photo-notice strong { color: var(--ink); }
.contact-card dt { color: var(--gold-deep); }
.addr { font-style: normal; line-height: 1.5; }

/* Portrait + byline */
.portrait { margin: 0; }
.portrait img { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait figcaption { padding: 12px 0 0; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); flex: none; }
.byline strong { display: block; color: var(--ink); font-family: var(--display); font-stretch: 105%; }
.byline span { display: block; font-size: 13.5px; color: var(--muted); }

/* Publications */
.pubs { list-style: none; margin: 0 0 48px; padding: 0; counter-reset: pub; }
.pubs[start="5"] { counter-reset: pub 4; }
.pubs li { position: relative; padding: 18px 20px 18px 64px; background: var(--white); border: 1px solid var(--line); margin-bottom: 10px; }
.pubs li::before { counter-increment: pub; content: counter(pub, decimal-leading-zero); position: absolute; left: 20px; top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--gold-deep); }
.pub-title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pub-src { display: block; font-size: 14.5px; color: var(--muted); }
.photo-solo { margin: 0; }
.photo-solo img { width: 100%; max-height: 560px; object-fit: cover; border: 1px solid var(--line); display: block; }
.photo-solo figcaption { padding: 12px 0 0; }
.figcap::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 4px; background: var(--gold); transform: rotate(45deg); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border: 1px solid var(--line); }
.photo-pair figcaption { padding: 10px 0 0; color: var(--muted); }

/* Service page extras */
.service-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.service-intro .lead-text { font-size: 1.15rem; color: var(--text); }
.deliverables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deliverables li { position: relative; padding: 16px 18px 16px 42px; background: var(--white); border: 1px solid var(--line); font-weight: 500; }
.deliverables li::before { content: ""; position: absolute; left: 16px; top: 22px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; border: 1px solid var(--line); background: var(--white); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.related a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.related span { display: block; padding: 12px 14px; font-family: var(--display); font-stretch: 105%; font-weight: 700; font-size: .95rem; color: var(--ink); }
.related small { display: block; padding: 0 14px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 640px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats-strip .stat:nth-child(3) { padding-left: 0; }
  .bento .card, .bento .card.wide { grid-column: span 3; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .markets { grid-template-columns: 1fr; gap: 16px; }
  .service-intro { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.wide { grid-column: span 2; }
  .related { grid-template-columns: 1fr; }
  .market-link { width: auto; }
  .market-link svg { width: 100%; min-height: 0; height: 90px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 4% 18px; gap: 2px; }
  .site-nav a { display: block; padding: 14px 12px; font-size: 16px; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); background: var(--stone); }
  .site-nav .btn { margin: 10px 0 0; }
  .has-menu { display: block; }
  .menu-toggle { display: none; }
  .site-nav .submenu, .site-nav .has-menu:hover .submenu { display: block; position: static; min-width: 0; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .submenu a { font-size: 15px; padding: 10px 12px; color: var(--muted); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .coords .container { justify-content: center; }
  .coords .hide-sm { display: none; }
  .hero-tag { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento .card, .bento .card.wide { grid-column: span 6; }
  .projects, .process, .footer-grid, .form-row, .stats-strip { grid-template-columns: 1fr; }
  .stats-strip .stat { border-right: 0; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .stats-strip .stat:first-child { border-top: 0; }
  .brand-tag { display: none; }
  .card, .project, .market { --card-pad: 24px; padding: 24px; }
  .gallery, .deliverables, .photo-pair { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .gallery figure.wide img { aspect-ratio: 4 / 3; }
  .marquee span { font-size: .95rem; padding: 0 18px; gap: 18px; }
}

/* ---------- Print ---------- */
@media print {
  .coords, .site-header, .cta, .nav-toggle, .skip-link, .progress, .marquee, .hero-art { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .section.dark, .site-footer { background: none; color: #000; }
  .hero h1, .hero .lead, .section.dark h2, .section.dark h3, .stat strong { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}
