/* =========================================================================
   East Marketing — near-black + white + one blue accent, mobile-first

   HOUSE RULES (keep the site consistent — see README "Design rules")
   1. Sizes are in rem, never px (except 1–3px lines). The root size grows above 1280px screens, so a big
      monitor shows the same page, just larger — same proportions and layout at every desktop size.
   2. Only two layout breakpoints: 640px (2 columns) and 1080px (desktop: 3/4 columns, menu in the top bar).
      Grids use fixed column counts, so no card is ever left alone on a row.
   3. One font family everywhere: Satoshi (headings, body, buttons, labels).
   4. Spacing comes from the --sp-* scale, section spacing from --section-y, text sizes from --fs-*.
   5. Buttons never move — they only change colour.
   ========================================================================= */

/* Satoshi (Fontshare Free License — free for commercial + personal use, self-hosting permitted). */
@font-face { font-family: "Satoshi"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/satoshi-400.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/satoshi-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/satoshi-900.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --fg: #0a0d14;
  --fg-soft: #5b6472;
  --line: #e6e9ee;
  --line-strong: #0a0d14;
  --btn-bg: #0a0d14;
  --btn-fg: #ffffff;
  --field-bg: #ffffff;
  --logo-filter: invert(1);

  /* One accent on top of black and white: buttons, small highlights, focus */
  --accent: #0476bc;
  --accent-strong: #035f99;
  --accent-text: #0476bc;
  --on-accent: #ffffff;
  --focus: var(--accent-text);
  --dot: #17b06b;

  --wrap: 73.75rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  /* one font family for everything */
  --font: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* spacing scale (rem) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --section-y: clamp(3.5rem, 2rem + 6.6vw, 7rem);   /* space above and below every section */

  /* text sizes: fluid on phones and tablets, fixed from ~1100px (then the root size scales them) */
  --fs-h1: clamp(2.25rem, 1rem + 5.2vw, 3.9rem);
  --fs-h2: clamp(1.625rem, 1rem + 2.4vw, 2.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;                              /* uppercase micro-labels */

  --step-fast: 140ms;
  --step: 260ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0a0d14;
  --bg-alt: #12161f;
  --fg: #f4f6f9;
  --fg-soft: #9aa3b2;
  --line: #232833;
  --line-strong: #f4f6f9;
  --btn-bg: #f4f6f9;
  --btn-fg: #0a0d14;
  --field-bg: #10141c;
  --logo-filter: none;
  --accent: #2b95d6;
  --accent-strong: #4ba8e3;
  --accent-text: #4ba8e3;
  --dot: #2ed788;
}



/* 16px up to 1280px screens; above that the root size grows (20px at 1920, 24px from 2560), so everything —
   text, spacing, the page width — scales together and the layout keeps the same proportions on big monitors. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: clamp(16px, calc(8px + 0.625vw), 24px);
}

h1, h2, h3, h4 { font-weight: 800; font-family: var(--font-head); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--step) var(--ease), color var(--step) var(--ease);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

main [id],
#top { scroll-margin-top: 5.5rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform var(--step) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* ---------- buttons: pill-shaped, colour changes only, never move ------------------------- */

.btn {
  --_bg: var(--accent);
  --_fg: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_border, var(--_bg));
  padding: 0.9375rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 0.95rem;
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { --_bg: var(--accent-strong); }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--fg);
  --_border: var(--line-strong);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); --_border: var(--fg); }

.btn--invert {
  --_bg: var(--bg);
  --_fg: var(--fg);
  border-color: var(--bg);
}
.btn--invert:hover { background: transparent; color: var(--bg); border-color: var(--bg); }

.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.82rem; }
.btn--wide { width: 100%; padding: 1.0625rem 1.75rem; }

/* ---------- header ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color var(--step) var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line-strong); }

.site-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.site-header.scrolled .site-header__row { min-height: 3.625rem; }
.site-header__row { transition: min-height var(--step) var(--ease); }

/* Logo is white-on-transparent; --logo-filter turns it black on the light theme. */
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
}
.brand__logo {
  display: block;
  height: 1.875rem;
  width: auto;
  filter: var(--logo-filter);
}
.brand--footer .brand__logo { height: 2.25rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a { padding: 0.375rem 0; position: relative; color: var(--fg-soft); white-space: nowrap; }
.nav a:hover { color: var(--fg); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--step) var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: 0.5rem;
}
.nav + .site-header__controls { margin-left: 0.5rem; }

/* visible TR / EN switch in the header, on every screen size */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease);
}
.lang-switch button + button { border-left: 1px solid var(--line-strong); }
.lang-switch button:hover { color: var(--fg); }
.lang-switch button[aria-current="true"] { background: var(--fg); color: var(--bg); }
@media (max-width: 639px) {
  .lang-switch button { padding: 0.35rem 0.6rem; }
}

/* ---------- language menu (globe) ---------------------------------- */

.langmenu { position: relative; }
.langmenu__list { list-style: none; padding: 0; margin: 0; }
.langmenu__list[hidden] { display: none; }
.langmenu__list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease);
}
.langmenu__list button:hover { background: var(--fg); color: var(--bg); }

/* desktop: globe icon in the top bar + small dropdown */
.langmenu--header .langmenu__btn svg { width: 1.1875rem; height: 1.1875rem; }
.langmenu--header .langmenu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 120;
  min-width: 11.25rem;
  padding: 0.375rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(10, 13, 20, 0.35);
}
.langmenu--header .langmenu__list button[aria-current="true"]::after { content: "✓"; font-weight: 700; }

/* phones: a row inside the hamburger menu that opens to the languages */
.langmenu--drawer { display: none; }
.langmenu__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: 0;
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}
.langmenu__row .globe { width: 1.25rem; height: 1.25rem; }
.langmenu__row .chev { width: 1.125rem; height: 1.125rem; transition: transform var(--step) var(--ease); }
.langmenu__row[aria-expanded="true"] .chev { transform: rotate(180deg); }
.langmenu__cur {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2px 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.langmenu--drawer .langmenu__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0 0.75rem;
}
.langmenu--drawer .langmenu__list[hidden] { display: none; }
.langmenu--drawer .langmenu__list button {
  border: 1px solid var(--line-strong);
  padding: 0.75rem;
  border-radius: var(--radius);
}
.langmenu--drawer .langmenu__list button[aria-current="true"] { background: var(--fg); color: var(--bg); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.375rem; height: 2.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
}
.icon-btn svg { width: 1.125rem; height: 1.125rem; }
.icon-btn .icon-moon { display: none; }
[data-theme="dark"] .icon-btn .icon-sun { display: none; }
[data-theme="dark"] .icon-btn .icon-moon { display: block; }


.hamburger {
  display: none;
  width: 2.5rem; height: 2.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  padding: 0.625rem;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--fg);
  transition: transform var(--step) var(--ease), opacity var(--step-fast) var(--ease);
}
.hamburger span + span { margin-top: 0.3125rem; }

/* small decorative clock beside the menu button — hands just turn slowly, not the real time */
.mini-clock {
  display: inline-grid;
  place-items: center;
  width: 2.375rem; height: 2.375rem;
  color: var(--fg);
  flex-shrink: 0;
}
.mini-clock svg { width: 1.5rem; height: 1.5rem; overflow: visible; }
.mini-clock__m, .mini-clock__h { transform-origin: 12px 12px; transform-box: view-box; }
.mini-clock__m { animation: mini-clock-turn 8s linear infinite; }
.mini-clock__h { animation: mini-clock-turn 96s linear -30s infinite; }
@keyframes mini-clock-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .mini-clock__m { animation-duration: 60s; }
  .mini-clock__h { animation-duration: 720s; animation-delay: -225s; }
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* ---------- hero ------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bgdots {
  position: absolute;
  inset: -10% -6% auto auto;
  width: 62%;
  height: 150%;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 1.625rem 1.625rem;
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 42%, #000 78%, transparent 100%);
  mask-image: linear-gradient(115deg, transparent 8%, #000 42%, #000 78%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  grid-template-columns: 1fr;
}
.hero__inner { max-width: 40rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow .num {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding-inline: 0.25rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 0.66rem;
  color: var(--accent-text);
}
/* a small status dot in front of an eyebrow that wants one (hero) */
.eyebrow--dot::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--dot);
  flex: none;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: var(--sp-4) 0 var(--sp-5);
  max-width: 17ch;
}
.hero__sub {
  font-size: var(--fs-lead);
  color: var(--fg-soft);
  max-width: 44ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin: 1.875rem 0 1.625rem;
}


/* quick contact row (WhatsApp / email / save contact) — made for the NFC-card tap */
.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 32.5rem;
  margin: 0 0 1.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0.9375rem 0.375rem;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease);
}
.quick__btn + .quick__btn { border-left: 1px solid var(--line); }
.quick__btn svg { width: 1.375rem; height: 1.375rem; }
.quick__btn:hover { background: var(--accent); color: var(--on-accent); }

.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 0.4375rem 0.9375rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---------- sections -------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 46ch; margin-bottom: clamp(2rem, 6vw, 4rem); }
.section__head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: var(--sp-3);
}
.section__sub { color: var(--fg-soft); margin-top: var(--sp-3); font-size: var(--fs-lead); }

/* ---------- cards: a bordered grid (hairline dividers), rounded as a whole -------- */

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-height: 11.875rem;
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease);
}
.section--alt .card { background: var(--bg-alt); }
.card:hover { background: var(--fg); color: var(--bg); }
.card:hover .card__no { color: var(--bg); border-color: var(--bg); }
.card__no {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 3px 0.4375rem;
  color: var(--fg-soft);
}
.card h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.card p { color: inherit; opacity: 0.82; font-size: var(--fs-small); }

/* ---------- demos ------------------------------------------------- */

.work {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
.work__item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--step) var(--ease);
}
.work__item:hover { border-color: var(--line-strong); }
.work__item[hidden] { display: none; }
.work__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.work__media img, .work__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Monochrome by default on devices with a pointer; colour appears on hover. Touch screens always show colour. */
@media (hover: hover) {
  .work__media img, .work__media video { filter: grayscale(1); transition: filter var(--step) var(--ease); }
  .work__item:hover .work__media img, .work__item:hover .work__media video { filter: none; }
}
.work__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.work__kind {
  font-family: var(--font-head);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fg-soft);
}
.work__body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.work__body p:not(.work__kind) { color: var(--fg-soft); font-size: 0.95rem; }
.work__tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.work__tags li {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
}
.work__cta { margin-top: auto; padding-top: 0.625rem; }
/* the whole card is clickable through the button's stretched link */
.work__cta .btn::after { content: ""; position: absolute; inset: 0; }
.work__item:hover .btn--ghost { background: var(--fg); color: var(--bg); }
.work__note { margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--fg-soft); }
.work__all { margin-top: var(--sp-6); }

/* pictograms on the solution cards and the ready-made app cards */
.card__icon { align-self: flex-start; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-text); transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease); }
.card__icon svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--bg); color: var(--fg); }
.card__badge { display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-family: var(--font-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.card__badge.ready { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: auto; padding-top: var(--sp-2); opacity: 1 !important; }
.cards.cards--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards.cards--2 { grid-template-columns: repeat(2, 1fr); } }
.work__group { margin: var(--sp-7) 0 var(--sp-4); font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; }
.work__group:first-of-type { margin-top: 0; }

/* ---------- about (who we are) ------------------------------------- */

.about {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
  grid-template-columns: 1fr;
}
.about__portrait { max-width: 16.25rem; }
.about__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
/* Light theme shows the original photo; dark theme shows the same picture in soft grays on a dark tile
   (tools/portrait-dark.ps1) instead of a harsh white-on-black negative. */
.about__portrait .pic--dark { display: none; }
[data-theme="dark"] .about__portrait .pic--light { display: none; }
[data-theme="dark"] .about__portrait .pic--dark { display: block; }

.about__portrait figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.about .section__head { margin-bottom: var(--sp-4); }
.about__p { max-width: 58ch; font-size: var(--fs-lead); color: var(--fg-soft); }
.about__p + .about__p { margin-top: var(--sp-3); }
.about__more { margin-top: var(--sp-5); }
.promises {
  list-style: none;
  padding: 0;
  margin-top: 1.875rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promises li { background: var(--bg-alt); padding: 1.25rem 1.375rem; }
.promises { grid-template-columns: 1fr; }
.promises h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.promises p { margin-top: var(--sp-2); color: var(--fg-soft); font-size: var(--fs-small); }

/* ---------- FAQ ---------------------------------------------------- */

.faq-wrap { max-width: 51.25rem; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.375rem 2.75rem 1.375rem 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__item p { padding: 0 2.75rem 1.375rem 0; color: var(--fg-soft); }

/* ---------- optional extra fields in the form ------------------------ */

.more { border-top: 1px solid var(--line); padding-top: 0.25rem; }
.more summary {
  cursor: pointer;
  list-style: none;
  padding: 0.625rem 0;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-text);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "− "; }
.more__body { display: flex; flex-direction: column; gap: 1.125rem; padding: 0.5rem 0 0.375rem; }

/* ---------- steps ------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}
.section--alt .step { background: var(--bg-alt); }
.step {
  background: var(--bg);
  padding: clamp(1.375rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.step__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius);
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.step__icon svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step__n {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-soft);
  opacity: 0.45;
}
.step h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.step p { color: var(--fg-soft); font-size: var(--fs-small); }

/* ---------- CTA band ------------------------------------------------ */

.band {
  background: var(--fg);
  color: var(--bg);
  border-bottom: 1px solid var(--line);
}
.band__inner {
  padding-block: var(--section-y);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.band__inner h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
}
.band__inner p { opacity: 0.78; max-width: 44ch; }

/* ---------- form -------------------------------------------------- */

.form-wrap { max-width: 48.75rem; }
.form { display: flex; flex-direction: column; gap: 1.125rem; }

.grid-2 { display: grid; gap: 1.125rem; grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 0.4375rem; }
.field label,
.check span {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg-soft);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--fg);
  background: var(--field-bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field input[aria-invalid="true"] { border-color: #b00020; }
[data-theme="dark"] .field input[aria-invalid="true"] { border-color: #ff6b81; }

.err {
  color: #b00020;
  font-size: 0.78rem;
  min-height: 1em;
}
[data-theme="dark"] .err { color: #ff6b81; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}
.check input { margin-top: 3px; width: 1rem; height: 1rem; flex: none; accent-color: var(--fg); }
.check span { text-transform: none; font-weight: 500; color: var(--fg-soft); }

.form__note { font-size: 0.8rem; color: var(--fg-soft); }

.hp {
  position: absolute;
  left: -624.9375rem;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-result {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: 0.5rem;
}
.form-result h3 { font-size: 1.3rem; font-weight: 800; }
.form-result p { color: var(--fg-soft); margin-top: 0.5rem; }
.form-result__actions {
  margin-top: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- contact ---------------------------------------------- */

.contact-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list__label {
  font-family: var(--font-head);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fg-soft);
  width: 7.5rem;
  flex: none;
}
.contact-list a {
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 2px solid transparent;
}
.contact-list a:hover { border-bottom-color: var(--accent-text); }
.contact-save { margin-top: 1.75rem; }

/* ---------- footer -------------------------------------------------- */

.site-footer {
  padding-block: clamp(2.25rem, 6vw, 4rem);
  background: var(--bg);
}
.site-footer__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.site-footer__tag { color: var(--fg-soft); max-width: 40ch; }
.site-footer__meta {
  font-size: 0.8rem;
  color: var(--fg-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.site-footer__meta .dot { opacity: 0.5; }
.site-footer__meta a,
.form__link {
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 3px;
}
.site-footer__meta a:hover,
.form__link:hover { color: var(--fg); }

/* ---------- privacy page (/gizlilik/) ------------------------------------ */

.legal-main { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 9vw, 7rem); }
.legal__inner { max-width: 47.5rem; }
.legal__back {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: clamp(1.375rem, 4vw, 2.5rem);
}
.legal__back::before { content: "← "; }
.legal__back:hover { color: var(--accent-text); }
.legal-main h1 {
  font-size: clamp(1.75rem, 1rem + 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.legal__meta {
  margin-top: 0.875rem;
  font-family: var(--font-head);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--fg-soft);
}
.legal__intro {
  margin-top: 1.375rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.1rem;
  line-height: 1.55;
}
.legal__sec {
  margin-top: clamp(1.875rem, 5vw, 3rem);
  padding-top: clamp(1.375rem, 4vw, 2.125rem);
  border-top: 1px solid var(--line);
}
.legal__sec h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin-bottom: 0.875rem;
}
.legal__sec h2 span {
  flex: none;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 1px 0.5625rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.legal__sec p { color: var(--fg-soft); }
.legal__sec p + p,
.legal__sec p + ul,
.legal__sec ul + p { margin-top: 0.75rem; }
.legal__sec ul { padding-left: 1.2em; color: var(--fg-soft); }
.legal__sec li + li { margin-top: 0.5rem; }
.legal__sec li::marker { color: var(--accent-text); }
.legal__sec a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal__sec a:hover { color: var(--accent-text); }
.legal__foot { margin-top: clamp(1.875rem, 5vw, 3rem); }

/* ---------- reveal animation ------------------------------------ */

/* Content is visible by default; only hidden once JS is running (.js on <html>)
   so a JS/observer failure can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- fallback pages ------------------------------------- */

.fallback {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--pad);
  text-align: center;
}
.fallback__inner { max-width: 46ch; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.fallback h1 { font-size: clamp(2.4rem, 9vw, 4.5rem); font-weight: 900; letter-spacing: -0.035em; }
.fallback p { color: var(--fg-soft); }
.fallback .btn { margin-top: 0.5rem; }

/* ---------- footer links ------------------------------------------------- */

.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-small); }
.site-footer__links a { color: var(--fg-soft); text-decoration: underline; text-decoration-color: var(--accent-text); text-underline-offset: 3px; }
.site-footer__links a:hover { color: var(--fg); }

/* ---------- sub-page heading (demos, about) ------------------------------- */

.page-head {
  padding-block: var(--section-y) var(--sp-7);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: var(--sp-3) 0 var(--sp-4);
}
.page-head__lead { max-width: 52ch; font-size: var(--fs-lead); color: var(--fg-soft); }
.section--flush-top { padding-top: var(--sp-7); }

/* ---------- demo filter ------------------------------------------------- */

.filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  /* colour changes only — buttons never move */
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
}
.filter__btn:hover { border-color: var(--accent-text); color: var(--accent-text); }
.filter__btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter__n { opacity: 0.6; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .work__item.is-in { animation: cardIn 420ms var(--ease) both; }
}
@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- timeline (about page) ----------------------------------------- */

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.4rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line-strong); opacity: 0.3; }
.timeline__item { position: relative; padding: 0 0 var(--sp-5) 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.85rem; height: 0.85rem;
  border: 2px solid var(--accent-text);
  border-radius: 50%;
  background: var(--bg-alt);
}
.timeline__item:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline h3 { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.timeline p { color: var(--fg-soft); margin-top: var(--sp-1); max-width: 52ch; }

/* ---------- link at the bottom of each "what we do" card ---------------------- */

.card { position: relative; }
.card__more {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  transition: color var(--step-fast) var(--ease);
}
.card__more::before { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.card__more::after { content: " →"; }
.card:hover .card__more { color: var(--bg); }

/* ---------- "3 steps" strip (home summary + about page) ------------------------ */

.mini-steps {
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mini-steps li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
}
.section--alt .mini-steps li { background: var(--bg-alt); }
.mini-steps__n {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 800;
}

/* ---------- about page: facts, "why" text ------------------------------------ */

.facts { display: grid; gap: var(--sp-4); margin: var(--sp-6) 0 0; padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-head); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); }
.facts dd { margin: var(--sp-1) 0 0; max-width: 52ch; }
.prose .section__head { max-width: none; margin-bottom: var(--sp-5); }
.prose p { font-size: var(--fs-lead); color: var(--fg-soft); max-width: 62ch; }
.prose p + p { margin-top: var(--sp-4); }
.prose .section__head + p { color: var(--fg); }

/* ---------- solution pages (/cozumler/…) ---------------------------------------- */

.sp { display: grid; gap: var(--sp-7); align-items: start; }
.sp__label {
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
}
.sp__for { margin: var(--sp-3) 0 var(--sp-6); font-size: var(--fs-lead); max-width: 52ch; }
.sp__list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-4); }
.sp__list li { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--sp-3); color: var(--fg-soft); }
.sp__list li::before {
  content: "";
  width: 1.1rem;
  height: 0.6rem;
  margin-top: 0.35rem;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) scale(0.9);
}
.sp__cap { margin: var(--sp-3) 0 var(--sp-4); color: var(--fg-soft); }
.sp__note { margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--fg-soft); }
.work--stack .work__item { background: var(--bg); }
.sp-others { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sp-others a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease);
}
.sp-others a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.sp-others .sp-others__all { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.sp-others .sp-others__all:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

/* ---------- responsive: only two breakpoints — 640px and 1080px --------------- */

/* below the desktop layout: the menu sits behind the hamburger */
@media (max-width: 1079px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem var(--pad) 1.25rem;
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
    transform: translateY(-1.5rem);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--step) var(--ease), opacity var(--step) var(--ease), visibility 0s linear var(--step);
    margin-left: 0;
    z-index: 90;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--fg);
  }
  .nav a::after { display: none; }
  .hamburger { display: block; }
  .site-header__controls { margin-left: auto; }
  .cta-link { display: none; }
  /* language moves into the hamburger menu */
  .langmenu--header { display: none; }
  .langmenu--drawer { display: block; }
}

/* phones */
@media (max-width: 639px) {
  .card { min-height: 0; }
  .brand__logo { height: 1.75rem; }
  .hero__cta .btn { flex: 1 1 auto; }
  .contact-list__label { width: 100%; }
}

/* 640px and up: two columns */
@media (min-width: 640px) {
  .cards, .work, .promises, .steps, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .work--stack { grid-template-columns: 1fr; }
  .mini-steps--wide { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 14rem 1fr; }
}

/* 1080px and up: desktop — three / four columns, menu in the top bar, hero becomes two columns */
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .mini-steps { grid-template-columns: repeat(3, 1fr); }
  .sp { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 16.25rem 1fr; }
  .nav { margin-left: auto; }
}

/* ---------- services: lead cards, "not on the list" card, starting-price line ---------- */
.card--lead { min-height: 15rem; }
.card--lead h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.card--cta { justify-content: center; }
.price-line {
  display: inline-block;
  margin-top: var(--sp-5);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- case studies ---------- */
.case__note { margin: 0 0 var(--sp-5); }
.card.case, .section--alt .card.case { gap: var(--sp-4); }
.card.case:hover .case__facts dt { color: inherit; opacity: 0.7; }
.card.case:hover .case__facts > div { border-color: currentColor; }
.case-detail { display: grid; gap: var(--sp-5); max-width: 52rem; }
.case-detail__item { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.case-detail__item dt { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }
.case-detail__item dd { margin: var(--sp-2) 0 0; font-size: var(--fs-lead); overflow-wrap: anywhere; }
.case-detail__back { display: inline-block; margin-bottom: var(--sp-4); font-family: var(--font-head); font-weight: 700; color: var(--accent-text); }
.case-detail__back::before { content: "← "; }
.case__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.case__client { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.case__facts { display: grid; gap: var(--sp-3); margin: 0; }
.case__facts > div { display: grid; gap: 0.25rem; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.case__facts dt { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-soft); }
.case__facts dd { margin: 0; font-size: var(--fs-small); overflow-wrap: anywhere; }

/* cards that are not one big link (free downloads): no colour flip on hover */
.card.card--static:hover { background: var(--bg); color: inherit; }
.section--alt .card.card--static:hover { background: var(--bg-alt); }
.card--static .card__links { gap: var(--sp-3); }
.cards.cards--1 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards.cards--1 { grid-template-columns: 1fr; } }

/* =====================================================================================
   THEME: plain-spoken editorial (2026-11): paper + ink, one blue for actions.
   Later rules win: this layer re-skins the components above. Same rules as before:
   buttons change colour only, rem scaling, breakpoints at 640 / 1080, fixed column counts.
   ===================================================================================== */

:root {
  --bg: #f3f0e8;
  --bg-alt: #e9e5da;
  --fg: #0b0d12;
  --fg-soft: #55585f;
  --line: #cfcabd;
  --line-strong: #0b0d12;
  --btn-bg: #0b0d12;
  --btn-fg: #f3f0e8;
  --field-bg: #fffdf8;
  --accent: #0476bc;
  --accent-strong: #035f99;
  --accent-text: #035f99;
  --radius: 0.25rem;
  --radius-lg: 0.25rem;
  --fs-h1: clamp(2.6rem, 0.8rem + 7.2vw, 6.4rem);
  --fs-h2: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
}
[data-theme="dark"] {
  --bg: #0b0d12; --bg-alt: #14171e; --fg: #f3f0e8; --fg-soft: #a3a6ad; --line: #2b303a; --line-strong: #f3f0e8;
  --btn-bg: #f3f0e8; --btn-fg: #0b0d12; --field-bg: #14171e; --accent: #2b95d6; --accent-strong: #4ba8e3; --accent-text: #6bb8ea;
}


h1, h2 { letter-spacing: -0.04em; }

/* buttons: ink pills, turn blue on hover (colour only) */
.btn { --_bg: var(--fg); --_fg: var(--bg); border-width: 2px; }
.btn:hover { --_bg: var(--accent); --_fg: #fff; }
.btn--ghost { --_bg: transparent; --_fg: var(--fg); --_border: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); --_border: var(--fg); }
.btn--invert { --_bg: var(--bg); --_fg: var(--fg); }

/* header: solid, ruled */
.site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 2px solid var(--fg); }
.site-header.scrolled { border-bottom-color: var(--fg); }
.nav a { color: var(--fg); font-weight: 700; }
.nav a:hover { color: var(--accent-text); }
.nav a::after { display: none; }
.nav a[aria-current="page"] { color: var(--accent-text); }

/* labels instead of pill eyebrows */
.eyebrow { color: var(--fg); letter-spacing: 0.1em; font-size: 0.72rem; }
.eyebrow .num { background: none; min-width: 0; height: auto; padding: 0; border-radius: 0; font-size: inherit; color: var(--fg-soft); }
.eyebrow .num::after { content: " /"; }
.eyebrow--dot::before { display: none; }

/* hero */
.hero { overflow: visible; border-bottom: 0; }
.hero__bgdots { display: none; }
.hero__grid { align-items: center; padding-bottom: clamp(2.5rem, 2rem + 4vw, 5rem); }
.hero__inner { max-width: none; }
.hero__title { max-width: 11ch; font-size: clamp(3rem, 0.6rem + 9.2vw, 8rem); line-height: 0.92; letter-spacing: -0.055em; margin: var(--sp-5) 0 var(--sp-5); }
.hero__sub { color: var(--fg); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); max-width: 26ch; line-height: 1.35; font-weight: 500; }
.hero__cta { margin: var(--sp-6) 0 var(--sp-5); }
.quick { border: 2px solid var(--fg); border-radius: var(--radius); }
.quick__btn + .quick__btn { border-left: 2px solid var(--fg); }
@media (min-width: 1080px) { .hero__grid { grid-template-columns: 7fr 5fr; } }

/* the written plan: what we make, shown */
.plan { position: relative; max-width: 28rem; width: 100%; justify-self: center; margin: 0; }
.plan__sheet { background: #fffdf8; color: #0b0d12; border: 2px solid #0b0d12; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0.7rem 0.7rem 0 var(--accent); }
.plan__title { display: flex; justify-content: space-between; gap: 1rem; font-weight: 900; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 0.9rem; border-bottom: 2px solid #0b0d12; }
.plan__title span:last-child { color: #55585f; font-weight: 700; }
.plan__rows { list-style: none; padding: 0; margin: 0; }
.plan__rows li { display: grid; grid-template-columns: 2rem 5.5rem 1fr; align-items: baseline; gap: 0.5rem; padding: 0.85rem 0; border-bottom: 1px solid #cfcabd; font-size: 0.95rem; }
.plan__rows span { font-weight: 700; font-size: 0.72rem; color: #55585f; }
.plan__rows b { font-weight: 900; }
.plan__rows i { font-style: normal; color: #55585f; border-bottom: 1px dashed #55585f; padding-bottom: 0.1rem; }
.plan__foot { margin-top: 1rem; font-weight: 700; font-size: 0.8rem; }
.plan figcaption { margin-top: 1.5rem; font-size: 0.8rem; color: var(--fg-soft); }

.vows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--fg); }
.vows li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.vows b { font-weight: 900; }
.hero > .wrap:last-child { padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
@media (min-width: 1080px) {
  .vows { grid-template-columns: repeat(3, 1fr); }
  .vows li { padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 0; }
  .vows li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
}

/* sections */
.section { border-bottom: 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 40rem; }
.section__head h2 { font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.section__sub { color: var(--fg-soft); }
.page-head { border-bottom: 2px solid var(--fg); }
.page-head h1 { font-weight: 900; letter-spacing: -0.05em; line-height: 0.98; }
.page-head__lead { color: var(--fg); }

/* dark ink section (case studies) */
.section--ink { background: var(--fg); color: var(--bg); }
.section--ink .eyebrow, .section--ink .section__sub, .section--ink .work__note { color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }
.section--ink .eyebrow .num { color: inherit; }
.section--ink .btn { --_bg: var(--bg); --_fg: var(--fg); }
.section--ink .btn:hover { --_bg: var(--accent); --_fg: #fff; }
.section--ink .btn--ghost { --_bg: transparent; --_fg: var(--bg); --_border: var(--bg); }
.section--ink .btn--ghost:hover { background: var(--bg); color: var(--fg); }

/* services ledger (/cozumler/) */
.ledger { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--fg); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.35rem 1rem; padding: 1.5rem 0.5rem; transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease); }
.ledger a:hover { background: var(--fg); color: var(--bg); }
.ledger__n { grid-row: 1 / span 2; font-weight: 700; font-size: 0.8rem; color: var(--fg-soft); padding-top: 0.5rem; }
.ledger a:hover .ledger__n, .ledger a:hover .ledger__d { color: color-mix(in srgb, var(--bg) 75%, var(--fg)); }
.ledger__t { font-weight: 900; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.85rem); letter-spacing: -0.025em; line-height: 1.15; }
.ledger__d { color: var(--fg-soft); max-width: 52ch; font-size: 0.98rem; }
.ledger li:first-child .ledger__t { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }

/* case studies table */
.table { border-top: 2px solid var(--bg); margin-top: var(--sp-5); }
.table__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid color-mix(in srgb, var(--bg) 25%, var(--fg)); color: inherit; transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease); }
.table__row > span:first-child { grid-column: 1 / -1; font-weight: 900; font-size: 1.15rem; }
.table__row--head { display: none; }
.table__go { display: none; }
a.table__row:hover { background: var(--accent); color: #fff; }
@media (min-width: 640px) {
  .table__row { grid-template-columns: 2.4fr 1.2fr 1fr 1.4fr 2rem; align-items: baseline; padding: 1.4rem 0.5rem; }
  .table__row > span:first-child { grid-column: auto; font-size: 1.05rem; }
  .table__row--head { display: grid; padding-block: 0.8rem; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }
  .table__row--head > span:first-child { font-size: inherit; font-weight: inherit; }
  .table__go { display: block; text-align: right; font-weight: 900; }
}
.case-detail__item dd { font-size: var(--fs-lead); }
.section--ink .case-detail__item { border-color: color-mix(in srgb, var(--bg) 25%, var(--fg)); }
.section--ink .case-detail__item dt { color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }
.section--ink .case__note { margin-bottom: var(--sp-5); }

/* downloads */
.files { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--fg); }
.files li { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.files h3 { font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.files p { color: var(--fg-soft); max-width: 48ch; font-size: 0.98rem; margin-top: 0.35rem; }
.files .files__get { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; }
@media (min-width: 640px) { .files li { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; } }

/* cards still used elsewhere (ready-made apps, projects): ruled, square, ink on hover */
.cards { border: 0; border-top: 2px solid var(--fg); border-radius: 0; background: transparent; gap: 0; overflow: visible; }
.card { background: transparent; border-bottom: 1px solid var(--line); }
.section--alt .card { background: transparent; }
.card:hover { background: var(--fg); color: var(--bg); }
.card__icon { border-radius: var(--radius); }
.card__badge { border-width: 1.5px; }
.work__item { border-radius: var(--radius); border: 2px solid var(--fg); }
.work__item:hover { border-color: var(--accent); }

/* about portrait gets the blue offset, like the plan sheet */
.about__portrait img { border: 2px solid var(--fg); border-radius: var(--radius); box-shadow: 0.7rem 0.7rem 0 var(--accent); }

/* closing band + footer */
.band { border-bottom: 0; }
.band__inner h2 { font-weight: 900; letter-spacing: -0.045em; }
.site-footer { border-top: 2px solid var(--fg); }

/* forms */
.field input, .field select, .field textarea { border: 2px solid var(--fg); border-radius: var(--radius); background: var(--field-bg); }
.faq__item summary { font-weight: 800; }
.price-line { border: 2px solid var(--fg); }

.band .btn { --_bg: var(--bg); --_fg: var(--fg); }
.band .btn:hover { --_bg: var(--accent); --_fg: #fff; }
.contact-mail a { font-weight: 900; font-size: clamp(1.6rem, 0.8rem + 4.2vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.05; overflow-wrap: anywhere; transition: color var(--step-fast) var(--ease); }
.contact-mail a:hover { color: var(--accent-text); }
.contact-mail { margin-top: var(--sp-4); }

/* ---------- case studies: cards on the home page, long page on /vaka-calismalari/ ---------- */
.ph { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border: 2px solid var(--fg); border-radius: var(--radius); background: var(--bg-alt); color: var(--fg-soft); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; }
.ph__bg { position: absolute; left: 0; right: 0; top: -9%; height: 118%; background: repeating-linear-gradient(135deg, var(--bg-alt) 0 0.75rem, var(--line) 0.75rem calc(0.75rem + 1px)); will-change: transform; }
.ph > span { position: relative; }
.ph--wide { aspect-ratio: 21 / 9; }
.section--alt .ph, .section--alt .ph__bg { background-color: var(--bg); }
.section--alt .ph__bg { background: repeating-linear-gradient(135deg, var(--bg) 0 0.75rem, var(--line) 0.75rem calc(0.75rem + 1px)); }

.case-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px) { .case-cards { grid-template-columns: repeat(2, 1fr); } }
.case-card a { display: grid; gap: var(--sp-4); }
.case-card h3 { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.15; }
.case-card__body { display: grid; gap: var(--sp-3); }
.case-card__tag { margin: 0; }
.case-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin: 0; padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.case-card__facts dt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }
.case-card__facts dd { margin: 0.15rem 0 0; font-size: var(--fs-small); overflow-wrap: anywhere; }
.card__more-text { font-weight: 800; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.case-card a:hover .card__more-text { color: var(--accent-text); }
.case-card a:hover .ph { border-color: var(--accent); }

.cases-top { padding-top: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.cases-top h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--sp-4); }
.tabs a { padding: 0.5rem 1rem; border: 2px solid var(--fg); border-radius: var(--radius-pill); font-weight: 700; font-size: 0.85rem; transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease), border-color var(--step-fast) var(--ease); }
.tabs a:hover { background: var(--fg); color: var(--bg); }
.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cases-top .case__note { margin: var(--sp-4) 0 0; }

.case-story { padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); border-bottom: 2px solid var(--fg); display: block; }
.case-story .wrap { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.case-story__head h2 { font-size: clamp(2.2rem, 1rem + 5.4vw, 5.2rem); font-weight: 900; letter-spacing: -0.05em; line-height: 0.98; margin: var(--sp-3) 0 var(--sp-5); }
.case-story__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: 0; padding-top: var(--sp-4); border-top: 2px solid var(--fg); }
.case-story dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft); }
.case-story dd { margin: 0.25rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.case-story__cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); max-width: 62rem; }
@media (min-width: 640px) { .case-story__cols { grid-template-columns: repeat(2, 1fr); } .case-story__cols--one { grid-template-columns: 1fr; } }
.case-story__cols h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: var(--sp-2); }
.case-story__cols p { font-size: var(--fs-lead); overflow-wrap: anywhere; }
.case-story__numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); padding-block: var(--sp-5); border-block: 2px solid var(--fg); }
.case-story__numbers dd { font-size: clamp(1.8rem, 1rem + 3.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-top: var(--sp-2); }
.case-story__imgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }

/* ---------- hero without the plan sheet: strategy is the one big thing ---------- */
@media (min-width: 1080px) { .hero__grid { grid-template-columns: 1fr; } }
.hero__title { max-width: 18ch; }
.hero__grid { padding-bottom: clamp(3rem, 2rem + 5vw, 6.5rem); }

/* ---------- dropdown with the other services ---------- */
.more-services { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 2px solid var(--fg); }
.more-services summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0.5rem; font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; transition: background var(--step-fast) var(--ease), color var(--step-fast) var(--ease); }
.more-services summary::-webkit-details-marker { display: none; }
.more-services summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 2px solid currentColor; border-radius: 50%; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.more-services[open] summary::after { content: "−"; }
.more-services summary:hover { background: var(--fg); color: var(--bg); }
.more-services .ledger { border-top: 2px solid var(--fg); }
.more-services:not([open]) { border-bottom: 2px solid var(--fg); }

/* ---------- case studies page: pinned title + scrolling story, with motion ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 4px; z-index: 200; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.case-story { border-bottom: 0; padding-block: clamp(3rem, 2rem + 5vw, 7rem); }
.case-story + .case-story { border-top: 2px solid var(--fg); }
.case-story .wrap.case-story__layout { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 1rem + 3vw, 3rem); align-items: start; }
.case-story__flow { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); min-width: 0; }
.case-story__head h2 { font-size: clamp(2.2rem, 1rem + 4.6vw, 4.6rem); margin: var(--sp-3) 0 var(--sp-5); }
.case-story__head .case-story__meta { grid-template-columns: 1fr; gap: var(--sp-3); }
.case-story__meta > div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--sp-3); align-items: baseline; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.case-story__meta dd { margin: 0; }
.case-story__no { font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; margin-right: var(--sp-2); }
.case-story__no small { font-size: 0.8rem; font-weight: 700; color: var(--fg-soft); }
@media (min-width: 1080px) {
  .case-story .wrap.case-story__layout { grid-template-columns: 5fr 7fr; column-gap: clamp(3rem, 6vw, 6rem); }
  .case-story__head { position: sticky; top: 6.5rem; }
}
.case-story__cols, .case-story__imgs { max-width: none; }

/* dark case: the page alternates paper / ink so each story feels like its own scene */
.case-story--ink { background: var(--fg); color: var(--bg); }
.case-story--ink + .case-story, .case-story + .case-story--ink { border-top: 0; }
.case-story--ink dt, .case-story--ink .case-story__cols h3, .case-story--ink .case-story__no small { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
.case-story--ink .case-story__meta > div { border-color: color-mix(in srgb, var(--bg) 25%, var(--fg)); }
.case-story--ink .case-story__numbers { border-color: var(--bg); }
.case-story--ink .ph { border-color: var(--bg); background: color-mix(in srgb, var(--fg) 88%, var(--bg)); color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
.case-story--ink .ph__bg { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--fg) 88%, var(--bg)) 0 0.75rem, color-mix(in srgb, var(--fg) 70%, var(--bg)) 0.75rem calc(0.75rem + 1px)); }
.case-story--ink .card__badge { border-color: var(--bg); }

/* motion: only when the script is running and the visitor has not asked for less */
.cs-motion .case-story__numbers.m dd { display: block; overflow: hidden; }
.case-story__numbers dd { overflow-wrap: break-word; font-size: clamp(1.4rem, 0.9rem + 2vw, 2.8rem); }

/* =====================================================================================
   Motion language shared with Akdeniz Motion: one easing, 600 ms in / 280 ms out, things rise along a
   60-degree axis, frames have a cut corner that opens on hover, nav links draw an underline.
   Buttons still never move.
   ===================================================================================== */
:root { --am-ease: cubic-bezier(0.2, 0.8, 0.2, 1); --cut: clamp(24px, 3.2vw, 56px); }

/* entrance: rise from lower-left (replaces the plain fade-up) */
.js .reveal { transform: translate(-24px, 42px); transition: opacity 900ms var(--am-ease), transform 900ms var(--am-ease); }
.js .reveal.in { transform: none; }
.cs-motion .m { opacity: 0; transform: translate(-24px, 42px); transition: opacity 900ms var(--am-ease), transform 900ms var(--am-ease); transition-delay: calc(var(--i, 0) * 120ms); }
.cs-motion .m.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .cs-motion .m { opacity: 1; transform: none; transition: none; } }

/* nav: underline draws in from the left, leaves to the right */
.nav a::after { display: block; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 280ms var(--am-ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; transition-duration: 600ms; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 1079px) { .nav a::after { display: none; } }

/* picture frames: cut corner, opens fully on hover */
.ph { border: 0; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 1.732), 100% 100%, 0 100%); transition: clip-path 600ms var(--am-ease); }
.case-card a:hover .ph, .case-story__imgs .ph:hover { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%); }
.cs-motion .ph--open { transition: none; }       /* scroll drives this one (see js/cases.js) */
.case-card .ph, .case-story .ph { background: var(--bg-alt); }
.case-story--ink .ph { border: 0; }

/* editorial blocks on the case page: label left, text right, hairline between */
.blk { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); padding-block: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 1px solid var(--line); }
.blk h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); }
.blk p { font-size: clamp(1.1rem, 1rem + 0.8vw, 1.6rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; overflow-wrap: anywhere; }
.case-story--ink .blk { border-color: color-mix(in srgb, var(--bg) 25%, var(--fg)); }
.case-story--ink .blk h3 { color: color-mix(in srgb, var(--bg) 65%, var(--fg)); }
@media (min-width: 640px) { .blk { grid-template-columns: 9rem 1fr; gap: var(--sp-5); } }

/* ---------- motion across the whole site ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 200; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.js .ledger li.reveal:nth-child(2), .js .files li.reveal:nth-child(2), .js .case-cards li.reveal:nth-child(2), .js .work__item.reveal:nth-child(2) { transition-delay: 70ms; }
.js .ledger li.reveal:nth-child(3), .js .files li.reveal:nth-child(3), .js .case-cards li.reveal:nth-child(3), .js .work__item.reveal:nth-child(3) { transition-delay: 140ms; }
.js .ledger li.reveal:nth-child(4), .js .files li.reveal:nth-child(4), .js .case-cards li.reveal:nth-child(4), .js .work__item.reveal:nth-child(4) { transition-delay: 210ms; }
.js .ledger li.reveal:nth-child(5), .js .files li.reveal:nth-child(5), .js .case-cards li.reveal:nth-child(5), .js .work__item.reveal:nth-child(5) { transition-delay: 280ms; }
.js .ledger li.reveal:nth-child(6), .js .files li.reveal:nth-child(6), .js .case-cards li.reveal:nth-child(6), .js .work__item.reveal:nth-child(6) { transition-delay: 350ms; }
.js .ledger li.reveal:nth-child(7), .js .files li.reveal:nth-child(7), .js .case-cards li.reveal:nth-child(7), .js .work__item.reveal:nth-child(7) { transition-delay: 420ms; }
.js .ledger li.reveal:nth-child(8), .js .files li.reveal:nth-child(8), .js .case-cards li.reveal:nth-child(8), .js .work__item.reveal:nth-child(8) { transition-delay: 490ms; }

/* project pictures: cut corner that opens on hover, like the case frames */
.work__media { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% calc(var(--cut) * 1.732), 100% 100%, 0 100%); transition: clip-path 600ms var(--am-ease); }
.work__item:hover .work__media { clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%); }
.work__media img, .work__media video { transition: transform 1200ms var(--am-ease), filter var(--step) var(--ease); }
.work__item:hover .work__media img, .work__item:hover .work__media video { transform: scale(1.03); }
/* about portrait and links in the footer follow the same easing */
.about__portrait img { transition: box-shadow 600ms var(--am-ease); }
.site-footer__links a, .contact-mail a, .ledger a, .table__row, .more-services summary { transition-timing-function: var(--am-ease); }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } .work__media, .work__media img, .work__media video { transition: none; } }

/* ---------- reveal both ways: slow in, quick out; re-enters from the side it left ---------- */
.js .reveal, .js .m { opacity: 0; transform: translate(-24px, 42px); transition: opacity 280ms var(--am-ease), transform 280ms var(--am-ease); }
.js .reveal.is-above, .js .m.is-above { transform: translate(24px, -42px); }
.js .reveal.in, .js .m.in { opacity: 1; transform: none; transition: opacity 900ms var(--am-ease), transform 900ms var(--am-ease); }
.js .reveal:not(.in), .js .m:not(.in) { transition-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .m { opacity: 1; transform: none; transition: none; } }
.case-story__numbers dd { font-size: clamp(1.2rem, 0.9rem + 1.3vw, 2rem); line-height: 1.15; letter-spacing: -0.03em; }
.case-story__numbers { grid-template-columns: 1fr; }
@media (min-width: 640px) { .case-story__numbers { grid-template-columns: repeat(2, 1fr); } }

/* ---------- generated case pictures (tools/lib/charts.js) ---------- */
.ph { --chart-fg: var(--fg); }
.case-story--ink .ph { --chart-fg: var(--bg); }
.ph--chart { color: var(--chart-fg); }
.ph--chart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-water { fill: var(--chart-fg); opacity: 0.07; }
.g-stamp { fill: var(--chart-fg); opacity: 0.9; }
.g-title { fill: var(--chart-fg); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; }
.g-sub, .g-axis, .g-brand { fill: var(--chart-fg); opacity: 0.6; font-weight: 700; }
.g-sub { font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.g-axis { font-size: 20px; }
.g-brand { font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; }
.g-base { stroke: var(--chart-fg); stroke-width: 2; opacity: 0.5; }
.g-bar { fill: var(--accent); }
.g-bar--ink { fill: var(--chart-fg); opacity: 0.9; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.g-line--soft { stroke: var(--chart-fg); stroke-width: 3; opacity: 0.55; stroke-dasharray: 2 9; }
.g-dot { fill: var(--accent); stroke: var(--bg-alt); stroke-width: 3; }
.g-val { fill: var(--chart-fg); font-weight: 900; font-size: 28px; }
.g-val--soft { opacity: 0.6; font-size: 22px; }

.case-story--ink .ph { background: color-mix(in srgb, var(--fg) 92%, var(--bg)); }
.case-story--ink .g-dot { stroke: color-mix(in srgb, var(--fg) 92%, var(--bg)); }

/* ---------- guides, pricing, about (tools/lib/guides.js) ---------- */
.crumbs { font-size: var(--fs-small); color: var(--fg-soft); margin-bottom: var(--sp-4); }
.crumbs a:hover { color: var(--accent-text); }
.guide-meta { color: var(--fg-soft); font-size: var(--fs-small); margin-top: var(--sp-3); }
.updated time { font-weight: 700; }
.site-footer__meta .updated { opacity: 0.8; }

.guide { max-width: 51rem; }
.guide > * + * { margin-top: var(--sp-4); }
.guide h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; line-height: 1.1; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 2px solid var(--fg); }
.guide h3 { font-size: var(--fs-h3); margin-top: var(--sp-5); }
.guide p, .guide li { font-size: var(--fs-lead); }
.guide ul, .guide ol { padding-left: 1.4em; }
.guide li + li { margin-top: var(--sp-2); }
.guide a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 0.18em; }
.guide .btn { color: var(--on-accent); text-decoration: none; }
.guide__steps li::marker { font-weight: 800; }
.guide__example { color: var(--fg-soft); border-left: 3px solid var(--accent); padding-left: var(--sp-4); }
.guide__portrait { max-width: 15rem; border-radius: var(--radius); overflow: hidden; }
.guide__portrait figcaption { font-size: var(--fs-small); color: var(--fg-soft); margin-top: var(--sp-2); }

.capsule { border: 2px solid var(--fg); border-radius: var(--radius); padding: var(--sp-5); background: var(--bg-alt); font-size: var(--fs-lead); }
.capsule strong:first-child { display: block; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-2); color: var(--accent-text); }

.verify { background: #ffe58a; color: #111; padding: 0 0.25em; border-radius: 0.2em; font-weight: 700; font-size: 0.85em; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 40rem; }
.tbl--price, .tbl--wide { min-width: 0; }
.tbl caption { text-align: left; padding: var(--sp-3) var(--sp-4); font-weight: 800; border-bottom: 1px solid var(--line-strong); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--bg-alt); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.08em; }
.tbl tbody th { font-weight: 800; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl--price td { font-size: var(--fs-lead); font-weight: 800; white-space: nowrap; }

.price-notes { color: var(--fg-soft); }
.faqlist .qa + .qa { margin-top: var(--sp-5); }
.faqlist h3 { margin-top: 0; }
.related { list-style: none; padding-left: 0 !important; }
.related li { border-bottom: 1px solid var(--line); padding-bottom: var(--sp-2); }

.guide-list { list-style: none; padding-left: 0 !important; border-top: 2px solid var(--fg); }
.guide-list li { border-bottom: 1px solid var(--line); margin: 0 !important; }
.guide-list a { display: block; padding: var(--sp-5) 0; text-decoration: none; color: var(--fg); }
.guide-list a:hover .guide-list__t { color: var(--accent-text); }
.guide-list__t { display: block; font-weight: 900; font-size: var(--fs-h3); letter-spacing: -0.02em; }
.guide-list__d { display: block; color: var(--fg-soft); font-size: var(--fs-small); margin-top: var(--sp-1); }

.cta-box { border: 2px solid var(--fg); border-radius: var(--radius); padding: var(--sp-5); margin-top: var(--sp-7); }
.cta-box h2 { margin: 0; padding: 0; border: 0; font-size: var(--fs-h3); }
.cta-box__row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }

/* analytics consent bar (only exists once a GA4 ID is set — public/js/ga.js) */
.consent { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); z-index: 60; display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; max-width: 44rem; margin-inline: auto; background: var(--bg); border: 2px solid var(--fg); border-radius: var(--radius); padding: var(--sp-4); font-size: var(--fs-small); }
.consent a { text-decoration: underline; }
.consent__btns { display: flex; gap: var(--sp-2); }

/* ---------- language links inside the burger menu (EN / NL / FR / TR) ----------
   Phones and tablets: a row at the bottom of the open menu.
   Desktop: the burger button is shown too, and opens a small panel with the same links. */
.nav__lang { display: none; }
.nav__lang-label { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-soft); }
.nav__lang a, .nav__lang button {
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--fg);
  background: none; border: 0; padding: 0.375rem 0; text-align: left; cursor: pointer;
}
.nav__lang a:hover, .nav__lang button:hover { color: var(--accent-text); }
.nav__lang [aria-current="true"] { color: var(--accent-text); }
.nav__lang [aria-current="true"]::after { content: " ✓"; }
@media (max-width: 1079px) {
  .nav__lang { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0 0; }
  .nav .nav__lang a { border-bottom: 0; padding: 0.375rem 0; }
}
@media (min-width: 1080px) {
  .hamburger { display: block; }
  .nav.open .nav__lang {
    display: flex; flex-direction: column; gap: 0.125rem; position: absolute; right: var(--pad); top: calc(100% + 0.5rem);
    min-width: 12rem; padding: 0.75rem 1rem; background: var(--bg); border: 2px solid var(--fg); z-index: 120;
  }
  .nav .nav__lang a::after { display: none; }
  .nav .nav__lang [aria-current="true"]::after { display: inline; position: static; background: none; height: auto; transform: none; }
}

/* ---------- phones: no sideways scrolling anywhere ---------- */
html, body { overflow-x: clip; }
img, video, svg, iframe { max-width: 100%; }
@media (max-width: 639px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .guide, .guide * { overflow-wrap: anywhere; }
  /* tables turn into stacked cards, so nobody has to scroll them sideways */
  .tbl-wrap { overflow: visible; border: 0; }
  .tbl, .tbl--price, .tbl--wide { min-width: 0; display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .tbl caption { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl tbody, .tbl tr { display: block; }
  .tbl tr { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line-strong); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl th, .tbl td { display: block; border: 0 !important; padding: 0.25rem var(--sp-4); white-space: normal !important; }
  .tbl tbody th { font-size: var(--fs-lead); padding-bottom: 0.375rem; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-label); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-soft); }
  .tbl--price td { font-size: var(--fs-lead); }
}
