/* Draft D · Fan (v2: big and bold)
   Layout: no grid. A huge wordmark fills the width; each project is a narrow text column beside a big fan of
   rounded images, varied per project. Section headings are pills with an arrow circle that follows the cursor.
   Type: Epilogue only. Hierarchy:
     900  wordmark
     700  hero, section headings, project names, nav, buttons
     600  small labels (index numbers, counts)
     500  lead copy (about, contact)
     400  body copy                                                           */
:root {
  --ink: #0A0A0A;
  --muted: #555555;
  --paper: #FFFFFF;
  --brand: #6D4AFF;          /* Hoffman Design purple: cursor, hovers, focus */
  --hush: #F2F2F2;
  --font: 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gl: max(16px, env(safe-area-inset-left, 0px), 2.4vw);
  --gr: max(16px, env(safe-area-inset-right, 0px), 2.4vw);
  --r: 22px;

  /* type scale (fluid, Mills-sized) */
  --t-wordmark: 21vw;
  --t-hero: clamp(min(60px, 13.8vw), 8.74vw, 193px);   /* +15%; on phones a touch smaller so "connect with." stays on one line */
  --t-h2: clamp(40px, 5vw, 104px);
  --t-h3: clamp(28px, 2.8vw, 56px);
  --t-lead: clamp(30px, 3.6vw, 76px);
  --t-body: clamp(19px, 1.65vw, 32px);
  --t-nav: clamp(18px, 1.75vw, 34px);
  --t-label: clamp(14px, 1.05vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 400; font-size: var(--t-body); line-height: 1.3; overflow-x: clip; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, .fan-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
::selection { background: var(--brand); color: var(--paper); }
section[id] { scroll-margin-top: clamp(96px, 9vw, 160px); }
h1, h2, h3 { text-wrap: balance; }
.label { margin: 0; font-size: var(--t-label); font-weight: 600; letter-spacing: 0; }

/* ---------- Optically centred pill text ----------
   Centre the capitals, not the line box, so equal padding looks equal.
   Epilogue's capitals sit .095em above the middle of a 1em line box (measured from the font's
   ascent 0.79, descent 0.24, cap height 0.74), so the text is nudged down by exactly that.
   Same result in every browser, no reliance on text-box support. */
.pt { display: inline-block; line-height: 1; position: relative; top: .095em; }

/* ---------- Cursor: 30px brand circle, follows the pointer 1:1 ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 1000;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
  will-change: transform;
}
.cursor::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--brand);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.cursor.is-link::after { transform: scale(1.6); }
.cursor.is-down::after { transform: scale(.7); }
html.has-dot .cursor { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  html.has-dot, html.has-dot * { cursor: none !important; }
}

/* ---------- Header: big logo, big nav words ---------- */
@property --hoffman-logo-height { syntax: '<length>'; inherits: true; initial-value: 44px; }
/* the fixed header's room: inside the hero on the home page (so the torus can leave through the top
   of the screen without being cut off), and at the top of the project view */
:root { --header-room: var(--header-h, calc(clamp(64px, 8.8vw, 184px) + clamp(28px, 2.8vw, 56px))); }
#project-view { padding-top: var(--header-room) !important; }
.site-header {
  position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(16px, 1.6vw, 32px) var(--gr) clamp(12px, 1.2vw, 24px) var(--gl);
  background: transparent;
  transition: padding .45s cubic-bezier(.2, .8, .2, 1);
}
/* scrolled: everything shrinks and the logo folds back to the circle H on a white disc */
.site-header.is-scrolled { padding-top: clamp(10px, 1vw, 18px); padding-bottom: clamp(8px, .8vw, 14px); }
.brand {
  position: relative;
  --hoffman-logo-height: clamp(64px, 8.8vw, 184px);
  transition: --hoffman-logo-height .45s cubic-bezier(.2, .8, .2, 1);
}
.brand-disc {
  position: absolute; z-index: 0; left: 0; top: 0;
  /* the inside of the ring: 63.44 of the logo's 77.04 units, centred in the circle */
  width: calc(var(--hoffman-logo-height) * .8235); height: calc(var(--hoffman-logo-height) * .8235);
  margin: calc(var(--hoffman-logo-height) * .08825);
  border-radius: 50%; background: var(--paper);
  opacity: 0; transition: opacity .3s ease;
}
.site-header.is-scrolled .brand-disc { opacity: 1; }
.brand hoffman-logo { position: relative; z-index: 1; }
.brand { display: inline-block; line-height: 0; text-decoration: none; color: var(--ink); }
hoffman-logo { --hoffman-logo-color: var(--ink); color: var(--ink); }
hoffman-logo img { height: var(--hoffman-logo-height); width: auto; }
hoffman-logo:defined img { display: none; } /* the fallback image is only for when the script can't run */
.site-nav { display: flex; gap: clamp(20px, 2.6vw, 56px); }
.site-nav a { font-size: clamp(30px, 3.5vw, 68px); font-weight: 600; letter-spacing: -.035em; line-height: 1; text-decoration: none; transition: font-size .45s cubic-bezier(.2, .8, .2, 1), color .2s ease; }
.site-header.is-scrolled .brand { --hoffman-logo-height: clamp(52px, 5vw, 96px); }
.site-header.is-scrolled .site-nav a { font-size: clamp(22px, 2.3vw, 44px); }
.site-nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, 54vw, 1180px);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-room) + clamp(32px, 4vw, 96px)) var(--gr) clamp(32px, 4vw, 96px) var(--gl);
}
.hero > :not(.hero-gl) { position: relative; z-index: 0; }
.hero-gl { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }

.hero-intro {
  margin: 0;
  font-size: var(--t-hero); font-weight: 700; line-height: .92; letter-spacing: -.045em;
}
.hero-sub { max-width: 30ch; margin: clamp(24px, 3vw, 56px) 0 0; font-size: var(--t-body); font-weight: 400; line-height: 1.25; }
.wordmark-box { margin-top: clamp(16px, 2.4vw, 48px); overflow: hidden; }
.wordmark {
  display: inline-block; white-space: nowrap;
  font-size: var(--t-wordmark); font-weight: 900; line-height: .8; letter-spacing: -.065em;
  padding-bottom: .12em;
}
.wordmark sup { font-size: .2em; font-weight: 700; letter-spacing: 0; vertical-align: top; position: relative; top: .3em; margin-left: .04em; }

/* ---------- Section heading: pill + arrow circle ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sh {
  --pad: clamp(6px, .7vw, 12px);
  display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 88px);
  margin: 0; padding: var(--pad) var(--pad) var(--pad) .55em;
  border: 4px solid var(--ink); border-radius: 999px;
  font-size: var(--t-h2); font-weight: 700; letter-spacing: -.045em;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
/* hover: purple pill, no visible stroke, white text; the arrow circle stays as it is */
.sh:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.sh-dot {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 1.45em; height: 1.45em; border-radius: 50%;
  background: var(--ink); color: var(--paper);
}
.sh-dot svg { width: 56%; height: 56%; transform: rotate(90deg); }
.section-note { margin: 0; font-size: var(--t-label); font-weight: 600; }

/* ---------- Work ---------- */
.work { padding: clamp(80px, 10vw, 200px) var(--gr) clamp(48px, 6vw, 120px) var(--gl); }
.work-list { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 160px); margin-top: clamp(56px, 7vw, 140px); }
.project {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 3vw, 64px); align-items: center;
}
.project.is-flip { grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); }
.project.is-flip .project-text { order: 2; }
.project-text { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 1.4vw, 28px); min-width: 0; }
.project-index { font-size: var(--t-label); font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.project-name { margin: 0; font-size: var(--t-h3); font-weight: 700; letter-spacing: -.035em; }
.project-name a {
  display: inline-block; padding: .42em .72em;
  border: 4px solid var(--ink); border-radius: 999px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.project-name a:hover { background: var(--ink); color: var(--paper); }
.project-summary { margin: 0; max-width: 24ch; font-size: var(--t-body); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.project-link { font-size: var(--t-body); font-weight: 700; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.project-link:hover { color: var(--brand); }
.project-fan { transform: translate(var(--shift, 0), var(--drop, 0)) rotate(var(--lean, 0)); }

/* ---------- Fan gallery ---------- */
.fan { position: relative; min-width: 0; touch-action: pan-y; }   /* sideways finger moves go to the fan, up and down still scrolls */
.fan-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.fan-stage { position: absolute; left: 50%; top: calc(var(--fan-h) * .1 + 64px); width: 0; height: 0; }
.fan-card {
  position: absolute; left: calc(var(--fan-w) / -2); top: 0;
  width: var(--fan-w); height: var(--fan-h);
  border-radius: var(--fan-radius, 22px); overflow: hidden;
  background: var(--hush);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -20px rgba(0, 0, 0, .35);
  will-change: transform; transition: box-shadow .3s ease;
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.fan-card.is-hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 40px 70px -24px rgba(0, 0, 0, .45); }

/* ---------- About: big quote laid over the portrait fan ---------- */
.about { padding: clamp(56px, 8vw, 160px) var(--gr) clamp(56px, 8vw, 160px) var(--gl); }
.about-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  margin-top: clamp(48px, 6vw, 120px);
}
.about blockquote {
  grid-row: 1; grid-column: 1 / span 8; position: relative; z-index: 2; pointer-events: none;
  margin: 0; font-size: clamp(42px, 5.76vw, 122px); font-weight: 500; line-height: .98; letter-spacing: -.045em;
}
/* one photo; the quote only just crosses its left edge */
.about-photo { grid-row: 1; grid-column: 8 / -1; position: relative; z-index: 1; margin: 0; }
.about-photo img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px;
  transform: rotate(3deg); transition: transform .5s cubic-bezier(.3, 1.6, .4, 1);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4);
}
.about-photo:hover img { transform: rotate(0) translateY(-14px); }
.hl { font-style: normal; font-weight: 700; }

/* ---------- Contact ---------- */
.contact { padding: clamp(56px, 8vw, 160px) var(--gr) clamp(80px, 10vw, 180px) var(--gl); }
.contact-lede { max-width: 25ch; margin: clamp(40px, 5vw, 96px) 0 clamp(32px, 4vw, 64px); font-size: var(--t-lead); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: clamp(10px, 1vw, 16px); }
.btn {
  display: inline-flex; align-items: center; padding: .8em 1.3em; border-radius: 999px;
  border: 4px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: clamp(18px, 1.6vw, 30px); font-weight: 700; letter-spacing: -.02em; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }

/* ---------- Project view ---------- */
#project-view { padding: 0 var(--gr) 0 var(--gl); }
.project-back { padding: clamp(28px, 3vw, 56px) 0 0; }
.back-link { font-size: var(--t-nav); font-weight: 600; letter-spacing: -.03em; text-decoration: none; }
.back-link:hover { color: var(--brand); }
.project-head { display: flex; flex-direction: column; gap: 16px; padding: clamp(32px, 5vw, 96px) 0 clamp(24px, 3vw, 56px); }
.project-title { margin: 0; font-size: clamp(56px, 11vw, 220px); font-weight: 800; line-height: .88; letter-spacing: -.055em; }
.project-hero { margin: 0; }
.project-hero img { width: 100%; max-height: 86vh; object-fit: cover; border-radius: 28px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 96px); padding: clamp(48px, 6vw, 120px) 0; }
.project-copy p { margin: 0 0 .8em; max-width: 34ch; font-size: clamp(22px, 2vw, 38px); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; }
.project-copy p:first-child { font-weight: 500; }
.project-meta .label { margin-bottom: 18px; }
.deliverables { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.deliverables li { padding: .6em 1em; border: 4px solid var(--ink); border-radius: 999px; font-size: clamp(16px, 1.2vw, 22px); font-weight: 500; }
.project-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px) clamp(12px, 2vw, 32px); }
.project-gallery figure { margin: 0; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); aspect-ratio: 4 / 3; }
.project-gallery figure:nth-child(4n+1) { grid-column: 1 / span 7; }
.project-gallery figure:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: clamp(40px, 8vw, 160px); }
.project-gallery figure:nth-child(4n+2) img { aspect-ratio: 4 / 5; }
.project-gallery figure:nth-child(4n+3) { grid-column: 1 / span 5; }
.project-gallery figure:nth-child(4n+4) { grid-column: 6 / span 7; margin-top: clamp(24px, 5vw, 96px); }
.project-pager { display: flex; justify-content: space-between; gap: 16px; padding: clamp(64px, 8vw, 160px) 0; }
.project-pager a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.project-pager a.next { align-items: flex-end; text-align: right; }
.project-pager .dir { font-size: var(--t-label); font-weight: 600; }
.project-pager .name { font-size: var(--t-h2); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.project-pager a:hover .name { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .project, .project-body { grid-template-columns: 1fr; }
  .about blockquote { grid-column: 1 / -1; }
  .about-photo { grid-row: 2; grid-column: 3 / -1; margin-top: -10vw; }
  .project-fan { transform: rotate(var(--lean, 0)); }
  .project-summary { max-width: 32ch; }
  .project-gallery figure:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .project-gallery figure:nth-child(n) img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { font-size: 28px; }
  .hero { min-height: 160vw;   /* tall enough that the torus never clips when it turns face-on */ padding-top: calc(var(--header-room) + 56px); padding-bottom: 120px; }
  .sh, .project-name a, .btn, .deliverables li { border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Footer labels: Epilogue Semibold, title case ---------- */
#hoffman-footer .hf-label,
#hoffman-footer .hf-copy { font-family: var(--font); font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---------- Scroll prompt: bottom centre of the screen, above the torus ---------- */
.scroll-prompt {
  position: fixed; z-index: 40; left: 50%;
  bottom: calc(clamp(14px, 2vw, 32px) + env(safe-area-inset-bottom, 0px));
  width: clamp(30px, 2.4vw, 44px); padding: 0; border: 0; background: none;
  transform: translateX(-50%);
  transition: opacity .4s ease, visibility .4s;
}
.scroll-prompt svg { display: block; width: 100%; height: auto; overflow: visible; }
.scroll-prompt .sp-pill { fill: var(--ink); }
.scroll-prompt .sp-dot { fill: var(--paper); }
.scroll-prompt .sp-word { fill: var(--paper); }
.scroll-prompt.is-gone { opacity: 0; visibility: hidden; }
.scroll-prompt:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: 999px; }

/* footer links and logo turn brand purple on hover */
#hoffman-footer .hf-nav a, #hoffman-footer .hf-follow a { transition: color .2s ease; }
#hoffman-footer .hf-nav a:hover, #hoffman-footer .hf-follow a:hover { color: var(--brand); }
#hoffman-footer .hf-logo svg { transition: fill .2s ease; }
#hoffman-footer .hf-logo:hover svg { fill: var(--brand); }
/* no capitals-only text anywhere */
#hoffman-footer .hf-label, #hoffman-footer .hf-copy { text-transform: none; }

/* ================= Contact: quick message + design brief ================= */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(16px, 2vw, 40px); align-items: stretch;
}
.contact-grid.is-brief { grid-template-columns: minmax(0, 1fr); }
.contact-grid.is-brief .cc-msg { display: none; }
.cc {
  position: relative; min-width: 0;
  padding: clamp(28px, 3.4vw, 64px);
  border-radius: clamp(28px, 3vw, 48px);
  background: var(--brand); color: var(--paper);
}
.cc-title { margin: 0 0 .55em; font-size: clamp(36px, 3.6vw, 72px); font-weight: 800; line-height: .95; letter-spacing: -.05em; }
.cc-title--big { max-width: 12ch; margin: 0; }

/* shared black pill button with a white arrow disc */
.go {
  display: inline-flex; align-items: center; gap: .7em;
  padding: .32em .32em .32em 1.05em; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: 700 clamp(20px, 1.7vw, 32px)/1 var(--font); letter-spacing: -.025em; cursor: pointer;
}
.go-dot { display: grid; place-items: center; width: 1.55em; height: 1.55em; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.go-dot svg { width: 62%; height: 62%; }
.go:hover .go-dot { transform: translateX(4px); }
.go:disabled { opacity: .6; cursor: progress; }
.go:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

/* quick message */
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 16px; }
.cc-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: clamp(16px, 1.2vw, 22px); }
.cc-field input, .cc-field textarea {
  width: 100%; border: 0; border-radius: 18px; padding: .75em 1em;
  background: var(--paper); color: var(--ink);
  font: 400 clamp(17px, 1.3vw, 24px)/1.3 var(--font);
}
.cc-field textarea { min-height: 7.5em; resize: vertical; }
.cc-field input:focus-visible, .cc-field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cc-actions { display: flex; justify-content: flex-end; margin-top: 6px; }
.cc-error, .bq-error {
  display: inline-block; margin: 0 0 14px; padding: .5em .9em; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: clamp(15px, 1.1vw, 19px);
}
.cc-error[hidden], .bq-error[hidden] { display: none; }
.cc-done { outline: none; }
.cc-done .cc-actions { justify-content: flex-start; margin-top: clamp(20px, 2vw, 32px); }
.cc-done-text { margin: 0; max-width: 28ch; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.25; }
.preview-note { margin: 18px 0 0; font-size: 15px; line-height: 1.4; opacity: .85; }

/* brief: progress ring around the circle H, top right */
.brief-ring { position: absolute; top: clamp(16px, 1.6vw, 28px); right: clamp(16px, 1.6vw, 28px); width: clamp(48px, 4.2vw, 76px); }
.brief-ring svg { display: block; width: 100%; height: auto; }
.ring-track { fill: none; stroke: var(--paper); stroke-width: 9; }
.ring-arc { fill: none; stroke: var(--ink); stroke-width: 9; transition: stroke-dashoffset .7s cubic-bezier(.3, 1.3, .5, 1); }
.ring-h { fill: none; stroke: var(--paper); stroke-width: 10; stroke-linecap: square; }

/* brief intro card */
.brief-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 2vw, 32px) 24px; align-items: center; padding-top: clamp(24px, 3vw, 48px); }
.brief-intro[hidden] { display: none; }
.brief-smile { grid-row: 1 / span 2; grid-column: 2; width: clamp(90px, 9vw, 170px); height: auto; align-self: center; }
.brief-text { grid-column: 1; margin: 0; max-width: 44ch; font-size: clamp(16px, 1.25vw, 22px); line-height: 1.35; }
.brief-note { grid-column: 1 / -1; margin: 0; padding: 1em 1.3em; max-width: 62ch; border-radius: 24px; background: var(--ink); color: var(--paper); font-size: clamp(15px, 1.15vw, 20px); line-height: 1.35; }
.brief-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.brief-chips, .bq-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brief-chips li, .bq-chips li {
  padding: .6em 1em; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: clamp(15px, 1.15vw, 20px); line-height: 1;
}

/* questionnaire pages: black type on purple, like the original form */
.brief-flow { color: var(--ink); }
.bq-page { display: flex; flex-direction: column; min-height: clamp(520px, 62vh, 780px); }
.enter-next { animation: bq-in-next .55s cubic-bezier(.2, 1.3, .4, 1); }
.enter-back { animation: bq-in-back .55s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes bq-in-next { from { opacity: 0; transform: translateX(40px); } }
@keyframes bq-in-back { from { opacity: 0; transform: translateX(-40px); } }
.bq-tag {
  align-self: flex-start; margin: 0; padding: .6em 1.1em; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: clamp(14px, 1.05vw, 19px); line-height: 1;
}
.bq-q {
  margin: .4em 0 .3em; padding-right: clamp(56px, 5vw, 96px); max-width: 22ch;
  font-size: clamp(42px, 5.4vw, 112px); font-weight: 800; line-height: .95; letter-spacing: -.05em; outline: none;
}
.bq-help { margin: 0 0 clamp(24px, 2.6vw, 48px); max-width: 46ch; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.3; }
.bq-input {
  width: 100%; padding: .8em 1.1em;
  border: 3px solid var(--paper); border-radius: clamp(24px, 2.4vw, 40px); box-shadow: 0 0 0 3px var(--ink);
  background: var(--ink); color: var(--paper);
  font: 700 clamp(22px, 2vw, 38px)/1.25 var(--font); letter-spacing: -.02em;
}
.bq-input::placeholder { color: var(--paper); opacity: .9; }
.bq-area { min-height: 6.5em; resize: vertical; font-weight: 400; }
.bq-input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 0 0 7px var(--paper); }

/* option cards */
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px); }
.opt {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.1em;
  min-height: clamp(120px, 10.5vw, 196px); padding: clamp(18px, 1.8vw, 32px);
  border: 4px solid var(--ink); border-radius: clamp(22px, 2vw, 34px);
  font-weight: 800; font-size: clamp(20px, 1.7vw, 30px); line-height: 1.05; letter-spacing: -.02em;
  cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.opt.is-wide { grid-column: 1 / -1; }
.opt.is-half { grid-column: span 2; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt-mark { flex: none; width: 1.25em; height: 1.25em; border: 3px solid currentColor; transition: background-color .2s ease, box-shadow .2s ease; }
.opt-mark.is-round { border-radius: 50%; }
.opt-mark.is-square { border-radius: .32em; }
.opt:hover { background: rgba(0, 0, 0, .08); }
.opt:has(input:checked) { background: var(--ink); color: var(--paper); }
.opt:has(input:checked) .opt-mark { background: var(--paper); box-shadow: inset 0 0 0 4px var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--paper); outline-offset: 3px; }

/* reference images */
.bq-callout { max-width: 62ch; margin-bottom: clamp(20px, 2vw, 32px); padding: 1.1em 1.4em; border-radius: 32px; background: var(--ink); color: var(--paper); font-size: clamp(17px, 1.4vw, 24px); line-height: 1.35; }
.bq-callout p { margin: 0; }
.bq-callout .bq-callout-title { margin-bottom: .35em; color: #C9B9FF; font-weight: 800; font-size: 1.2em; letter-spacing: -.02em; }
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .55em;
  padding: clamp(24px, 3vw, 56px); border: 4px dashed var(--ink); border-radius: 32px;
  text-align: center; cursor: pointer; transition: background-color .2s ease;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:hover, .drop.is-over { background: rgba(0, 0, 0, .08); }
.drop:focus-within { outline: 3px solid var(--paper); outline-offset: 3px; }
.drop-icon { display: grid; place-items: center; width: clamp(56px, 4.6vw, 84px); height: clamp(56px, 4.6vw, 84px); border-radius: 50%; background: var(--ink); color: var(--paper); }
.drop-icon svg { width: 50%; height: 50%; }
.drop-title { font-weight: 800; font-size: clamp(20px, 1.7vw, 32px); letter-spacing: -.02em; }
.drop-sub { font-size: clamp(15px, 1.1vw, 20px); }
.file-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.file-list:empty { display: none; }
.file-list li { display: inline-flex; align-items: center; gap: .6em; padding: .45em .5em .45em 1em; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: clamp(14px, 1vw, 18px); font-weight: 600; }
.file-list button { width: 1.6em; height: 1.6em; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font: 700 1em/1 var(--font); cursor: pointer; }

/* page navigation */
.bq-nav { margin-top: auto; padding-top: clamp(28px, 3vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.bq-links { display: flex; gap: 2em; }
.bq-link {
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
  font: 700 clamp(18px, 1.5vw, 28px)/1 var(--font); letter-spacing: -.02em;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .22em;
}
.bq-link:hover { color: var(--paper); }
.bq-link:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opt.is-half { grid-column: span 1; }
  .brief-intro { grid-template-columns: minmax(0, 1fr); }
  .brief-smile { grid-row: auto; grid-column: 1; }
}
@media (max-width: 560px) {
  .cc-row { grid-template-columns: minmax(0, 1fr); }
  .opt { min-height: 104px; }
}

/* ================= Contact, inverted: black cards, white fields, purple buttons and highlights ================= */
.cc { background: var(--ink); color: var(--paper); }
.go { background: var(--brand); }
.go-dot { background: #000000; color: #FFFFFF; }   /* black disc, white arrow, in both modes */
.cc-error, .bq-error { background: var(--brand); }
.cc-field input:focus-visible, .cc-field textarea:focus-visible { outline-color: var(--brand); outline-offset: 3px; }
.brief-note, .brief-chips li, .bq-chips li { background: var(--brand); }
.ring-arc { stroke: var(--brand); }
/* "Question 5", right aligned beside the ring */
.brief-count {
  position: absolute; margin: 0;
  top: clamp(16px, 1.6vw, 28px); right: calc(clamp(16px, 1.6vw, 28px) + clamp(48px, 4.2vw, 76px) + 14px);
  height: clamp(48px, 4.2vw, 76px); display: flex; align-items: center; justify-content: flex-end;
  font-weight: 600; font-size: clamp(16px, 1.3vw, 24px); letter-spacing: -.01em; text-align: right;
}
.brief-count[hidden] { display: none; }

.brief-flow { color: var(--paper); }
.bq-tag { background: var(--brand); }
.bq-input { border: 0; box-shadow: none; background: var(--paper); color: var(--ink); }
.bq-input::placeholder { color: #6E6E78; opacity: 1; }
.bq-input:focus-visible { box-shadow: none; outline: 3px solid var(--brand); outline-offset: 3px; }
.opt { border: 3px solid var(--paper); }
.opt:hover { background: rgba(255, 255, 255, .08); }
.opt:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--paper); }
.opt:has(input:checked) .opt-mark { background: var(--paper); box-shadow: inset 0 0 0 4px var(--brand); }
.opt:has(input:focus-visible) { outline-color: var(--brand); }
/* "Something else": a field opens beside the card when it's chosen */
.opt-other { display: none; grid-column: 2 / -1; height: auto; border-radius: clamp(22px, 2vw, 34px); font-weight: 600; }
.opts:has(.opt-else input:checked) .opt-else { grid-column: 1 / span 1; }
.opts:has(.opt-else input:checked) .opt-other { display: block; }
.bq-callout { background: var(--brand); }
.bq-callout .bq-callout-title { color: var(--paper); }
.drop { border-color: var(--paper); }
.drop:hover, .drop.is-over { background: rgba(255, 255, 255, .08); }
.drop:focus-within { outline-color: var(--brand); }
.drop-icon { background: var(--brand); }
.file-list li { background: var(--brand); }
.bq-link { color: var(--paper); }
.bq-link:hover { color: var(--brand); }
.bq-link:focus-visible { outline-color: var(--brand); }
.bq-error { align-self: flex-start; margin-top: 14px; }

/* no resize corner: text boxes grow as people type (js/contact.js) */
.cc-field textarea, .bq-area { resize: none; overflow: hidden; }

/* ================= Mobile header: black bar, white logo, two-line menu that becomes an X ================= */
.menu-btn, .mobile-menu { display: none; }
@media (max-width: 760px) {
  .site-header { flex-wrap: nowrap; background: #0A0A0A; padding-bottom: clamp(16px, 1.6vw, 32px); }
  .site-header.is-scrolled { padding-bottom: 10px; }
  .site-header hoffman-logo { --hoffman-logo-color: #FFFFFF; color: #FFFFFF; }
  .site-header .brand-disc { display: none; }           /* the bar is already black behind the circle H */
  /* full logo and the menu button always fit side by side (logo is 5.03× as wide as it is tall) */
  .site-header .brand { flex: 0 1 auto; min-width: 0; --hoffman-logo-height: min(64px, calc((100vw - 124px) / 5.03)); }
  .site-header.is-scrolled .brand { --hoffman-logo-height: min(52px, calc((100vw - 124px) / 5.03)); }
  .site-nav { display: none; }

  /* line weight and spacing measured from Andy's mock-up, relative to the 64px logo */
  .menu-btn {
    --line-w: 38px; --line-h: 6px; --gap: 9px;
    position: relative; display: block; flex: none;
    width: 52px; height: 52px; margin-right: -7px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .menu-line {
    position: absolute; left: 50%; top: 50%;
    width: var(--line-w); height: var(--line-h); margin: calc(var(--line-h) / -2) 0 0 calc(var(--line-w) / -2);
    background: #FFFFFF;
    transition: transform .45s cubic-bezier(.3, 1.45, .5, 1);
  }
  .menu-line:nth-child(1) { transform: translateY(calc((var(--gap) + var(--line-h)) / -2)); }
  .menu-line:nth-child(2) { transform: translateY(calc((var(--gap) + var(--line-h)) / 2)); }
  .menu-btn[aria-expanded="true"] .menu-line:nth-child(1) { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-line:nth-child(2) { transform: rotate(-45deg); }
  .menu-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 45;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18em;
    padding: 120px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px));
    background: #0A0A0A;
    visibility: hidden; opacity: 0;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
  .mobile-menu a {
    color: #FFFFFF; text-decoration: none;
    font-weight: 600; font-size: clamp(40px, 11vw, 64px); line-height: 1.25; letter-spacing: -.03em;
    opacity: 0; transform: translateY(18px);
    transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1), color .2s ease;
  }
  .mobile-menu.is-open a { opacity: 1; transform: none; }
  .mobile-menu.is-open a:nth-child(2) { transition-delay: .04s; }
  .mobile-menu.is-open a:nth-child(3) { transition-delay: .08s; }
  .mobile-menu.is-open a:nth-child(4) { transition-delay: .12s; }
  .mobile-menu.is-open a:nth-child(5) { transition-delay: .16s; }
  .mobile-menu a:hover, .mobile-menu a:active { color: var(--brand); }
  .mobile-menu a:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 8px; }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mobile-menu a { transform: none; }
}

/* scroll prompt on phones and touch screens: mirrored top to bottom so it moves like a swipe up */
.scroll-prompt.is-swipe svg { transform: scaleY(-1); }

/* desktop: white fills the inside of the circle the whole time (the lettering is filled by the logo itself) */
@media (min-width: 761px) { .brand-disc { opacity: 1; } }

/* ================= Dark mode ================= */
html[data-theme="dark"] {
  --ink: #FFFFFF;
  --paper: #000000;
  --hush: #161616;
  --muted: #A3A3A3;
  color-scheme: dark;
}
html[data-theme="dark"] #hoffman-footer { --hf-ink: #FFFFFF; --hf-bg: #000000; }
html[data-theme="dark"] .fan-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px -20px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .fan-card.is-hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 40px 70px -24px rgba(0, 0, 0, .9); }
html[data-theme="dark"] .about-photo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* 0.4s cross-fade while switching (springy movement elsewhere keeps its own timing) */
html.theme-anim body, html.theme-anim body *:not(.fan-card):not(.menu-line):not(.tt-knob):not(.cursor):not(.cursor-dot) {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease, box-shadow .4s ease !important;
}

/* ---------- the switch: a pill, with a tiny "Dark ◀▶ Light" caption under it ---------- */
.theme-toggle {
  position: relative; display: inline-flex; align-items: center; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; line-height: 1;
}
.theme-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: 999px; }
.tt-pill { position: relative; display: block; width: 1.62em; height: .9em; border: .085em solid currentColor; border-radius: 999px; }
.tt-knob {
  position: absolute; left: .1em; top: 50%; width: .52em; height: .52em; margin-top: -.26em; border-radius: 50%;
  background: currentColor; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), background-color .3s ease;
}
/* knob on the left = dark, on the right = light, matching the caption */
html[data-theme="light"] .tt-knob { transform: translateX(.73em); }
.theme-toggle:hover .tt-knob { background: var(--brand); }
.tt-caption {
  position: absolute; left: 50%; top: 100%; margin-top: .32em; transform: translateX(-50%);
  white-space: nowrap; font-size: clamp(10px, .75vw, 13px); font-weight: 600; letter-spacing: .01em; line-height: 1;
}
.tt-arrow { display: inline-block; font-size: .8em; margin: 0 .1em; }
html[data-theme="dark"] .tt-to-light, html[data-theme="light"] .tt-to-dark { visibility: hidden; width: 0; margin: 0; }

/* desktop: sits at the end of the nav at the same size */
.site-nav { align-items: center; }
.site-nav .theme-toggle { font-size: clamp(30px, 3.5vw, 68px); }
.site-header.is-scrolled .site-nav .theme-toggle { font-size: clamp(22px, 2.3vw, 44px); transition: font-size .45s cubic-bezier(.2, .8, .2, 1); }
.site-nav .theme-toggle { margin-left: .1em; }

/* phones: inside the full-screen menu, under the links */
.mm-theme { display: none; }
@media (max-width: 760px) {
  .mm-theme { display: flex; justify-content: center; margin: .6em 0 .9em; color: #FFFFFF; font-size: clamp(34px, 9vw, 52px); }
  .mm-theme .tt-caption { font-size: 13px; }
  .mobile-menu .theme-toggle { opacity: 0; transform: translateY(18px); transition: opacity .3s ease .16s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .16s; }
  .mobile-menu.is-open .theme-toggle { opacity: 1; transform: none; }
}




/* ================= Collapsible sections ================= */
.sh-wrap { margin: 0; font: inherit; }
button.sh { font-family: var(--font); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
button.sh:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.sec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.3, 1, .4, 1); }
.is-open > .sec-body { grid-template-rows: 1fr; }
.sec-inner { min-height: 0; overflow: hidden; }
.sec-body.is-settled > .sec-inner { overflow: visible; }
.sec-inner > * { opacity: 0; transform: translateY(24px); transition: opacity .4s ease, transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.is-open > .sec-body .sec-inner > * { opacity: 1; transform: none; transition-delay: .12s; }
/* closed sections sit closer together */
.work:not(.is-open), .about:not(.is-open), .contact:not(.is-open) { padding-bottom: 0; }
.about, .contact { padding-top: clamp(24px, 3vw, 48px); }   /* same open or closed, so the title button never moves */
.contact:not(.is-open) { padding-bottom: clamp(80px, 10vw, 180px); }
@media (prefers-reduced-motion: reduce) { .sec-body { transition: none; } }

/* ================= Project names: purple filled pill, white text, no outline ================= */
.project-name a { background: var(--brand); color: #FFFFFF; border-color: transparent; }
.project-name a:hover { background: var(--ink); color: var(--paper); border-color: transparent; }

/* ---------- Scroll progress line ---------- */
.scroll-progress {
  position: fixed; left: 0; right: 0; top: 0; height: 8px; z-index: 2147483000;
  background: #6D4AFF; transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none; will-change: transform;
}
@media print { .scroll-progress { display: none; } }
