/* ==========================================================================
   Birdent Diş Laboratuvarı — tasarım sistemi
   ========================================================================== */

:root {
  --ink: #0f0f0d;
  --ink-2: #1a1a17;
  --ink-3: #26251f;
  --bone: #f2eee6;
  --paper: #faf8f3;
  --stone: #8a8478;
  --stone-2: #b9b3a6;
  --line: rgba(15, 15, 13, .12);
  --line-inv: rgba(242, 238, 230, .14);
  --accent: #e5532a;
  --accent-2: #ff7a4d;
  --ok: #3f7d58;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --header-h: 76px;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --fs-h3: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  --fs-h2: clamp(2.2rem, 1.4rem + 3.4vw, 4.6rem);
  --fs-h1: clamp(2.8rem, 1.6rem + 6vw, 8.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 160px); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.dark { background: var(--ink); color: var(--bone); }
.bone { background: var(--bone); }

.serif { font-family: var(--f-display); font-weight: 400; }
em, .it { font-family: var(--f-display); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.muted { color: var(--stone); }
.dark .muted { color: var(--stone-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone);
}
.dark .eyebrow { color: var(--stone-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.h1 { font-family: var(--f-display); font-size: var(--fs-h1); line-height: .92; letter-spacing: -.035em; }
.h2 { font-family: var(--f-display); font-size: var(--fs-h2); line-height: .98; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.lead { font-size: var(--fs-lg); line-height: 1.5; max-width: 38ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: .95em 1.4em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; line-height: 1;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; }
.btn .arr { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(3px) rotate(-45deg); }
.btn--light { --bg: var(--bone); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--accent { --bg: var(--accent); --fg: #fff; }
.btn--accent::before { background: var(--ink); }
.dark .btn--accent::before { background: var(--bone); }
.dark .btn--accent:hover { color: var(--ink); }
.btn--lg { font-size: var(--fs-md); padding: 1.1em 1.7em; }

.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--bone);
  transition: transform .5s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-solid { background: rgba(250, 248, 243, .86); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
body.light-top .site-header:not(.is-solid) { color: var(--ink); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__word { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: -.02em; }
.logo__sub { display: block; font-family: var(--f-sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; opacity: .65; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 500; transition: background-color .3s; }
.nav__link:hover, .nav__link[aria-current="page"] { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav__item { position: relative; }
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(760px, 80vw); padding: 14px; border-radius: var(--r-lg);
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15,15,13,.35), 0 0 0 1px var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.mega a { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; transition: background-color .25s; }
.mega a:hover { background: var(--bone); }
.mega img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.mega strong { display: block; font-size: var(--fs-sm); font-weight: 600; }
.mega span { display: block; font-size: var(--fs-xs); color: var(--stone); line-height: 1.35; }
.mega .mega__all { grid-column: 1 / -1; grid-template-columns: 1fr auto; background: var(--ink); color: var(--bone); padding: 14px 18px; }
.mega .mega__all:hover { background: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: transparent; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--bone);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--bone) !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__main a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line-inv); font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.05; }
.mobile-menu__main small { font-family: var(--f-sans); font-size: .75rem; color: var(--stone-2); }
.mobile-menu__sub { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-menu__sub a { padding: 8px 14px; border: 1px solid var(--line-inv); border-radius: 999px; font-size: var(--fs-sm); }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: calc(var(--header-h) + 4vh); padding-bottom: 32px; display: flex; flex-direction: column; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.08); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,13,.55) 0%, rgba(15,15,13,.15) 40%, rgba(15,15,13,.8) 100%), linear-gradient(90deg, rgba(15,15,13,.6), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(28px, 5vw, 64px); }
.hero__title { max-width: 14ch; }
.hero__title em { color: var(--accent-2); }
.hero__bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end; padding-top: 28px; border-top: 1px solid var(--line-inv); }
.hero__bottom p { margin: 0; max-width: 44ch; color: rgba(242,238,230,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.hero__scroll i { width: 1px; height: 44px; background: currentColor; position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(-100%); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.hero__badge { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 5vh); width: 128px; height: 128px; z-index: 1; color: var(--bone); }
.hero__badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero__badge b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 2.4rem; font-weight: 400; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (iç sayfalar) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 9vw, 130px)); padding-bottom: clamp(40px, 6vw, 90px); }
.page-hero .h1 { max-width: 16ch; }
.page-hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.page-hero__grid p { margin: 0; }
.page-hero__img { margin-top: clamp(32px, 5vw, 72px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--ink-2); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: var(--fs-xs); letter-spacing: .06em; color: var(--stone); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--accent); }
.dark .crumbs { color: var(--stone-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); background: var(--paper); }
.marquee__track { display: flex; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font-family: var(--f-display); font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); line-height: 1; white-space: nowrap; }
.marquee__track span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--accent); }
.marquee__track span:nth-child(even) { font-style: italic; color: var(--stone); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Intro / statement ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 6vw, 120px); }
.statement__text { font-family: var(--f-display); font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
.statement__text .w { opacity: .14; transition: opacity .6s; }
.statement__text .w.on { opacity: 1; }
.statement__foot { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r);
  background: var(--bone); font-size: var(--fs-sm); line-height: 1.5;
}
.note svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__n { font-family: var(--f-display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.stat__n sup { font-size: .4em; color: var(--accent); vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stat p { font-size: var(--fs-sm); color: var(--stone); margin: 10px 0 0; max-width: 24ch; }
.dark .stats, .dark .stat { border-color: var(--line-inv); }

/* ---------- Section heads ---------- */
.s-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.s-head .eyebrow { margin-bottom: 20px; }
.s-head p { margin: 0; max-width: 46ch; justify-self: end; color: var(--stone); }
.dark .s-head p { color: var(--stone-2); }

/* ---------- Service index (hover list) ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: svc; }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 56px; gap: 24px; align-items: center;
  padding: clamp(18px, 2.4vw, 30px) 0; transition: padding .5s var(--ease), color .3s;
}
.svc-row a::before { content: ""; position: absolute; inset: 0 -14px; border-radius: 18px; background: var(--bone); opacity: 0; transition: opacity .3s; z-index: -1; }
.svc-row a:hover::before { opacity: 1; }
.svc-row__n { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; color: var(--stone); }
.svc-row__t { font-family: var(--f-display); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.025em; transition: transform .5s var(--ease); }
.svc-row a:hover .svc-row__t { transform: translateX(10px); }
.svc-row__d { font-size: var(--fs-sm); color: var(--stone); margin: 0; }
.svc-row__ic { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .4s, color .4s, transform .5s var(--ease), border-color .4s; }
.svc-row__ic svg { width: 20px; height: 20px; }
.svc-row a:hover .svc-row__ic { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.svc-row__thumb { display: none; }
.svc-hover {
  position: fixed; left: 0; top: 0; z-index: 50; width: 300px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s, transform .5s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.svc-hover.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-hover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.svc-hover img.on { opacity: 1; }

/* ---------- Service cards (grid) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--bone); transition: transform .6s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card__title { font-family: var(--f-display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; }
.card__body p { font-size: var(--fs-sm); color: var(--stone); margin: 0; }
.card__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; }
.card__more svg { width: 16px; transition: transform .4s var(--ease); }
.card:hover .card__more svg { transform: translateX(4px); }
.dark .card { background: var(--ink-2); }
.dark .card__body p { color: var(--stone-2); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.process__sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process__visual { margin-top: 40px; position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); }
.process__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.process__visual img.on { opacity: 1; transform: scale(1); }
.process__visual figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(15,15,13,.6); backdrop-filter: blur(8px); font-size: var(--fs-xs); letter-spacing: .08em; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line-inv); opacity: .35; transition: opacity .6s; }
.step.on { opacity: 1; }
.step__n { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--accent-2); }
.step h3 { margin: 8px 0 14px; }
.step p { color: var(--stone-2); max-width: 48ch; margin: 0; }
.step ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.step li { font-size: var(--fs-xs); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-inv); }

/* ---------- Materials ---------- */
.mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.mat { padding: 28px 24px 32px 0; border-right: 1px solid var(--line); }
.mat + .mat { padding-left: 24px; }
.mat:last-child { border-right: 0; }
.mat__k { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.mat h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem); margin: 12px 0 12px; }
.mat p { font-size: var(--fs-sm); color: var(--stone); margin: 0; }
.mat dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: var(--fs-xs); }
.mat dt { color: var(--stone); }
.mat dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.split__media img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.split__body .h2 { margin: 20px 0 24px; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* ---------- Why / features ---------- */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.feat { padding: 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 280px; transition: background .4s, color .4s, border-color .4s; }
.feat:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.feat:hover p { color: var(--stone-2); }
.feat svg { width: 40px; height: 40px; color: var(--accent); }
.feat h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; margin-top: auto; }
.feat p { margin: 0; font-size: var(--fs-sm); color: var(--stone); transition: color .4s; }

/* ---------- Spec table (service pages) ---------- */
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 6vw, 100px); align-items: start; }
.svc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.spec { border-radius: var(--r-lg); background: var(--bone); padding: 24px; }
.spec h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.spec dl { margin: 0; display: grid; gap: 0; }
.spec dl div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.spec dt { color: var(--stone); }
.spec dd { margin: 0; font-weight: 500; }
.spec--cta { background: var(--ink); color: var(--bone); }
.spec--cta p { color: var(--stone-2); font-size: var(--fs-sm); }
.spec--cta .btn { width: 100%; justify-content: space-between; margin-top: 6px; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: var(--fs-sm); }
.toc a { display: block; padding: 8px 0; border-top: 1px solid var(--line); color: var(--stone); transition: color .2s, padding .3s var(--ease); }
.toc a:hover, .toc a.on { color: var(--ink); padding-left: 6px; }

/* ---------- Prose ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.05; margin-top: 2em; letter-spacing: -.02em; }
.prose h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin-top: 1.6em; line-height: 1.25; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 2px solid var(--accent); font-family: var(--f-display); font-size: 1.6rem; line-height: 1.25; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font-size: var(--fs-xs); color: var(--stone); margin-top: 10px; }
.prose .callout { padding: 20px 22px; border-radius: var(--r); background: var(--bone); font-size: 1rem; }
.prose .callout strong:first-child { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--line); }
.prose table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bone); font-weight: 600; font-size: .85rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose > h2:first-child { margin-top: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 20px; align-items: center; padding: 24px 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--accent); border-color: var(--accent); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .faq__a { padding: 0 60px 26px 0; color: var(--stone); max-width: 70ch; }
.faq .faq__a p:last-child { margin: 0; }
.dark .faq, .dark .faq details, .dark .faq summary i { border-color: var(--line-inv); }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(14px, 1.6vw, 24px); }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-card__img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__meta { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--stone); letter-spacing: .04em; }
.post-card__meta b { color: var(--accent); font-weight: 600; }
.post-card h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.2; letter-spacing: -.015em; }
.post-card p { margin: 0; font-size: var(--fs-sm); color: var(--stone); }
.post-card--feat { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.post-card--feat .post-card__img { aspect-ratio: 16 / 10; }
.post-card--feat h3 { font-family: var(--f-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); font-weight: 400; line-height: 1.02; }

.article-hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 110px)); }
.article-hero .h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5.6rem); max-width: 20ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: var(--fs-sm); color: var(--stone); }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.article-layout .toc-box { position: sticky; top: calc(var(--header-h) + 24px); }
.article-layout .toc-box h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }
.author { display: flex; gap: 16px; align-items: center; margin-top: 48px; padding: 22px; border-radius: var(--r); background: var(--bone); max-width: 70ch; }
.author__av { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bone); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.5rem; }
.author p { margin: 0; font-size: var(--fs-sm); color: var(--stone); }
.author strong { display: block; color: var(--ink); font-size: var(--fs-md); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.c-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.c-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.c-list span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); padding-top: 4px; }
.c-list a, .c-list p { font-size: 1.2rem; margin: 0; }
.c-list a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--bone); }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(229, 83, 42, .14); }
.field small { font-size: var(--fs-xs); color: var(--stone); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: var(--fs-sm); transition: background .2s, color .2s, border-color .2s; }
.radios input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--stone); font-size: var(--fs-xs); max-width: 40ch; }
.map { margin-top: clamp(40px, 6vw, 80px); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--bone); filter: grayscale(1) contrast(1.05); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta-band .h2 { font-size: clamp(2.6rem, 1.4rem + 5vw, 7rem); }
.cta-band .h2 em { color: var(--accent-2); }
.cta-band__side { display: grid; gap: 18px; justify-items: start; }
.cta-band__side p { color: var(--stone-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line-inv); }
.f-grid h2 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 18px; }
.f-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--fs-sm); }
.f-grid a:hover { color: var(--accent-2); }
.f-brand p { color: var(--stone-2); font-size: var(--fs-sm); max-width: 36ch; margin: 18px 0 22px; }
.f-social { display: flex; gap: 8px; }
.f-social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.f-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.f-social svg { width: 18px; height: 18px; }
.f-word { font-family: var(--f-display); font-size: clamp(5rem, 24vw, 26rem); line-height: .78; letter-spacing: -.05em; text-align: center; margin: 32px 0 -0.06em; color: var(--ink-3); user-select: none; white-space: nowrap; }
.f-word em { color: var(--accent); }
.f-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 22px 0; font-size: var(--fs-xs); color: var(--stone-2); position: relative; z-index: 1; }
.f-bottom a:hover { color: var(--bone); }

.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-float.on { transform: scale(1); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-io); transition-delay: var(--d, 0s); }
.clip.is-in { clip-path: inset(0 0 0 0); }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.no-js .reveal, .no-js .clip { opacity: 1; transform: none; clip-path: none; }
.no-js .split-line > span { transform: none; }
.no-js .statement__text .w { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .clip { opacity: 1; transform: none; clip-path: none; }
  .split-line > span { transform: none; }
  .statement__text .w { opacity: 1; }
  .hero__media img { transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.nf .h1 { font-size: clamp(6rem, 30vw, 22rem); line-height: .8; }
.nf .h1 em { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__list { display: none; }
  .burger { display: inline-block; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat:nth-child(2) { border-right: 0; }
  .mat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .mat:nth-child(4) { border-top: 1px solid var(--line); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 20px; }
  .hero__scroll { display: none; }
  .hero__badge { width: 96px; height: 96px; }
  .hero__badge b { font-size: 1.8rem; }
  .statement, .s-head, .process, .split, .contact-grid, .cta-band__inner, .page-hero__grid, .svc-layout, .article-layout, .post-card--feat { grid-template-columns: minmax(0, 1fr); }
  .s-head p { justify-self: start; }
  .statement__foot { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dark .stat:nth-child(n+3) { border-top-color: var(--line-inv); }
  .cards, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__sticky { position: static; }
  .process__visual { aspect-ratio: 16 / 10; }
  .split--rev .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3; }
  .svc-row a { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 16px; }
  .svc-row__d { display: none; }
  .svc-row__ic { width: 44px; height: 44px; }
  .svc-aside, .article-layout .toc-box { position: static; }
  .article-layout .toc-box { display: none; }
  .page-hero__img { aspect-ratio: 16 / 10; }
  .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .header-cta .btn { display: none; }
  .logo__sub { display: none; }
  .hero { min-height: 92svh; }
  .hero__badge { display: none; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .cards, .posts, .feats, .mats { grid-template-columns: minmax(0, 1fr); }
  .mat { padding-left: 0 !important; border-right: 0; border-top: 1px solid var(--line); }
  .mat:first-child { border-top: 0; }
  .feat { min-height: 0; }
  .feat h3 { margin-top: 8px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .c-list li { grid-template-columns: 1fr; gap: 4px; }
  .faq .faq__a { padding-right: 0; }
  .f-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .stat__n { font-size: 2.8rem; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
}

@media (hover: none) { .svc-hover { display: none; } }
