/* ==========================================================================
   3 FLAMINGOS

   Mobile first. Every base rule below describes the phone; the min-width
   blocks at the end progressively widen it. Teddi views this on a phone, so
   the phone gets the considered layout and the desktop adapts - not the
   other way round.

   Palette is lifted from the logo: the flamingo pink, a deeper rose for
   anything carrying text contrast, warm creams so the page reads sunny.
   ========================================================================== */

:root {
  --cream:      #FFFBF7;
  --cream-2:    #FBF3ED;
  --blush:      #FCEDF1;
  --blush-deep: #F8DFE6;
  --white:      #FFFFFF;

  --pink:       #E3A2B5;   /* the logo pink - decorative only */
  --pink-light: #F3D3DC;
  --pink-deep:  #C0748C;   /* large type, rules, hovers */
  --rose:       #8E4E62;   /* small type + links: 6.4:1 on cream */

  --ink:        #2B2523;
  --ink-soft:   #6A5E57;
  --line:       #EBDFD6;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --shell:  1240px;
  --gutter: clamp(1.375rem, 5vw, 4rem);
  --header-h: 68px;   /* re-measured at runtime by main.js */

  /* Warm shadows - grey ones would kill the sunlit feel */
  --lift:   0 2px 8px rgba(142, 78, 98, .05), 0 18px 40px -22px rgba(142, 78, 98, .22);
  --lift-2: 0 4px 14px rgba(142, 78, 98, .07), 0 34px 70px -30px rgba(142, 78, 98, .3);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration-color: var(--pink-light); text-underline-offset: .25em; }
a:hover { color: var(--pink-deep); }

::selection { background: var(--pink-light); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

/* --------------------------------------------------------------- type ---- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  color: var(--ink);
}

/* Cormorant ships old-style figures by default: 3, 4, 5, 7 and 9 hang below
   the baseline. Lovely inside a paragraph, wrong everywhere the serif is
   setting a name, a heading or a number that has to line up - "3 Flamingos"
   reads crooked and the stat row sits on a wobbly line. */
h1, h2, h3, h4, .display,
.brand__name, .stat__num, .marquee span,
.ig-head .handle, .detail dd, .serif-note, .prose blockquote {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.display  { font-size: clamp(3rem, 12vw, 5.6rem); line-height: 1.02; }
h1        { font-size: clamp(2.5rem, 10vw, 4rem); }
h2        { font-size: clamp(2.1rem, 8vw, 3.1rem); }
h3        { font-size: clamp(1.4rem, 5vw, 1.75rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* Wide-tracked caps, echoing the letterspacing in the wordmark itself. */
.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.25rem;
  display: block;
}
.eyebrow--light { color: var(--pink-light); }

.lede {
  font-size: clamp(1.08rem, 4.4vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
}

.serif-note {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  line-height: 1.32;
  font-style: italic;
  color: var(--rose);
}

.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------- shell --- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: 780px; }
.shell--wide   { max-width: 1440px; }

.section { padding-block: clamp(3.5rem, 14vw, 8.5rem); }
.section--tight { padding-block: clamp(2.5rem, 9vw, 5rem); }
.section--cream { background: var(--cream-2); }
.section--blush { background: var(--blush); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Intro block that heads a grid of cards or tiles. Centred, because the grid
   beneath it is symmetrical - an intro paired with a photograph in a two-column
   layout stays left, where it lines up with the image edge. */
.section-head {
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 7vw, 4rem);
  text-align: center;
}

/* ------------------------------------------------------------ flamingos --
   The trio is the brand's punctuation mark. It separates sections, opens
   pages and runs through the marquee, so it reappears the whole way down.  */

.flamingo-rule {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 1.75rem);
  margin-block: clamp(2.5rem, 9vw, 4.5rem);
}
.flamingo-rule::before, .flamingo-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--pink-light) 55%, var(--pink-light));
}
.flamingo-rule::after { background: linear-gradient(to left, transparent, var(--pink-light) 55%, var(--pink-light)); }
.flamingo-rule img { width: clamp(74px, 22vw, 108px); flex-shrink: 0; }

/* The rules draw themselves out from the flamingos as the divider arrives. */
.flamingo-rule::before, .flamingo-rule::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}
.flamingo-rule::before { transform-origin: right; }
.flamingo-rule::after  { transform-origin: left; }
.flamingo-rule.is-in::before, .flamingo-rule.is-in::after { transform: scaleX(1); }
.flamingo-rule img {
  opacity: 0;
  transform: translateY(6px) scale(.92);
  transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s;
}
.flamingo-rule.is-in img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .flamingo-rule::before, .flamingo-rule::after { transform: scaleX(1); }
  .flamingo-rule img { opacity: 1; transform: none; }
}

/* Solo mark, used to open a page or close a section. */
.flamingo-mark { display: block; width: clamp(78px, 24vw, 104px); margin-inline: auto; }

/* Oversized seal sitting behind a section for depth. */
.watermark { position: relative; overflow: hidden; isolation: isolate; }
.watermark::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -18%;
  width: min(760px, 96vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../img/logo-seal.png") center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}

/* ------------------------------------------------------------- marquee ---
   Slow infinite strip. The track holds the sequence twice and slides exactly
   half its width, so the loop is seamless. */

.marquee {
  overflow: hidden;
  background: var(--blush);
  border-block: 1px solid var(--blush-deep);
  padding-block: clamp(.9rem, 3vw, 1.35rem);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 46s linear infinite;
}
/* Spacing as a trailing margin rather than `gap`: with `gap`, half the track
   width lands in the middle of a gap and the loop visibly jumps. A margin on
   every item makes each half exactly half the width. */
.marquee__track > * { margin-right: clamp(1.5rem, 5vw, 3rem); }
.marquee span {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 4.2vw, 1.5rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
  white-space: nowrap;
}
.marquee img { width: clamp(42px, 11vw, 58px); opacity: .8; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  width: 100%;
  padding: 1.1rem 1.85rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .19em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: var(--rose);
  color: var(--cream);
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--rose); }
.btn--ghost:hover { background: var(--rose); color: var(--cream); border-color: var(--rose); }

.btn--light { background: transparent; border-color: rgba(255, 251, 247, .55); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rose);
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--pink-light);
  transition: border-color .4s var(--ease), gap .4s var(--ease);
}
.link-arrow:hover { border-color: var(--rose); gap: 1rem; }
.link-arrow::after { content: "\2192"; font-size: 1rem; letter-spacing: 0; }

/* --------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding-block: .7rem;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(235, 223, 214, .9);
  transition: box-shadow .45s var(--ease), padding .45s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 42px; transition: width .45s var(--ease); }
.brand__name {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: .35rem; z-index: 95; }

.ig-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
/* The glyph is geometrically centred either way, but at 17px it sat small in
   a 42px ring next to the burger's 22px bars and read as adrift. */
.ig-link svg { width: 20px; height: 20px; }
.ig-link:hover { background: var(--rose); border-color: var(--rose); color: var(--cream); transform: translateY(-2px); }

.site-header.is-stuck { box-shadow: var(--lift); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1px;
  width: 22px;
  background: var(--ink);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
body.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen menu. Note the header drops backdrop-filter at this width -
   a filtered ancestor becomes the containing block for fixed children and
   would trap this overlay inside the header bar. */
.nav {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  background: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s;
}
body.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
.nav a {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .3rem;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--rose); }
/* A flamingo sits at the foot of the open menu. */
.nav::after {
  content: "";
  width: 92px; height: 66px;
  margin-top: 1.5rem;
  background: url("../img/logo-line.png") center / contain no-repeat;
  opacity: .8;
}

/* ----------------------------------------------------------------- hero --
   On a phone the photograph fills the screen and the copy sits over its
   darkened foot - far more arresting than a stacked block, and portrait
   crops suit a portrait screen. From 900px up it becomes a split layout,
   because laying type over these bright, centre-composed arena shots at
   desktop width either loses the words or needs a scrim heavy enough to
   kill the sunlight.                                                      */

.hero { position: relative; margin-top: var(--header-h); display: block; }

.hero__media { position: relative; height: 58vh; height: 58svh; min-height: 330px; overflow: hidden; }
/* <picture> only picks the source; the <img> inside it is the real element. */
.hero__media picture { display: contents; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
/* Slow drift, so the opening frame is never quite still. */
.hero__media img { animation: kenburns 26s var(--ease) infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }

/* Barely-there warm wash at the foot of the photo so the card reads as
   sitting on top of it rather than cutting it off. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 30, 30, .22) 0%, rgba(38, 30, 30, 0) 32%);
}

/* The copy rides up over the photograph on a cream card. Type stays crisp,
   the picture keeps all its colour, and the overlap gives the page depth
   that a stacked block never has. */
/* An inset card that rides up over the photograph. Everything inside is
   centred on the card's own axis, which is why the inset doesn't read as a
   misalignment the way left-aligned copy did - there is no left edge to
   disagree with the sections below. */
.hero__body {
  position: relative;
  z-index: 2;
  margin: -3rem var(--gutter) 0;
  padding: clamp(1.75rem, 7vw, 2.5rem) clamp(1.5rem, 6vw, 2rem) clamp(2rem, 8vw, 2.75rem);
  background: var(--cream);
  border-radius: 6px;
  box-shadow: var(--lift-2);
  color: var(--ink);
  text-align: center;
}
.hero__body .display { max-width: 16ch; margin-inline: auto; }
.hero__lede {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 4.2vw, 1.15rem);
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero__panel-mark { width: 76px; margin: 0 auto 1.15rem; }

.scroll-cue { display: none; }

/* Interior pages get a banner instead of the full hero. */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 10vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 9vw, 5rem);
  background: var(--cream-2);
  text-align: center;
}
.page-head h1 { max-width: 18ch; margin-inline: auto; }
.page-head .lede { max-width: 58ch; margin-inline: auto; }
.page-head .flamingo-mark { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- intro -- */

.intro-grid { display: grid; gap: clamp(2rem, 8vw, 6rem); }

/* -------------------------------------------------------------- figures -- */

.figure { position: relative; margin: 0; }
.figure img { width: 100%; border-radius: 3px; box-shadow: var(--lift); }
/* Wrap the image when the figure also has a caption, so the credit badge pins
   to the photo's corner instead of drifting down over the caption. */
.figure__frame { position: relative; display: block; }
.figure figcaption {
  margin-top: .9rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.credit {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  font-size: .56rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  background: rgba(43, 37, 35, .38);
  backdrop-filter: blur(6px);
  padding: .28rem .65rem;
  border-radius: 999px;
}

/* Pink block behind an image, pushing it off the grid. Desktop only - at
   phone width it just eats space. */
.figure--offset { padding: 0; }

/* --------------------------------------------------------------- result -- */

.result-band { display: grid; gap: clamp(2rem, 8vw, 5rem); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: 2rem;
}
.stat { background: var(--cream); padding: 1.4rem 1rem; text-align: center; }
.section--cream .stat { background: var(--cream-2); }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1; color: var(--rose); display: block; }
.stat__label { display: block; margin-top: .5rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* --------------------------------------------------------------- cards --- */

.grid { display: grid; gap: clamp(1.25rem, 5vw, 2.5rem); }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--lift-2); border-color: var(--pink-light); }

.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }

/* Centred to sit square under the image, matching the intro above the grid.
   The spec rows below stay left/right justified - they read as a data table,
   not as prose. */
.card__body { padding: 1.5rem 1.4rem 1.75rem; flex: 1; display: flex; flex-direction: column; text-align: center; align-items: center; }
.card__body h3 { margin-bottom: .35rem; }
.card__meta { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: .9rem; }
.card__body p { font-size: .96rem; color: var(--ink-soft); }

.spec { list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .88rem; text-align: left; width: 100%; }
.spec li { display: flex; justify-content: space-between; gap: 1rem; }
.spec span:first-child { color: var(--ink-soft); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; }
.spec span:last-child { text-align: right; }

.card--empty { border-style: dashed; border-color: var(--pink); background: transparent; align-items: center; justify-content: center; text-align: center; padding: 2.75rem 1.75rem; min-height: 260px; }
.card--empty:hover { transform: none; box-shadow: none; }
.card--empty img { width: 74px; opacity: .55; margin: 0 auto 1.25rem; }

/* ------------------------------------------------------------- gallery ---
   A swipeable rail on a phone. Scroll-snap makes it feel native, and edge
   padding leaves the next frame peeking so it reads as swipeable. */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72vw;
  gap: .6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 3px; scroll-snap-align: center; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

.swipe-hint {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.1rem;
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.swipe-hint i { display: block; width: 40px; height: 1px; background: var(--pink-deep); transform-origin: left; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: scaleX(.35); } 50% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint i { animation: none; } }

/* ----------------------------------------------------------- instagram ---
   A proper section, not a footnote. Square tiles, a glyph that surfaces on
   press, and the handle set large in the serif. */

.ig-head { text-align: center; margin-bottom: clamp(1.75rem, 6vw, 2.75rem); }
.ig-head h2 { margin-bottom: .35rem; }
.ig-head .handle {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  color: var(--rose);
  text-decoration: none;
  display: inline-block;
}
.ig-head .handle:hover { color: var(--pink-deep); }

.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.4rem, 1.6vw, .75rem); }
.ig-grid a { position: relative; display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 1; background: var(--blush-deep); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ig-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 37, 35, 0);
  transition: background .45s var(--ease);
}
.ig-grid a:hover img, .ig-grid a:focus-visible img { transform: scale(1.07); }
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { background: rgba(43, 37, 35, .22); }
/* The glyph, play mark and caption are injected by main.js into either grid,
   so they're styled on their own classes rather than nested under .ig-grid. */
.ig-glyph {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px; height: 28px;
  color: var(--white);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  z-index: 2;
}
.ig-grid a:hover .ig-glyph, .ig-grid a:focus-visible .ig-glyph,
.ig-tiles a:hover .ig-glyph, .ig-tiles a:focus-visible .ig-glyph { opacity: 1; transform: scale(1); }

/* Reels get a permanent play mark so the grid reads honestly. */
.ig-play {
  position: absolute;
  top: .5rem; right: .5rem;
  width: 22px; height: 22px;
  color: var(--white);
  filter: drop-shadow(0 1px 3px rgba(38, 30, 30, .5));
  z-index: 2;
}
.ig-tiles .ig-play { width: 16px; height: 16px; top: .3rem; right: .3rem; }

/* Caption on hover - proof these are the real posts, not decoration. */
.ig-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 2.2rem .7rem .6rem;
  font-size: .68rem;
  line-height: 1.45;
  color: var(--white);
  background: linear-gradient(to top, rgba(38, 30, 30, .82), rgba(38, 30, 30, 0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-grid a:hover .ig-cap, .ig-grid a:focus-visible .ig-cap { opacity: 1; transform: none; }
/* Touch has no hover, so show the caption band permanently instead. */
@media (hover: none) {
  .ig-grid .ig-cap { opacity: 1; transform: none; -webkit-line-clamp: 2; font-size: .62rem; }
  .ig-glyph { display: none; }
}

/* ---------------------------------------------------------------- needs --
   Review-draft blocks. Two jobs: tell Teddi exactly what to send, and look
   deliberate while doing it, so the draft still reads as a designed page
   rather than a broken one. Every one is removable on its own.            */

.needs {
  position: relative;
  border: 1px dashed var(--pink);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(252, 237, 241, .55), rgba(255, 251, 247, .3));
  padding: clamp(1.5rem, 6vw, 2.5rem);
  text-align: center;
}
.needs__label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .38rem .9rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--cream);
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.needs__label svg { width: 13px; height: 13px; }
.needs h3 { font-size: clamp(1.25rem, 5.5vw, 1.7rem); margin-bottom: .5rem; }
.needs p { font-size: .95rem; color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.needs ul {
  list-style: none;
  margin: 1.1rem auto 0;
  padding: 0;
  max-width: 44ch;
  text-align: left;
  display: grid;
  gap: .5rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.needs li { padding-left: 1.4rem; position: relative; }
.needs li::before { content: "\2014"; position: absolute; left: 0; color: var(--pink-deep); }

/* Video slot: a real 16:9 frame so the page keeps its proportions once the
   clip drops in, with the brief sitting inside it. */
.needs--video { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-inline: 1.25rem; }
.needs--video.needs--portrait { aspect-ratio: 4 / 5; }
.needs__play {
  width: clamp(46px, 13vw, 62px);
  aspect-ratio: 1;
  border: 1px solid var(--pink-deep);
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  color: var(--pink-deep);
}
.needs__play svg { width: 40%; height: 40%; margin-left: 12%; }

/* Inline variant for a missing line of copy, sitting in the flow of a page. */
.needs--inline { text-align: left; padding: clamp(1.15rem, 4vw, 1.6rem); }
.needs--inline p, .needs--inline ul { margin-inline: 0; }

/* ------------------------------------------------------------- timeline --
   The 2026 season, drawn from the stable's own posts. Real dates, real
   placings - the most persuasive thing on the site, so it gets room. */

.timeline { position: relative; display: grid; gap: 0; margin-top: clamp(2rem, 7vw, 3rem); }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: .6rem; bottom: .6rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--pink-light), var(--pink-light) 85%, transparent);
}
.tl-item {
  position: relative;
  display: grid;
  gap: .15rem;
  padding: 0 0 clamp(1.5rem, 5vw, 2rem) clamp(1.6rem, 6vw, 2.4rem);
  text-decoration: none;
  color: inherit;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: .55rem;
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--pink-deep);
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.section--cream .tl-item::before { background: var(--cream-2); }
.tl-item:hover::before { background: var(--rose); transform: scale(1.25); }
.tl-date { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.tl-horse { font-family: var(--serif); font-size: clamp(1.2rem, 5vw, 1.5rem); line-height: 1.25; }
.tl-what { font-size: .93rem; color: var(--ink-soft); }
.tl-item[href]:hover .tl-horse { color: var(--rose); }
.tl-src {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink-deep);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.tl-item[href]:hover .tl-src { opacity: 1; }
@media (hover: none) { .tl-src { opacity: .8; } }

/* ------------------------------------------------------------ lightbox --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(30, 24, 24, .95);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; }
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 74vh;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  transform: scale(.97);
  transition: transform .45s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__cap {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 251, 247, .72);
  text-align: center;
}
.lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 251, 247, .3);
  border-radius: 999px;
  background: rgba(30, 24, 24, .5);
  color: var(--cream);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lightbox button:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.lightbox__close { top: calc(-1 * clamp(.5rem, 3vw, 3rem)); right: 0; position: fixed; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(-4rem, -6vw, -1rem); top: calc(50% - 24px); }
.lightbox__next { right: clamp(-4rem, -6vw, -1rem); top: calc(50% - 24px); }
@media (max-width: 700px) {
  .lightbox__prev { left: .25rem; }
  .lightbox__next { right: .25rem; }
  .lightbox img { max-height: 66vh; }
}
body.lightbox-open { overflow: hidden; }

/* Signals the gallery frames are openable. */
.gallery figure { cursor: zoom-in; }

/* Contact-page sidebar variant. */
.ig-panel { background: var(--blush); border-radius: 4px; padding: clamp(1.5rem, 6vw, 2.25rem); }
.ig-panel__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.35rem; }
.ig-panel__head svg { width: 26px; height: 26px; color: var(--rose); flex-shrink: 0; }
.ig-panel__head span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
/* After the span rule - the handle sits inside that wrapper and would
   otherwise inherit its uppercasing and tracking. */
.ig-panel__head b {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--ink);
}
.ig-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: 1.35rem; }
.ig-tiles a { position: relative; display: block; overflow: hidden; border-radius: 2px; aspect-ratio: 1; }
.ig-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s var(--ease); }
.ig-tiles a:hover img { transform: scale(1.08); opacity: .88; }

/* ------------------------------------------------------------- journal --- */

.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post {
  display: grid;
  gap: .4rem;
  padding-block: clamp(1.35rem, 5vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background .4s var(--ease), padding-inline .4s var(--ease);
}
.post:hover { background: var(--cream-2); }
.post__date { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); order: -1; }
.post h3 { margin: 0 0 .3rem; }
.post p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.post__go { display: none; font-size: 1.25rem; color: var(--pink-deep); transition: transform .4s var(--ease); }

/* Long-form article body. */
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
.prose h2:first-child { margin-top: 0; }
.prose blockquote {
  margin: 2em 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--pink-light);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--rose);
}
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--pink-deep); }

.article-head h1 { max-width: 20ch; margin-inline: auto; }
.article-nav { display: flex; justify-content: center; padding-top: clamp(2rem, 8vw, 3.5rem); border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 9vw, 4.5rem); }

/* ------------------------------------------------------------ statement --
   Full-bleed serif line over a darkened photograph. The page needs one
   moment that is purely atmosphere. */

.statement { position: relative; overflow: hidden; text-align: center; color: var(--cream); padding-block: clamp(4.5rem, 18vw, 9rem); }
.statement__media { position: absolute; inset: 0; }
.statement__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.statement__media::after { content: ""; position: absolute; inset: 0; background: rgba(38, 30, 30, .62); }
.statement .shell { position: relative; z-index: 2; }
.statement p {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8vw, 3.1rem);
  line-height: 1.28;
  font-style: italic;
  color: var(--white);
  max-width: 20ch;
  margin-inline: auto;
}
.statement img.flamingo-mark { filter: brightness(0) invert(1); opacity: .85; margin-bottom: 1.75rem; }

/* ------------------------------------------------------------------ cta -- */

.cta { position: relative; text-align: center; color: var(--cream); overflow: hidden; }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: rgba(38, 30, 30, .62); }
.cta .shell { position: relative; z-index: 2; }
.cta h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta p { color: rgba(255, 251, 247, .88); max-width: 52ch; margin-inline: auto; }

/* --------------------------------------------------------------- footer -- */

.site-footer { background: var(--ink); color: rgba(255, 251, 247, .72); padding-block: clamp(3rem, 12vw, 5.5rem) 2.25rem; text-align: center; }
.site-footer a { color: rgba(255, 251, 247, .72); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }

.footer-grid { display: grid; gap: clamp(2rem, 8vw, 4rem); }
.footer-brand img { width: 168px; margin: 0 auto 1.35rem; }
.footer-brand p { font-size: .93rem; max-width: 34ch; margin-inline: auto; }
.footer-brand .ig-link { margin-inline: auto; }

.footer-col h4 { font-family: var(--sans); font-size: .66rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .95rem; }

.footer-bottom {
  margin-top: clamp(2.25rem, 8vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 251, 247, .13);
  display: grid;
  gap: .6rem;
  font-size: .74rem;
  color: rgba(255, 251, 247, .5);
}

/* --------------------------------------------------------------- reveal -- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   640px and up - roomier phones, small tablets
   ========================================================================== */

@media (min-width: 640px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-auto-columns: 42vw; }
  .btn { width: auto; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); text-align: left; }
  .site-footer { text-align: left; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img, .footer-brand p, .footer-brand .ig-link { margin-inline: 0; }
  .footer-bottom { grid-auto-flow: column; justify-content: space-between; }
}

/* ==========================================================================
   900px and up - the desktop layout
   ========================================================================== */

@media (min-width: 900px) {

  /* Nav returns to the bar. */
  .burger { display: none; }
  .site-header { padding-block: 1.15rem; background: rgba(255, 251, 247, .94); backdrop-filter: blur(14px) saturate(1.1); }
  .site-header.is-stuck { padding-block: .7rem; }
  .site-header.is-stuck .brand img { width: 44px; }
  .brand { gap: .85rem; }
  .brand img { width: 54px; }
  .brand__name { font-size: 1.16rem; letter-spacing: .3em; }

  .nav {
    position: static;
    flex-direction: row;
    gap: clamp(1.4rem, 2.6vw, 2.6rem);
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav::after { display: none; }
  .nav a { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; }

  /* Hero becomes a split - cream copy beside a full-height photograph. */
  .hero {
    min-height: min(calc(96vh - var(--header-h)), 820px);
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: stretch;
  }
  /* The card becomes a plain column again - the split already sets the copy
     apart, so it needs no border or shadow. Contents stay centred on the
     column's axis, matching the phone. */
  .hero__media { height: auto; min-height: 0; }
  .hero__media::after { background: none; }
  .hero__body {
    /* Photo sits first in the markup so the phone leads with it; on the split
       the copy has to move back to the left column. */
    order: -1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 4rem);
  }
  .hero__body .display { font-size: clamp(2.2rem, 3.8vw, 3.4rem); max-width: 15ch; }
  .hero__lede { max-width: 42ch; }
  .hero__actions { flex-direction: row; }

  .scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    margin-top: clamp(2rem, 4vw, 3.5rem);
    font-size: .62rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-decoration: none;
    align-self: center;
  }
  .scroll-cue:hover { color: var(--rose); }
  .scroll-cue i { display: block; width: 56px; height: 1px; background: currentColor; transform-origin: left; animation: cue 2.6s var(--ease) infinite; }

  .intro-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; }
  .result-band { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 .card__media { aspect-ratio: 3 / 2; }
  .grid--3 .card__media { aspect-ratio: 4 / 5; }

  /* Gallery goes back to a fixed strip. */
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto;
    gap: clamp(.6rem, 1.2vw, 1rem);
    overflow: visible;
    padding-inline: 0;
    margin-inline: 0;
  }
  .swipe-hint { display: none; }

  .figure--offset { padding: 0 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); }
  .figure--offset::before {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 62%; height: 78%;
    background: var(--blush);
    border-radius: 3px;
    z-index: -1;
  }

  .post {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
  }
  .post:hover { padding-inline: 1.5rem; }
  .post__date { order: 0; }
  .post__go { display: block; }
  .post:hover .post__go { transform: translateX(6px); }

  .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); align-items: start; }
  .footer-brand { grid-column: auto; }

  .ig-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   1200px and up
   ========================================================================== */

@media (min-width: 1200px) {
  .contact-grid { gap: clamp(2.5rem, 6vw, 5.5rem); }
  .ig-head { margin-bottom: 3rem; }
}

/* --------------------------------------------------------------- forms --- */

.contact-grid { display: grid; gap: clamp(2.5rem, 9vw, 5.5rem); }

.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .95rem 1.1rem;
  width: 100%;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(227, 162, 181, .22);
}
.field input::placeholder, .field textarea::placeholder { color: #B9ADA5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238E4E62' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 12px;
  padding-right: 2.75rem;
}
.field-row { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* Honeypot - a bot fills this, a person never sees it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { font-size: .82rem; color: var(--ink-soft); }

.form-status { display: none; padding: 1rem 1.25rem; border-radius: 3px; font-size: .94rem; }
.form-status.is-shown { display: block; }
.form-status--ok  { background: var(--blush); color: var(--rose); border: 1px solid var(--pink-light); }
.form-status--err { background: #FDF0EC; color: #A0522D; border: 1px solid #F0D4C6; }

.contact-aside { display: grid; gap: 2rem; }
.detail { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.detail dt { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.detail dd { margin: 0; font-family: var(--serif); font-size: 1.35rem; }
.detail dd a { text-decoration: none; }

@media print {
  .site-header, .scroll-cue, .cta, .burger, .marquee, .statement { display: none; }
  body { background: #fff; }
}
