/* ==========================================================================
   Carmen Esselink — home
   ========================================================================== */

:root {
  /* One warm family: linen, peach, coral and wine */
  --linen: #FFF8F1;
  --peach: #FFE3D2;
  --coral: #EB5B3C;
  --wine: #3D1410;
  --blush: #FFD6C2; /* light accent on photographs */

  /* Page colours, tweened per section by main.js */
  --bg: var(--linen);
  --fg: var(--wine);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(104px, 16vh, 200px);
  --radius: 10px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hairline: color-mix(in srgb, currentColor 18%, transparent);
  --muted: color-mix(in srgb, currentColor 66%, transparent);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--coral); color: var(--wine); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--wine); color: var(--linen);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

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

/* Sections after the hero slide over it, so they need their own (animated) background.
   Descendant selector on purpose: pinned sections get wrapped in a .pin-spacer. */
main section:not(.hero) { position: relative; z-index: 1; background: var(--bg); }

/* Without JS each section paints its own colour */
html:not(.js) [data-bg="linen"] { background: var(--linen); }
html:not(.js) [data-bg="peach"] { background: var(--peach); }
html:not(.js) [data-bg="wine"]  { background: var(--wine); color: var(--linen); }
html:not(.js) [data-bg="coral"] { background: var(--coral); }

/* ───────── Type scale ─────────
   display   → h1 (hero) and the closing line
   h2        → section titles
   statement → the about statement and quotes
   h3-lg     → service titles
   h3        → card and dispatch titles
   lead      → intro paragraphs
   body      → running text
   small     → meta (publication, date, footer)
   kicker    → the odd line of capitals
   Italic serif marks emphasis; bold sans (.sans-in) is the contrasting voice.
*/

.t-display, .t-h1, .t-h2, .t-statement, .t-h3-lg, .t-h3, .statement { font-family: var(--serif); font-weight: 400; }

/* h1 of inner pages */
.t-h1 { font-size: clamp(44px, 8vw, 150px); line-height: .9; letter-spacing: -.018em; }
.t-h1 .sans-in { display: block; margin-bottom: .2em; font-size: .3em; line-height: 1; letter-spacing: -.03em; }
.t-h1 em { font-style: italic; }

.t-display { font-size: clamp(64px, min(12.5vw, 21vh), 260px); line-height: .86; letter-spacing: -.015em; }
.t-h2 { font-size: clamp(50px, 7.2vw, 132px); line-height: .9; letter-spacing: -.015em; }
.t-statement { font-size: clamp(34px, 4.4vw, 80px); line-height: 1.02; letter-spacing: -.01em; }
.t-h3-lg { font-size: clamp(36px, 4.4vw, 80px); line-height: .95; letter-spacing: -.012em; }
.t-h3 { font-size: clamp(24px, 2vw, 36px); line-height: 1.06; letter-spacing: -.005em; }
.t-lead { font-size: clamp(18px, 1.35vw, 22px); line-height: 1.5; }
.t-small { font-size: 14px; line-height: 1.4; font-weight: 500; }
.t-kicker { font-size: 12.5px; line-height: 1.4; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.t-display em, .t-h2 em, .t-statement em, .t-h3-lg em, .t-h3 em, .statement em { font-style: italic; }

.sans-in {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.045em;
}

/* The house heading: a short bold sans line that runs into a large serif line */
.t-h2 .sans-in,
.contact__heading .sans-in {
  display: block;
  margin-bottom: .14em;
  font-size: .4em;
  line-height: 1;
  letter-spacing: -.035em;
}

/* ───────── Links & buttons ───────── */

.link {
  display: inline-block;
  padding-bottom: 3px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .55s var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 1.05em 1.7em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--coral);
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover { color: var(--wine); }
.btn:hover::before { transform: none; }
.btn--small { padding: .85em 1.3em; font-size: 14px; }

/* ───────── Navigation ───────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  color: var(--fg);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-105%); }

/* Always transparent: every item takes the colour that reads on whatever is underneath.
   No tone = follow the section colours; light/dark are set by main.js over photos and cards. */
.nav__logo, .nav__links a, .nav__toggle { transition: color .35s, text-shadow .35s; }
.nav [data-tone="light"] { color: var(--linen); text-shadow: 0 1px 16px rgba(40, 12, 9, .4); }
.nav [data-tone="dark"] { color: var(--wine); text-shadow: 0 0 16px rgba(255, 248, 241, .35); }
.nav .nav__cta { transition: color .45s var(--ease-out), background-color .35s; }
.nav .nav__cta[data-tone="light"] { background: var(--linen); color: var(--wine); text-shadow: none; }
.nav .nav__cta[data-tone="dark"] { background: var(--wine); color: var(--linen); text-shadow: none; }
.nav .nav__cta:hover { color: var(--wine); }

.nav__logo { font-family: var(--serif); font-size: 30px; line-height: 1; }

.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }

.nav__toggle { display: none; font-size: 15px; font-weight: 600; }

.nav.menu-open .nav__logo,
.nav.menu-open .nav__toggle { color: var(--wine); text-shadow: none; }
.nav.menu-open .nav__cta { display: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: 120px var(--gutter) 40px;
  background: var(--coral);
  color: var(--wine);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: clamp(52px, 15vw, 104px); line-height: 1; }
.menu__mail { font-weight: 600; }

@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ───────── Hero ───────── */

.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 120px var(--gutter) clamp(76px, 12vh, 140px);
  color: var(--linen);
  text-align: center;
}

.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; background: var(--wine); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img:not(:first-child) { opacity: 0; }

/* One warm grade over every photograph, so six different shoots feel like one */
.hero__grade { position: absolute; inset: 0; z-index: -2; background: var(--coral); mix-blend-mode: soft-light; opacity: .5; }
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(40, 12, 9, .55) 0%,
    rgba(40, 12, 9, .08) 26%,
    rgba(40, 12, 9, .14) 48%,
    rgba(40, 12, 9, .74) 100%);
}

.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__intro { max-width: 46ch; margin-top: clamp(22px, 3.6vh, 40px); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; text-shadow: 0 1px 14px rgba(40, 12, 9, .55); }
.hero__title { text-shadow: 0 2px 40px rgba(40, 12, 9, .25); }
.hero__line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.hero__line-inner { display: block; }
.hero__typed { display: block; min-height: .86em; color: var(--blush); }

/* Selected like a double-click in a text editor, then replaced */
.typed { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.typed.is-selected { background: var(--linen); color: var(--wine); text-shadow: none; }

.caret { position: relative; }
.caret::after {
  content: '';
  position: absolute;
  left: .06em;
  bottom: .08em;
  width: .045em;
  height: .72em;
  background: currentColor;
  animation: caret 1.05s steps(1) infinite;
}
.is-typing .caret::after, .caret.is-typing::after { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

.hero__actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: clamp(24px, 4vh, 44px); }

.hero__caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(18px, 3vh, 28px);
  display: flex;
  align-items: baseline;
  gap: .7em;
  max-width: min(60ch, 46vw);
  text-align: left;
  color: color-mix(in srgb, var(--linen) 88%, transparent);
}
.hero__caption-pub { flex: none; font-weight: 700; }
.hero__caption-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__caption:hover .hero__caption-title { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 899px) {
  .hero { padding-bottom: 104px; }
  .hero__title { font-size: clamp(52px, 15.5vw, 110px); }
  .hero__typed { min-height: 1.72em; }
  .hero__caption { right: var(--gutter); max-width: none; }
}

/* ───────── Marquee ───────── */

.marquee {
  overflow: hidden;
  padding-block: clamp(22px, 4vh, 44px);
  border-bottom: 1px solid var(--hairline);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  padding-right: clamp(24px, 3vw, 52px);
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 88px);
  line-height: 1.1;
  white-space: nowrap;
}
/* Every other name in bold sans: the same serif/sans mix as the headings */
.marquee__group li:nth-child(4n + 3) { font-family: var(--sans); font-weight: 700; font-size: .78em; letter-spacing: -.04em; }
.marquee__dot { flex: none; width: .14em; height: .14em; border-radius: 50%; background: var(--coral); }

/* ───────── About ───────── */

.about { padding-block: var(--section); }

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}
.about__copy { grid-column: 1 / span 6; }

.statement {
  font-size: clamp(36px, 4.3vw, 82px);
  line-height: 1.05;
  letter-spacing: -.012em;
}
.statement .sans-in { font-size: .76em; }
.statement .accent { color: var(--coral); }

.about__lead { max-width: 38ch; margin-top: clamp(32px, 5vh, 56px); }

/* One portrait, running off the right edge of the page */
.about__portrait {
  grid-column: 8 / span 5;
  position: relative;
  aspect-ratio: 4 / 5;
  margin-right: calc((min(100vw, 1600px) - 100vw) / 2 - var(--gutter));
  overflow: hidden;
  background: var(--peach);
}
.about__portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 0;
  transform-origin: 50% 0;
}

@media (max-width: 899px) {
  .about__copy { grid-column: 1 / -1; }
  .about__portrait {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-inline: calc(-1 * var(--gutter));
    margin-bottom: 16px;
  }
}

/* ───────── Work ───────── */

.work__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vh, 56px);
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(96px, 13vh, 128px) clamp(32px, 6vh, 64px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.section-head .t-lead { max-width: 30ch; }
.section-head__copy { display: grid; gap: clamp(20px, 3vh, 32px); }
.section-head__copy .t-lead { max-width: 42ch; }

.work__viewport { position: relative; perspective: 1800px; }
html:not(.motion) .work__viewport { overflow-x: auto; padding-bottom: 12px; }

/* Giant italic word drifting behind the cards */
.work__bg {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  padding-left: var(--gutter);
  transform: translateY(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(150px, 36vh, 400px);
  line-height: 1;
  white-space: nowrap;
  color: color-mix(in srgb, var(--linen) 8%, transparent);
  pointer-events: none;
}

.work__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter)));
  transform-style: preserve-3d;
}

.story {
  --c: var(--linen);
  flex: none;
  height: clamp(380px, 58vh, 600px);
  aspect-ratio: .74;
  will-change: transform;
}
.story--accent { --c: var(--coral); }

.story__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--c);
  color: var(--wine);
  transition: transform .6s var(--ease-out);
}
.story__link:hover { transform: translateY(-8px); }

.story__media { flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 4px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.story__link:hover .story__media img { transform: scale(1.06); }

.story__meta { padding: 18px 8px 8px; }
.story__pub { color: var(--muted); }
.story__meta .story__title {
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story--text .story__link,
.story--more .story__link { justify-content: space-between; padding: clamp(24px, 2.2vw, 34px); }
.story--text .story__title,
.story--more .story__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.7vw, 48px);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.story--more em { font-style: italic; }
.story__arrow { font-size: clamp(44px, 4.4vw, 76px); line-height: 1; transition: transform .6s var(--ease-out); }
.story--more .story__link:hover .story__arrow { transform: translateX(14px); }

@media (max-width: 899px) {
  .work__inner { min-height: 0; padding-block: var(--section); }
  .work__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__bg { display: none; }
  /* Narrower than the screen, so the next card peeks in and invites a swipe */
  .story { width: min(78vw, 340px); height: auto; scroll-snap-align: start; }
}

/* Cursor label (work) and floating preview (dispatches) */
.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--wine);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
  transform: scale(0);
}

.preview {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  width: clamp(220px, 20vw, 320px);
  aspect-ratio: 4 / 3;
  margin: -60% 0 0 28px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 26px 50px -22px rgba(61, 20, 16, .45);
  pointer-events: none;
  opacity: 0;
  transform: scale(.6);
}
.preview img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── Cape Verde ───────── */

.cv { padding-block: var(--section); }
.cv .section-head { margin-bottom: clamp(36px, 6vh, 64px); }

/* A photograph that opens up to the full width of the screen */
.band {
  position: relative;
  height: clamp(320px, 74vh, 780px);
  overflow: hidden;
  background: var(--wine);
}
.band img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
/* Invisible zones that tell the nav which text colour reads on this photograph */
.band__zone { position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 1; }
.band__zone--low { top: 58%; height: 42%; }

.cv__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(48px, 8vh, 96px);
}
.cv__grid .t-lead { grid-column: 1 / span 4; max-width: 34ch; }

.dispatches { grid-column: 6 / span 7; border-top: 1px solid var(--hairline); }
.dispatch a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.dispatch time { color: var(--muted); }
.dispatch__title { grid-column: 1; transition: transform .6s var(--ease-out); }
.dispatch__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  font-size: 18px;
  transition: background-color .4s, border-color .4s, transform .6s var(--ease-out);
}
.dispatch a:hover .dispatch__title { transform: translateX(8px); }
.dispatch a:hover .dispatch__arrow { background: var(--coral); border-color: var(--coral); transform: rotate(-45deg); }

@media (max-width: 899px) {
  .band { height: 56svh; }
  .cv__grid .t-lead, .dispatches { grid-column: 1 / -1; }
}

/* ───────── Services ───────── */

.services { padding-block: var(--section); }
.services .section-head { margin-bottom: clamp(40px, 7vh, 72px); }
.services__list { border-top: 1px solid var(--hairline); }

.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 14px var(--gutter);
  padding: clamp(28px, 4.6vh, 52px) 0;
  border-bottom: 1px solid var(--hairline);
}
.service__fill {
  position: absolute;
  inset: -1px calc(-1 * var(--gutter));
  z-index: -1;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .7s var(--ease-out);
}
.service__num { grid-column: 1; align-self: start; padding-top: .7em; color: var(--muted); }
.service__title { grid-column: 2 / span 6; transition: transform .7s var(--ease-out); }
.service__text { grid-column: 9 / span 4; max-width: 36ch; }

@media (hover: hover) {
  .service:hover .service__fill { transform: scaleY(1); transform-origin: 50% 0; }
  .service:hover .service__title { transform: translateX(12px); }
}

@media (max-width: 899px) {
  .service__num { grid-column: 1 / -1; padding-top: 0; }
  .service__title, .service__text { grid-column: 1 / -1; }
}

/* ───────── Quotes ───────── */

.quotes { padding-block: var(--section); }

.quotes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 26px);
  align-items: start;
  margin-top: clamp(40px, 7vh, 80px);
}

.quote {
  display: flex;
  flex-direction: column;
  min-height: clamp(400px, 58vh, 580px);
  padding: clamp(28px, 3vw, 52px);
  border-radius: var(--radius);
  transition: transform .7s var(--ease-out);
}
.quote--wine { background: var(--wine); color: var(--linen); }
.quote--coral { background: var(--coral); color: var(--wine); margin-top: clamp(0px, 14vh, 160px); }
.quote:hover { transform: translateY(-8px) rotate(-.6deg); }

.quote__mark {
  font-family: var(--serif);
  font-size: clamp(96px, 9vw, 160px);
  line-height: .7;
  height: .42em;
}
.quote--wine .quote__mark { color: var(--coral); }

.quote__text {
  margin-top: clamp(20px, 3vh, 32px);
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -.008em;
}

.quote__by {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: clamp(28px, 5vh, 48px);
}
.quote__by strong { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.quote__by span { font-size: 15px; opacity: .78; }

@media (max-width: 899px) {
  .quotes__grid { grid-template-columns: 1fr; }
  .quote { min-height: 0; }
  .quote--coral { margin-top: 0; }
}

/* ───────── Contact ───────── */

.contact { padding-top: var(--section); overflow: hidden; }

.contact__heading { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12.5vw, 260px); }
.contact__heading .sans-in { font-size: max(22px, .26em); margin-bottom: .3em; }
.contact__title { display: block; font-size: 1em; }
.contact__title .ch { visibility: hidden; }
.contact__title .ch.on { visibility: visible; }

.contact__lead { max-width: 42ch; margin-top: clamp(24px, 4vh, 40px); }

.contact__mail {
  display: inline-block;
  margin-top: clamp(32px, 5vh, 56px);
  padding-bottom: 4px;
  font-family: var(--serif);
  font-size: min(7vw, max(34px, min(4.4vw, 80px)));
  line-height: 1.05;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.contact__mail:hover { background-size: 0 2px; background-position: 100% 100%; }

.socials { display: flex; flex-wrap: wrap; gap: 28px; margin-top: clamp(32px, 5vh, 56px); font-weight: 600; }

.giant {
  display: flex;
  justify-content: center;
  margin-top: clamp(56px, 10vh, 120px);
  overflow: hidden;
  color: var(--linen);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.4vw;
  line-height: .84;
  letter-spacing: -.02em;
  white-space: nowrap;
  padding: 0 .04em .04em;
}
.giant .gl { display: inline-block; white-space: pre; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--hairline);
}
.footer time { font-variant-numeric: tabular-nums; }
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer a:hover { text-decoration: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ───────── Shared ───────── */

.page-head { padding: clamp(150px, 24vh, 260px) 0 clamp(72px, 12vh, 140px); }
.page-head__lead { max-width: 42ch; margin-top: clamp(28px, 4.5vh, 48px); }
.page-head__more { display: grid; gap: 12px; max-width: 52ch; margin-top: 20px; }
.page-head .actions { margin-top: clamp(28px, 4.5vh, 48px); }
.page-head--full { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.actions--center { justify-content: center; margin-top: clamp(56px, 9vh, 96px); }

.badge {
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

/* ───────── Cards ───────── */

.cards { display: grid; gap: clamp(40px, 6vh, 64px) clamp(16px, 2vw, 32px); margin-top: clamp(40px, 6vh, 72px); }
.cards--grid, .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--featured { grid-template-columns: 1.35fr 1fr 1fr; align-items: end; }

.card[hidden] { display: none; }
.card__link { display: block; }
.card__media { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; background: var(--peach); }
.card--large .card__media { aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; }
.card__meta strong { font-weight: 700; }
.card__meta span:not(.badge) { color: var(--muted); }
.card__title { margin-top: 10px; max-width: 24ch; transition: color .35s; }
.card--large .card__title { font-size: clamp(28px, 2.6vw, 44px); }
.card__link:hover .card__title { color: var(--coral); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: .7em 1.15em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter:hover { border-color: currentColor; }
.filter[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ───────── Work page ───────── */

.work-featured, .work-journalism, .work-editorial, .work-tv, .also, .topics, .reports { padding-block: var(--section); }

.work-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: start;
}
.work-split__copy { grid-column: 1 / span 5; position: sticky; top: 120px; }
.work-split .t-h2 { font-size: clamp(44px, 4.6vw, 84px); line-height: .94; }
.work-split__text { display: grid; gap: 18px; max-width: 44ch; margin-top: clamp(28px, 4.5vh, 48px); }
.work-split .actions { margin-top: clamp(28px, 4.5vh, 48px); }

.tiles {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vh, 44px) clamp(14px, 1.6vw, 24px);
}
.tile__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 14%;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.tile__media img { width: 100%; height: 100%; object-fit: contain; }
.tile--cover .tile__media { padding: 0; }
.tile--cover .tile__media img { object-fit: cover; }
.tile--faint .tile__media img { filter: brightness(.45) contrast(1.4); } /* very light logos */
.tile__name { margin-top: 14px; font-family: var(--serif); font-size: clamp(22px, 1.7vw, 30px); line-height: 1.08; }
.tile__role { margin-top: 6px; color: var(--muted); }

/* ───────── Cape Verde page ───────── */

.topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: .12em .5em;
  margin-top: clamp(36px, 6vh, 64px);
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 84px);
  line-height: 1.12;
  letter-spacing: -.01em;
}
.topics__list li { display: inline-flex; align-items: center; gap: .5em; }
.topics__list li:not(:last-child)::after {
  content: '';
  flex: none;
  width: .14em;
  height: .14em;
  border-radius: 50%;
  background: var(--coral);
}

.reports__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.reports__grid .t-h2 { grid-column: 1 / span 4; }
.reports__grid .dispatches { grid-column: 6 / span 7; }

/* ───────── Article ───────── */

.article-head { padding: clamp(140px, 22vh, 240px) 0 clamp(48px, 8vh, 96px); }
.article-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.article-head__copy { grid-column: 1 / span 10; }
.article-head__grid--inset .article-head__copy { grid-column: 1 / span 8; }
.article-inset { grid-column: 10 / span 3; align-self: end; }
.article-inset img { width: 100%; border-radius: 6px; }
.article-inset figcaption { margin-top: 10px; color: var(--muted); }

.article-back { display: inline-block; margin-bottom: clamp(28px, 5vh, 52px); color: var(--muted); transition: color .3s; }
.article-back:hover { color: var(--coral); }

.article-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 0; margin-bottom: clamp(20px, 3vh, 32px); font-size: 15px; }
.article-meta > * + *::before { content: '·'; margin: 0 .6em; color: var(--muted); }
.article-meta .sans-in { font-size: 15px; letter-spacing: -.01em; }

.article-title { font-size: clamp(36px, 5.4vw, 100px); line-height: .96; max-width: 16em; }
.article-standfirst { max-width: 46ch; margin-top: clamp(24px, 4vh, 40px); }

.article-band__credit { padding-top: 12px; color: var(--muted); }
.article-wide__frame { max-width: 1000px; margin-inline: auto; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--peach); }
.article-wide__frame img { width: 100%; height: 100%; object-fit: cover; }
.article-wide figcaption { max-width: 1000px; margin: 12px auto 0; color: var(--muted); }

.article-body { padding-block: clamp(56px, 10vh, 120px) var(--section); }
.article-body__inner { max-width: calc(720px + 2 * var(--gutter)); }

.prose { font-size: clamp(18px, 1.25vw, 20px); line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose > p:first-child::first-letter {
  float: left;
  padding: .04em .1em 0 0;
  font-family: var(--serif);
  font-size: 5.4em;
  line-height: .78;
  color: var(--coral);
}
.prose h2 { margin-top: 1.9em; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 42px); line-height: 1.08; }
.prose h3 { margin-top: 1.6em; font-size: 1.05em; font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--coral); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--hairline); margin-block: 2.4em; }
.prose__quote {
  margin-block: 1.8em;
  padding-left: .7em;
  border-left: 3px solid var(--coral);
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
}
.prose__figure { margin-block: 2.2em; }
.prose__figure img { width: 100%; border-radius: 6px; }
.prose__figure figcaption { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }

.article-credit { margin-top: 3em; padding-top: 1.3em; border-top: 1px solid var(--hairline); color: var(--muted); }
.article-credit strong { color: var(--fg); }

.article-fallback {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: var(--radius);
  background: var(--coral);
  color: var(--wine);
}
.article-fallback__text { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 44px); line-height: 1.06; }
.article-fallback .btn { margin-top: 8px; background: var(--wine); color: var(--linen); }
.article-fallback .btn::before { background: var(--linen); }
.article-fallback .btn:hover { color: var(--wine); }

.article-gallery { width: min(1240px, 100vw - 2 * var(--gutter)); margin: clamp(56px, 9vh, 96px) 0 0 50%; transform: translateX(-50%); }
.article-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.article-gallery__grid li { overflow: hidden; border-radius: 6px; }
.article-gallery__grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.article-gallery__credit { margin-top: 12px; color: var(--muted); }
/* A gallery inside the text keeps breathing room above and below */
.prose .article-gallery { margin: clamp(40px, 7vh, 72px) 0 clamp(40px, 7vh, 72px) 50%; }

.progress {
  position: fixed;
  left: 0; top: 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ───────── Next story ───────── */

.next { padding-block: clamp(80px, 14vh, 160px); }
.next__link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: center; }
.next__copy { grid-column: 1 / span 7; }
.next__title { display: block; max-width: 14em; transition: color .4s; }
.next__link:hover .next__title { color: var(--coral); }
.next__pub { margin-top: 20px; color: var(--muted); }
.next__media { grid-column: 8 / span 5; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--peach); }
.next__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.next__link:hover .next__media img { transform: scale(1.05); }

/* ───────── About page ───────── */

.about-page { padding-bottom: var(--section); }
.about-page__text { display: grid; gap: 18px; max-width: 44ch; margin-top: clamp(28px, 4.5vh, 48px); }
.about__more { margin-top: clamp(24px, 4vh, 40px); }
.about__portrait--tall { aspect-ratio: 3 / 4; }
.about__portrait--tall img { object-position: 50% 30%; }

.approach { padding-block: var(--section); }
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 7vh, 72px) var(--gutter); align-items: start; }
.approach__statement { grid-column: 1 / span 10; font-size: clamp(38px, 5vw, 92px); line-height: 1.04; }
.approach__text { grid-column: 6 / span 6; display: grid; gap: 18px; max-width: 58ch; }

.quote--full .quote__text { font-size: clamp(22px, 1.7vw, 30px); line-height: 1.22; }
.quote__text p + p { margin-top: .7em; }

/* ───────── Resume ───────── */

.cv-section { padding-block: var(--section); }
.cv-list { margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid var(--hairline); }
.cv-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px var(--gutter);
  padding: clamp(26px, 4.4vh, 44px) 0;
  border-bottom: 1px solid var(--hairline);
}
.cv-row__when { grid-column: 1 / span 3; padding-top: .55em; color: var(--muted); }
.cv-row__what { grid-column: 4 / span 4; }
.cv-row__org { margin-top: 6px; font-weight: 600; }
.cv-row__points { grid-column: 8 / span 5; display: grid; gap: 6px; padding-left: 1.1em; list-style: disc; }

.cv-extra { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(56px, 9vh, 96px); }
.cv-extra__label { margin-bottom: 16px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.cv-extra__list { display: grid; gap: .15em; font-family: var(--serif); font-size: clamp(26px, 2.3vw, 40px); line-height: 1.15; }

/* ───────── Contact page ───────── */

.contact-page__mail {
  display: inline-block;
  margin-top: clamp(36px, 6vh, 64px);
  padding-bottom: 4px;
  font-family: var(--serif);
  font-size: min(7vw, max(34px, min(5vw, 96px)));
  line-height: 1.02;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: background-size .6s var(--ease-out), color .3s;
}
.contact-page__mail:hover { color: var(--coral); background-size: 0 2px; background-position: 100% 100%; }
.contact-page__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 48px; margin-top: clamp(32px, 5vh, 56px); font-weight: 500; }
.contact-page__meta .socials { margin: 0; }

.message { padding-block: var(--section); }
.message__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.message__grid .t-h2 { grid-column: 1 / span 5; }
.message__form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--coral); }
.message__actions { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.message__note { color: var(--muted); }

.contact--compact { padding-top: clamp(48px, 8vh, 96px); }
.contact--compact .giant { margin-top: 0; }

/* ───────── Page transition curtain ───────── */

.pt {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 10vh, 120px);
  background: var(--wine);
  color: var(--linen);
  clip-path: inset(100% 0 0 0);
  visibility: hidden;
  pointer-events: none;
}
.pt-enter .pt { clip-path: inset(0); visibility: visible; animation: pt-safety 0s 4s forwards; }
@keyframes pt-safety { to { visibility: hidden; } } /* never let the curtain hang if scripts fail */
.pt__label { font-family: var(--serif); font-size: clamp(48px, 8vw, 150px); line-height: .95; letter-spacing: -.018em; }
.pt--long .pt__label { font-size: clamp(34px, 4.4vw, 84px); line-height: 1.02; }
.pt__label .caret::after { background: var(--coral); }

/* ───────── Inner pages on small screens ───────── */

@media (max-width: 899px) {
  .cards--grid, .cards--three, .cards--featured { grid-template-columns: 1fr; }
  .card--large .card__media { aspect-ratio: 4 / 3; }
  .work-split__copy { grid-column: 1 / -1; position: static; }
  .tiles { grid-column: 1 / -1; margin-top: 40px; }
  .reports__grid .t-h2, .reports__grid .dispatches { grid-column: 1 / -1; }
  .article-head__copy, .article-head__grid--inset .article-head__copy, .article-inset { grid-column: 1 / -1; }
  .article-inset { max-width: 280px; }
  .article-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next__copy, .next__media { grid-column: 1 / -1; }
  .next__media { aspect-ratio: 4 / 3; }
  .approach__statement, .approach__text { grid-column: 1 / -1; }
  .cv-row__when, .cv-row__what, .cv-row__points { grid-column: 1 / -1; }
  .cv-row__when { padding-top: 0; }
  .cv-extra { grid-template-columns: 1fr; }
  .message__grid .t-h2, .message__form { grid-column: 1 / -1; }
  .message__form { grid-template-columns: 1fr; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .cards--grid, .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────── Motion: initial states (only when JS + motion allowed) ───────── */

.motion .hero__line-inner { transform: translateY(110%); }
.motion .hero__intro,
.motion .hero__actions,
.motion .hero__caption,
.motion .nav { opacity: 0; }
.motion [data-fade] { opacity: 0; }
.motion [data-split] { visibility: hidden; }

/* Each split line sits in a mask; give it room for ascenders and descenders (J, g, y)
   without changing the line spacing */
[data-split] > div { padding-block: .12em .28em; margin-block: -.12em -.28em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
