/* ==========================================================================
   AAR8 — Realty Infinite
   Editorial luxury: cool paper, deep navy-ink chapters, brand blue + coral accents (from the logo).
   Display: Newsreader (self-hosted)  ·  Text/UI: Archivo (self-hosted)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/newsreader-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../assets/fonts/archivo-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f6f9;
  --paper-2: #eaedf3;
  --paper-3: #ffffff;
  --ink: #0f1522;
  --ink-2: #151c2c;
  --ink-3: #1c2436;

  /* Brand (from the AAR8 logo): cornflower blue letters, coral "8" */
  --logo-blue: #518eff;
  --logo-coral: #ff677f;

  --accent: #2f66d0;        /* brand blue, deepened for small text on light surfaces */
  --accent-soft: #518eff;   /* logo blue for fills and large elements */
  --accent-deep: #2453b3;
  --on-accent: #ffffff;
  --coral: #e8556a;         /* coral, deepened for text on light surfaces */
  --coral-deep: #d23f56;

  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --surface: var(--paper-3);
  --text: var(--ink);
  --text-2: #5b6272;
  --text-3: #949bab;
  --line: rgba(15, 21, 34, 0.12);
  --line-strong: rgba(15, 21, 34, 0.3);
  --shadow: 0 40px 80px -40px rgba(15, 21, 34, 0.4);
  --overlay: rgba(15, 21, 34, 0.55);

  --font-display: 'Newsreader', 'Iowan Old Style', 'Times New Roman', serif;
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  --maxw: 1400px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --nav-h: 88px;
  --radius: 4px;
}

:root[data-theme="dark"] {
  --bg: #0e131f;
  --bg-2: #141a28;
  --surface: #1a2132;
  --text: #eef1f7;
  --text-2: #a5adbe;
  --text-3: #6c7486;
  --line: rgba(238, 241, 247, 0.12);
  --line-strong: rgba(238, 241, 247, 0.3);
  --accent: #7ba5f3;
  --accent-soft: #518eff;
  --accent-deep: #2f66d0;
  --on-accent: #0e131f;
  --coral: #ff7f93;
  --coral-deep: #ff677f;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  --overlay: rgba(0, 0, 0, 0.6);
}

/* A "chapter" is a section that stays dark in both themes */
.chapter {
  --bg: #0f1522;
  --bg-2: #151c2c;
  --surface: #1a2132;
  --text: #eef1f7;
  --text-2: #a5adbe;
  --text-3: #6c7486;
  --line: rgba(238, 241, 247, 0.14);
  --line-strong: rgba(238, 241, 247, 0.34);
  --accent: #7ba5f3;
  --accent-soft: #518eff;
  --accent-deep: #2f66d0;
  --on-accent: #0e131f;
  --coral: #ff7f93;
  --coral-deep: #ff677f;
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  background: var(--bg);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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; }

body {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
body::after {
  /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.035; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 72;
  text-wrap: balance;
}
h1 em, h2 em, h3 em, .display em { font-style: italic; font-weight: 300; color: var(--accent); }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 960px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-variation-settings: 'wdth' 110;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }

.h-display { font-size: clamp(2.6rem, 6.6vw, 6.8rem); }
.h-1 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); }
.h-2 { font-size: clamp(2rem, 4.2vw, 3.9rem); }
.h-3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.num {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 6px 0 28px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); border-color: var(--accent); }
.btn__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease-out), background 0.4s var(--ease);
  flex: none;
}
.btn__arrow svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.btn:hover .btn__arrow { transform: rotate(-45deg); background: rgba(15, 21, 34, 0.14); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); }
.btn--ghost .btn__arrow { background: var(--text); color: var(--bg); }
.btn--ghost:hover .btn__arrow { background: var(--on-accent); color: var(--accent); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); border-color: var(--accent); }
.btn--accent::before { background: var(--text); }
.btn--accent:hover { color: var(--bg); border-color: var(--text); }
.btn--accent .btn__arrow { background: rgba(15, 21, 34, 0.14); }
.btn--accent:hover .btn__arrow { background: rgba(255, 255, 255, 0.14); }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 6px;
  position: relative;
}
.link-line::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); transform-origin: left; }
.link-line svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: transform 0.4s var(--ease-out); }
.link-line:hover svg { transform: translate(3px, -3px); }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0f1522;
  color: #eef1f7;
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-in-out), visibility 0s linear 1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(240px, 60vw); }
.loader .logo { width: 100%; pointer-events: none; }
.loader .logo__blue { opacity: 0; animation: fade 0.9s 0.25s var(--ease) forwards; }
.loader .logo__coral ellipse { stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw 1.3s 0.35s var(--ease-in-out) forwards; }
.loader .logo__coral ellipse + ellipse { animation-delay: 0.7s; }
.loader .logo__tag { opacity: 0; animation: fade 0.8s 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Progress + cursor ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1200;
  pointer-events: none;
}
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  display: none;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), background 0.4s var(--ease);
}
.cursor__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-view { width: 92px; height: 92px; background: var(--accent-soft); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; background: transparent; border: 1px solid var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1300;
  display: flex;
  align-items: center;
  color: var(--text);
  transition: transform 0.6s var(--ease-out), height 0.5s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 68px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-menu-open { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; --text: #eef1f7; --text-2: #a5adbe; --line-strong: rgba(238, 241, 247, 0.3); }
body.menu-open { overflow: hidden; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.has-dark-hero .nav:not(.is-scrolled) { --text: #eef1f7; --text-2: #a5adbe; --line: rgba(238, 241, 247, 0.2); --bg: #0f1522; }

.logo { display: inline-flex; flex-direction: column; gap: 4px; width: 132px; flex: none; transition: width 0.5s var(--ease); }
.nav.is-scrolled .logo { width: 108px; }
.logo__mark { width: 100%; height: auto; overflow: visible; }
.logo__blue { color: var(--logo-blue); }
.logo__coral { color: var(--logo-coral); }
.logo__tag {
  display: block;
  background: var(--logo-coral);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 0 4px 0.3em;
  border-radius: 2px;
  line-height: 1;
  white-space: nowrap;
  font-variation-settings: 'wdth' 105;
}
.footer .logo { width: 168px; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--accent); }
.nav__cta {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 22px !important;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.nav__cta.is-active { color: var(--text); }

.nav__right { display: flex; align-items: center; gap: 22px; }

.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  z-index: 1300;
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: #0f1522;
  color: #eef1f7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
  visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition: clip-path 0.9s var(--ease-in-out); }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4.4rem);
  line-height: 1.1;
  padding: 6px 0;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.menu__links a small { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; color: #7ba5f3; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.32s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.39s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.46s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.53s; }
.menu__foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 241, 247, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #a5adbe;
  opacity: 0;
  transition: opacity 0.6s 0.6s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot a { color: #eef1f7; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section--sm { padding-block: clamp(60px, 8vw, 110px); }
.section--alt { background: var(--bg-2); }
.section-head { display: grid; gap: 22px; max-width: 860px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.rule { height: 1px; background: var(--line); }

/* Word masks for split-text reveals */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-split] .w > i { display: inline-block; font-style: inherit; will-change: transform; }
[data-split] em .w > i, [data-split] .w > i em { font-style: italic; }

/* Pre-JS states: only hidden when GSAP successfully loaded */
html.js [data-reveal] { opacity: 0; }
html.js [data-stagger] > * { opacity: 0; }
html.js [data-split] { opacity: 0; }
html.js .hero__content { opacity: 0; }
html.js [data-scrub-text] { opacity: 0; }
html.js [data-clip] { clip-path: inset(0 0 100% 0); }
html.js [data-clip="left"] { clip-path: inset(0 100% 0 0); }
html.js [data-clip="right"] { clip-path: inset(0 0 0 100%); }

/* Media frames with inner parallax */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--parallax img { height: 124%; width: 100%; position: absolute; top: -12%; left: 0; }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #eef1f7;
  padding-bottom: clamp(40px, 6vh, 72px);
  padding-top: calc(var(--nav-h) + 40px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; background: #0f1522; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 0s linear 1.4s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease); }
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 21, 34, 0.55) 0%, rgba(15, 21, 34, 0.12) 35%, rgba(15, 21, 34, 0.35) 65%, rgba(15, 21, 34, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 21, 34, 0.45) 0%, rgba(15, 21, 34, 0) 60%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: end;
}
.hero__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: #7ba5f3;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__tag::before { content: ''; width: 46px; height: 1px; background: #7ba5f3; }
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 14ch;
  color: #f7f9fc;
}
.hero__title em { color: #7ba5f3; font-weight: 300; }
.hero__desc {
  margin-top: 30px;
  max-width: 520px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: rgba(238, 241, 247, 0.82);
  line-height: 1.6;
}
.hero__actions { margin-top: 36px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hero__call { display: flex; flex-direction: column; gap: 4px; }
.hero__call span { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(238, 241, 247, 0.6); }
.hero__call a { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.01em; transition: color 0.3s; }
.hero__call a:hover { color: #7ba5f3; }

.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.hero__count { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: rgba(238, 241, 247, 0.6); }
.hero__count b { font-weight: 400; font-size: 2.6rem; color: #eef1f7; letter-spacing: -0.02em; margin-right: 8px; }
.hero__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero__dot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238, 241, 247, 0.55);
  transition: color 0.3s;
}
.hero__dot i { position: relative; width: 54px; height: 1px; background: rgba(238, 241, 247, 0.25); display: block; overflow: hidden; }
.hero__dot i::after { content: ''; position: absolute; inset: 0; background: #7ba5f3; transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active { color: #eef1f7; }
.hero__dot.is-active i::after { animation: bar var(--slide-ms, 6500ms) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__dot:hover { color: #7ba5f3; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(238, 241, 247, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(#7ba5f3, transparent); animation: cue 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(46px); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 26px;
  background: var(--bg);
  -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; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 0; padding-right: 0; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee__item svg { width: 0.9em; height: 0.9em; flex: none; }
.marquee__item svg path { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mission / Vision ---------- */
.mission__grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.mission__media { position: sticky; top: 110px; }
.mission__frame { aspect-ratio: 4 / 5; }
.mission__badge {
  position: absolute;
  right: -18px;
  bottom: 40px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 26px 30px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.mission__badge b { font-family: var(--font-display); font-weight: 400; font-size: 3.4rem; line-height: 0.9; letter-spacing: -0.03em; }
.mission__badge span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }
.mission__text { padding-top: 10px; }
.mission__text .h-2 { margin: 18px 0 40px; }
.mv { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 34px 0; border-top: 1px solid var(--line); }
.mv:last-of-type { border-bottom: 1px solid var(--line); }
.mv__n { font-family: var(--font-display); font-size: 1.1rem; color: var(--accent); font-style: italic; padding-top: 4px; }
.mv h3 { font-size: 1.6rem; margin-bottom: 12px; }
.mv p { color: var(--text-2); }
.mission__text .btn { margin-top: 40px; }

/* ---------- Featured projects (horizontal scroll) ---------- */
.projects { overflow: hidden; padding-block: clamp(80px, 10vw, 130px); }
.projects__head { margin-bottom: clamp(36px, 4vw, 60px); }
.hs { position: relative; }
.hs__track {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  padding-inline: var(--gutter);
  width: max-content;
  will-change: transform;
}
.hs:not(.is-pinned) .hs__track {
  width: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.hs:not(.is-pinned) .hs__track::-webkit-scrollbar { display: none; }
.pcard {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 34vw, 500px);
  aspect-ratio: 4 / 5.2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  scroll-snap-align: start;
  isolation: isolate;
}
.pcard__media { position: absolute; inset: 0 -8%; overflow: hidden; }
.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease);
  filter: saturate(0.85);
}
.pcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 21, 34, 0.9) 0%, rgba(15, 21, 34, 0.1) 45%, rgba(15, 21, 34, 0.2) 100%);
  z-index: 1;
}
.pcard__num {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #7ba5f3;
}
.pcard__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px; color: #eef1f7; }
.pcard__body h3 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 6px; }
.pcard__body p { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238, 241, 247, 0.7); }
.pcard__link { position: absolute; inset: 0; z-index: 3; }
.pcard--more { background: var(--accent); }
.pcard--more::after { display: none; }
.pcard--more .pcard__body { color: var(--on-accent); }
.pcard--more .pcard__body p { color: rgba(15, 21, 34, 0.6); }
.pcard--more .pcard__num { color: var(--on-accent); }
.pcard--more .pcard__big { position: absolute; right: -10px; top: 10px; font-size: clamp(8rem, 16vw, 15rem); color: rgba(15, 21, 34, 0.12); }
@media (hover: hover) {
  .pcard:hover .pcard__media img { transform: scale(1.07); filter: saturate(1); }
}
.hs__bar { margin: 40px var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.hs__bar i { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--accent); transform-origin: left; }

/* ---------- Awards ledger ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr 60px;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.5s var(--ease-out);
}
.ledger__row::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.ledger__row:hover::before { transform: scaleX(1); }
.ledger__row:hover { padding-left: 14px; }
.ledger__year { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3rem); color: var(--accent); font-weight: 300; line-height: 1; }
.ledger__title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.ledger__sub { color: var(--text-2); font-size: 0.95rem; }
.ledger__ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); justify-self: end; transition: background 0.4s var(--ease), color 0.4s var(--ease); }
.ledger__ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ledger__row:hover .ledger__ico { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Why / services ---------- */
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.why__media { position: sticky; top: 100px; }
.why__stack { position: relative; aspect-ratio: 4 / 5; }
.why__stack .frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.8s var(--ease), transform 1.2s var(--ease-out); }
.why__stack .frame.is-active { opacity: 1; transform: none; }
.why__stack .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__caption {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  color: #eef1f7;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.why__caption::before { content: ''; width: 30px; height: 1px; background: #7ba5f3; }
.why__text .h-2 { margin: 18px 0 30px; }

/* ---------- Testimonial ---------- */
.testi { text-align: center; }
.testi__mark { font-family: var(--font-display); font-size: clamp(6rem, 12vw, 11rem); line-height: 0.6; color: var(--accent); opacity: 0.55; }
.testi__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.3vw, 3rem);
  line-height: 1.3;
  max-width: 980px;
  margin: 10px auto 34px;
  color: var(--text);
}
.testi__by { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.testi__by b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--text); }
.testi__intro { margin-bottom: 60px; }

/* ---------- Developments ---------- */

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.post-card { display: grid; gap: 20px; }
.post-card .frame { aspect-ratio: 16 / 11; }
.post-card .frame img { transition: transform 1.2s var(--ease-out); }
.post-card:hover .frame img { transform: scale(1.06); }
.post-card__meta { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.post-card h3 { font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.15; }
.post-card__link { margin-top: 4px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(110px, 16vw, 210px); text-align: center; }
.cta__loop {
  position: absolute;
  left: 50%; top: 50%;
  width: min(1200px, 140vw);
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
}
.cta__loop path { fill: none; stroke: #7ba5f3; stroke-width: 1.2; }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.4rem, 5.8vw, 5.6rem); max-width: 18ch; margin: 22px auto 22px; }
.cta p { color: var(--text-2); max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 8vw, 110px); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__about { color: var(--text-2); font-size: 0.95rem; max-width: 380px; margin-top: 22px; }
.footer h4 { font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; font-weight: 600; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: var(--text-2); transition: color 0.3s, padding-left 0.3s var(--ease-out); font-size: 0.95rem; }
.footer ul a:hover { color: var(--text); padding-left: 6px; }
.footer address { font-style: normal; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; }
.footer__socials { display: flex; gap: 10px; margin-top: 26px; }
.footer__socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease-out);
}
.footer__socials a:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__socials svg { width: 15px; height: 15px; }
.footer__big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 21vw, 22rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--text);
  opacity: 0.08;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  margin-top: 10px;
  transform: translateY(0.12em);
}
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Inner page hero ---------- */
.pagehero { padding-top: calc(var(--nav-h) + clamp(50px, 9vw, 120px)); padding-bottom: clamp(40px, 6vw, 80px); }
.pagehero__top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.crumbs { display: flex; gap: 12px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-3); }
.pagehero__n { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.pagehero h1 { font-size: clamp(3rem, 9vw, 9.5rem); line-height: 0.92; letter-spacing: -0.03em; }
.pagehero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-top: 30px; }
.pagehero__row .lead { max-width: 520px; justify-self: end; }
.pagehero__band { height: clamp(300px, 56vh, 620px); border-radius: var(--radius); margin-top: clamp(30px, 5vw, 60px); }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.about-intro .h-2 { margin: 18px 0 28px; }
.about-intro p { color: var(--text-2); margin-bottom: 18px; }
.pillars { margin-top: 36px; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 44px 170px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pillars li i { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 0.95rem; }
.pillars li b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.pillars li span { color: var(--text-2); font-size: 0.94rem; }
.about-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: 100px; }
.about-imgs .frame { aspect-ratio: 3 / 4; }
.about-imgs .frame:first-child { grid-row: span 2; aspect-ratio: 3 / 5.5; }
.about-imgs .frame:nth-child(3) { margin-top: 0; }

.invest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 40px); }
.invest__card {
  position: relative;
  padding: clamp(34px, 4vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), border-color 0.5s var(--ease);
}
.invest__card:hover { transform: translateY(-6px); border-color: var(--accent); }
.invest__card .num { font-size: 5rem; color: var(--accent); opacity: 0.35; position: absolute; right: 24px; top: 18px; }
.invest__card h3 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin: 14px 0 16px; }
.invest__card p { color: var(--text-2); margin-bottom: 30px; max-width: 480px; }

/* ---------- Portfolio ---------- */
.pf-list { display: grid; gap: clamp(60px, 9vw, 140px); }
.pf { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 90px); align-items: center; }
.pf:nth-child(even) .pf__media { order: 2; }
.pf__media { aspect-ratio: 4 / 3.2; }
.pf__num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 200; color: var(--accent); line-height: 0.8; letter-spacing: -0.04em; margin-bottom: 22px; }
.pf__tag { display: inline-block; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 7px 14px; margin-bottom: 20px; }
.pf h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 26px; }
.pf__specs { border-top: 1px solid var(--line); }
.pf__specs li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.pf__specs li b { font-weight: 500; color: var(--text); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; padding-top: 4px; }
.pf__specs li span { color: var(--text-2); }
.pf__usp { margin-top: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--text); line-height: 1.4; display: flex; gap: 14px; }
.pf__usp::before { content: ''; width: 28px; height: 1px; background: var(--accent); flex: none; margin-top: 0.75em; }
.pf-note { text-align: center; color: var(--text-2); font-style: italic; font-family: var(--font-display); font-size: 1.15rem; margin-top: clamp(50px, 7vw, 90px); }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 90px); align-items: start; }
.post { padding-bottom: clamp(50px, 6vw, 80px); margin-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; margin-bottom: 0; }
.post__media { aspect-ratio: 16 / 9; margin-bottom: 30px; }
.post__meta { display: flex; align-items: center; gap: 14px; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.post__meta i { width: 26px; height: 1px; background: var(--accent); }
.post h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-bottom: 22px; max-width: 20ch; }
.post p, .post li { color: var(--text-2); }
.post p { margin-bottom: 16px; max-width: 70ch; }
.post p b, .post li b { color: var(--text); font-weight: 500; }
.post ol { counter-reset: n; margin: 10px 0 20px; }
.post ol li { counter-increment: n; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); }
.post ol li::before { content: '0' counter(n); position: absolute; left: 0; top: 14px; font-family: var(--font-display); font-style: italic; color: var(--accent); }
.post ol li:last-child { border-bottom: 1px solid var(--line); }
.post__first::first-letter {
  font-family: var(--font-display);
  font-size: 3.6em;
  float: left;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--accent);
}

.sidebar { position: sticky; top: 100px; display: grid; gap: 22px; }
.side { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.side h4 { font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; font-weight: 600; }
.side-search { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.side-search input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 16px; color: var(--text); font: inherit; font-size: 0.92rem; }
.side-search input:focus { outline: none; }
.side-search button { padding: 0 18px; background: var(--text); color: var(--bg); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; transition: background 0.3s; }
.side-search button:hover { background: var(--accent); color: var(--on-accent); }
.side-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; padding-top: 0; }
.side-list a { color: var(--text-2); font-size: 0.92rem; line-height: 1.45; display: block; transition: color 0.3s, padding-left 0.3s var(--ease-out); }
.side-list a:hover { color: var(--text); padding-left: 6px; }
.side-list a b { color: var(--text); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-info .h-2 { margin: 18px 0 30px; }
.ci { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.ci:last-of-type { border-bottom: 1px solid var(--line); }
.ci__ico { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); }
.ci__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ci h4 { font-family: var(--font-sans); font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 600; }
.ci p, .ci a { color: var(--text-2); }
.ci a { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); transition: color 0.3s; }
.ci a:hover { color: var(--accent); }
.cities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.cities span { font-size: 0.76rem; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-2); transition: 0.4s var(--ease); }
.cities span:hover { border-color: var(--accent); color: var(--accent); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(30px, 4vw, 56px); }
.form-card .h-3 { margin: 14px 0 8px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.form-card .sub { color: var(--text-2); margin-bottom: 34px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 0;
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-note { font-size: 0.8rem; color: var(--text-3); margin-top: 16px; }
.form-ok { display: none; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--text); font-size: 0.92rem; }
.form-ok.is-visible { display: block; }
.map { height: clamp(320px, 50vh, 520px); border-top: 1px solid var(--line); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(0.95); opacity: 0.9; }
:root[data-theme="dark"] .map iframe { filter: grayscale(1) invert(0.92) contrast(0.85); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ledger__row { grid-template-columns: 110px 1fr 60px; }
  .ledger__sub { grid-column: 2; }
  .ledger__ico { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 980px) {
  :root { --nav-h: 76px; }
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .hero__nav { flex-direction: row; gap: 18px; }
  .hero__dot span { display: none; }
  .mission__grid, .why__grid, .about-intro, .contact-grid, .blog-layout, .pf, .pf:nth-child(even) { grid-template-columns: 1fr; }
  .mission__media, .why__media, .about-imgs, .sidebar { position: static; }
  .pf:nth-child(even) .pf__media { order: 0; }
  .mission__badge { right: 16px; bottom: 16px; }
  .posts { grid-template-columns: 1fr; }
  .invest { grid-template-columns: 1fr; }
  .pagehero__row { grid-template-columns: 1fr; }
  .pagehero__row .lead { justify-self: start; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .field-row { grid-template-columns: 1fr; }
  .pillars li { grid-template-columns: 34px 1fr; }
  .pillars li span { grid-column: 2; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 70px; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero__actions { gap: 20px; }
  .ledger__row { grid-template-columns: 1fr 50px; padding: 22px 0; }
  .ledger__year { grid-column: 1; font-size: 1.8rem; }
  .ledger__title, .ledger__sub { grid-column: 1; }
  .ledger__ico { grid-column: 2; grid-row: 1 / span 3; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .pf__specs li { grid-template-columns: 1fr; gap: 4px; }
  .about-imgs { grid-template-columns: 1fr 1fr; }
  .mv { grid-template-columns: 1fr; gap: 8px; }
  .pcard { width: 78vw; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html.js [data-reveal], html.js [data-clip] { opacity: 1; clip-path: none; }
  .loader { display: none; }
  .marquee__track { animation: none; }
  .hero__slide img { transform: none; }
}

/* ---------- Brand accents (blue = structure, coral = emphasis, like the logo) ---------- */
h1 em, h2 em, h3 em, .display em { color: var(--coral); }
.hero__tag { color: var(--coral); }
.hero__tag::before { background: var(--coral); }
.hero__title em { color: var(--coral); }
.hero__dot i::after { background: var(--accent-soft); }
.hero__call a:hover { color: var(--coral); }
.scroll-cue i { background: linear-gradient(var(--accent-soft), transparent); }
.mission__badge { background: var(--coral); color: #fff; }
.mission__badge b { color: #fff; }
.marquee__item svg path { stroke: var(--coral); }
.testi__mark { color: var(--coral); }
.cta__loop path { stroke: var(--coral); }
.cursor { background: var(--accent-soft); }
.cursor.is-view { background: var(--coral); }
.cursor.is-view .cursor__label { color: #fff; }
.cursor.is-link { border-color: var(--accent-soft); }
.progress { background: linear-gradient(90deg, var(--accent-soft), var(--coral)); }
.btn::before { background: var(--accent-soft); }
.btn:hover { color: #fff; border-color: var(--accent-soft); }
.btn--ghost:hover .btn__arrow { background: #fff; color: var(--accent-deep); }
.btn--accent { --btn-bg: var(--accent-deep); --btn-fg: #fff; border-color: var(--accent-deep); }
.btn--accent::before { background: var(--coral); }
.btn--accent:hover { color: #fff; border-color: var(--coral); }
.btn--accent .btn__arrow { background: rgba(255, 255, 255, 0.16); }
.btn--accent:hover .btn__arrow { background: rgba(255, 255, 255, 0.22); }
.pcard--more { background: var(--accent-deep); }
.pcard--more .pcard__body { color: #fff; }
.pcard--more .pcard__body p { color: rgba(255, 255, 255, 0.7); }
.pcard--more .pcard__num { color: rgba(255, 255, 255, 0.8); }
.pcard--more .pcard__big { color: rgba(255, 255, 255, 0.12); }
.pf__tag { color: var(--coral); border-color: var(--coral); }
.pf__usp::before { background: var(--coral); }
.pf__num { color: var(--accent); }
.invest__card .num { color: var(--coral); }

/* ---------- Key figures band ---------- */
.stats { padding: clamp(36px, 5vw, 70px) 0 clamp(70px, 9vw, 120px); }
.stats__rule { position: relative; height: 1px; background: var(--line); margin-bottom: clamp(34px, 5vw, 64px); }
.stats__rule i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-soft), var(--coral)); transform-origin: left center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats__grid li { display: grid; gap: 12px; padding-left: 22px; border-left: 1px solid var(--line); }
.stats__grid b { font-size: clamp(3rem, 6vw, 5.8rem); color: var(--text); }
.stats__grid li > span { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }

/* ---------- Projects header extras ---------- */
.projects__sub { color: var(--text-2); margin-top: 18px; max-width: 520px; }
.projects__meta { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.hs__count { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.hs__count b { font-size: 2.6rem; font-weight: 300; letter-spacing: -0.02em; line-height: 1; min-width: 2ch; }
.hs__count span { font-size: 0.8rem; letter-spacing: 0.2em; color: var(--text-2); }
.pcard__tag {
  position: absolute;
  top: 22px; right: 22px;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 21, 34, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 7px 12px;
  border-radius: 999px;
}

/* ---------- Awards timeline ---------- */
.ledger { position: relative; }
.ledger__line { position: absolute; left: -28px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--accent-soft), var(--coral)); transform: scaleY(0); transform-origin: center top; }

/* ---------- Strategies: sticky scrollytelling ---------- */
.why__steps { position: absolute; top: 22px; left: 22px; z-index: 2; display: flex; gap: 6px; }
.why__steps i { width: 26px; height: 2px; background: rgba(255, 255, 255, 0.28); transition: background 0.4s var(--ease); }
.why__steps i.is-active { background: var(--coral); }
.story { margin-top: 10px; }
.story__item {
  position: relative;
  padding: 36px 0 36px 76px;
  border-top: 1px solid var(--line);
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.6s var(--ease);
}
.story__item:last-child { border-bottom: 1px solid var(--line); }
.story__n { position: absolute; left: 0; top: 40px; font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.05rem; }
.story__item::before { content: ''; position: absolute; left: 40px; top: 36px; bottom: 36px; width: 1px; background: var(--line); }
.story__item::after { content: ''; position: absolute; left: 40px; top: 36px; bottom: 36px; width: 1px; background: var(--coral); transform: scaleY(0); transform-origin: top; transition: transform 0.8s var(--ease-out); }
.story__item.is-active::after { transform: scaleY(1); }
.story__item h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 12px; cursor: pointer; transition: color 0.4s var(--ease); }
.story__item h3:hover { color: var(--coral); }
.story__item p { color: var(--text-2); max-width: 520px; }
html.js .story__item:not(.is-active) { opacity: 0.32; }

/* ---------- Developments: stacking cards ---------- */
.stack { display: grid; gap: 28px; padding-bottom: 8vh; }
.stack__card {
  position: sticky;
  top: calc(var(--nav-h) + 22px + var(--i, 0) * 26px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: min(62vh, 560px);
  transform-origin: center top;
  box-shadow: var(--shadow);
  --dim: 0;
}
.stack__card::after { content: ''; position: absolute; inset: 0; background: var(--bg-2); opacity: var(--dim); pointer-events: none; z-index: 3; transition: none; }
.stack__text { padding: clamp(32px, 4.2vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.stack__text h3 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); margin-bottom: 16px; }
.stack__text p { color: var(--text-2); max-width: 520px; }
.stack__media { position: relative; min-height: 300px; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dev__n { font-family: var(--font-display); font-weight: 200; font-size: 4.2rem; line-height: 0.8; color: var(--accent); margin-bottom: 26px; letter-spacing: -0.04em; }
.dev__ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); margin-bottom: 26px; }
.dev__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- Section indicator ---------- */
.chapters {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: #8a90a0;
}
.chapters[hidden] { display: none; }
.chapters__item { display: flex; align-items: center; gap: 10px; height: 22px; padding: 0; color: inherit; }
.chapters__item i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: transform 0.4s var(--ease-out), background 0.4s; flex: none; }
.chapters__item span { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.45s var(--ease-out); }
.chapters:hover .chapters__item span, .chapters__item.is-active span { opacity: 1; transform: none; }
.chapters__item.is-active i { background: var(--coral); transform: scale(1.9); }
.chapters__item:hover i { transform: scale(1.5); }
@media (max-width: 1180px) { .chapters { display: none; } }

/* ---------- Deep links land below the fixed nav ---------- */
.pf { scroll-margin-top: 110px; }

@media (max-width: 980px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .story__item { min-height: 0; padding: 26px 0 26px 56px; }
  .story__item::before, .story__item::after { left: 30px; }
  .stack__card { grid-template-columns: 1fr; top: calc(var(--nav-h) + 12px + var(--i, 0) * 16px); min-height: 0; }
  .stack__media { order: -1; min-height: 220px; }
  .ledger__line { display: none; }
  .projects__meta { justify-content: space-between; width: 100%; }
}
@media (max-width: 640px) {
  .stats__grid b { font-size: 2.8rem; }
  .story__item { padding-left: 44px; }
  .story__item::before, .story__item::after { left: 24px; }
}
