/* ==========================================================
   APOLON — portfolio
   Brand: #B4532A · Editorial "presentation" layout
   ========================================================== */

:root {
  --brand: #B4532A;
  --brand-dark: #8E3F1F;
  --ink: #161616;
  --ink-soft: #5c5c5c;
  --paper: #ffffff;
  --gray: #ededed;
  --gray-2: #e2e2e2;
  --line: #c8c8c8;

  --slab: "Roboto Slab", Rockwell, "Courier New", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Playfair Display", Georgia, serif;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--brand); color: #fff; }

.accent { color: var(--brand); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff;
}
.loader__mark { width: 84px; height: 76px; fill: #fff; }
.loader__count {
  position: absolute; right: var(--gutter); bottom: var(--gutter);
  font-family: var(--slab); font-weight: 800; font-size: clamp(48px, 10vw, 140px); line-height: .8;
}
html:not(.js) .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 0; height: 0;
}
.cursor span {
  position: absolute; left: -6px; top: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand);
  transition: transform .35s var(--ease), background .35s;
}
.cursor.is-hover span { transform: scale(4); background: rgba(180, 83, 42, .18); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 27px; fill: var(--brand); transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.brand__name { font-family: var(--slab); font-weight: 800; letter-spacing: .18em; font-size: 14px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 999px; transition: background .3s; }
.nav__cta:hover { background: var(--brand); }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { top: 19px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
  clip-path: circle(0 at calc(100% - 36px) 38px);
  transition: clip-path .8s var(--ease);
}
.mobile-menu a { font-family: var(--slab); font-weight: 800; font-size: 44px; text-transform: uppercase; line-height: 1.15; }
.mobile-menu a:hover { color: var(--brand); }
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 36px) 38px); }

/* ---------- Slide base ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.slide__labels {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 84px; z-index: 3;
  display: flex; justify-content: space-between;
  font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--ink-soft);
  pointer-events: none;
}
.hero .slide__labels { display: none; }

/* split text helpers */
.line { display: block; overflow: hidden; }
.line > span { display: block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split .w > span { display: inline-block; }

/* ---------- 01 Hero ---------- */
.hero { background: var(--gray); }
.hero__panel { position: absolute; top: 0; bottom: 0; right: 0; width: clamp(48px, 7vw, 110px); background: var(--paper); z-index: 2; }
.hero__mark {
  position: absolute; z-index: 1;
  width: min(72vw, 1150px); height: auto; aspect-ratio: 2000 / 1789;
  right: 6vw; top: -10%;
  fill: var(--brand);
}
.hero__line { position: absolute; background: var(--ink); z-index: 3; opacity: .55; }
.hero__line--h { left: 0; right: 0; top: 38%; height: 1px; transform-origin: left; }
.hero__line--v { top: 0; bottom: 0; left: 30%; width: 1px; transform-origin: top; }
.hero__content {
  position: absolute; z-index: 4;
  left: 15%; top: 38%;
  display: grid; grid-template-columns: auto auto; column-gap: clamp(14px, 2vw, 32px); align-items: start;
  background: var(--gray);
  padding: clamp(14px, 2vw, 28px) clamp(18px, 3vw, 44px) clamp(14px, 2vw, 28px) 0;
}
.hero:not(.hero--end) .hero__content { grid-template-columns: auto; }
.hero__thumb {
  grid-row: span 2;
  width: clamp(84px, 10vw, 150px); aspect-ratio: 3 / 4;
  overflow: hidden; background: var(--paper);
  margin-top: clamp(-90px, -6vw, -40px);
}
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s var(--ease); }
.hero__thumb:hover img { filter: none; transform: scale(1.06); }
.hero__thumb--mark { display: grid; place-items: center; background: var(--brand); }
.hero__thumb--mark svg { width: 56%; fill: #fff; }
.hero__title {
  font-family: var(--slab); font-weight: 800; color: var(--brand);
  font-size: clamp(56px, 9vw, 150px); line-height: .86; letter-spacing: -.01em;
}
.hero__sub { font-size: clamp(14px, 1.3vw, 19px); letter-spacing: .24em; text-transform: uppercase; color: var(--brand); margin-top: 10px; font-weight: 500; }
.hero__mail { display: inline-block; letter-spacing: .08em; text-transform: none; font-family: var(--slab); font-weight: 700; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.hero__foot {
  position: absolute; z-index: 4; left: var(--gutter); bottom: 32px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.vertical-word {
  position: absolute; z-index: 3; right: clamp(16px, 3.1vw, 48px); top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 11px; font-weight: 600; letter-spacing: .5em; color: var(--ink);
}
.scroll-hint { position: absolute; z-index: 4; left: 30%; bottom: 0; width: 1px; height: 90px; transform: translateX(-50%); overflow: hidden; }
.scroll-hint span { position: absolute; inset: 0; background: var(--brand); animation: scrollHint 2.2s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- 02 Index ---------- */
.index { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 140px var(--gutter) 80px; gap: 40px; }
.index__title {
  font-family: var(--slab); font-weight: 800; font-size: clamp(56px, 9vw, 150px); line-height: 1;
  justify-self: center;
}
.index__title .accent { position: relative; display: inline-block; }
.index__list {
  background: var(--gray); padding: clamp(28px, 4vw, 60px);
  counter-reset: none; align-self: center; max-width: 520px;
}
.index__list li { border-bottom: 1px solid var(--line); }
.index__list li:last-child { border-bottom: 0; }
.index__list a {
  display: flex; gap: 18px; align-items: baseline; padding: 14px 0;
  font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  transition: color .3s, padding .5s var(--ease);
}
.index__list a span { font-family: var(--slab); color: var(--brand); font-weight: 700; font-size: .8em; }
.index__list a:hover { color: var(--brand); padding-left: 12px; }
.index__year {
  position: absolute; right: var(--gutter); bottom: 48px;
  font-family: var(--slab); font-weight: 800; font-size: clamp(36px, 4vw, 64px); line-height: .9;
  display: flex; flex-direction: column;
}
.index__note { position: absolute; left: var(--gutter); bottom: 48px; max-width: 340px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Ring (outlined circle) ---------- */
.ring { position: absolute; border: 2px solid var(--brand); border-radius: 50%; pointer-events: none; }

/* ---------- 03 Intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 140px var(--gutter) 100px; }
.ring--intro { width: 46vw; aspect-ratio: 1; left: -14vw; bottom: -22vw; }
.intro__title {
  position: relative; z-index: 2;
  font-family: var(--slab); font-weight: 800; font-size: clamp(56px, 8vw, 130px); line-height: 1;
  align-self: end; justify-self: center;
}
.intro__text { max-width: 520px; display: grid; gap: 18px; }
.script { font-family: var(--script); font-style: italic; font-weight: 800; font-size: clamp(36px, 4vw, 58px); color: var(--ink); line-height: 1; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); }
.intro__text p:not(.lead):not(.script) { color: var(--ink-soft); }

/* ---------- Dot heading ---------- */
.heading-dot {
  position: relative; display: inline-block; z-index: 1;
  font-family: var(--slab); font-weight: 800; font-size: clamp(44px, 6vw, 96px); line-height: 1;
}
.heading-dot .dot {
  position: absolute; z-index: -1;
  width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--brand);
  left: -.32em; top: 50%; translate: 0 -50%;
}

/* ---------- Arrow list ---------- */
.arrows { display: grid; gap: 12px; margin-top: 24px; }
.arrows li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; }
.arrows li::before { content: "→"; position: absolute; left: 0; color: var(--ink); transition: transform .4s var(--ease), color .3s; }
.arrows li:hover::before { transform: translateX(6px); color: var(--brand); }

/* ---------- 04 Mission ---------- */
.mission { display: grid; grid-template-columns: 40% 1fr; align-items: center; padding: 140px var(--gutter) 100px; }
.mission__vline { position: absolute; top: 0; bottom: 0; left: 40%; width: 1px; background: var(--line); transform-origin: top; }
.mission__body { grid-column: 2; padding-left: clamp(24px, 5vw, 90px); max-width: 680px; }
.mission__body > p { margin-top: 22px; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-soft); max-width: 540px; }

/* ---------- 05 Vision ---------- */
.vision { padding: 0 var(--gutter); }
.vision__band {
  position: absolute; left: 0; right: 0; top: 16%; height: 52%;
  background: var(--gray);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 0 calc(var(--gutter) + 6vw);
}
.vision__band > p { font-size: clamp(17px, 1.6vw, 23px); line-height: 1.5; max-width: 480px; }
.vision__band .arrows { margin: 0; }
.vision__pin { position: absolute; left: 50%; top: 68%; height: 18%; width: 1px; background: var(--ink); transform-origin: top; }
.vision__pin span { position: absolute; bottom: -6px; left: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); }
.vision__title {
  position: absolute; left: 50%; top: 68%; transform: translate(-50%, -55%);
  font-family: var(--slab); font-weight: 800; font-size: clamp(44px, 6vw, 96px); line-height: 1;
  background: transparent; z-index: 2;
}

/* ---------- 06 Services ---------- */
.services { display: grid; grid-template-columns: 1fr 30%; padding: 150px var(--gutter) 100px; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px) clamp(28px, 5vw, 90px); align-content: center; padding-right: 40px; max-width: 860px; position: relative; z-index: 2; }
.service h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.service p { font-size: 13.5px; color: var(--ink-soft); max-width: 300px; }
.service__icon { width: 30px; height: 30px; fill: var(--brand); transition: rotate .6s var(--ease), fill .3s; }
.service:nth-child(odd) .service__icon { fill: var(--ink); }
.service:hover .service__icon { rotate: -14deg; fill: var(--brand); }
.services__panel { position: absolute; top: 0; bottom: 0; right: 0; width: 30%; background: var(--gray); }
.services__hline { position: absolute; left: 0; right: 0; top: 78%; height: 1px; background: var(--ink); opacity: .5; transform-origin: left; }
.services__title {
  position: absolute; right: calc(30% - .9em); top: 78%; transform: translateY(-55%);
  font-family: var(--slab); font-weight: 800; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; z-index: 2;
}

/* ---------- 07 Quote ---------- */
.quote { display: grid; place-items: center; padding: 140px var(--gutter); }
.ring--quote { width: clamp(220px, 26vw, 420px); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-width: clamp(14px, 1.8vw, 28px); }
.quote__text {
  position: relative; z-index: 2; max-width: 1100px; text-align: center;
  font-family: var(--slab); font-weight: 800; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.08;
}

/* ---------- 08 Divider ---------- */
.divider { display: grid; place-items: center; padding: 140px 0 120px; }
.divider__wrap { text-align: center; position: relative; }
.divider__small { font-family: var(--slab); font-weight: 800; font-size: clamp(24px, 3.4vw, 54px); letter-spacing: .02em; }
.divider__script {
  font-family: var(--script); font-style: italic; font-weight: 800; color: var(--brand);
  font-size: clamp(88px, 15vw, 250px); line-height: .9; margin-top: -.18em;
}
.marquee { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--slab); font-weight: 800; font-size: clamp(22px, 2.4vw, 38px); text-transform: uppercase; white-space: nowrap; }
.marquee__track svg { width: 30px; height: 27px; fill: var(--brand); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Projects (shared) ---------- */
.project { padding: 140px var(--gutter) 90px; }
.project__label, .project__side { font-family: var(--slab); font-weight: 800; font-size: clamp(32px, 3.6vw, 58px); line-height: 1; }
.project__num { font-family: var(--sans); font-weight: 600; font-size: clamp(64px, 8vw, 130px); line-height: .9; letter-spacing: -.04em; }
.project__num--accent { color: var(--brand); }
.project__info h3 { font-family: var(--slab); font-weight: 800; font-size: 15px; letter-spacing: .1em; margin-bottom: 12px; }
.project__info > p { font-size: 14px; color: var(--ink-soft); max-width: 420px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin-top: 22px; font-size: 12.5px; }
.meta dt { color: var(--ink-soft); }
.meta dd { font-weight: 600; }
.stat { display: flex; flex-direction: column; margin-top: 28px; }
.stat__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.stat__num { font-family: var(--slab); font-weight: 800; font-size: clamp(48px, 5vw, 84px); line-height: 1; }

.project__media { position: relative; display: block; isolation: isolate; }
.project__view {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease);
}
.project__media:hover .project__view { opacity: 1; transform: none; }

/* Browser + phone mockup */
.browser { background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.06); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--gray); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcfcf; }
.browser__bar i:first-child { background: var(--brand); }
.browser__bar span { margin-left: 12px; font-size: 11px; color: var(--ink-soft); background: var(--paper); padding: 3px 14px; border-radius: 999px; }
.browser { max-width: 760px; margin-inline: auto; }
.browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.browser img, .phone { filter: grayscale(1); transition: filter .7s, transform 1.2s var(--ease); }
.project__media:hover .browser img, .project__media:hover .phone { filter: none; }
.phone {
  position: absolute; right: -4%; bottom: -12%; width: 26%;
  border-radius: 18px; border: 6px solid var(--ink);
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.4);
  aspect-ratio: 375 / 760; object-fit: cover; object-position: top;
}

/* Project A — like "PROJECT 01" slide */
.project--a { display: grid; grid-template-columns: 22% 1fr 26%; gap: clamp(24px, 4vw, 64px); align-items: center; }
.project--a .project__head { align-self: start; margin-top: 8vh; text-align: right; }
.project--a .project__num { display: block; margin-top: 6px; }
.project--a .project__media { padding: 0 0 6% 0; }
.project--a .stat { align-items: flex-end; text-align: right; }

/* Project B — like "$10M / 02" slide */
.project--b { display: grid; grid-template-columns: 24% 1fr 30%; gap: clamp(24px, 4vw, 64px); align-items: center; }
.project--b .stat--big { align-self: center; text-align: right; align-items: flex-end; margin: 0; }
.project--b .stat--big .stat__num { font-size: clamp(44px, 5vw, 80px); }
.project--b .project__side { position: absolute; left: var(--gutter); bottom: 14%; }
.project--b .project__num { display: block; margin-bottom: 8px; }

/* Project C — like "PROJECT / 03" band slide */
.project--c { display: flex; align-items: center; padding-left: 0; padding-right: 0; }
.project__band {
  position: relative; width: 100%;
  background: var(--gray);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 90px); align-items: center;
  padding: clamp(40px, 6vw, 90px) calc(var(--gutter) + 6vw);
}
.project__band .project__label { margin-bottom: 18px; }
.project--c .project__num--accent { position: absolute; right: var(--gutter); top: clamp(20px, 3vw, 40px); font-size: clamp(48px, 5vw, 80px); }

/* On-brand generated cards */
.card {
  position: relative; background: var(--paper); border-radius: 18px; padding: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.05);
  max-width: 520px; margin: 0 auto;
  transition: transform .8s var(--ease);
}
.card::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--brand); right: -34px; top: -34px; z-index: -1; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card__logo { font-family: var(--slab); font-weight: 800; font-size: 18px; }
.card__pill { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(180,83,42,.1); color: var(--brand); }
.chat { display: grid; gap: 10px; }
.chat__msg { background: var(--gray); border-radius: 14px 14px 14px 4px; padding: 14px 16px; font-size: 13.5px; display: grid; gap: 8px; max-width: 88%; }
.chat__msg--me { justify-self: end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; }
.bar { display: block; height: 8px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.bar::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--brand); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.4s var(--ease); }
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.insights div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.insights b { display: block; font-family: var(--slab); font-size: 26px; line-height: 1.1; }
.insights small { font-size: 11px; color: var(--ink-soft); }
.search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px;
  font-size: 13.5px; color: var(--ink-soft);
}
.search span { font-size: 18px; color: var(--ink); }
.search b { margin-left: auto; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; }
.chips span { font-size: 11.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--gray); }
.chips .is-on { background: var(--ink); color: #fff; }
.tools { display: grid; gap: 10px; }
.tool { display: flex; align-items: center; gap: 12px; border: 1px solid var(--gray-2); border-radius: 12px; padding: 10px 12px; }
.tool i { width: 36px; height: 36px; border-radius: 10px; background: var(--gray); flex: none; position: relative; }
.tool i::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--brand); }
.tool:nth-child(2) i::after { border-radius: 3px; background: var(--ink); }
.tool:nth-child(3) i::after { inset: 9px 12px; border-radius: 2px; }
.tool strong { display: block; font-size: 13.5px; }
.tool small { font-size: 11.5px; color: var(--ink-soft); }
.tool em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); }
.countdown {display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.countdown b { font-family: var(--slab); font-size: 64px; line-height: .9; color: var(--brand); }
.countdown span { font-size: 13px; color: var(--ink-soft); }
.countdown span:first-child { font-family: var(--slab); font-weight: 800; font-size: 22px; color: var(--ink); }
.checklist { display: grid; gap: 10px; margin-bottom: 20px; }
.checklist li { position: relative; padding-left: 30px; font-size: 14px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.checklist li.done { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line); }
.checklist li.done::before { background: var(--brand); border-color: var(--brand); }
.checklist li.done::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.progress { height: 8px; border-radius: 99px; background: var(--gray-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--w); background: var(--brand); border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.4s var(--ease); }

/* ---------- 12 End ---------- */
.hero--end .hero__mark { right: auto; left: 30%; top: auto; bottom: -18%; }
.hero--end .hero__content { left: 12%; top: 30%; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .slide { min-height: auto; }
  .slide__labels { top: 76px; }

  .hero { min-height: 100svh; }
  .hero__mark { width: 84vw; left: 4vw; right: auto; top: 15%; }
  .hero__line--v { left: 10%; }
  .hero__content { left: var(--gutter); right: auto; top: 52%; }
  .hero--end .hero__mark { width: 70vw; left: 8vw; right: auto; top: auto; bottom: 8%; }
  .hero--end .hero__content { left: var(--gutter); top: 18%; }
  .scroll-hint { left: 10%; }

  .index, .intro, .mission, .services { grid-template-columns: 1fr; padding: 130px var(--gutter) 90px; }
  .index__title { justify-self: start; }
  .index__list { max-width: none; }
  .index__year { position: static; flex-direction: row; gap: 4px; }
  .index__note { position: static; }
  .intro__title { justify-self: start; }
  .ring--intro { width: 90vw; left: -40vw; bottom: auto; top: 30%; }
  .mission__vline { left: var(--gutter); }
  .mission__body { grid-column: 1; padding-left: 28px; }

  .vision { padding: 130px var(--gutter) 90px; display: flex; flex-direction: column-reverse; gap: 40px; }
  .vision__band { position: relative; inset: auto; height: auto; grid-template-columns: 1fr; gap: 24px; padding: 36px var(--gutter); margin: 0 calc(var(--gutter) * -1); }
  .vision__pin { display: none; }
  .vision__title { position: static; transform: none; }

  .services { display: flex; flex-direction: column-reverse; gap: 40px; }
  .services__grid { grid-template-columns: 1fr; padding: 0; }
  .services__panel, .services__hline { display: none; }
  .services__title { position: static; transform: none; }

  .project--a, .project--b { grid-template-columns: 1fr; padding: 130px var(--gutter) 90px; }
  .project--a .project__head { text-align: left; margin: 0; display: flex; align-items: baseline; gap: 16px; }
  .project--a .stat, .project--b .stat--big { align-items: flex-start; text-align: left; }
  .project--b .project__side { position: static; order: -2; }
  .project--b .stat--big { order: 3; }
  .project__band { grid-template-columns: 1fr; padding: 70px var(--gutter) 40px; }
  .project--c { padding: 130px 0 90px; }
  .phone { width: 24%; right: 0; bottom: -8%; border-width: 4px; border-radius: 14px; }
  .browser { max-width: none; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 64px; }
  .insights b { font-size: 20px; }
  .countdown b { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
