/* ============================================================================
   cuneytirmak.com — design system
   System fonts only: nothing is fetched from another company's servers.
   ========================================================================== */

:root {
  color-scheme: light;

  --canvas: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #ebebe7;
  --ink: #0b0c0b;
  --ink-soft: #3d403b;
  --muted: #6c706a;
  --line: #e0e0da;
  --line-strong: #c9c9c1;
  --accent: #d4ee36;
  --accent-ink: #0b0c0b;
  --inverse: #0b0c0b;
  --inverse-ink: #f4f4f2;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(64px, 11vw, 148px);

  --shadow: 0 1px 2px rgb(11 12 11 / 4%), 0 12px 40px -12px rgb(11 12 11 / 12%);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Dark mode follows the operating system, unless the toggle says otherwise. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --canvas: #0b0c0b;
  --surface: #141614;
  --surface-2: #1c1f1b;
  --ink: #f2f3f0;
  --ink-soft: #c6c9c2;
  --muted: #8d918a;
  --line: #262a24;
  --line-strong: #3a3f37;
  --inverse: #f2f3f0;
  --inverse-ink: #0b0c0b;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 48px -16px rgb(0 0 0 / 60%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0b0c0b;
  --surface: #141614;
  --surface-2: #1c1f1b;
  --ink: #f2f3f0;
  --ink-soft: #c6c9c2;
  --muted: #8d918a;
  --line: #262a24;
  --line-strong: #3a3f37;
  --inverse: #f2f3f0;
  --inverse-ink: #0b0c0b;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 16px 48px -16px rgb(0 0 0 / 60%);
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
}
.skip-link:focus { left: 12px; }

/* ------------------------------------------------- type & shared elements */

.display {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}

.section-head {
  margin: 0 0 clamp(28px, 5vw, 56px);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.highlight {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.18em;
  border-radius: 6px;
  white-space: nowrap;   /* keep the marker hugging the phrase, never split over two lines */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--inverse);
  color: var(--inverse-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.btn__arrow {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 14%, transparent);
  flex: none;
}
.btn__arrow svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__arrow svg { animation: nudge .5s var(--ease); }

@keyframes nudge {
  50% { transform: translate(3px, -3px); opacity: 0; }
  51% { transform: translate(-3px, 3px); opacity: 0; }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header[data-stuck="true"] { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.header-cta { padding: 11px 13px 11px 20px; font-size: 14px; }
.header-cta .btn__arrow { width: 22px; height: 22px; }

/* ------------------------------------------------------------ wordmark */

/* The "CÜNEYT IRMAK" name block from the Figma lockup, drawn as a mask so a
   single SVG takes the brand colour in light mode and white in dark mode,
   the same pair as the two Figma exports. Both sites use it: the file lives
   in public/images/logo/ and public-tr links to it. The tagline is left out:
   at header height it would render around 4px tall. */
:root { --wordmark: #1e242b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --wordmark: #ffffff; } }
:root[data-theme="dark"] { --wordmark: #ffffff; }

.brand--wordmark { gap: 0; }
.wordmark {
  display: block;
  height: 34px;
  aspect-ratio: 462 / 184;
  background-color: var(--wordmark);
  -webkit-mask: url("/images/logo/wordmark.svg") center / contain no-repeat;
  mask: url("/images/logo/wordmark.svg") center / contain no-repeat;
}
@media (max-width: 560px) { .wordmark { height: 30px; } }
@media print { .wordmark { background-color: #1e242b; } }

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

.hero { padding-block: clamp(48px, 9vw, 110px) clamp(40px, 7vw, 84px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.hero__aside { padding-bottom: 8px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 7vw, 76px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fact {
  background: var(--canvas);
  padding: clamp(20px, 3vw, 30px);
}
.fact dt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fact dd {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ----------------------------------------------------------------- marquee */

.marquee {
  --speed: 34s;
  display: flex;
  overflow: hidden;
  user-select: none;
  padding-block: clamp(18px, 3vw, 30px);
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.marquee__row {
  display: flex;
  flex: none;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  animation: slide var(--speed) linear infinite;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee span {
  font-size: clamp(1.7rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.marquee__dot {
  display: grid;
  place-items: center;
  width: clamp(34px, 4.6vw, 54px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  flex: none;
}
.marquee__dot svg { width: 45%; height: 45%; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

@keyframes slide { to { transform: translateX(-100%); } }

/* ------------------------------------------------------------------- work */

.section { padding-block: var(--section); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }

.work__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.projects { list-style: none; margin: 0; padding: 0; }
.project {
  position: relative;                 /* anchors the row-wide click target */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-top: 1px solid var(--line);
  transition: padding-inline .35s var(--ease), background .3s var(--ease);
}
.projects .project:last-child { border-bottom: 1px solid var(--line); }
.project:hover { padding-inline: 12px 4px; }


/* The heading stays a heading; the button inside it is stretched over the whole
   row so the entire card is clickable while the accessible name is just the
   project title. */
.project__btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.project__btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-sm); }
.project__btn:focus-visible { outline: none; }
.project__btn:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Selected project */
.project.is-active { padding-inline: 12px 4px; }
.project.is-active::before {
  content: "";
  position: absolute;
  left: -1px; top: 14px; bottom: 14px;
  width: 3px;
  border-radius: var(--r-pill);
  background: var(--accent);
}
.project.is-active .project__icon { background: var(--surface); box-shadow: var(--shadow); }

.project__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  overflow: hidden;
  flex: none;
}
.project__icon img { width: 26px; height: auto; }
.project h3 { margin: 0; }                  /* type lives on .project__btn */
.project p { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.project__tag {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Detail column: the gallery and the selected project's write-up */
.work__detail { min-width: 0; display: grid; gap: 26px; }

.project__panel { margin: 0; }
.project__summary {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
}
.project__meta-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink-soft);
  background: var(--surface);
}

/* Only the selected project's panel and slides are shown once JS is running.
   Without JS nothing is hidden, so every project and image is still readable. */
.js .project__panel:not(.is-active),
.js .slide:not(.is-active) { display: none; }

/* Gallery */
.gallery { min-width: 0; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-lg);
}
.gallery-track::-webkit-scrollbar { display: none; }

.slide { margin: 0; scroll-snap-align: center; }
.slide a {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease);
}
.slide a:hover { transform: translateY(-4px); }
.slide img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: var(--surface-2);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.gallery-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.gallery-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery-progress {
  flex: 1;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.gallery-progress span {
  display: block;
  height: 100%;
  width: calc(100% / 6);    /* JS resets this per project */
  border-radius: inherit;
  background: var(--ink);
  transition: transform .35s var(--ease);
}
.gallery-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- capabilities */

.capabilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.capability {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--canvas);
  font-size: 15px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.capability:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.capability::before {
  content: "";
  width: 20px; height: 20px;
  flex: none;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ------------------------------------------------------------------- info */

.info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}
.about p { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-soft); }
.about a { border-bottom: 1px solid var(--line-strong); }
.about a:hover { border-color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.job { position: relative; padding-bottom: 34px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  outline: 4px solid var(--canvas);
}
.section--tint .job::before { outline-color: var(--surface); }
.job__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; }
.job h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.job__dates { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.job__role {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-soft);
}
.job p:last-child { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

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

.contact { padding-block: var(--section); }
.contact__panel {
  padding: clamp(36px, 6vw, 84px);
  border-radius: var(--r-lg);
  background: var(--inverse);
  color: var(--inverse-ink);
}
.contact__panel .eyebrow {
  color: color-mix(in srgb, var(--inverse-ink) 76%, transparent);
  border-color: color-mix(in srgb, var(--inverse-ink) 26%, transparent);
  background: transparent;
}
.contact__panel .section-head { margin-bottom: 14px; }
.contact__panel .lede { color: color-mix(in srgb, var(--inverse-ink) 72%, transparent); max-width: 52ch; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.contact__links a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border: 1px solid color-mix(in srgb, var(--inverse-ink) 22%, transparent);
  border-radius: var(--r-pill);
  font-size: 15px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.contact__links a:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.icon { width: 18px; height: 18px; flex: none; }

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

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1500px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgb(6 7 6 / 86%); backdrop-filter: blur(3px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--r-md); background: var(--surface); }
.lightbox-close {
  position: absolute;
  top: -48px; right: 0;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------------ legal pages */

.legal { max-width: 74ch; padding-block: clamp(40px, 7vw, 80px); }
.legal h1 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
}
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { margin: 40px 0 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { border-bottom: 1px solid var(--line-strong); }
.legal a:hover { border-color: var(--ink); }

.notfound {
  min-height: 72vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 8px;
}
.notfound .display { font-size: clamp(2.4rem, 8vw, 4.5rem); }

/* ---------------------------------------------------------- project pages */
/* /work/<slug> — one page per project, written for search rather than for the
   picker on the home page. Everything here rides on the components above; only
   the pieces that have no equivalent on the home page are defined. */

.case { padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.case__title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  text-wrap: balance;
}

.crumbs { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumbs li:last-child::after { content: none; }
.crumbs a { border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }

.prose { max-width: 68ch; }
.prose p { font-size: clamp(1rem, 1.35vw, 1.1rem); color: var(--ink-soft); }

/* Pain points. Same card as .capability, but the marker has to read as a
   problem rather than a tick, so it is muted instead of accent-coloured. */
.pains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pain {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--canvas);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pain:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pain h3 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.pain h3::before {
  content: "";
  width: 20px; height: 20px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c706a' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.pain p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* Questions people actually type into a search box, answered in plain text so
   the answer is in the HTML rather than behind a disclosure widget. */
.faq { display: grid; gap: 0; max-width: 80ch; }
.faq__item { padding: 26px 0; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.faq p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* The quiet close: a line of text and an email address, not a sales panel. */
/* Note under the stack chips. A class, not an inline style: the CSP this
   site sends has no 'unsafe-inline', so style attributes never apply. */
.case__note { margin-top: 28px; }

.case__close { max-width: 68ch; padding-block: clamp(40px, 6vw, 72px); }
.case__close p { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.case__close a { border-bottom: 1px solid var(--line-strong); }
.case__close a:hover { border-color: var(--ink); }

/* Every project page links to the others, so the set is reachable in one hop. */
.siblings { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.sibling a {
  display: block;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.sibling a:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.sibling strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.sibling span { display: block; margin-top: 5px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* The home page's write-ups link through to the full page. */
.project__more { margin: 16px 0 0; font-size: 15px; }
.project__more a { border-bottom: 1px solid var(--line-strong); }
.project__more a:hover { border-color: var(--ink); }

/* ----------------------------------------------------------- reveal, media */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .capabilities { grid-template-columns: repeat(3, 1fr); }   /* two even rows, no orphan card */
}

@media (max-width: 940px) {
  .hero__grid, .work__layout, .info__grid { grid-template-columns: 1fr; }
  .hero__grid { align-items: start; }
  .nav { display: none; }
  .nav--footer { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  /* Shrink the header CTA to just its arrow, keeping an accessible name. */
  .header-cta { padding: 9px; }
  .header-cta .btn__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Stack the stack-tag under the project title instead of fighting it for width. */
  .project { grid-template-columns: auto 1fr; row-gap: 6px; }
  .project__tag { grid-column: 2; justify-self: start; }
  .contact__links a { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
}

@media print {
  .site-header, .marquee, .gallery-controls, .theme-toggle { display: none; }
  body { background: #fff; color: #000; }
}
