/* brittanycarcova.com: shared styles. Mobile first; desktop overrides at 900px. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1b1340;
  --body: #2d2457;
  --iris: #5b44b0;
  --lavender: #b9a8f2;
  --apricot: #ffd3a8;
  --paper: #f4efe9;
  --white: #ffffff;
  --glass: rgba(70, 60, 150, 0.55);
  --shadow: 0 20px 40px rgba(40, 25, 89, 0.25);
  --shadow-soft: 0 12px 32px rgba(40, 25, 89, 0.12);
  --radius-card: 24px;
  --radius-btn: 16px;
  --max: 1280px;
  --gutter: 20px;
  --section: 80px;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --text: "Geist", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--iris); text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: 32px; line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--text);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2a1f5c; box-shadow: var(--shadow-soft); }
.btn-secondary {
  background: var(--glass);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(70, 60, 150, 0.7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:not(.btn):hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; }
.nav .btn { min-height: 40px; padding: 10px 16px; font-size: 15px; }

/* Hero: brushstroke sky that fades to white, never the subject */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 0;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1000px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.75) 78%, #fff 95%),
    url("/assets/art/texture-sky.jpg") center top / cover no-repeat;
}
.hero h1 {
  color: var(--white);
  max-width: 15ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(40, 25, 89, 0.25);
}
.hero-sub {
  color: var(--white);
  max-width: 34em;
  margin: 18px auto 0;
  text-shadow: 0 1px 14px rgba(40, 25, 89, 0.35);
}
.hero .btn-row { justify-content: center; margin-top: 28px; }
/* Hero work cluster, built from layers so the motion stays slow:
   the Ledger scrolls once, and the phone and card each crossfade on their own long timer. */
.hero-visual {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1 / 0.98;
  margin: 28px auto 0;
  text-align: left;
  container-type: inline-size;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.laptop { position: absolute; left: 6%; top: 29%; width: 88%; }
.laptop-screen {
  aspect-ratio: 16 / 10;
  padding: 2.2% 2.2% 3%;
  background: #0d0b16;
  border-radius: 2cqw 2cqw 0.6cqw 0.6cqw;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px #3a3650 inset;
}
.laptop-screen img { border-radius: 3px; object-position: top left; }
.laptop-base {
  width: 112%;
  margin-left: -6%;
  height: 0;
  padding-bottom: 2.4%;
  border-radius: 0.3cqw 0.3cqw 2cqw 2cqw;
  background: linear-gradient(180deg, #e4e0ef, #b6b0c9);
  box-shadow: 0 22px 34px rgba(40, 25, 89, 0.28);
}
.ledger {
  position: absolute;
  left: 21%;
  top: 0;
  width: 44%;
  height: 43%;
  background: #fff;
  border-radius: 1.7cqw;
  overflow: hidden;
  transform: rotate(-3deg);
  box-shadow: 0 20px 40px rgba(40, 25, 89, 0.25);
  display: flex;
  flex-direction: column;
}
.ledger-bar { flex: none; display: flex; gap: 0.7cqw; padding: 1.25cqw 1.7cqw; background: #efeaf8; }
.ledger-bar span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #cbc2e6; }
.ledger-view { flex: 1; overflow: hidden; }
.ledger-view img { height: auto; object-fit: initial; }
.js .ledger-view img { animation: ledger-scroll 16s cubic-bezier(0.45, 0, 0.3, 1) 1.5s both; }
@keyframes ledger-scroll { to { transform: translateY(-21%); } }
.phone {
  position: absolute;
  left: 65%;
  top: 25%;
  width: 26%;
  aspect-ratio: 9 / 18.6;
  padding: 2.2%;
  background: #12101c;
  border-radius: 5cqw;
  transform: rotate(3deg);
  box-shadow: 0 24px 40px rgba(40, 25, 89, 0.32), 0 0 0 1.5px #3a3650 inset;
}
.phone img, .social img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.phone img { inset: 2.2%; width: 95.6%; height: 95.6%; border-radius: 3.8cqw; }
.phone img.is-active, .social img.is-active { opacity: 1; }
.social {
  position: absolute;
  left: 1%;
  top: 63%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 2.5cqw;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: 0 24px 40px rgba(40, 25, 89, 0.3);
  background: #0e2a25;
}

/* Proof row */
.proof { padding: 40px 0 var(--section); }
.proof-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
  max-width: 1040px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  /* Scales down on narrow phones so "4,700+" fits its half-width column */
  font-size: clamp(30px, 10.5vw, 44px);
  white-space: nowrap;
  line-height: 1;
  color: var(--ink);
}
.stat-label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--body); }

/* Sections */
.section { padding: var(--section) 0; }
.section-head { margin-bottom: 32px; }
.section-head p { margin-top: 12px; max-width: 40em; }

/* Work cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: block;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper); }
.card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-body { padding: 22px 24px 26px; }

/* Collage: real work pieces laid out on the lavender-to-apricot wash.
   Positions are percentages of the frame, so it scales from a card to a full hero. */
.collage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 15% 90%, rgba(255, 211, 168, 0.9), transparent 70%),
    radial-gradient(50% 60% at 90% 15%, rgba(243, 203, 166, 0.7), transparent 70%),
    linear-gradient(160deg, #b9a8f2, #c9b6ee 55%, #e9c3c0);
}
.collage > * {
  position: absolute;
  border-radius: 1.2cqw;
  box-shadow: 0 1.6cqw 3cqw rgba(40, 25, 89, 0.28);
  overflow: hidden;
}
.collage-uli { container-type: inline-size; }
.collage { transition: transform 0.3s ease; }
.collage img { object-fit: cover; }
.c-ratner { left: 4%; top: 13%; width: 23%; aspect-ratio: 2 / 3; transform: rotate(-3deg); }
.c-site { left: 27%; top: 8%; width: 48%; background: #fff; transform: rotate(1deg); }
.c-site img { display: block; width: 100%; aspect-ratio: 2371 / 1209; border-radius: 0; box-shadow: none; }
.c-bar { display: flex; gap: 0.6cqw; padding: 1cqw 1.2cqw; background: #efeaf8; }
.c-bar span { width: 1cqw; height: 1cqw; border-radius: 50%; background: #cbc2e6; }
.c-spruce { left: 78%; top: 14%; width: 18.5%; aspect-ratio: 1; transform: rotate(3deg); }
.c-barclays { left: 31%; top: 52%; width: 38%; aspect-ratio: 3 / 2; transform: rotate(-1.5deg); }
.c-invite { left: 71%; top: 55%; width: 24%; aspect-ratio: 1667 / 1486; transform: rotate(2deg); }
.card-company { display: block; font-size: 15px; color: var(--iris); font-weight: 500; }
.card h3 { margin-top: 6px; }
.card-num {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #efeafc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card:hover .card-media > img, .card:hover .collage { transform: scale(1.03); }

/* Homepage big wins: numbers only, no imagery */
/* The swim cap red: the homepage headline period, the nav name on inner pages, and the favicon. Nowhere else. */
.hero h1 .dot, .brand .dot { color: #e8473c; }
.wins { padding-top: 56px; }
.wins h2 { margin-bottom: 28px; }
.win-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
.win {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 26px 28px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.win:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.win-company { font-size: 15px; font-weight: 500; color: var(--iris); }
.win-num {
  margin-top: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--ink);
}
.win-line { margin-top: 14px; font-size: 16px; line-height: 1.5; }

/* Homepage selected work: three teasers with a cropped detail */
.teaser-media { margin: 12px 12px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.teaser-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .teaser-media img { transform: scale(1.04); }
.card-more { display: block; margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--iris); }
.see-all { margin-top: 40px; }

/* Rounded texture panels */
.panel {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--panel-bg) var(--panel-pos, center) / cover no-repeat;
}
.panel h2, .panel p { color: var(--white); }

/* The panel bleeds outward by its own side padding, so its text shares the page's left edge.
   The bleed is capped by the space actually left beside the column. */
.how .panel {
  --panel-bg: linear-gradient(90deg, rgba(27, 19, 64, 0.62), rgba(27, 19, 64, 0.38)), url("/assets/art/texture-sky-upper.jpg");
  --panel-pos: center 12%;
  --bleed: min(64px, calc((100vw - 16px - min(1280px, 100vw - 16px)) / 2 + var(--gutter)));
  margin-inline: calc(-1 * var(--bleed));
  padding: 48px var(--bleed);
}
.how .panel h2 { max-width: 18ch; }
.how-text { margin-top: 24px; max-width: 44em; }
.how-text p { color: var(--white); }

/* Homepage social wall */
.wall { padding-top: 0; }
.wall-figure { margin: 28px 0 0; }
.wall-media { border-radius: var(--radius-card); overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; }
.wall-media video { width: 100%; height: 100%; object-fit: cover; }
.caption { margin-top: 14px; font-size: 15px; color: var(--body); }

/* Closing band: just the question and two buttons, centered on white */
.closing { padding: 24px 0 var(--section); }
.closing-inner { text-align: center; }
.how + .closing { padding-top: var(--section); }
.closing h2 { max-width: 20ch; margin: 0 auto; color: var(--ink); }
.closing .btn-row { justify-content: center; margin-top: 28px; }

/* Footer: the only place the full painting appears */
.site-footer {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: var(--white);
  font-size: 15px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 26%, rgba(27, 19, 64, 0) 60%, rgba(27, 19, 64, 0.55) 100%),
    url("/assets/art/hero-scene-east-meets-west.jpg") center 60% / cover no-repeat;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 160px;
  padding-bottom: 28px;
}
.footer-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--white); }
.footer-note { margin: 0; opacity: 0.95; }

/* ---------- Inner pages ---------- */
.inner main { padding-top: 132px; }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1.5px #d9d1f3 inset; }
.btn-outline:hover { box-shadow: 0 0 0 1.5px var(--iris) inset; }

.page-head { padding: 24px 0 48px; }
.page-intro { margin-top: 16px; max-width: 34em; font-size: 1.1em; }

/* Case study */
.cs-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.cs-media video, .cs-media > img { width: 100%; height: 100%; object-fit: cover; }
.cs-head { padding-bottom: 32px; max-width: 900px; }
.cs-company { margin: 0 0 8px; color: var(--iris); font-weight: 500; font-size: 17px; }
.cs-headline {
  display: inline-block;
  margin: 20px 0 0;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  background: #efeaf8;
  color: var(--ink);
  font-weight: 500;
}
.cs-section { padding: 40px 0; }
.cs-section h2 { margin-bottom: 20px; }
.cs-narrow { max-width: 880px; }
.cs-narrow-text { max-width: 760px; }
.cs-summary { font-size: 1.15em; line-height: 1.5; color: var(--ink); }
.cs-stats {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px 24px;
}
.cs-stats .stat-num { font-size: clamp(30px, 8vw, 46px); white-space: normal; line-height: 1.05; }
.cs-stats .stat-label { margin-top: 8px; }
.cs-list { margin: 0; padding-left: 0; max-width: 46em; }
.cs-list li { margin-bottom: 0.7em; padding-left: 0.2em; list-style-position: outside; }
.cs-list li::marker { color: var(--iris); }
.cs-result { font-size: 1.1em; color: var(--ink); }
.cs-player { border-radius: var(--radius-card); overflow: hidden; background: #000; box-shadow: var(--shadow-soft); }
.cs-player video { width: 100%; aspect-ratio: 16 / 9; }
.cs-gallery-wrap { margin-top: 28px; }
.cs-next { padding-bottom: var(--section); }
.card-grid.card-grid-single { max-width: 620px; grid-template-columns: 1fr; }

/* Case study results and Work page More results: big-wins cards.
   Flex rows are centered, so 3, 5 or 6 cards never leave an empty slot:
   6 go 1, 2 or 3 across; 5 go 1, then 3 and 2, then 5 across; 3 go 1 or 3 across. */
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.results > li { flex: 0 0 100%; min-width: 0; }
.cs-role { font-size: 1.1em; color: var(--ink); }
div.win:hover { transform: none; box-shadow: var(--shadow-soft); }
.more-results { padding-top: 0; }
.more-results h2 { margin-bottom: 28px; }
/* Three cards, always exactly the same height: one column on phones, three across from 760px */
.more-results .results { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
@media (min-width: 760px) { .more-results .results { grid-template-columns: repeat(3, 1fr); } }

/* Learning hub writing and calculators */
.article-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.article {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 26px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-meta { font-size: 15px; color: var(--iris); font-weight: 500; }
.article h3 { margin-top: 8px; font-size: 22px; }
.article p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; }
.article .card-more { margin-top: auto; padding-top: 18px; }
.article-tool { background: linear-gradient(160deg, #f1ecfd, #fdf0e4); box-shadow: none; }
.tools-title { margin-top: 48px; }
.tools-title + .article-grid { margin-top: 18px; }

/* Learning hub social: a swipeable row on phones, 3 x 2 on tablets, one row of six on desktop */
.social-row.social-row-six { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
.social-row.social-row-six::-webkit-scrollbar { display: none; }
.social-row.social-row-six .gallery-item { flex: 0 0 62%; scroll-snap-align: start; }
@media (min-width: 640px) {
  .social-row.social-row-six { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 16px; }
}
@media (min-width: 1000px) {
  .social-row.social-row-six { grid-template-columns: repeat(6, 1fr); }
}
/* Learning hub social: one short row */
.social-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.social-row .gallery-item { margin: 0; }

/* Work page: one wide featured card, then six */
.card-featured .card-media { aspect-ratio: 16 / 9; }

/* Revision 3 case study parts. Everything shares the wrap's left edge. */
.cs-text { max-width: 46em; }
.results-three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
/* Brand system results: three boxes joined by arrows, stacked on phones */
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tile-arrow { align-self: center; color: var(--iris); font-size: 28px; line-height: 1; transform: rotate(90deg); }
.tile {
  padding: 28px 24px;
  border-radius: var(--radius-card);
  background: #eee8ff;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
}
.tiles-line { margin-top: 24px; }
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
.guide-grid .gallery-item { margin: 0; }
.cs-media-after { margin-top: 40px; }
.screen-pair { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; align-items: start; }
.screen-pair .gallery-item { margin: 0; }

.carousel { border-radius: var(--radius-card); background: var(--paper); padding: 20px; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 20px; }
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.slide img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow-soft); }
.slide-small img { width: 62%; }
.slide-pair > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; align-items: center; }
.slide figcaption { margin-top: 14px; font-size: 15px; color: var(--body); align-self: flex-start; }
.carousel-nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.carousel-nav button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 24px; line-height: 1; box-shadow: var(--shadow-soft);
}
.carousel-count { font-size: 15px; color: var(--body); }

/* Event blocks: one lead photo, at most two small ones beside it */
.photo-block { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
.photo-block .gallery-item { margin: 0; }
.photo-lead img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; height: auto; }
.photo-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-side .gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; }
/* A single small photo stays small on phones instead of leaving a half-empty row */
.photo-side-one { grid-template-columns: 1fr; max-width: 60%; }
.photo-side-one .gallery-item img { aspect-ratio: auto; }

/* Next project: a bright purple panel, no image */
.next-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  background: #5b44b0;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.next-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.next-label { font-size: 15px; font-weight: 500; opacity: 0.85; }
.next-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; }

/* Masonry gallery that opens in a lightbox */
.gallery { columns: 2 150px; column-gap: 14px; }
.gallery-item {
  display: block;
  margin-bottom: 14px;
  break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  background: rgba(27, 19, 64, 0.92);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(27, 19, 64, 0.6); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; border-radius: 12px; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Brand system flow: three steps that land left to right */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.flow-step {
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, #b9a8f2, #f3cba6);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  text-align: center;
}
.flow-arrow { align-self: center; color: var(--iris); font-size: 28px; transform: rotate(90deg); }

/* Case study 7 hero collage drifts very slowly */
.cs-media .collage { container-type: inline-size; }
.js .collage-float > * { animation: drift 9s ease-in-out infinite alternate; }
.js .collage-float > :nth-child(2n) { animation-delay: -4.5s; }
@keyframes drift { to { translate: 0 -1.2%; } }

/* About */
.about-row { padding: 0 0 56px; }
.about-grid { display: grid; gap: 28px; align-items: center; }
.about-photo img, .about-art img { width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.about-photo { max-width: 420px; }
.about-text h1 { margin-bottom: 20px; }
.about-text h2 { margin: 32px 0 16px; }
.about-text .btn-row { margin-top: 24px; }

/* Contact */
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-list .btn { min-height: 56px; padding: 16px 24px; }

@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-pair { grid-template-columns: 1fr 1fr; }
  /* A 2fr lead at 4:3 is as tall as two 1fr photos at 4:3 stacked, so the block has no gaps */
  .photo-block { grid-template-columns: 2fr 1fr; align-items: start; }
  .photo-block-big { grid-template-columns: 7fr 3fr; }
  .photo-block-big .photo-lead img { aspect-ratio: 3 / 2; }
  .photo-block .photo-side { grid-template-columns: 1fr; }
  /* One small photo: a narrow column at its own shape, so low-resolution shots stay small */
  .photo-block:has(.photo-side-one) { grid-template-columns: 3fr 1fr; }
  .photo-side-one { max-width: none; }
  .results-6 > li { flex-basis: calc((100% - 20px) / 2); }
  .results-5 > li, .results-3 > li { flex-basis: calc((100% - 40px) / 3); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid-three { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .work-featured { grid-column: 1 / -1; }
  .gallery { columns: 3 200px; column-gap: 18px; }
  .gallery-item { margin-bottom: 18px; }
}

@media (min-width: 900px) {
  .inner main { padding-top: 150px; }
  .cs-section { padding: 56px 0; }
  .cs-head { padding-bottom: 44px; }
  .flow { flex-direction: row; align-items: center; }
  .flow-step { flex: 1; padding: 36px 24px; font-size: 26px; }
  .flow-arrow { transform: none; }
  .about-row { padding-bottom: 96px; }
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
  .about-grid-flip { grid-template-columns: 7fr 5fr; }
  .about-grid-flip .about-art { order: 2; }
  .about-photo { max-width: none; }
}

/* Entrance animation: only when JS is running */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .ledger-view img, .js .collage-float > * { animation: none; }
  .gallery-item img { transition: none; }
  .card, .card-media > img, .collage, .btn, .win, .teaser-media img, .article, .next-panel { transition: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .card-media > img, .card:hover .collage { transform: none; }
}

/* Small phones: name on the first row, links on the second, so nothing is hidden */
@media (max-width: 479px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 8px; row-gap: 8px; }
  .nav { width: 100%; justify-content: space-between; gap: 8px; }
  .nav .btn { padding: 8px 14px; min-height: 38px; }
  .hero { padding-top: 136px; }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-three { grid-template-columns: 1fr; }
  .win-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-list { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1240px) {
  .results-5 { gap: 16px; }
  .results-5 > li { flex-basis: calc((100% - 64px) / 5); }
  .results-5 .win { padding: 22px 20px 24px; }
  .results-5 .win-num { font-size: 40px; }
}

/* Three-up grids jump straight from one column to three, so a row never has an empty slot */
@media (min-width: 760px) {
  .card-grid-three, .article-grid-three, .results-three { grid-template-columns: repeat(3, 1fr); }
  .tiles { flex-direction: row; align-items: stretch; gap: 16px; }
  .tile { flex: 1; font-size: 24px; padding: 36px 24px; display: flex; align-items: center; }
  .tile-arrow { transform: none; align-self: center; }
}

@media (min-width: 1000px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .results-6 > li { flex-basis: calc((100% - 40px) / 3); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .card-featured { display: grid; grid-template-columns: 3fr 2fr; }
  .card-featured .card-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
  .card-featured .card-body { padding: 44px 44px; align-self: center; }
  .card-featured h3 { font-size: 36px; }
}

@media (min-width: 1000px) {
  .win-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (min-width: 900px) {
  :root { --section: 140px; }
  body { font-size: 20px; }
  h1 { font-size: 88px; }
  h2 { font-size: 52px; }
  h3 { font-size: 28px; }
  .site-header .wrap { height: 88px; }
  .nav { gap: 32px; }
  .hero { padding-top: 150px; }
  .hero::before {
    height: 1060px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.8) 70%, #fff 88%),
      url("/assets/art/texture-sky.jpg") center top / cover no-repeat;
  }
  .hero-sub { margin-top: 24px; }
  .hero .btn-row { margin-top: 36px; }
  .hero-visual { margin-top: 32px; }
  .proof { padding-top: 48px; }
  .stat-num { font-size: 72px; }
  .stat-label { font-size: 15px; }
  .section-head { margin-bottom: 48px; }
  .how .panel { padding-block: 88px; }
  .next-panel { padding: 44px 48px; }
  .carousel { padding: 32px; }
  .site-footer { min-height: 620px; }
  .footer-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding-bottom: 36px; }
}
