/* =========================================================
   Zandra Oliw — Portfolio
   Shared styles for every page.
   Colours and fonts come straight from the Figma file.
   ========================================================= */

/* Fonts are served from /fonts (copies of the Google Fonts files), preloaded in each
   page's <head>. font-display: block keeps text hidden for the moment the font takes to
   arrive instead of flashing a fallback font first.
   (scripts/editor.mjs swaps everything up to "end fonts" for Google Fonts.) */
/* Fraunces (latin-ext) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces (latin) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: block;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter (latin-ext) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter (latin) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 500;
  font-display: block;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Jost (latin-ext) */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Jost (latin) */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 600;
  font-display: block;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Reenie Beanie (latin) */
@font-face {
  font-family: "Reenie Beanie";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/reenie-beanie-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* end fonts */

:root {
  --beige: #f6ecec;
  --light-blue: #97b7e3;
  --dark-blue: #242653;
  --yellow: #f2be89;
  --line: #cfc5c7;

  --font-sans: "Jost", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-script: "Reenie Beanie", "Courier New", Courier, monospace;
  --font-display: "Fraunces", Georgia, serif; /* stand-in for "Richey" (STRONGER) */

  /* 20px on phones, 56px on desktop (as designed) */
  --gutter: clamp(20px, 3.9vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Page-to-page animation: the old page fades out, the new one fades in and rises a
   little. Cross-document view transitions — browsers without them just navigate. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .2s ease-in both; }
::view-transition-new(root) { animation: page-in .45s cubic-bezier(.2,.7,.2,1) .1s both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
body {
  margin: 0;
  background: var(--beige);
  color: var(--dark-blue);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Never stretch or squeeze an image: height follows width by default, and
   any image or video forced into a fixed box is cropped (cover) to fit it
   instead of being distorted. Logos and icons opt into `contain`. */
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
video { object-fit: cover; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--dark-blue); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--dark-blue); color: var(--beige); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* ---------- Type helpers ---------- */
h1.label { font-weight: 400; }
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
}
.label--spaced { letter-spacing: 0.7px; }
.meta {
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}
.script { font-family: var(--font-script); font-weight: 400; }
.arrow { font-family: var(--font-ui); display: inline-block; transition: transform .25s ease; }

/* ---------- Image cropping ----------
   Figma crops images with exact percentages. A .crop box keeps the
   designed proportions; the <img> inside is positioned with the same
   numbers so the framing matches the design at every screen size. */
.crop { position: relative; overflow: hidden; }
.crop > img { position: absolute; max-width: none; object-fit: cover; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.crop > img.cover { inset: 0; }

/* =========================================================
   Navigation
   ========================================================= */
.site-nav { background: var(--beige); }
.site-nav .wrap {
  height: 96px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav__logo { font-weight: 600; font-size: 24px; white-space: nowrap; }
.site-nav__links { display: flex; gap: 40px; }
.site-nav__links a { position: relative; white-space: nowrap; }
.site-nav__links a::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav__links a:hover::after, .text-link:hover::after { transform: scaleX(1); }
.text-link { position: relative; }

@media (max-width: 767px) {
  .site-nav { border-bottom: 1px solid var(--line); }
  .site-nav .wrap { height: 76px; }
  .site-nav__logo { font-size: 20px; }
  .site-nav__links { gap: 20px; }
  .site-nav__links .hide-mobile { display: none; }
}

/* =========================================================
   HOMEPAGE
   ========================================================= */
.hero { background: var(--light-blue); }
.hero .wrap {
  padding-top: clamp(44px, 4.2vw, 60px);
  padding-bottom: clamp(56px, 5vw, 72px);
  display: flex; flex-direction: column; gap: clamp(36px, 3vw, 43px);
}
.split-row { display: flex; justify-content: space-between; gap: 16px; }
/* One row at every width: the line is about 10.3× its font size wide, so 8vw always
   fits inside the page margins (24px on the smallest phones, 96px on desktop). */
.hero__manifesto {
  font-size: clamp(24px, 8vw, 96px);
  line-height: 0.98;
}
.hero__details { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; }
.hero__copy { width: min(638px, 100%); display: flex; flex-direction: column; gap: 24px; }
.hero__copy p.lead { font-size: clamp(19px, 1.67vw, 24px); line-height: 1.45; }
.hero__copy p.lead + p.lead { margin-top: 0; }
.hero__copy .label { line-height: normal; }

/* ---------- Selected work ---------- */
.work .wrap { padding-bottom: clamp(64px, 7.8vw, 112px); }
.work__heading { padding-top: 62px; }
.work__heading h2 { font-weight: 500; font-size: clamp(38px, 4.45vw, 64px); line-height: normal; }

.filters { padding: 27px 0 50px; }
.filters__title { margin-bottom: 30px; display: block; }
.filters__list { display: flex; flex-wrap: wrap; gap: 11px; list-style: none; margin: 0; padding: 0; }
.pill {
  background: var(--dark-blue); color: var(--beige);
  border: 1px solid var(--dark-blue); border-radius: 999px;
  padding: 11px 15px; cursor: pointer;
  font-family: var(--font-ui); font-size: 11px; line-height: 1.4; text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.filters.is-active .pill { background: transparent; color: var(--dark-blue); }
.filters.is-active .pill[aria-pressed="true"] { background: var(--dark-blue); color: var(--beige); }
.pill:hover { opacity: .85; }
.filters__status { margin-top: 18px; min-height: 15px; }
.filters__status button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-transform: uppercase; font-size: 11px; font-family: var(--font-ui); }

/* Project card */
.card { display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; }
.card__media > img, .card__media > video { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
a.card:hover .card__media > img, a.card:hover .card__media > video, a.feature:hover .feature__media > img { transform: scale(1.03); }
a.card:hover .arrow, a.feature:hover .arrow, a.index-row:hover .arrow, a.next-project:hover .arrow { transform: translate(3px, -3px); }
.card__meta { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 12px; }
.card__title { display: flex; justify-content: space-between; align-items: center; gap: 16px; line-height: normal; }
.card__title h3 { font-weight: 500; font-size: clamp(26px, 2.2vw, 32px); }
.card__title .arrow { font-size: 28px; }
.card__summary { font-size: 15px; line-height: 1.5; }

.project-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.project-pair .card { padding-bottom: 55px; }
.project-pair .card__media { aspect-ratio: 646 / 595; }

.feature { display: flex; background: var(--light-blue); }
.feature__media { flex: 0 0 50%; aspect-ratio: 664 / 782; position: relative; overflow: hidden; }
.feature__media > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature__story { flex: 1; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; }

.project-duo { display: flex; gap: 56px; align-items: flex-start; margin-top: 21px; }
.project-duo > .card:first-child { flex: 0 0 37.35%; }
.project-duo > .card:first-child .card__media { aspect-ratio: 496 / 570; }
.project-duo > .card:last-child { flex: 0 1 58.4%; padding-top: 112px; }
.project-duo > .card.is-hidden + .card, .project-duo > .card:only-child { padding-top: 0; } /* when filtered / on its own */
.project-duo > .card:last-child .card__media { aspect-ratio: 776 / 458; }
/* Urbanista on its own: full width */
.project-duo > .card:only-child { flex: 1 1 100%; }

.further { margin-top: 63px; display: flex; flex-direction: column; gap: 24px; }
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--dark-blue); }
.index-row {
  display: flex; align-items: center; gap: 32px; padding: 24px 0;
  border-top: 1px solid var(--dark-blue);
}
.index-row__thumb { flex: none; width: 112px; height: 100px; }
.index-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.index-row__text h3 { font-weight: 400; font-size: clamp(19px, 2.1vw, 30px); line-height: normal; }
.index-row .arrow { font-size: 32px; }
a.index-row { transition: background .2s ease; }

/* Filtered results: every matching project as a regular card in a two-column grid */
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.filter-grid .card { padding-bottom: 55px; }
.filter-grid .card__media { aspect-ratio: 646 / 595; }
.filter-grid .card__media > img, .filter-grid .card__media > video { position: absolute; inset: 0; }
.is-hidden { display: none !important; }

/* ---------- About ---------- */
.about { background: var(--light-blue); }
.about .wrap { padding-top: clamp(56px, 6.1vw, 88px); padding-bottom: clamp(56px, 6.1vw, 88px); display: flex; flex-direction: column; gap: clamp(40px, 4.45vw, 64px); }
.about__label { font-family: var(--font-sans); }
.about__grid { display: flex; gap: clamp(32px, 7.8vw, 112px); align-items: flex-start; }
.about__portrait { flex: 0 0 360px; display: flex; flex-direction: column; gap: 16px; }
.about__portrait img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.about__links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.about__body { flex: 1; display: flex; flex-direction: column; gap: 32px; justify-content: center; align-self: center; }
.about__quote { font-size: clamp(40px, 4.3vw, 62px); line-height: 1.05; }
.capabilities { list-style: none; margin: 0; padding: 0; }
.capabilities li { border-top: 1px solid var(--dark-blue); padding: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.capabilities h3 { font-weight: 400; font-size: clamp(20px, 1.67vw, 24px); line-height: normal; }
.capabilities p { font-size: 14px; line-height: 1.5; }

/* =========================================================
   Contact + footer (every page)
   ========================================================= */
.contact .wrap { padding-top: clamp(48px, 5vw, 72px); padding-bottom: 24px; display: flex; flex-direction: column; gap: clamp(48px, 4.45vw, 64px); }
.contact__title { font-weight: 400; font-size: clamp(51px, 8.9vw, 128px); line-height: 1.02; }
.contact__details { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; font-family: var(--font-ui); }
.contact__direct { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact__email { font-size: clamp(24px, 2.36vw, 34px); }
.contact__phone { font-size: clamp(20px, 1.67vw, 24px); }
.contact__linkedin { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.contact__email, .contact__phone { transition: opacity .2s ease; }
.contact__email:hover, .contact__phone:hover, .contact__linkedin:hover { opacity: .7; }
.footer-credits { border-top: 1px solid var(--dark-blue); padding-top: 24px; }

/* =========================================================
   CASE STUDY PAGES
   ========================================================= */
.case-intro .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.case-title {
  min-height: 237px; display: flex; align-items: flex-end;
  font-family: var(--font-script); font-weight: 400;
  font-size: var(--title-size, 192px); letter-spacing: var(--title-track, 0);
  line-height: 0.95;
}
.case-context {
  border-top: 1px solid var(--dark-blue); border-bottom: 1px solid var(--dark-blue);
  padding: 28px 0; display: flex; gap: 48px;
}
.case-context > div { display: flex; flex-direction: column; gap: 12px; }
.case-context > div:not(:last-child) { flex: 0 0 260px; }
.case-context > div:last-child { flex: 1; }
/* Service pages: a long title, so smaller than a project name */
.service-title { --title-size: clamp(56px, 8vw, 120px); --title-mobile: 1; min-height: 0; }
.case-context p:not(.label) { font-size: 16px; line-height: 1.5; }

.case-body .wrap { padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }

.figure { display: flex; flex-direction: column; gap: 12px; }
.figure__media { position: relative; overflow: hidden; }
.figure__media > img.cover { position: absolute; inset: 0; }

.story { display: flex; gap: 80px; padding: 64px 0; align-items: flex-start; }
.story__heading { flex: 0 0 440px; display: flex; flex-direction: column; gap: 24px; }
.story__heading h2 { font-family: var(--font-script); font-weight: 400; font-size: var(--story-size, 64px); line-height: 1.02; }
.story__body { flex: 1; padding-top: 40px; }
.story__body p { font-size: 20px; line-height: 1.5; max-width: 808px; }
.story__body--flush { padding-top: 0; }
.story__body p + p { margin-top: 1em; }
.story__body .capabilities p { font-size: 16px; }
.story__body .index .meta { font-size: 10px; line-height: normal; }

.row { display: flex; gap: 24px; align-items: flex-start; }
.row > * { flex: 1 1 0; min-width: 0; }

/* Video poster (play buttons removed until real videos are added) */
.poster { position: relative; overflow: hidden; }
.poster > img, .poster > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.caption-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.text-action { display: inline-flex; gap: 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--yellow); font-size: 15px; }
.text-action .arrow { font-size: 20px; }
.text-action:hover .arrow { transform: translate(3px, -3px); }

/* Next project */
.next-project { display: flex; gap: 56px; align-items: center; padding: 40px; background: var(--light-blue); }
.next-project__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.next-project__title { display: flex; gap: 24px; align-items: center; line-height: normal; }
.next-project__title h2 { font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); }
.next-project__title .arrow { font-size: clamp(40px, 4.45vw, 64px); }
.next-project__text p:last-child { font-size: 16px; }
.next-project__img { flex: 0 0 340px; height: 280px; }
.next-project__img > img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.next-project:hover .next-project__img > img { transform: scale(1.04); }

/* Placeholder for artwork that still needs to be exported from Figma */
.pending-art {
  border: 1px dashed var(--dark-blue); background: rgba(151, 183, 227, .35);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}

/* ---------- FLÖDE specifics ---------- */
.flode-hero { height: auto; aspect-ratio: 1328 / 654; display: flex; align-items: center; justify-content: center; }
.flode-hero__logo { position: relative; width: 54.8%; aspect-ratio: 728 / 223; overflow: hidden; }
/* Logo boxes (FLÖDE). The label sits at the top; the logo fills the rest of the box
   inside .lockup__logo, whose padding guarantees space on every side. The logo files
   are trimmed to the artwork, and object-fit: contain scales them to fit that padded
   area without cropping or stretching, whatever the box size. */
.lockup { display: flex; flex-direction: column; gap: 16px; padding: 24px; height: 360px; }
.lockup__logo { flex: 1 1 auto; min-height: 0; display: flex; padding: 24px 8%; }
.lockup--compact .lockup__logo { padding: 24px 12%; }
.lockup__logo img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.lockup--compact { align-items: center; text-align: center; }
.lockup--compact .lockup__logo { align-self: stretch; }
.palette { display: flex; gap: 16px; }
.swatch { flex: 1; height: 180px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-ui); font-size: 11px; }
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.insta-grid > div { aspect-ratio: 438.9 / 586.7; position: relative; overflow: hidden; }

/* ---------- STRONGER specifics ---------- */
.heatwave { aspect-ratio: 1328 / 654; display: flex; align-items: center; justify-content: center; }
.heatwave__title {
  position: relative; color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(56px, 12.5vw, 180px); letter-spacing: -0.04em; white-space: nowrap;
}
.campaign-line {
  position: absolute; left: 10%; right: 10%; top: 48.5%;
  display: flex; justify-content: space-between; color: #fff;
  font-family: var(--font-display); font-size: clamp(12px, 1.2vw, 17px); white-space: nowrap;
}

/* Recreated launch emails (fixed 416px design, scaled to fit by main.js) */
.emails-fit { width: 100%; overflow: hidden; }
.emails { display: flex; gap: 40px; width: 1328px; align-items: flex-start; transform-origin: top left; }
.emails.is-stacked { flex-direction: column; width: 416px; gap: 32px; }
.email { width: 416px; flex: none; background: #fff; color: #000; font-family: var(--font-ui); display: flex; flex-direction: column; gap: 1px; }
.email__ribbon { background: #c51c1e; color: #fff; font-size: 13.3px; padding: 12px 22px; }
.email__brand { padding: 22px 22px 11px; display: flex; flex-direction: column; gap: 11px; }
.email__brand small { color: #71717a; font-size: 11px; }
.email__brand img { width: 162px; height: 35px; object-fit: contain; object-position: left; }
.email__nav { display: flex; gap: 22px; padding: 17px 22px; font-size: 15.5px; }
.email__poster { position: relative; height: 541px; overflow: hidden; }
.email__poster-text { position: absolute; left: 22px; right: 22px; bottom: 24px; color: #fff; display: flex; flex-direction: column; gap: 14px; }
.email__poster-title { font-family: var(--font-display); font-size: 42px; line-height: 1; letter-spacing: -0.02em; }
.email__poster-kicker { font-size: 15.5px; }
.email__copy { padding: 22px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; font-size: 17.75px; line-height: 1.375; }
.email__btn { border: 1px solid #000; border-radius: 20px; padding: 10px 24px; font-size: 14px; font-weight: 500; }
.email__pair { display: flex; gap: 1px; }
.email__pair > div { flex: 1; height: 270px; position: relative; overflow: hidden; }
.email__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 0 22px 16px; }
.email__products figure { display: flex; flex-direction: column; gap: 6px; font-size: 11.1px; line-height: 1.3; }
.email__products .ph { height: 177.5px; border-radius: 4px; background: #5e606b; overflow: hidden; position: relative; }
.email__trend { padding: 22px; font-size: 15.5px; line-height: 1.3; }
.email__duo { display: flex; gap: 11px; padding: 16px 22px; }
.email__duo > div { flex: 1; height: 276px; border-radius: 6px; overflow: hidden; position: relative; }
.email__footer { background: #f4f4f5; padding: 22px; display: flex; flex-direction: column; gap: 20px; font-size: 12px; }
.email__footer .acc { display: flex; justify-content: space-between; }
.email__social { display: flex; justify-content: space-between; }
.email__social img { width: 20px; height: 20px; }
.email__footer .logo { width: 126px; height: 27px; }
.email__footer small { font-size: 11.1px; }

/* ---------- & Other Stories specifics ---------- */
.email-sequence { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.email-sequence__caption { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.email-sequence__caption p:last-child { font-size: 18px; line-height: 1.5; }

/* =========================================================
   Responsive (tablet + phone)
   ========================================================= */
@media (max-width: 1100px) {
  .story { gap: 48px; }
  .story__heading { flex-basis: 34%; }
  .about__portrait { flex-basis: 300px; }
}

@media (max-width: 899px) {
  .project-pair, .project-duo { display: flex; flex-direction: column; align-items: stretch; gap: 48px; }
  .project-pair .card { padding-bottom: 0; }
  .project-duo > .card:first-child, .project-duo > .card:last-child { flex: none; width: 100%; padding-top: 0; }
  .project-duo { margin-top: 48px; }
  .feature { flex-direction: column; margin-top: 48px; }
  .feature__media { flex: none; }
  .feature__story { padding: 24px; }
  .further { margin-top: 48px; }
  .filter-grid { grid-template-columns: 1fr; gap: 48px; }
  .filter-grid .card { padding-bottom: 0; }

  .about__grid { flex-direction: column; }
  .about__portrait { flex: none; width: min(100%, 360px); }

  .case-title { min-height: 0; padding-top: 24px; }
  .case-context { flex-direction: column; gap: 20px; }
  .case-context > div:not(:last-child) { flex: none; }
  .story { flex-direction: column; gap: 20px; padding: 40px 0; }
  .story__heading { flex: none; }
  .story__body { padding-top: 0; }
  .story__body p { font-size: 18px; }

  .next-project { flex-direction: column; align-items: stretch; gap: 28px; padding: 24px; }
  .next-project__img { flex: none; height: auto; aspect-ratio: 340 / 280; }

  .email-sequence { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 767px) {
  .filters { padding-bottom: 32px; }
  .index-row { gap: 16px; padding: 20px 0; }
  .index-row__thumb { width: 80px; height: auto; aspect-ratio: 112 / 100; }
  .index-row .arrow { font-size: 24px; }
  .case-intro .wrap { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .case-title { font-size: calc(var(--title-size, 192px) * var(--title-mobile, 0.4)); letter-spacing: 0; }
  .story__heading h2 { font-size: 44px; }
  .case-body .wrap { gap: 20px; padding-bottom: 56px; }
  .row { flex-direction: column; gap: 20px; }
  .row > * { flex: none !important; width: 100%; }
  .row.row--keep { flex-direction: row; gap: 8px; }
  .row.row--keep > * { flex: 1 1 0 !important; width: auto; }
  .palette { flex-wrap: wrap; gap: 8px; }
  .swatch { flex: 1 1 30%; height: 120px; padding: 12px; }
  .lockup { height: 240px; }
  .lockup--compact { height: 320px; }
  .email-sequence { grid-template-columns: 1fr; }
}

/* Play / pause button on films: centred; fades out while playing, back on hover */
.poster > video { cursor: pointer; }
.video-toggle {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(36, 38, 83, .55); color: var(--beige);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease, opacity .25s ease;
}
.video-toggle:hover { background: var(--dark-blue); transform: translate(-50%, -50%) scale(1.06); }
.video-toggle:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
.video-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.poster.is-playing .video-toggle { opacity: 0; }
.poster.is-playing:hover .video-toggle, .poster.is-playing .video-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .poster.is-playing .video-toggle { opacity: 0; pointer-events: none; } }

/* Compact logo: grows/shrinks to fit the space left in its panel, never cropped */

/* STRONGER emails: three side by side; on phones, a row you swipe through */
@media (max-width: 899px) {
  .row.email-row { flex-direction: row; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; align-items: flex-start; padding-bottom: 8px; }
  .row.email-row > * { flex: 0 0 72% !important; width: 72%; max-width: 360px; scroll-snap-align: start; }
}

/* A story with no script heading drops the empty heading column, so its paragraph
   starts at the left edge (and at the top, without the gap that lines text up with a heading). */
.story__heading:empty { display: none; }
.story:has(> .story__heading:empty) .story__body { padding-top: 0; }

/* ---------- Scrollable screenshot frame (STRONGER e-commerce pages) ----------
   A fixed-shape frame (set its aspect-ratio inline) that a long page screenshot
   scrolls inside. The image keeps its own proportions (full width, natural height).
   js/main.js adds an always-visible scroll bar on the right (.scroll-frame__track)
   and hides the browser's own one, which Mac and iPhone only show while scrolling. */
.scroll-frame { display: flex; gap: 10px; min-height: 0; }
.scroll-frame__view {
  flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden;
  background: #fff; -webkit-overflow-scrolling: touch;
}
.scroll-frame__view img { display: block; width: 100%; height: auto; max-width: none; }
.scroll-frame__view:focus-visible { outline: 2px solid var(--dark-blue); outline-offset: 2px; }
.scroll-frame.has-bar .scroll-frame__view { scrollbar-width: none; }
.scroll-frame.has-bar .scroll-frame__view::-webkit-scrollbar { display: none; }
.scroll-frame__track {
  flex: 0 0 6px; position: relative; border-radius: 3px;
  background: rgba(36, 38, 83, .15); cursor: pointer; touch-action: none;
}
.scroll-frame__thumb {
  position: absolute; left: 0; right: 0; top: 0; min-height: 32px; border-radius: 3px;
  background: var(--dark-blue); cursor: grab; transition: background .2s ease;
}
.scroll-frame__thumb:hover, .scroll-frame.is-dragging .scroll-frame__thumb { background: #000; }
.scroll-frame.is-dragging { cursor: grabbing; user-select: none; }

/* ---------- Animated area inside a newsletter screenshot ----------
   A looping, silent video laid exactly over one image in a newsletter, so it plays
   like a GIF and scrolls with the email. Set its top and height inline as percentages
   of the screenshot; it spans the full width and keeps its proportions (cover). */
.email-anim { position: relative; }
.email-anim__video {
  position: absolute; left: 0; width: 100%;
  object-fit: cover; display: block; pointer-events: none;
}

/* Text kept in the page for search engines and screen readers, but not shown
   (e.g. the homepage line "Graphic, digital & motion content…"). */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Pictures still downloading (scripts/reveal.js, inlined by the build): blurred, then
   eased into focus. Inside a box that clips, the picture is also scaled up a little so
   the blur's soft edge stays out of sight. --slow: a big picture on a slow line, shown
   lightly blurred while it sharpens. */
img.is-loading { filter: blur(14px); }
img.is-loading--clip { transform: scale(1.06); }
img.is-loading--slow { filter: blur(3px); transition: filter 1.2s ease, transform 1.2s ease; }
img.is-loading--clip.is-loading--slow { transform: scale(1.02); }
img.is-revealing { transition: filter .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1) !important; }
