/* TERZİ site. Brand tokens from brand/BRAND.txt: monochrome, Chakra Petch + Manrope, visible 1px grid. */
:root {
  --ink: #0A0A0A;
  --ink-soft: #262626;
  --gray: #6B6B6B;
  --gray-on-ink: #A3A3A3;
  --line: #E5E5E5;
  --paper: #FFFFFF;
  --error: #A23B2A;

  --display: 'Chakra Petch', 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Motion: cuts use ease-out-expo (fast, then snaps shut); rolls and exits use --ease. One clock, 70ms per tick. */
  --expo: cubic-bezier(.16, 1, .3, 1);
  --tick: 70ms;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 1px;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-kerning: normal;
  /* Chakra Petch's fi/fl ligatures drop the i dot ("fits" reads as "fıts"), which is wrong in Turkish and English alike. */
  font-variant-ligatures: no-common-ligatures;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, legend { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
/* Lenis smooth scroll (desktop). It does its own easing, so the browser's smooth scroll must stay off while it runs. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
/* Text selection: ink on paper, paper on ink. */
::selection { background: var(--ink); color: var(--paper); }
.inv ::selection, .inv::selection { background: var(--paper); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Grid: the ink shows through 1px gaps, so every cell has a visible edge */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: var(--ink); }
.c { background: var(--paper); padding: var(--space-md); min-width: 0; }
.inv { background: var(--ink); color: var(--paper); }
/* Ink cells host the paper overlay of the reveal (see Motion). Position alone changes nothing in layout. */
.c.inv:not(.bar) { position: relative; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; }
.s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }

/* Homepage first screen: bar, hero and the Ne yapar row fill exactly one viewport, the hero takes what is left. */
.fold { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 1px; background: var(--ink); min-height: calc(100vh - 1px); min-height: calc(100svh - 1px); }

/* Top bar */
.bar { display: flex; align-items: center; min-height: 72px; padding-top: 0; padding-bottom: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.bar img { width: 150px; height: auto; position: relative; top: -2px; }
.bar nav { display: flex; gap: var(--space-md); }
.bar a { text-decoration: none; padding: 12px 0; }
.bar nav a[aria-current="page"], .mnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
a.c.bar { justify-content: space-between; text-decoration: none; }
/* The pinned call-to-action keeps a plain colour change: a clip or transform on it would break the page-switch pin. */
a.c.bar.inv { transition: background-color .16s var(--expo); }
@media (hover: hover) { a.c.bar.inv:hover { background: var(--ink-soft); } }
a.c.bar.inv:focus-visible { background: var(--ink-soft); }
.lang .off { color: var(--gray); }
.mnav { display: none; }

/* Shared cell type */
.c h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-sm); }
.c li { padding: 6px 0; border-top: 1px solid var(--line); }
.c li:first-child { border-top: 0; padding-top: 0; }
.inv li { border-top-color: var(--ink-soft); }
.no { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .9; font-variant-numeric: tabular-nums; }
.muted { color: var(--gray); }
.inv .muted, .inv .label { color: var(--gray-on-ink); }

/* Hero (home) and page heads */
/* The first screen (bar, hero, Ne yapar row) must fit the viewport, so hero sizes follow the viewport height too. */
.hero { padding: clamp(16px, 3vh, 72px) var(--space-md) clamp(16px, 3vh, 48px); display: grid; gap: clamp(12px, 2.5vh, 40px); align-content: center; }
.hero .label { color: var(--gray); }
.hero .sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.0625rem, min(1.6vw, 2.5vh), 1.5rem); line-height: 1.3; max-width: 44ch; }
.hero h1 { font-size: clamp(2.5rem, min(6.46vw, 10.2vh), 6.8rem); line-height: 1; letter-spacing: -.02em; margin-left: -.04em; }
@media (min-height: 880px) { .hero h1 { font-size: clamp(2.5rem, min(6.46vw, 11.9vh), 6.8rem); } }
/* Headline scramble: words never break, each letter keeps its final width while random characters pass through. */
.hero h1 .sw { white-space: nowrap; }
.hero h1 .sc { display: inline-block; text-align: center; overflow-x: clip; }
.phead { padding: clamp(32px, 5vw, 72px) var(--space-md) clamp(24px, 3vw, 40px); display: grid; gap: var(--space-md); align-content: end; }
.phead .label { color: var(--gray); }
.phead h1 { font-size: clamp(2.5rem, 6.4vw, 6.5rem); line-height: 1; letter-spacing: -.02em; margin-left: -.04em; }
.phead .sub { font-family: var(--display); font-weight: 500; font-size: clamp(1.125rem, 1.6vw, 1.5rem); line-height: 1.3; max-width: 46ch; }
.markcell { display: grid; place-items: center; padding: var(--space-lg); }
.markcell svg { width: min(60%, 180px); height: auto; aspect-ratio: 154 / 227; }

/* Home sections */
.lead p { font-family: var(--display); font-weight: 500; font-size: clamp(1.125rem, min(2vw, 2.8vh), 1.75rem); line-height: 1.25; max-width: 40ch; }
.strip { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding-top: 12px; padding-bottom: 12px; display: flex; justify-content: space-between; gap: var(--space-sm); }
.strip a { text-decoration: none; }
.step { display: grid; gap: var(--space-sm); align-content: start; padding-bottom: var(--space-lg); }
.step h3 { font-size: 1.75rem; text-transform: uppercase; }
.step .label { color: var(--gray); }
.step.inv .label { color: var(--gray-on-ink); }
.case { display: grid; gap: var(--space-sm); align-content: start; text-decoration: none; padding-bottom: var(--space-lg); }
.case h3 { font-size: 1.75rem; }
.case .go { font-family: var(--display); font-weight: 600; margin-top: var(--space-sm); }
.case .head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-sm); }
.case .logo { height: clamp(56px, 5.5vw, 80px); width: auto; max-width: 70%; object-fit: contain; object-position: left center; }
.case .num { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.rule { display: grid; place-items: center; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.15; padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
/* One-line contact sentence: the builder sets --n to its character count, so the font scales to the cell width. */
.cta { container-type: inline-size; }
.cta p { font-family: var(--display); font-weight: 500; font-size: min(1.75rem, calc(100cqi / (var(--n, 150) * .46))); line-height: 1.25; white-space: nowrap; padding: var(--space-sm) 0; }
.way { display: flex; justify-content: space-between; align-items: center; min-height: 88px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.headway { align-items: flex-end; min-height: 0; padding-bottom: var(--space-lg); }

/* Nasıl çalışırım: one row per step. */
.snum { position: relative; display: grid; gap: var(--space-sm); align-content: start; padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.snum h2.t { font-size: clamp(2rem, 3.2vw, 2.75rem); text-transform: uppercase; letter-spacing: 0; margin: 0; }
.snum .label { color: var(--gray); }
.snum.inv .label { color: var(--gray-on-ink); }
.snum .meta { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.snum dt { font-family: var(--display); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.snum dd { color: var(--gray); }
.snum.inv dd { color: var(--gray-on-ink); }
.sbody, .sget { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.sbody p { font-size: 1.125rem; line-height: 1.6; max-width: 58ch; }
.sbody p + p { margin-top: var(--space-sm); }
.sget li { padding: 10px 0; }
.sget li:first-child { padding-top: 0; }
.sget .note { margin-top: var(--space-md); font-size: .9375rem; }

/* FAQ */
.faqhead { padding-top: var(--space-lg); }
.faqhead p { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.05; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); min-height: 72px; padding: var(--space-sm) 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.25; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1em; text-align: center; font-size: 1.5em; font-weight: 500; line-height: 1; transition: transform .18s var(--expo); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--space-md); max-width: 62ch; color: var(--ink-soft); }

/* İşler */
.wstrip { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding-top: 12px; padding-bottom: 12px; display: flex; justify-content: space-between; gap: var(--space-sm); }
.wlogo { grid-row: span var(--rows, 1); display: grid; place-items: center; padding: var(--space-lg) var(--space-md); }
.wlogo img { height: clamp(72px, 7.5vw, 120px); width: auto; max-width: 100%; object-fit: contain; object-position: center; }
.wlogo img.tall { height: clamp(96px, 10vw, 160px); }
/* Clients with several projects: the logo starts at the top, rides along mid-screen while scrolling, and stops at the bottom of its cell. */
.wlogo.multi { align-items: start; }
.wlogo.multi img, .wlogo.multi .tmark { position: sticky; top: calc(50vh - clamp(48px, 5vw, 80px)); }
.wlogo .tmark { width: clamp(40px, 4vw, 56px); height: auto; aspect-ratio: 154 / 227; }
.wnum { display: grid; gap: var(--space-xs); align-content: start; padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.wnum h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); text-transform: none; letter-spacing: 0; margin: 0; }
.wnum .tag { color: var(--gray); margin-bottom: var(--space-sm); }
.wnum .no { font-size: clamp(3rem, 5.5vw, 5rem); }
.wnum p { font-family: var(--display); font-weight: 500; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.3; max-width: 26ch; }
.wnum p.tag { font-family: var(--body); font-size: .9375rem; }
.wbody { display: grid; gap: var(--space-md); align-content: start; padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.wbody p { max-width: 54ch; }
.wsmall { display: grid; gap: var(--space-xs); align-content: start; }
.wsmall h3 { font-size: 1.25rem; }
.wsmall .tag { font-family: var(--body); font-weight: 500; font-size: .875rem; color: var(--gray); margin-left: 6px; }
.wsmall p { font-size: .9375rem; max-width: 62ch; }
.wsmall .feat { color: var(--gray); font-size: .875rem; }

.wtile { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: var(--space-md); }
.wtile img { height: clamp(56px, 6vw, 96px); width: auto; max-width: 80%; object-fit: contain; }

/* Homepage İşler row: one long track of logo tiles; JS slides it one tile at a time. */
.loop { padding: 0; overflow: hidden; background: var(--ink); }
.loop .track { display: flex; gap: 1px; }
.ltile { flex: 0 0 calc((100% - 2px) / 3); display: grid; place-items: center; aspect-ratio: 2 / 1; padding: var(--space-md); background: var(--paper); }
.ltile img { height: clamp(56px, 6vw, 96px); width: auto; max-width: 80%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .loop { overflow-x: auto; } }

/* İletişim: form */
.formcell { padding: clamp(24px, 4vw, 56px); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-md); }
.field { display: grid; gap: var(--space-xs); align-content: start; }
.field.full, .form .full { grid-column: 1 / -1; }
.field > label, .seg legend { font-family: var(--display); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.opt { font-family: var(--body); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray); }
.field input, .field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  font: 500 1rem/1.5 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.err { font-size: .875rem; font-weight: 600; color: var(--error); }
.err:empty { display: none; }
.kvkkerr { margin-top: var(--space-xs); }
.formerr { margin-top: var(--space-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit:disabled { cursor: progress; }

.seg .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-top: var(--space-xs); }
.seg.three .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg label { position: relative; display: grid; place-items: center; min-height: 56px; padding: 8px; background: var(--paper); font-family: var(--display); font-weight: 600; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 1; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.consent a { font-weight: 600; text-underline-offset: 3px; }

.submit { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 72px; padding: 0 var(--space-md); font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--paper); background: var(--ink); border: 0; border-radius: 0; cursor: pointer; }

.done { display: grid; gap: var(--space-md); align-content: start; padding: var(--space-lg) 0; }
.done h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: none; letter-spacing: -.01em; margin: 0; }
.done p { font-family: var(--display); font-weight: 500; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.3; max-width: 40ch; }
.done a { font-family: var(--display); font-weight: 600; text-underline-offset: 4px; }

.side { display: grid; gap: var(--space-lg); align-content: start; padding: clamp(24px, 4vw, 56px); }
.side h2 { color: var(--gray-on-ink); }
.next li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-sm); padding: var(--space-sm) 0; line-height: 1.5; }
.next li:first-child { padding-top: 0; }
.next b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.direct a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; text-decoration: none; border-top: 1px solid var(--ink-soft); }
.direct a:last-child { border-bottom: 1px solid var(--ink-soft); }
.direct .dv { display: block; font-family: var(--body); font-weight: 500; font-size: .875rem; color: var(--gray-on-ink); }
.direct a { padding: 10px 0; }

/* Legal pages */
.legal { display: grid; gap: var(--space-lg); padding: clamp(24px, 4vw, 56px) var(--space-md); }
.legal section { display: grid; gap: var(--space-sm); max-width: 70ch; }
.legal h2.lh { font-size: clamp(1.25rem, 1.8vw, 1.5rem); text-transform: none; letter-spacing: 0; margin: 0; }
.legal ul { display: grid; gap: 0; }
.legal li { padding: 8px 0 8px 20px; position: relative; }
.legal li::before { content: "·"; position: absolute; left: 4px; font-weight: 700; }
.foot a { color: inherit; text-underline-offset: 3px; }

/* Footer */
.foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); min-height: 64px; padding-top: 0; padding-bottom: 0; font-size: .875rem; color: var(--gray-on-ink); }
.foot img { width: 80px; height: auto; }

/* Phone and small tablet */
@media (max-width: 900px) {
  .s2, .s3, .s4, .s5, .s6, .s7, .s8, .s9 { grid-column: span 12; }
  .fold { grid-template-rows: none; min-height: 0; }
  .bar.navcell { display: none; }
  .half { grid-column: span 6; }
  .markcell { display: none; }
  .mnav { display: flex; justify-content: space-between; gap: var(--space-sm); padding-top: 0; padding-bottom: 0; min-height: 56px; align-items: center; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .875rem; }
  .mnav a { text-decoration: none; padding: 16px 0; }
  .cta p { font-size: 1.125rem; white-space: normal; }
  .snum, .sbody, .sget, .wlogo, .wnum, .wbody { padding-top: var(--space-md); padding-bottom: var(--space-md); }
  .snum + .sbody { padding-top: var(--space-md); }
  .wlogo { grid-row: auto; }
  .wlogo.multi img, .wlogo.multi .tmark { position: static; }
  .wtile { aspect-ratio: 5 / 2; }
  .ltile { flex-basis: calc((100% - 1px) / 2); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .seg .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg.three .opts { grid-template-columns: minmax(0, 1fr); }
  .seg.three label { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Page switch: the header stays still while everything under it slides left and the new page comes in from the right.
   Uses the browser's cross-page view transitions; browsers without them just load the page normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.bar.s3 { view-transition-name: bar-logo; }
.navcell { view-transition-name: bar-nav; }
.lang { view-transition-name: bar-lang; }
a.c.bar.inv { view-transition-name: bar-cta; }
.mnav { view-transition-name: bar-mnav; }
.bar, .mnav { view-transition-class: bar; }
::view-transition-group(*.bar), ::view-transition-new(*.bar) { animation: none; }
::view-transition-old(*.bar) { display: none; }
::view-transition-old(root) { animation: .7s var(--expo) both page-out; }
::view-transition-new(root) { animation: .7s var(--expo) both page-in; }
@keyframes page-out { to { transform: translateX(-100%); } }
@keyframes page-in { from { transform: translateX(100%); } }
/* Going back along the nav (İletişim → Nasıl çalışırım → İşler → home) slides the other way. */
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: page-out-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: page-in-back; }
@keyframes page-out-back { to { transform: translateX(100%); } }
@keyframes page-in-back { from { transform: translateX(-100%); } }

/* ---------- Motion: the negative plate ----------
   Every cell is one flap of a split-flap board with two faces, ink and paper. Paper cells shuttle in from the
   left (the print head carriage), ink cells are cut open by a paper overlay falling away from the top (the blade).
   Before a cell turns, the page shows its own negative. The pre-state exists only while html.js is set (motion
   allowed and IntersectionObserver present) and until the reveal script marks the cell .rv (rested), so a JS
   failure or an unsupported browser never leaves a cell blank. Nothing here animates layout or opacity. */
@media (prefers-reduced-motion: no-preference) {
  html.js .c:where(:not(.bar):not(.mnav):not(.inv):not(.rv)) { clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--expo) var(--d, 0ms); }
  html.js .c:where(.s6, .s8, .s9, .s12):where(:not(.bar):not(.mnav):not(.inv):not(.rv)) { transition-duration: .7s; }
  html.js .c.on:where(:not(.inv)) { clip-path: inset(0); }
  html.js .c.inv:where(:not(.bar):not(.mnav):not(.rv))::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--paper); clip-path: inset(0); transition: clip-path .5s var(--expo) var(--d, 0ms); }
  html.js .c.inv:where(.strip, .wstrip, .foot):where(:not(.rv))::after { transition-duration: .35s; }
  html.js .c.inv.on::after { clip-path: inset(100% 0 0 0); }
  /* Type marked .pr prints left to right once its paper has arrived (300ms after the cell starts). */
  html.js .c:where(:not(.rv)) .pr { clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--expo) calc(var(--d, 0ms) + .3s); }
  html.js .c:where(:not(.rv)) h1.pr { transition-duration: .6s; }
  html.js .hero:where(:not(.rv)) .sub.pr { transition-delay: calc(var(--d, 0ms) + .96s); }
  html.js .c.on .pr { clip-path: inset(0); }
  /* Cells arriving inside a page slide, and cells taller than two screens, turn with no transition. */
  html.js .c.snap, html.js .c.snap::after, html.js .c.snap .pr { transition: none !important; }
}

/* Hover: the slot bar. A white strip blended with "difference" slides across the link from the left and inverts
   whatever it covers, so a letter is split ink/paper exactly where the bar's edge crosses it. One mechanism for every
   link and button; the bar is the opposite colour of its cell by construction. In at 320ms expo, out at 200ms quint. */
a.way, .strip a, .ltile, .direct a, .faq summary, .submit, .seg label, .done a, .foot a, .bar nav a, a.case { position: relative; isolation: isolate; }
/* A link that sits on a cell gets the cell's colour as its own background: the bar inverts what is inside the
   link's isolated group, so that group needs an opaque backdrop. Links that are cells already have one. */
.strip a { display: inline-block; padding: 0 .3em; margin: 0 -.3em; background: var(--ink); }
.foot a { display: inline-block; padding: 0 .2em; margin: 0 -.2em; background: var(--ink); }
.done a { justify-self: start; padding: 0 .2em; margin: 0 -.2em; background: var(--paper); }
.direct a { background: var(--ink); }
.faq summary { margin: 0 calc(-1 * var(--space-md)); padding: var(--space-sm) var(--space-md); background: var(--paper); }
.bar nav a { padding: 12px .3em; margin: 0 -.3em; background: var(--paper); }
a.way::before, .strip a::before, .ltile::before, .direct a::before, .faq summary::before, .submit::before, .seg label::before, .done a::before, .foot a::before, .bar nav a::before, a.case::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #fff; mix-blend-mode: difference;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .2s var(--ease);
}
.bar nav a::before { inset: 8px 0; }
.seg label:has(input:checked)::before { display: none; }
@media (hover: hover) {
  a.way:hover::before, .strip a:hover::before, .ltile:hover::before, .direct a:hover::before, .faq summary:hover::before, .submit:hover::before, .seg label:hover::before, .done a:hover::before, .foot a:hover::before, .bar nav a:hover::before, a.case:hover::before { clip-path: inset(0); transition: clip-path .32s var(--expo); }
  .bar nav a:hover::before { transition-duration: .24s; }
}
a.way:focus-visible::before, .strip a:focus-visible::before, .ltile:focus-visible::before, .direct a:focus-visible::before, .faq summary:focus-visible::before, .submit:focus-visible::before, .seg label:has(input:focus-visible)::before, .done a:focus-visible::before, .foot a:focus-visible::before, .bar nav a:focus-visible::before, a.case:focus-visible::before { clip-path: inset(0); transition: clip-path .32s var(--expo); }
.bar nav a:focus-visible::before { transition-duration: .24s; }

/* İşler: the proof numbers are a mechanical counter. Each digit sits in a box the exact height of the line,
   a column of digits travels inside it and stops; the ₺, $, M, K and + stay printed. */
.wnum .no .dg { display: inline-block; vertical-align: top; height: .9em; line-height: .9; overflow: clip; }
.wnum .no .col { display: block; transition: transform .8s var(--ease); }
.wnum .no .col span { display: block; height: .9em; line-height: .9; }
.wnum .no .col.go { transform: translateY(calc(var(--n, 0) * -.9em)); }

/* FAQ: the answer is cut open from the top. Closing is native and instant. */
.faq details[open] > p { animation: cut .4s var(--expo) both; }
@keyframes cut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* Form: errors stamp (no transition on the field) and their message prints left to right. */
.err:not(:empty) { animation: print .25s var(--expo) both; }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
/* The submit label flaps like one split-flap character; while sending, the arrow ratchets like a carriage. */
.submit > span:first-child.out { animation: flap-out .15s var(--expo) both; }
.submit > span:first-child.in { animation: flap-in .2s var(--expo) both; }
@keyframes flap-out { to { clip-path: inset(0 0 100% 0); transform: translateY(-.2em); } }
@keyframes flap-in { from { clip-path: inset(0 0 100% 0); transform: translateY(-.2em); } }
.submit:disabled > span:last-child { animation: ratchet 1.4s steps(4, end) infinite; }
@keyframes ratchet { to { transform: translateX(24px); } }
/* Success: an ink platen falls over the form, the receipt is swapped in under it, the platen lifts. */
.formcell { position: relative; }
.formcell.stamp::after, .formcell.lift::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: var(--ink); }
.formcell.stamp::after { animation: platen-fall .35s var(--expo) both; }
.formcell.lift::after { animation: platen-lift .5s var(--expo) both; }
@keyframes platen-fall { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes platen-lift { from { clip-path: inset(0); } to { clip-path: inset(100% 0 0 0); } }
.done.show h2 { animation: print .5s var(--expo) .15s both; }
.done.show p { animation: print .5s var(--expo) .3s both; }
