/* KEO Production — "Studio White": white ground, ink type, one magenta accent, big rounded media. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --ink: #111114;
  --ink-2: #3A3A42;
  --muted: #5B5B66;
  --line: #E6E6EB;
  --accent: #E5007E;
  --accent-ink: #B80065;
  --dark: #111114;
  --dark-muted: #B4B4BE;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 16px; font: 600 13px/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: 680px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; }
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--lg { min-height: 56px; padding: 15px 30px; font-size: 17px; }

/* ---------- header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin: 0; flex: none; }
.logo__mark { width: 40px; height: 40px; border-radius: 50%; }
.logo__txt { display: flex; flex-direction: column; gap: 2px; }
.logo__name { font: 700 18px/1.1 var(--display); letter-spacing: -0.015em; }
.logo__tag { font: 600 11px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.ftr .logo__tag { color: #FF4FA8; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__list > li > a, .nav__btn { display: block; padding: 10px 12px; border-radius: 999px; font: 500 15px/1.2 var(--body);
  text-decoration: none; background: none; border: 0; cursor: pointer; color: var(--ink); }
.nav__list > li > a:hover, .nav__btn:hover, .nav__list a[aria-current="page"], .nav__drop.is-active > .nav__btn { background: var(--surface); }
.nav__btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid;
  transform: translateY(-3px) rotate(45deg); }
.nav__drop { position: relative; }
.nav__sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: -8px; min-width: 280px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 20px 50px rgba(17, 17, 20, .12); display: none; }
.nav__drop.is-open .nav__sub, .nav__drop:hover .nav__sub, .nav__drop:focus-within .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.nav__sub a:hover { background: var(--surface); }
.langs { display: flex; gap: 2px; font: 600 13px/1 var(--body); }
.langs a { padding: 8px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { color: var(--ink); background: var(--surface); }
.hdr__cta { flex: none; min-height: 44px; padding: 10px 20px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 50%; cursor: pointer; position: relative; flex: none; }
.burger__l, .burger__l::before, .burger__l::after { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .2s; }
.burger__l { top: 21px; }
.burger__l::before { left: 0; top: -6px; }
.burger__l::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] .burger__l { background: transparent; }
.burger[aria-expanded="true"] .burger__l::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__l::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .hdr__cta { margin-left: auto; }
  .nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 120px;
    overflow-y: auto; display: none; margin: 0; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li > a, .nav__btn { padding: 16px 4px; font-size: 20px; font-weight: 600; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .nav__sub { position: static; display: none; box-shadow: none; border: 0; padding: 4px 0 12px 12px; min-width: 0; }
  .nav__drop:hover .nav__sub { display: none; }
  .nav__drop.is-open .nav__sub { display: block; }
  .langs { font-size: 15px; }
}
@media (max-width: 560px) {
  .logo__name { font-size: 16px; }
  .hdr__cta { display: none; }
  .burger { margin-left: auto; }
}

/* ---------- home hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero__copy { text-align: center; max-width: 1000px; margin: 0 auto; }
.hero__copy .lead { margin: 24px auto 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__copy .hero__cta { justify-content: center; }
.collage { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px);
  height: clamp(420px, 46vw, 620px); }
.collage__t { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.collage__t img { width: 100%; height: 100%; object-fit: cover; }
.collage__t--1 { grid-row: 1 / 3; }
.collage__t--4 { grid-column: 2 / 4; }
@media (max-width: 760px) {
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; gap: 10px; }
  .collage__t { border-radius: var(--r-md); aspect-ratio: 4 / 5; }
  .collage__t--1 { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 16 / 10; }
  .collage__t--4 { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
}

/* ---------- inner page head */
.phead { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 8px; }
.phead--media { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.phead h1 { font-size: clamp(38px, 5.2vw, 72px); }
.phead .lead { margin-top: 20px; }
.phead__price { font: 700 20px/1.3 var(--display); color: var(--accent-ink); margin: 8px 0 0; }
.phead__media { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); position: relative; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.phead__media--portrait img { aspect-ratio: 4 / 5; max-height: 640px; }
.phead__cap { position: absolute; left: 16px; bottom: 16px; margin: 0; background: rgba(255, 255, 255, .92); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; }
.crumbs ol { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A0A0AA; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) { .phead--media { grid-template-columns: 1fr; } }

/* ---------- page flow */
.flow { padding-bottom: clamp(48px, 7vw, 96px); }
.flow > h2 { margin-top: clamp(64px, 8vw, 112px); margin-bottom: 20px; max-width: 900px; }
.flow > h2:first-child { margin-top: clamp(48px, 6vw, 80px); }
.flow > h3 { margin: 40px 0 12px; }
.flow > p, .flow > ul:not([class]), .flow > ol:not([class]) { max-width: 68ch; color: var(--ink-2); }
.flow > p > .btn { margin-top: 8px; }
.flow > p:has(> .btn) { margin-top: 28px; }
.sec { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.sec > h2 { margin-bottom: 24px; }

/* ---------- showreel */
.reel { margin-top: clamp(64px, 8vw, 112px); }
.reel h2 { margin-bottom: 24px; }
.reel__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); }
.reel__frame img, .reel__frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.reel__soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: rgba(17, 17, 20, .78); color: #fff;
  padding: 14px 24px; border-radius: 999px; font: 600 16px/1.2 var(--body); white-space: nowrap; }
.reel__play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.reel__btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }

/* ---------- stats */
.stats { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.stat__n { display: block; font: 800 clamp(48px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.stats li:last-child .stat__n { color: var(--accent); }
.stat__l { display: block; margin-top: 8px; color: var(--muted); }

/* ---------- credits */
.credits { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.credits__h { margin: 0; font: 600 13px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.credits li { font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; }

/* ---------- why */
.why { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.why li { background: var(--surface); border-radius: var(--r-md); padding: 28px; }
.why h3 { margin-bottom: 10px; }
.why p { margin: 0; color: var(--muted); }

/* ---------- founder */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: 28px; }
.founder__img { border-radius: var(--r-lg); overflow: hidden; }
.founder__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder__name { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.founder__role { color: var(--accent-ink); font-weight: 600; margin: 6px 0 18px; }
.founder__copy p { color: var(--ink-2); }
.founder__award { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-md); padding: 14px; margin: 24px 0; }
.founder__award img { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; flex: none; }
.founder__award p { margin: 0; display: flex; flex-direction: column; }
.founder__award span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } }

/* ---------- services cards */
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.svc { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; text-decoration: none; transition: transform .2s; }
.svc:hover { transform: translateY(-3px); }
.svc__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { margin-bottom: 8px; }
.svc p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.svc__price { margin-top: auto; font-weight: 600; color: var(--accent-ink); }

/* ---------- work grid */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.shots { columns: 3 300px; column-gap: 16px; margin-top: 28px; }
.shot { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.shot[hidden] { display: none; }
.shot__frame img { width: 100%; }
.shot figcaption { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 2px; }
.shot__cat { font: 600 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.shot__title { font: 600 18px/1.3 var(--display); }
.shot__spec { font-size: 14px; color: var(--muted); }

/* ---------- packages */
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.pkg { background: var(--surface); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; scroll-margin-top: 96px; }
.pkg__name { font-size: 20px; }
.pkg__price { font: 800 clamp(30px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0 6px; }
.pkgs--4 .pkg__price { font-size: clamp(28px, 2.4vw, 34px); }
.pkg__for { color: var(--muted); font-size: 15px; }
.pkg__list { list-style: none; padding: 0; margin: 4px 0 18px; font-size: 15px; }
.pkg__list li { padding: 8px 0 8px 24px; border-top: 1px solid var(--line); position: relative; }
.pkg__list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pkg__delivery { font-size: 14px; color: var(--muted); margin-top: auto; }
.pkg .btn { align-self: flex-start; }

/* ---------- estimator */
.est { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.est__fields { display: grid; gap: 14px; background: var(--surface); border-radius: var(--r-md); padding: 24px; }
.est__out { background: var(--dark); color: #fff; border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; }
.est__k { color: var(--dark-muted); font-size: 14px; }
.est__v { font: 800 clamp(40px, 5vw, 60px)/1.1 var(--display); letter-spacing: -0.03em; margin: 8px 0 16px; }
.est__note { color: var(--dark-muted); font-size: 14px; margin: auto 0 0; }
@media (max-width: 760px) { .est { grid-template-columns: 1fr; } }

/* ---------- steps (dark panel) */
.steps { list-style: none; margin: 24px 0 0; padding: clamp(28px, 4vw, 48px); background: var(--dark); color: #fff; border-radius: var(--r-lg);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.step__n { display: block; font: 800 18px/1 var(--display); color: #FF4FA8; margin-bottom: 12px; }
.steps h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--dark-muted); margin: 0; font-size: 15px; }

/* ---------- areas, guides, faq, figures, tables */
.areas { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.areas li { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.guides { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.guides a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 26px; background: var(--surface); border-radius: var(--r-md); text-decoration: none; transition: transform .2s; }
.guides a:hover { transform: translateY(-3px); }
.guide__t { font: 700 20px/1.25 var(--display); letter-spacing: -0.01em; }
.guide__d { color: var(--muted); font-size: 15px; }
.faq { margin-top: 20px; max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font: 600 19px/1.35 var(--display); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 28px/1 var(--body); color: var(--accent); }
.faq__item[open] summary::after { content: "–"; }
.faq__a { color: var(--ink-2); padding-bottom: 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.fig { margin: 32px 0; }
.fig img { border-radius: var(--r-md); width: 100%; }
.fig figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
.tbl { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- contact list */
.contact { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; gap: 10px; }
.contact li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.contact__k { min-width: 92px; color: var(--muted); font-size: 14px; }
.contact__v { font-weight: 600; text-decoration: none; }
.contact__v:hover { color: var(--accent-ink); text-decoration: underline; }
.contact__note { color: var(--muted); font-size: 14px; }

/* ---------- quote band + form */
.band { background: var(--surface); padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: 72px; }
.band__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.band__copy h2 { font-size: clamp(36px, 4.8vw, 64px); }
.band__copy > p { color: var(--muted); margin-top: 16px; font-size: 18px; }
@media (max-width: 900px) { .band__in { grid-template-columns: 1fr; } }
.qform { background: #fff; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); scroll-margin-top: 96px; }
.qform__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .qform__grid { grid-template-columns: 1fr; } }
.flow > .qform { background: var(--surface); max-width: 760px; margin-top: 32px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fld--wide { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1px solid #D4D4DB; border-radius: var(--r-sm);
  background: #fff; min-height: 50px; width: 100%; }
.fld textarea { resize: vertical; }
.fld [aria-invalid="true"] { border-color: #C2103C; box-shadow: 0 0 0 3px rgba(194, 16, 60, .15); }
.qform__pkg { margin: 14px 0 0; font-size: 15px; }
.qform__pkg-x { border: 0; background: none; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px; }
.qform__err { color: #B00E36; font-weight: 600; margin: 12px 0 0; }
.qform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.qform__consent { color: var(--muted); font-size: 13px; margin: 0; flex: 1 1 260px; }
.qform.is-sent .qform__grid, .qform.is-sent .qform__foot, .qform.is-sent .qform__pkg { display: none; }
.qform__ok { padding: 12px 0; }
.qform__ok-title { font: 800 28px/1.2 var(--display); margin-bottom: 8px; }

/* ---------- article */
.art__head { padding-top: clamp(32px, 5vw, 64px); max-width: 920px; }
.art__head h1 { font-size: clamp(36px, 4.8vw, 60px); }
.art__head .lead { margin-top: 18px; }
.art__meta { color: var(--muted); font-size: 14px; }
.art__hero { margin: 28px 0 8px; border-radius: var(--r-lg); overflow: hidden; }
.art__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.art { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 96px; }
.art__side { position: relative; }
.toc { position: sticky; top: 96px; }
.toc__h { font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent-ink); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 3vw, 36px); margin: 48px 0 16px; scroll-margin-top: 96px; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--accent-ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--surface); border-radius: var(--r-sm); }
.srcs { font-size: 14px; color: var(--muted); }
.srcs a { color: var(--muted); word-break: break-word; }
.rel { margin-top: 48px; padding: 24px; background: var(--surface); border-radius: var(--r-md); }
.rel ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) { .art { grid-template-columns: 1fr; gap: 0; } .toc { position: static; margin-bottom: 8px; } .art__side:empty { display: none; } }

/* ---------- footer + mobile bar */
.ftr { background: var(--dark); color: #fff; padding: 72px 0 32px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr__about > p { color: var(--dark-muted); max-width: 420px; }
.ftr .logo__mark { background: #fff; }
.ftr .contact__k, .ftr .contact__note { color: var(--dark-muted); }
.ftr__h { font: 600 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); margin: 0 0 14px; }
.ftr__h:not(:first-child) { margin-top: 28px; }
.ftr ul:not(.contact) { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #2A2A30;
  color: var(--dark-muted); font-size: 14px; }
.ftr__base p { margin: 0; }
@media (max-width: 960px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__in { grid-template-columns: 1fr; } }
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; }
  .mbar .mbar__cta { background: var(--accent); color: #fff; }
  body { padding-bottom: 76px; }
}

/* ---------- 404 */
[data-type="notfound"] .flow { min-height: 30vh; }
