:root {
  --night: #06100b;
  --night-2: #0a1811;
  --night-3: #102419;
  --forest: #183d2a;
  --green: #2d7a50;
  --mint: #7ee0a8;
  --lime: #b9f27c;
  --gold: #d4a84e;
  --cream: #f3f0e7;
  --paper: #fbfaf5;
  --white: #ffffff;
  --ink: #142018;
  --muted: #657069;
  --line: rgba(20, 32, 24, 0.14);
  --line-dark: rgba(222, 241, 228, 0.15);
  --focus: #f1b64a;
  --error: #a72d2d;
  --success: #246d42;
  --container: 1220px;
  --radius-sm: 10px;
  --radius: 22px;
  --radius-lg: 38px;
  --shadow: 0 30px 90px rgba(3, 18, 10, 0.16);
  --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--night);
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection { color: var(--night); background: var(--mint); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--night);
  background: var(--mint);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.progress-line { position: fixed; top: 0; left: 0; right: 0; z-index: 1001; height: 2px; pointer-events: none; }
.progress-line span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--mint), var(--gold)); transform: scaleX(0); transform-origin: left; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { margin-bottom: 1rem; color: inherit; font-weight: 650; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
h1 { font-size: clamp(3.5rem, 8.2vw, 8.2rem); }
h2 { font-size: clamp(2.65rem, 6vw, 5.8rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); }

.section { position: relative; padding: clamp(5.5rem, 10vw, 10rem) 0; }
.section-dark { color: #e8f1eb; background: var(--night); }
.section-index { margin-bottom: 2rem; color: #78837b; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.section-dark .section-index { color: #6d7f73; }
.eyebrow { margin-bottom: 1rem; color: var(--green); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.17em; text-transform: uppercase; }
.section-dark .eyebrow { color: var(--mint); }

.section-heading { display: grid; grid-template-columns: 0.28fr 1fr; gap: 2rem; margin-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.section-heading > div { max-width: 860px; }
.section-heading h2 { max-width: 13ch; }
.section-heading-light h2 { color: var(--white); }
.split-heading { grid-template-columns: 1.2fr 0.8fr; align-items: end; }
.split-heading > div { max-width: none; }
.split-heading > p { max-width: 520px; margin-bottom: 0.7rem; color: var(--muted); font-size: 1.08rem; }
.section-dark .split-heading > p { color: #9aac9f; }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 750ms cubic-bezier(.2,.7,.2,1), transform 750ms cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #e9f1eb;
  background: linear-gradient(180deg, rgba(6,16,11,.92), rgba(6,16,11,.2));
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.site-header.is-scrolled { background: rgba(6, 16, 11, 0.88); border-color: var(--line-dark); backdrop-filter: blur(16px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 48px; height: 46px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.main-nav a { position: relative; padding: 0.7rem 0; color: #b8c5bc; font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0.45rem; height: 1px; background: var(--mint); transition: right 180ms ease; }
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { right: 0; }

.menu-toggle { display: none; width: 46px; height: 46px; margin-left: auto; color: var(--white); background: transparent; border: 1px solid var(--line-dark); border-radius: 50%; }
.menu-toggle i { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3px) rotate(-45deg); }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.8rem 1.25rem; color: var(--white); background: var(--forest); border: 1px solid var(--forest); border-radius: 999px; font-size: 0.88rem; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.button-small { min-height: 42px; padding: 0.65rem 1rem; font-size: 0.78rem; }
.button-accent { color: var(--night); background: var(--mint); border-color: var(--mint); }
.button-accent:hover { background: var(--lime); border-color: var(--lime); }
.button-ghost { color: #d9e5dc; background: rgba(255,255,255,.04); border-color: var(--line-dark); backdrop-filter: blur(8px); }
.button-ghost:hover { background: rgba(255,255,255,.09); }
.button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.button-group { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero { min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--header-height) + 4rem) 0 5rem; }
.hero-grid-overlay { position: absolute; inset: 0; opacity: 0.18; background-image: linear-gradient(rgba(126,224,168,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(126,224,168,.13) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.hero-glow { position: absolute; width: 68vw; height: 68vw; top: -20vw; right: 0; border-radius: 50%; background: radial-gradient(circle, rgba(45,122,80,.32), rgba(6,16,11,0) 68%); filter: blur(30px); }
.hero-canvas { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; z-index: 1; }
.hero-fallback { position: absolute; top: 50%; right: 12%; width: min(40vw, 560px); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(126,224,168,.18); border-radius: 50%; }
.hero-fallback span { position: absolute; top: 50%; left: 50%; width: 18%; aspect-ratio: 1; background: var(--mint); border-radius: 50%; box-shadow: 0 0 50px rgba(126,224,168,.5); }
.hero-fallback span:nth-child(1) { transform: translate(-220%, -180%); }
.hero-fallback span:nth-child(2) { transform: translate(130%, -30%); background: var(--gold); }
.hero-fallback span:nth-child(3) { transform: translate(-90%, 130%); background: #7ba8ff; }
.webgl-ready .hero-fallback { display: none; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { width: min(65%, 850px); }
.hero h1 { margin-bottom: 1.6rem; color: var(--white); }
.hero h1 > span { display: block; }
.gradient-text { color: transparent; background: linear-gradient(90deg, var(--mint), #d7ef9b 48%, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero-lead { max-width: 690px; margin-bottom: 2rem; color: #a9b7ad; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 0.5rem; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 0 rgba(126,224,168,.5); animation: pulse-dot 2.2s infinite; }
@keyframes pulse-dot { 70% { box-shadow: 0 0 0 8px rgba(126,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(126,224,168,0); } }
.hero-signals { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 3rem; color: #718278; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-signals span { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-signals span::before { content: ""; width: 4px; height: 4px; background: var(--green); border-radius: 50%; }
.hero-orbit-labels span { position: absolute; z-index: 3; right: 7%; padding: 0.4rem 0.7rem; color: #dce9df; background: rgba(6,16,11,.7); border: 1px solid var(--line-dark); border-radius: 99px; font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(10px); pointer-events: none; }
.hero-orbit-labels span:nth-child(1) { top: 28%; }
.hero-orbit-labels span:nth-child(2) { top: 50%; right: 3%; }
.hero-orbit-labels span:nth-child(3) { top: 70%; right: 12%; }
.scroll-cue { position: absolute; z-index: 4; right: 2rem; bottom: 2rem; display: flex; align-items: center; gap: 0.8rem; color: #6f7e74; font-size: 0.68rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; transform: rotate(90deg); transform-origin: right bottom; }
.scroll-cue i { width: 48px; height: 1px; background: currentColor; }

.manifesto { background: var(--paper); }
.manifesto::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(var(--line), transparent); }
.manifesto-grid { display: grid; grid-template-columns: .28fr 1fr; gap: 2rem; }
.statement { max-width: 19ch; font-size: clamp(2.35rem, 5vw, 5rem); line-height: 1.06; }
.statement em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.manifesto-copy { max-width: 660px; margin: 2.5rem 0 0 auto; color: var(--muted); font-size: 1.1rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(4rem, 9vw, 8rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics article { min-height: 190px; display: flex; flex-direction: column; justify-content: center; padding: 2rem; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics strong { color: var(--forest); font-size: clamp(3rem, 6vw, 6rem); font-weight: 500; letter-spacing: -0.07em; line-height: 1; }
.metrics span { max-width: 180px; margin-top: .7rem; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.services { overflow: hidden; }
.services-radar { position: absolute; left: -20vw; top: 0; width: 70vw; aspect-ratio: 1; opacity: .3; border: 1px solid rgba(126,224,168,.12); border-radius: 50%; }
.services-radar i { position: absolute; inset: 14%; border: 1px solid rgba(126,224,168,.12); border-radius: inherit; }
.services-radar i:nth-child(2) { inset: 28%; }
.services-radar i:nth-child(3) { inset: 42%; }
.service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.service-visual { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 900px; }
.service-visual::before, .service-visual::after { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(126,224,168,.16); border-radius: 50%; transform: rotateX(64deg) rotateZ(-14deg); }
.service-visual::after { width: 48%; border-color: rgba(212,168,78,.2); transform: rotateX(70deg) rotateZ(25deg); }
.service-core { position: relative; z-index: 2; width: 170px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(126,224,168,.45); border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(126,224,168,.28), rgba(10,24,17,.95) 65%); box-shadow: inset 0 0 60px rgba(126,224,168,.16), 0 0 80px rgba(45,122,80,.2); }
.service-core span { color: var(--white); font-weight: 800; letter-spacing: -.03em; }
.service-node { position: absolute; z-index: 3; width: 104px; aspect-ratio: 1; padding: .5rem; color: #aebdb3; background: #0b1d13; border: 1px solid var(--line-dark); border-radius: 50%; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.service-node.is-active { color: var(--night); background: var(--mint); border-color: var(--mint); box-shadow: 0 0 50px rgba(126,224,168,.3); transform: scale(1.08); }
.node-management { top: 8%; left: 44%; }
.node-tourism { left: 4%; bottom: 14%; }
.node-tech { right: 2%; bottom: 10%; }
.service-list { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); }
.service-item { border-bottom: 1px solid var(--line-dark); }
.service-item > button { width: 100%; min-height: 100px; display: grid; grid-template-columns: 48px 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem 0; color: #8fa096; background: transparent; border: 0; text-align: left; transition: color 180ms ease; }
.service-item > button > span:nth-child(2) { font-size: clamp(1.35rem, 2.7vw, 2.3rem); font-weight: 650; letter-spacing: -.04em; }
.service-id { color: #647268; font-size: .7rem; letter-spacing: .1em; }
.service-item > button i { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; font-style: normal; transition: transform 180ms ease; }
.service-item.is-active > button { color: var(--white); }
.service-item.is-active > button i { color: var(--night); background: var(--mint); border-color: var(--mint); transform: rotate(45deg); }
.service-detail { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 450ms ease, opacity 300ms ease, padding 450ms ease; }
.service-item.is-active .service-detail { max-height: 360px; padding: 0 0 2rem 4rem; opacity: 1; }
.service-detail p { max-width: 630px; color: #a4b2a8; }
.service-detail ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.service-detail li { padding: .45rem .7rem; color: #9eb0a3; border: 1px solid var(--line-dark); border-radius: 99px; font-size: .72rem; }

.portfolio { background: #ecebe4; }
.project-stack { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.project-card { position: relative; min-height: 660px; display: grid; grid-template-columns: 1.28fr .72fr; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); transform-style: preserve-3d; transition: transform 180ms ease; }
.project-dark { color: #e7efe9; background: #07120d; }
.project-light { color: var(--ink); background: #f9f7f0; }
.project-media { position: relative; min-height: 580px; overflow: hidden; transform: translateZ(18px); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-glare { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--glare-x,50%) var(--glare-y,50%), rgba(255,255,255,.28), transparent 32%); pointer-events: none; transition: opacity 200ms ease; }
.project-card:hover .project-glare { opacity: .35; }
.project-info { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3.5rem); transform: translateZ(34px); }
.project-info h3 { margin-bottom: 1.2rem; font-size: clamp(2.1rem, 4vw, 4rem); }
.project-info p { color: #9dafA2; }
.project-light .project-info p { color: var(--muted); }
.project-number { color: var(--mint) !important; font-size: .7rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.project-light .project-number { color: var(--green) !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: .45rem .7rem; border: 1px solid currentColor; border-radius: 99px; font-size: .68rem; font-weight: 700; opacity: .65; }
.project-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color 180ms ease; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link-muted { opacity: .55; }

.method { overflow: hidden; }
.method::after { content: ""; position: absolute; right: -20%; bottom: -40%; width: 60vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(45,122,80,.18), transparent 65%); }
.timeline { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.timeline article { position: relative; min-height: 330px; padding: 2rem; border-right: 1px solid var(--line-dark); }
.timeline article:last-child { border-right: 0; }
.timeline article > span { color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.timeline article > div { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; }
.timeline h3 { color: var(--white); }
.timeline p { margin-bottom: 0; color: #89998e; }

.diagnostic { overflow: hidden; background: var(--cream); }
.diagnostic-glow { position: absolute; left: -20%; bottom: -60%; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(126,224,168,.35), transparent 64%); filter: blur(30px); }
.diagnostic-grid { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.diagnostic-copy { position: sticky; top: calc(var(--header-height) + 3rem); }
.diagnostic-copy h2 { max-width: 10ch; }
.diagnostic-copy > p:last-child { max-width: 440px; color: var(--muted); }
.diagnostic-panel { min-height: 590px; padding: clamp(1.6rem, 4vw, 3rem); background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.diagnostic-progress { height: 4px; margin-bottom: 3rem; overflow: hidden; background: #d9ddd7; border-radius: 99px; }
.diagnostic-progress span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, var(--green), var(--mint)); border-radius: inherit; transition: width 350ms ease; }
.diagnostic-panel fieldset { margin: 0; padding: 0; border: 0; }
.diagnostic-panel legend { width: 100%; margin-bottom: 2rem; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; }
.diagnostic-panel legend span { display: block; margin-bottom: .8rem; color: var(--green); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.diagnostic-panel fieldset > button { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; padding: 1rem 1.2rem; color: #344137; background: rgba(255,255,255,.62); border: 1px solid #d3dad4; border-radius: 13px; font-weight: 700; text-align: left; transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.diagnostic-panel fieldset > button::after { content: "→"; }
.diagnostic-panel fieldset > button:hover { color: var(--white); background: var(--forest); border-color: var(--forest); transform: translateX(5px); }
.diagnostic-result h3 { max-width: 13ch; font-size: clamp(2rem, 4vw, 3.7rem); }
.diagnostic-result > p:not(.eyebrow) { max-width: 560px; margin-bottom: 2rem; color: var(--muted); font-size: 1.05rem; }
.restart-button { display: block; margin-top: 1.2rem; padding: .6rem 0; color: var(--muted); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-size: 1.12rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: transform 180ms ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { max-width: 700px; padding: 0 3.5rem 1.8rem 0; color: var(--muted); }

.contact-section { border-top: 1px solid var(--line-dark); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-copy h2 { max-width: 10ch; color: var(--white); }
.contact-copy > p:not(.eyebrow):not(.section-index) { max-width: 520px; color: #91a196; }
.contact-list { display: grid; margin-top: 2.5rem; font-style: normal; border-top: 1px solid var(--line-dark); }
.contact-list a, .contact-list > div { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contact-list span { color: #68786d; font-size: .67rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-list strong { color: #d9e7dd; text-align: right; }
.contact-list a:hover strong { color: var(--mint); }

.contact-form { position: relative; padding: clamp(1.5rem, 4vw, 3rem); color: var(--ink); background: #f4f3ed; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); box-shadow: 0 30px 100px rgba(0,0,0,.26); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .42rem; color: #344137; font-size: .76rem; font-weight: 800; letter-spacing: .03em; }
.field label span { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: .78rem .9rem; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid #cbd2cc; border-radius: var(--radius-sm); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--forest); outline-color: var(--focus); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; margin: .5rem 0 1.25rem; color: #58635a; font-size: .86rem; }
.consent input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--forest); }
.consent a { color: var(--forest); font-weight: 800; }
.form-submit { width: 100%; }
.form-note { margin: .75rem 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.form-status { margin-bottom: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.is-success { color: var(--success); background: #e4f2e8; border: 1px solid #aed0b7; }
.form-status.is-error { color: var(--error); background: #fff0f0; border: 1px solid #e7b5b5; }

.whatsapp-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; min-height: 48px; display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; color: var(--night); background: var(--mint); border: 1px solid rgba(255,255,255,.5); border-radius: 99px; box-shadow: 0 16px 45px rgba(0,0,0,.23); font-size: .75rem; font-weight: 850; text-decoration: none; transition: transform 180ms ease; }
.whatsapp-float > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; color: var(--mint); background: var(--night); border-radius: 50%; }
.whatsapp-float:hover { transform: translateY(-3px); }

.site-footer { padding: 5rem 0 1.5rem; color: #89988e; background: #030a06; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-top > p { max-width: 520px; margin-bottom: 0; font-size: clamp(1.3rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.04em; text-align: right; }
.brand-footer { color: var(--white); font-size: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 3rem 0; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.footer-grid strong { margin-bottom: .5rem; color: #dce7df; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a { min-height: 34px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-grid a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom p { margin-bottom: 0; }

/* Case studies and legal pages */
.inner-page { color: #e8f1eb; background: var(--night); }
.inner-page .site-header { position: sticky; }
.case-hero { min-height: 72svh; display: flex; align-items: end; padding: 8rem 0 5rem; overflow: hidden; }
.case-hero::after { content: ""; position: absolute; width: 60vw; aspect-ratio: 1; top: -30vw; right: -15vw; border-radius: 50%; background: radial-gradient(circle, rgba(126,224,168,.22), transparent 65%); }
.case-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.case-hero h1 { max-width: 9ch; color: var(--white); }
.case-hero-copy { color: #9cafA1; }
.case-hero-copy p { font-size: 1.12rem; }
.case-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.case-meta span { display: block; color: #637269; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.case-meta strong { color: #dce7df; }
.case-showcase { padding: 0 0 7rem; background: var(--night); }
.case-browser { overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.browser-bar { height: 44px; display: flex; align-items: center; gap: .4rem; padding: 0 1rem; background: #102018; border-bottom: 1px solid var(--line-dark); }
.browser-bar i { width: 8px; height: 8px; background: #526058; border-radius: 50%; }
.case-browser img { width: 100%; }
.case-content { color: var(--ink); background: var(--paper); }
.case-section { display: grid; grid-template-columns: .35fr 1fr; gap: 3rem; padding: 5rem 0; border-bottom: 1px solid var(--line); }
.case-section h2 { max-width: 12ch; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.case-section-copy { max-width: 720px; }
.case-section-copy p { color: var(--muted); font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }
.feature-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.feature-grid h3 { font-size: 1.2rem; }
.feature-grid p { margin-bottom: 0; font-size: .92rem; }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 5rem 0; }
.next-project h2 { margin-bottom: 0; font-size: clamp(2rem,5vw,4rem); }

.legal-page { min-height: 70vh; padding: 6rem 0; color: var(--ink); background: var(--paper); }
.legal-content { max-width: 820px; }
.legal-content h1 { max-width: 16ch; font-size: clamp(2.7rem, 6vw, 5rem); }
.legal-content h2 { margin-top: 2.8rem; font-size: 1.75rem; letter-spacing: -.03em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content li { margin-bottom: .5rem; }
.back-link { display: inline-flex; margin-bottom: 2rem; color: var(--green); font-weight: 800; }

@media (max-width: 980px) {
  :root { --header-height: 74px; }
  .container { width: min(100% - 1.6rem, var(--container)); }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-height) 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .8rem; background: rgba(6,16,11,.97); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(18px); }
  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 52px; display: flex; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid var(--line-dark); }
  .hero-copy { width: 72%; }
  .hero-canvas { width: 75%; opacity: .72; }
  .section-heading, .manifesto-grid { grid-template-columns: 1fr; }
  .section-heading .section-index, .manifesto-grid > .section-index { margin-bottom: 0; }
  .service-layout { grid-template-columns: 1fr; }
  .service-visual { min-height: 440px; }
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 480px; }
  .timeline { grid-template-columns: repeat(2,1fr); }
  .timeline article:nth-child(2) { border-right: 0; }
  .timeline article:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .diagnostic-grid, .contact-grid, .faq-grid, .case-hero-inner { grid-template-columns: 1fr; }
  .diagnostic-copy { position: static; }
  .diagnostic-copy h2, .contact-copy h2 { max-width: 14ch; }
  .case-section { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 680px) {
  h1 { font-size: clamp(3.1rem, 16vw, 5.2rem); }
  h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .section { padding: 5.5rem 0; }
  .hero { min-height: 820px; align-items: flex-start; padding-top: 9rem; }
  .hero-copy { width: 100%; }
  .hero-lead { max-width: 92%; }
  .hero-canvas { inset: auto 0 0 auto; width: 100%; height: 52%; opacity: .68; }
  .hero-fallback { top: auto; bottom: 2%; right: -16%; width: 90vw; transform: none; }
  .hero-orbit-labels, .scroll-cue { display: none; }
  .hero-signals { gap: .8rem 1.2rem; }
  .button-group { flex-direction: column; align-items: stretch; }
  .button-group .button { width: 100%; }
  .split-heading { grid-template-columns: 1fr; align-items: start; }
  .manifesto::before { display: none; }
  .manifesto-copy { margin-left: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article { min-height: 135px; border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  .service-visual { min-height: 350px; transform: scale(.86); }
  .service-core { width: 140px; }
  .service-node { width: 86px; }
  .service-item > button { grid-template-columns: 32px 1fr auto; min-height: 86px; }
  .service-item.is-active .service-detail { padding-left: 0; }
  .project-card { min-height: 0; border-radius: var(--radius); }
  .project-media { min-height: 280px; }
  .project-info { padding: 1.5rem; }
  .timeline { grid-template-columns: 1fr; }
  .timeline article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .timeline article:last-child { border-bottom: 0; }
  .diagnostic-panel { min-height: 0; padding: 1.2rem; border-radius: var(--radius); }
  .diagnostic-panel fieldset > button { min-height: 60px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-list a, .contact-list > div { align-items: flex-start; flex-direction: column; justify-content: center; gap: .2rem; padding: .8rem 0; }
  .contact-list strong { text-align: left; overflow-wrap: anywhere; }
  .contact-form { padding: 1.2rem; border-radius: var(--radius); }
  .whatsapp-float > span:last-child { display: none; }
  .whatsapp-float { padding: .55rem; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-top > p { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .case-hero { min-height: 680px; padding-top: 6rem; }
  .case-meta, .feature-grid { grid-template-columns: 1fr; }
  .next-project { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-canvas { opacity: .35; }
}
