/* =========================================================
   YEŞİL UFUK — Business & Management Consulting
   Design tokens, layout, components, motion states
   ========================================================= */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --bg-3: #111;
  --ink: #fff;
  --prose: #ffffffb8;
  --secondary: #ffffff94;
  --mute: #ffffff85;
  --faint: #ffffff2e;
  --rule: #ffffff1f;
  --rule-2: #ffffff33;
  --accent: #8fe3a8;
  --accent-dim: #8fe3a833;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --bar: 68px;
}

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.menu-open, html.menu-open body { overflow: hidden; overscroll-behavior: none; }
::selection { background: var(--accent); color: #050505; }
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 400;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

/* Grain overlay */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Typography ---------- */
.display {
  font-size: clamp(3.1rem, 10.4vw, 10.5rem);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 500;
}
.h2 {
  font-size: clamp(2.5rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 500;
}
.h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 500;
}
.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.32rem);
  line-height: 1.5;
  color: var(--prose);
  max-width: 38ch;
  letter-spacing: -.01em;
}
.prose { color: var(--prose); max-width: 56ch; }
.accent { color: var(--accent); }

/* Masked line reveal */
.split .ln { display: block; overflow: hidden; padding: .14em 0 .1em; margin: -.14em 0 -.1em; }
.split .ln > span { display: inline-block; will-change: transform; padding-right: .1em; margin-right: -.1em; }

/* Ink (scroll-filled words) */
[data-ink] .w {
  --p: -12;
  background-image: linear-gradient(90deg, var(--ink) calc(var(--p) * 1%), var(--faint) calc((var(--p) + 12) * 1%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 14px;
  height: var(--h); padding: 0 22px 0 24px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { border-color: var(--accent); }
.btn .arr { display: inline-block; width: 14px; height: 14px; position: relative; overflow: hidden; }
.btn .arr::before, .btn .arr::after {
  content: "→"; position: absolute; inset: 0; line-height: 14px; text-align: center;
  transition: transform .5s var(--ease);
}
.btn .arr::after { transform: translateX(-140%); }
.btn:hover .arr::before { transform: translateX(140%); }
.btn:hover .arr::after { transform: translateX(0); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 16px 0 18px; font-size: 11px; }
.btn__label { position: relative; display: inline-block; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--secondary);
  transition: color .3s var(--ease);
}
.link-arrow i { font-style: normal; transition: transform .45s var(--ease); }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--bar);
  transition: transform .6s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-scrolled {
  background: #050505b8;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--rule);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { width: 30px; height: 30px; }
.logo__mark .sun { transform-origin: 16px 20px; transition: transform .8s var(--ease); }
.logo:hover .logo__mark .sun { transform: translateY(-3px); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__word { font-weight: 600; letter-spacing: -.03em; font-size: 17px; }
.logo__sub { font-size: 11px; color: var(--secondary); margin-top: 4px; letter-spacing: .14em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 14px; color: var(--prose);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link .chev { width: 8px; height: 8px; transition: transform .4s var(--ease); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__item { position: relative; }

.mega {
  position: absolute; top: calc(100% + 14px); left: -24px;
  width: min(620px, 80vw);
  background: #0a0a0af2;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--rule); border-radius: 16px;
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.mega__head { display: flex; justify-content: space-between; padding: 12px 14px 10px; color: var(--mute); }
.mega__a {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start;
  padding: 14px; border-radius: 10px;
  transition: background-color .3s var(--ease);
}
.mega__a:hover, .mega__a:focus-visible { background: #ffffff0d; }
.mega__a .n { color: var(--mute); padding-top: 3px; }
.mega__a b { display: block; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.mega__a span.d { display: block; color: var(--secondary); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.mega__a .go { color: var(--mute); transition: transform .45s var(--ease), color .3s; padding-top: 2px; }
.mega__a:hover .go { transform: translateX(4px); color: var(--accent); }
.mega__foot { border-top: 1px solid var(--rule); margin-top: 6px; padding: 12px 14px 8px; }

.hdr__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.lang button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  padding: 6px 9px; border-radius: 999px; color: var(--secondary);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.sound { display: inline-flex; align-items: center; gap: 9px; color: var(--secondary); padding: 8px 6px; transition: color .3s; }
.sound:hover { color: var(--ink); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s var(--ease); }
.sound[aria-pressed="true"] { color: var(--ink); }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1s var(--ease-io) infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-2); border-radius: 50%; position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:nth-of-type(1) { top: 18px; }
.burger i:nth-of-type(2) { top: 25px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Mobile menu */
.mnav {
  position: fixed; inset: 0; z-index: 75;
  background: var(--bg);
  padding: calc(var(--bar) + 28px) var(--gutter) 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  overflow-y: auto; overscroll-behavior: contain; gap: 36px;
}
.mnav__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(2.1rem, 9vw, 3.4rem); letter-spacing: -.045em; line-height: 1.05; font-weight: 500;
}
.mnav__list a .n { color: var(--mute); }
.mnav__list a[aria-current="page"] .n { color: var(--accent); }
.mnav__list li { overflow: hidden; }
.mnav__list li > a { will-change: transform; }
.mnav__foot { display: grid; gap: 18px; color: var(--secondary); }
.mnav__foot .lang { justify-self: start; }

/* Curtain page transition */
.curtain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: var(--bg-2);
  display: grid; place-items: center;
  transform: translateY(105%);
}
.js .curtain { transform: translateY(0); }
.js:not(.curtain-ok) .curtain { animation: curtainFallback .01s 3.5s forwards; }
@keyframes curtainFallback { to { transform: translateY(-105%); } }
.curtain__in { display: grid; justify-items: center; gap: 18px; }
.curtain__mark { width: 56px; height: 56px; }
.curtain__bar { width: 120px; height: 1px; background: var(--rule); overflow: hidden; }
.curtain__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; animation: load 1.1s var(--ease-io) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.curtain__label { color: var(--secondary); }

/* ---------- Sections ---------- */
main { position: relative; z-index: 1; }
.sec { position: relative; padding: clamp(96px, 14vw, 200px) 0; }
.sec--tight { padding: clamp(72px, 9vw, 128px) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--secondary); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eyebrow--plain::before { display: none; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-bottom: clamp(56px, 8vw, 112px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head .lead { justify-self: end; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--bar) + 40px) 0 28px;
  overflow: hidden;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__still, .hero__still img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero__still img { object-fit: cover; object-position: 62% 50%; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__canvas.is-live { opacity: 1; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #050505b3 0%, transparent 22%, transparent 70%, var(--bg) 100%), radial-gradient(70% 55% at 85% 78%, #050505a6, transparent 80%), radial-gradient(90% 70% at 18% 72%, #0505058c 0%, transparent 70%);
}
.hero > .wrap { position: relative; z-index: 2; }
.hero__cols { position: absolute; inset: 0; z-index: 1; pointer-events: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero__cols i { border-left: 1px solid #ffffff0a; }
.hero__cols i:last-child { border-right: 1px solid #ffffff0a; }
@media (max-width: 900px) { .hero__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hero__cols i:nth-child(n+5) { display: none; } .hero__cols i:nth-child(4) { border-right: 1px solid #ffffff0a; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 36px 64px; align-items: end; }
.hero__grid > :first-child { grid-column: 1 / -1; }
.hero__side { grid-column: 2; }
.hero .display { font-size: clamp(2.2rem, 6.2vw, 7rem); overflow-wrap: anywhere; }
.hero h1 { margin-top: 26px; }
.hero__side { display: grid; gap: 28px; justify-items: start; padding-bottom: 12px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta {
  margin-top: clamp(48px, 8vh, 96px); padding-top: 18px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; color: var(--secondary);
}
.hero__meta > :last-child { justify-self: end; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: var(--rule-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Page hero (inner pages) */
.phero { padding: calc(var(--bar) + clamp(80px, 14vh, 160px)) 0 clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 36px 64px; align-items: end; }
.phero__grid > :first-child { grid-column: 1 / -1; }
.phero__grid > .lead { grid-column: 2; }
.phero .display { font-size: clamp(2.35rem, 8.9vw, 10rem); }
.phero h1 { margin-top: 24px; }
.phero__rule { margin-top: clamp(56px, 8vw, 96px); height: 1px; background: var(--rule); transform-origin: left; }
.phero__lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(80px, 12vw, 180px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; }
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 0; margin: 40px 0 clamp(56px, 8vw, 110px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { display: inline-flex; align-items: baseline; gap: 14px; padding: 0 clamp(24px, 3vw, 48px); font-size: clamp(1.7rem, 3.6vw, 3.3rem); letter-spacing: -.04em; font-weight: 500; white-space: nowrap; }
.marquee__item .n { color: var(--accent); font-size: 12px; transform: translateY(-1.1em); }
.marquee__sep { width: 8px; height: 8px; border: 1px solid var(--rule-2); transform: rotate(45deg); flex-shrink: 0; }
.manifesto__text { font-size: clamp(1.9rem, 4.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 500; max-width: 22ch; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.step { position: relative; padding: 28px 28px 32px 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule); }
.step__n { color: var(--accent); }
.step h3 { margin: 48px 0 14px; }
.step p { color: var(--secondary); font-size: 15px; max-width: 30ch; }
.step__bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.step + .step .step__bar { left: 0; }

/* ---------- Operating model diagram ---------- */
.model { position: relative; height: 320vh; margin-top: clamp(80px, 10vw, 140px); }
.model__stage {
  position: sticky; top: var(--bar);
  height: calc(100vh - var(--bar));
  display: grid; grid-template-rows: auto 1fr auto; gap: 18px;
  padding: 20px var(--gutter) 24px;
}
@supports (height: 100svh) { .model__stage { height: calc(100svh - var(--bar)); } }
.model__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--secondary); }
.model__count { display: inline-flex; gap: 10px; align-items: center; }
.model__count b { color: var(--ink); font-weight: 400; }
.model__track { width: 120px; height: 1px; background: var(--rule-2); overflow: hidden; }
.model__track i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.model__canvas { position: relative; min-height: 0; border: 1px solid var(--rule); border-radius: 18px; background: radial-gradient(80% 60% at 50% 40%, #0e0e0e 0%, #070707 100%); overflow: hidden; }
.model__canvas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle at 1px 1px, #ffffff1a 1px, transparent 0);
  background-size: 26px 26px;
}
.model__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.model__info { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px 40px; align-items: start; min-height: 74px; }
.model__info .k { color: var(--accent); }
.model__info h4 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.03em; font-weight: 500; line-height: 1.1; }
.model__info p { color: var(--secondary); max-width: 60ch; font-size: 15px; }
.model__info .hint { color: var(--mute); text-align: right; }
.model__info .sub { color: var(--mute); margin-top: 6px; }

.dg-lane { fill: none; stroke: var(--rule); stroke-dasharray: 3 6; }
.dg-lane-label { fill: var(--mute); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.dg-edge { fill: none; stroke: #ffffff59; stroke-width: 1.2; }
.dg-edge--ctrl { stroke: #ffffff33; stroke-dasharray: 4 5; }
.dg-edge--loop { stroke: var(--accent-dim); stroke-width: 1.2; }
.dg-edge--glow { stroke: var(--accent); stroke-width: 1.6; opacity: 0; transition: opacity .4s var(--ease); }
.dg-node { cursor: pointer; outline: none; }
.dg-node .body { fill: #0b0b0b; stroke: #ffffff40; stroke-width: 1; transition: stroke .35s var(--ease), fill .35s var(--ease); }
.dg-node .n { fill: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.dg-node .t { fill: var(--ink); font-family: var(--font); font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.dg-node .s { fill: var(--secondary); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.dg-node .dot { fill: var(--accent); opacity: 0; transition: opacity .35s; }
.dg-node--ctrl .body { fill: #080808; stroke-dasharray: 3 3; }
.dg-node--ctrl .t { font-size: 15px; }
.dg-node.is-active .body, .dg-node:hover .body, .dg-node:focus-visible .body { stroke: var(--accent); fill: #0d130f; }
.dg-node.is-active .dot { opacity: 1; }
.model__svg.has-focus .dg-node:not(.is-active) { opacity: .45; transition: opacity .35s; }
.model__svg .dg-node { transition: opacity .35s; }
.dg-pulse { fill: var(--accent); }
.model__svg.is-vertical .dg-node .s, .model__svg.is-vertical .dg-node .n, .model__svg.is-vertical .dg-lane-label { font-size: 12.5px; letter-spacing: .04em; }
.dg-pulse--ctrl { fill: #fff; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  grid-column: span 3;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 380px; padding: 32px;
  border: 1px solid var(--rule); border-radius: 18px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), #8fe3a81f, transparent 60%);
  transition: opacity .5s var(--ease);
}
.card:hover, .card:focus-within { border-color: var(--rule-2); }
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; color: var(--mute); }
.card__icon { width: 44px; height: 44px; color: var(--ink); }
.card__icon path, .card__icon circle, .card__icon rect, .card__icon line, .card__icon polyline { fill: none; stroke: currentColor; stroke-width: 1.2; }
.card h3 { margin-bottom: 12px; max-width: 18ch; }
.card p { color: var(--secondary); font-size: 15px; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 10px; transition: border-color .3s, color .3s; }
.card:hover .tags li { border-color: var(--rule-2); color: var(--prose); }
.card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--rule); }
.card__link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Audience rows ---------- */
.rows { border-top: 1px solid var(--rule); }
.row {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr) 140px; gap: 24px; align-items: center;
  padding: 34px 0; border-bottom: 1px solid var(--rule); overflow: hidden;
}
.row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.row > * { position: relative; z-index: 1; transition: color .45s var(--ease); }
.row .n { color: var(--mute); }
.row h3 { font-size: clamp(1.6rem, 3.2vw, 2.9rem); letter-spacing: -.045em; font-weight: 500; line-height: 1; }
.row p { color: var(--secondary); max-width: 42ch; }
.row .r { text-align: right; color: var(--accent); }
@media (hover: hover) {
  .row:hover::before { transform: scaleY(1); }
  .row:hover > *, .row:hover .n, .row:hover p { color: var(--bg); }
  .row:hover .r { color: #2b7a46; }
}

/* ---------- CTA band ---------- */
.cta { position: relative; padding: clamp(110px, 16vw, 240px) 0; border-top: 1px solid var(--rule); overflow: hidden; text-align: left; }
.cta__glow { position: absolute; left: 50%; bottom: -55%; width: 140vw; height: 90vw; max-height: 1200px; transform: translateX(-50%); background: radial-gradient(closest-side, #8fe3a82e, transparent 70%); pointer-events: none; }
.cta__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.cta .h2 { font-size: clamp(2.8rem, 8.6vw, 8.6rem); }
.cta__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; margin-top: 48px; }
.cta__row .lead { max-width: 44ch; }
.btn--xl { --h: 64px; padding: 0 28px 0 32px; font-size: 13px; }

/* ---------- Footer ---------- */
.ftr { position: relative; border-top: 1px solid var(--rule); padding: 72px 0 28px; overflow: hidden; }
.ftr > .wrap { container-type: inline-size; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.ftr h4 { color: var(--mute); margin-bottom: 22px; font-weight: 400; }
.ftr li + li { margin-top: 10px; }
.ftr a.fl { color: var(--prose); font-size: 14.5px; position: relative; transition: color .3s; }
.ftr a.fl:hover { color: var(--ink); }
.ftr a.fl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.ftr a.fl:hover::after { transform: scaleX(1); transform-origin: left; }
.ftr address { font-style: normal; color: var(--prose); font-size: 14.5px; line-height: 1.6; }
.ftr__tag { font-size: 22px; letter-spacing: -.03em; font-weight: 500; margin-bottom: 12px; }
.ftr__blurb { color: var(--secondary); font-size: 14px; max-width: 36ch; }
.ftr__legal { color: var(--secondary); font-size: 13px; }
.ftr__legal p + p { margin-top: 8px; }
.ftr__word {
  margin-top: 72px; font-size: min(21vw, 304px); line-height: 1.05; letter-spacing: -.07em; font-weight: 600;
  white-space: nowrap; color: #ffffff12;
  user-select: none; display: flex; overflow: hidden; padding: .02em 0 .06em;
}
.ftr__word span { display: inline-block; flex: 0 0 auto; will-change: transform; transition: color .6s var(--ease); }
@supports (font-size: 1cqw) { .ftr__word { font-size: 23cqw; } }
.ftr__word:hover span { color: #ffffff1f; }
.ftr__word span:hover { color: var(--accent); transition-duration: .1s; }
.ftr__bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mute); }
.ftr__bottom button { color: var(--secondary); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 8px; }
.ftr__bottom button:hover { color: var(--ink); }

/* ---------- Services page ---------- */
.svc { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px 80px; padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--rule); scroll-margin-top: var(--bar); }
.svc__aside { position: relative; }
.svc__sticky { position: sticky; top: calc(var(--bar) + 110px); }
.svc__num { font-size: clamp(5rem, 13vw, 12rem); line-height: .8; letter-spacing: -.07em; font-weight: 500; color: #ffffff1a; display: block; overflow: hidden; padding-top: .08em; }
.svc__num span { display: inline-block; }
.svc__icon { width: 56px; height: 56px; margin-top: 36px; color: var(--accent); }
.svc__icon * { fill: none; stroke: currentColor; stroke-width: 1.1; }
.svc h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); letter-spacing: -.045em; line-height: 1; font-weight: 500; margin: 14px 0 28px; max-width: 16ch; }
.svc__long { font-size: clamp(1.06rem, 1.4vw, 1.25rem); color: var(--prose); max-width: 52ch; }
.svc__list { margin-top: 48px; border-top: 1px solid var(--rule); counter-reset: li; }
.svc__list li { counter-increment: li; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; position: relative; }
.svc__list li::before { content: counter(li, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--mute); padding-top: 4px; letter-spacing: .08em; }
.svc__list li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc__list li:hover::after, .svc__list li:focus-within::after { transform: scaleX(1); }
.svc .tags { margin-top: 32px; }
.svc__nav { position: sticky; top: var(--bar); z-index: 5; transition: top .6s var(--ease); background: #050505d9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.svc__nav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.svc__nav ul::-webkit-scrollbar { display: none; }
.svc__nav a { display: inline-flex; gap: 8px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; color: var(--secondary); font-size: 13.5px; transition: color .3s, background-color .3s; }
.svc__nav a .mono { font-size: 11px; color: var(--mute); }
.svc__nav a:hover { color: var(--ink); }
.svc__nav a.is-active { background: var(--ink); color: var(--bg); }
.svc__nav a.is-active .mono { color: #0008; }
.hdr.is-hidden ~ main .svc__nav { top: 0; }
.nocase { text-transform: none; }
.note { margin-top: 0; padding: 28px 0 0; color: var(--mute); font-size: 13.5px; max-width: 80ch; }

/* ---------- About ---------- */
.principles { border-top: 1px solid var(--rule); }
.principle { display: grid; grid-template-columns: 80px minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; padding: 40px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.principle .n { color: var(--accent); padding-top: 10px; }
.principle h3 { font-size: clamp(1.9rem, 3.5vw, 3.6rem); letter-spacing: -.05em; line-height: 1; font-weight: 500; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.principle p { color: var(--secondary); font-size: 17px; max-width: 46ch; padding-top: 8px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tcard { position: relative; border: 1px solid var(--rule); border-radius: 18px; padding: 28px; min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; background: var(--bg-2); overflow: hidden; }
.tcard .mono { color: var(--mute); }
.tcard h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; font-weight: 500; line-height: 1; margin: 48px 0 16px; }
.tcard p { color: var(--secondary); }
.tcard__ring { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; opacity: .6; }
.tcard__ring circle { fill: none; stroke: var(--rule-2); }
.record { border-top: 1px solid var(--rule); }
.record div { display: grid; grid-template-columns: minmax(0, .5fr) minmax(0, 1.5fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.record dt { color: var(--mute); }
.record dd { font-size: clamp(1rem, 1.4vw, 1.2rem); letter-spacing: -.01em; }

/* ---------- About: direction (sun over the horizon) ---------- */
.dir { position: relative; }
.dir__stage {
  position: relative; width: 100%; aspect-ratio: 1200 / 400; max-height: 50vh; min-height: 240px;
  border-radius: 18px; overflow: hidden; background: #050807;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
@supports (max-height: 50svh) { .dir__stage { max-height: 50svh; } }
.dir__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dir__stage.no-gl { background: radial-gradient(60% 70% at 50% 75%, #8fe3a826, transparent 70%), linear-gradient(180deg, #050807, #0b1c15 66%, #050505 66.5%); }
.dir__hud { position: absolute; left: clamp(28px, 7%, 80px); top: 20px; display: flex; gap: 10px; color: var(--ink); text-shadow: 0 1px 8px #000; }
.dir__hud .sep { color: var(--accent); }
.dir__track { position: absolute; left: clamp(28px, 7%, 80px); right: clamp(28px, 7%, 80px); bottom: 16px; height: 1px; background: #ffffff1f; }
.dir__track i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dir__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dir__col { position: relative; padding: 32px clamp(20px, 2.6vw, 40px) 22px; border-left: 1px solid var(--rule); cursor: pointer; outline: none; transition: background-color .4s var(--ease); }
.dir__col:hover h3 { color: #ffffff8c; }
.dir__col.is-active:hover h3 { color: var(--ink); }
.dir__col:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); border-radius: 12px; }
.dir__col:first-child { border-left: 0; }
.dir__col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.dir__col.is-active::before { transform: scaleX(1); }
.dir__col::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #8fe3a812, transparent 65%); opacity: 0; transition: opacity .9s var(--ease); }
.dir__col.is-active::after { opacity: 1; }
.dir__col { isolation: isolate; }
.dir__k { color: var(--mute); }
.dir__k b { color: var(--accent); font-weight: 400; margin-right: 8px; }
.dir__col h3 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; margin: 22px 0 18px; color: var(--mute); transition: color .7s var(--ease), transform .9s var(--ease); }
.dir__col p { color: var(--mute); font-size: 17px; max-width: 32ch; transition: color .7s var(--ease); }
.dir__col.is-active h3 { color: var(--ink); }
.dir__col.is-active p { color: var(--prose); }
.dir__mini { display: none; }
.dir__mini svg { width: 100%; height: auto; display: block; }
.dir__mini line { stroke: #ffffff4d; }
.dir__mini circle { fill: var(--accent); }

/* ---------- About: company record ---------- */
.reg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; perspective: 1400px; }
.reg__card, .reg__place { --mx: 50%; --my: 50%; transform-style: preserve-3d; will-change: transform; }
.reg__card::after, .reg__place::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), #8fe3a814, transparent 55%);
  transition: opacity .5s var(--ease);
}
.reg__card:hover::after, .reg__place:hover::after { opacity: 1; }
.reg__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 18px; padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(160deg, #0e1110 0%, #080808 62%);
}
.reg__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 105% -10%, #ffffff07 0 1px, transparent 1px 16px);
  -webkit-mask-image: linear-gradient(200deg, #000 0%, transparent 65%); mask-image: linear-gradient(200deg, #000 0%, transparent 65%);
}
.reg__top { display: flex; justify-content: space-between; align-items: center; color: var(--mute); padding-bottom: 18px; margin-bottom: 34px; border-bottom: 1px dashed var(--rule-2); }
.reg__stamp { border: 1px solid var(--accent); color: var(--accent); padding: 8px 14px; border-radius: 6px; letter-spacing: .14em; transform: rotate(-4deg); }
.reg__lbl { display: block; color: var(--mute); margin-bottom: 12px; }
.reg__name { font-size: clamp(1.7rem, 2.7vw, 2.8rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 500; }
.reg__meta { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 24px 44px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); }
.reg__val { font-size: 18px; letter-spacing: -.02em; }
.reg__langs { display: flex; gap: 6px; }
.reg__langs li { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--prose); border: 1px solid var(--rule-2); border-radius: 999px; padding: 6px 12px; }
.reg__mrz { margin-top: auto; padding-top: 34px; display: grid; gap: 4px; color: #ffffff3d; font-size: 12px; letter-spacing: .05em; white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.reg__seal { position: absolute; top: 96px; right: clamp(20px, 3vw, 40px); width: 112px; height: 112px; opacity: .7; }
.reg__seal circle { fill: none; stroke: var(--rule-2); }
.reg__seal text { fill: var(--mute); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; transform-box: view-box; transform-origin: 60px 60px; animation: sealSpin 36s linear infinite; }
.reg__seal line, .reg__seal path { fill: none; stroke: var(--accent); stroke-width: 1.4; }
@keyframes sealSpin { to { transform: rotate(360deg); } }

.reg__place { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; background: var(--bg-2); transition: border-color .4s var(--ease); }
.reg__place:hover { border-color: var(--rule-2); }
.reg__map { width: 100%; height: auto; flex: 1; min-height: 220px; display: block; border-bottom: 1px solid var(--rule); }
.reg__map .blocks rect { fill: #111413; }
.reg__map .park { fill: #0f1d16; }
.reg__map .streets path { fill: none; stroke: #ffffff10; stroke-width: 4; stroke-linecap: round; transition: stroke .5s var(--ease); }
.reg__place:hover .reg__map .streets path { stroke: #ffffff1a; }
.reg__map .e5 { fill: none; stroke: #ffffff2b; stroke-width: 11; stroke-linecap: round; }
.reg__map .e5-flow { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 14; opacity: .7; animation: e5flow 1.6s linear infinite; }
@keyframes e5flow { to { stroke-dashoffset: -34; } }
.reg__map .coast { fill: none; stroke: #8fe3a84d; stroke-width: 1.2; }
.reg__map .wave { fill: none; stroke: #8fe3a82e; stroke-width: 1; animation: waveDrift 6s ease-in-out infinite alternate; }
.reg__map .w2 { animation-delay: -3s; }
@keyframes waveDrift { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
.reg__map .sea-l, .reg__map .road-l, .reg__map .coord, .reg__map .scale text, .reg__map .compass text { fill: var(--secondary); font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.reg__map .sea-l { fill: #8fe3a866; letter-spacing: .3em; font-size: 11px; }
.reg__map .scale path { fill: none; stroke: var(--secondary); stroke-width: 1; }
.reg__map .compass circle { fill: #0c0d0dcc; stroke: var(--rule-2); }
.reg__map .compass path { fill: var(--accent); }
.reg__map .pin { transition: transform .5s var(--ease); }
.reg__map .drop { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; animation: pinBob 2.6s var(--ease-io) infinite; }
.reg__map .eye { fill: #06100b; animation: pinBob 2.6s var(--ease-io) infinite; }
@keyframes pinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.reg__map .ping { fill: none; stroke: var(--accent); transform-box: fill-box; transform-origin: center; animation: ping 2.2s var(--ease) infinite; }
.reg__map .tag rect { fill: #0c0d0de6; stroke: #8fe3a866; }
.reg__map .tag text { fill: var(--ink); font-family: var(--font); font-size: 11px; font-weight: 500; }
.reg__map .tag { opacity: .92; transition: opacity .4s; }
.reg__place:hover .reg__map .tag { opacity: 1; }
.reg__addr { padding: 24px clamp(20px, 2.4vw, 32px) 26px; display: grid; gap: 12px; }
.reg__addr address { font-style: normal; font-size: clamp(14px, 1.05vw, 15.5px); line-height: 1.6; color: var(--ink); }
.reg__addr address > span { display: block; }
@media (min-width: 1200px) { .reg__addr address > span { white-space: nowrap; } }
.reg__place:hover .link-arrow { color: var(--ink); }
.reg__place:hover .link-arrow i { transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .dir__stage { aspect-ratio: 4 / 3; max-height: 46vh; }
  .dir__cols { grid-template-columns: minmax(0, 1fr); }
  .dir__col, .dir__col:first-child { padding: 22px 4px 24px; border-left: 0; border-top: 1px solid var(--rule); }
  .dir__col h3 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin: 12px 0 10px; }
  .dir__col::before { width: 56px; }
  .dir__mini { display: block; margin-bottom: 20px; max-width: 320px; }
  .reg { grid-template-columns: minmax(0, 1fr); }
  .reg__meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reg__mrz { font-size: 11px; }
  .reg__seal { display: none; }
  .reg__name { padding-right: 0; }
  .reg__addr address { font-size: 16px; }
}

/* ---------- Contact ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.timeline__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
.timeline__line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.tl { position: relative; padding: 40px 18px 0 0; }
.tl__dot { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--rule-2); background: var(--bg); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.tl.is-on .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px #8fe3a81a; }
.tl .mono { color: var(--mute); }
.tl h3 { font-size: 18px; letter-spacing: -.02em; font-weight: 500; margin: 14px 0 10px; line-height: 1.2; }
.tl p { color: var(--secondary); font-size: 14px; line-height: 1.5; }

.brief { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; grid-column: span 1; padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; left: 0; top: 40px; color: var(--secondary); font-size: 16px; pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease), color .3s; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0;
  color: var(--ink); font: inherit; font-size: 17px; padding: 16px 0 14px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { cursor: pointer; padding-right: 28px; }
.field select option { background: #111; color: #fff; }
.field--select::after { content: ""; position: absolute; right: 4px; top: 46px; width: 7px; height: 7px; border-right: 1px solid var(--secondary); border-bottom: 1px solid var(--secondary); transform: rotate(45deg); pointer-events: none; }
/* custom dropdown (assets/js/select.js) */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; overflow: hidden; }
.field--select.has-dd::after { display: none; }
.dd { position: relative; }
.dd__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0 14px; border-bottom: 1px solid var(--rule-2);
  font-size: 17px; text-align: left; color: var(--ink); outline: none;
}
.dd__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s var(--ease); }
.dd__val.is-ph { color: var(--secondary); }
.dd__btn:hover .dd__val.is-ph { color: var(--prose); }
.dd__chev { flex-shrink: 0; width: 22px; height: 22px; padding: 5px; border: 1px solid var(--rule-2); border-radius: 50%; color: var(--secondary); transition: transform .5s var(--ease), color .3s, border-color .3s, background-color .3s; }
.dd__btn:hover .dd__chev, .dd.is-open .dd__chev { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.field .dd:focus-within ~ .field__line { transform: scaleX(1); }
.field.is-invalid .dd__btn { border-bottom-color: #ff8a80; }
.dd__panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border: 1px solid var(--rule-2); border-radius: 14px;
  background: #0d0d0df5;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -24px #000, 0 0 0 1px #00000080;
  outline: none;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  clip-path: inset(0 0 100% 0 round 14px);
  transition: opacity .3s var(--ease), transform .5s var(--ease), clip-path .55s var(--ease), visibility 0s .55s;
  scrollbar-width: thin; scrollbar-color: #ffffff33 transparent;
}
.dd--up .dd__panel { top: auto; bottom: calc(100% + 10px); transform: translateY(6px); clip-path: inset(100% 0 0 0 round 14px); }
.dd.is-open .dd__panel { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 0 0 0 round 14px); transition: opacity .3s var(--ease), transform .5s var(--ease), clip-path .55s var(--ease), visibility 0s; }
.dd__opt {
  position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: 9px; cursor: pointer;
  font-size: 15px; line-height: 1.35; color: var(--prose);
  opacity: 0; transform: translateY(6px);
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .4s var(--ease), transform .5s var(--ease);
}
.dd.is-open .dd__opt { opacity: 1; transform: none; transition-delay: 0s, 0s, calc(var(--i) * 35ms + 80ms), calc(var(--i) * 35ms + 80ms); }
.dd__opt + .dd__opt::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px; background: var(--rule); }
.dd__opt .n { color: var(--mute); transition: color .25s; }
.dd__opt .t { transition: transform .45s var(--ease); }
.dd__opt.is-active { background: #ffffff0f; color: var(--ink); }
.dd__opt.is-active .t { transform: translateX(4px); }
.dd__opt.is-active::before, .dd__opt.is-active + .dd__opt::before { opacity: 0; }
.dd__opt[aria-selected="true"] { color: var(--ink); }
.dd__opt[aria-selected="true"] .n { color: var(--accent); }
.dd__check { width: 16px; height: 16px; color: var(--accent); }
.dd__check polyline { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .45s var(--ease) .05s; }
.dd__opt[aria-selected="true"] .dd__check polyline { stroke-dashoffset: 0; }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line, .field select:focus ~ .field__line { transform: scaleX(1); }
.field.is-filled label, .field input:focus + label, .field textarea:focus + label, .field--select label { transform: translateY(-30px) scale(.72); color: var(--mute); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: #ff8a80; }
.field__err { display: block; min-height: 22px; padding-top: 6px; font-size: 12px; color: #ff8a80; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; color: var(--secondary); font-size: 14px; line-height: 1.5; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .box { flex-shrink: 0; width: 20px; height: 20px; border: 1px solid var(--rule-2); border-radius: 5px; display: grid; place-items: center; margin-top: 1px; transition: background-color .3s, border-color .3s; }
.consent .box svg { width: 12px; height: 12px; stroke: var(--bg); stroke-width: 2; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .4s var(--ease); }
.consent input:checked + .box { background: var(--accent); border-color: var(--accent); }
.consent input:checked + .box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .box { outline: 1px solid var(--accent); outline-offset: 3px; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }
.consent.is-invalid .box { border-color: #ff8a80; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.form__note { color: var(--mute); }
.form__delivery { grid-column: 1 / -1; color: var(--secondary); font-size: 13px; line-height: 1.6; max-width: 60ch; margin-top: 14px; }
.form__status { grid-column: 1 / -1; margin-top: 20px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 12px; font-size: 14.5px; display: none; }
.form__status.is-ok { display: block; border-color: #8fe3a866; color: var(--accent); }
.form__status.is-err { display: block; border-color: #ff8a8066; color: #ff8a80; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.side { display: grid; gap: 14px; }
.side__box { border: 1px solid var(--rule); border-radius: 18px; padding: 24px; background: var(--bg-2); }
.side__box .mono { color: var(--mute); display: block; margin-bottom: 12px; }
.side__box address, .side__box a.big { font-style: normal; font-size: 16px; line-height: 1.55; color: var(--prose); }
.side__box a.big { display: inline-block; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.map { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 4 / 3; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.88) brightness(.95); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); pointer-events: none; }
.map__pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.03em; font-weight: 500; margin: 56px 0 16px; }
.legal p, .legal li { color: var(--prose); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { margin-top: 12px; }
.legal li { padding-left: 22px; position: relative; }
.legal li + li { margin-top: 8px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--accent); }
.legal .notice { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; color: var(--secondary); font-size: 14px; }

/* ---------- Cursor dot (desktop only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; width: 6px; height: 6px; margin: -3px 0 0 -3px; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent); opacity: 0; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s, background-color .3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 28px; height: 28px; margin: -14px 0 0 -14px; background: transparent; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Hero: landscape switcher ---------- */
.scene-switch { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: #05050566; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); justify-self: start; }
.scene-switch button { position: relative; overflow: hidden; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--secondary); padding: 7px 12px; border-radius: 999px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.scene-switch button:hover { color: var(--ink); }
.scene-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.scene-switch button i { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.scene-switch button.is-auto i { animation: scAuto 9s linear forwards; }
@keyframes scAuto { to { transform: scaleX(1); } }
.hero__meta { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; }

/* ---------- Home: tourism segments ---------- */
.tour__heading { font-size: clamp(2.25rem, 5.65vw, 5.4rem); }
.tour__stage { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 340px; max-height: 72vh; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: #050807; }
.tour__slides { position: absolute; inset: -3%; will-change: transform; transition: transform 1.2s var(--ease); }
.tour__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.tour__slide { --z0: 1; --z1: 1.065; --focus: 65% 50%; }
.tour__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus); transform: scale(var(--z0)); }
.tour__slide[data-slide="1"] { --focus: 66% 50%; }
.tour__slide[data-slide="2"] { --focus: 64% 50%; }
.tour__slide[data-slide="3"] { --focus: 62% 12%; }
.tour__slide.is-active { opacity: 1; }
.tour__slide.is-active img { animation: kenburns 9s linear forwards; }
.tour:not(.is-playing) .tour__slide.is-active img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(var(--z0)) translate3d(0, 0, 0); } to { transform: scale(var(--z1)) translate3d(-1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .tour__slide.is-active img { animation: none; } }
.tour__stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #050505e6 0%, #05050580 32%, transparent 58%), linear-gradient(0deg, #050505b3 0%, transparent 40%); }
.tour__stage.no-gl { background: radial-gradient(50% 60% at 62% 60%, #8fe3a826, transparent 70%), linear-gradient(180deg, #050807, #0b1c15 60%, #050505 60.5%); }
.tour__bars { position: absolute; z-index: 2; left: clamp(20px, 3.4vw, 44px); right: clamp(20px, 3.4vw, 44px); top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tour__toggle { position: absolute; z-index: 3; right: clamp(20px, 3.4vw, 44px); top: 36px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #ffffff40; border-radius: 999px; background: #050505b3; color: var(--ink); font-size: 10px; letter-spacing: .04em; transition: background-color .25s; }
.tour__toggle:hover, .tour__toggle:focus-visible { background: #050505eb; }
.tour__toggle i { width: 9px; height: 11px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.tour__toggle.is-paused i { width: 0; height: 0; border: 5px solid transparent; border-right: 0; border-left: 8px solid currentColor; }
.tour__bars i { height: 2px; background: #ffffff2e; border-radius: 2px; overflow: hidden; }
.tour__bars b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tour__panel { position: absolute; z-index: 2; left: clamp(20px, 3.4vw, 44px); bottom: clamp(22px, 3.4vw, 44px); max-width: 460px; display: grid; gap: 12px; justify-items: start; }
.tour__k { color: var(--accent); }
.tour__panel h3 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.tour__panel p { color: var(--prose); font-size: 16.5px; max-width: 40ch; }
.tour__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.tour__tab { position: relative; display: grid; gap: 8px; text-align: left; padding: 18px 18px 16px; color: var(--mute); border-top: 1px solid var(--rule); transition: color .35s var(--ease), background-color .35s var(--ease); border-radius: 0 0 12px 12px; }
.tour__tab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.tour__tab b { font-weight: 500; font-size: 17px; letter-spacing: -.02em; color: inherit; }
.tour__tab .mono { color: inherit; }
.tour__tab:hover { color: var(--prose); }
.tour__tab.is-active { color: var(--ink); background: linear-gradient(180deg, #8fe3a80f, transparent); }
.tour__tab.is-active::before { transform: scaleX(1); }
.tour__tab.is-active .mono { color: var(--accent); }
@media (max-width: 900px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .scene-switch { grid-column: 1 / -1; order: -1; justify-self: stretch; justify-content: space-between; }
  .tour__stage { aspect-ratio: 4 / 5; max-height: 78vh; }
  .tour__stage::after { background: linear-gradient(0deg, #050505f2 0%, #050505a6 38%, transparent 64%); }
  .tour__tabs { grid-template-columns: 1fr 1fr; }
  .hero::after { background: linear-gradient(180deg, #05050580, transparent 24%, #05050570 48%, #050505a6 76%, var(--bg)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .hdr__tools .lang, .hdr__tools .sound .mono { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 1; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
  .timeline__line { display: none; }
}
@media (max-width: 900px) {
  :root { --bar: 62px; }
  .hero__grid, .phero__grid, .sec-head, .brief, .svc { grid-template-columns: minmax(0, 1fr); }
  .hero__side, .phero__grid > .lead { grid-column: 1; }
  .sec-head .lead { justify-self: start; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta > :last-child { justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { border-bottom: 1px solid var(--rule); }
  .row { grid-template-columns: 48px minmax(0, 1fr); }
  .row p { grid-column: 2; }
  .row .r { grid-column: 2; text-align: left; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .principle { grid-template-columns: 48px minmax(0, 1fr); }
  .principle p { grid-column: 2; }
  .svc__sticky { position: static; display: flex; align-items: flex-end; justify-content: space-between; }
  .svc__icon { margin-top: 0; }
  .model__info { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .model__info .hint { text-align: left; }
  .model { height: 300vh; }
}
@media (max-width: 640px) {
  .hdr__tools .btn--sm { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { grid-column: 1 / -1; min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 24px 0 28px; border-left: 0; }
  .step h3 { margin-top: 24px; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .tl { padding: 0 0 32px 40px; }
  .tl::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--rule); }
  .tl:last-child::before { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field { grid-column: 1 / -1; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); }
  .record div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .model__top .model__label { display: none; }
  .hero__meta { font-size: 11px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
  .model { height: auto; }
  .model__stage { position: relative; height: 80vh; min-height: 560px; }
}
