/* Comelse V3 · quiet, precise, near-white. Self-hosted Geist (OFL). No dependencies. */

@font-face {
  font-family: "Geist";
  src: url("/assets/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: #2b2b2b;
  --secondary: #616161;
  --hairline: #e5e5e5;
  --hairline-strong: #d4d4d4;
  --link: #0066cc;
  --focus: #0066cc;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --max: 72rem;
  --header-h: 4rem;
  --section-y: clamp(5rem, 9vw, 8.5rem);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-soft: 0 1px 1px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.03), 0 12px 32px -12px rgba(0, 0, 0, 0.08);
  --shadow-window: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -6px rgba(0, 0, 0, 0.1), 0 32px 64px -24px rgba(0, 0, 0, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.case__media figcaption a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

.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-link {
  position: absolute;
  left: 1rem; top: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

.icon { width: 1rem; height: 1rem; flex: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.button:active { transform: scale(0.97); }
.button .icon { transition: transform 0.25s var(--ease); }
.button:hover .icon { transform: translate(1px, -1px); }
.button--ghost:hover .icon { transform: translateY(2px); }

.button--ink { background: var(--ink); color: #fff; }
.button--ink:hover { background: #333; }

.button--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.button--ghost:hover { border-color: var(--hairline-strong); background: #fff; }

.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: #e9e9e9; }

.button--small { position: relative; min-height: 2.25rem; padding: 0 0.95rem; font-size: 0.875rem; }
/* extend the hit area of compact buttons to 44px without changing their look */
.button--small::after { content: ""; position: absolute; inset: -0.25rem 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.js .site-header:not(.is-scrolled):not(.is-open) { border-bottom-color: transparent; }
.js .site-header.is-open { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: calc(var(--max) + var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 1.75rem; height: 1.75rem; fill: currentColor; }
/* One-shot node highlights; the underlying R1 mark never disappears. */
.synapse-halo, .synapse-core { opacity: 0; pointer-events: none; }
.synapse-halo { fill: none; stroke: currentColor; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.synapse-core { fill: #fff; }
@media (prefers-reduced-motion: reduce) {
  .synapse-halo, .synapse-core { display: none; }
}
@media print {
  .synapse-halo, .synapse-core { display: none; }
}
.brand__word {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 0.1em;
}

.site-nav__list { display: flex; gap: 0.25rem; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: var(--secondary);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease;
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a[aria-current="true"] { color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 1.125rem; height: 0.5rem; }
.menu-toggle__icon span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle__icon span:first-child { top: 0; }
.menu-toggle__icon span:last-child { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

@media (max-width: 47.99rem) {
  .site-header__inner { gap: 0.5rem; }
  .header-cta { order: 1; }
  .site-nav { order: 2; }

  /* Without JS the links stay visible as a compact row */
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 0.625rem 0.25rem; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; margin-inline: -0.75rem; }

  .js .menu-toggle:not([hidden]) { display: inline-flex; }
  .js .site-nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    /* Solid panel: a backdrop-filter nested inside the header's own backdrop-filter
       renders see-through in Chromium, letting the hero ghost through the menu. */
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 24px 48px -32px rgba(17, 17, 17, 0.18);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .site-nav__list.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
  }
  .js .site-nav__list li + li { border-top: 1px solid var(--hairline); }
  .js .site-nav__list a {
    display: flex;
    min-height: 3.25rem;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    border-radius: 0;
  }
}

/* Hero */
.hero { padding-top: clamp(4.5rem, 10vw, 8.5rem); }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__label { margin-bottom: 1.5rem; }

.hero__title {
  max-width: 15ch;
  font-size: clamp(2.75rem, 1.35rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.hero__muted { color: #8a8a8a; }

.hero__lede {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--secondary);
  text-wrap: balance;
}

.hero-proof { margin-top: 3rem; text-align: center; }
.hero-proof__names { display: flex; flex-wrap: wrap; gap: 1rem 3rem; justify-content: center; margin-top: 1rem; }
.hero-proof__names a { display: flex; min-height: 44px; flex-direction: column; justify-content: center; font-size: 1.125rem; font-weight: 550; text-decoration: none; }
.hero-proof__names a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-proof__names span { margin-top: .25rem; color: var(--secondary); font-size: .8125rem; font-weight: 400; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Signature: system map */
.system { margin-top: clamp(4rem, 8vw, 6.5rem); }

.system__panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.system__panel::before {
  /* faint engineering grid, fades out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 55%, #000 30%, transparent 100%);
  pointer-events: none;
}

.system__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
}
.system__dots, .window__dots { display: inline-flex; gap: 0.375rem; }
.system__dots i, .window__dots i {
  width: 0.625rem; height: 0.625rem;
  border-radius: 50%;
  background: #e3e3e3;
}
.system__file { flex: 1; text-align: center; }
.system__status { display: inline-flex; align-items: center; gap: 0.4rem; }
.system__status i { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #9a9a9a; }

.system__flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: none;
}

.stage {
  position: relative;
  padding: 1.25rem 1.25rem 1.375rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}
.stage--core {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.04);
}

/* connectors between stages */
.stage + .stage::before {
  content: "";
  position: absolute;
  top: 2.05rem;
  right: 100%;
  width: clamp(1.75rem, 3.5vw, 3rem);
  height: 1px;
  background: var(--hairline-strong);
}
.stage + .stage::after {
  /* the signal: a small dot travelling along the connector */
  content: "";
  position: absolute;
  top: calc(2.05rem - 2.5px);
  right: calc(100% + clamp(1.75rem, 3.5vw, 3rem) - 6px);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
}

.stage__index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
}
.stage__title {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stage__items {
  margin-top: 0.875rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--secondary);
}
.stage__items li {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}
.stage__items li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 1px;
  background: #b5b5b5;
  transform: translateY(-2px);
}
.stage--core .stage__items li::before { background: var(--ink); }

.system__caption {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .js .system.is-in .stage + .stage::after {
    animation: signal 3.6s var(--ease) infinite;
  }
  .js .system.is-in .stage:nth-child(3)::after { animation-delay: 1.2s; }
  .js .system.is-in .stage:nth-child(4)::after { animation-delay: 2.4s; }
}

@keyframes signal {
  0% { opacity: 0; transform: translateX(0); }
  8% { opacity: 1; }
  30% { opacity: 1; transform: translateX(calc(clamp(1.75rem, 3.5vw, 3rem) - 6px)); }
  38%, 100% { opacity: 0; transform: translateX(calc(clamp(1.75rem, 3.5vw, 3rem) - 6px)); }
}

@media (max-width: 63.99rem) {
  .system__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(3)::before,
  .stage:nth-child(3)::after { display: none; }
}

@media (max-width: 35.99rem) {
  .system__flow { grid-template-columns: 1fr; gap: 1.75rem; }
  .stage:nth-child(3)::before,
  .stage:nth-child(3)::after { display: block; }
  .stage + .stage::before {
    top: auto; right: auto;
    bottom: 100%;
    left: 1.6rem;
    width: 1px;
    height: 1.75rem;
  }
  .stage + .stage::after {
    top: auto; right: auto;
    bottom: calc(100% + 1.75rem - 6px);
    left: calc(1.6rem - 2.5px);
  }
  @keyframes signal {
    0% { opacity: 0; transform: translateY(0); }
    8% { opacity: 1; }
    30% { opacity: 1; transform: translateY(calc(1.75rem - 6px)); }
    38%, 100% { opacity: 0; transform: translateY(calc(1.75rem - 6px)); }
  }
  .stage__items { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .system__bar { gap: 0.75rem; }
}

@media (max-width: 22rem) {
  .stage__items { grid-template-columns: 1fr; }
  .system__status { display: none; }
}

/* Section heads */
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .label { margin-bottom: 1.25rem; }

.section-head--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head--center .section-title { max-width: 18ch; }
.section-head--center .section-intro { max-width: 34rem; margin-top: 1.25rem; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}
.section-head--split .section-intro { max-width: 30rem; }

.section-title {
  font-size: clamp(2rem, 1.3rem + 2.7vw, 3.375rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--secondary);
  text-wrap: pretty;
}

/* Work */
.work { padding-top: var(--section-y); }
.section-more { margin-top: 2rem; }
.all-work-link { display: flex; justify-content: center; margin-top: 3rem; }

.case + .case {
  margin-top: clamp(5rem, 9vw, 8rem);
}

.case__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.case__title {
  margin-top: 0.875rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.case__lede {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.5;
  color: var(--secondary);
  text-wrap: pretty;
}

.case__stage {
  position: relative;
  padding: clamp(1.5rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0f0f0;
}
.case__stage--cool { background: linear-gradient(180deg, #eef1f4 0%, #f3f4f6 100%); }
.case__stage--mint { background: linear-gradient(180deg, #edf2ef 0%, #f3f5f4 100%); }
.case__stage--warm { background: linear-gradient(180deg, #f4f1ec 0%, #f6f4f1 100%); }

.window {
  max-width: 60rem;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window--narrow { max-width: 50rem; }
.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.875rem;
  border-bottom: 1px solid #ededed;
  background: #fbfbfb;
}
.window__dots i { width: 0.5625rem; height: 0.5625rem; }
.window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: #6b6b6b;
  white-space: nowrap;
}
.window img { width: 100%; }

.case__media figcaption {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--secondary);
  text-align: center;
  text-wrap: balance;
}

.case__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.case__facts > div {
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}
.case__facts dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}
.case__facts dd {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Capabilities */
.capabilities { padding-top: var(--section-y); }

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.capability {
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem) 0;
}
.capability:first-child { padding-left: 0; }
.capability:last-child { padding-right: 0; }
.capability + .capability { border-left: 1px solid var(--hairline); }

.capability__index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
}
.capability__title {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.capability > p:not(.capability__index) {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--secondary);
}
.capability ul {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
}
.capability ul li {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}
.capability ul li::before {
  content: "";
  flex: none;
  width: 4px; height: 4px;
  border-radius: 1px;
  background: var(--ink);
  transform: translateY(-3px);
}

/* Studio */
.studio { padding-block: var(--section-y); }

.studio__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.studio__intro .label { margin-bottom: 1.25rem; }
.studio__body {
  max-width: 28rem;
  margin-top: 1.5rem;
  color: var(--secondary);
  text-wrap: pretty;
}

.process { border-top: 1px solid var(--hairline); }
.process li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--hairline);
}
.process__index {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--secondary);
  padding-top: 0.3rem;
}
.process__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.process li p:not(.process__index) {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--secondary);
}

/* Contact */
.contact {
  background: var(--ink);
  color: #f2f2f2;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__mark { width: 2.25rem; height: 2.25rem; fill: #fff; margin-bottom: 2rem; }
.contact__title {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}
.contact__text {
  max-width: 34rem;
  margin-top: 1.5rem;
  color: #a8a8a8;
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}
.contact__email:hover { text-decoration-color: #fff; }
.contact :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 2rem;
  font-size: 0.8125rem;
  color: var(--secondary);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
}
.brand--footer { margin-right: 0; }
.brand--footer .brand__mark { width: 1.5rem; height: 1.5rem; }
.brand--footer .brand__word { font-size: 1rem; }
.site-footer__note { margin-right: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--secondary);
}
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

/* Reveals: only with JS and when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .reveal [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

/* Tablet and below */
@media (max-width: 63.99rem) {
  .case__facts { grid-template-columns: 1fr 1fr; }
  .case__facts > div:last-child { grid-column: 1 / -1; }
  .studio__inner { grid-template-columns: 1fr; }
}

@media (max-width: 47.99rem) {
  .case__head,
  .section-head--split { grid-template-columns: 1fr; }
  .case__facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .capability-list { grid-template-columns: 1fr; border-top: 0; }
  .capability,
  .capability:first-child,
  .capability:last-child {
    padding: 1.75rem 0 2rem;
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }
  .capability + .capability { border-left: 0; }
  .capability__title { margin-top: 1rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .site-footer__note { margin-right: 0; }
}

@media (max-width: 29.99rem) {
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .button { width: 100%; }
  .contact__actions { flex-direction: column; align-self: stretch; }
  .contact__actions .button { width: 100%; }
  .window__bar { height: 1.75rem; }
  .window__title { display: none; }
  .header-cta { padding: 0 0.8rem; }
  /* Let portfolio stages bleed to the screen edge so screenshots get every pixel */
  .case__stage {
    margin-inline: calc(var(--gutter) * -1);
    padding: 1.25rem 0.75rem 0;
    border-radius: 0;
  }
}

@media (max-width: 21.99rem) {
  .brand__word { font-size: 1.0625rem; }
  .header-cta { font-size: 0.8125rem; padding: 0 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

@media print {
  .site-header, .skip-link { display: none; }
  .contact { background: none; color: var(--ink); }
  .contact__title { color: var(--ink); }
}
