@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Old Standard TT"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/old-standard-tt-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/old-standard-tt-400-latin.woff2") format("woff2"); }

:root {
  --bg: #f1f0ec;          /* the room after the dust: clean, neutral, a breath warm */
  --dusty: #cfc9bb;       /* the room before */
  --ink: #16130f;
  --ink-2: #5d5950;
  --line: rgba(22, 19, 15, .14);
  --yellow: #f4d14e;
  --red: #d63c41;
  --gut: clamp(18px, 3.4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-small: 13px;
  --t-body: clamp(16px, .45vw + 13px, 19px);
  --t-big: clamp(24px, 2.3vw + 8px, 42px);
  --serif: "Old Standard TT", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Archivo", "Helvetica Neue", sans-serif; font-size: var(--t-body); line-height: 1.55;
  font-stretch: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: var(--gut); top: -60px; z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 99px; font-size: 14px; }
.skip:focus { top: 12px; }
.coarse { display: none; }
@media (pointer: coarse) { .fine { display: none; } .coarse { display: inline; } }

/* ---------- top line and the pill ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px var(--gut);
  font-size: 14px; color: var(--ink); pointer-events: none; transition: color .4s; }
.top > * { pointer-events: auto; }
.top.is-dark { color: var(--bg); }
.top__name { font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.top__name span { color: var(--red); transition: color .4s; }
.top.is-clean .top__name span, .top.is-dark .top__name span { color: var(--yellow); }
.top.is-clean .top__name span { color: #c9a227; }
.top__meta { opacity: .65; }
.top__links { justify-self: end; display: flex; gap: 22px; }
.top__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pill { position: fixed; z-index: 50; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 6px;
  padding: 6px; background: var(--ink); border-radius: 99px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.pill__menu { appearance: none; border: 0; background: none; color: var(--bg); font: inherit; font-size: 14px; display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 18px; border-radius: 99px; cursor: pointer; }
.pill__menu i { width: 16px; height: 8px; border-block: 1.5px solid currentColor; transition: transform .4s var(--ease); }
.pill__menu[aria-expanded="true"] i { transform: rotate(90deg); }
.pill__menu:hover { background: rgba(255, 255, 255, .08); }
.pill__cta { height: 44px; display: flex; align-items: center; padding: 0 20px; border-radius: 99px; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 700;
  transition: transform .3s var(--ease); white-space: nowrap; }
.pill__cta:hover { transform: scale(1.04); }
.pill__cta:active { transform: scale(.97); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--bg); display: grid; align-content: center; padding: 90px var(--gut) 120px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
.menu[hidden] { display: grid; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(241, 240, 236, .14); font-size: clamp(32px, 5vw, 72px); font-weight: 400;
  letter-spacing: -.035em; line-height: 1.05; transition: color .3s, padding-left .5s var(--ease); }
.menu__list a:hover { color: var(--yellow); padding-left: 14px; }
.menu__foot { margin-top: 32px; font-size: 15px; }

/* ---------- 1. the dust-off ---------- */
.dust { position: relative; height: 190vh; height: 190lvh; }
.dust__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; touch-action: pan-y;
  background: color-mix(in oklab, var(--dusty) calc((1 - var(--p, 0)) * 100%), var(--bg)); }
.dust__stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(.55 * (1 - var(--p, 0) * 1.4));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .32 0 0 0 0 .27 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.dust__old { position: absolute; inset: 80px var(--gut) 0; display: grid; align-content: center; gap: 2rem; color: #4f4a41; }
.dust__letter, .dust__sign { font-family: var(--serif); font-size: clamp(15px, 1vw + 9px, 19px); max-width: 46ch; line-height: 1.6; opacity: calc(1 - var(--p, 0) * 3); }
.dust__sign { font-style: italic; justify-self: end; }
.dust__word { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 12.5vw, 230px); line-height: 1; letter-spacing: -.02em; color: #3b372f; white-space: nowrap; }
.dust__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.js .dust__word { visibility: hidden; }
.js .dust__stage.is-crisp .dust__word { visibility: visible; }
.dust__stage.is-crisp .dust__canvas { opacity: 0; }
.stamp { position: absolute; z-index: 3; right: var(--gut); top: 17%; padding: .35em .6em; border: 3px solid var(--red); color: var(--red); border-radius: 6px;
  font-size: clamp(14px, 1.4vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; transform: rotate(-9deg);
  mix-blend-mode: multiply; opacity: calc(1 - var(--p, 0) * 2.6); }

.dust__new { position: absolute; inset: 80px var(--gut) 0; display: grid; align-content: center; gap: 28px; pointer-events: none; }
.title { font-weight: 500; font-size: clamp(42px, 6vw, 104px); line-height: .98; letter-spacing: -.045em; }
.title em { font-style: normal; background: var(--yellow); padding: 0 .08em; border-radius: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .07em; }
.line > span { display: inline-block; transform: translateY(calc((1 - var(--q, 1)) * 115%)); opacity: var(--q, 1); }
.dust__foot { opacity: var(--f, 1); transform: translateY(calc((1 - var(--f, 1)) * 16px)); }
.lead { max-width: 46ch; color: var(--ink-2); }
.dust.is-done .dust__new { pointer-events: auto; }
.dust__cue { position: absolute; left: var(--gut); bottom: 96px; font-size: var(--t-small); text-transform: uppercase; letter-spacing: .08em; color: #4f4a41;
  display: flex; align-items: center; gap: 10px; opacity: calc(1 - var(--p, 0) * 5); }
.dust__cue::before { content: ""; width: 28px; height: 1.5px; background: currentColor; animation: cue 1.6s var(--ease) infinite; transform-origin: left; }
@keyframes cue { 0% { transform: scaleX(.2); } 60%, 100% { transform: scaleX(1); } }
.js .dust__new .line > span { --q: 0; }
/* no script or reduced motion: the room already clean */
.no-js .dust, .reduced .dust { height: auto; }
.no-js .dust__stage, .reduced .dust__stage { position: relative; height: auto; min-height: 100svh; background: var(--bg); }
.no-js .dust__old, .no-js .stamp, .no-js .dust__cue, .reduced .dust__old, .reduced .stamp, .reduced .dust__cue, .reduced .dust__canvas { display: none; }
.no-js .dust__new, .reduced .dust__new { position: relative; inset: auto; min-height: 100svh; padding: 120px var(--gut) 140px; pointer-events: auto; }
.reduced .dust__new .line > span { --q: 1; }

/* ---------- sections: one editorial frame ---------- */
.sec { position: relative; padding: clamp(96px, 15vh, 190px) var(--gut); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 44px; }
.label { grid-column: 1 / 4; align-self: start; font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding-top: .9em; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.label--light { padding-top: 0; }
.statement { grid-column: 4 / -1; font-size: var(--t-big); line-height: 1.22; letter-spacing: -.028em; font-weight: 400; max-width: 31ch; text-wrap: pretty; }
.statement--s { max-width: 36ch; }
[data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }

/* the one number, on ink */
.band { background: var(--ink); color: var(--bg); padding: clamp(80px, 13vh, 160px) var(--gut); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; row-gap: 32px; }
.band__n { grid-column: 1 / 7; font-size: clamp(110px, 19vw, 300px); font-weight: 200; line-height: .78; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.band__n sup { font-size: .32em; font-weight: 300; vertical-align: top; letter-spacing: 0; margin-left: .06em; color: var(--yellow); }
.band__t { grid-column: 8 / -1; display: grid; gap: 18px; font-size: clamp(18px, .7vw + 14px, 24px); line-height: 1.35; max-width: 30ch; }
.band__src { font-size: var(--t-small); color: rgba(241, 240, 236, .55); line-height: 1.5; }

/* values: an index, each line brings up a post */
.index { grid-column: 1 / -1; border-top: 1px solid var(--ink); }
.index__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.index__t { font-size: clamp(32px, 4.6vw, 76px); font-weight: 300; letter-spacing: -.045em; line-height: 1.02; }
.index__t { background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 .42em no-repeat; transition: background-size .6s var(--ease); width: fit-content; }
.index__row:hover .index__t { background-size: 100% .42em; }
.index__d { color: var(--ink-2); max-width: 32ch; text-align: right; font-size: clamp(17px, .45vw + 13px, 20px); line-height: 1.45; }
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: 200px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; pointer-events: none;
  opacity: 0; scale: .85; transition: opacity .3s, scale .4s var(--ease); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .45); }
.peek.is-on { opacity: 1; scale: 1; }

/* who */
.portrait { grid-column: 4 / 8; background: var(--yellow); border-radius: 10px; padding: clamp(16px, 2vw, 30px); align-self: start; }
.portrait__art { position: relative; border-radius: 6px; overflow: hidden; background: #fff; }
.eyes { position: absolute; inset: 0; width: 100%; height: 100%; }
.people { grid-column: 8 / -1; display: grid; gap: 40px; align-self: start; padding-left: clamp(0px, 2vw, 32px); }
.people__intro { font-size: clamp(20px, 1.2vw + 12px, 30px); line-height: 1.25; letter-spacing: -.02em; }
.people__list { display: grid; border-top: 1px solid var(--ink); }
.people__list > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.people__list dt { font-weight: 700; }
.people__list dd { color: var(--ink-2); }

/* what we do */
.strip { grid-column: 1 / -1; margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut) 20px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; scroll-snap-type: none; }
.post { flex: 0 0 clamp(220px, 23vw, 330px); scroll-snap-align: start; }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; transition: transform .7s var(--ease); user-select: none; }
.post:hover img { transform: scale(.98); }
.post figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 14px; }
.post figcaption span { color: var(--ink-2); }

/* close and foot */
.close { background: var(--ink); color: var(--bg); padding: clamp(96px, 16vh, 200px) var(--gut) clamp(72px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.close > * { grid-column: 1 / -1; }
.close__handle { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; font-size: clamp(30px, 7.2vw, 132px); font-weight: 400;
  letter-spacing: -.05em; line-height: .98; border-bottom: 1px solid rgba(241, 240, 236, .2); padding-bottom: 18px; }
.close__handle span { background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 5px no-repeat; transition: background-size .7s var(--ease); white-space: nowrap; }
.close__handle:hover span { background-size: 100% 5px; }
.close__handle i { font-style: normal; font-size: .5em; transition: transform .5s var(--ease), color .3s; }
.close__handle:hover i { transform: translate(8px, -8px); color: var(--yellow); }
.close__line { color: rgba(241, 240, 236, .65); }
.foot { background: var(--ink); color: rgba(241, 240, 236, .72); padding: 0 var(--gut) 120px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px;
  font-size: 14px; line-height: 1.65; }
.foot__legal { max-width: 80ch; }
.foot__links { display: grid; gap: 6px; justify-self: end; text-align: right; }
.foot__links a:hover { color: var(--yellow); }

/* leftover dust and the cursor */
.specks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 20; opacity: var(--so, 0); }
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; display: none; }
.cursor span { display: grid; place-items: center; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); color: var(--ink);
  font-size: 0; font-weight: 600; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), font-size .2s, background-color .3s; }
.cursor.is-label span { width: 78px; height: 78px; margin: -39px 0 0 -39px; font-size: 13px; background: var(--yellow); }
.cursor.is-dark span { background: var(--bg); }
@media (pointer: fine) { .js .cursor { display: block; } }

@media (max-width: 860px) {
  .label, .statement, .index, .portrait, .people { grid-column: 1 / -1; }
  .people { padding-left: 0; }
  .portrait { max-width: 520px; }
  .band__n, .band__t { grid-column: 1 / -1; }
  .index__row { grid-template-columns: 1fr; gap: 6px; }
  .index__d { text-align: left; }
  .foot { grid-template-columns: 1fr; }
  .foot__links { justify-self: start; text-align: left; grid-template-columns: repeat(2, auto); gap: 6px 24px; }
  .top__meta { display: none; }
  .top { grid-template-columns: 1fr 1fr; }
  .peek { display: none; }
  .stamp { top: auto; bottom: 22%; }
}
@media (max-width: 600px) {
  .people__list > div { grid-template-columns: 1fr; gap: 2px; }
  .pill__cta { padding: 0 16px; }
  .dust__cue { bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- videos in the strip ---------- */
.post video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; background: var(--ink); display: block; transition: transform .7s var(--ease); }
.post:hover video { transform: scale(.98); }

/* ---------- "Benvenuto in Assicurandi": dive through the phone ---------- */
.welcome { position: relative; height: 100vh; height: 100lvh; background: var(--ink); }
.welcome__stage { position: relative; height: 100%; overflow: hidden; background: #0b0a08; }
.welcome__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phone { position: absolute; left: 50%; top: 50%; width: min(36vh, 62vw); aspect-ratio: 9 / 19; translate: -50% -50%; scale: var(--zoom, 1);
  border-radius: 13% / 6%; box-shadow: 0 0 0 10px #16130f, 0 0 0 12px #3a362f, 0 0 0 200vmax var(--bg); pointer-events: none; will-change: scale; }
.phone__screen { position: absolute; left: 50%; top: 2.4%; width: 30%; height: 3.2%; translate: -50% 0; background: #16130f; border-radius: 99px; opacity: var(--notch, 1); }
.welcome__text { position: absolute; inset: 0; display: grid; justify-content: center; align-content: start; padding-top: max(84px, 13vh) !important; text-align: center; gap: 18px; padding: 0 var(--gut); pointer-events: none; color: #f6f2e6;
  opacity: var(--wt, 0); transform: translateY(calc((1 - var(--wt, 0)) * 24px)); }
.welcome__title { font-weight: 500; font-size: clamp(52px, 9vw, 160px); letter-spacing: -.055em; line-height: .9; color: #fff8e4; text-shadow: 0 2px 24px rgba(40, 28, 0, .55), 0 0 2px rgba(40, 28, 0, .4); }
.welcome__title span { display: block; font-size: max(18px, .24em); font-weight: 400; letter-spacing: -.01em; color: #fff8e4; margin-bottom: .5em; }
.welcome__say { position: absolute; left: 0; right: 0; bottom: 132px; text-align: center; padding: 0 var(--gut); font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 1.6vw + 10px, 32px); color: rgba(236, 226, 200, .85); opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 12px)); pointer-events: none; }
.welcome__sub { font-size: var(--t-body); color: rgba(246, 242, 230, .75); }
.welcome__cue { position: absolute; left: 50%; bottom: 96px; translate: -50% 0; font-size: var(--t-small); text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  opacity: calc(1 - var(--zoomp, 0) * 4); }
.no-js .welcome, .reduced .welcome { height: auto; }
.no-js .welcome__stage, .reduced .welcome__stage { position: relative; height: 70svh; }
.reduced .welcome__stage { height: 100svh; }
.no-js .phone, .reduced .phone, .no-js .welcome__cue, .reduced .welcome__cue { display: none; }
.no-js .welcome__text, .reduced .welcome__text { --wt: 1; }

/* what we do, and what we talk about */
.work__do { grid-column: 4 / -1; display: grid; gap: 40px; }
.do { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; max-width: 980px; }
.do dt { font-size: var(--t-small); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.do dd { color: var(--ink-2); }
.label--sub { margin-top: clamp(48px, 8vh, 96px); }
.topics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.topic { position: relative; padding: 28px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; isolation: isolate; }
.topic:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.topic:not(:nth-child(3n + 1)) { padding-left: 28px; }
.topic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.topic:hover::before { transform: scaleY(1); }
.topic__n { font-size: clamp(30px, 3.2vw, 54px); font-weight: 300; letter-spacing: -.045em; line-height: 1; }
.topic__d { color: var(--ink-2); max-width: 34ch; transition: color .3s; }
.topic:hover .topic__d { color: var(--ink); }
@media (max-width: 860px) {
  .work__do { grid-column: 1 / -1; }
  .do { grid-template-columns: 1fr; gap: 14px; }
  .topics { grid-template-columns: 1fr; }
  .topic, .topic:not(:nth-child(3n + 1)) { padding: 22px 0 24px; border-right: 0 !important; }
}

/* booking links */
.book { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: var(--ink-2); }
.book span { color: var(--ink); font-weight: 600; background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 100% .35em no-repeat; transition: background-size .5s var(--ease); }
.book:hover span { background-size: 100% 100%; }
.close__book { color: rgba(241, 240, 236, .65); }
.close__book a { color: var(--bg); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.close__book a:hover { color: var(--yellow); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 28px; }
@media (max-width: 600px) { .top__links a:first-child { display: none; } }

/* tablet refinements */
@media (min-width: 861px) and (max-width: 1240px) {
  .people__list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic:nth-child(odd) { padding-right: 24px !important; border-right: 1px solid var(--line) !important; }
  .topic:nth-child(even) { padding-left: 24px !important; }
}

/* the trip plays by itself: scroll waits, a skip button shows */
html.is-locked, html.is-locked body { overflow: hidden; }
.welcome__skip { position: absolute; right: var(--gut); top: 64px; z-index: 5; appearance: none; border: 1px solid rgba(246, 242, 230, .35); background: rgba(11, 10, 8, .4);
  color: #f6f2e6; font: inherit; font-size: 14px; height: 40px; padding: 0 16px; border-radius: 99px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s, background-color .3s; }
.welcome__stage.is-playing .welcome__skip { opacity: 1; pointer-events: auto; }
.welcome__skip:hover { background: rgba(244, 209, 78, .9); color: var(--ink); border-color: transparent; }

/* =====================================================================
   PHONE: the site most people will actually see. Built for the thumb.
   ===================================================================== */
.topics__nav { display: none; }
.dust__obj { font-family: var(--serif); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: calc(.75 - var(--p, 0) * 3); }
@media (max-width: 600px) {
  :root { --gut: 20px; --t-big: 27px; }

  /* top bar: solid once you leave the dust, hides while you read, back when you scroll up */
  .top { padding: 14px var(--gut); transition: color .4s, transform .5s var(--ease), background-color .4s; }
  .top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(241, 240, 236, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; transition: opacity .4s, background-color .4s; border-bottom: 1px solid var(--line); }
  .top.is-solid::before { opacity: 1; }
  .top.is-dark::before { background: rgba(22, 19, 15, .82); border-color: rgba(241, 240, 236, .08); }
  .top.is-away { transform: translateY(-105%); }

  /* the letter: a real piece of paper, the word as wide as the screen */
  .dust__old { inset: 76px var(--gut) 120px; align-content: center; gap: 22px; grid-template-columns: minmax(0, 1fr); }
  .dust__letter { font-size: 17px; line-height: 1.55; }
  .dust__obj { font-family: var(--serif); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; opacity: calc(.8 - var(--p, 0) * 3); }
  .dust__word { font-size: 15.2vw; letter-spacing: -.035em; margin: 6px 0; }
  .dust__sign { font-size: 18px; }
  .stamp { top: 96px; bottom: auto; right: var(--gut); font-size: 17px; border-width: 3px; }
  .dust__cue { bottom: 104px; font-size: 12px; }
  .dust__new { inset: 70px var(--gut) 128px; gap: 22px; align-content: end; }
  .title { font-size: 10.4vw; line-height: 1; letter-spacing: -.05em; }
  .lead { font-size: 18px; line-height: 1.5; }

  /* sections: tighter, one idea per screen */
  .sec { padding: 76px var(--gut) 60px; row-gap: 26px; }
  .label { padding-top: 0; font-size: 12px; }
  .statement { font-size: var(--t-big); line-height: 1.2; letter-spacing: -.03em; }

  /* the number */
  .band { padding: 72px var(--gut) 80px; row-gap: 24px; }
  .band__n { font-size: 48vw; line-height: .8; }
  .band__t { font-size: 21px; }

  /* values: cards that stack on top of each other as you scroll */
  .values { padding-bottom: 24px; }
  .who { padding-top: 64px; }
  .index { border-top: 0; counter-reset: v; display: grid; gap: 14px; }
  .index__row { counter-increment: v; position: sticky; top: calc(74px + var(--i, 0) * 14px); min-height: 330px; padding: 22px 22px 26px; border: 0; border-radius: 20px;
    background: #fff; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 0; align-items: start; box-shadow: 0 -10px 30px -18px rgba(22, 19, 15, .35); }
  .index__row::before { content: "0" counter(v); font-size: 14px; font-weight: 600; letter-spacing: .04em; padding-bottom: 18px; border-bottom: 1px solid currentColor; opacity: .55; }
  .index__row:nth-child(1) { --i: 0; background: var(--yellow); }
  .index__row:nth-child(2) { --i: 1; background: var(--ink); color: var(--bg); }
  .index__row:nth-child(3) { --i: 2; background: #fff; }
  .index__row:nth-child(4) { --i: 3; background: #e7e2d4; }
  .index__t { font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -.05em; align-self: end; padding-top: 70px; background: none !important; }
  .index__d { text-align: left; color: inherit; opacity: .78; font-size: 17px; padding-top: 14px; max-width: none; }

  /* who */
  .portrait { padding: 12px; border-radius: 18px; margin: 0 -4px; }
  .portrait__art { border-radius: 10px; }
  .people { gap: 30px; }
  .people__intro { font-size: 25px; line-height: 1.2; letter-spacing: -.03em; }
  .people__list { border-top: 0; gap: 10px; }
  .people__list > div { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 16px; gap: 6px; background: rgba(255, 255, 255, .5); }
  .people__list dt { font-size: 24px; font-weight: 500; letter-spacing: -.035em; }
  .people__list dd { font-size: 16px; line-height: 1.45; }
  .book { display: flex; flex-direction: column; align-items: stretch; gap: 10px; font-size: 15px; }
  .book span { display: flex; justify-content: center; align-items: center; height: 54px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; }

  /* what we do */
  .work__do { gap: 28px; }
  .do { gap: 0; border-top: 0; padding-top: 0; }
  .do > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
  .do dt { margin: 0; padding-top: .25em; font-size: 11px; }
  .do dd { font-size: 16px; line-height: 1.45; color: var(--ink); }
  .label--sub { margin-top: 36px; }

  /* topics: a deck you swipe with the thumb */
  .topics { grid-column: 1 / -1; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; border: 0; margin: 0 calc(var(--gut) * -1);
    padding: 4px var(--gut) 6px; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
  .topics::-webkit-scrollbar { display: none; }
  .topic, .topic:not(:nth-child(3n + 1)) { flex: 0 0 82%; scroll-snap-align: start; min-height: 360px; padding: 22px 22px 26px !important; border: 0 !important; border-radius: 20px;
    background: var(--ink); color: var(--bg); align-content: space-between; grid-template-rows: auto 1fr auto; gap: 0; }
  .topic::before { display: none; }
  .topic::after { content: attr(data-n); order: -1; font-size: 14px; font-weight: 600; opacity: .55; padding-bottom: 18px; border-bottom: 1px solid currentColor; }
  .topic:nth-child(3n + 2) { background: var(--yellow); color: var(--ink); }
  .topic:nth-child(3n + 3) { background: #fff; color: var(--ink); }
  .topic__n { font-size: 36px; font-weight: 400; line-height: 1.02; letter-spacing: -.045em; align-self: end; padding-top: 60px; }
  .topic__d { color: inherit; opacity: .78; font-size: 16px; line-height: 1.45; padding-top: 12px; }
  .topic.is-in, .js .topic[data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .topics__nav { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: -6px; font-size: 13px; color: var(--ink-2); }
  .topics__bar { flex: 1; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
  .topics__bar i { display: block; height: 100%; width: calc(100% / 6); background: var(--ink); transform: translateX(calc(var(--k, 0) * 100%)); transition: transform .3s var(--ease); }

  /* welcome: the title clear of the sun ring */
  .welcome__text { padding-top: 104px !important; }
  .welcome__title { font-size: 17vw; }
  .welcome__skip { top: 64px; }
  .welcome__say { bottom: 120px; font-size: 22px; }

  /* close */
  .close { padding: 96px var(--gut) 56px; gap: 22px; }
  .close__handle { font-size: 11.4vw; }
  .close__line { font-size: 18px; }
  .close__book { display: grid; gap: 12px; }
  .close__book a { display: flex; justify-content: center; align-items: center; height: 54px; border-radius: 99px; background: var(--yellow); color: var(--ink); text-decoration: none; }
  .foot { padding-bottom: 130px; font-size: 13px; }
}

/* ---------- key words light up as the sentence arrives ---------- */
.statement mark { color: inherit; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 .42em no-repeat; padding: 0 .04em;
  transition: background-size .9s var(--ease); }
.statement.is-in mark, .no-js .statement mark, .reduced .statement mark { background-size: 100% .42em; }
.statement.is-in mark:nth-of-type(1) { transition-delay: .45s; }
.statement.is-in mark:nth-of-type(2) { transition-delay: .8s; }
.statement.is-in mark:nth-of-type(3) { transition-delay: 1.15s; }

/* ---------- who: a spotlight on the person you pick ---------- */
.spot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.spot rect:last-child { opacity: .62; }
.spot.is-on { opacity: 1; }
.spot__c { transition: transform .7s var(--ease); }
.people__list [data-who] { cursor: pointer; transition: background-color .4s, border-color .4s; }
.people__list [data-who].is-on dt { background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 100% .38em no-repeat; width: fit-content; }

/* ---------- the menu, with a bit more life ---------- */
.menu__list { counter-reset: m; }
.menu__list li { overflow: hidden; counter-increment: m; }
.menu__list a { display: flex; align-items: baseline; gap: .5em; transform: translateY(105%); transition: transform .8s var(--ease), color .3s, padding-left .5s var(--ease); }
.menu__list a::before { content: "0" counter(m); font-size: 13px; letter-spacing: .04em; color: var(--yellow); font-weight: 600; transform: translateY(-.9em); }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .06s; }
.menu.is-open li:nth-child(3) a { transition-delay: .12s; }
.menu.is-open li:nth-child(4) a { transition-delay: .18s; }
.menu__foot { opacity: 0; transition: opacity .6s .3s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu::after { content: ""; position: absolute; right: -14vmax; top: -14vmax; width: 46vmax; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 209, 78, .22), rgba(244, 209, 78, 0) 65%); pointer-events: none; }

/* ---------- desktop: the four-part title sits on two lines ---------- */
.title .line--i { display: inline-block; vertical-align: top; }

/* ---------- PHONE, second pass ---------- */
@media (max-width: 600px) {
  .dust { height: 150vh; height: 150lvh; }
  .title { font-size: 15.6vw; line-height: .92; letter-spacing: -.055em; }
  .title .line--i { display: block; }
  .title .br-d { display: none; }
  .dust__new { align-content: center; inset: 64px var(--gut) 110px; gap: 26px; }

  .top__links { display: none; }
  .js:not(.reduced) .pill { transition: transform .6s var(--ease), opacity .4s; }
  .js:not(.reduced) .pill:not(.is-on) { transform: translateY(140%); opacity: 0; pointer-events: none; }

  /* who: words first, then the drawing stays in view while the cards pass under it */
  .who .people { display: contents; }
  .who .people > * { grid-column: 1 / -1; min-width: 0; }
  .who .people__intro { order: 1; }
  .who .portrait { order: 2; position: sticky; top: 64px; z-index: 2; box-shadow: 0 18px 30px -22px rgba(22, 19, 15, .5); }
  .who .people__list { order: 3; margin-top: 6px; }
  .who .book { order: 4; }
  .who .label { order: 0; }
  .people__list > div.is-on { background: #fff; border-color: var(--ink); }

  .menu__list a { font-size: 38px; padding: 14px 0; }
  .menu__list a::before { font-size: 12px; }
}
