:root {
  --ink: #0f1d33;
  --navy: #1c2b43;
  --chalk: #f4f1ea;
  --studio: #d3d3d7;
  --forest: #1f3c30;
  --burgundy: #692d36;
  --beige: #c5b59b;
  --muted: #5a6170;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 64px);
  --bar: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--chalk); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 60; transform: translateY(-200%); background: var(--ink); color: var(--chalk); padding: 12px 16px; font-weight: 700; }
.skip-link:focus { transform: none; }
:where(a, button, input):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.eyebrow { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }

.progress { position: fixed; inset: 0 0 auto; z-index: 55; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--beige); transform: scaleX(var(--progress, 0)); transform-origin: left; }

/* Masthead: ink over the hero, chalk once the hero has scrolled away. */
.masthead { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--bar); padding: 0 var(--gutter); background: var(--ink); color: var(--chalk); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.masthead.is-solid { background: rgb(244 241 234 / 95%); color: var(--ink); box-shadow: 0 1px 0 rgb(15 29 51 / 12%); backdrop-filter: blur(10px); }
.masthead-logo { position: relative; display: block; width: 72px; justify-self: start; }
.masthead-logo img { width: 100%; transition: opacity .35s ease; }
.masthead-logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.masthead.is-solid .logo-light { opacity: 0; }
.masthead.is-solid .logo-dark { opacity: 1; }
.masthead-nav { display: flex; gap: 32px; font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.masthead-nav a, .masthead-cta { text-decoration: none; }
.masthead-nav a { padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); }
.masthead-nav a:hover { background-size: 100% 1px; }
.masthead-cta { justify-self: end; padding: 10px 18px; border: 1px solid currentColor; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.masthead-cta:hover { background: var(--chalk); color: var(--ink); }
.masthead.is-solid .masthead-cta:hover { background: var(--ink); color: var(--chalk); }

/* Hero: an ink panel beside two studio photographs. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: max(100svh, 700px); padding-top: var(--bar); background: var(--ink); color: var(--chalk); }
.hero-panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(32px, 5vh, 56px); }
.hero-eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; color: var(--beige); }
.hero-eyebrow span + span::before { display: inline-block; width: 36px; height: 1px; margin-right: 14px; vertical-align: middle; background: currentColor; content: ""; }
.hero-title { font-family: var(--display); font-size: clamp(64px, 9.6vw, 190px); font-weight: 800; line-height: .82; letter-spacing: -.01em; text-transform: uppercase; }
.hero-title > span { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-title > span > span { display: block; animation: rise 1.1s var(--ease) both; }
.hero-title > span:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

/* Service line and centre line: the T of a padel court. */
.court-t { position: relative; display: block; height: 1px; margin: clamp(24px, 3.5vh, 40px) 0 clamp(20px, 3vh, 28px); background: rgb(244 241 234 / 45%); transform-origin: left; animation: draw-x 1.4s var(--ease) .35s both; }
.court-t::after { position: absolute; top: 0; left: 50%; width: 1px; height: 28px; background: inherit; transform-origin: top; animation: draw-y .8s var(--ease) 1.1s both; content: ""; }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: none; } }
.hero-lede { max-width: 36ch; margin-bottom: clamp(20px, 3vh, 32px); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.5; color: rgb(244 241 234 / 88%); }

.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ink); }
.hero-photos figure { position: relative; overflow: hidden; background: var(--studio); }
.hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; animation: settle 1.6s var(--ease) both; }
.hero-photos figure + figure img { animation-delay: .12s; }
.hero-photos .hero-close img { object-position: 50% 20%; }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
.hero-photos figcaption, .worn figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 6px 10px; background: rgb(244 241 234 / 92%); color: var(--ink); font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Signup */
.signup-block { position: relative; width: 100%; max-width: 520px; }
.signup-row { display: flex; align-items: stretch; border-bottom: 1px solid currentColor; }
.signup-row:focus-within { outline: 2px solid currentColor; outline-offset: 6px; }
.signup input[type="email"] { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; outline: none; }
.signup input[type="email"]::placeholder { color: inherit; opacity: .62; }
.signup button { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0; padding: 0 18px; border: 0; background: var(--chalk); color: var(--ink); font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color .2s; }
.signup button b { font-weight: 400; transition: transform .25s var(--ease); }
.signup button:hover b { transform: translate(3px, -3px); }
.signup button:hover { background: #fff; }
.signup button:disabled { cursor: wait; opacity: .65; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 13px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--beige); }
.signup-note { margin-top: 10px; font-size: 12px; opacity: .78; }
.signup-success { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid currentColor; }
.signup-success[hidden] { display: none; }
.signup-success strong { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.signup-success small { display: block; font-size: 13px; opacity: .8; }
.signup-success-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid currentColor; border-radius: 50%; }
.signup-frame { display: none; }

.concept-tag { position: absolute; top: 16px; right: 16px; z-index: 1; padding: 5px 9px; background: rgb(15 29 51 / 72%); color: var(--chalk); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Collection sample */
.collection { padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(56px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 360px); align-items: end; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { grid-column: 1 / -1; color: var(--burgundy); }
.section-head h2 { font-size: clamp(56px, 8.4vw, 150px); }
.section-note { color: var(--muted); font-size: 16px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #fff; box-shadow: inset 0 0 0 1px rgb(15 29 51 / 8%); }
.product-shot { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; transition: transform .9s var(--ease), opacity .3s ease; }
.product-model { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .45s ease; }
.product-shot.is-swapping { opacity: 0; }
@media (hover: hover) {
  .product:hover .product-shot { transform: scale(1.04); }
  .product[data-model-match="true"] .product-media:hover .product-model { opacity: 1; }
}
.product[data-worn="true"] .product-model { opacity: 1; }
.worn-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 1; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); background: rgb(255 255 255 / 92%); font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.worn-toggle[hidden] { display: none; }
.product-info { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink); }
.product-info h3 { font-family: var(--display); font-size: clamp(22px, 1.8vw, 28px); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.product-info p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swatch { width: 24px; height: 24px; padding: 0; border: 1px solid rgb(15 29 51 / 25%); border-radius: 50%; background: var(--swatch); cursor: pointer; transition: box-shadow .2s; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--chalk), 0 0 0 3px var(--ink); }
.footnote { margin-top: 36px; font-size: 13px; color: var(--muted); }

/* Worn together */
.worn { padding: clamp(72px, 10vw, 140px) var(--gutter); background: var(--ink); color: var(--chalk); }
.worn-head { margin-bottom: clamp(36px, 5vw, 64px); }
.worn-head .eyebrow { color: var(--beige); }
.worn-head h2 { margin-top: 16px; font-size: clamp(52px, 7vw, 128px); }
.worn-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: start; gap: clamp(12px, 1.6vw, 24px); }
.worn-grid figure { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--studio); }
.worn-grid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.worn-grid figure:hover img { transform: scale(1.04); }
.worn-b { margin-top: clamp(40px, 8vw, 120px); }
.worn-c { margin-top: clamp(16px, 3vw, 48px); }

/* Vote */
.vote { padding: clamp(72px, 10vw, 140px) var(--gutter); background: var(--forest); color: var(--chalk); }
.vote-copy { max-width: 720px; }
.vote-copy .eyebrow { color: var(--beige); }
.vote-copy h2 { margin-top: 16px; font-size: clamp(52px, 7vw, 128px); }
.vote-lede { max-width: 42ch; margin-top: 20px; font-size: 18px; color: rgb(244 241 234 / 88%); }
.vote-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(36px, 5vw, 56px); }
.vote-options button { position: relative; padding: 0; border: 0; background: #fff; cursor: pointer; text-align: left; }
.vote-options img { width: 100%; aspect-ratio: 4 / 5; padding: 12%; object-fit: contain; transition: transform .9s var(--ease); }
.vote-options span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--chalk); color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.vote-options span::before { width: 16px; height: 16px; border-radius: 50%; background: var(--swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 15%); content: ""; }
.vote-options span::after { margin-left: auto; font-size: 16px; content: ""; }
.vote-options button:hover img { transform: scale(1.04); }
.vote-options button[aria-pressed="true"] { outline: 3px solid var(--chalk); outline-offset: 4px; }
.vote-options button[aria-pressed="true"] span { background: var(--ink); color: var(--chalk); }
.vote-options button[aria-pressed="true"] span::after { content: "\2713"; }
.vote-result { min-height: 1.6em; margin-top: 24px; font-size: 16px; }
.vote-result a { font-weight: 700; text-underline-offset: 4px; }

/* Instagram */
.social { padding: clamp(72px, 9vw, 120px) var(--gutter); }
.social-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.social-head h2 { font-size: clamp(44px, 5.6vw, 96px); text-transform: none; }
.social-head a { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-underline-offset: 5px; }
.social-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.social-grid a { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.social-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .3s; }
.social-grid a:hover img { transform: scale(1.05); opacity: .9; }

/* Story */
.story { padding: clamp(80px, 11vw, 160px) var(--gutter); border-top: 1px solid rgb(15 29 51 / 12%); text-align: center; }
.court-rule { position: relative; display: block; width: min(320px, 60%); height: 1px; margin: 0 auto clamp(40px, 5vw, 64px); background: var(--ink); }
.court-rule::after { position: absolute; top: 0; left: 50%; width: 1px; height: 22px; background: var(--ink); content: ""; }
.story-line { max-width: 18ch; margin: 0 auto; font-family: var(--display); font-size: clamp(44px, 6.4vw, 112px); font-weight: 800; line-height: .92; text-transform: uppercase; }
.story-sign { margin-top: 36px; color: var(--burgundy); }

/* Final signup over a padel court plan. */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(88px, 12vw, 180px) var(--gutter); background: var(--ink); color: var(--chalk); }
.court-plan { position: absolute; inset: 8% var(--gutter); z-index: -1; width: calc(100% - 2 * var(--gutter)); height: 84%; fill: none; stroke: rgb(244 241 234 / 16%); stroke-width: 1; }
.court-plan * { vector-effect: non-scaling-stroke; }
.court-plan-upright { display: none; }
.final-inner { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; text-align: center; }
.final-inner .eyebrow { color: var(--beige); }
.final-inner h2 { margin-top: 16px; font-size: clamp(60px, 9vw, 160px); }
.final-lede { margin: 24px 0 36px; font-size: 18px; }
.final .signup-block { text-align: left; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px var(--gutter); background: var(--ink); color: rgb(244 241 234 / 75%); border-top: 1px solid rgb(244 241 234 / 14%); font-size: 13px; }
.footer img { width: 56px; opacity: .9; }
.footer nav { display: flex; gap: 24px; }
.footer a { text-underline-offset: 4px; }
.footer span { justify-self: end; }

.sticky-cta { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 40; display: none; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; background: var(--ink); color: var(--chalk); font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; box-shadow: 0 12px 30px rgb(15 29 51 / 30%); transform: translateY(160%); transition: transform .4s var(--ease); }
.sticky-cta.is-visible { transform: none; }


.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.products [data-reveal]:nth-child(3n + 2), .worn-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.products [data-reveal]:nth-child(3n), .worn-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }

/* Popup in the new type system. */
.newsletter-popup { font-family: var(--text); color: var(--ink); background: var(--chalk); border-radius: 0; }
.newsletter-popup h2 { font-family: var(--display); font-size: clamp(52px, 7vw, 76px); font-weight: 800; line-height: .86; letter-spacing: 0; text-transform: uppercase; }
.newsletter-popup h2 em { font-style: normal; font-weight: 800; color: var(--burgundy); }
.newsletter-popup-eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: .08em; }
.newsletter-popup-submit { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: .05em; background: var(--ink); }

@media (max-width: 1000px) {
  .masthead-nav { display: none; }
  .masthead { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .hero-photos { order: -1; height: min(62svh, 620px); }
  .hero-panel { padding-top: 32px; }
  .hero-title { font-size: clamp(60px, 13vw, 140px); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: 1fr; }
  .vote-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  :root { --bar: 64px; }
  .masthead-logo { width: 60px; }
  .masthead-cta { padding: 8px 14px; font-size: 15px; }
  .hero-photos { height: 46svh; }
  .hero-photos figcaption { left: 8px; bottom: 8px; font-size: 12px; }
  .hero-title { font-size: clamp(60px, 19.5vw, 120px); }
  .signup button { padding: 0 14px; font-size: 16px; }
  .concept-tag { top: 10px; right: 10px; font-size: 10px; }
  .products { display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .products::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 78%; scroll-snap-align: start; }
  .swatch { width: 28px; height: 28px; }
  .worn-grid { grid-template-columns: 1fr 1fr; }
  .worn-a { grid-column: 1 / -1; }
  .worn-b, .worn-c { margin-top: 0; }
  .footer { grid-template-columns: 1fr auto; }
  .footer nav { grid-column: 1 / -1; grid-row: 2; }
  .sticky-cta { display: flex; }
  .court-plan { display: none; }
  .court-plan-upright { display: block; inset: 32px var(--gutter); height: calc(100% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
