/* ==========================================================================
   Chng Yang Da Portfolio: "Dieline" design system (2026 redesign)
   A packaging designer's site that borrows the language of a print file:
   dieline magenta for fold lines and accents, crop marks, a CMYK colour bar,
   mono spec labels and an ingredients panel. See Vault/Redesign/RedesignPlan.md.
   Fluid layout, max 1200px. The 980px Wix stage is retired.
   ========================================================================== */

@property --FoldA { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --FoldB { syntax: "<number>"; inherits: true; initial-value: 1; }

:root {
  /* Colour */
  --Paper: #f5f3ee;
  --PaperDeep: #ebe8e0;
  --Card: #ffffff;
  --Ink: #16171b;
  --InkSoft: #45474f;
  --Muted: #6a6d76;
  --Rule: #dedad0;
  --Dieline: #00b3a7;
  --DielineText: #00786f;
  --Kraft: #c9a47a;
  --KraftDeep: #b48d62;
  --KraftInk: #2b2117;
  --Cyan: #00a0dc;
  --Yellow: #ffe500;
  --OnInk: #f5f3ee;
  --OnInkSoft: #b9bbc2;

  /* Type */
  --FontSerif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --FontSans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --FontMono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --Max: 1200px;
  --Gutter: clamp(16px, 4vw, 40px);
  --Radius: 14px;
  --SectionGap: clamp(88px, 12vw, 160px);
  --Ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--Paper);
  color: var(--Ink);
  font-family: var(--FontSans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--Dieline); color: #fff; }

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

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

.SkipLink {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--Ink); color: var(--OnInk);
  border-radius: 8px;
  text-decoration: none;
}
.SkipLink:focus { top: 16px; }

/* ---------- Layout ---------- */

.Wrap {
  width: 100%;
  max-width: calc(var(--Max) + var(--Gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--Gutter);
}

.Section { padding: var(--SectionGap) 0 0; }
.Section:last-of-type { padding-bottom: var(--SectionGap); }

.SectionHead { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.SectionHead.IsCentered { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Type ---------- */

.Eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--FontMono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--Muted);
}
.Eyebrow::before {
  content: "";
  width: 22px;
  border-top: 1.5px dashed var(--Dieline);
}
.IsCentered .Eyebrow::after {
  content: "";
  width: 22px;
  border-top: 1.5px dashed var(--Dieline);
}

.Display {
  font-family: var(--FontSerif);
  font-size: clamp(52px, 8.4vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.Title {
  font-family: var(--FontSerif);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.Display em, .Title em, .CardTitle em, .FooterTitle em {
  font-style: italic;
  color: var(--DielineText);
}

.Lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--InkSoft);
  max-width: 620px;
}
.SectionHead .Lead { margin-top: 20px; }
.SectionHead.IsCentered .Lead { margin-left: auto; margin-right: auto; }

.Mono {
  font-family: var(--FontMono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.TextLink {
  color: var(--DielineText);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.TextLink:hover { text-decoration-style: dashed; }

/* ---------- Buttons ---------- */

.ButtonRow { display: flex; flex-wrap: wrap; gap: 12px; }

.Button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--Ink);
  border-radius: 999px;
  background: var(--Ink);
  color: var(--OnInk);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--Ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.Button:hover { transform: translateY(-2px); }
.Button svg { width: 16px; height: 16px; transition: transform 0.3s var(--Ease); }
.Button:hover svg { transform: translateX(3px); }

.Button.IsGhost { background: transparent; color: var(--Ink); }
.Button.IsGhost:hover { background: var(--Card); }

.Button.IsAccent { background: var(--Dieline); border-color: var(--Dieline); color: #fff; }

.Button.IsSmall { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Print motifs ---------- */

/* CMYK colour bar, as printed in the margin of a proof */
.ColourBar { display: inline-flex; gap: 3px; }
.ColourBar i { width: 12px; height: 12px; display: block; }
.ColourBar i:nth-child(1) { background: var(--Cyan); }
.ColourBar i:nth-child(2) { background: var(--Dieline); }
.ColourBar i:nth-child(3) { background: var(--Yellow); }
.ColourBar i:nth-child(4) { background: var(--Ink); }

/* Registration mark used in the logo */
.RegMark { width: 22px; height: 22px; flex: none; }
.RegMark circle, .RegMark path { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* A white sheet with crop marks at the corners: frames every image */
.Sheet {
  position: relative;
  background: var(--Card);
  border-radius: 4px;
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: 0 1px 0 rgba(22, 23, 27, 0.04), 0 18px 40px -28px rgba(22, 23, 27, 0.35);
}
.Sheet::before,
.Sheet::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
  transition: transform 0.4s var(--Ease);
}
.Sheet::before {
  top: -9px; left: -9px;
  border-top: 1px solid var(--Ink);
  border-left: 1px solid var(--Ink);
  transform: translate(-6px, -6px);
}
.Sheet::after {
  right: -9px; bottom: -9px;
  border-right: 1px solid var(--Ink);
  border-bottom: 1px solid var(--Ink);
  transform: translate(6px, 6px);
}
.Sheet img { width: 100%; border-radius: 2px; }
.Sheet.IsDark { background: #23242a; }

/* Spec label: mono key / value rows, like the small print on a pack */
.SpecList { display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid var(--Rule); }
.SpecList dt,
.SpecList dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--Rule); }
.SpecList dt {
  padding-right: 28px;
  font-family: var(--FontMono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Muted);
  line-height: 1.9;
}
.SpecList dd { font-size: 15px; }

.Chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--Rule);
  border-radius: 999px;
  background: var(--Card);
  font-family: var(--FontMono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--InkSoft);
  white-space: nowrap;
}
.Chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--Ink); }
.Chip.IsDesign::before { background: var(--Cyan); }
.Chip.Is3D::before { background: var(--Dieline); }
.Chip.IsSourcing::before { background: var(--Yellow); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.ChipRow { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Top bar ---------- */

.TopBar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.Logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.Logo .RegMark { transition: transform 0.6s var(--Ease); }
.Logo:hover .RegMark { transform: rotate(90deg); }
.TopBarRole { margin: 0; color: var(--Muted); font-size: 14px; }
.TopBarMail {
  margin-left: auto;
  font-family: var(--FontMono);
  font-size: 13px;
  color: var(--InkSoft);
  text-decoration: none;
  border-bottom: 1px dashed var(--Rule);
}
.TopBarMail:hover { color: var(--DielineText); border-bottom-color: var(--Dieline); }

/* ---------- Floating pill nav (always on screen) ---------- */

.PillNav {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(22, 23, 27, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  white-space: nowrap;
}
.PillNav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--OnInkSoft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.PillNav a:hover { color: var(--OnInk); }
.PillNav a.IsActive,
.PillNav a[aria-current="page"] { background: rgba(245, 243, 238, 0.14); color: var(--OnInk); }
.PillNav .PillResume {
  margin-left: 4px;
  background: var(--Dieline);
  color: #fff;
  font-weight: 600;
}
.PillNav .PillResume:hover { color: #fff; background: #c4006b; }

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

.Hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(700px, calc(100svh - 150px));
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.HeroHello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--InkSoft);
}
.HeroHello img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.Hero .Display { margin-bottom: 26px; }
.Hero .Lead { margin-bottom: 32px; }

.FactStrip {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--Rule);
  border-bottom: 1px solid var(--Rule);
}
.FactStrip li {
  flex: 1 1 200px;
  padding: 16px 18px 16px 0;
  font-family: var(--FontMono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--InkSoft);
  line-height: 1.5;
}
.FactStrip li + li { padding-left: 18px; border-left: 1px dashed var(--Rule); }
.FactStrip strong { display: block; font-family: var(--FontSerif); font-size: 30px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--Ink); line-height: 1.1; margin-bottom: 4px; }

/* ---------- The carton (signature interaction) ----------
   A kraft box built as a flat dieline. --FoldA folds the sides and back,
   --FoldB folds the top and bottom; both animate via @property. */

.CartonStage {
  --W: 214px;
  --H: 296px;
  --D: 100px;
  --G: 24px;
  --CartonScale: 1;
  --FlatScale: 0.72;
  --Spin: 0deg;
  --Tilt: 0deg;
  position: relative;
  height: clamp(420px, 46vw, 560px);
  display: grid;
  place-items: center;
  perspective: 1600px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.CartonStage.IsDragging { cursor: grabbing; }

.CartonFloat { animation: CartonFloat 6s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes CartonFloat {
  0%, 100% { transform: translateY(-6px); }
  50% { transform: translateY(8px); }
}

.CartonNet {
  --FoldA: 1;
  --FoldB: 1;
  position: relative;
  width: var(--W);
  height: var(--H);
  transform-style: preserve-3d;
  transform-origin: 50% 50% calc(var(--D) * -0.5 * var(--FoldA));
  transform:
    scale(calc(var(--CartonScale) * (var(--FlatScale) + (1 - var(--FlatScale)) * var(--FoldA))))
    translateX(calc((var(--W) + var(--G)) * -0.5 * (1 - var(--FoldA))))
    rotateX(calc(-16deg * var(--FoldA) + var(--Tilt)))
    rotateY(calc(-34deg * var(--FoldA) + var(--Spin)));
  transition: --FoldA 1.3s var(--Ease), --FoldB 0.9s var(--Ease) 0.7s;
}
.CartonStage.IsFlat .CartonNet {
  --FoldA: 0;
  --FoldB: 0;
  transition: --FoldB 0.7s var(--Ease), --FoldA 1.2s var(--Ease) 0.45s;
}

.Face {
  position: absolute;
  transform-style: preserve-3d;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--Kraft);
  color: var(--KraftInk);
  overflow: visible;
}
/* the cut line around every panel, visible only while flat */
.Face::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--Ink);
  opacity: calc(1 - var(--FoldA));
  pointer-events: none;
}
/* side shading once folded */
.FaceShade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: 0;
}

.Face.Front { inset: 0; }
.Face.Left {
  right: 100%; top: 0;
  width: var(--D); height: var(--H);
  transform-origin: right center;
  transform: rotateY(calc(-90deg * var(--FoldA)));
}
.Face.Left .FaceShade { opacity: calc(0.2 * var(--FoldA)); }
.Face.Right {
  left: 100%; top: 0;
  width: var(--D); height: var(--H);
  transform-origin: left center;
  transform: rotateY(calc(90deg * var(--FoldA)));
}
.Face.Right .FaceShade { opacity: calc(0.12 * var(--FoldA)); }
.Face.Back {
  left: 100%; top: 0;
  width: var(--W); height: var(--H);
  transform-origin: left center;
  transform: rotateY(calc(90deg * var(--FoldA)));
}
.Face.Glue {
  left: 100%; top: 14px;
  width: var(--G); height: calc(var(--H) - 28px);
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  transform-origin: left center;
  transform: rotateY(calc(90deg * var(--FoldA)));
  opacity: calc(1 - var(--FoldA));
}
.Face.Glue { background: var(--KraftDeep); }
.Face.Glue::after { display: none; }

/* a real dieline only cuts the outside edge; shared edges are folds */
.Face.Front::after { border: 0; }
.Face.Left::after { border-right: 0; }
.Face.Right::after,
.Face.Back::after { border-left: 0; border-right: 0; }
.Face.Top::after { border-bottom: 0; }
.Face.Bottom::after { border-top: 0; }
.Face.Top {
  left: 0; bottom: 100%;
  width: var(--W); height: var(--D);
  transform-origin: center bottom;
  transform: rotateX(calc(90deg * var(--FoldB)));
}
.Face.Top .FaceShade { background: #fff; opacity: calc(0.12 * var(--FoldB)); }
.Face.Bottom {
  left: 0; top: 100%;
  width: var(--W); height: var(--D);
  transform-origin: center top;
  transform: rotateX(calc(-90deg * var(--FoldB)));
}

/* fold lines: dashed magenta, fade out as the box folds */
.FoldLine {
  position: absolute;
  pointer-events: none;
  opacity: calc(1 - var(--FoldA));
  z-index: 2;
}
.FoldLine.IsV { top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--Dieline); }
.FoldLine.IsH { left: 0; right: 0; height: 0; border-top: 1.5px dashed var(--Dieline); }
.FoldLine.AtLeft { left: -0.75px; }
.FoldLine.AtRight { right: -0.75px; }
.FoldLine.AtTop { top: -0.75px; }
.FoldLine.AtBottom { bottom: -0.75px; }

/* print on the faces */
.Print {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  font-family: var(--FontSans);
  line-height: 1.25;
}
.PrintKicker { font-family: var(--FontMono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; }
.PrintName { margin-top: auto; font-family: var(--FontSerif); font-size: 44px; line-height: 0.9; letter-spacing: -0.01em; }
.PrintName em { font-style: italic; }
.PrintRule { margin: 14px 0 10px; border-top: 1.5px solid currentColor; }
.PrintRole { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.PrintClaims { display: flex; gap: 6px; margin-top: 14px; }
.PrintClaims span {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
  font-family: var(--FontMono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
.PrintFoot { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--FontMono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.PrintSide { padding: 14px 10px; }
.PrintSide h4 { font-family: var(--FontSans); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.PrintSide p { font-size: 8px; line-height: 1.35; margin: 0 0 10px; }
.PrintVertical {
  margin: auto 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--FontSerif);
  font-size: 30px;
  line-height: 1;
  align-self: center;
}
.Barcode {
  height: 30px;
  margin-top: auto;
  background: repeating-linear-gradient(90deg,
    var(--KraftInk) 0 1.5px, transparent 1.5px 3px,
    var(--KraftInk) 3px 3.8px, transparent 3.8px 5.5px,
    var(--KraftInk) 5.5px 8px, transparent 8px 9.2px);
}
.BarcodeDigits { font-family: var(--FontMono); font-size: 7px; letter-spacing: 0.18em; margin-top: 3px; }
.PrintTop { align-items: center; justify-content: center; text-align: center; gap: 6px; }
.PrintTop .RegMark { width: 30px; height: 30px; }

.CartonCaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--FontMono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Muted);
  cursor: default;
}
.CartonToggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1.5px dashed var(--Dieline);
  border-radius: 999px;
  background: var(--Card);
  color: var(--DielineText);
  font-family: var(--FontMono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.CartonToggle:hover { background: #fff0f7; }

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

.WorkGrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
}
.WorkCard {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-decoration: none;
}
.WorkCard.IsWide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}
.WorkCard.IsSmall { grid-column: span 6; }
.WorkCard .Sheet { overflow: visible; transition: transform 0.5s var(--Ease), box-shadow 0.5s var(--Ease); }
.WorkCard .Sheet img { aspect-ratio: 4 / 3; object-fit: cover; }
.WorkCard.IsWide .Sheet img { aspect-ratio: auto; object-fit: contain; }
.WorkCard:hover .Sheet { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(22, 23, 27, 0.04), 0 30px 50px -30px rgba(22, 23, 27, 0.45); }
.WorkCard:hover .Sheet::before { transform: translate(-1px, -1px); }
.WorkCard:hover .Sheet::after { transform: translate(1px, 1px); }

.CardMeta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--Muted); }
.CardIndex { color: var(--DielineText); }
.CardTitle {
  font-family: var(--FontSerif);
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.WorkCard.IsSmall .CardTitle { font-size: clamp(28px, 2.8vw, 36px); }
.CardText { color: var(--InkSoft); margin-bottom: 16px; max-width: 520px; }
.CardMore {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-weight: 600; font-size: 15px;
  border-bottom: 1.5px solid var(--Ink);
  padding-bottom: 2px;
}
.CardMore svg { width: 15px; height: 15px; transition: transform 0.3s var(--Ease); }
.WorkCard:hover .CardMore svg { transform: translateX(4px); }

.WorkDivider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(8px, 2vw, 24px) 0 0;
  color: var(--Muted);
}
.WorkDivider::after { content: ""; flex: 1; border-top: 1px dashed var(--Rule); }

.WorkFoot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px dashed var(--Rule);
  color: var(--InkSoft);
}
.WorkFoot p { margin: 0; }

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

.Process {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.ProcessIntro { position: sticky; top: 40px; }
.ProcessIntro .Lead { margin-top: 20px; }
.ProcessKey { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

.Steps { position: relative; counter-reset: Step; }
.Steps::before {
  content: "";
  position: absolute;
  left: 23px; top: 24px; bottom: 24px;
  border-left: 1.5px dashed var(--Dieline);
}
.Step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 34px;
}
.Step:last-child { padding-bottom: 0; }
.StepNum {
  position: relative;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--Paper);
  border: 1.5px solid var(--Ink);
  font-family: var(--FontMono);
  font-size: 13px;
  font-weight: 500;
}
.Step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; margin: 10px 0 6px; }
.Step p { color: var(--InkSoft); margin-bottom: 12px; }

/* ---------- Journey ---------- */

.Journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}
.Stop {
  position: relative;
  padding: 0 22px 0 0;
}
.StopYear {
  display: block;
  font-family: var(--FontSerif);
  font-size: clamp(34px, 3.4vw, 44px);
  line-height: 1;
  margin-bottom: 18px;
}
.StopLine {
  position: relative;
  height: 14px;
  margin: 0 -22px 22px 0;
}
.Stop:last-child .StopLine { margin-right: 0; }
.StopLine::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 6px;
  border-top: 1.5px dashed var(--Rule);
}
.StopLine::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--Paper);
  border: 2px solid var(--Ink);
}
.Stop.IsJob .StopLine::after { background: var(--Dieline); border-color: var(--Dieline); }
.Stop.IsAward .StopLine::after { background: var(--Yellow); }
.Stop.IsNow .StopLine::before { border-top-color: var(--Dieline); }
.Stop h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.Stop p { font-size: 15px; color: var(--InkSoft); margin-bottom: 10px; }
.Stop .TextLink { font-size: 14px; }
.JourneyKey { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; font-family: var(--FontMono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--Muted); }
.JourneyKey span { display: inline-flex; align-items: center; gap: 8px; }
.JourneyKey i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--Ink); background: var(--Paper); }
.JourneyKey i.IsJob { background: var(--Dieline); border-color: var(--Dieline); }
.JourneyKey i.IsAward { background: var(--Yellow); }

/* ---------- Dark band: earlier work ---------- */

.DarkBand {
  position: relative;
  margin-top: var(--SectionGap);
  padding: var(--SectionGap) 0;
  background: var(--Ink);
  color: var(--OnInk);
  overflow: hidden;
  isolation: isolate;
}
.DarkBand::before {
  /* a faint nod to the old starfield site */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 24px 38px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 132px 92px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 210px 170px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 76px 214px, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.1px 1.1px at 268px 26px, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(120% 70% at 85% 0%, rgba(80, 110, 255, 0.16), transparent 60%);
  background-size: 300px 260px, 300px 260px, 300px 260px, 300px 260px, 300px 260px, 100% 100%;
  opacity: 0.55;
  z-index: -1;
}
.DarkBand + .Section { padding-top: var(--SectionGap); }
.DarkBand .Eyebrow { color: var(--OnInkSoft); }
.DarkBand .Lead { color: var(--OnInkSoft); }
.DarkBand .Title em { color: #ff5cb0; }

.ArchiveGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ArchiveTile { text-decoration: none; display: block; }
.ArchiveTile figure { margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: #23242a; }
.ArchiveTile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--Ease), opacity 0.4s; opacity: 0.88; }
.ArchiveTile:hover img { transform: scale(1.04); opacity: 1; }
.ArchiveTile h3 { margin-top: 16px; font-size: 19px; font-weight: 600; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ArchiveTile h3 span { font-family: var(--FontMono); font-size: 12px; font-weight: 400; color: var(--OnInkSoft); letter-spacing: 0.06em; }
.ArchiveTile p { margin: 4px 0 0; font-size: 15px; color: var(--OnInkSoft); }

/* ---------- Ingredients ---------- */

.Ingredients {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.LabelPanel {
  position: relative;
  padding: 28px 28px 24px;
  background: var(--Card);
  border: 2px solid var(--Ink);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
}
.LabelPanel h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 8px solid var(--Ink);
}
.LabelPanel p { margin: 0 0 14px; }
.LabelPanel b { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; }
.LabelPanel hr { border: 0; border-top: 1px solid var(--Ink); margin: 16px 0; }
.LabelFoot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.LabelFoot .Barcode { width: 120px; margin: 0; background: repeating-linear-gradient(90deg, var(--Ink) 0 1.5px, transparent 1.5px 3px, var(--Ink) 3px 3.8px, transparent 3.8px 5.5px, var(--Ink) 5.5px 8px, transparent 8px 9.2px); }
.LabelFoot .Mono { color: var(--Muted); }

.SkillColumns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.SkillColumns h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-family: var(--FontMono); letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1.5px solid var(--Ink); margin-bottom: 4px; }
.SkillColumns h3 i { width: 12px; height: 12px; border-radius: 2px; }
.SkillColumns li { padding: 10px 0; border-bottom: 1px dashed var(--Rule); font-size: 15px; }

/* ---------- About block (home) ---------- */

.AboutBlock {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.Portrait { max-width: 420px; }
.Portrait img { aspect-ratio: 1; object-fit: cover; }
.Portrait figcaption { margin-top: 12px; color: var(--Muted); }
.AboutBlock .Lead { max-width: none; }
.OffClock { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.OffClock li { padding: 16px; border: 1px solid var(--Rule); border-radius: 10px; background: var(--Card); font-size: 15px; line-height: 1.45; }
.OffClock li span { display: block; margin-bottom: 6px; font-family: var(--FontMono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--DielineText); }

/* ---------- Footer / contact (shared, id="Contact") ---------- */

.SiteFooter {
  margin-top: var(--SectionGap);
  padding: clamp(80px, 10vw, 128px) 0 110px;
  background: var(--Ink);
  color: var(--OnInk);
}
.DarkBand ~ .SiteFooter { margin-top: 0; }
.SiteFooter .Eyebrow { color: var(--OnInkSoft); }
.FooterTitle {
  font-family: var(--FontSerif);
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.SiteFooter .FooterTitle em { color: #ff5cb0; }
.FooterLead { margin: 22px 0 36px; color: var(--OnInkSoft); font-size: 18px; max-width: 560px; }
.FooterMail {
  display: inline-block;
  font-family: var(--FontSerif);
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 2px dashed var(--Dieline);
  overflow-wrap: anywhere;
}
.FooterMail:hover { color: #ff5cb0; }
.FooterLinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.FooterLinks a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(245, 243, 238, 0.22);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}
.FooterLinks a:hover { background: rgba(245, 243, 238, 0.08); border-color: rgba(245, 243, 238, 0.5); }
.FooterBase {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin-top: clamp(64px, 8vw, 104px);
  padding-top: 24px;
  border-top: 1px solid rgba(245, 243, 238, 0.14);
  font-size: 14px;
  color: var(--OnInkSoft);
}
.FooterBase p { margin: 0; }
.SiteFooter .ColourBar i:nth-child(4) { background: var(--Ink); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.45); }
.FooterBase a { margin-left: auto; text-decoration: none; }
.FooterBase a:hover { color: var(--OnInk); }

/* ---------- Case study pages ---------- */

.CaseHead { padding-top: clamp(24px, 5vw, 64px); }
.BackTo {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-family: var(--FontMono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--InkSoft); text-decoration: none;
}
.BackTo:hover { color: var(--DielineText); }
.BackTo svg { width: 14px; height: 14px; }
.CaseHead .Display { font-size: clamp(48px, 7.4vw, 100px); max-width: 1000px; }
.CaseHead .Lead { margin-top: 24px; max-width: 700px; }
.CaseTop {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.CaseHero { margin-top: clamp(40px, 6vw, 72px); }

.CaseBody { padding-top: clamp(64px, 9vw, 120px); }
.CaseSection {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--Rule);
}
.CaseSection > * { min-width: 0; }
.CaseSection > h2 {
  font-family: var(--FontMono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--Muted);
  padding-top: 8px;
}
.CaseSection > h2 span { display: block; color: var(--DielineText); margin-bottom: 6px; }
.Prose { font-size: 18px; line-height: 1.65; color: var(--InkSoft); max-width: 680px; }
.Prose p:last-child { margin-bottom: 0; }
.Prose strong { color: var(--Ink); font-weight: 600; }
.Prose ul { margin: 0 0 1em; }
.Prose li { position: relative; padding: 6px 0 6px 26px; }
.Prose li::before { content: ""; position: absolute; left: 0; top: 18px; width: 14px; border-top: 1.5px dashed var(--Dieline); }

.Callout {
  margin: 0;
  padding: 26px 28px;
  border-left: 3px solid var(--Dieline);
  background: var(--Card);
  border-radius: 0 10px 10px 0;
  font-family: var(--FontSerif);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--Ink);
}

.Figure { margin: 0; }
.Figure figcaption {
  display: flex; gap: 12px;
  margin-top: 14px;
  font-family: var(--FontMono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--Muted);
  line-height: 1.5;
}
.Figure figcaption b { color: var(--DielineText); font-weight: 500; white-space: nowrap; }

.Gallery { display: grid; gap: clamp(24px, 3vw, 36px) clamp(16px, 2.4vw, 28px); padding: clamp(24px, 4vw, 48px) 0; }
.Gallery.IsTwo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.Gallery.IsThree { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.Gallery.IsFour { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.Gallery .IsSpan2 { grid-column: span 2; }
.Gallery .IsFull { grid-column: 1 / -1; }

/* images that open in the viewer */
[data-full] { cursor: zoom-in; }

.Outcome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.Outcome li { padding: 22px; background: var(--Card); border: 1px solid var(--Rule); border-radius: 12px; }
.Outcome strong { display: block; font-family: var(--FontSerif); font-size: 40px; font-weight: 400; line-height: 1; margin-bottom: 10px; }
.Outcome span { color: var(--InkSoft); font-size: 15px; line-height: 1.45; display: block; }

.NextCase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 8vw, 96px);
}
.NextCase a {
  display: block;
  padding: 26px 28px;
  border: 1px solid var(--Rule);
  border-radius: 14px;
  background: var(--Card);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.3s var(--Ease);
}
.NextCase a:hover { border-color: var(--Ink); transform: translateY(-3px); }
.NextCase a:last-child { text-align: right; }
.NextCase .Mono { color: var(--Muted); display: block; margin-bottom: 8px; }
.NextCase strong { font-family: var(--FontSerif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.05; }

/* Earlier-work pages: same template, with a tag */
.ArchiveTag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--Ink); color: var(--OnInk);
  font-family: var(--FontMono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Video player (earlier-work pages) ---------- */

.VideoPlayer {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}
.VideoPlayer img,
.VideoPlayer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.VideoPlayer video { object-fit: contain; background: #000; z-index: 3; }
.VideoShade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65)); transition: background 0.3s; z-index: 1; }
.VideoPlayer:hover .VideoShade { background: linear-gradient(180deg, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.75)); }
.VideoTitle { position: absolute; left: clamp(16px, 3vw, 28px); bottom: clamp(14px, 3vw, 26px); margin: 0; z-index: 2; color: #fff; font-family: var(--FontSerif); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.05; }
.VideoPlay {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: rgba(245, 243, 238, 0.92);
  color: var(--Ink);
  font-weight: 600; font-size: 15px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--Ease);
}
.VideoPlay svg { width: 26px; height: 26px; }
.VideoPlayer:hover .VideoPlay { transform: translate(-50%, -50%) scale(1.05); }
.VideoPlayer.IsPlaying { cursor: default; }
.VideoPlayer.IsPlaying .VideoPlay,
.VideoPlayer.IsPlaying .VideoTitle,
.VideoPlayer.IsPlaying .VideoShade { display: none; }

.DocCard {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--Rule);
  border-radius: 12px;
  background: var(--Card);
  text-decoration: none;
  max-width: 460px;
  transition: border-color 0.2s;
}
.DocCard:hover { border-color: var(--Ink); }
.DocCard svg { width: 34px; height: 44px; flex: none; color: var(--DielineText); }
.DocCard strong { display: block; font-weight: 600; }
.DocCard span { font-size: 14px; color: var(--Muted); }

/* ---------- Image viewer (lightbox) ---------- */

.Viewer {
  position: fixed; inset: 0; z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(16, 17, 20, 0.94);
  color: var(--OnInk);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
/* visible at once when opening (so the close button can take focus), faded out when closing */
.Viewer.IsOpen { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.ViewerBar { display: flex; align-items: center; gap: 16px; padding: 14px var(--Gutter); font-family: var(--FontMono); font-size: 12px; letter-spacing: 0.06em; color: var(--OnInkSoft); }
.ViewerBar a { margin-left: auto; color: var(--OnInk); }
.ViewerStage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--Gutter); }
.ViewerStage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; background: #fff; }
.ViewerCaption { padding: 14px var(--Gutter) 22px; text-align: center; font-size: 15px; color: var(--OnInkSoft); min-height: 52px; }
.ViewerButton {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(245, 243, 238, 0.25);
  border-radius: 50%;
  background: rgba(22, 23, 27, 0.6);
  color: var(--OnInk);
  cursor: pointer;
}
.ViewerButton:hover { background: rgba(245, 243, 238, 0.14); }
.ViewerButton svg { width: 18px; height: 18px; }
.ViewerPrev, .ViewerNext { position: absolute; top: 50%; transform: translateY(-50%); }
.ViewerPrev { left: var(--Gutter); }
.ViewerNext { right: var(--Gutter); }
body.ViewerOpen { overflow: hidden; }

/* ---------- Resume page ---------- */

.ResumeSheet {
  max-width: 900px;
  margin: clamp(24px, 4vw, 48px) auto 0;
  padding: clamp(28px, 5vw, 64px);
  background: var(--Card);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(22, 23, 27, 0.04), 0 24px 60px -36px rgba(22, 23, 27, 0.4);
}

.ResumeBar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 900px;
  margin: clamp(16px, 3vw, 32px) auto 0;
}
.ResumeBar p { margin: 0; color: var(--Muted); }
.ResumeHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--Ink);
}
.ResumeHead h1 { font-family: var(--FontSerif); font-size: clamp(42px, 6vw, 64px); line-height: 1; letter-spacing: -0.015em; }
.ResumeHead .ResumeRoleTitle { margin: 8px 0 16px; font-size: 19px; font-weight: 600; color: var(--DielineText); }
.ResumeHead .ResumeSummary { margin: 0; color: var(--InkSoft); max-width: 600px; }
.ResumeHead img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.ResumeContact {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--Rule);
  font-family: var(--FontMono); font-size: 13px; color: var(--InkSoft);
}
.ResumeContact a { color: var(--InkSoft); text-decoration: none; border-bottom: 1px dashed var(--Rule); }
.ResumeSection { padding-top: 26px; }
.ResumeSection > h2 {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-family: var(--FontMono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--Muted);
}
.ResumeSection > h2::after { content: ""; flex: 1; border-top: 1.5px dashed var(--Dieline); }
.ResumeItem { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 10px 0 14px; }
.ResumeItem + .ResumeItem { border-top: 1px solid var(--Rule); padding-top: 16px; }
.ResumeDates { font-family: var(--FontMono); font-size: 12px; letter-spacing: 0.04em; color: var(--Muted); line-height: 1.7; text-transform: uppercase; }
.ResumeItem h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.ResumeItem .ResumeWhere { margin: 2px 0 8px; color: var(--Muted); font-size: 15px; }
.ResumeItem h4 { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ResumeItem ul li { position: relative; padding: 3px 0 3px 20px; font-size: 15px; line-height: 1.5; color: var(--InkSoft); }
.ResumeItem ul li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; border-top: 1.5px solid var(--Dieline); }
.ResumeItem p { margin: 0; font-size: 15px; color: var(--InkSoft); }
.ResumeColumns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ResumeSkills { display: flex; flex-wrap: wrap; gap: 6px; }
.ResumeSkills li { padding: 4px 11px; border: 1px solid var(--Rule); border-radius: 999px; font-size: 14px; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */

.Js .Reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--Ease), transform 0.8s var(--Ease); }
.Js .Reveal.IsIn { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (min-width: 1440px) {
  .CartonStage { --CartonScale: 1.16; --FlatScale: 0.66; height: 600px; }
}

@media (max-width: 1020px) {
  .TopBarRole { display: none; }
  .Hero { grid-template-columns: 1fr; min-height: 0; }
  .CartonStage { --CartonScale: 0.9; height: 480px; }
  .Process,
  .Ingredients,
  .AboutBlock,
  .CaseTop { grid-template-columns: 1fr; }
  .ProcessIntro { position: static; }
  .WorkCard.IsWide { grid-template-columns: 1fr; }
  .CaseSection { grid-template-columns: 1fr; gap: 14px; }
  .Gallery.IsFour { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ArchiveGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the timeline scrolls sideways once seven columns no longer fit */
  .Journey {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 34%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--Rule) transparent;
  }
  .Stop { scroll-snap-align: start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .TopBarMail { display: none; }
  .PillNav .HideOnPhone { display: none; }
  .PillNav a { padding: 10px 13px; }
  .CartonStage { --CartonScale: 0.74; --FlatScale: 0.62; height: 420px; }
  .WorkCard,
  .WorkCard.IsSmall { grid-column: 1 / -1; }
  .Gallery.IsTwo,
  .Gallery.IsThree { grid-template-columns: 1fr; }
  .Gallery .IsSpan2 { grid-column: auto; }
  .ArchiveGrid,
  .SkillColumns,
  .OffClock,
  .Outcome,
  .NextCase { grid-template-columns: 1fr; }
  .NextCase a:last-child { text-align: left; }
  .FactStrip li { flex-basis: 50%; }
  .FactStrip li + li { padding-left: 0; border-left: 0; }
  .FactStrip li:nth-child(even) { padding-left: 16px; border-left: 1px dashed var(--Rule); }
  .FactStrip li:nth-child(n + 3) { border-top: 1px dashed var(--Rule); }
  .Journey { grid-auto-columns: 78%; }
  .SpecList dt { padding-right: 16px; }
  .FooterBase a { margin-left: 0; }
}

@media (max-width: 380px) {
  .PillNav a { padding: 9px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .Js .Reveal { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .ResumeHead { grid-template-columns: 1fr; }
  .ResumeHead img { grid-row: 1; width: 84px; height: 84px; }
  .ResumeItem { grid-template-columns: 1fr; gap: 4px; }
  .ResumeColumns { grid-template-columns: 1fr; }
}

@page { size: A4; margin: 10mm 13mm; }

@media print {
  .PillNav, .TopBar, .SiteFooter, .SkipLink, .NoPrint, .Viewer { display: none !important; }
  body { background: #fff; font-size: 9.5pt; }
  .Js .Reveal { opacity: 1; transform: none; }
  .ResumeSheet { box-shadow: none; margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .ResumeHead { padding-bottom: 10px; gap: 16px; }
  .ResumeHead h1 { font-size: 26pt; }
  .ResumeHead .ResumeRoleTitle { font-size: 11.5pt; margin: 3px 0 6px; }
  .ResumeHead .ResumeSummary { font-size: 9.5pt; line-height: 1.4; }
  .ResumeHead img { width: 68px; height: 68px; }
  .ResumeContact { padding: 6px 0; font-size: 8pt; }
  .ResumeSection { padding-top: 9px; }
  .ResumeSection > h2 { margin-bottom: 4px; font-size: 7.5pt; }
  .ResumeItem { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 3px 0 6px; break-inside: avoid; }
  .ResumeItem + .ResumeItem { padding-top: 6px; }
  .ResumeDates { font-size: 7.5pt; line-height: 1.5; }
  .ResumeItem h3 { font-size: 10pt; }
  .ResumeItem .ResumeWhere { font-size: 9pt; margin: 1px 0 3px; }
  .ResumeItem h4 { font-size: 7pt; margin-top: 4px; }
  .ResumeItem ul li { font-size: 9pt; padding: 0 0 1px 14px; line-height: 1.35; }
  .ResumeItem ul li::before { top: 7px; width: 7px; }
  .ResumeItem p { font-size: 9pt; }
  .ResumeColumns { break-inside: avoid; gap: 0 24px; }
  .ResumeSkills { gap: 4px; }
  .ResumeSkills li { font-size: 8pt; padding: 1px 7px; }
  a { text-decoration: none; }
}
