/* Shiven Realty & Constructions
   Palette sampled from the logo: forest #022C1E, gold #CA9834 */

:root {
  --forest: #032c1f;
  --forest-2: #0a3a2a;
  --forest-3: #145039;
  --paper: #f7f2e8;
  --paper-2: #efe7d7;
  --white: #fffdf8;
  --ink: #10231c;
  --ink-2: #48594f;
  --gold: #ca9834;
  --gold-bright: #e6bd62;
  --gold-deep: #80590b;
  --line: rgba(3, 44, 31, .16);
  --line-inv: rgba(247, 242, 232, .18);

  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --header: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--gold); color: var(--forest); font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, .display {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -.012em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8.2vw, 7.25rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
.on-dark h1 em, .on-dark h2 em { color: var(--gold-bright); }
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font: 400 .75rem/1.4 var(--mono);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; flex: none; }
.on-dark .eyebrow { color: var(--gold-bright); }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.on-dark .lede { color: rgba(247, 242, 232, .82); }
.prose { max-width: 38em; color: var(--ink-2); text-wrap: pretty; }
.prose + .prose { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .75rem 1.6rem;
  border: 1px solid transparent; border-radius: 2px;
  background: none; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-forest { background: var(--forest); color: var(--paper); }
.btn-forest:hover { background: var(--forest-3); }
.btn-ghost { border-color: var(--line); color: var(--forest); }
.btn-ghost:hover { border-color: var(--forest); }
.on-dark .btn-ghost { border-color: rgba(247, 242, 232, .4); color: var(--paper); }
.on-dark .btn-ghost:hover { border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--forest); text-decoration: none;
  border-bottom: 1px solid var(--gold); padding-bottom: .15rem;
}
.link svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.on-dark .link { color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, box-shadow .3s;
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header); transition: height .3s var(--ease); }
.brand { position: relative; display: block; flex: none; }
.brand img { height: 52px; width: auto; transition: opacity .3s, height .3s var(--ease); }
.brand .logo-pos { position: absolute; inset: 0; opacity: 0; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav a:not(.btn) {
  color: var(--paper); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .3s;
}
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold-bright); }
.nav .btn { min-height: 2.75rem; padding: .5rem 1.15rem; font-size: .9375rem; }
.menu-btn { display: none; }

.site-header.is-stuck { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.is-stuck .bar { height: 72px; }
.is-stuck .brand img { height: 44px; }
.is-stuck .brand .logo-pos { opacity: 1; }
.is-stuck .brand .logo-rev { opacity: 0; }
.is-stuck .nav a:not(.btn) { color: var(--forest); }
.is-stuck .nav a:not(.btn):hover, .is-stuck .nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex; flex-direction: column;
  padding-top: calc(var(--header) + clamp(1.5rem, 5vh, 4rem));
  background:
    radial-gradient(70% 60% at 84% 100%, rgba(202, 152, 52, .2), transparent 70%),
    var(--forest);
  color: var(--paper);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(var(--line-inv) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-inv) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, #000);
  mask-image: linear-gradient(115deg, transparent 38%, #000);
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 1.25rem; max-width: 11.5em; }
.hero .lede { margin-top: 1.5rem; max-width: 34em; }
.hero .btn-row { margin-top: 2rem; }
.hero-art { margin-top: auto; padding-top: clamp(1.5rem, 4vh, 3rem); display: flex; justify-content: center; overflow: hidden; }
.panorama { flex: none; width: max(100%, 1180px); max-width: none; height: auto; }
.js .panorama { animation: wipe 2.6s .15s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.panorama { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pn-l { stroke: rgba(247, 242, 232, .72); stroke-width: 1.15; }
.pn-thin { stroke-width: .7; stroke: rgba(247, 242, 232, .42); }
.pn-m { fill: var(--forest); }
.pn-g { stroke: var(--gold-bright); stroke-width: 1.8; }
.pn-gf { fill: var(--gold-bright); stroke: none; }
.pn-w { fill: var(--gold-bright); fill-opacity: .92; stroke: var(--gold-bright); stroke-width: .8; }
.pn-wl { stroke: var(--forest); stroke-width: .8; }
.pn-d { stroke: var(--gold-bright); stroke-width: 1; stroke-dasharray: 5 6; }
.pn-gate { stroke-width: .9; }
.pn-ground { stroke: var(--paper); stroke-width: 1.5; }
.pn-t { fill: var(--gold-bright); font: 400 12px var(--mono); letter-spacing: .16em; }

/* ---------- Facts strip ---------- */
.facts { background: var(--forest-2); color: var(--paper); }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts dl > div { padding: 1.5rem 1.5rem 1.6rem 0; }
.facts dl > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-inv); }
.facts dt { font: 400 .6875rem/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-bright); }
.facts dd { margin-top: .35rem; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 52rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.split > .stack { display: grid; gap: 1.5rem; justify-items: start; }
.bg-paper2 { background: var(--paper-2); }
.bg-forest { background: var(--forest); color: var(--paper); }

/* ---------- Journey ---------- */
.journey { background-color: var(--white); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.journey-stage { position: sticky; top: max(96px, calc(50vh - 20vw)); align-self: start; }
.journey-frame {
  position: relative; padding: clamp(.75rem, 1.5vw, 1.25rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid var(--line);
}
.journey-tag {
  position: absolute; top: .75rem; left: .9rem; z-index: 2;
  font: 400 .6875rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep);
}
.journey-rail { display: flex; gap: .4rem; margin-top: .75rem; }
.journey-rail span { flex: 1; height: 3px; background: var(--line); transition: background-color .4s; }
.journey-rail span.is-on { background: var(--gold); }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; gap: .9rem; transition: opacity .4s; }
.js .step { opacity: .32; }
.js .step.is-active { opacity: 1; }
.step-no { font: 400 .75rem/1 var(--mono); letter-spacing: .13em; color: var(--gold-deep); text-transform: uppercase; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.step p { color: var(--ink-2); max-width: 30em; }
.step-tags { display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin-top: .25rem; }
.step-tags a { font-size: .875rem; font-weight: 500; color: var(--forest); text-decoration-color: var(--gold); text-underline-offset: 3px; }

.journey-svg { width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.j-line, .j-frame { stroke: var(--forest); stroke-width: 1.6; }
.j-frame { fill: none; }
.j-thin { stroke: var(--forest); stroke-width: .8; opacity: .6; }
.j-bg { fill: var(--paper); }
.j-text { fill: var(--forest); font: 400 11px var(--mono); letter-spacing: .14em; stroke: none; }
.j-ground { stroke: var(--forest); stroke-width: 2.4; }
.j-soil { fill: url(#soil); stroke: none; }
.j-hatch { stroke: var(--forest); stroke-width: .7; opacity: .35; fill: none; }
.j-maskbg { fill: var(--paper); stroke: none; }
.j-gold { stroke: var(--gold); stroke-width: 2.4; }
.j-goldf { fill: var(--gold); stroke: none; }
.j-dash { stroke: var(--gold-deep); stroke-width: 1.2; stroke-dasharray: 6 7; }
.j-conc { fill: #d9d3c4; }
.j-rebar { stroke-width: 1.4; }
.j-wall { fill: url(#brick); stroke: var(--forest); stroke-width: 1; }
.j-wall2 { fill: var(--paper); stroke: var(--forest); stroke-width: 1; }
.j-coping { fill: var(--gold); stroke: var(--forest); stroke-width: .8; }
.j-tank { fill: var(--forest); stroke: var(--forest); stroke-width: 1; }
.j-jali { fill: var(--forest-2); stroke: var(--forest); stroke-width: .8; }
.j-grill { stroke: var(--forest); stroke-width: 1; }
.j-rail { stroke: var(--forest); stroke-width: 1; }
.j-gate { stroke: var(--forest); stroke-width: 1.5; }
.j-doorp { fill: none; stroke: var(--gold); stroke-width: .9; }
.j-trunk { stroke: var(--forest); stroke-width: 5; }
.j-paint2 { fill: #f4e8cb; stroke: var(--forest); stroke-width: 1.2; }
.j-paint { fill: var(--white); stroke: var(--forest); stroke-width: 1.2; }
.j-glow { fill: var(--gold-bright); stroke: var(--forest); stroke-width: 1.4; }
.j-door { fill: var(--forest); stroke: var(--forest); stroke-width: 1.4; }
.j-doorl { stroke: var(--gold); stroke-width: 1; }
.j-goldpale { fill: rgba(202, 152, 52, .3); stroke: none; }
.j-hedge { fill: var(--forest-3); stroke: none; }
.j-leaf { fill: var(--forest-3); stroke: none; }
.j-leafl { stroke: var(--paper); stroke-width: 1; opacity: .5; }
.j-fline { stroke: var(--forest); stroke-width: 4; }
.j-gold2 { stroke: var(--gold); stroke-width: 4; fill: none; }

.js .journey-svg .only1, .js .journey-svg .until3 { transition: opacity .5s; }
.journey-svg.on-4 .until3 { opacity: 0; }
.js .journey-svg .s2, .js .journey-svg .s3, .js .journey-svg .s4 {
  opacity: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s var(--ease), opacity .45s;
}
.journey-svg.on-2 .only1, .journey-svg.on-3 .only1, .journey-svg.on-4 .only1 { opacity: 0; }
.js .journey-svg.on-2 .s2, .js .journey-svg.on-3 .s2, .js .journey-svg.on-4 .s2,
.js .journey-svg.on-3 .s3, .js .journey-svg.on-4 .s3,
.js .journey-svg.on-4 .s4 { opacity: 1; clip-path: inset(-20px -20px -20px -20px); }

/* ---------- Service index ---------- */
.svc-index { border-top: 1px solid var(--line-inv); }
.svc-index a {
  display: grid; grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1.3fr) 2rem; gap: 1.5rem;
  align-items: baseline; padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-inv);
  text-decoration: none; color: var(--paper);
  transition: padding-left .35s var(--ease), background-color .3s;
}
.svc-index a:hover { padding-left: .85rem; }
.svc-no { font: 400 .75rem var(--mono); letter-spacing: .13em; color: var(--gold-bright); }
.svc-name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.5vw, 2.125rem); line-height: 1.12; }
.svc-line { color: rgba(247, 242, 232, .75); font-size: 1rem; line-height: 1.5; }
.svc-index svg { width: 1.25rem; height: 1.25rem; align-self: center; color: var(--gold-bright); transition: transform .3s var(--ease); }
.svc-index a:hover svg { transform: translateX(5px); }

/* ---------- Vision and commitments ---------- */
.vision-quote { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.2; letter-spacing: -.008em; max-width: 24em; text-wrap: pretty; }
.commit { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.commit li { grid-column: span 2; padding: 1.75rem 1.75rem 2rem 0; border-bottom: 1px solid var(--line); }
.commit li:nth-child(4), .commit li:nth-child(5) { grid-column: span 3; }
.commit li:not(:nth-child(3n + 1)):not(:nth-child(4)) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.commit li:nth-child(5) { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.commit .num { display: block; font: 400 .75rem var(--mono); letter-spacing: .13em; color: var(--gold-deep); margin-bottom: 1rem; }
.commit h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5625rem; }
.commit p { margin-top: .5rem; color: var(--ink-2); max-width: 28em; }

.mission-list { border-top: 1px solid var(--line); }
.mission-list li { display: grid; grid-template-columns: 3.5rem minmax(0, .9fr) minmax(0, 1.5fr); gap: .75rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-bottom: 1px solid var(--line); }
.mission-list .num { font: 400 .75rem/2.6 var(--mono); letter-spacing: .13em; color: var(--gold-deep); }
.mission-list h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.625rem, 2.4vw, 2.125rem); line-height: 1.12; text-wrap: balance; }
.mission-lead { margin-top: .6rem; font-weight: 500; color: var(--ink); max-width: 26em; text-wrap: pretty; }
.mission-detail { color: var(--ink-2); max-width: 38em; text-wrap: pretty; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.monogram {
  position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center;
  background: var(--forest); color: var(--gold-bright);
  font: 400 clamp(5rem, 11vw, 8rem)/1 var(--serif); letter-spacing: -.02em;
}
.monogram::before, .monogram::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 1px solid var(--gold-bright);
}
.monogram::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.monogram::after { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.founder-role { margin-top: .5rem; font: 400 .75rem var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-deep); }
.founder p:not(.founder-role) { margin-top: 1.25rem; color: var(--ink-2); max-width: 36em; }
.founder .link { margin-top: 1.5rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--forest); color: var(--paper); padding-block: clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; isolation: isolate; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 2.5rem; align-items: end; }
.cta h2 { max-width: 13em; }
.cta p { margin-top: 1rem; }

/* ---------- Inner page header ---------- */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--forest); color: var(--paper);
}
.page-head h1 { margin-top: 1.1rem; font-size: clamp(2.75rem, 6.6vw, 5.5rem); max-width: 13em; }
.page-head .lede { margin-top: 1.25rem; }
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 90%); mask-image: linear-gradient(100deg, transparent 35%, #000 90%); }
.bk-l { stroke: rgba(247, 242, 232, .14); stroke-width: 1; }
.bk-g { stroke: var(--gold); stroke-width: 1; fill: rgba(202, 152, 52, .14); }

/* ---------- Services page ---------- */
.chips { position: sticky; top: 72px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.chips ul { display: flex; gap: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.chips ul::-webkit-scrollbar { display: none; }
.chips a { display: block; padding: .95rem 0; white-space: nowrap; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; }
.chips a:hover { color: var(--forest); border-bottom-color: var(--gold); }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.svc:nth-child(even) .fig { order: 2; }
.fig { position: relative; background: var(--white); border: 1px solid var(--line); padding: clamp(.75rem, 2vw, 1.5rem); }
.fig figcaption { position: absolute; left: .85rem; bottom: .55rem; font: 400 .625rem var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-deep); }
.svc-no-l { font: 400 .75rem var(--mono); letter-spacing: .13em; color: var(--gold-deep); }
.svc h2 { margin-top: .75rem; font-size: clamp(2rem, 3.4vw, 3rem); }
.svc p { margin-top: 1rem; color: var(--ink-2); max-width: 34em; }
.ticks { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.5rem; max-width: 36em; }
.ticks li { position: relative; padding-left: 1.2rem; font-size: 1rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .6rem; height: 1px; background: var(--gold); }
.svc .link { margin-top: 1.5rem; }

.fig-svg { width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.f-l { stroke: var(--forest); stroke-width: 1.5; }
.f-t { stroke: var(--forest); stroke-width: .75; opacity: .55; }
.f-g { stroke: var(--gold); stroke-width: 3; }
.f-gl { stroke: var(--forest); stroke-width: 2; }
.f-gate { stroke: var(--forest); stroke-width: 1.2; }
.f-gw { stroke: var(--gold); stroke-width: 5; }
.f-gh { stroke: var(--gold); stroke-width: 9; }
.f-gf { fill: var(--gold); stroke: var(--forest); stroke-width: .8; }
.f-gf2 { fill: rgba(202, 152, 52, .55); stroke: var(--forest); stroke-width: 1.2; }
.f-bg { fill: var(--white); }
.f-bgn { fill: rgba(255, 253, 248, .25); }
.f-road { stroke: var(--paper-2); stroke-width: 16; }
.f-road2 { fill: var(--paper-2); stroke: none; }
.f-num { fill: var(--forest); font: 400 11px var(--mono); letter-spacing: .1em; stroke: none; }
.f-numi { fill: var(--forest); font: 500 11px var(--mono); letter-spacing: .1em; stroke: none; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-list { display: grid; margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 400 .6875rem/1.9 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-deep); }
.contact-list dd { font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.form-card { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.form-card h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.form-card > p { margin-top: .6rem; color: var(--ink-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-top: 1.75rem; }
.field { display: grid; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .7rem .85rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); background: var(--white); box-shadow: 0 0 0 1px var(--forest); }
.field.has-error input, .field.has-error select { border-color: #a4301f; }
.error { min-height: 0; font-size: .875rem; color: #a4301f; }
.error:empty { display: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.form-note { grid-column: 1 / -1; font-size: .9375rem; color: var(--ink-2); }
.form-done { grid-column: 1 / -1; padding: .85rem 1rem; background: var(--paper-2); border-left: 3px solid var(--gold); font-size: .9688rem; }
.map-wrap { background: var(--paper-2); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.75rem; }
.map-address { margin-top: .5rem; font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.15 var(--serif); }
.map { display: block; width: 100%; height: clamp(320px, 42vw, 480px); border: 0; filter: saturate(.75); }

/* ---------- Footer ---------- */
.site-footer { background: #021f16; color: rgba(247, 242, 232, .78); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 2.5rem; }
.foot-mail { overflow-wrap: anywhere; }
.foot-brand img { width: 200px; }
.foot-title { font: 400 .6875rem var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: .9rem; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-inv); border-radius: 50%; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.foot-base { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-inv); font-size: .875rem; }

/* ---------- WhatsApp and mobile action bar ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--gold); color: var(--forest); box-shadow: 0 8px 24px rgba(3, 44, 31, .3);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--gold-bright); }
.wa-float svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.action-bar { display: none; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; align-content: center; gap: 1.25rem; justify-items: start; background: var(--forest); color: var(--paper); }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
  /* the tall end of the skyline rises beside the copy, so the hero fits the screen */
  .hero-copy { margin-bottom: -9vw; }
}

@media (max-width: 1060px) {
  .nav .btn { display: none; }
  .svc-index a { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; }
  .svc-line { grid-column: 2; grid-row: 2; margin-top: -.75rem; }
  .svc-index svg { grid-column: 3; grid-row: 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header: 72px; }
  .brand img { height: 42px; }
  .is-stuck .brand img { height: 40px; }
  .is-stuck .bar { height: 64px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 2.75rem; padding: 0 .9rem; background: none;
    border: 1px solid rgba(247, 242, 232, .4); border-radius: 2px; color: var(--paper); font-weight: 600; cursor: pointer;
  }
  .is-stuck .menu-btn { border-color: var(--line); color: var(--forest); }
  .nav {
    position: fixed; inset: 0; z-index: -1; padding: 6rem var(--gutter) 6rem;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: var(--forest); visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav a:not(.btn), .is-stuck .nav a:not(.btn) {
    width: 100%; padding: .95rem 0; color: var(--paper);
    font: 500 2rem/1.15 var(--serif); border-bottom: 1px solid var(--line-inv);
  }
  .nav .btn { display: inline-flex; margin-top: 1.75rem; min-height: 3.25rem; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: transparent; box-shadow: none; }
  body.menu-open .brand .logo-pos { opacity: 0; }
  body.menu-open .brand .logo-rev { opacity: 1; }
  body.menu-open .menu-btn { border-color: rgba(247, 242, 232, .4); color: var(--paper); }

  .hero { min-height: 0; }
  .panorama { width: 860px; transform: translateX(-2%); }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div, .facts dl > div + div { padding: 1.1rem 1rem 1.15rem 0; border-left: 0; }
  .facts dl > div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-inv); }
  .facts dl > div:nth-child(n + 3) { border-top: 1px solid var(--line-inv); }
  .split, .contact-grid, .svc, .founder, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .svc:nth-child(even) .fig { order: 0; }
  .founder { justify-items: start; }
  .monogram { width: min(240px, 60%); }

  .journey-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey-stage { top: 64px; z-index: 5; background: var(--white); padding-block: .75rem .5rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .journey-frame { padding: .35rem; }
  .journey-frame, .journey-rail { max-width: 60vh; margin-inline: auto; }
  .journey-tag { display: none; }
  .step { min-height: 52vh; }

  .commit { grid-template-columns: 1fr; }
  .commit li, .commit li:nth-child(4), .commit li:nth-child(5) { grid-column: auto; padding: 1.4rem 0; border-left: 0 !important; padding-left: 0 !important; }
  .mission-list li { grid-template-columns: minmax(0, 1fr); }
  .mission-list .num { line-height: 1.4; }
  .form { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .foot-brand, .foot-grid > div:last-child { grid-column: 1 / -1; }

  .wa-float { display: none; }
  .action-bar {
    position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--forest); border-top: 1px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.5rem; color: var(--paper); font-weight: 600; text-decoration: none; }
  .action-bar a + a { background: var(--gold); color: var(--forest); }
  .action-bar svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
  body { padding-bottom: 3.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
