/* ==========================================================
   Design tokens (from Figma variables)
   ========================================================== */
:root {
  --paper: #fefdf9;
  --paper-grid: #ebe9e1;
  --card: #ffffff;
  --ink: #2c2222;
  --ink-muted: #5f5652;
  --line-soft: #d9d5ca;

  --blue-100: #e3f1f3;
  --blue-200: #b6dde2;
  --pink-200: #f6becc;
  --pink-300: #f5abbc;
  --green-200: #b8cf89;
  --green-400: #8d9f6b;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 3px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --font-body: "Inter", system-ui, sans-serif;

  --page-pad: 48px;
  --max-w: 1440px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }

.page { max-width: var(--max-w); margin: 0 auto; }

/* ==========================================================
   Type styles
   ========================================================== */
.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.heading-serif {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.heading-sans {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.01em;
}
.title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}
.body-sm { font-size: 13px; line-height: 20px; }
.muted { color: var(--ink-muted); }

/* ==========================================================
   Graph paper background
   ========================================================== */
.graph-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--paper-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ==========================================================
   Announcement bar
   ========================================================== */
.announcement {
  height: 33px;
  background: var(--blue-200);
  border-bottom: 1px solid var(--ink);
}

/* ==========================================================
   Nav
   ========================================================== */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  height: 62px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 24px var(--page-pad) 0;
  pointer-events: none;
}
.nav-wrap > * { pointer-events: auto; }

.logo {
  position: relative;
  flex-shrink: 0;
  width: 53px;
  height: 44px;
  overflow: hidden;
}
.logo img {
  position: absolute;
  max-width: none;
  width: 138.89%;
  height: 166.67%;
  left: -19.44%;
  top: -31.67%;
}
.logo--sm { width: 48px; height: 40px; }

.nav-links {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: var(--space-6);
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 18px 7px 14px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn .dot { width: 8px; height: 8px; flex-shrink: 0; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--pink { background: var(--pink-300); }
.btn--plain { padding: 7px 18px; }
.btn--sm {
  gap: var(--space-2);
  padding: 4px 12px 4px 10px;
  font-size: 12px;
  line-height: 16px;
}
.btn--sm .dot { width: 6px; height: 6px; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  margin-top: -86px; /* nav sits on top of the grid */
  height: 734px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-text {
  position: absolute;
  left: 121px;
  top: 185px;
  display: flex;
  flex-direction: column;
}
.headline { display: flex; flex-direction: column; gap: 4px; }
.highlight { position: relative; align-self: flex-start; padding: 0 8px; }
.highlight::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 100%; height: 58px;
  background: var(--blue-100);
  transform-origin: left;
}
.display-sans {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.display-serif {
  font-family: var(--font-serif);
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero-sub { margin-top: 33px; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 32px; }

.hero-art {
  position: absolute;
  left: 810px;
  top: 148px;
  width: 630px;
  height: 473px;
}
.hero-art img {
  position: absolute;
  top: 7.03%; right: 15.66%; bottom: 7%; left: 15.72%;
  width: auto; height: auto;
  max-width: none;
}

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  display: flex;
  overflow: hidden;
  padding: 8px 0;
  background: var(--green-200);
  border-top: 1px solid var(--green-400);
  border-bottom: 1px solid var(--green-400);
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-4);
  padding-left: var(--space-4);
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ==========================================================
   Section scaffolding
   ========================================================== */
.section {
  padding: 80px var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header { margin-bottom: 32px; }
.rule-top { border-top: 1px solid var(--ink); }

/* ==========================================================
   Project cards
   ========================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.card-media {
  aspect-ratio: 318 / 239;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.02); }
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  text-align: center;
}
.bg-blue { background: var(--blue-200); }
.bg-pink { background: var(--pink-200); }
.bg-green { background: var(--green-200); }

/* ==========================================================
   About block (home)
   ========================================================== */
.about {
  display: flex;
  align-items: center;
  gap: 48px;
}
.photo-panel {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 464px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-panel > img {
  position: absolute;
  max-width: none;
  width: 117.65%;
  height: 136.61%;
  left: -8.82%;
  top: -8.2%;
}
.sticker {
  display: inline-block;
  padding: 4px 8px;
  background: var(--green-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.photo-panel .sticker { position: absolute; left: 216px; top: 34px; }

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.services { display: flex; flex-direction: column; }
.service {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.service .title { width: 180px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  border-top: 1px solid var(--ink);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-right: 80px; /* balances the logo so links sit centred */
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================
   Scroll-reveal (subtle, respects reduced motion)
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-media img { transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) {
  .hero { height: auto; padding: 150px 0 80px; }
  .hero-inner { display: flex; align-items: center; gap: 24px; padding: 0 var(--page-pad); }
  .hero-text { position: static; flex: 1; }
  .display-sans { font-size: clamp(48px, 6vw, 80px); }
  .display-serif { font-size: clamp(52px, 6.6vw, 88px); }
  .highlight::before { top: 15%; height: 70%; }
  .hero-art { position: relative; left: auto; top: auto; flex: 0 0 40%; width: auto; height: auto; aspect-ratio: 630 / 473; }
}

@media (max-width: 900px) {
  :root { --page-pad: 24px; }
  .hero { padding-top: 130px; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-art { width: 100%; max-width: 480px; align-self: center; }
  .hero-sub { margin-top: 40px; }
  .heading-sans { font-size: 22px; line-height: 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .about { flex-direction: column; align-items: stretch; }
  .photo-panel { width: 100%; max-width: 360px; align-self: center; }
  .section { padding: 56px var(--page-pad); }
  .heading-serif { font-size: 36px; }
}

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav .btn { display: none; }
  .display-sans { font-size: 44px; }
  .display-serif { font-size: 46px; }
  .display-serif br { display: none; }
  .hero-ctas { flex-wrap: wrap; }
  .service { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { padding-right: 0; }
}

/* ==========================================================
   Case study pages
   ========================================================== */
:root { --pink-100: #fae9eb; }
.bg-pink-soft { background: var(--pink-100); }
.bg-blue-soft { background: var(--blue-100); }

.cs-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--page-pad) 80px;
  margin-top: -86px;
  padding-top: 86px;
}
.cs-hero::before {           /* graph paper behind the top 640px */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 640px;
  z-index: -1;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--paper-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.cs-hero, .cs-hero > * { max-width: var(--max-w); }
.cs-hero { margin-left: auto; margin-right: auto; isolation: isolate; }
.cs-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 96px 0 56px;
  text-align: center;
}
.cs-headline { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cs-headline .highlight { align-self: center; }
.cs-headline .sticker { position: absolute; top: -20px; right: -40px; transform: rotate(-3deg); }
.highlight--pink::before { background: var(--pink-200); }
.highlight--green::before { background: var(--green-200); }
.highlight--blue::before { background: var(--blue-200); }
.cs-summary { max-width: 640px; }
.cs-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.details {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 12px;
  width: 100%;
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  text-align: left;
}
.detail .label { color: var(--ink-muted); }

.mockup { width: 100%; padding-top: 24px; }

/* Framed images */
.frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.frame--md { border-radius: var(--radius-md); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
/* Figma crop: image positioned/scaled inside a fixed frame */
.frame > img.crop {
  position: absolute;
  max-width: none;
  width: var(--w, 100%);
  height: var(--h, var(--w, 100%));
  left: var(--x, 0);
  top: var(--y, 0);
  object-fit: fill;
}
.caption { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Tools strip */
.tools {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.tools-label { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; }
.tool-list { flex: 1; display: flex; flex-wrap: wrap; gap: 12px; }
.tool {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}
.tool img {
  width: 36px; height: 36px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 8px;
}
.tool > div { display: flex; flex-direction: column; gap: 2px; }

/* Section shell */
.cs-section { border-top: 1px solid var(--ink); }
.cs-section > .inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 80px var(--page-pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.cs-section > .inner.gap-64 { gap: 64px; }
.intro { display: flex; gap: 48px; align-items: flex-start; }
.intro-heading { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.intro-body { flex: 1; display: flex; flex-direction: column; gap: 16px; }

.pull-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}
.pull-quote .label { color: var(--ink-muted); }

/* Row of equal boxes */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }

/* Box with coloured header */
.box {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}
.box-head { padding: 12px 24px; border-bottom: 1px solid var(--ink); }
.box-body { padding: 20px 24px 24px; }

/* Plain info card */
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--card);
}
.chips { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.chip {
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
}

/* Decision / feature: visual + text */
.feature { display: flex; gap: 48px; align-items: flex-start; }
.feature-visual { width: 720px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-text { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.why {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}

/* Colour palette */
.palette { overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius-lg); }
.palette-row { display: flex; }
.palette-row + .palette-row { border-top: 1px solid var(--ink); }
.swatch { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; font-size: 13px; line-height: 20px; }
.swatch + .swatch { border-left: 1px solid var(--ink); }
.palette-row:last-child .swatch + .swatch { border-left: 0; }
.swatch.light { color: #fff; }

@media (max-width: 1100px) {
  .feature { flex-direction: column; }
  .feature-visual { width: 100%; }
  .intro { flex-direction: column; gap: 16px; }
  .intro-heading { width: 100%; }
  .tools { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tools-label { width: auto; }
}
@media (max-width: 900px) {
  .details, .row { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .cs-hero-text { padding-top: 72px; }
  .cs-headline .sticker { right: 0; }
  .frame[style*="height"] { height: auto !important; aspect-ratio: var(--ar, 16 / 9); }
  .palette-row { flex-wrap: wrap; }
  .palette-row .swatch { min-width: 50%; min-height: 120px; }
}
@media (max-width: 560px) {
  .details, .row { grid-template-columns: 1fr; }
  .feature-text .heading-sans { white-space: normal; }
}

/* Page screens (3-up, natural heights) */
.screens { display: flex; flex-direction: column; gap: 72px; }
.screen-group { display: flex; flex-direction: column; gap: 24px; }
.screen-head { display: flex; gap: 48px; align-items: flex-start; }
.screen-head > div { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.screen-head .sticker { transform: none; }
.screen-head > p { flex: 1; }
.screen-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.screen-row img { width: 100%; height: auto; border: 1px solid var(--ink); border-radius: var(--radius-md); }
.sticker.blue { background: var(--blue-200); }
.sticker.pink { background: var(--pink-200); }

/* Live site frame */
.live-frame { height: 756px; background: var(--paper-grid); display: flex; justify-content: center; }
.live-frame > img { width: auto; min-width: 114.4%; height: 100%; object-fit: cover; }

/* Outcome band */
.outcome {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 80px var(--page-pad);
  background: var(--pink-300);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.outcome .display-serif { white-space: normal; }
.outcome .heading-sans { max-width: 720px; }
.outcome .pull-quote { max-width: 880px; text-align: center; }
.outcome .pull-quote .label { color: var(--ink); }

/* More case studies */
.more { display: flex; flex-direction: column; gap: 20px; }
.more-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.more-card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }
.more-card > img { height: 250px; width: 100%; object-fit: cover; border-bottom: 1px solid var(--ink); }
.more-card-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.more-card-body > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.arrow {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-300); border: 1px solid var(--ink); border-radius: var(--radius-pill);
  font-size: 18px; line-height: 1;
  transition: transform 0.2s ease;
}
.more-card:hover .arrow { transform: translateX(3px); }

.cta-block { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta-block .headline { align-items: center; }
.cta-block .highlight { align-self: center; }
.next { gap: 80px !important; }

@media (max-width: 1100px) {
  .screen-head { flex-direction: column; gap: 12px; }
  .screen-head > div { width: auto; }
}
@media (max-width: 900px) {
  .screen-row { grid-template-columns: 1fr 1fr; }
  .more-cards { grid-template-columns: 1fr; }
  .live-frame { height: auto; }
  .live-frame > img { min-width: 0; width: 100%; height: auto; }
  .outcome .display-serif, .cta-block .display-serif { font-size: clamp(44px, 9vw, 88px); }
  .cta-block .display-sans { font-size: clamp(36px, 8vw, 80px); white-space: normal; }
}

/* Info cards (eyebrow + title + text) */
.info { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.info > .label:first-child { color: var(--ink-muted); }
.info.tint > .label:first-child { color: var(--ink); }
.info.gap-12 { gap: 12px; }
.intro.align-end { align-items: flex-end; }

/* Table */
.table { overflow: hidden; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.tr { display: flex; gap: 24px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.tr:last-child { border-bottom: 0; }
.tr.th { background: var(--paper-grid); }
.tr.th .label { color: var(--ink-muted); }
.tr > :nth-child(1) { width: 260px; flex-shrink: 0; }
.tr > :nth-child(2) { flex: 1; }
.tr > :nth-child(3) { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sticker.flat, .info .sticker, .tr .sticker { transform: none; align-self: flex-start; }
.sticker.green { background: var(--green-200); }

/* Big takeaway */
.takeaway { display: flex; flex-direction: column; gap: 20px; padding: 64px 120px; background: var(--pink-100); border: 1px solid var(--ink); border-radius: var(--radius-lg); }

/* Considered → chosen */
.versus { display: flex; align-items: stretch; gap: 24px; }
.versus > .info { flex: 1; padding: 32px; }
.versus > .arrow { align-self: center; }

@media (max-width: 900px) {
  .tr { flex-wrap: wrap; gap: 8px 24px; }
  .tr > :nth-child(1), .tr > :nth-child(3) { width: auto; }
  .tr > :nth-child(2) { flex-basis: 100%; order: 3; }
  .takeaway { padding: 40px 28px; }
  .versus { flex-direction: column; }
  .versus > .arrow { transform: rotate(90deg); }
}

/* Numbered list */
.feature.center { align-items: center; }
.feature-text.gap-20 { gap: 20px; }
.steps { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.num {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-300); border: 1px solid var(--ink); border-radius: var(--radius-pill);
}
.steps li > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }

/* Small tab boxes */
.box--sm .box-head { padding: 10px 16px; }
.box--sm .box-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .row.five { grid-template-columns: 1fr 1fr; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.info.p20 { padding: 20px; gap: 8px; }
.intro.align-center { align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
.box--md .box-head { padding: 10px 20px; }
.box--md .box-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }

/* Module map columns */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 12px; }
.col-head { display: flex; align-items: center; gap: 8px; }
.col-head .sticker { transform: none; }
.frame.contain > img { object-fit: contain; }
.mini { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.mini > .label:first-child { color: var(--ink-muted); }

/* Count list */
.counts { display: flex; flex-direction: column; gap: 10px; }
.count-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.count-row > .label:first-child { color: var(--ink-muted); }
.count-row > .title { flex: 1; }
.pill { padding: 4px 12px; background: var(--pink-100); border: 1px solid var(--ink); border-radius: var(--radius-pill); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: 1fr; } }

/* Stats + step table */
.stats { display: flex; gap: 12px; }
.stat { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); white-space: nowrap; }
.stat .label { color: var(--ink-muted); }
.step-table { overflow: hidden; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.step-row { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.step-row:last-child { border-bottom: 0; }
.step-row .title { width: 160px; flex-shrink: 0; }
.step-row .body-sm { flex: 1; }
.callout { padding: 32px; text-align: center; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.inner.gap-56 { gap: 56px; }
@media (max-width: 900px) {
  .stats { flex-direction: column; }
  .stat .display-serif { font-size: 64px; }
  .step-row { flex-wrap: wrap; }
  .step-row .body-sm { flex-basis: 100%; padding-left: 44px; }
}
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.flow > .info { padding: 16px; gap: 8px; }
@media (max-width: 900px) { .flow { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
.feature.g64 { gap: 64px; }
.steps.g18 { gap: 18px; }
@media (max-width: 1100px) {
  .feature-visual.phone { width: 100%; max-width: 360px; align-self: center; }
  .feature-visual.wide { width: 100%; }
}
.bg-pink-strong { background: var(--pink-300); border-bottom: 1px solid var(--ink); }
.inner.gap-40 { gap: 40px; }
.stat-sm { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.stat-sm .heading-serif { white-space: nowrap; }
@media (max-width: 900px) { .stat-sm .heading-serif { white-space: normal; } }

/* DailyBean hero composition (built in code from the Figma layout) */
.phones { position: relative; width: 100%; aspect-ratio: 1344 / 720; overflow: hidden; background: var(--green-200); border: 1px solid var(--ink); border-radius: var(--radius-lg); }
.phones > * { position: absolute; }
.phones .accent { border: 1.5px solid var(--ink); border-radius: 16px; }
.phones .phone { background: var(--ink); border-radius: clamp(14px, 2.5vw, 34px); padding: 0.6%; }
.phones .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: clamp(10px, 2vw, 27px); }
.tool img.crop-gemini { object-fit: cover; object-position: 26% 50%; }
.bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bullets li::before { content: "•"; margin: 0 10px 0 4px; }
.chip.green { background: var(--green-200); }
.chips.tight { gap: 8px; }
.grid-2.start { align-items: start; }
.test-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.decision { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.decision .label { color: var(--ink-muted); }
.quote-box { padding: 16px; border: 1px solid var(--ink); border-radius: var(--radius-md); }
.frame.top > img { object-position: top; }
.results .tr { align-items: flex-start; }
.results .tr.th { align-items: center; }
.results .tr > :nth-child(1) { width: 240px; }
.results .tr > :nth-child(2) { width: 220px; flex: none; }
.results .tr > :nth-child(3) { width: auto; flex: 1; display: block; }
@media (max-width: 900px) {
  .results .tr > :nth-child(1), .results .tr > :nth-child(2) { width: auto; }
  .results .tr > :nth-child(3) { flex-basis: 100%; order: 3; }
}

/* ==========================================================
   About page
   ========================================================== */
.about-hero { position: relative; margin-top: -86px; padding: 86px var(--page-pad) 0; height: 918px; }
.about-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 910px; z-index: -1; background-color: var(--paper); background-image: linear-gradient(to right, var(--paper-grid) 1px, transparent 1px), linear-gradient(to bottom, var(--paper-grid) 1px, transparent 1px); background-size: 24px 24px; }
.about-hero { isolation: isolate; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.about-row { display: flex; align-items: center; gap: 72px; padding-top: 96px; }
.about-row .hero-text { position: static; flex: 1; gap: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.portrait { position: relative; flex-shrink: 0; width: 500px; height: 640px; }
.portrait::before { content: ""; position: absolute; left: 20px; top: 20px; width: 100%; height: 100%; background: var(--blue-200); border: 1px solid var(--ink); border-radius: var(--radius-lg); }
.portrait .frame { position: relative; height: 100%; }
.portrait .sticker { position: absolute; left: 332px; top: 596px; transform: rotate(-3deg); }

/* Contact */
.contact-row { display: flex; gap: 24px; align-items: flex-start; }
.form { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.form .two { display: flex; gap: 16px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.field .label { color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%; padding: 10px 16px;
  font: inherit; font-size: 15px; line-height: 24px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius-md);
  outline: none; transition: box-shadow .15s ease;
}
.field input { height: 42px; }
.field textarea { height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field textarea:focus { box-shadow: 3px 3px 0 var(--pink-300); }
.form-status { font-size: 13px; color: var(--ink-muted); }
.direct { width: 400px; flex-shrink: 0; height: 338px; display: flex; flex-direction: column; gap: 12px; }
.direct-card { flex: 1; display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius-md); }
.direct-card > img { width: 44px; height: 44px; }
.direct-card > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
button.btn { font-family: var(--font-sans); }
.inner.contact { padding-top: 64px; padding-bottom: 64px; gap: 32px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 32px; }
.tl-group > .sticker { transform: none; margin-bottom: 12px; }
.tl-row { display: flex; gap: 32px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.tl-row > .label { width: 170px; flex-shrink: 0; color: var(--ink-muted); }
.tl-row > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.tl-row .bullets { padding-top: 6px; font-size: 13px; line-height: 20px; }

@media (max-width: 1100px) {
  .about-hero { height: auto; padding-bottom: 72px; }
  .about-row { flex-direction: column; align-items: flex-start; gap: 48px; padding-top: 64px; }
  .portrait { width: min(500px, calc(100% - 20px)); height: auto; aspect-ratio: 500 / 640; }
  .portrait .sticker { left: auto; right: 24px; top: auto; bottom: 24px; }
  .contact-row { flex-direction: column; align-items: stretch; }
  .direct { width: 100%; height: auto; }
}
@media (max-width: 560px) {
  .form .two { flex-direction: column; }
  .tl-row { flex-direction: column; gap: 6px; }
}
