/* peterdamato.com: a sibling of persistent.id. One continuous navy canvas, one sans, real photographs and logos.
   Motion is choreographed in app.js (GSAP + ScrollTrigger + Lenis). Every pre-animation state below is scoped to
   html.motion, which is only set when motion is allowed and the scripts arrive, so the page is complete without it. */

:root {
  --bg: #000a36;
  --bg-deep: #00072a;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --fill: rgba(255,255,255,.045);
  --panel: #0b1640;
  --text-1: #f7f8f8;
  --text-2: #a9b3c7;
  --text-3: #8490aa;
  --blue: #4d8dff;
  --blue-soft: #9fc0ff;
  --accent: #74a6ff;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 70px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: 168px;
  --ease: cubic-bezier(.16,1,.3,1);
  --z-nav: 50;
}
@media (max-width: 767px) { :root { --section: 112px; --gutter: 16px; } }

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text-1); font-family: var(--font); font-size: 17px; line-height: 1.5; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, ul, ol, h1, h2, h3, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 9999px; background: var(--text-1); color: var(--bg); font-size: 14px; line-height: 1; font-weight: 500; }
.h2 { font-size: 38px; line-height: 1.08; letter-spacing: -0.026em; }
@media (min-width: 768px) { .h2 { font-size: 50px; } }
@media (min-width: 1100px) { .h2 { font-size: 60px; letter-spacing: -0.03em; } }
.lead { margin-top: 24px; max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 768px) { .lead { font-size: 19px; } }
.body { margin-top: 24px; max-width: 540px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.accent { color: var(--accent); }
.intro .h2 { max-width: 860px; }
.intro--center { text-align: center; }
.intro--center .h2, .intro--center .lead { margin-inline: auto; }
.intro--center .h2 { margin-top: 22px; }
.intro .stack__title { max-width: 1000px; }

/* word masks for headline reveals (built by app.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: background .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--white { background: var(--text-1); color: var(--bg); }
.btn--white:hover { background: #e3e8f1; }
.btn--white svg { transition: transform .3s var(--ease); }
.btn--white:hover svg { transform: translateY(3px); }
.btn--gray { background: rgba(255,255,255,.08); color: var(--text-1); }
.btn--gray:hover { background: rgba(255,255,255,.13); }

/* ---------- nav: glass pill; tucks away while reading down, returns on the way up ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); padding: 14px 14px 0; pointer-events: none; transition: transform .6s var(--ease); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner { pointer-events: auto; display: flex; align-items: center; height: 56px; max-width: 1160px; margin-inline: auto; padding: 0 10px 0 20px; border-radius: 20px; background: rgba(1,15,60,.62); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 0 0 1px rgba(255,255,255,.09); }
.nav__name { flex: none; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav__links { display: none; align-items: center; gap: 28px; margin-left: 44px; }
.nav__links a { position: relative; font-size: 15px; color: var(--text-2); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text-1); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--text-2); transition: color .2s, background .2s; }
.nav__icon:hover { color: var(--text-1); background: rgba(255,255,255,.06); }
.nav__cta { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 8px; background: var(--text-1); color: #0b1a33; font-size: 14px; font-weight: 500; white-space: nowrap; transition: opacity .2s; }
.nav__cta:hover { opacity: .9; }
.nav__burger { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -4px; }
.nav__burger path { transition: transform .35s var(--ease); transform-origin: 10px 10px; }
.nav.is-open .b1 { transform: translateY(3px) rotate(45deg); }
.nav.is-open .b2 { transform: translateY(-3px) rotate(-45deg); }
.nav__mobile { pointer-events: auto; display: none; flex-direction: column; max-width: 1160px; margin: 8px auto 0; padding: 10px; border-radius: 20px; background: rgba(1,15,60,.94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px rgba(255,255,255,.09); }
.nav__mobile a { padding: 12px; border-radius: 10px; font-size: 18px; }
.nav__mobile a:hover { background: rgba(255,255,255,.05); }
.nav.is-open .nav__mobile { display: flex; animation: drop .35s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 768px) { .nav__links { display: flex; } .nav__burger, .nav__mobile, .nav.is-open .nav__mobile { display: none; } }
@media (max-width: 380px) { .nav__icon { display: none; } }
@media (max-width: 429px) { .nav__icon--zoom { display: none; } }

/* ===================== hero ===================== */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + 40px); overflow: clip; }
.hero__field { position: absolute; z-index: -1; top: 6%; right: -4%; width: 62%; height: 92%; background-image: radial-gradient(rgba(159,192,255,.2) 1px, transparent 1.3px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(closest-side at 55% 45%, #000 15%, transparent 100%); mask-image: radial-gradient(closest-side at 55% 45%, #000 15%, transparent 100%); }
.hero__grid { position: relative; display: grid; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hero__copy { position: relative; z-index: 2; }
.hero__name { font-size: 17px; font-weight: 500; color: var(--blue-soft); }
/* two lines at every width: the size follows the column so "Scaling Ecommerce Growth" always fits on one line */
.hero__title { margin-top: 18px; font-size: clamp(25px, calc((100vw - 2 * var(--gutter)) / 12.2), 60px); line-height: 1.05; letter-spacing: -0.03em; }
@media (min-width: 960px) { .hero__title { font-size: calc((min(100vw, 1200px) - 48px) * .6 / 12.2); letter-spacing: -0.034em; } }
.hero__sub a { color: var(--text-1); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.hero__sub a:hover { text-decoration-color: var(--text-1); }
.hero__sub { margin-top: 26px; max-width: 540px; font-size: 17px; line-height: 1.62; color: var(--text-2); }
.hero__sub p + p { margin-top: 14px; }
@media (min-width: 768px) { .hero__sub { font-size: 18px; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__portrait { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero__frame img { width: min(78vw, 360px); height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 46%, transparent 90%), linear-gradient(to right, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 46%, transparent 90%), linear-gradient(to right, #000 84%, transparent 100%);
  mask-composite: intersect; }
@media (max-width: 959px) {
  .hero { padding-top: calc(var(--nav-h) + 8px); }
  .hero__portrait { order: -1; margin-bottom: -76px; }
  .hero__copy { padding-bottom: 64px; }
  .hero__field { top: 0; right: 0; width: 100%; height: 520px; }
}
@media (max-width: 479px) {
  .hero__cta { flex-wrap: nowrap; gap: 8px; }
  .hero__cta .btn { flex: 1 1 auto; height: 46px; padding: 0 14px; font-size: 15px; gap: 8px; }
}
@media (min-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; min-height: min(calc(100svh - 150px), 780px); }
  .hero__copy { align-self: center; padding-block: 48px 80px; }
  .hero__portrait { align-self: end; justify-content: flex-end; margin-right: -24px; }
  .hero__frame img { width: auto; height: min(calc(100svh - 180px), 680px, calc((min(100vw, 1200px) - 48px) * .4 * 1.22)); max-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 98%), linear-gradient(to right, #000 84%, transparent 100%); }
}

.logos { position: relative; z-index: 2; border-top: 1px solid var(--line); }
.marquee { overflow: hidden; max-width: 1240px; margin-inline: auto; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track li { flex: none; display: flex; align-items: center; height: 104px; margin-right: 88px; }
.marquee__track img { width: auto; opacity: .62; transition: opacity .3s; }
.marquee__track li:hover img { opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lg-microsoft { height: 25px; } .lg-fiserv { height: 34px; } .lg-tsys { height: 25px; }
.lg-newfold { height: 30px; } .lg-klickly { height: 30px; } .lg-deluxe { height: 28px; }
@media (max-width: 767px) { .marquee__track li { height: 84px; margin-right: 56px; } .marquee__track img { transform: scale(.85); } }

/* ===================== the stack: the product-suite graphic from persistent.id =====================
   Three products, each with a floating glass fragment, trail into one Persistent circle. Ported as-is from
   ~/Downloads/persistent-web (tie__*, frag__*, sfrag, banner); rings centre on the circle via --hub-x / --hub-y. */
.stack { isolation: isolate; --hub-x: 50%; --hub-y: 70%; }
.stack::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: var(--hub-x); top: var(--hub-y); width: 1400px; height: 1400px; margin: -700px 0 0 -700px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 1400' fill='none' stroke='%23a6c4ff' stroke-opacity='.17'%3E%3Ccircle cx='700' cy='700' r='140'/%3E%3Ccircle cx='700' cy='700' r='196'/%3E%3Ccircle cx='700' cy='700' r='252'/%3E%3Ccircle cx='700' cy='700' r='308'/%3E%3Ccircle cx='700' cy='700' r='364'/%3E%3Ccircle cx='700' cy='700' r='420'/%3E%3Ccircle cx='700' cy='700' r='476'/%3E%3Ccircle cx='700' cy='700' r='532'/%3E%3Ccircle cx='700' cy='700' r='588'/%3E%3Ccircle cx='700' cy='700' r='644'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 41%, #000 18%, rgba(0,0,0,.5) 52%, transparent 88%);
          mask-image: radial-gradient(circle closest-side at 50% 41%, #000 18%, rgba(0,0,0,.5) 52%, transparent 88%); }
@media (max-width: 639px) { .stack::before { width: 1100px; height: 1100px; margin: -550px 0 0 -550px; } }

.frag { position: relative; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.05); }
.frag__head { display: flex; align-items: center; height: 46px; padding: 0 16px 0 18px; font-size: 16px; color: var(--text-3); }
.frag__row { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px; border-radius: 10px; font-size: 16px; color: var(--text-1); }
.frag__row--active { background: rgba(20,41,85,.98); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 34px -14px rgba(0,0,0,.85); }
.frag__row--dim2 { opacity: .55; }
.frag__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: rgba(20,41,85,.98); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.frag__avatar img { width: 100%; height: 100%; object-fit: cover; }
.frag__glyph { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--text-1); display: grid; place-items: center; }
.frag__glyph svg { width: 16px; height: 16px; }
.frag__name { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.frag__tag { font-size: 12px; line-height: 1; padding: 5px 7px; border-radius: 6px; color: var(--text-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); white-space: nowrap; }
.frag__tag--ok { color: #8ff0c0; box-shadow: inset 0 0 0 1px rgba(143,240,192,.35); }
.frag__check { margin-left: auto; color: var(--text-1); flex: none; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px dotted rgba(255,255,255,.4); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sfrag .frag__row { height: 54px; }
.banner { padding: 18px 18px 16px; margin: 0 0 6px; border-radius: 10px; background: rgba(255,255,255,.05); }
.banner p { font-size: 15px; line-height: 1.45; color: var(--text-2); max-width: 420px; }
.banner__btns { display: flex; gap: 8px; margin-top: 14px; }
.banner__btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-1); background: rgba(255,255,255,.08); }
.banner__btn--on { background: var(--text-1); color: var(--bg); }

.glinks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.glinks__base { fill: none; stroke: url(#tieFadeBase); stroke-width: 3.2; stroke-dasharray: 100 100; }
.glinks__pulse { fill: none; stroke: url(#tieFadePulse); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 9 200; stroke-dashoffset: 9; animation: run 4.5s linear infinite; transition: opacity .6s; }
.tie__stage:not(.is-live) .glinks__pulse { opacity: 0; }
.glinks__base--out { stroke: url(#tieOutBase); }
.glinks__pulse--out { stroke: url(#tieOutPulse); }
.tie__stage:not(.is-live-out) .glinks__pulse--out { opacity: 0; }
@keyframes run { to { stroke-dashoffset: -100; } }

.tie__stage { position: relative; width: min(1320px, calc(100vw - 48px)); margin: 72px auto 0; }
.tie__stage .glinks { display: none; z-index: 0; }
.tie__cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 0; }
.tie__col { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 520px; margin-inline: auto; }
.tie__brand { display: flex; align-items: center; justify-content: center; height: 58px; }
.tie__logo { display: block; height: 42px; width: auto; }
.tie__logo--mr { height: 56px; }
@media (max-width: 639px) { .tie__brand { height: 50px; } .tie__logo { height: 36px; } .tie__logo--mr { height: 48px; } }
.tie__step { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fc0ff; }
.tie__what { margin-top: 10px; font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.018em; color: var(--text-1); white-space: nowrap; }
@media (min-width: 640px) { .tie__what { font-size: 32px; } }
.tie__text { display: flex; flex-direction: column; align-items: center; }
.tie__desc { margin-top: 12px; max-width: 380px; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.tie__art { position: relative; width: 100%; height: 250px; margin-top: 30px; container-type: inline-size; }
.tie__art .sfrag { position: relative; width: 100%; text-align: left; transform-origin: 50% 0; background: #0b1135; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); mask-image: linear-gradient(to bottom, #000 58%, transparent 96%); }
@container (max-width: 400px) { .tie__art .frag__check { display: none; } }
.tie__out { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; margin-top: 8px; text-align: center; }
.tie__hub { position: relative; display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: #00031b; }
.tie__hub::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; background: rgba(255,255,255,.035); z-index: -1; }
.tie__hub::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; background: rgba(159,192,255,.10); z-index: -1; animation: hubPulse 3.2s ease-out infinite; }
/* once the incoming lines have drawn all the way into the circle, it holds a solid ring in the pulse color (app.js adds .is-joined) */
.tie__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px #a0c4ff; opacity: 0; pointer-events: none; transition: opacity .6s cubic-bezier(.16,1,.3,1); }
.tie__hub.is-joined .tie__ring { opacity: 1; }
@keyframes hubPulse { from { transform: scale(.88); opacity: .9; } to { transform: scale(1.22); opacity: 0; } }
.tie__hubmark { display: block; height: 88px; width: auto; }
.tie__hubname { margin-top: 34px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-1); }
.tie__cap { margin-top: 6px; font-size: 16px; color: var(--text-2); text-wrap: balance; }
/* outputs: one result per product, fanning out of the Persistent circle (figures and captions from the persistent.id product cards) */
.tie__outs { position: relative; z-index: 1; display: grid; gap: 12px; width: 100%; max-width: 440px; margin: 0 auto; padding: 0; list-style: none; }
.tout { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 26px 26px; border-radius: 18px; background: #0b1135; box-shadow: 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.05); }
.tout__logo { height: 24px; width: auto; margin-block: 5px; }
.tout__logo--mr { height: 34px; margin-block: 0; }
.tie__logo--pid { height: 34px; }
.tout__fig { margin-top: 22px; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: var(--text-1); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tout__cap { margin-top: 14px; max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--text-2); text-wrap: balance; }
.tout__link { display: inline-flex; align-items: center; gap: 9px; height: 40px; margin-top: auto; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 500; color: var(--text-1); transition: background .2s, transform .2s var(--ease); }
.tout__link:hover { background: rgba(255,255,255,.17); }
.tout__link:active { transform: translateY(1px); }
.tout__link svg { opacity: .8; }
@media (max-width: 639px) { .tout__fig { font-size: 46px; } }
@media (max-width: 1159px) {
  .tie__outs { margin-top: 0; }
  .tie__outs::before { content: ""; display: block; width: 2px; height: 40px; margin: 16px auto 16px; background: linear-gradient(to bottom, rgba(160,196,255,.75), rgba(160,196,255,0)); }
  .tout + .tout { margin-top: 0; }
}
@media (min-width: 1160px) {
  .tie__outs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: none; margin-top: 150px; }
  /* the label moves beside the circle so the outgoing lines can leave from its bottom edge, mirroring the incoming ones */
  .tie__label { position: absolute; left: calc(50% + 140px); top: 100px; width: 300px; transform: translateY(-50%); text-align: left; }
  .tie__label .tie__hubname { margin-top: 0; }
  .tout { padding: 32px 28px 30px; }
}
@media (min-width: 1300px) { .tie__outs { gap: 44px; } }

@media (max-width: 1159px) {
  .tie__art { height: auto; }
  .tie__col + .tie__col { position: relative; margin-top: 8px; padding-top: 56px; }
  .tie__col + .tie__col::before { content: ""; position: absolute; top: 10px; left: 50%; width: 2px; height: 32px; border-radius: 1px; background: linear-gradient(to bottom, rgba(160,196,255,0), rgba(160,196,255,.75)); }
  .tie__out::before { content: ""; display: block; width: 2px; height: 40px; margin: 0 auto 16px; background: linear-gradient(to bottom, rgba(160,196,255,0), rgba(160,196,255,.75)); }
}
@media (min-width: 1160px) {
  .tie__stage .glinks { display: block; }
  .tie__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .tie__col { max-width: none; }
  .tie__out { margin-top: 150px; }
}
@media (min-width: 1300px) { .tie__cols { gap: 44px; } }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 1160px) {
    .tie__cols { grid-template-rows: repeat(4, auto); row-gap: 0; }
    .tie__col { display: grid; grid-row: span 4; grid-template-rows: subgrid; justify-items: center; align-items: start; }
  }
}
@media (max-width: 639px) {
  .sfrag .frag__name { min-width: auto; overflow: visible; text-overflow: clip; }
  .sfrag .frag__row { gap: 10px; padding: 0 12px; font-size: 15px; }
  .sfrag .frag__tag { padding: 4px 6px; font-size: 11.5px; }
  .xs-hide { display: none; }
}
@media (max-width: 379px) {
  .sfrag .frag__row { gap: 8px; padding: 0 10px; font-size: 14px; }
  .sfrag .frag__tag { padding: 3px 5px; font-size: 11px; }
}

/* ===================== ventures: the year follows you down the list ===================== */
.story { position: relative; margin-top: 96px; }
.story__aside { display: none; }
.tl__item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); padding-bottom: 56px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: 5px; top: 22px; bottom: 2px; width: 1px; background: var(--line-2); }
.tl__item:last-child::before { display: none; }
.tl__item::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(159,192,255,.55); }
.tl__item--now::after { background: var(--blue); box-shadow: 0 0 0 4px rgba(77,141,255,.18); }
.tl__year { grid-column: 2; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--blue-soft); font-variant-numeric: tabular-nums; }
.tl__body { grid-column: 2; margin-top: 14px; }
.tl__logo { display: flex; align-items: center; height: 44px; }
.tl__logo img { width: auto; max-width: 240px; }
.tl__name { margin-top: 14px; font-size: 22px; line-height: 1.25; letter-spacing: -0.014em; }
.tl__desc { margin-top: 10px; max-width: 620px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
@media (min-width: 1024px) {
  .story { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; }
  .story__aside { display: block; }
  .story__pin { position: sticky; top: calc(50vh - 130px); }
  .story__year { overflow: hidden; height: 1.02em; font-size: 152px; line-height: 1; font-weight: 500; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
  .story__num { display: block; }
  .story__logo { position: relative; height: 48px; margin-top: 30px; }
  .story__logo img { position: absolute; left: 0; top: 50%; width: auto; max-width: 240px; transform: translateY(-50%); }
  .story__bar { position: relative; width: 240px; height: 2px; margin-top: 34px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
  .story__fill { position: absolute; inset: 0; background: var(--blue-soft); transform: scaleX(0); transform-origin: left; }
  .tl__item { display: block; padding: 56px 0; border-top: 1px solid var(--line); min-height: 34vh; transition: opacity .7s var(--ease); }
  .tl__item:last-child { padding-bottom: 56px; border-bottom: 1px solid var(--line); }
  .tl__item::before, .tl__item::after, .tl__year { display: none; }
  .tl__body { margin-top: 0; }
  .story.is-live .tl__item { opacity: .26; }
  .story.is-live .tl__item.is-active { opacity: 1; }
}
.exits { display: grid; gap: 28px; margin-top: 128px; padding-top: 40px; border-top: 1px solid var(--line-2); }
.exits__title { font-size: 26px; line-height: 1.2; letter-spacing: -0.018em; }
.exits__span { margin-top: 6px; font-size: 15px; color: var(--text-3); }
.exits__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; }
.exits__logos img { width: auto; }
.exits__text { max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 1024px) { .exits { grid-template-columns: 240px auto minmax(0, 1fr); align-items: center; gap: 64px; } .exits__text { justify-self: end; } }

/* ===================== about ===================== */
.about__grid { display: grid; gap: 64px; }
.about__text { margin-top: 26px; max-width: 560px; font-size: 18px; line-height: 1.68; color: var(--text-2); }
.about__text p + p { margin-top: 16px; }
.about__text a { color: var(--text-1); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.about__text a:hover { text-decoration-color: var(--text-1); }
.about__sub { margin-top: 44px; font-size: 15px; color: var(--text-3); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.facts li { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 15px 0 12px; border-radius: 12px; background: var(--fill); box-shadow: 0 0 0 1px rgba(255,255,255,.07); font-size: 15px; font-weight: 500; white-space: nowrap; }
.facts svg { width: 20px; height: 20px; fill: var(--blue-soft); }
.about__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "paris london" "paris venice" "team team"; gap: 12px; }
.ph { position: relative; overflow: hidden; border-radius: 16px; background: var(--panel); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--paris { grid-area: paris; } .ph--london { grid-area: london; aspect-ratio: 4 / 3; }
.ph--venice { grid-area: venice; aspect-ratio: 4 / 3; } .ph--team { grid-area: team; aspect-ratio: 16 / 9; }
.ph--team img { object-position: 50% 40%; }
.ph figcaption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 44px 18px 14px; background: linear-gradient(to bottom, rgba(0,6,28,0), rgba(0,6,28,.82)); font-size: 15px; font-weight: 500; }
.ph figcaption span + span { color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 88px; } }

/* ===================== navy: full-bleed photograph ===================== */
.navy { position: relative; isolation: isolate; overflow: clip; }
.navy__bg { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.navy__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; filter: saturate(.85) brightness(.88); transform-origin: 60% 55%; }
.navy__scrim { position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(0,10,54,0) 20%, rgba(0,10,54,0) 78%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(0,10,54,.94) 30%, rgba(0,10,54,.45) 60%, rgba(0,10,54,.12) 100%); }
.navy__inner { display: flex; align-items: center; min-height: min(100svh, 980px); padding-block: 140px; }
.navy__copy { max-width: 560px; }
.navy__seals { display: flex; gap: 14px; margin-bottom: 30px; }
.navy__seals img { width: 68px; height: 68px; object-fit: contain; }
.navy__copy .lead { color: #c3cbdb; }
.navy__copy .lead + .lead { margin-top: 16px; }
.navy__medals { width: 260px; height: auto; margin-top: 36px; }
@media (max-width: 899px) {
  .navy__bg { bottom: auto; height: 62svh; }
  .navy__bg img { object-position: 62% 50%; }
  .navy__scrim { bottom: auto; height: 62svh; background: linear-gradient(to bottom, var(--bg) 0%, rgba(0,10,54,0) 18%, rgba(0,10,54,.2) 60%, var(--bg) 100%); }
  .navy__inner { display: block; min-height: 0; padding-top: calc(62svh - 120px); padding-bottom: var(--section); }
  .navy__seals img { width: 58px; height: 58px; }
  .navy__medals { width: 220px; }
}

/* ===================== philanthropy ===================== */
.causes__tabs { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 22px; background: var(--fill); box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.causes__tab { position: relative; z-index: 1; display: grid; place-items: center; width: 168px; height: 92px; border-radius: 16px; opacity: .45; transition: opacity .4s var(--ease); }
.causes__tab:hover { opacity: .75; }
.causes__tab.is-active { opacity: 1; }
.causes__tab img { width: auto; height: 64px; max-width: 132px; object-fit: contain; }
.causes__ink { position: absolute; z-index: 0; top: 6px; left: 6px; height: 92px; width: 168px; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .6s var(--ease); }
@media (max-width: 479px) { .causes__tab, .causes__ink { width: 140px; height: 80px; } .causes__tab img { height: 54px; } }
.causes__panels { position: relative; margin-top: 56px; }
.cause[hidden] { display: none; }
.cause__text { display: grid; gap: 22px; }
.cause__title { max-width: 760px; }
.cause__text .lead { margin-top: 0; max-width: 520px; }
.cause__media { display: grid; gap: 12px; margin-top: 52px; }
.tile { position: relative; overflow: hidden; border-radius: 18px; background: var(--panel); aspect-ratio: 16 / 9; }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .cause__media { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cause__text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 64px; } }

.gallery { margin-top: 144px; perspective: 1600px; -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.gallery__tilt { display: grid; gap: 12px; transform-origin: 50% 50%; }
.gallery__row { overflow: hidden; }
.gallery__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.gallery__row--rev .gallery__track { animation-direction: reverse; animation-duration: 110s; }
.motion .gallery__track { animation: none; }
.gallery__track li { flex: none; margin-right: 12px; }
.gallery__track img { width: auto; height: 240px; border-radius: 12px; object-fit: cover; }
@media (max-width: 767px) { .gallery { margin-top: 96px; } .gallery__track img { height: 160px; } }

/* ===================== closing ===================== */
.closing { padding-bottom: calc(var(--section) * .85); }
.closing__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.quote p { max-width: 960px; font-size: 34px; line-height: 1.14; font-weight: 500; letter-spacing: -0.028em; text-wrap: balance; }
.quote footer { margin-top: 24px; font-size: 17px; color: var(--text-3); }
.closing .btn { margin-top: 44px; }
@media (min-width: 768px) { .quote p { font-size: 48px; } }
@media (min-width: 1100px) { .quote p { font-size: 60px; } }

/* ===================== footer ===================== */
.footer { padding: 56px 0 48px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer__id { display: flex; align-items: center; gap: 14px; }
.footer__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.footer__flag { width: auto; height: 22px; border-radius: 3px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 100%; }
.footer__links a { font-size: 15px; color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: var(--text-1); }
.footer__contact { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 28px 0 0; font-size: 15px; color: var(--text-2); }
.footer__contact div { display: flex; gap: 6px; }
.footer__contact dt { font-weight: 500; color: var(--text-1); }
.footer__contact dd { margin: 0; }
.footer__contact a:hover { color: var(--text-1); }

/* ===================== pre-animation states (only while motion runs) ===================== */
.motion [data-split]:not(.is-split) { visibility: hidden; }
.motion [data-fade] { opacity: 0; }
.motion .hero__frame { clip-path: inset(100% 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track, .gallery__track, .glinks__pulse, .tie__hub::after, .spin { animation: none; }
  .gallery__row { overflow-x: auto; }
}
