/* ==========================================================================
   Motions Creative — proof-sheet editorial system
   Tokens → base → browser surfaces → layout → components → sections → motion
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/spacegrotesk-var-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Palette */
  --paper: #f6f5f1;
  --paper-warm: #efeee8;
  --white: #ffffff;
  --ink: #171717;
  --ink-2: #62625e;
  --rule: #ddddd5;
  --rule-soft: #e7e6e0;
  --cobalt: #2448ff;
  --cobalt-deep: #1733c9;
  --cobalt-ink: #0b1b73;
  --on-cobalt: #ffffff;
  --on-cobalt-2: #d7deff;
  --on-cobalt-rule: #5a77ff;
  --scroll-thumb: #cfcec6;
  --invalid-rule: #ffd9d0;

  /* Type */
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --t-hero: clamp(3.125rem, 1.6rem + 5.1vw, 5.5rem);
  --t-h2: clamp(2.125rem, 1.1rem + 3.4vw, 4rem);
  --t-h3: clamp(1.5rem, 1.1rem + 1.1vw, 2.125rem);
  --t-h4: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  --t-body: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --t-body-sm: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --t-label: 0.75rem;
  --t-label-lg: 0.8125rem;

  /* Space */
  --shell: 1320px;
  --gutter: clamp(1.25rem, 0.7rem + 2.6vw, 4.5rem);
  --sec-y: clamp(5rem, 3rem + 7vw, 9.5rem);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 0.1, 0.25, 1);
  --t-hover: 180ms;
  --t-panel: 260ms;
  --t-reveal: 520ms;
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

/* --- Browser surfaces ----------------------------------------------------- */
::selection { background: var(--cobalt); color: var(--white); }
:root { caret-color: var(--cobalt); accent-color: var(--cobalt); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-cobalt :focus-visible { outline-color: var(--white); }

* { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid var(--paper-warm);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-2); }

.tnum { font-variant-numeric: tabular-nums; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.125rem;
  font-size: var(--t-label-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform var(--t-hover) var(--ease);
}
.skip:focus-visible { transform: translateY(0.75rem); }

/* --- Layout --------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y) calc(var(--sec-y) * 0.5); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 1.6rem + 3vw, 4.25rem); }

/* Editorial label, set as a slug on a rule rather than a floating eyebrow */
.slug {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0;
}
.slug::before {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.slug--rule::after {
  content: '';
  height: 1px;
  flex: 1 1 auto;
  background: var(--rule);
  min-width: 2rem;
}
.slug--quiet { color: var(--ink-2); }
.on-cobalt .slug { color: var(--on-cobalt-2); }
.on-cobalt .slug--rule::after { background: var(--on-cobalt-rule); }

.lede {
  color: var(--ink-2);
  max-width: 48ch;
  font-size: var(--t-body);
  line-height: 1.6;
}
.on-cobalt .lede { color: var(--on-cobalt-2); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --- Buttons & links ------------------------------------------------------ */
.btn {
  --btn-bg: var(--cobalt);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--t-body-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--t-hover) var(--ease-soft), transform var(--t-hover) var(--ease);
}
.btn .ico { transition: transform 200ms var(--ease); }
.btn:hover { --btn-bg: var(--cobalt-deep); }
.btn:hover .ico--ne { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover .ico--s { transform: translateY(3px); }

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--cobalt-ink);
}
.btn--light:hover { --btn-bg: var(--paper); }

.btn--sm { min-height: 42px; padding: 0.55rem 1rem; font-size: var(--t-label-lg); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  transition: color var(--t-hover) var(--ease-soft);
}
.link:hover { color: var(--cobalt); }
.link:hover .ico--e { transform: translateX(3px); }
.link .ico { transition: transform 200ms var(--ease); }

.ico { flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }

/* --- Header --------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft);
}
.header::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rule);
  opacity: 0;
  transition: opacity 240ms var(--ease-soft);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header.is-stuck::after { opacity: 1; }

.header__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Wordmark: "motions" dominant, "creative" secondary, the o of motions
   cut as a registration target. */
.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--display);
  letter-spacing: -0.045em;
  line-height: 1;
}
.mark__a {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.005em;
}
.mark__reg {
  width: 0.62em;
  height: 0.62em;
  align-self: center;
  transform: translateY(0.012em);
  color: var(--cobalt);
  transition: transform 420ms var(--ease);
}
.mark:hover .mark__reg { transform: translateY(0.012em) rotate(90deg); }
.mark__b {
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--ink-2);
}
.on-cobalt .mark__a { color: var(--white); }
.on-cobalt .mark__b { color: var(--on-cobalt-2); }
.on-cobalt .mark__reg { color: var(--white); }

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 1.75rem; }
}
.nav__link {
  position: relative;
  font-size: var(--t-body-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color var(--t-hover) var(--ease-soft);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current='true'] { color: var(--ink); }
.nav__link[aria-current='true']::after { transform: scaleX(1); }

.header__end { display: flex; align-items: center; gap: 0.75rem; }
.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

/* Menu control */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  margin-right: -0.4rem;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 240ms var(--ease), opacity 160ms linear;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 240ms var(--ease-soft), transform 300ms var(--ease), visibility 240ms linear;
}
.sheet.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1000px) { .sheet { display: none; } }

.sheet__list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.sheet__link .ico { color: var(--cobalt); }
.sheet__foot { display: grid; gap: 1rem; padding-top: 2rem; }
.sheet__mail {
  font-size: var(--t-body-sm);
  color: var(--ink-2);
  text-decoration: none;
}

/* --- Grid ----------------------------------------------------------------- */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}

/* --- Proof frame: crop marks + measure rail ------------------------------- */
.frame { position: relative; }
.frame::before, .frame::after,
.frame > .frame__i::before, .frame > .frame__i::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--cobalt);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  transition: width 320ms var(--ease), height 320ms var(--ease);
}
.frame::before { top: -9px; left: -9px; border-top-width: 1.5px; border-left-width: 1.5px; }
.frame::after { top: -9px; right: -9px; border-top-width: 1.5px; border-right-width: 1.5px; }
.frame > .frame__i { position: absolute; inset: 0; pointer-events: none; }
.frame > .frame__i::before { bottom: -9px; left: -9px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.frame > .frame__i::after { bottom: -9px; right: -9px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.rail {
  height: 10px;
  background-image: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 10px);
  background-position: left bottom;
  background-repeat: repeat-x;
  background-size: 100% 6px;
  position: relative;
}
.rail::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--rail-fill, 100%);
  height: 10px;
  background-image: repeating-linear-gradient(to right, var(--cobalt) 0 2px, transparent 2px var(--rail-step, 25%));
  transition: width 700ms var(--ease);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(1.5rem, 0.7rem + 2.6vw, 3rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* the page's own column grid, faintly visible as a working surface */
  content: '';
  position: absolute;
  inset: 0 0 0 0;
  background-image: linear-gradient(to right, var(--rule-soft) 0 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__grid { align-items: start; }
.hero__copy { grid-column: 1 / -1; }
.hero__art { grid-column: 1 / -1; margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }

@media (min-width: 1000px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__art { grid-column: 8 / span 5; margin-top: 0.5rem; }
}

.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.042em;
  line-height: 0.92;
  margin-top: clamp(1rem, 0.85rem + 0.6vw, 1.5rem);
  text-wrap: pretty;
}
.hero h1 .ln { display: block; }
.hero h1 .ln--2 { color: var(--ink-2); }
.hero__lede {
  margin-top: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  max-width: 44ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: clamp(1.5rem, 1.3rem + 1vw, 2rem);
}
.hero__services {
  margin-top: clamp(1.75rem, 1.4rem + 1.8vw, 2.75rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-size: var(--t-label-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.hero__services b { font-weight: 500; color: var(--ink); }
.hero__services .sep { color: var(--cobalt); }

/* Hero artifact composition */
.proof { position: relative; }
.proof__stage { position: relative; aspect-ratio: 100 / 124; }
.plate {
  position: absolute;
  width: 100%;
  height: auto;
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule), 0 22px 46px -30px rgba(23, 23, 23, 0.42);
}
.plate--a { left: 0; top: 0; width: 76%; z-index: 1; }
.plate--b { left: 16%; top: 44.5%; width: 74%; z-index: 2; }
.plate--c { right: 0; top: 58%; width: 28%; z-index: 3; }
.proof__rail {
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 10px;
  background-image:
    repeating-linear-gradient(to right, var(--cobalt) 0 1.5px, transparent 1.5px 24px),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 8px);
  background-size: 100% 10px, 100% 6px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}
@media (max-width: 700px) {
  .proof__stage { aspect-ratio: auto; display: grid; gap: 0.9rem; }
  .plate { position: static; width: 100%; }
  .plate--c { width: 62%; }
  .proof__rail { display: none; }
}
.proof__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.proof__meta .cc { color: var(--cobalt); }

/* --- Section heads -------------------------------------------------------- */
.head { display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.75rem); }
.head__top { display: grid; gap: 1.25rem; }
.head h2 { font-size: var(--t-h2); }
.head h2 .ln { display: block; }
.head h2 .ln--2 { color: var(--ink-2); }
.head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: end; }
.head--split .head__title { grid-column: 1 / -1; }
.head--split .head__aside { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .head--split .head__title { grid-column: 1 / span 7; }
  .head--split .head__aside { grid-column: 9 / span 4; padding-bottom: 0.4rem; }
}

.head--wide .head__title { grid-column: 1 / -1; }
.head--wide { gap: 1.25rem; }
.head--wide .head__aside {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-top: 0.9rem;
  margin-top: -0.25rem;
  border-top: 1px solid var(--rule);
}
.head--wide .head__aside .lede { max-width: 54ch; }
@media (min-width: 900px) {
  .head--wide h2 { font-size: clamp(2.5rem, 1rem + 5vw, 4.75rem); }
  .head--wide .head__aside .lede { max-width: 42ch; margin-left: auto; text-align: right; }
}

/* --- Work ----------------------------------------------------------------- */
.work__list { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.work__pair { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 860px) { .work__pair { grid-template-columns: 1fr 1fr; } }

.project { display: grid; gap: 1.5rem; }
.project__canvas {
  position: relative;
  display: block;
  width: 100%;
  background: var(--paper-warm);
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.project--lead .project__canvas { aspect-ratio: 16 / 9; }

.project__open {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.9rem;
}
.project__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 2px;
  padding: 0.5rem 0.8rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px -4px rgba(23, 23, 23, 0.3);
  transition: background var(--t-hover) var(--ease-soft), color var(--t-hover) var(--ease-soft);
}
.project__badge .ico { color: var(--cobalt); transition: transform 240ms var(--ease); }

.project__shot { position: relative; }
.project__shot:hover .project__badge, .project__shot:focus-within .project__badge { background: var(--cobalt); color: var(--white); }
.project__shot:hover .project__badge .ico, .project__shot:focus-within .project__badge .ico { color: var(--white); transform: translate(2px, -2px); }
.project__shot:hover.frame::before, .project__shot:hover.frame::after,
.project__shot:hover > .frame__i::before, .project__shot:hover > .frame__i::after { width: 24px; height: 24px; }

.project__body { display: grid; gap: 0.9rem; }
.project--lead .project__body { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: start; }
.project--lead .project__headline { grid-column: 1 / -1; }
.project--lead .project__note { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .project--lead .project__headline { grid-column: 1 / span 5; }
  .project--lead .project__note { grid-column: 7 / span 6; }
}
.project__name { font-size: var(--t-h3); letter-spacing: -0.03em; }
.project__disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.7rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.project__disciplines li { display: flex; align-items: center; gap: 0.75rem; }
.project__disciplines li + li::before { content: ''; width: 3px; height: 3px; background: var(--cobalt); }
.project__note { color: var(--ink-2); font-size: var(--t-body-sm); max-width: 62ch; }
.project__note b { color: var(--ink); font-weight: 500; }
.concept {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.concept::before {
  content: '';
  width: 7px; height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* --- Services ------------------------------------------------------------- */
.svc { border-top: 1px solid var(--ink); margin-top: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.svc__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 0.8rem + 1.5vw, 2.5rem);
  padding-block: clamp(1.75rem, 1.4rem + 2vw, 2.75rem) clamp(1.25rem, 1rem + 1.4vw, 1.9rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.svc__num {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.svc__title { grid-column: 1 / -1; }
.svc__title h3 { font-size: var(--t-h3); }
.svc__title p { margin-top: 0.85rem; color: var(--ink-2); font-size: var(--t-body-sm); max-width: 38ch; }
.svc__caps { grid-column: 1 / -1; }
.svc__caps ul {
  columns: 2;
  column-gap: clamp(1rem, 2vw, 2.5rem);
  font-size: var(--t-body-sm);
}
.svc__caps li {
  break-inside: avoid;
  padding-block: 0.4rem;
  padding-left: 1.1rem;
  position: relative;
  color: var(--ink);
}
.svc__caps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1.5px;
  background: var(--cobalt);
}
@media (max-width: 520px) { .svc__caps ul { columns: 1; } }
@media (min-width: 900px) {
  .svc__num { grid-column: 1 / span 1; }
  .svc__title { grid-column: 2 / span 5; }
  .svc__caps { grid-column: 8 / span 5; }
}
.svc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-size: var(--t-body);
}
.svc__foot span { color: var(--ink-2); }

/* --- Studio --------------------------------------------------------------- */
.studio { background: var(--white); border-block: 1px solid var(--rule); }
.studio__grid { align-items: start; }
.studio__copy { grid-column: 1 / -1; }
.studio__art { grid-column: 1 / -1; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
@media (min-width: 960px) {
  .studio__copy { grid-column: 1 / span 6; }
  .studio__art { grid-column: 8 / span 5; margin-top: 0; }
}
.studio__copy h2 { font-size: var(--t-h2); margin-top: clamp(1rem, 0.85rem + 0.6vw, 1.5rem); }
.studio__copy h2 .ln { display: block; }
.studio__copy h2 .ln--2 { color: var(--ink-2); }
.studio__body { margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem); max-width: 54ch; color: var(--ink-2); }
.studio__principles { margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); border-top: 1px solid var(--rule); }
.studio__principles div {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.3rem;
}
.studio__principles dt { font-family: var(--display); font-weight: 700; font-size: var(--t-h4); letter-spacing: -0.03em; }
.studio__principles dd { margin: 0; color: var(--ink-2); font-size: var(--t-body-sm); }

/* Typographic composition: questions annotated like a proof */
.qblock { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.qblock__q {
  padding: clamp(1.1rem, 1rem + 1vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.875rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.qblock__q:last-of-type { border-bottom: 0; }
.qblock__q span { display: block; font-family: var(--body); font-size: var(--t-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 0.7rem; }
.qblock__out {
  display: block;
  font-family: var(--body);
  font-size: var(--t-body-sm);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 0.6rem;
}

/* --- Process -------------------------------------------------------------- */
.proc { margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.proc__rail { display: none; }
@media (min-width: 900px) {
  .proc__rail { display: block; margin-bottom: 1.5rem; }
}
.proc__steps { display: grid; gap: 0; }
@media (min-width: 900px) {
  .proc__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
}
.step {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top-color: var(--ink); }
@media (min-width: 900px) {
  .step { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
}
.step__n {
  font-family: var(--display);
  font-size: var(--t-label-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: var(--t-h4); }
.step p { color: var(--ink-2); font-size: var(--t-body-sm); }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 1rem + 0.5vw, 1.5rem) 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  transition: color var(--t-hover) var(--ease-soft);
}
.faq__btn:hover { color: var(--cobalt); }
.faq__ico { flex: none; width: 18px; height: 18px; position: relative; color: var(--cobalt); }
.faq__ico::before, .faq__ico::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 240ms var(--ease), opacity 160ms linear;
}
.faq__ico::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq__ico::after { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.faq__btn[aria-expanded='true'] .faq__ico::after { transform: scaleY(0); opacity: 0; }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-panel) var(--ease-soft);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  color: var(--ink-2);
  font-size: var(--t-body-sm);
  max-width: 68ch;
  padding-bottom: 1.4rem;
}

/* --- Contact: the one major cobalt moment --------------------------------- */
.contact {
  padding-block: var(--sec-y) calc(var(--sec-y) * 0.6);
  background: var(--cobalt);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact__grid { align-items: stretch; }
.contact__copy { grid-column: 1 / -1; display: flex; flex-direction: column; }
.contact__form { grid-column: 1 / -1; margin-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
@media (min-width: 960px) {
  .contact__copy { grid-column: 1 / span 6; }
  .contact__form { grid-column: 8 / span 5; margin-top: 0.5rem; }
}
.contact h2 { font-size: var(--t-h2); margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.contact h2 .ln { display: block; }
.contact h2 .ln--2 { color: var(--on-cobalt-2); }
.contact__lede { margin-top: 1.25rem; max-width: 42ch; color: var(--on-cobalt-2); }

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.375rem, 0.9rem + 2.4vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1.5px solid var(--on-cobalt-rule);
  transition: border-color var(--t-hover) var(--ease-soft);
  max-width: 100%;
  word-break: break-word;
}
.mailto:hover { border-bottom-color: var(--white); }
.mailto .ico { transition: transform 240ms var(--ease); }
.mailto:hover .ico { transform: translate(3px, -3px); }

.contact__direct { margin-top: 1.25rem; font-size: var(--t-body-sm); color: var(--on-cobalt-2); max-width: 40ch; }

.contact .frame::before, .contact .frame::after,
.contact .frame > .frame__i::before, .contact .frame > .frame__i::after { border-color: var(--white); }

.mailto__row { display: flex; align-items: center; gap: 1rem; margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.mailto__reg { flex: none; width: 34px; height: 34px; color: var(--white); display: none; }
@media (min-width: 560px) { .mailto__reg { display: block; } }

.contact__rail {
  margin-top: 1.5rem;
  height: 10px;
  max-width: 34rem;
  background-image:
    repeating-linear-gradient(to right, var(--white) 0 1.5px, transparent 1.5px 32px),
    repeating-linear-gradient(to right, var(--on-cobalt-rule) 0 1px, transparent 1px 8px);
  background-size: 100% 10px, 100% 6px;
  background-position: left bottom, left bottom;
  background-repeat: repeat-x;
}
.contact__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: auto;
  padding-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  border-top: 1px solid var(--on-cobalt-rule);
  font-size: var(--t-label-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-cobalt-2);
}
.contact__services b { font-weight: 500; color: var(--white); }
.contact__services .sep { color: var(--on-cobalt-rule); }

/* What to send, as the proof sheet would number it */
.sendlist { margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); display: grid; gap: 0; }
.sendlist li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.8rem;
  border-top: 1px solid var(--on-cobalt-rule);
  font-size: var(--t-body-sm);
  color: var(--white);
}
.sendlist li:last-child { border-bottom: 1px solid var(--on-cobalt-rule); }
.sendlist b {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-label-lg);
  letter-spacing: 0.06em;
  color: var(--on-cobalt-2);
  font-variant-numeric: tabular-nums;
}

/* Email-first composer */
.composer {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--on-cobalt-rule);
  border-radius: 2px;
  padding: clamp(1.25rem, 1rem + 1.4vw, 2rem);
}
.composer h3 {
  font-size: var(--t-h4);
  letter-spacing: -0.03em;
}
.composer__note { margin-top: 0.6rem; font-size: var(--t-label-lg); color: var(--on-cobalt-2); line-height: 1.5; }
.field { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.field > label, .fieldset > legend {
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-cobalt-2);
}
.req { color: var(--white); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: var(--t-body-sm);
  color: var(--white);
  background: rgba(10, 22, 90, 0.34);
  border: 1px solid var(--on-cobalt-rule);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-height: 46px;
  transition: border-color var(--t-hover) var(--ease-soft), background var(--t-hover) var(--ease-soft);
}
.field textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-cobalt-2); opacity: 1; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--white); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { background: rgba(10, 22, 90, 0.5); }
.field[data-invalid='true'] input, .field[data-invalid='true'] textarea { border-color: var(--invalid-rule); border-width: 1.5px; }
.field__err { font-size: var(--t-label-lg); color: #ffeeea; display: none; }
.field[data-invalid='true'] .field__err { display: block; }

.fieldset { border: 0; padding: 0; margin: 1.3rem 0 0; display: grid; gap: 0.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--on-cobalt-rule);
  border-radius: 2px;
  font-size: var(--t-label-lg);
  font-weight: 500;
  color: var(--white);
  transition: background var(--t-hover) var(--ease-soft), border-color var(--t-hover) var(--ease-soft), color var(--t-hover) var(--ease-soft);
}
.chip input:hover + span { border-color: var(--white); }
.chip input:checked + span { background: var(--white); color: var(--cobalt-ink); border-color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }

.composer__submit { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.composer__status {
  margin-top: 0.9rem;
  font-size: var(--t-label-lg);
  color: var(--on-cobalt-2);
  min-height: 1.2em;
}
.composer__status[data-state='error'] { color: #ffeeea; }
.composer__legal { margin-top: 1.1rem; font-size: var(--t-label); color: var(--on-cobalt-2); line-height: 1.6; }
.composer__legal a { color: var(--white); text-decoration-color: var(--on-cobalt-rule); text-underline-offset: 0.25em; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--paper); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.footer__top { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) {
  .footer__top { grid-template-columns: 1fr auto; }
}
.footer__desc { margin-top: 1rem; color: var(--ink-2); font-size: var(--t-body-sm); max-width: 34ch; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: var(--t-body-sm);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-underline-offset: 0.3em;
}
.footer__mail:hover { color: var(--cobalt); }
.footer__bottom {
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: var(--t-label-lg);
  color: var(--ink-2);
}
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.footer__links button, .footer__links a {
  font-size: var(--t-label-lg);
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
  transition: color var(--t-hover) var(--ease-soft), text-decoration-color var(--t-hover) var(--ease-soft);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.footer__links button:hover, .footer__links a:hover { color: var(--cobalt); text-decoration-color: var(--cobalt); }

/* --- Dialogs -------------------------------------------------------------- */
dialog {
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  max-height: min(84vh, 900px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 56px -32px rgba(23, 23, 23, 0.5);
  overflow: hidden;
}
dialog::backdrop { background: rgba(23, 23, 23, 0.52); backdrop-filter: blur(2px); }
.dlg { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: inherit; }
.dlg__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 1rem + 1vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.dlg__close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  transition: background var(--t-hover) var(--ease-soft), border-color var(--t-hover) var(--ease-soft);
}
.dlg__close:hover { background: var(--white); border-color: var(--ink); }
.dlg__scroll { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.dlg h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.dlg h3 { font-size: var(--t-h4); margin-top: 2rem; }
.dlg h3:first-of-type { margin-top: 1.5rem; }
.dlg p, .dlg li { font-size: var(--t-body-sm); color: var(--ink-2); max-width: 70ch; }
.dlg p + p { margin-top: 0.9rem; }
.dlg h3 + p { margin-top: 0.6rem; }
.dlg ul { margin-top: 0.7rem; display: grid; gap: 0.45rem; }
.dlg ul li { padding-left: 1.1rem; position: relative; }
.dlg ul li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 6px; height: 1.5px; background: var(--cobalt); }
.dlg__meta { font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); }
.dlg__draft {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  background: var(--white);
  font-size: var(--t-label-lg);
  color: var(--ink-2);
}
.dlg__draft b { color: var(--ink); font-weight: 500; }

/* Project detail dialog */
.pdlg__shot { width: 100%; background: var(--paper-warm); border: 1px solid var(--rule); border-radius: 2px; }
.pdlg__grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .pdlg__grid { grid-template-columns: 1fr 1fr; } }
.pdlg__grid h3 { margin-top: 0; }

/* --- Motion --------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-frame::before, .js .reveal-frame::after,
.js .reveal-frame > .frame__i::before, .js .reveal-frame > .frame__i::after {
  width: 0;
  height: 0;
  transition: width 460ms var(--ease) 180ms, height 460ms var(--ease) 180ms;
}
.js .reveal-frame.is-in::before, .js .reveal-frame.is-in::after,
.js .reveal-frame.is-in > .frame__i::before, .js .reveal-frame.is-in > .frame__i::after { width: 15px; height: 15px; }

.js .rail::after { width: 0; }
.js .rail.is-in::after { width: var(--rail-fill, 34%); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .js .reveal-frame::before, .js .reveal-frame::after,
  .js .reveal-frame > .frame__i::before, .js .reveal-frame > .frame__i::after { width: 15px; height: 15px; transition: none; }
  .js .rail::after, .js .rail.is-in::after { width: var(--rail-fill, 34%); transition: none; }
  .btn, .link, .mark__reg, .frame::before, .frame::after { transition: none !important; }
  .sheet { transition: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .header, .sheet, .burger, .composer, .proof__meta { display: none !important; }
  body { background: #fff; }
  .contact { background: #fff; color: #000; }
  .contact h2 .ln--2, .contact__lede { color: #444; }
  .mailto { color: #000; }
  a { text-decoration: underline; }
}

/* --- Project canvas holds authored vector artwork ------------------------- */
.project__canvas > svg {
  width: 100%;
  height: 100%;
  transform: scale(1.012);
  transition: transform 620ms var(--ease);
}
.project__shot:hover .project__canvas > svg,
.project__shot:focus-within .project__canvas > svg { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .project__canvas > svg { transition: none; }
  .project__shot:hover .project__canvas > svg,
  .project__shot:focus-within .project__canvas > svg { transform: scale(1.012); }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


/* --- Narrow screens: artwork is fitted, never cropped ---------------------- */
@media (max-width: 860px) {
  .project__canvas,
  .project--lead .project__canvas { aspect-ratio: auto; }
  .project__canvas > svg { height: auto; transform: none; }
  .project__shot:hover .project__canvas > svg,
  .project__shot:focus-within .project__canvas > svg { transform: none; }
  .project__open {
    position: static;
    inset: auto;
    padding: 0;
    margin-top: 0.9rem;
    justify-content: flex-start;
  }
  .project__badge { box-shadow: none; border: 1px solid var(--rule); }
  .contact__services { margin-top: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
}
