/* ============================================================
   James Threadgold — Portfolio
   Refined-minimal foundation + playful, interactive character
   ============================================================ */

:root {
  /* Palette — warm paper, deep ink, tangerine character */
  --paper:      #FBF7F0;
  --paper-2:    #F3ECDF;
  --ink:        #1A1714;
  --ink-soft:   #4A433B;
  --muted:      #837A6E;
  --line:       #E4DACB;
  --accent:     #FF5B2E;  /* tangerine */
  --accent-ink: #C4360F;
  --accent-2:   #1F6F62;  /* deep teal, secondary */
  --card:       #FFFFFF;

  /* Project media tones */
  --tone-1: linear-gradient(135deg, #FFD7C2, #FF8A5B);
  --tone-2: linear-gradient(135deg, #D7E8E2, #6FB3A4);
  --tone-3: linear-gradient(135deg, #E6DCFA, #A487E0);
  --tone-4: linear-gradient(135deg, #F0E9DC, #CBBFA8);

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 10px;
}
.skip:focus { left: 12px; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease), opacity .25s;
  opacity: 0;
  will-change: transform;
}
.cursor.is-hover {
  width: 64px; height: 64px;
  background: rgba(255, 91, 46, 0.18);
}
.cursor.is-down { width: 18px; height: 18px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
.header.scrolled {
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}
.brand-name { font-size: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { position: relative; color: var(--ink-soft); transition: color .25s; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: 100px;
  transition: transform .25s var(--ease), background .25s;
}
.nav-cta:hover { background: var(--accent); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-0px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
  will-change: transform;
}
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 30px -10px rgba(255, 91, 46, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 140px 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle at 30% 30%, #FFB38A, #FF5B2E);
  top: -8%; right: -6%;
  animation: float-1 18s var(--ease) infinite alternate;
}
.blob-2 {
  width: 38vw; height: 38vw;
  max-width: 520px; max-height: 520px;
  background: radial-gradient(circle at 60% 40%, #BFE3D9, #1F6F62);
  bottom: -12%; left: -8%;
  opacity: 0.4;
  animation: float-2 22s var(--ease) infinite alternate;
}
.grain {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
@keyframes float-1 {
  to { transform: translate(-40px, 50px) scale(1.1); }
}
@keyframes float-2 {
  to { transform: translate(50px, -40px) scale(1.08); }
}

.hero-inner { position: relative; z-index: 1; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 rgba(31,111,98,0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,111,98,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(31,111,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,111,98,0); }
}
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; }
.hero-title em {
  color: var(--accent);
  font-style: italic;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  max-width: 44ch;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-philosophy {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 40ch;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}

.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scroll-dot 2s var(--ease) infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 18px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .sep { color: var(--accent); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 12vw, 150px); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.sec-head { max-width: 720px; margin-bottom: 64px; }
.sec-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.about-head { position: sticky; top: 120px; }
.about-head h2 { line-height: 1.0; }
.about-body .lead {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-family: var(--display);
  color: var(--ink);
  margin-bottom: 28px;
  line-height: 1.3;
}
.about-body p { color: var(--ink-soft); margin-bottom: 22px; }
.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 56px);
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Work ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  will-change: transform;
}
.project:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px -28px rgba(26,23,20,0.35);
}
.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.tone-1 { background: var(--tone-1); }
.tone-2 { background: var(--tone-2); }
.tone-3 { background: var(--tone-3); }
.tone-4 { background: var(--tone-4); }
.project-index {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.project-mock {
  width: 64%; height: 62%;
  background:
    linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)) padding-box;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 40px -18px rgba(26,23,20,0.45);
  transform: translateY(8%);
  transition: transform .6s var(--ease);
  position: relative;
  overflow: hidden;
}
.project-mock::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(transparent 0 14%, rgba(26,23,20,0.06) 14% 17%, transparent 17%),
    linear-gradient(90deg, var(--accent) 0 36%, transparent 36%) 0 26%/100% 6px no-repeat,
    linear-gradient(90deg, rgba(26,23,20,0.12) 0 70%, transparent 70%) 0 42%/100% 5px no-repeat,
    linear-gradient(90deg, rgba(26,23,20,0.12) 0 55%, transparent 55%) 0 54%/100% 5px no-repeat;
  padding: 14px;
}
.project:hover .project-mock { transform: translateY(2%); }
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .7s var(--ease);
}
.project:hover .project-img { transform: scale(1.04); }
/* App-screen montages: show the whole thing, framed by a matching backdrop */
.project-media--contain .project-img { object-fit: contain; padding: 18px; }
.media-dark { background: #0b0f0b; }
.media-purple { background: #6b50bb; }
.media-cream { background: #FDF3EA; }
.project-info {
  padding: 28px clamp(22px, 3vw, 32px) 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-info h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.project-info p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags li {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 100px;
}
.project-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-ink);
}
.project-go .arrow { transition: transform .3s var(--ease); }
.project:hover .project-go .arrow { transform: translateX(6px); }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--paper); }
.process .eyebrow { color: #FF9168; }
.process h2 { color: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}
.step {
  padding-top: 28px;
  border-top: 2px solid rgba(251,247,240,0.18);
  transition: border-color .4s;
}
.step:hover { border-top-color: var(--accent); }
.step-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}
.step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin: 14px 0 12px;
}
.step p { color: rgba(251,247,240,0.7); font-size: 0.98rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 760px; margin-inline: auto; }
.contact-title {
  margin: 8px 0 22px;
  font-size: clamp(2.6rem, 8vw, 6rem);
}
.contact-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 38px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.contact-note { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer-links a { color: var(--ink-soft); transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { color: var(--muted); font-size: 14px; width: 100%; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Case-study pages
   ============================================================ */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 28px;
  transition: gap .3s var(--ease), color .25s;
}
.cs-back:hover { gap: 14px; color: var(--accent-ink); }
.cs-back .arrow { transition: transform .3s var(--ease); }
.cs-back:hover .arrow { transform: translateX(-4px); }

.cs-hero {
  padding-block: 150px 0;
  position: relative;
  overflow: hidden;
}
.cs-hero .eyebrow { color: var(--accent-ink); }
.cs-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 16ch;
}
.cs-tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 48px;
}

/* Meta strip */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding-block: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.cs-meta dd { font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* Cover band */
.cs-cover {
  margin-top: 56px;
  height: clamp(220px, 42vw, 460px);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.cs-cover .cs-cover-num {
  font-family: var(--display);
  font-size: clamp(5rem, 22vw, 16rem);
  font-weight: 600;
  color: rgba(26,23,20,0.16);
  line-height: 1;
  user-select: none;
}
.cs-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* For app-screen montages: show the whole thing on the tone background */
.cs-cover--contain { padding: clamp(20px, 4vw, 44px); }
.cs-cover--contain img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inline figures */
.cs-figure {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.cs-figure img { width: 100%; display: block; }
.cs-figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
/* Brand board — native replacement for a flat brand-identity image */
.brandboard {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}
.brandboard__logo {
  background: #161214;
  color: #fff;
  padding: 44px 24px;
  text-align: center;
}
.brandboard__wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: 0.16em;
  padding-left: 0.16em; /* offset trailing letter-spacing for optical centring */
}
.brandboard__type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.brandboard__type-item {
  padding: 22px 24px;
  text-align: center;
}
.brandboard__type-item + .brandboard__type-item { border-left: 1px solid var(--line); }
.brandboard__type-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(20px, 3.4vw, 26px);
  color: var(--ink);
}
.brandboard__type-role {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.brandboard__palette {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
}
.brandboard__swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  text-align: center;
}
.brandboard__swatch + .brandboard__swatch { border-left: 1px solid var(--line); }
.brandboard__chip {
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.brandboard__chip--bordered { box-shadow: inset 0 0 0 1px var(--line); }
.brandboard__hex {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  color: var(--ink);
}
.brandboard__role {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 560px) {
  .brandboard__palette { grid-template-columns: repeat(2, 1fr); }
  .brandboard__swatch:nth-child(2) { border-left: 0; }
  .brandboard__swatch:nth-child(3),
  .brandboard__swatch:nth-child(4) { border-top: 1px solid var(--line); }
}
/* Report download card */
.cs-download {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cs-download:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 34px -18px rgba(26, 23, 20, 0.4);
  transform: translateY(-2px);
}
.cs-download__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
}
.cs-download__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-download__title { font-weight: 600; color: var(--ink); }
.cs-download__meta { font-size: 13px; color: var(--muted); }
.cs-download__cta {
  flex: none;
  margin-left: auto;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  transition: background .3s var(--ease);
}
.cs-download:hover .cs-download__cta { background: var(--accent); }
@media (max-width: 560px) {
  .cs-download { flex-wrap: wrap; gap: 14px; }
  .cs-download__cta { margin-left: 0; width: 100%; text-align: center; }
}
/* Wide figure breaks out beyond the prose column */
.cs-figure--wide {
  width: min(1080px, 92vw);
  margin-inline: calc(50% - min(540px, 46vw));
}
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.cs-gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}
.cs-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Prose body */
.cs-body { padding-block: clamp(70px, 10vw, 120px); }
.cs-prose { max-width: 760px; margin-inline: auto; }
.cs-block { margin-bottom: clamp(44px, 7vw, 80px); }
.cs-block:last-child { margin-bottom: 0; }
.cs-block h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: 22px;
}
.cs-block p {
  color: var(--ink-soft);
  font-size: 1.12rem;
  margin-bottom: 18px;
}
.cs-block p:last-child { margin-bottom: 0; }
.cs-block strong { color: var(--ink); font-weight: 600; }

.cs-list { margin-top: 8px; display: grid; gap: 14px; }
.cs-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.cs-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Outcome highlight cards */
.cs-outcomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.cs-outcome {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
}
.cs-outcome .num {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--accent-ink);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.cs-outcome .lbl { font-size: 0.95rem; color: var(--ink-soft); }

/* Pull quote */
.cs-quote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  padding-left: 26px;
  border-left: 4px solid var(--accent);
  margin: 8px 0;
}

/* Next project */
.cs-next {
  border-top: 1px solid var(--line);
  padding-block: clamp(50px, 8vw, 90px);
  text-align: center;
}
.cs-next .eyebrow { color: var(--accent-ink); }
.cs-next a {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  transition: gap .3s var(--ease), color .25s;
}
.cs-next a:hover { gap: 26px; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cs-meta { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    background: var(--paper);
    box-shadow: -20px 0 60px -20px rgba(26,23,20,0.3);
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    font-size: 22px;
  }
  .nav-links.open { transform: translateX(0); }
  .projects { grid-template-columns: 1fr; }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-figure--wide { width: 100%; margin-inline: 0; }
  .hero { padding-block: 120px 90px; }
  .cursor { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn, .contact-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor { display: none; }
}

/* ============================================================
   FreshTrack — themed app showcase (phone mockups)
   ============================================================ */
.ft-showcase {
  margin-top: 56px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(110% 120% at 12% 0%, #FFEFE2 0%, transparent 52%),
    radial-gradient(110% 120% at 100% 100%, #E7F1ED 0%, transparent 52%),
    var(--paper-2);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 38px);
  justify-content: center;
}
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone-cap { font-size: 13px; font-weight: 500; color: var(--muted); }
.phone {
  width: 244px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 38px;
  padding: 9px;
  box-shadow: 0 38px 64px -30px rgba(26,23,20,.45), inset 0 0 0 1.5px rgba(26,23,20,.08);
}
.phone-screen {
  position: relative;
  background: var(--paper);
  border-radius: 30px;
  padding: 18px 15px 14px;
  height: 452px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 5px;
  border-radius: 100px;
  background: rgba(26,23,20,.16);
}
.ph-head { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 14px; }
.ph-h { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.ph-sub { font-size: 10px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.ph-body { flex: 1; overflow: hidden; }

/* Fridge list */
.ph-item {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 11px; margin-bottom: 8px;
}
.ph-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.fresh-dot { background: var(--accent-2); }
.use-dot { background: var(--accent); }
.exp-dot { background: #C4452B; }
.ph-item-main { flex: 1; min-width: 0; }
.ph-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.ph-item-sub { font-size: 11px; color: var(--muted); }
.ph-pill { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 100px; white-space: nowrap; }
.ph-pill.fresh { color: var(--accent-2); background: rgba(31,111,98,.12); }
.ph-pill.use { color: var(--accent-ink); background: rgba(255,91,46,.15); }
.ph-pill.exp { color: #B23A26; background: rgba(196,69,43,.12); }

.ph-btn { display: block; width: 100%; text-align: center; border-radius: 11px; padding: 10px; font-size: 12px; font-weight: 600; margin-top: 4px; }
.ph-btn.solid { background: var(--ink); color: var(--paper); }
.ph-btn.accent { background: var(--accent); color: #fff; }
.ph-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }

/* Tab bar */
.ph-tabs { display: flex; justify-content: space-between; padding-top: 11px; margin-top: 11px; border-top: 1px solid var(--line); }
.ph-tab { flex: 1; text-align: center; font-size: 10px; font-weight: 500; color: var(--muted); }
.ph-tab.active { color: var(--accent-ink); font-weight: 700; }

/* Meals screen */
.ph-ai { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--accent-2); background: rgba(31,111,98,.1); border: 1px solid rgba(31,111,98,.25); padding: 5px 9px; border-radius: 100px; margin-bottom: 12px; }
.ph-meal { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px; margin-bottom: 12px; }
.ph-meal h4 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.ph-meal .uses { font-size: 11px; color: var(--muted); }
.ph-meal .save { font-size: 11px; font-weight: 600; color: var(--accent-2); margin-top: 7px; }
.ph-meal .meta { font-size: 10px; color: var(--muted); margin-top: 4px; }
.ph-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 0 7px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-tag { font-size: 10px; font-weight: 500; padding: 4px 9px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); }
.ph-tag.have { color: var(--accent-2); border-color: rgba(31,111,98,.3); }
.ph-tag.need { color: var(--accent-ink); border-color: rgba(255,91,46,.3); }

/* Budget screen */
.ph-savecard { background: rgba(31,111,98,.1); border: 1px solid rgba(31,111,98,.22); border-radius: 14px; padding: 14px; text-align: center; margin-bottom: 16px; }
.ph-savenum { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--accent-2); }
.ph-savelbl { font-size: 10px; color: var(--ink-soft); margin-top: 5px; }
.ph-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin: 6px 0 26px; }
.ph-bars .bar { flex: 1; background: var(--line); border-radius: 5px 5px 0 0; position: relative; }
.ph-bars .bar.now { background: var(--accent-2); }
.ph-bars .bar span { position: absolute; bottom: -16px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); }
.ph-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.ph-row.warn { color: var(--accent-ink); background: rgba(255,91,46,.08); border-color: rgba(255,91,46,.28); }
.ph-row b { font-weight: 600; }
.ph-prog { height: 8px; background: var(--line); border-radius: 100px; overflow: hidden; margin-top: 4px; }
.ph-prog i { display: block; height: 100%; background: var(--accent-2); }

/* ============================================================
   Business Model Canvas (themed grid)
   ============================================================ */
.bmc {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, 1fr);
  grid-template-areas:
    "kp ka vp cr cs"
    "kp kr vp ch cs"
    "cost cost rev rev rev";
}
.bmc-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.bmc-cell h4 { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 11px; font-weight: 700; }
.bmc-cell ul { display: grid; gap: 7px; }
.bmc-cell li { font-size: 13px; line-height: 1.35; color: var(--ink-soft); }
.bmc-kp { grid-area: kp; } .bmc-ka { grid-area: ka; } .bmc-kr { grid-area: kr; }
.bmc-vp { grid-area: vp; } .bmc-cr { grid-area: cr; } .bmc-ch { grid-area: ch; }
.bmc-cs { grid-area: cs; } .bmc-cost { grid-area: cost; } .bmc-rev { grid-area: rev; }
.bmc-vp { background: #fff; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bmc-vp li { color: var(--ink); }
.bmc-rev { background: rgba(31,111,98,.07); border-color: rgba(31,111,98,.3); }
.bmc-insight { margin-top: 12px; font-family: var(--display); font-style: italic; font-size: 13px; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 11px; }
.bmc-foot { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .bmc {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "vp vp"
      "kp ka"
      "kr cr"
      "ch cs"
      "cost cost"
      "rev rev";
  }
}
@media (max-width: 540px) {
  .bmc {
    grid-template-columns: 1fr;
    grid-template-areas: "vp" "kp" "ka" "kr" "cr" "ch" "cs" "cost" "rev";
  }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(130px, 16vw, 185px) clamp(70px, 10vw, 120px);
}
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.contact-intro .eyebrow { color: var(--accent-ink); }
.contact-intro h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.contact-intro .lead {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 42ch;
  margin-bottom: 36px;
}
.contact-details { display: grid; gap: 20px; }
.contact-details li { display: flex; gap: 14px; align-items: flex-start; }
.cd-ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255, 91, 46, 0.1);
  color: var(--accent-ink);
}
.cd-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cd-value { font-weight: 500; }
.cd-value a { transition: color .2s; }
.cd-value a:hover { color: var(--accent-ink); }

/* Form card */
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 70px -45px rgba(26, 23, 20, 0.45);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #A89E90; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .err { display: none; color: #B23A26; font-size: 12px; margin-top: 6px; }
.field.invalid input,
.field.invalid textarea { border-color: #C4452B; }
.field.invalid input:focus,
.field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(196, 69, 43, 0.15); }
.field.invalid .err { display: block; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  border-radius: 12px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}
.form-status.success,
.form-status.error { padding: 13px 16px; max-height: 200px; }
.form-status.success { background: rgba(31, 111, 98, 0.1); color: var(--accent-2); border: 1px solid rgba(31, 111, 98, 0.3); }
.form-status.error { background: rgba(196, 69, 43, 0.1); color: #B23A26; border: 1px solid rgba(196, 69, 43, 0.3); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
