/* ==========================================================================
   Tess portfolio: stylesheet
   Style: WARM EDITORIAL, VINTAGE PRINT.
     - Cream paper, near-black ink, butter-yellow accent (#eed778).
     - Federo (Art Nouveau, bohemian capitals) for titles and headings,
       with a rough "printed ink" edge (SVG filters #ink / #ink-strong in each page).
     - Archivo for text; stretched wide, spaced capitals for fine print.
     - No italics.
   Motion, shapes and the nav, logo slider and phone frames come from
   my-design-kit (assets/kit), retuned to these colours below.

   Three layouts:
     1. Laptop (main layout) ............ above 1024px
     2. Laptop, tighter + bottom nav bar . 700px – 1024px
     3. Phone ........................... under 700px
   ========================================================================== */


/* ---------- Design settings (change these to restyle everywhere) ---------- */
:root {
  /* Colours */
  --bg: #f6f1ea;            /* cream page */
  --paper: #fffdf9;         /* cards */
  --ink: #1d1a17;           /* text */
  --muted: #5f5850;         /* secondary text */
  --line: #e2d9cc;          /* dividers, card borders */
  --wash: #efe7dc;          /* hover fills */
  --accent: #eed778;        /* butter yellow: fills, highlights, never small text on cream */
  --accent-deep: #e3c75a;   /* yellow, one step deeper (hover on yellow) */
  --night: #221d18;         /* warm near-black panels */
  --up: #1f7a45;            /* green for positive increases */
  --up-soft: #d9efdf;

  /* Type */
  --font-title: "Federo", "Optima", "Candara", sans-serif;               /* CLAY MEDIA / PORTFOLIO */
  --font-head: "Federo", "Optima", "Candara", sans-serif;                /* headings + big numbers */
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; /* text */
  --font-ui: "Tenor Sans", "Gill Sans", "Optima", sans-serif;           /* buttons, labels, tags, small print */

  /* Layout */
  --page-width: 1200px;     /* widest the content gets */
  --gutter: 48px;           /* space at the left and right edges */
  --section-gap: 112px;     /* space between sections */
  --gap: 32px;              /* space between columns and cards */
  --radius: 20px;           /* cards and images */
  --radius-sm: 12px;

  /* my-design-kit, retuned to this palette */
  --kit-card: var(--paper);
  --kit-border: var(--line);
  --kit-primary: var(--ink);
  --kit-primary-soft: var(--accent);   /* active nav pill = solid yellow */
  --kit-muted: var(--wash);
  --kit-muted-fg: var(--muted);
  --kit-focus: var(--ink);
}


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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

figure { margin: 0; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
em, i, cite { font-style: normal; }

/* ---------- Type ---------- */
h1 {
  font: 400 4rem/0.92 var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0 0 0.4em;
  filter: url(#ink-strong);
}
h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); filter: url(#ink); }
h3 { font-size: 1.7rem; line-height: 1.05; }
h4 { font-size: 1.3rem; }

/* Fine print: Tenor Sans capitals (buttons, labels, tags, captions, footer) */
.fine,
.cover-eyebrow,
.work-meta,
.case-meta,
figcaption,
.site-footer,
.button,
.case-nav a,
.page-home main > section:not(.cover) > h2::before {
  font-family: var(--font-ui);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* Links: ink text on a yellow marker stroke */
a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.38em;
  transition: background-size var(--kit-dur-colors) var(--kit-ease-colors);
}
a:hover { background-size: 100% 100%; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* Links that are buttons, nav pills or the logo get no marker */
.button, .kit-nav a, .case-nav a, .site-logo, .kit-coverflow a, .service-proof { background-image: none; }

/* Every top-level block shares the same width and edges */
.site-header,
main > section,
main > article,
.site-footer {
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section,
main > article {
  padding-block: calc(var(--section-gap) / 2);
}

/* Lists used as layouts, not bullet points */
.service-list,
.result-grid,
.press-list,
.case-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Small labels above headings */
.cover-eyebrow,
.work-meta,
.case-meta { font-size: 0.82rem; color: var(--muted); }

/* Numbered sections on the Home page: a yellow tag reading 01, 02, 03… */
.page-home main { counter-reset: section; }
.page-home main > section:not(.cover) > h2::before {
  counter-increment: section;
  content: counter(section, decimal-leading-zero);
  display: table;
  margin-bottom: 18px;
  padding: 5px 10px 4px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.4;
}


/* ---------- Buttons (kit motion: colour on hover, squish on tap) ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px 13px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--kit-dur-colors) var(--kit-ease-colors),
    border-color var(--kit-dur-colors) var(--kit-ease-colors),
    color var(--kit-dur-colors) var(--kit-ease-colors),
    scale var(--kit-spring-press-dur) var(--kit-spring-press);
}
.button:hover { background: var(--ink); color: var(--bg); }
.button:active { scale: var(--kit-press-scale); }

.button--primary { background: var(--accent); }
.button--primary:hover { background: var(--ink); color: var(--accent); }

/* White logos need a dark tile */
.logo-light { background: var(--night); }

/* The rough-edge filters are drawn by an invisible SVG */
.ink-filters { position: absolute; width: 0; height: 0; overflow: hidden; }


/* ==========================================================================
   1. LAPTOP (main layout)
   ========================================================================== */

/* ---------- Header & navigation ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
/* Clay logo, top left on every page. The drawing is black on white;
   "multiply" drops the white so it sits straight on the cream. */
.site-logo { display: block; line-height: 0; }
.site-logo img {
  height: 92px;
  width: auto;
  mix-blend-mode: multiply;
  transition: scale var(--kit-spring-press-dur) var(--kit-spring-press);
}
.site-logo:active img { scale: var(--kit-press-scale); }
/* Navigation = my-design-kit pill bar. In the header on laptop; the kit
   fixes it to the bottom of the screen at 1024px and below. */
.site-nav { --kit-nav-min-width: auto; }


/* ---------- Home: 1. Cover (big CLAY MEDIA title, no photo) ---------- */
.cover {
  padding-top: 72px !important;
  padding-bottom: 88px !important;
}
.cover-eyebrow { margin: 0 0 26px; }
.cover h1 {
  margin: 0;
  /* sized from the space available so "CLAY MEDIA" fills one line on laptop */
  font-size: min(12rem, calc((min(100vw, var(--page-width)) - 2 * var(--gutter)) / 6.45));
  line-height: 0.86;
  white-space: nowrap;
}
.cover-tagline {
  max-width: none;
  margin: 30px 0 0;
  font: 500 clamp(1.3rem, 2.2vw, 1.75rem)/1.35 var(--font-sans);
  color: var(--ink);
}
.cover-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 38px 0 0; }


/* ---------- Photo panels (About + Book a call) ----------
   A rounded panel with a festival photo behind a dark wash so text stays
   readable, and the photographer's credit bottom right. */
main > section.photo-panel {
  position: relative;
  overflow: hidden;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--page-width) - 2 * var(--gutter));
  margin-block: calc(var(--section-gap) / 2);
  border-radius: 28px;
  background-color: var(--night);
  background-size: cover;
  background-position: center;
  color: var(--bg);
  isolation: isolate;
}
main > section.photo-panel > .photo-credit {
  position: absolute;
  right: 22px;
  bottom: 16px;
  margin: 0;
  font: 400 0.71rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(246 241 234 / 0.75);
}

/* ---------- Home: 2. About me (photo | text, on a festival photo) ---------- */
.about {
  display: grid;
  grid-template-columns: 2fr 3fr;
  column-gap: calc(var(--gap) * 2);
  align-items: start;
  padding: 80px 56px 88px !important;
  background-image:
    linear-gradient(100deg, rgb(26 22 18 / 0.92) 0%, rgb(26 22 18 / 0.78) 45%, rgb(26 22 18 / 0.55) 100%),
    url("assets/img/festival-3.jpg");
}
.about h2 { grid-column: 1 / -1; margin-bottom: 40px; color: var(--bg); }
.about .about-text h3 { color: var(--accent); }
.about .about-text p { color: #e2d9cc; }
.about .about-text p:first-of-type { color: var(--bg); }
.about-photo img { box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.55); }
.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-text h3 { margin-top: 0; font-size: 2.2rem; }
.about-text p { font-size: 1.08rem; max-width: 58ch; }
.about-text p:first-of-type { font-size: 1.35rem; line-height: 1.5; font-weight: 500; }


/* ---------- Home: 7. Full portfolio banner (click-through) ----------
   Solid yellow panel so it can't be missed. */
main > section.portfolio-banner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: calc(var(--gap) * 1.5);
  align-items: center;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--page-width) - 2 * var(--gutter));
  margin-block: calc(var(--section-gap) / 2);
  padding: 64px 56px;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  background: var(--accent);
}
.banner-eyebrow {
  margin: 0 0 16px;
  font: 400 0.83rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.portfolio-banner h2 { margin: 0 0 14px; font-size: clamp(2.6rem, 4.6vw, 4rem); }
.banner-copy p:last-child { margin: 0; font-size: 1.1rem; max-width: 42ch; }
.banner-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.button--ink { background: var(--ink); color: var(--accent); }
.button--ink:hover { background: var(--paper); color: var(--ink); }
.banner-clients { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.banner-clients a {
  display: inline-flex;
  padding: 8px 14px 7px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: transparent;
  color: var(--ink);
  font: 400 0.76rem/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-image: none;
  transition:
    background-color var(--kit-dur-colors) var(--kit-ease-colors),
    scale var(--kit-spring-press-dur) var(--kit-spring-press);
}
.banner-clients a:hover { background: var(--paper); }
.banner-clients a:active { scale: var(--kit-press-scale); }


/* ---------- Home: 4. Videos by niche (kit coverflow) ---------- */
.videos h3 {
  margin: 44px 0 0;
  text-align: center;
  font-size: 2rem;
}
.niche + .niche { margin-top: 24px; }
.kit-coverflow__item figcaption { font-size: 0.78rem; }
/* Portfolio video grids */
.video-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.video video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--night);
  border-radius: var(--radius-sm);
}


/* ---------- Home: 5. Services (3 x 2 grid of cards that open) ----------
   Each card is a <details>: tap/click/Enter opens it to show what's
   included. Hover = yellow wash, open = solid yellow, tap = kit squish. */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
.service-card {
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color var(--kit-dur-colors) var(--kit-ease-colors);
}
.service-card summary {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "num   toggle"
    "title title"
    "text  text";
  row-gap: 12px;
  padding: 22px 22px 26px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: scale var(--kit-spring-press-dur) var(--kit-spring-press);
}
.service-card summary::-webkit-details-marker { display: none; }
.service-card summary:active { scale: var(--kit-press-scale); }
.service-card summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; border-radius: var(--radius); }
.service-card:hover { background: #f8eebf; }          /* light yellow wash */
.service-card[open] { background: var(--accent); }

.service-num {
  grid-area: num;
  align-self: center;
  justify-self: start;
  padding: 5px 10px 4px;
  border-radius: 6px;
  background: var(--accent);
  font: 400 0.76rem/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  transition: background-color var(--kit-dur-colors) var(--kit-ease-colors);
}
.service-card[open] .service-num { background: var(--paper); }
.service-card h3 { grid-area: title; margin: 6px 0 0; font-size: 2rem; }
.service-card summary p { grid-area: text; margin: 0; color: var(--muted); }
.service-card[open] summary p { color: var(--ink); }

/* Round + button that turns into × when open */
.service-toggle {
  grid-area: toggle;
  position: relative;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--paper);
  transition: rotate var(--kit-spring-glide-dur) var(--kit-spring-glide);
}
.service-toggle::before,
.service-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  background: var(--ink);
  border-radius: 2px;
}
.service-toggle::after { rotate: 90deg; }
.service-card[open] .service-toggle { rotate: 45deg; }

/* What's included */
.service-more { padding: 0 22px 24px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.service-tags li {
  padding: 8px 12px 7px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--paper);
  font: 400 0.76rem/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-proof { font-weight: 600; font-size: 0.92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.service-proof::after { content: " →"; }

/* Smooth open/close where supported (Chrome/Edge 131+); instant elsewhere */
@supports selector(::details-content) {
  .service-list { interpolate-size: allow-keywords; }
  .service-card::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size var(--kit-spring-glide-dur) var(--kit-spring-glide),
      content-visibility var(--kit-spring-glide-dur) allow-discrete;
  }
  .service-card[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card::details-content,
  .service-toggle { transition: none !important; }
}


/* ---------- Home: 6. Clients (kit logo slider, floating on the page) ---------- */
.client-marquee { --kit-marquee-logo-h: 76px; padding-block: 12px; }
.client-marquee img { object-fit: contain; }
/* The white logos are turned ink-black so they show on cream */
.client-marquee .logo-ink { filter: brightness(0); opacity: 0.88; }


/* ---------- Home: 5. Results (tap-to-flip grid, my-design-kit flip tiles) ----------
   Front: client, number (counts up), green arrow, label.
   Back (yellow): the story behind the number. One tile open at a time. */
.results-hint {
  margin: -6px 0 28px;
  font: 400 0.8rem/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.result-tile--feature { grid-column: span 2; grid-row: span 2; }
.result-tile--span-lg { grid-column: 1 / -1; }

.result-tile .kit-flip__face {
  padding: 22px 22px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color var(--kit-dur-colors) var(--kit-ease-colors);
}
.result-tile .kit-flip__front { background: var(--paper); }
.result-tile .kit-flip__back { background: var(--accent); }
.result-tile .kit-flip:hover .kit-flip__front { background: #f8eebf; }

.result-client {
  font: 400 0.76rem/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kit-flip__back .result-client { color: var(--ink); }

.result-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: auto 0 10px;          /* sits low in the tile */
  padding-top: 18px;
}
.result-tile strong {
  padding: 0 0.06em;
  font: 400 clamp(3rem, 4.6vw, 4.4rem)/0.95 var(--font-head);
  letter-spacing: 0.005em;
  /* yellow marker stroke behind the lower part of the number */
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 36%;
}
.result-tile--feature strong { font-size: clamp(5rem, 10vw, 9rem); }
.result-label { display: block; font-size: 1rem; line-height: 1.35; color: var(--ink); }
.result-tile--feature .result-label { font-size: 1.3rem; }

.result-story { margin: 14px 0 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.result-tile--feature .result-story { font-size: 1.45rem; line-height: 1.4; max-width: 30ch; }

.flip-hint {
  margin-top: 16px;
  font: 400 0.71rem/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.flip-hint::before { content: "↻  "; letter-spacing: 0; font-size: 0.9rem; }
.kit-flip__back .flip-hint { margin-top: auto; padding-top: 16px; color: var(--ink); }
.kit-flip__back .flip-hint::before { content: "↺  "; }

.results-more { margin-top: 28px; font-weight: 600; }
.results-more a::after { content: " →"; }

/* Green trend arrow */
.trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 8px;
  border-radius: var(--kit-radius-full);
  background: var(--up-soft);
  color: var(--up);
  font: 600 0.9rem/1 var(--font-sans);
  /* pops in after the number has counted up */
  opacity: 0;
  scale: 0.6;
  transition:
    opacity var(--kit-dur-fade) var(--kit-ease-out),
    scale var(--kit-spring-pop-dur) var(--kit-spring-pop);
}
.trend svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.result-top:has(.is-counted) .trend { opacity: 1; scale: 1; }
@media (prefers-reduced-motion: reduce) { .trend { opacity: 1; scale: 1; transition: none; } }


/* ---------- Home: 8. Contact / book a call (photo panel) ---------- */
main > section.contact {
  padding: 104px 48px 112px;
  text-align: center;
  background-image:
    radial-gradient(ellipse at center, rgb(26 22 18 / 0.72) 0%, rgb(26 22 18 / 0.86) 70%),
    url("assets/img/festival-4.jpg");
  background-position: center 40%;
}
.contact h2 { color: var(--accent); font-size: clamp(3.2rem, 7vw, 6rem); }
.page-home main > section.contact > h2::before { margin-inline: auto; }
.contact > p { max-width: 520px; margin-inline: auto; color: #d8cfc3; font-size: 1.1rem; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px !important; }
.contact .button { border-color: #6a5f54; color: var(--bg); }
.contact .button:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.contact .button--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.contact .button--primary:hover { background: var(--bg); border-color: var(--bg); }
.contact a:not(.button) { color: var(--bg); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 2px; }
.contact a:not(.button):hover { color: var(--ink); background-size: 100% 100%; }


/* ---------- Portfolio page ---------- */
.page-intro { padding-top: 48px !important; padding-bottom: 24px !important; }
.page-intro h1 { font-size: clamp(4rem, 10vw, 8.5rem); line-height: 0.88; margin-bottom: 36px; }
.page-intro .client-marquee { margin-top: 8px; }

.case-study { scroll-margin-top: 16px; }
.case-study h3 { margin-top: 56px; font-size: 2rem; }

/* Client header: logo floating on the page (no tile), name, one-word descriptor */
.case-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: calc(var(--gap) * 1.25);
  align-items: center;
}
.case-logo {
  grid-row: span 2;
  width: 100%;
  height: 110px;
  object-fit: contain;
  object-position: left center;
}
.case-header h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.6rem); }
.case-meta { margin: 12px 0 0; }

/* White logos shown in ink wherever they sit on cream */
.logo-ink { filter: brightness(0); }

/* What I did: same open-up cards as Home > Services */
.did-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card h4 { grid-area: title; margin: 6px 0 0; font-size: 1.7rem; line-height: 1.05; }
.did-result { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.did-result strong {
  font: 400 1.9rem/1 var(--font-head);
  padding: 0 0.06em;
  background: var(--paper);
  border-radius: 4px;
}
.did-result a { font-weight: 600; background-image: none; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Results: the Home page flip grid (.result-grid) */
.case-results > p:not(.results-hint) { margin: 0; font-size: 1.1rem; color: var(--muted); }

/* Ad creative: kit coverflow holding ad cards instead of phones */
.ad-flow { --kit-phone-w: 300px; --kit-cf-rotate: 38deg; }
.ad-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--kit-shadow-xl);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;   /* reads like the real ad */
  color: #1c1e21;
}
.ad-card__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ad-card__avatar {
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.ad-card__head span { display: flex; flex-direction: column; line-height: 1.2; }
.ad-card__head b { font-size: 0.85rem; }
.ad-card__head small { font-size: 0.72rem; color: #65676b; }
.ad-card__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ad-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f0f2f5;
}
.ad-card__headline { font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.ad-card__cta {
  flex: none;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e4e6eb;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Ad copy + CTA under each coverflow, following the centre ad */
.ad-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  align-items: baseline;
  max-width: 680px;
  margin: 8px auto 0;
  padding: 22px 24px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.ad-copy__label {
  font: 400 0.74rem/1.4 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ad-copy__text { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.ad-copy__cta {
  justify-self: start;
  padding: 7px 14px 6px;
  border-radius: var(--kit-radius-full);
  background: var(--accent);
  border: 1.5px solid var(--ink);
  font: 400 0.83rem/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.press-list { margin-top: 12px !important; }
.press-list li { padding: 12px 0; border-top: 1px dashed var(--line); font-size: 0.9rem; color: var(--muted); }
.press-list cite { display: block; font: 600 1rem/1.35 var(--font-sans); color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}
.gallery img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
}
.photography .gallery img { aspect-ratio: 4 / 5; object-fit: cover; border: 0; }
.photography > p { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.portfolio-cta { text-align: center; padding-block: calc(var(--section-gap) * 0.75) !important; }
.portfolio-cta h2 { font-size: clamp(3rem, 6vw, 5rem); }


/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 28px 36px;
  /* top rule drawn inside the gutters so it lines up with the content */
  background: linear-gradient(var(--ink), var(--ink)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1.5px no-repeat;
  font-size: 0.76rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }


/* ==========================================================================
   2. LAPTOP, TIGHTER + BOTTOM NAV BAR (1024px and below)
   Same columns as laptop, with less space and smaller type; the kit nav
   bar moves to the bottom of the screen.
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-gap: 80px;
    --gap: 20px;
    --radius: 18px;
  }

  /* Leave room for the fixed nav bar: 52px bar + 16px gap + 16px space */
  body { padding-bottom: 84px; }

  .cover { padding-top: 48px !important; padding-bottom: 64px !important; }
  main > section.portfolio-banner { grid-template-columns: 1fr; padding: 48px 40px; }
  .video-list { gap: 14px; }
  .gallery { gap: 12px; }
  .case-header { grid-template-columns: 160px 1fr; }
  .case-logo { height: 96px; }
  .did-list { grid-template-columns: repeat(2, 1fr); }
  main > section.contact { padding: 72px 32px 84px; }
  .about { padding: 64px 36px 72px !important; }
  .service-card h3 { font-size: 1.7rem; }
}


/* ==========================================================================
   3. PHONE (under 700px)
   Everything stacks into one column.
   ========================================================================== */
@media (max-width: 699px) {
  :root {
    --gutter: 20px;
    --section-gap: 64px;
    --gap: 16px;
    --radius: 16px;
  }
  body { font-size: 16px; }

  /* Cover: CLAY / MEDIA on two lines, filling the width */
  .cover { padding-top: 28px !important; padding-bottom: 48px !important; }
  .cover h1 { font-size: calc((100vw - 2 * var(--gutter)) / 3.45); line-height: 0.92; }
  .cover h1 span { display: block; }
  .cover-tagline { margin-top: 20px; font-size: 1.15rem; }
  .cover-actions { margin-top: 28px; }
  .cover-actions .button { flex: 1 1 0; padding-inline: 12px; }
  .button { font-size: 0.82rem; letter-spacing: 0.06em; white-space: nowrap; }

  /* Size the big titles to the screen */
  .page-intro h1 { font-size: calc((100vw - 2 * var(--gutter)) / 5.75); }

  /* About: photo above text */
  .about { grid-template-columns: 1fr; padding: 48px 22px 64px !important; }
  .about h2 { margin-bottom: 24px; }
  .about-photo { max-width: 340px; margin-bottom: 28px; }
  main > section.photo-panel { border-radius: 22px; }
  main > section.photo-panel > .photo-credit { right: 16px; bottom: 14px; }

  /* Single-column lists */
  .service-list,
  .case-results { grid-template-columns: 1fr; }

  /* Results: two tiles per row, feature + last tile full width */
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(180px, auto); gap: 12px; }
  .result-tile--feature { grid-column: span 2; grid-row: auto; }
  .result-tile--span-lg { grid-column: auto; }
  .result-tile--span-sm { grid-column: 1 / -1; }
  .result-tile .kit-flip__face { padding: 16px 14px 14px; }
  /* Federo numerals are wide: size them from the tile width (widest is "189,789") */
  .result-tile strong { font-size: min(3rem, calc((100vw - 114px) / 6.8)); }
  .result-tile--feature strong { font-size: min(5.5rem, calc((100vw - 71px) / 3.4)); }
  .result-label { font-size: 0.9rem; }
  .result-story { font-size: 0.92rem; }
  .result-tile--feature .result-story { font-size: 1.1rem; }
  .trend { padding: 4px 8px 4px 6px; font-size: 0.8rem; }
  .trend svg { width: 15px; height: 15px; }

  /* Portfolio banner */
  main > section.portfolio-banner { padding: 40px 22px; border-radius: 22px; }
  .banner-actions .button { width: 100%; }

  .service-card summary { padding: 18px 18px 22px; }
  .service-more { padding: 0 18px 20px; }

  /* Videos and galleries: two per row */
  .video-list,
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Logo slider: smaller logos */
  .client-marquee { --kit-marquee-logo-h: 52px; }

  /* Contact panel */
  main > section.contact { padding: 64px 22px 72px; }
  .contact-actions .button { flex: 1 1 100%; }

  /* Portfolio */
  .case-header { grid-template-columns: 1fr; row-gap: 8px; }
  .case-logo { grid-row: auto; width: 170px; height: 76px; margin-bottom: 10px; }
  .did-list { grid-template-columns: 1fr; }
  .ad-flow { --kit-phone-w: min(74vw, 300px); }
  .ad-copy { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .ad-copy__cta { margin-bottom: 0; }


  /* Footer stacks */
  .site-footer { flex-direction: column; gap: 6px; }
}

@media (max-width: 1024px) { .site-logo img { height: 76px; } }
@media (max-width: 699px) { .site-logo img { height: 64px; } }

/* Tunes On The Bay ad avatar: white logo on a dark circle (no black-out filter) */
.ad-card__avatar.logo-ink { filter: none; background: #1c1e21; border-color: #1c1e21; }

/* ==========================================================================
   Portfolio, round 3
   ========================================================================== */
/* Client headers: logo only (the name is the image's alt text) */
.case-header { display: block; margin-bottom: 32px; }
.case-title { margin: 0; line-height: 0; }
.case-title .case-logo { height: 120px; width: auto; max-width: 100%; }

/* What I did: plain numbered cards (no tap / results inside) */
.service-card.did-card {
  display: grid;
  grid-template-areas: "num" "title" "text" "status";
  justify-items: start;
  row-gap: 12px;
  padding: 22px 22px 24px;
  cursor: default;
}
.service-card.did-card:hover { background: var(--paper); }
.did-card .service-num { grid-area: num; }
.did-card h4 { grid-area: title; }
.did-card > p:not(.did-status) { grid-area: text; margin: 0; color: var(--muted); }
.did-status {
  grid-area: status;
  margin: 4px 0 0;
  padding: 7px 12px 6px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--accent);
  font: 400 0.74rem/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Tunes On The Bay: targeting */
.case-targeting > p { max-width: 68ch; font-size: 1.12rem; line-height: 1.6; }
.targeting-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.targeting-group {
  padding: 20px 22px 22px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.targeting-label {
  display: block;
  margin-bottom: 14px;
  font: 400 1.5rem/1 var(--font-head);
  text-transform: uppercase;
}
.targeting-group .service-tags { margin: 0; }

@media (max-width: 1024px) { .case-title .case-logo { height: 100px; } }
@media (max-width: 699px) {
  .case-title .case-logo { height: 80px; }
  .targeting-groups { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Discipline pages (social.html, paid-social.html, crm.html, pr.html)
   Order on each page: title + tabs → Results → My approach → Case studies
   ========================================================================== */
.page-discipline .page-intro { padding-bottom: 8px !important; }
.page-discipline .page-intro h1 { margin-bottom: 28px; }

/* Tabs to switch between the four disciplines */
.discipline-tabs ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.discipline-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px 9px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--paper);
  color: var(--ink);
  font: 400 0.86rem/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-image: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--kit-dur-colors) var(--kit-ease-colors),
    scale var(--kit-spring-press-dur) var(--kit-spring-press);
}
.discipline-tabs a:hover { background: var(--wash); }
.discipline-tabs a:active { scale: var(--kit-press-scale); }
.discipline-tabs a[aria-current="page"] { background: var(--accent); }

/* Section headings on these pages */
.discipline-results h2,
.discipline-approach h2,
.discipline-cases h2 { margin-bottom: 28px; }

/* Case studies */
.discipline-cases .case-study + .case-study { margin-top: 64px; }
.case-study .case-title { margin: 0; }
.case-summary { max-width: 64ch; margin: 0 0 8px; font-size: 1.12rem; line-height: 1.6; }
.case-status {
  display: inline-block;
  margin-left: 6px;
  padding: 5px 11px 4px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--accent);
  font: 400 0.72rem/1.3 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.case-subhead { margin: 40px 0 16px; font-size: 1.5rem; }

/* PR coverage */
.coverage-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.coverage-list li {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: 20px 22px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}
.coverage-outlet { font: 400 1.35rem/1.1 var(--font-head); text-transform: uppercase; }
.coverage-headline { font-size: 1.05rem; line-height: 1.45; }
.coverage-date { font: 400 0.76rem/1.3 var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* End of page: book a call + next discipline */
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 699px) {
  /* size each big title to the screen (ratio set per page: style="--title-fit: …") */
  .page-discipline .page-intro h1 { font-size: min(5.5rem, calc((100vw - 2 * var(--gutter)) / var(--title-fit, 6))); }
  .discipline-tabs ul { gap: 8px; }
  .discipline-tabs a { min-height: 40px; padding: 9px 14px 8px; font-size: 0.78rem; }
  .coverage-list li { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .case-status { margin: 8px 0 0; }
  .cta-actions .button { flex: 1 1 100%; }
}

/* ==========================================================================
   Home, round 6
   ========================================================================== */
/* Results: five tiles; the last one spans two columns on laptop so the grid is full */
.result-tile--span-2 { grid-column: span 2; }

/* Bespoke assets: one coverflow (no niche headings) */
.videos .kit-coverflow { margin-top: 8px; }

@media (max-width: 699px) {
  .result-tile--span-2 { grid-column: auto; }

  /* Services: a two-across grid instead of one long list.
     The card you open stretches across both columns. */
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .service-list > li:has(.service-card[open]) { grid-column: 1 / -1; }
  .service-card summary { row-gap: 8px; padding: 14px 14px 16px; }
  .service-card h3 { font-size: 1.2rem; line-height: 1.1; }
  .service-card summary p { font-size: 0.84rem; line-height: 1.4; }
  .service-toggle { width: 30px; height: 30px; }
  .service-toggle::before,
  .service-toggle::after { width: 12px; margin-left: -6px; }
  .service-more { padding: 0 14px 16px; }
}

/* About me: "Skilled in" tool pills (same shape as the discipline buttons, cream on the dark photo) */
.about-skills { margin-top: 28px; }
.about-skills h4 { margin: 0 0 14px; font-size: 1.5rem; color: var(--accent); }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.skill-list li {
  padding: 10px 18px 9px;
  border: 1.5px solid rgb(246 241 234 / 0.7);
  border-radius: var(--kit-radius-full);
  color: var(--bg);
  font: 400 0.86rem/1 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 699px) {
  .skill-list { gap: 8px; }
  .skill-list li { padding: 9px 14px 8px; font-size: 0.78rem; }
}

/* ==========================================================================
   Social media page: My approach as flip cards (my-design-kit .kit-flip)
   Front: number + step name. Back (yellow): the detail. One open at a time.
   ========================================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.approach-tile .kit-flip__face {
  padding: 22px 22px 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  transition: background-color var(--kit-dur-colors) var(--kit-ease-colors);
}
.approach-tile .kit-flip__front { background: var(--paper); }
.approach-tile .kit-flip__back { background: var(--accent); }
.approach-tile .kit-flip:hover .kit-flip__front { background: #f8eebf; }
.approach-num {
  align-self: flex-start;
  padding: 5px 10px 4px;
  border-radius: 6px;
  background: var(--accent);
  font: 400 0.76rem/1.4 var(--font-ui);
  letter-spacing: 0.08em;
}
.kit-flip__back .approach-num { background: var(--paper); }
.approach-title {
  margin-top: auto;
  padding-top: 24px;
  font: 400 1.75rem/1.1 var(--font-head);
  text-transform: uppercase;
}
.approach-text { margin-top: 16px; font-size: 1.05rem; line-height: 1.5; }
.approach-tile .flip-hint { margin-top: 14px; }
.approach-tile .kit-flip__back .flip-hint { margin-top: auto; }
.approach-tile .kit-flip__front .flip-hint::before { content: "↻  "; }

/* Case studies: results first, then the reels */
.page-discipline #results { margin-bottom: 8px; }
.reels { margin-top: 56px; }
.reels-title { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; font-size: 2rem; }
.reels-title .case-logo { height: 64px; width: auto; }

@media (max-width: 1024px) {
  .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  .approach-grid { grid-auto-rows: minmax(170px, auto); gap: 10px; }
  .approach-tile .kit-flip__face { padding: 14px 14px 12px; }
  .approach-title { padding-top: 16px; font-size: 1.2rem; }
  .approach-text { margin-top: 10px; font-size: 0.86rem; line-height: 1.4; }
  .reels-title .case-logo { height: 48px; }
  .reels-title { font-size: 1.6rem; }
}

/* Case study examples under the results (all discipline pages) */
.case-example { margin-top: 56px; }
.reels-title { flex-wrap: wrap; row-gap: 10px; }
.reels-title .case-status { margin-left: 4px; font-family: var(--font-ui); font-size: 0.72rem; }
.case-example .targeting-groups { margin: 8px 0 32px; }
/* four approach cards (CRM) sit 2 × 2 instead of 3 + 1 */
.approach-grid:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* very small phones: long step names (e.g. "Optimisation") need the full width */
@media (max-width: 359px) {
  .approach-grid,
  .approach-grid:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; grid-auto-rows: minmax(130px, auto); }
}
.approach-title { overflow-wrap: anywhere; }

/* ==========================================================================
   Paid social: one ad coverflow (carousel cards, aerial videos, Tunes On The Bay)
   ========================================================================== */
/* Video ads: 4:5 feed format inside the Meta-style card */
.ad-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.ad-card__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-card__media .kit-phone__play { z-index: 2; }
.ad-item--video.is-playing .ad-card__media video { object-fit: contain; }

/* Ad copy box: the centre ad's copy + the copy strategy */
.copy-strategy { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.copy-strategy li {
  padding: 7px 14px 6px;
  border: 1.5px solid var(--ink);
  border-radius: var(--kit-radius-full);
  background: var(--paper);
  font: 400 0.76rem/1.2 var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.copy-strategy li.is-cta { background: var(--accent); }

/* Seven approach cards (Paid social): first and last span two columns so the
   3-column grid fills evenly (2+1 / 3 / 1+2). On 2 columns, the last spans both. */
.approach-grid:has(> li:nth-child(7):last-child) > li:first-child,
.approach-grid:has(> li:nth-child(7):last-child) > li:last-child { grid-column: span 2; }
@media (max-width: 1024px) {
  .approach-grid:has(> li:nth-child(7):last-child) > li:first-child { grid-column: auto; }
}
@media (max-width: 359px) {
  .approach-grid:has(> li:nth-child(7):last-child) > li:last-child { grid-column: auto; }
}

/* Copy strategy box (no ad copy) */
.ad-copy--strategy { grid-template-columns: auto 1fr; align-items: center; }
@media (max-width: 699px) { .ad-copy--strategy { grid-template-columns: 1fr; } }

/* ==========================================================================
   CRM page examples: email recording, automation screenshot, SMS phone
   ========================================================================== */
.crm-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.browser-frame,
.automation-card {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--kit-shadow-xl);
}
.browser-frame__bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1.5px solid var(--ink); background: var(--wash); }
.browser-frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.browser-frame video { display: block; width: 100%; aspect-ratio: 900 / 720; object-fit: cover; background: #fff; }
.automation-card img { display: block; width: 100%; height: auto; background: #fff; }
.browser-frame figcaption,
.automation-card figcaption { margin: 0; padding: 10px 14px; border-top: 1.5px solid var(--ink); color: var(--ink); }

.sms-layout { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.sms-layout .kit-messages { margin: 0; }
.sms-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; max-width: 420px; }
.sms-points li { padding: 18px 20px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); color: var(--muted); }
.sms-points b { display: block; margin-bottom: 4px; font: 400 1.4rem/1.1 var(--font-head); text-transform: uppercase; color: var(--ink); }
.sms-points li:first-child { background: var(--accent); color: var(--ink); }

@media (max-width: 1024px) {
  .crm-grid { grid-template-columns: 1fr; }
  .automation-card { max-width: 380px; }
  .sms-layout { gap: 28px; }
}
@media (max-width: 699px) {
  .sms-layout { grid-template-columns: 1fr; justify-items: center; }
  .sms-layout .kit-messages { --kit-phone-w: min(76vw, 280px); }
  .sms-points { max-width: none; width: 100%; }
}

/* ==========================================================================
   CRM: welcome automation as a flow (left → right on laptop, top ↓ on phone)
   Steps reveal one after another when scrolled into view (site.js adds .is-in).
   ========================================================================== */
.flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.flow-step {
  flex: 0 1 auto;
  min-width: 0;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--kit-shadow-xl);
  overflow: hidden;
}
.flow-step--trigger { flex-basis: 250px; }
.flow-step--email { flex: 1 1 340px; }
.flow-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font: 400 1.15rem/1.1 var(--font-head);
  text-transform: uppercase;
}
.flow-step--trigger .flow-step__head { background: #fbe3ea; }
.flow-step--wait .flow-step__head { background: #e6e1f7; }
.flow-step--email .flow-step__head { background: #dcf0f1; }
.flow-step--exit { border-radius: var(--kit-radius-full); box-shadow: none; background: var(--wash); }
.flow-step--exit .flow-step__head { padding: 8px 18px 8px 10px; }
.flow-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
}
.flow-step--trigger .flow-icon { background: #d6436e; border-radius: 50%; }
.flow-step--wait .flow-icon { background: #8b7fd6; rotate: 45deg; border-radius: 8px; }
.flow-step--wait .flow-icon svg { rotate: -45deg; }
.flow-step--email .flow-icon { background: #2f8c8f; }
.flow-step--exit .flow-icon { background: #4a4a4a; border-radius: 50%; }
.flow-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-step__body { display: block; padding: 14px 16px 16px; font-size: 0.98rem; line-height: 1.45; }
.flow-step__body u { text-underline-offset: 3px; }
.flow-email__subject { display: block; font-size: 1.05rem; }
.flow-tag { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fbf6e3; font-size: 0.92rem; }
.flow-email__preview { display: block; margin: 4px 0 12px; color: var(--muted); }
.flow-email {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.flow-email__logo { height: 40px; width: auto; }
.flow-email__text { font-size: 0.82rem; color: #333; max-width: 30ch; }
.flow-email__button {
  width: 100%;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 4px;
  background: #e9a04a;
  color: #fff;
  font: 600 0.78rem/1.2 var(--font-sans);
  text-transform: uppercase;
}

/* arrows between steps */
.flow-arrow { position: relative; flex: 0 0 48px; height: 2px; margin: 0 4px; background: var(--ink); }
.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  translate: 0 -50%;
  rotate: 45deg;
}

/* step-by-step reveal */
.flow-step, .flow-arrow {
  opacity: 0;
  translate: 0 10px;
  transition:
    opacity var(--kit-dur-fade) var(--kit-ease-out),
    translate var(--kit-spring-pop-dur) var(--kit-spring-pop);
}
.flow.is-in > * { opacity: 1; translate: 0 0; }
.flow.is-in > :nth-child(2) { transition-delay: 0.25s; }
.flow.is-in > :nth-child(3) { transition-delay: 0.45s; }
.flow.is-in > :nth-child(4) { transition-delay: 0.7s; }
.flow.is-in > :nth-child(5) { transition-delay: 0.9s; }
.flow.is-in > :nth-child(6) { transition-delay: 1.15s; }
.flow.is-in > :nth-child(7) { transition-delay: 1.35s; }
@media (prefers-reduced-motion: reduce) {
  .flow-step, .flow-arrow { opacity: 1; translate: none; transition: none; }
}

/* tablet + phone: top to bottom */
@media (max-width: 1024px) {
  .flow { flex-direction: column; align-items: stretch; max-width: 440px; }
  .flow-step--trigger, .flow-step--email { flex: none; }
  .flow-step--wait, .flow-step--exit { align-self: center; }
  .flow-arrow { flex: none; align-self: center; width: 2px; height: 36px; margin: 4px 0; }
  .flow-arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; translate: -50% 0; rotate: 135deg; }
}

/* Work pages: smaller section headings (Reels, Creative, Welcome automation,
   SMS, Coverage) match the size of "Case studies" */
.case-example .reels-title {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  filter: url(#ink);
  margin-bottom: 20px;
}

/* Welcome automation: centred */
.flow { justify-content: center; }
@media (max-width: 1024px) { .flow { margin-inline: auto; } }
