/* ZM Design. One stylesheet, mobile first.
   Every color, size and duration is a token defined in :root. */

@font-face {
  font-family: "Bricolage Grotesque"; /* ds-allow-hardcode: @font-face must name the family literally */
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  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: "Bricolage Grotesque"; /* ds-allow-hardcode: @font-face must name the family literally */
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color: paper, ink, and one spot color borrowed from print dielines */
  --stock: #F2F3F0;
  --sheet: #FFFFFF;
  --ink: #191B22;
  --graphite: #5A5E68;
  --rule: #D5D8D2;
  --blank: #E4E6E1;
  --dieline: #2340E0;
  --dieline-deep: #1A31B4;
  --on-dieline: #FFFFFF;
  --on-dieline-soft: #C9D1FB;

  /* Type */
  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: 1.0625rem;
  --text-small: 0.9375rem;
  --text-tiny: 0.8125rem;
  --h1: clamp(2.75rem, 10.5vw, 7rem);
  --h2: clamp(1.9rem, 5vw, 3.25rem);
  --h3: clamp(1.4rem, 3.2vw, 1.9rem);
  --mail: clamp(1.4rem, 8.2vw, 4.5rem);

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --page: 76rem;
  --section: clamp(4.5rem, 12vw, 9rem);
  --gap: clamp(0.75rem, 3.2vw, 1.5rem);
  --step-offset: clamp(1rem, 5vw, 2.75rem);

  /* Shape */
  --radius-sheet: 0.875rem;
  --radius-panel: clamp(1.25rem, 4vw, 2.25rem);
  --radius-pill: 62.5rem;
  --hair: 0.0625rem;
  --focus: 0.1875rem;

  /* Depth */
  --shadow-case: 0 1.4rem 1.6rem -1.1rem color-mix(in srgb, var(--ink) 42%, transparent);
  --cut-ring: color-mix(in srgb, var(--ink) 16%, transparent);

  /* Motion */
  --dur-print: 900ms;
  --stagger: 150ms;
  --dur-fast: 160ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: var(--focus) solid var(--dieline);
  outline-offset: var(--focus);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sheet);
  border-radius: var(--radius-pill);
}
.skip:focus { top: 0.75rem; }

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.top-nav, .top .btn { display: none; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  padding: 0.85em 1.25em;
  border: var(--hair) solid var(--dieline);
  border-radius: var(--radius-pill);
  background: var(--dieline);
  color: var(--on-dieline);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn:hover { background: var(--dieline-deep); border-color: var(--dieline-deep); }

.btn-small { padding: 0.55em 1.1em; font-size: var(--text-small); }

.btn-ghost {
  background: transparent;
  border-color: var(--on-dieline-soft);
  color: var(--on-dieline);
}
.btn-ghost:hover { background: var(--on-dieline); border-color: var(--on-dieline); color: var(--dieline); }

.text-link {
  font-weight: 600;
  color: var(--dieline);
  text-underline-offset: 0.2em;
  text-decoration-thickness: var(--hair);
}
.text-link:hover { color: var(--dieline-deep); }

/* ---------- Hero ---------- */

.hero {
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(2rem, 7vw, 4.5rem) var(--gutter) var(--section);
}

.hero h1 {
  max-width: 13ch;
  font-size: var(--h1);
  font-weight: 650;
  font-stretch: 78%;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  max-width: 27ch;
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  line-height: 1.35;
  color: var(--graphite);
}

.hero .btn { margin-top: 1.75rem; }

.lineup {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3rem, 10vw, 4.5rem);
  padding-bottom: var(--step-offset);
}

/* A phone case, drawn in CSS so the artwork stays flat and the edges stay crisp */
.case {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  border-radius: 16% / 7.78%;
  background: var(--blank);
  box-shadow: var(--shadow-case);
}
.case:nth-child(even) { top: var(--step-offset); }
.case-wide-only { display: none; }

.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: print var(--dur-print) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * var(--stagger) + var(--stagger));
}

.cam {
  position: absolute;
  top: 5.5cqw;
  left: 5.5cqw;
  width: 41cqw;
  aspect-ratio: 1;
  border-radius: 12cqw;
  background: var(--stock);
  box-shadow: inset 0 0 0 var(--hair) var(--cut-ring);
}

/* The one moment of motion: artwork prints onto the blank cases, top to bottom */
@keyframes print {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Sections ---------- */

.block {
  max-width: var(--page);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--section);
}

.block-title {
  max-width: 16ch;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  font-size: var(--h2);
  font-weight: 600;
  font-stretch: 82%;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* ---------- Services ---------- */

.service {
  display: grid;
  gap: clamp(2rem, 7vw, 3rem);
  padding-block: clamp(2rem, 7vw, 3.5rem);
  border-top: var(--hair) solid var(--rule);
}

.service h3 {
  font-size: var(--h3);
  font-weight: 600;
  font-stretch: 85%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-copy p {
  max-width: 34ch;
  margin-top: 0.85rem;
  color: var(--graphite);
}

.gets { margin-top: 1.75rem; max-width: 26rem; }
.gets li {
  padding-block: 0.7rem;
  border-top: var(--hair) solid var(--rule);
  font-size: var(--text-small);
}
.gets li:last-child { border-bottom: var(--hair) solid var(--rule); }

figcaption {
  margin-top: 1rem;
  font-size: var(--text-tiny);
  color: var(--graphite);
}

/* Identity specimen: this site's own mark, type and colors */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius-sheet);
  background: var(--sheet);
}

.sp-mark, .sp-word {
  display: grid;
  place-items: center;
  container-type: inline-size;
  aspect-ratio: 1;
  border-radius: calc(var(--radius-sheet) - 0.375rem);
}
.sp-mark { background: var(--dieline); color: var(--on-dieline); }
.sp-word { background: var(--stock); }
.sp-mark span {
  font-size: 46cqw;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.05em;
  line-height: 1;
}
.sp-word span {
  font-size: 15cqw;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sp-type {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 1rem;
  padding: 1rem 0.75rem 0.85rem;
}
.sp-aa {
  grid-row: span 2;
  font-size: clamp(3.5rem, 15vw, 5.5rem);
  font-weight: 650;
  font-stretch: 78%;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.sp-name { font-size: var(--text-small); font-weight: 600; }
.sp-weights { display: flex; flex-wrap: wrap; gap: 0 0.9rem; font-size: var(--text-tiny); color: var(--graphite); }
.sp-weights i { font-style: normal; }
.sp-weights i:nth-child(1) { font-weight: 300; }
.sp-weights i:nth-child(2) { font-weight: 400; }
.sp-weights i:nth-child(3) { font-weight: 700; }

.sp-chips {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
.sp-chips li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 5.5rem;
  padding: 0.6rem 0.7rem;
  border-radius: calc(var(--radius-sheet) - 0.375rem);
  background: var(--chip);
  color: var(--chip-ink);
  font-size: var(--text-tiny);
  line-height: 1.3;
}
.sp-chips b { font-weight: 600; }
.chip-dieline { --chip: var(--dieline); --chip-ink: var(--on-dieline); }
.chip-ink { --chip: var(--ink); --chip-ink: var(--sheet); }
.chip-stock { --chip: var(--stock); --chip-ink: var(--ink); }

/* Print proof: bleed, safe area and camera cutout on a real case shape */
.proof-sheet {
  padding: clamp(2.75rem, 12vw, 4rem) 1rem;
  border-radius: var(--radius-sheet);
  background: var(--sheet);
}

.proof-case {
  position: relative;
  container-type: inline-size;
  width: min(56%, 13.5rem);
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
}
.proof-case::before {
  content: "";
  position: absolute;
  inset: -7cqw;
  z-index: 2;
  border: var(--hair) dashed var(--dieline);
  border-radius: 22cqw;
}

.proof-bleed {
  position: absolute;
  inset: -7cqw;
  width: calc(100% + 14cqw);
  max-width: none;
  height: calc(100% + 14cqw);
  object-fit: cover;
  border-radius: 22cqw;
  opacity: 0.3;
}

.proof-trim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16cqw;
}
.proof-trim img { width: 100%; height: 100%; object-fit: cover; }
.proof-case .cam { z-index: 3; background: var(--sheet); box-shadow: 0 0 0 0.125rem var(--dieline); }

.proof-safe {
  position: absolute;
  inset: 7cqw;
  z-index: 2;
  border: 0.125rem solid var(--dieline);
  border-radius: 10cqw;
}

.crop {
  position: absolute;
  width: 6cqw;
  height: 6cqw;
  border: 0 solid var(--ink);
}
.crop-tl { top: -16cqw; left: -16cqw; border-right-width: var(--hair); border-bottom-width: var(--hair); }
.crop-tr { top: -16cqw; right: -16cqw; border-left-width: var(--hair); border-bottom-width: var(--hair); }
.crop-bl { bottom: -16cqw; left: -16cqw; border-right-width: var(--hair); border-top-width: var(--hair); }
.crop-br { bottom: -16cqw; right: -16cqw; border-left-width: var(--hair); border-top-width: var(--hair); }

.legend { display: grid; gap: 0.6rem; }
.legend li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; align-items: start; }
.legend b { font-weight: 600; color: var(--ink); }
.key { display: block; margin-top: 0.55em; }
.key-bleed { border-top: var(--hair) dashed var(--dieline); }
.key-safe { border-top: 0.125rem solid var(--dieline); }
.key-cam {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.15em;
  border: 0.125rem solid var(--dieline);
  border-radius: 0.3rem;
}

/* ---------- Work ---------- */

.work-row {
  display: grid;
  gap: 0.6rem;
  padding-block: clamp(1.5rem, 5vw, 2.25rem);
  border-block: var(--hair) solid var(--rule);
}
.work-row h3 {
  font-size: var(--h3);
  font-weight: 600;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.work-row p { max-width: 34ch; color: var(--graphite); }
.work-row .text-link { margin-top: 0.4rem; justify-self: start; }

/* ---------- Process ---------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.5rem;
  padding-block: 1.25rem;
  border-top: var(--hair) solid var(--rule);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: var(--h3);
  font-weight: 600;
  font-stretch: 85%;
  line-height: 1.1;
  color: var(--dieline);
}
.steps h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.steps p { margin-top: 0.25rem; max-width: 30ch; font-size: var(--text-small); color: var(--graphite); }

/* ---------- Contact ---------- */

.contact {
  max-width: calc(var(--page) - var(--gutter) * 2);
  margin: 0 var(--gutter);
  padding: clamp(2.75rem, 10vw, 6rem) clamp(1.25rem, 6vw, 4.5rem);
  border-radius: var(--radius-panel);
  background: var(--dieline);
  color: var(--on-dieline);
}

.contact h2 {
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  font-weight: 400;
  color: var(--on-dieline-soft);
}

.mail {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: var(--mail);
  font-weight: 650;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.12em; }
.mail:focus-visible, .btn-ghost:focus-visible { outline-color: var(--on-dieline); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: clamp(1.75rem, 6vw, 2.75rem);
}
.copy-status { font-size: var(--text-small); color: var(--on-dieline-soft); }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--page);
  margin-inline: auto;
  padding: 2.5rem var(--gutter) 3rem;
  font-size: var(--text-small);
  color: var(--graphite);
}

/* ---------- Wider screens ---------- */

@media (min-width: 48em) {
  :root { --text: 1.125rem; --h1: clamp(3.5rem, 7.6vw, 6.5rem); }

  .top-nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 1rem;
    font-size: var(--text-small);
  }
  .top .btn { display: inline-block; }
  .top-nav a { text-decoration: none; }
  .top-nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: var(--hair); }

  .hero h1 { max-width: none; }
  .lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-wide-only { display: block; }

  .service {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(2.5rem, 7vw, 6rem);
    align-items: start;
  }
  .service-flip .service-copy { order: 2; }
  .service-flip .proof { order: 1; }

  .work-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto;
    column-gap: 2rem;
    align-items: baseline;
  }
  .work-row .text-link { margin-top: 0; }

  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; }
  .steps li { grid-template-columns: 1fr; row-gap: 0.6rem; padding-block: 1.5rem 0; }
  .steps li::before { grid-row: auto; }

  .contact { margin-inline: auto; width: calc(100% - var(--gutter) * 2); }
}

/* Hero goes side by side once there is room for copy and four cases */
@media (min-width: 60em) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
  }
  .hero-copy { display: contents; }
  .hero h1 { grid-column: 1 / -1; }
  .lede { grid-column: 1; grid-row: 2; align-self: start; margin-top: 2.5rem; }
  .hero .btn { grid-column: 1; grid-row: 3; justify-self: start; align-self: start; }
  .lineup { grid-column: 2; grid-row: 2 / span 3; margin-top: 3rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case img { animation: none; }
  .btn { transition: none; }
}
