/* Guadalupe case study. Palette from the Color & Typography board: Red #FF0000 (as listed in the XD), Orange #E7933F,
   Lime #E2DD53, Yellow #FFD446, Beige #E7E6CF, Light Blue #B0CFB8, on the XD's cream #F6F4DC with #10201B ink, gold
   #EFC96E (logo boards) and #B98943 (core values). Inclusive Sans for copy and labels, as specified; Helvetica Neue for
   the board briefs, as in the XD; Fredoka stands in for the Pilapil display face. */

body.case-guadalupe main { margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); }
.gd {
  --red: #ff0000; --orange: #e7933f; --lime: #e2dd53; --yellow: #ffd446; --beige: #e7e6cf; --sky: #b0cfb8;
  --cream: #f6f4dc; --ink: #10201b; --gold: #efc96e; --brown: #b98943;
  --pad: clamp(18px, 3vw, 58px);
  --col: min(1440px, 100% - 2 * var(--pad));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inclusive Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Pilapil Sans", "Fredoka", "Inclusive Sans", sans-serif;
  background: #fff; color: var(--ink);
  font: 400 clamp(15px, 1.05vw, 20px)/1.5 var(--body);
  color-scheme: light;
}
.gd figure { margin: 0; }
.gd img { display: block; width: 100%; height: auto; }
.gd p { margin: 0; }
.gd h2, .gd h3 { margin: 0; font-weight: 400; }
.gd :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.gd .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gd button { font: inherit; color: inherit; }
.gd-sec { position: relative; }
.gd-cream { background: var(--cream); }
.gd-wm { display: block; width: 100%; height: auto; overflow: visible; }
.gd-mark { display: inline-block; aspect-ratio: 1; background: var(--red); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* Briefs, set as the XD's: a title and a wide paragraph, Helvetica Neue */
.gd-brief { width: var(--col); margin: 0 auto; padding: clamp(72px, 10vw, 170px) 0 clamp(48px, 6vw, 110px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 12px clamp(24px, 4vw, 80px); font-family: var(--sans); }
.gd-brief h2 { font-size: clamp(22px, 1.9vw, 34px); line-height: 1.15; grid-row: span 3; }
.gd-brief p { max-width: 68ch; text-wrap: pretty; }
.gd-brief p + p { margin-top: .6em; }

/* Reveal */
.gd-js .gd .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.gd-js .gd .rv.in { opacity: 1; transform: none; }

/* Hero: cream, the wordmark arrives letter by letter, the mark turns in */
.gd-hero { position: relative; min-height: 100svh; background: var(--cream); color: var(--red); display: grid; grid-template-rows: 1fr auto; padding: clamp(80px, 12vh, 140px) var(--pad) clamp(24px, 4vw, 48px); overflow: hidden; }
.gd-hero-in { position: relative; align-self: center; width: min(1440px, 100%); margin: 0 auto; }
.gd-hero .label { color: var(--brown); margin-bottom: clamp(18px, 3vw, 40px); }
.gd-hero h1 { margin: 0; font-size: 1em; width: min(100% - clamp(110px, 18vw, 300px), 1180px); }
.gd-hero-line { margin-top: clamp(18px, 2.6vw, 40px) !important; font: 500 clamp(24px, 3.8vw, 68px)/1.05 var(--display); color: var(--ink); }
.gd-hero-line span { display: inline-block; }
.gd-w { white-space: nowrap; }
.gd-hero-mark { position: absolute; right: 0; top: 50%; width: clamp(90px, 15vw, 260px); transform: translateY(-50%); }
.gd-meta { width: min(1440px, 100%); margin: clamp(40px, 6vw, 80px) auto 0; color: var(--ink); --line: #dcd8b8; --muted: var(--brown); }
.gd-js .gd-hero-wm path { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: translateY(40%) scale(.9); animation: gd-pop .9s var(--pop) forwards; animation-delay: calc(.2s + var(--i) * 70ms); }
.gd-js .gd-hero-line .gd-w > span { opacity: 0; transform: translateY(.5em) rotate(-8deg); animation: gd-pop .7s var(--pop) forwards; animation-delay: calc(1s + var(--i) * 28ms); }
.gd-js .gd-hero-mark { opacity: 0; animation: gd-mark 1.6s .6s var(--ease) forwards; }
@keyframes gd-pop { to { opacity: 1; transform: none; } }
@keyframes gd-mark { from { opacity: 0; transform: translateY(-50%) rotate(-150deg) scale(.4); } to { opacity: 1; transform: translateY(-50%); } }

/* Chrome: the XD's B / N circles */
.gd-chrome { position: fixed; z-index: 16; inset: auto 0 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 clamp(12px, 2vw, 36px) clamp(12px, 2vw, 32px); color: #fff; mix-blend-mode: difference; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease), visibility .4s; }
.gd.chrome-on .gd-chrome { opacity: 1; visibility: visible; transform: none; }
.gd-pn { pointer-events: auto; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; color: inherit; text-decoration: none; font: 400 13px var(--sans); transition: background .25s, color .25s; }
.gd-pn:hover, .gd-pn:focus-visible { background: #fff; color: #000; }
.gd-now { display: flex; gap: 10px; font: 400 12px var(--sans); }
.gd-progress { position: fixed; z-index: 16; left: 0; right: 0; top: 0; height: 3px; opacity: 0; transition: opacity .4s; }
.gd.chrome-on .gd-progress { opacity: 1; }
.gd-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }

/* Overview: then and now */
.gd-then { width: var(--col); margin: 0 auto; padding-bottom: clamp(64px, 9vw, 140px); display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 56px); align-items: center; }
.gd-then figure { position: relative; }
.gd-then figcaption { font-size: 13px; color: var(--brown); margin-bottom: 10px; }
.gd-then-old img { aspect-ratio: 707 / 1000; object-fit: contain; background: #fff; }
.gd-then-new img { box-shadow: 0 30px 60px -30px rgba(16, 32, 27, .35); transition: transform .8s var(--pop); }
.gd-then-new:hover img { transform: rotate(-1.5deg) scale(1.02); }
.gd-then-arrow { font: 500 clamp(28px, 3vw, 54px) var(--display); color: var(--red); }

/* Cultural insight mosaic: three rows on the XD's columns */
.gd-mosaic { display: grid; gap: clamp(8px, 1.9vw, 36px); }
.gd-row { display: grid; gap: clamp(8px, 1.9vw, 36px); }
.gd-row > * { overflow: hidden; min-width: 0; }
.gd-row img, .gd-row video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gd-row figure:hover img { transform: scale(1.06); }
.gd-row-1 { grid-template-columns: 560fr 644fr 304fr 304fr; aspect-ratio: 1920 / 443; }
.gd-row-2 { grid-template-columns: 260fr 260fr 640fr 204fr 414fr; aspect-ratio: 1920 / 268; }
.gd-row-3 { grid-template-columns: 560fr 297fr 301fr 644fr; aspect-ratio: 1920 / 302; }
.gd-js .gd-row .rv { transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease), opacity .6s; }
.gd-js .gd-row .rv.in { clip-path: inset(0); }
.gd-row > :nth-child(2) { transition-delay: .07s; } .gd-row > :nth-child(3) { transition-delay: .14s; } .gd-row > :nth-child(4) { transition-delay: .21s; } .gd-row > :nth-child(5) { transition-delay: .28s; }

/* Video */
.gd-vid { position: relative; overflow: hidden; background: #2a2a20; }
.gd-vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-bg { position: absolute; inset: 0; }
.gd-vid-toggle { position: absolute; z-index: 3; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(246, 244, 220, .9); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.gd-vid:hover .gd-vid-toggle, .gd-slogan:hover .gd-vid-toggle, .gd-appvid:hover .gd-vid-toggle, .gd-vid-toggle:focus-visible, .gd-vid-toggle[data-state="paused"] { opacity: 1; }
@media (hover: none) { .gd-vid-toggle { opacity: .9; } }
.gd-vid-toggle span { width: 9px; height: 11px; border-inline: 3px solid var(--ink); }
.gd-vid-toggle[data-state="paused"] span { width: 0; height: 0; border: 0; border-left: 10px solid var(--ink); border-block: 6px solid transparent; margin-left: 3px; }

/* Core values */
.gd-values { width: var(--col); margin: 0 auto; padding-bottom: clamp(64px, 9vw, 150px); color: var(--brown); }
.gd-tablist { display: flex; gap: clamp(8px, 2vw, 32px); border-bottom: 1px solid #e6dcc6; margin-bottom: clamp(28px, 5vw, 80px); overflow-x: auto; scrollbar-width: none; }
.gd-tablist::-webkit-scrollbar { display: none; }
.gd-tablist button { position: relative; flex: none; border: 0; background: none; padding: 14px 2px 16px; cursor: pointer; font-size: clamp(14px, 1.1vw, 19px); color: #c9b48f; transition: color .3s; }
.gd-tablist button sup { font-size: .6em; margin-right: 4px; }
.gd-tablist button[aria-selected="true"] { color: var(--brown); }
.gd-tablist button i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brown); transform: scaleX(0); transform-origin: 0 50%; }
.gd-tablist button[aria-selected="true"] i { transform: scaleX(var(--t, 1)); }
.gd-tabpanel[hidden] { display: none; }
.gd-tabpanel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 100px); align-items: end; min-height: clamp(280px, 30vw, 520px); }
.gd-vword { font: 400 clamp(46px, 6.2vw, 120px)/.98 var(--sans); letter-spacing: -.03em; align-self: start; text-wrap: balance; }
.gd-vword sup { font-size: 13px; letter-spacing: 0; vertical-align: top; margin-right: 12px; position: relative; top: -.3em; }
.gd-vtext { font: 400 clamp(18px, 1.6vw, 30px)/1.35 var(--sans); max-width: 30ch; }
.gd-js .gd-tabpanel:not([hidden]) .gd-vword { animation: gd-in .8s var(--ease); }
.gd-js .gd-tabpanel:not([hidden]) .gd-vtext { animation: gd-in .8s .12s var(--ease) both; }
@keyframes gd-in { from { opacity: 0; transform: translateY(24px); } }

/* Core values ext: three floating pieces, then the bowl with four moments */
.gd-float { position: relative; height: clamp(520px, 56vw, 1070px); }
.gd-float > * { position: absolute; overflow: hidden; }
.gf-a { left: 5%; top: 8%; width: 28%; aspect-ratio: 538 / 629; }
.gf-b { left: 36%; top: 3%; width: 28%; aspect-ratio: 538 / 1020; }
.gf-c { right: 5%; top: 34%; width: 28%; aspect-ratio: 538 / 629; }
.gf-a img, .gf-c img { height: 100%; object-fit: cover; }
.gd-float [data-speed] { transform: translateY(var(--y, 0px)); will-change: transform; }
.gd-moments { position: relative; color: #fff; min-height: min(56.7vw, 1088px); display: grid; align-items: end; overflow: hidden; }
.gd-moments-bg { position: absolute; inset: 0; height: 100% !important; object-fit: cover; filter: brightness(.71); }
.gd-moments::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(20, 12, 0, .72) 85%); }
.gd-moments-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: clamp(40px, 6vw, 100px) var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.6vw, 48px); align-items: end; }
.gd-moments-list li { display: flex; flex-direction: column-reverse; gap: 14px; }
.gm-t { font: 400 clamp(16px, 1.3vw, 25px)/1.2 var(--sans); display: flex; gap: 14px; border-top: 1px solid rgba(255,255,255,.6); padding-top: 12px; }
.gm-t b { font-weight: 400; }
.gm-b { font: 400 clamp(14px, 1.05vw, 19px)/1.4 var(--sans); max-width: 28ch; }

/* Slogan: the video, and the line bouncing in */
.gd-slogan { position: relative; min-height: min(56.7vw, 100svh); display: grid; align-items: end; justify-items: end; padding: var(--pad); overflow: hidden; color: #fff; }
.gd-slogan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.35)); pointer-events: none; }
.gd-slogan-t { position: relative; z-index: 2; font: 500 clamp(30px, 4.4vw, 84px)/1.08 var(--display); text-align: left; padding-bottom: clamp(40px, 6vw, 80px); }
.gs-l { display: block; white-space: nowrap; }
.gs-l > span { display: inline-block; }
.gd-js .gd-slogan .gs-l > span { opacity: 0; transform: translateY(.7em) rotate(10deg); transition: opacity .5s, transform .8s var(--pop); transition-delay: calc(var(--i) * 32ms); }
.gd-js .gd-slogan.run .gs-l > span { opacity: 1; transform: none; }

/* Brand logo */
.gd-logo-grid { width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 60px) clamp(24px, 4vw, 80px); align-items: center; }
.gd-gpanel { grid-column: 2; background: #f2f2f2; aspect-ratio: 678 / 564; overflow: hidden; }
.gd-gpanel svg { width: 100%; height: 100%; }
.gd-gpanel path { fill: none; stroke: var(--red); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.gd-js .gd-gpanel path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3s var(--ease); }
.gd-js .gd-gpanel.run path { stroke-dashoffset: 0; }
.gd-logo-copy { grid-column: 1; grid-row: 2; display: grid; gap: 1em; font-size: clamp(15px, 1.05vw, 20px); }
.gd-apanel { grid-column: 2; grid-row: 2; position: relative; background: var(--gold); aspect-ratio: 678 / 564; display: grid; place-items: center; }
.gd-apanel svg { width: 52%; height: auto; overflow: visible; }
.gd-apanel-t { position: absolute; left: 22px; top: 18px; color: var(--cream); font-size: 15px; }
.ga-a { fill: var(--cream); stroke: #707070; stroke-width: 1; }
.ga-guide { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .5; transition: stroke-dashoffset 1.4s var(--ease); }
.ga-s { opacity: 0; transition: opacity .5s; }
.gd-apanel[data-astep="0"] .ga-s0, .gd-apanel[data-astep="1"] .ga-s1, .gd-apanel[data-astep="2"] .ga-s2 { opacity: 1; }
.gd-apanel[data-astep="1"] .ga-s1 .ga-guide, .gd-apanel[data-astep="2"] .ga-s2 .ga-guide { stroke-dashoffset: 0; }
html:not(.gd-js) .ga-s2 { opacity: 1; } html:not(.gd-js) .ga-guide { stroke-dashoffset: 0; }
.gd-apanel-steps { position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.gd-apanel-steps button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--cream); background: none; color: var(--cream); cursor: pointer; font-size: 13px; transition: background .25s, color .25s; }
.gd-apanel-steps button[aria-pressed="true"], .gd-apanel-steps button:hover { background: var(--cream); color: var(--gold); }
.gd-logo-big { width: var(--col); margin: clamp(64px, 9vw, 150px) auto; padding: clamp(40px, 8vw, 140px) clamp(16px, 8vw, 160px); color: var(--gold); position: relative; }
.gd-logo-big::before { content: ""; position: absolute; inset: 0 8%; border-radius: 0 0 50% 50% / 0 0 30% 30%; background: #fdfbf9; z-index: -1; }
.gd-js .gd-big-wm path { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.2); transition: opacity .5s, transform .9s var(--pop); transition-delay: calc(var(--i) * 60ms); }
.gd-js .gd-logo-big.run .gd-big-wm path { opacity: 1; transform: none; }
.gd-ladder-wrap { width: var(--col); margin: 0 auto; padding-bottom: clamp(64px, 9vw, 150px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 80px); }
.gd-ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(6px, .9vw, 16px); color: var(--red); }
.gd-ladder li { width: calc(var(--h) / 215 * 100%); }
.gd-js .gd-ladder li { opacity: 0; transform: translateX(-24px); transition: opacity .6s, transform .8s var(--ease); transition-delay: calc(var(--i) * 50ms); }
.gd-js .gd-ladder.in li { opacity: 1; transform: none; }
.gd-ladder-side { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 24px); align-content: start; }
.gd-hanzi { grid-column: 2; justify-self: end; width: clamp(40px, 5vw, 90px); }
.gd-hanzi img { mix-blend-mode: multiply; }
.gd-ladder-side > figure:nth-child(2) { grid-column: 1 / -1; }
.gd-logo-vid { aspect-ratio: 583 / 900; }
.gd-bits { position: relative; background: var(--red); }
.gd-bits canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gd-bits-sm { aspect-ratio: 583 / 900; }

/* Brand mark story: four cream boards */
.gd-boards { display: grid; }
.gd-board { position: relative; min-height: min(56.25vw, 100svh); border-bottom: 1px solid #e3dfbf; display: grid; }
.gd-board-tag { position: absolute; z-index: 4; right: clamp(10px, 1.6vw, 30px); bottom: clamp(80px, 12vw, 200px); writing-mode: vertical-rl; font: 400 13px var(--sans); color: var(--ink); }
.gd-packs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.gd-packs li { border-right: 1px solid #d9d4b4; border-bottom: 1px solid #d9d4b4; overflow: hidden; }
.gd-packs img { transition: transform .8s var(--pop); }
.gd-packs li:hover img { transform: scale(1.08) rotate(-3deg); }
.gd-b-concept { place-items: center; padding: clamp(40px, 6vw, 90px) 0; }
.gd-refs { position: relative; width: min(42vw, 480px); aspect-ratio: 5 / 7; }
.gd-refs figure { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: translateY(12px) rotate(-2deg); transition: opacity .8s, transform .9s var(--ease); }
.gd-refs figure.on { opacity: 1; transform: none; }
.gd-refs img { max-height: 100%; width: auto; max-width: 100%; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
.gd-refs-n { position: absolute; left: var(--pad); bottom: clamp(20px, 3vw, 44px); font-size: 13px; color: var(--brown); font-variant-numeric: tabular-nums; }
.gd-refs-n span { color: var(--ink); }
.gd-b-approach, .gd-b-align { height: min(56.25vw, 100svh); display: block; overflow: hidden; }
.gd-approach { display: grid; grid-template-columns: 710fr 710fr 500fr; grid-template-rows: 1fr 1fr; width: 100%; height: 100%; }
.gd-approach > * { overflow: hidden; min-height: 0; }
.gd-approach img, .gd-approach video { width: 100%; height: 100%; object-fit: cover; }
.ga-1 { grid-area: 1 / 1; } .ga-2 { grid-area: 1 / 2; } .ga-3 { grid-area: 2 / 1; }
.ga-4 { grid-area: 2 / 2; display: grid; place-items: center; gap: 8px; padding: 12px; background: var(--cream); }
.ga-figs { position: relative; width: min(72%, 300px); aspect-ratio: 744 / 736; }
.ga-figs img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.ga-figs img.on { opacity: 1; }
.ga-range { display: flex; align-items: center; gap: 12px; width: min(80%, 320px); font: 400 13px var(--sans); }
.ga-range input { flex: 1; accent-color: var(--red); }
.gd-align { display: grid; grid-template-columns: 1fr 1.15fr .62fr; width: 100%; height: 100%; }
.gd-align-copy { display: grid; align-content: center; padding: var(--pad); border-right: 1px solid #d9d4b4; }
.gd-align-t { font: 500 clamp(28px, 3.2vw, 60px)/1.1 var(--display); color: var(--red); min-height: 3.4em; transition: opacity .4s; }
.gd-align-t.swap { opacity: 0; }
.gd-align-mark { position: relative; display: grid; place-items: center; padding: 8%; }
.gd-align-mark img { grid-area: 1 / 1; transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.gd-align-mark .al-2 { opacity: 0; transform: rotate(-36deg) scale(.92); }
.gd-align.fill .al-2 { opacity: 1; transform: none; }
.gd-align.fill .al-1 { opacity: .15; }
.gd-align-vid { height: 100%; }

/* Brand mark board */
.gd-markboard { width: var(--col); margin: 0 auto; padding: clamp(72px, 9vw, 160px) 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 36px); align-items: start; }
.gd-mb-photos { grid-column: 1 / 6; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-1 { grid-column: 1 / -1; } .mp-3 { grid-column: 1 / 2; } .mp-2, .mp-4 { overflow: hidden; }
.gd-mb-copy { grid-column: 8 / -1; grid-row: 1; font-family: var(--sans); display: grid; gap: 14px; }
.gd-mb-copy h2 { font-size: clamp(22px, 1.9vw, 34px); }
.gd-mb-mark { grid-column: 6 / 12; grid-row: 2; }
.gd-mb-mark .gd-mark { width: 100%; transform: rotate(var(--r, 0deg)); }
.gd-mb-copy2 { grid-column: 1 / 6; grid-row: 3; font-family: var(--sans); align-self: center; }
.gd-mb-bloom { grid-column: 8 / 11; grid-row: 3; aspect-ratio: 1; background: #fff; }
.gd-bleed { overflow: hidden; }
.gd-bleed img, [data-zoom] img { transform: scale(var(--z, 1)); }
.gd-appvid { position: relative; min-height: min(56.25vw, 100svh); color: var(--cream); overflow: hidden; }
.gd-appvid-wm { position: absolute; right: var(--pad); bottom: clamp(24px, 4vw, 60px); width: clamp(180px, 30vw, 568px); }
.gd-appvid-mark { position: absolute; left: var(--pad); top: clamp(20px, 3vw, 44px); width: clamp(40px, 4vw, 70px); background: var(--cream); }

/* Key visuals */
.gd-kv { width: var(--col); margin: 0 auto; padding-bottom: clamp(64px, 9vw, 150px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 48px) clamp(16px, 2.6vw, 58px); }
.gd-kv figure { position: relative; aspect-ratio: 1; }
.gd-kv figure > img { height: 100%; object-fit: cover; }
.gd-kv figcaption { position: absolute; bottom: 100%; left: 0; padding-bottom: 6px; font: 400 14px var(--sans); color: rgba(16, 32, 27, .55); }
.kv-cut svg { width: 100%; height: 100%; display: block; }
.kc-bg { fill: var(--cream); }
.kc-frame { fill: none; stroke: var(--red); stroke-width: 10; }
.kv-cut line { stroke: var(--red); stroke-width: 9; }
.gd-js .kv-cut line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.gd-js .kv-cut.run line { animation: gd-cut 6s var(--ease) infinite; animation-delay: calc(var(--i) * .12s); }
.gd-js .kv-cut.run .kc-h { animation-name: gd-cut-h; }
@keyframes gd-cut { 0% { stroke-dashoffset: 1; } 18%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes gd-cut-h { 0%, 22% { stroke-dashoffset: 1; } 40%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
.kv-bits { grid-column: 1 / 3; aspect-ratio: auto !important; }
.kv-bits .gd-bits { height: 100%; min-height: 240px; }
.kv-vid { aspect-ratio: 1; }

/* Colour and typography: the board over the laid-out mangoes */
.gd-color { position: relative; overflow: hidden; min-height: calc(100vw * 3235 / 1920); display: grid; grid-template-rows: auto 1fr auto; }
.gd-color-bg { position: absolute; inset: 0; height: 100% !important; object-fit: cover; object-position: 50% 0; z-index: 0; }
.gd-color > :not(.gd-color-bg) { position: relative; z-index: 1; }
.gd-color-top { grid-row: 1; }
.gd-color-top .gd-brief { padding-bottom: clamp(24px, 4vw, 60px); }
.gd-display { width: var(--col); margin: 0 auto; font: 500 clamp(80px, 9.4vw, 180px)/1 var(--display); color: var(--orange); }
.gd-color-bottom { grid-row: 3; width: var(--col); margin: 0 auto; padding: clamp(40px, 6vw, 100px) 0 clamp(90px, 9vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); align-items: end; color: var(--cream); }
.gd-type { display: grid; gap: 18px; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.gd-type-slogan { font-size: clamp(18px, 1.55vw, 30px); letter-spacing: .02em; }
.gd-type-set { font-size: clamp(18px, 1.55vw, 30px); line-height: 1.25; }
.gd-try { display: grid; gap: 6px; font-size: 12px; }
.gd-try input { font: 400 clamp(18px, 1.6vw, 28px) var(--body); color: var(--cream); background: rgba(16, 32, 27, .18); border: 0; border-bottom: 1px solid var(--cream); padding: 8px 10px; width: 100%; }
.gd-try input:focus { outline: none; background: rgba(16, 32, 27, .3); }
.gd-pal { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1vw, 18px); }
.gd-sw { aspect-ratio: 1; border: 0; background: var(--c); color: var(--ink); cursor: pointer; display: flex; align-items: flex-end; padding: 10px; text-align: left; font-size: clamp(11px, .8vw, 14px); line-height: 1.3; transition: transform .35s var(--pop), box-shadow .35s; }
.gd-sw span { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.gd-sw:hover, .gd-sw:focus-visible { transform: translateY(-6px) rotate(-2deg); box-shadow: 0 16px 30px -16px rgba(0,0,0,.4); }
.gd-sw:hover span, .gd-sw:focus-visible span, .gd-sw.done span { opacity: 1; transform: none; }
@media (hover: none) { .gd-sw span { opacity: 1; transform: none; } }
.gd-sw:first-child { color: #fff; }
.gd-pal-note { grid-column: 1 / -1; min-height: 1.5em; font-size: 13px; }

/* Application */
.gd-two { display: grid; grid-template-columns: 1fr 1fr; }
.gd-two figure { overflow: hidden; }
.gd-two img { height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gd-two figure:hover img { transform: scale(1.04); }
.gd-end-ty { display: grid; align-content: space-between; padding: clamp(20px, 2vw, 40px); }
.gd-end-ty p { font: 500 clamp(72px, 10vw, 200px)/.95 var(--display); }
.gd-end-mark { width: clamp(50px, 6vw, 110px); }

/* Phones and small tablets */
@media (max-width: 900px) {
  .gd-brief { grid-template-columns: 1fr; }
  .gd-brief h2 { grid-row: auto; }
  .gd-hero h1 { width: 100%; }
  .gd-hero-mark { position: static; display: block; transform: none; margin-top: 28px; width: 90px; }
  .gd-js .gd-hero-mark { animation-name: gd-mark-s; }
  @keyframes gd-mark-s { from { opacity: 0; transform: rotate(-150deg) scale(.4); } to { opacity: 1; transform: none; } }
  .gd-then { grid-template-columns: 1fr 1fr; } .gd-then-arrow { display: none; }
  .gd-row-1, .gd-row-2, .gd-row-3 { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-auto-rows: 38vw; }
  .gd-row-1 > :nth-child(2), .gd-row-2 > :nth-child(3), .gd-row-3 > :nth-child(4) { grid-column: 1 / -1; grid-row: span 1; }
  .gd-row-2 > :nth-child(5) { grid-column: 1 / -1; }
  .gd-tabpanel { grid-template-columns: 1fr; align-items: start; min-height: 0; }
  .gd-vtext { max-width: none; }
  .gd-float { height: 120vw; }
  .gf-a { left: 4%; top: 4%; width: 44%; } .gf-b { left: 52%; top: 0; width: 44%; } .gf-c { left: 10%; top: 52%; width: 50%; right: auto; }
  .gd-moments { min-height: 0; }
  .gd-moments-list { grid-template-columns: 1fr; padding-top: 50vw; background: linear-gradient(transparent, rgba(0,0,0,.55) 30%); }
  .gd-slogan { min-height: 80svh; }
  .gd-logo-grid { grid-template-columns: 1fr; }
  .gd-gpanel, .gd-logo-copy, .gd-apanel { grid-column: 1; grid-row: auto; }
  .gd-logo-big { padding-inline: 4%; }
  .gd-ladder-wrap { grid-template-columns: 1fr; }
  .gd-ladder-side { grid-template-columns: 1fr 1fr; }
  .gd-board { min-height: 0; }
  .gd-b-approach, .gd-b-align { height: auto; overflow: visible; }
  .gd-board-tag { writing-mode: horizontal-tb; position: static; padding: 18px var(--pad) 10px; order: -1; }
  .gd-packs { grid-template-columns: repeat(2, 1fr); }
  .gd-refs { width: 70vw; }
  .gd-approach { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .ga-1, .ga-2, .ga-3 { aspect-ratio: 1; }
  .gd-moments-list li { flex-direction: column; }
  .ga-4 { grid-column: 1 / -1; grid-row: auto; padding-block: 24px; } .ga-4 { min-height: 90vw; }
  .gd-align { grid-template-columns: 1fr 1fr; }
  .gd-align-copy { grid-column: 1 / -1; border-right: 0; padding-bottom: 0; }
  .gd-align-t { min-height: 2.4em; }
  .gd-align-vid { aspect-ratio: 474 / 1080; max-height: 80vw; }
  .gd-markboard { grid-template-columns: 1fr; }
  .gd-mb-photos, .gd-mb-copy, .gd-mb-mark, .gd-mb-copy2, .gd-mb-bloom { grid-column: 1; grid-row: auto; margin: 0; }
  .gd-mb-mark { width: 80%; justify-self: center; }
  .gd-mb-bloom { width: 60%; justify-self: center; }
  .gd-kv { grid-template-columns: 1fr 1fr; gap: 34px 12px; }
  .kv-bits { grid-column: 1 / -1; } .kv-bits .gd-bits { min-height: 70vw; }
  .gd-color { min-height: 0; }
  .gd-color-top { background: linear-gradient(rgba(255,255,255,.88) 70%, transparent); }
  .gd-color-bottom { grid-template-columns: 1fr; padding-top: 70vw; background: linear-gradient(transparent, rgba(16,32,27,.5) 30%); }
  .gd-pal { grid-template-columns: repeat(3, 1fr); }
  .gd-now-t { display: none; }
}
@media (max-width: 560px) {
  .gd-two { grid-template-columns: 1fr; }
  .gd-end-ty { min-height: 60vw; }
}

@media (prefers-reduced-motion: reduce) {
  .gd *, .gd *::before, .gd *::after { animation: none !important; transition: none !important; }
  .gd-js .gd .rv, .gd-js .gd-hero-wm path, .gd-js .gd-hero-line .gd-w > span, .gd-js .gd-hero-mark, .gd-js .gd-ladder li,
  .gd-js .gd-big-wm path, .gd-js .gd-slogan .gs-l > span { opacity: 1; transform: none; clip-path: none; }
  .gd-js .gd-hero-mark { transform: translateY(-50%); }
  .gd-js .gd-row .rv { clip-path: none; }
  .gd-js .gd-gpanel path, .gd-js .kv-cut line { stroke-dashoffset: 0; }
}
