/* KOD Production. Colours come from the logo: the lens mint and the letter graphite. */
:root {
  --bg: #F2F4F1;
  --surface: #E5E9E4;
  --surface-2: #D9DFD8;
  --ink: #151816;
  --muted: #485049;
  --mint: #B7E4C0;
  --mint-deep: #8FCB9C;
  --dark: #181B19;
  --dark-2: #232724;
  --dark-3: #2D322E;
  --on-dark: #EEF3EF;
  --on-dark-muted: #AEB8B0;

  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s-small: 0.9375rem;                                /* 15px */
  --s-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* 17–19px */
  --s-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.4375rem); /* 20–23px */
  --s-h3: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);     /* 24–30px */
  --s-h2: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);        /* 32–60px */
  --s-h1: clamp(2.125rem, 0.9rem + 5.6vw, 6rem);       /* 34–96px */

  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(96px, 12vw, 180px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font: 400 var(--s-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.work :focus-visible, .contact :focus-visible, .call :focus-visible, .demo-request :focus-visible { outline-color: var(--mint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: var(--s-h1); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: var(--s-h2); line-height: 1.02; }
h3 { font-size: var(--s-h3); line-height: 1.15; letter-spacing: -0.025em; }
p { text-wrap: pretty; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wordmark .kod { font-family: var(--display); font-weight: 800; font-size: var(--s-lead); letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: center; }
.wordmark .lens { width: 0.84em; height: 0.84em; flex: none; margin: 0 0.02em; color: var(--ink); }
.wordmark .prod { font-weight: 500; font-size: 15px; letter-spacing: 0; }
.brand { text-decoration: none; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: var(--s-small); }
.work .btn, .contact .btn, .call .btn, .demo-request .btn { background: var(--mint); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2B302C; }
  .work .btn:hover, .contact .btn:hover, .call .btn:hover, .demo-request .btn:hover { background: #CBEED2; }
}
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.arrow { width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover .arrow, .ask:hover .arrow { transform: translateX(3px); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); transition: background-color 200ms ease; }
.site-header.scrolled { background: rgba(242, 244, 241, 0.97); }
.bar { max-width: 1360px; margin-inline: auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 28px; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: var(--s-small); }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a.lang { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; text-underline-offset: 6px; } }
.menu-btn { display: none; }
.nav .nav-contact { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero h1 { max-width: 15em; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; margin-top: clamp(28px, 3.4vw, 48px); }
.lead { font-size: var(--s-lead); line-height: 1.45; max-width: 40ch; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.strip { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; margin-top: clamp(48px, 6vw, 88px); padding-inline: 10px; }
.strip-item { position: relative; overflow: hidden; }
.strip-item > img, .strip-item > video, .device-stage { display: block; width: 100%; height: clamp(320px, 38vw, 580px); object-fit: cover; }
.strip-item video { object-position: 30% 50%; background: var(--surface); }
.strip-item figcaption { font-size: var(--s-small); padding-top: 10px; color: var(--muted); }
.js .strip-item > :first-child { animation: settle 1400ms var(--ease-out) both; }
.js .strip-item:nth-child(2) > :first-child { animation-delay: 90ms; }
.js .strip-item:nth-child(3) > :first-child { animation-delay: 180ms; }
@keyframes settle { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; margin-top: clamp(56px, 6vw, 88px); }
.stats li { display: flex; align-items: center; gap: 14px; }
.stats strong { font-family: var(--display); font-weight: 800; font-size: var(--s-h3); letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.stats span { font-size: var(--s-small); line-height: 1.35; max-width: 20ch; }

/* ---------- section heads ---------- */
.services, .work, .products, .timeline, .prices, .process, .about, .faq, .contact { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { font-size: var(--s-lead); line-height: 1.45; max-width: 36ch; }
.section-head .legend { grid-column: 2; font-size: var(--s-small); line-height: 1.5; }

/* ---------- services ---------- */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 32px 48px; align-items: start; }
.service + .service { margin-top: clamp(56px, 6vw, 96px); }
.service-media { overflow: hidden; }
.service-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-media.has-device { --ring: var(--surface); background: var(--surface); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6% 9% 4%; }
.service-body h3 { letter-spacing: -0.03em; }
.service-body > p { margin-top: 16px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--mint-deep); }
.plines { list-style: none; padding: 0; display: grid; gap: 16px; }
.plines li { display: grid; gap: 2px; }
.pnum { font-family: var(--display); font-weight: 700; font-size: var(--s-h3); letter-spacing: -0.03em; line-height: 1.1; }
.plabel { font-size: var(--s-small); color: var(--muted); }
.service-price .link { margin-top: 24px; }

/* ---------- work ---------- */
.work { background: var(--dark); color: var(--on-dark); }
.work .section-head p { color: var(--on-dark-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; background: var(--dark-3); color: var(--on-dark); cursor: pointer; font-size: var(--s-small); font-weight: 500; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .filters button[aria-pressed="false"]:hover { background: #3A403B; } }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.card { grid-column: span 4; position: relative; display: flex; flex-direction: column; }
.card-wide { grid-column: span 6; }
.card[hidden] { display: none; }
.card.enter { animation: card-in 360ms var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.card-media { overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.card-media > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-wide .card-media > img { aspect-ratio: 16 / 10; }
.card-media.has-device { --ring: var(--dark-2); --base: #4A514B; --notch: #3A403B; --bezel: #3A403B; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 6% 9% 4%; }
.card-wide .card-media.has-device { aspect-ratio: 16 / 10; padding: 5% 14% 3%; }
.card-media.has-device .device { transition: transform 600ms var(--ease-out); }
.card-body { padding-top: 18px; }
.card-body h3 + p { margin-top: 10px; color: var(--on-dark-muted); max-width: 48ch; }
.card-meta { margin-top: 14px; font-size: var(--s-small); color: var(--on-dark-muted); }
.card-cta { color: var(--mint); font-weight: 500; margin-left: 10px; }
.card-hit { position: absolute; inset: 0; z-index: 1; background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-media > img, .card:hover .card-media .device { transform: scale(1.035); }
}

/* ---------- products ---------- */
.products { background: var(--mint); }
.products .section-head p:not(.legend) { max-width: 40ch; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: var(--s-small); font-weight: 500; padding: 5px 11px; border-radius: 999px; line-height: 1.2; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-live { background: var(--ink); color: #C9F2D2; }
.chip-pilot { background: #FFFFFF; color: var(--ink); }
.chip-prototype { background: rgba(21, 24, 22, 0.1); color: var(--ink); }
.metric { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
.flagship { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; }
.flagship + .flagship { margin-top: clamp(64px, 7vw, 112px); }
.flagship:nth-of-type(even) .flagship-media { order: 2; }
.flagship-media { display: block; --ring: var(--mint); }
.flagship-media .device { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .flagship-media:hover .device { transform: translateY(-6px); } }
.flagship-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flagship h3 { font-size: var(--s-h2); letter-spacing: -0.04em; line-height: 1; }
.flagship-top { margin-top: 14px; }
.flagship h3 a { text-decoration: none; }
.flagship-body > p { margin-top: 16px; max-width: 46ch; }
.flagship .note { font-size: var(--s-small); color: var(--muted); margin-top: 10px; }
.flagship .bridge { margin-top: 18px; padding: 14px 16px; background: rgba(255, 255, 255, 0.5); border-radius: var(--radius); font-size: var(--s-small); line-height: 1.5; }
.flagship .bridge strong { font-weight: 600; }
.flagship .link { margin-top: 22px; }
.product-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; margin-top: clamp(80px, 8vw, 128px); padding-top: clamp(40px, 4vw, 56px); }
.product-list h3 { letter-spacing: -0.03em; }
.product-list h3 a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .product-list h3 a:hover, .flagship h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; } }
.pl-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.product-list p { margin-top: 12px; max-width: 48ch; }


/* ---------- month by month ---------- */
.months { list-style: none; padding: 0; display: grid; gap: 40px; }
.month { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 48px; }
.month:first-child { background: var(--mint); padding: 28px; margin-inline: -28px; border-radius: var(--radius); }
.month.earlier { color: var(--muted); }
.month ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.month li { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 4px 24px; }
.month li strong { font-weight: 600; }
.month.earlier li { display: block; max-width: 60ch; }

/* ---------- prices ---------- */
.ladder { list-style: none; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr) auto; gap: 8px 32px; align-items: center; padding: 24px 28px; background: var(--surface); border-radius: var(--radius); }
.ladder li.main { background: var(--mint); padding-block: 36px; }
.ladder p { max-width: 52ch; }
.amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount .num { font-family: var(--display); font-weight: 700; font-size: var(--s-h3); letter-spacing: -0.03em; white-space: nowrap; }
.main .amount .num { font-size: var(--s-h2); }
.amount .per { font-size: var(--s-small); color: var(--muted); }
.ask { font-size: var(--s-small); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.call { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 3vw, 44px); background: var(--dark); color: var(--on-dark); border-radius: 10px; }
.call h3 { letter-spacing: -0.03em; }
.call p { margin-top: 8px; color: var(--on-dark-muted); max-width: 56ch; }

/* ---------- process ---------- */
.process { padding-top: 0; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: clamp(40px, 4vw, 64px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: var(--s-h2); line-height: 1; letter-spacing: -0.04em; color: var(--mint-deep); margin-bottom: 18px; }
.steps p { margin-top: 10px; max-width: 34ch; }

/* ---------- about ---------- */
.about { background: var(--surface); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.about:not(.has-photo) .about-body { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 72px; }
.about:not(.has-photo) .about-body h2 { grid-row: span 6; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.has-photo .about-body h2 { margin-bottom: 28px; }
.about-body p { max-width: 54ch; }
.about-body p + p { margin-top: 0; }
.has-photo .about-body p + p { margin-top: 16px; }
.about-lead { font-size: var(--s-lead); line-height: 1.45; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 12px; }
.facts dt { font-size: var(--s-small); color: var(--muted); }
.facts dd { font-weight: 500; }

/* ---------- faq ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.faq-list { display: grid; gap: 6px; }
.faq details { background: var(--surface); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; font-size: var(--s-lead); font-weight: 400; line-height: 1; transform: translateY(-52%); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; max-width: 60ch; }

/* ---------- contact ---------- */
.contact { background: var(--dark); color: var(--on-dark); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.contact-intro > p { margin-top: 18px; font-size: var(--s-lead); color: var(--on-dark-muted); max-width: 32ch; }
.direct { margin-top: 48px; }
.mail { display: inline-block; font-family: var(--display); font-weight: 700; font-size: var(--s-h3); letter-spacing: -0.03em; color: var(--mint); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .mail:hover { text-decoration: underline; text-underline-offset: 6px; } }
.socials { display: flex; gap: 20px; margin-top: 16px; }
.clock { margin-top: 24px; font-size: var(--s-small); color: var(--on-dark-muted); }
.clock time { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .needs legend { font-size: var(--s-small); font-weight: 500; }
.field em { font-style: normal; color: var(--on-dark-muted); font-weight: 400; margin-left: 6px; }
.field input, .field textarea { width: 100%; background: var(--dark-2); border: 0; border-radius: var(--radius); padding: 14px 16px; min-height: 52px; color: var(--on-dark); transition: background-color 200ms ease; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #7F8A82; }
.field input:focus, .field textarea:focus { background: var(--dark-3); outline: 2px solid var(--mint); outline-offset: 0; }
.field [aria-invalid="true"] { outline: 2px solid #F08A7A; }
.needs { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.needs legend { margin-bottom: 10px; padding: 0; }
.needs label { position: relative; }
.needs input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.needs span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--dark-2); font-size: var(--s-small); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.needs input:checked + span { background: var(--mint); color: var(--ink); }
.needs input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.form-end { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 6px; }
.form-end .btn[disabled] { opacity: 0.6; cursor: progress; }
.fine { font-size: var(--s-small); color: var(--on-dark-muted); }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: #F4A496; }
.form.sent .field, .form.sent .row2, .form.sent .needs, .form.sent .form-end { display: none; }
.form.sent .form-status { font-size: var(--s-lead); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen spam trap, not a rule */

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 120px) 32px; }
.footer-mark { display: block; text-decoration: none; }
.wordmark.big { gap: 0.5em; flex-wrap: wrap; }
.wordmark.big .kod { font-size: clamp(4.5rem, 1rem + 15vw, 15rem); }
.wordmark.big .prod { font-family: var(--display); font-weight: 800; font-size: var(--s-h2); letter-spacing: -0.03em; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 40px; font-size: var(--s-small); color: var(--muted); }
.footer-row a { color: var(--ink); }


/* ---------- devices: flat frames around real screenshots ---------- */
.device-stage { --ring: var(--surface); background: var(--surface); display: grid; place-items: center; padding: 0 5%; }
.device { position: relative; width: 100%; }
.device.with-phone { padding-right: 9%; padding-bottom: 2%; }
.laptop-screen { background: var(--bezel, #1C1F1D); padding: 1.7% 1.7% 2.4%; border-radius: 12px 12px 0 0; }
.laptop-screen img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 2px; }
.laptop-base { position: relative; height: 0; padding-bottom: 2.4%; margin: 0 -5.5%; background: var(--base, #C9D0CA); border-radius: 0 0 14px 14px; }
.laptop-base::before { content: ''; position: absolute; left: 50%; top: 0; width: 14%; height: 45%; transform: translateX(-50%); background: var(--notch, #B4BCB5); border-radius: 0 0 6px 6px; }
.phone { position: absolute; right: 0; bottom: 0; width: 24%; padding: 1.4%; background: var(--bezel, #1C1F1D); border-radius: 15% / 7%; border: 4px solid var(--ring, var(--bg)); }
.phone-screen img { display: block; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 12% / 5.6%; }
.work .card-media.has-device { background: var(--dark-2); }

/* ---------- video player ---------- */
.player { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; background: transparent; width: min(1120px, 92vw); height: fit-content; max-width: none; max-height: 92vh; overflow: visible; }
.player.portrait { width: calc(min(84vh, 900px) * 9 / 16); }
.player::backdrop { background: rgba(10, 12, 11, 0.88); }
.player[open] { animation: pop 240ms var(--ease-out); }
.player[open]::backdrop { animation: fade 240ms ease; }
.player.closing { animation: unpop 150ms ease forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes unpop { to { opacity: 0; transform: scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
.player-frame { aspect-ratio: 16 / 9; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.player.portrait .player-frame { aspect-ratio: 9 / 16; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { position: fixed; right: 16px; top: 16px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--on-dark); color: var(--ink); font-weight: 500; cursor: pointer; transition: transform 160ms var(--ease-out); }
.player-close:active { transform: scale(0.97); }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px); max-width: 820px; }
.legal h1 { font-size: var(--s-h2); }
.legal .updated { margin-top: 12px; color: var(--muted); font-size: var(--s-small); }
.legal h2 { font-size: var(--s-h3); margin-top: 40px; }
.legal p { margin-top: 12px; max-width: 64ch; }
.legal p:last-child { margin-top: 48px; }

/* ---------- entrances: content stays visible without script ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .service.reveal .service-media { clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out) 80ms; }
.js .service.reveal.in .service-media { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .service.reveal .service-media { clip-path: none; transition: none; }
  .js .strip-item > :first-child { animation: fade 300ms ease both; }
  .card.enter, .player[open] { animation: fade 200ms ease both; }
  .card-media > img, .card-media .device, .flagship-media .device, .arrow { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-media { grid-row: span 2; }
  .ladder li { grid-template-columns: minmax(0, 1fr) auto; }
  .ladder li p:not(.amount) { grid-column: 1 / -1; grid-row: 2; }
  .ladder .amount { grid-column: 1; grid-row: 3; }
  .ladder .ask { grid-column: 2; grid-row: 3; }
}

/* ---------- small phones: contact moves into the menu ---------- */
@media (max-width: 440px) {
  .bar .btn-small { display: none; }
  .menu-btn { margin-left: auto; }
  .nav .nav-contact { display: block; }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .bar { height: 64px; gap: 12px; }
  .bar .btn-small { margin-left: auto; }
  .menu-btn { flex: none; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer; font-size: var(--s-small); font-weight: 500; transition: transform 160ms var(--ease-out); }
  .menu-btn:active { transform: scale(0.97); }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 24px; background: var(--bg); font-size: var(--s-lead); font-weight: 500; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .nav a { padding: 12px 0; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .hero-row { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; padding-inline: var(--gutter); gap: 8px; }
  .strip-item:first-child { grid-column: 1 / -1; }
  .strip-item:first-child > img { height: 64vw; }
  .strip-item > img, .strip-item > video, .device-stage { height: 58vw; }
  .device-stage { padding: 0 6%; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .stats li { display: grid; grid-template-columns: 5.4em 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .legend { grid-column: 1; }
  .service { grid-template-columns: 1fr; gap: 20px; }
  .service-media { grid-row: auto; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card, .card-wide { grid-column: auto; }
  .card-wide .card-media > img { aspect-ratio: 4 / 3; }
  .card-wide .card-media.has-device { aspect-ratio: 4 / 3; padding: 6% 9% 4%; }
  .flagship { grid-template-columns: 1fr; gap: 24px; }
  .flagship:nth-of-type(even) .flagship-media { order: 0; }
  .product-list { grid-template-columns: 1fr; gap: 40px; }
  .ladder li { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
  .month { grid-template-columns: 1fr; }
  .month:first-child { padding: 20px; margin-inline: -8px; }
  .month li { grid-template-columns: 1fr; }
  .about .wrap, .about:not(.has-photo) .about-body, .faq .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .about:not(.has-photo) .about-body h2 { grid-row: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .call .btn { width: 100%; }
}

/* Configurator demo page: text on the left, the film on a mint stage on the right. */
.demo { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); }
.demo h1 { font-size: var(--s-h2); }
.demo .lead { margin-top: 20px; }
.demo-price { margin-top: 16px; max-width: 52ch; }
.demo-request { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: var(--dark); color: var(--on-dark); }
.demo-request h2 { font-size: var(--s-h3); }
.demo-request > p:not(.form-status) { color: var(--on-dark-muted); margin-top: -6px; }
.demo-request .fine a { color: var(--on-dark); }
.demo-request .field textarea { min-height: 96px; }
.demo-greeting { margin-bottom: 20px; font-size: var(--s-lead); }
.demo-footer { padding-block: 40px; }
.demo-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; max-width: 46ch; }
.demo-steps li { counter-increment: step; position: relative; padding-left: 44px; color: var(--muted); }
.demo-steps li::before { content: counter(step); position: absolute; left: 0; top: 0.1em; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--ink); font: 700 var(--s-small)/28px var(--display); text-align: center; }
.demo-steps strong { display: block; color: var(--ink); font-weight: 600; }
.demo-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.demo-actions p, .demo-fine { color: var(--muted); font-size: var(--s-small); }
.demo-fine { margin-top: 28px; }
.demo-contact { margin-top: 12px; }
.demo-contact .link { margin-top: 4px; }
.demo-stage { background: var(--mint); border-radius: var(--radius); padding: clamp(20px, 4vw, 56px); display: grid; place-items: center; }
.demo-stage video { display: block; width: 100%; max-width: 480px; max-height: 78vh; height: auto; object-fit: contain; border-radius: var(--radius); background: var(--ink); box-shadow: 0 30px 60px -30px rgba(21, 24, 22, 0.45); }
@media (min-width: 960px) {
  .demo { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 96px); row-gap: 48px; align-items: start; }
  .demo-intro { grid-column: 1; grid-row: 1; }
  .demo-more { grid-column: 1; grid-row: 2; }
  .demo-stage { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 96px; }
}

/* Case pages: the film, then one row per feature with the screenshot and a short text. */
.case { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 9vw, 128px); }
.case-hero h1 { font-size: var(--s-h1); max-width: 12em; }
.case-hero .lead { margin-top: 24px; max-width: 46ch; }
.case-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.case-note { margin-top: 20px; color: var(--muted); font-size: var(--s-small); }
.case-film { margin-top: clamp(40px, 6vw, 72px); }
.case-film video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--ink); }
.case-rows { margin-top: clamp(64px, 9vw, 128px); display: grid; gap: clamp(56px, 8vw, 112px); }
.case-row { display: grid; gap: 24px; align-items: center; }
.case-shot { position: relative; }
.case-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.case-shot .case-extra { position: absolute; right: 8px; bottom: -20px; width: 40%; box-shadow: 0 24px 48px -24px rgba(21, 24, 22, 0.5); }
.case-row:has(.case-extra) { row-gap: 44px; }
.case-text h2 { font-size: var(--s-h3); }
.case-text p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.case-own { margin-top: clamp(72px, 10vw, 140px); background: var(--mint); border-radius: var(--radius); padding: clamp(28px, 5vw, 72px); }
.case-own h2 { font-size: var(--s-h2); max-width: 14em; }
.case-own p { margin-top: 20px; max-width: 52ch; }
.case-own .case-built { color: var(--muted); font-size: var(--s-small); }
.case-film .film-wide { display: none; }
@media (min-width: 700px) {
  .case-film .film-wide { display: block; }
  .case-film .film-tall { display: none; }
}
@media (min-width: 900px) {
  .case-row { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 5vw, 80px); }
  .case-row:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .case-row:nth-child(even) .case-shot { order: 2; }
  .case-shot .case-extra { right: -16px; bottom: -32px; width: 36%; }
}
.forward { padding-block: clamp(64px, 12vw, 160px); min-height: 50vh; }

/* gtm.kodproduction.fi: its own light and dark theme, the studio pages stay light. */
.gtm-page { --card: #FBFCFA; --line: #D3DAD2; --flow: #7D877E; --on-mint: #151816; }
@media (prefers-color-scheme: dark) {
  .gtm-page { --bg: #121513; --surface: #1B1F1C; --ink: #EEF3EF; --muted: #A9B3AB; --card: #191D1A; --line: #2F3530; --flow: #6E796F; }
}
.gtm-page h2 { font-size: var(--s-h2); }
.gtm-hero { padding-block: clamp(48px, 8vw, 128px) clamp(24px, 4vw, 48px); }
.gtm-hero h1 { max-width: 15ch; }
.gtm-hero .lead { margin-top: 28px; max-width: 46ch; }
.gtm-act { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.gtm-act p { color: var(--muted); }
.gtm-cta { white-space: normal; text-align: center; min-height: 56px; padding-block: 12px; }
.gtm-sec { padding-top: clamp(72px, 10vw, 144px); }
.gtm-intro { margin-top: 20px; color: var(--muted); max-width: 52ch; }

/* The example: a record as it would sit in the CRM. */
.signal-card { margin-top: 36px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 24px 48px -32px rgba(21, 24, 22, 0.35); }
.signal-card h3 { font-size: var(--s-lead); letter-spacing: -0.015em; }
.signal-facts { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.signal-facts li { padding: 4px 12px; border-radius: 999px; background: var(--surface); font-size: var(--s-small); }
.signal-facts li:first-child { background: var(--mint); color: var(--on-mint); }
.signal-card dl { margin-top: 24px; display: grid; gap: 14px; }
.signal-card dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 4px 20px; }
.signal-card dt { color: var(--muted); font-size: var(--s-small); padding-top: 2px; }
.signal-line { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.signal-label { color: var(--muted); font-size: var(--s-small); }
.signal-line blockquote { margin-top: 8px; padding-left: 16px; border-left: 3px solid var(--mint-deep); font-size: var(--s-lead); line-height: 1.4; }
.gtm-caption { margin-top: 14px; color: var(--muted); font-size: var(--s-small); font-style: italic; }
.gtm-after { margin-top: 24px; font-weight: 500; max-width: 52ch; }

/* Comparison: the third column is ours, so it carries the mint. */
.compare { margin-top: 36px; width: 100%; max-width: 1080px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 600; font-size: var(--s-small); border-bottom-color: var(--ink); }
.compare tbody th { font-weight: 600; width: 18%; }
.compare td { width: 27%; }
.compare .ours { background: var(--mint); color: var(--on-mint); font-weight: 500; }
.compare thead .ours { border-radius: 10px 10px 0 0; }
.compare tbody tr:last-child .ours { border-radius: 0 0 10px 10px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* The machine. Five bands left to right (top to bottom on phones); Check & approve is the trust argument
   and sits on mint; the Learn loop runs under the bands back into Find and Qualify. */
.flow { --g: 28px; --stub: 22px; position: relative; margin-top: 40px; }
.bands, .stages { list-style: none; padding: 0; }
.bands { display: grid; gap: var(--g); }
.band { position: relative; display: flex; flex-direction: column; padding: 12px; border-radius: 12px; }
.band-name { font-size: var(--s-small); font-weight: 600; letter-spacing: 0; color: var(--muted); padding: 0 4px 10px; }
.stages { display: grid; gap: 10px; }
.stage { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.stage h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.stage p { margin-top: 6px; font-size: var(--s-small); line-height: 1.45; }
.stage .against { color: var(--muted); }
.stage .against span { font-weight: 600; }
.band.key { background: var(--mint); }
.band.key .band-name { color: var(--on-mint); }
.band.key .stage { border-color: var(--mint-deep); box-shadow: 0 12px 24px -18px rgba(21, 24, 22, 0.5); }
/* Arrows between bands and at the ends of the loop. */
.band + .band::before, .fed .drop::before, .rail::after, .rail-stub::before {
  content: ''; position: absolute; width: 14px; height: 14px; background: var(--flow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drop, .rail, .rail-stub { display: block; }
.loop-stage { max-width: 380px; position: relative; z-index: 1; }
.loop-stage .stage { border-style: dashed; border-color: var(--flow); }

@media (min-width: 1000px) {
  .bands { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .band + .band::before { left: calc(var(--g) / -2 - 7px); top: 15px; }
  /* A line from the last card down to the loop; Find and Qualify get an arrow at the top. */
  .drop { position: relative; flex: 1; min-height: 28px; margin: 10px auto -12px; width: 2px; background: var(--flow); }
  .fed .drop::before { left: -6px; top: -6px; transform: rotate(-90deg); }
  .loop { position: relative; display: flex; justify-content: center; padding-top: 36px; }
  /* Column centres: (100% − 4 gaps) / 10 from each side for the outer bands. */
  .rail { position: absolute; top: 0; height: 64px; left: calc((100% - 4 * var(--g)) / 10 - 1px); right: calc((100% - 4 * var(--g)) / 10 - 1px); border: 2px solid var(--flow); border-top: 0; border-radius: 0 0 14px 14px; }
  .rail::after { display: none; }
  .rail-stub { position: absolute; top: 0; height: 64px; width: 2px; background: var(--flow); left: calc(3 * (100% - 4 * var(--g)) / 10 + var(--g) - 1px); }
  .rail-stub::before { display: none; }
  .band.key { align-self: start; }
  .loop-stage { width: calc((100% - 4 * var(--g)) / 5 + 2 * var(--g)); }
}
@media (max-width: 999px) {
  /* The loop rides up the left edge. */
  .flow { padding-left: 30px; }
  .bands { gap: 34px; }
  .band + .band::before { left: 50%; top: -26px; transform: translateX(-50%) rotate(90deg); }
  .drop { display: none; }
  .fed::after { content: ''; position: absolute; left: -30px; top: var(--stub); width: 30px; height: 2px; background: var(--flow); }
  .fed .stages::before { content: ''; position: absolute; left: -9px; top: calc(var(--stub) - 6px); width: 14px; height: 14px; background: var(--flow);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .loop { position: relative; margin-top: 22px; padding: 12px; }
  .loop::before { content: ''; position: absolute; left: 50%; top: -14px; width: 14px; height: 14px; transform: translateX(-50%) rotate(90deg); background: var(--flow);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 1.5 9.5 7 3 12.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
  .rail { position: absolute; left: 0; top: var(--stub); bottom: 40px; width: 42px; border: 2px solid var(--flow); border-right: 0; border-radius: 14px 0 0 14px; }
  .rail::after, .rail-stub { display: none; }
  .loop-stage { max-width: none; }
}

.risk { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 20px; max-width: 62ch; }
.risk li { padding-left: 20px; border-left: 3px solid var(--mint); }
.gtm-why p { margin-top: 20px; max-width: 58ch; }
.gtm-why h2 + p { margin-top: 28px; }
.gtm-footer { padding-block: clamp(72px, 10vw, 144px) 40px; font-size: var(--s-small); color: var(--muted); }
.gtm-footer p + p { margin-top: 8px; }
.gtm-footer a { color: var(--ink); }

@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding-block: 20px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 6px 0; }
  .compare tbody th { width: auto; font-size: var(--s-lead); padding-bottom: 10px; }
  .compare td { width: auto; }
  .compare td::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--s-small); }
  .compare .ours, .compare tbody tr:last-child .ours { padding: 10px 14px; margin-top: 6px; border-radius: 8px; }
  .compare .ours::before { color: var(--on-mint); opacity: 0.75; }
  .signal-card dl div { grid-template-columns: 1fr; }
}
