/* ==== VIEW TRANSITIONS (cross-document, zero JS) ==== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-group(*) {
  animation-duration: 580ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}


@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* ==== DESIGN TOKENS ==== */
:root {
  --bg: #fcfcfc;
  --bg-alt: #f4f4f4;
  --text: #575757;
  --text-strong: #111111;
  --text-muted: #999999;
  --rule: rgba(17, 17, 17, 0.08);
  --accent: #111111;
  --accent-hover: #000000;

  --font-display: 'Jost', 'Futura', 'Trebuchet MS', Helvetica, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --max: 1200px;
  --pad-x: clamp(20px, 5vw, 75px);
  --gap-section: clamp(48px, 8vw, 96px);
}

/* ==== RESET ==== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ==== ACCESSIBILITY ==== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  background: var(--text-strong);
  color: var(--bg);
  text-decoration: none;
  z-index: 9999;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

/* ==== LAYOUT ==== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

main {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px);
}

section + section {
  margin-top: var(--gap-section);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
}

h2 {
  font-size: clamp(20px, 2.4vw, 26px);
}

h3 {
  font-size: clamp(16px, 1.6vw, 18px);
  letter-spacing: 0.08em;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

p + p {
  margin-top: 1em;
}

/* ==== HEADER ==== */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  /* Isolate from root snapshot so the sticky header doesn't ghost during
     View Transitions. Identical on every page, so its own morph is a no-op. */
  view-transition-name: site-header;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-strong);
  padding: 4px 0;
}

.main-nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-strong);
}

/* Mobile menu (CSS checkbox hack, no JS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
  cursor: pointer;
  user-select: none;
}

/* ==== HERO ==== */
.hero {
  text-align: center;
  padding: clamp(32px, 6vw, 72px) 0;
}

.hero h1 {
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 52px);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.hero .subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text);
  text-transform: none;
}

/* ==== PRODUCT THUMBNAIL GRID (home) ==== */
.thumbnail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

@media (min-width: 640px) {
  .thumbnail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Flagship still takes the whole row on tablet so it reads as hero-scale */
  .thumbnail-tile.flagship {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .thumbnail-tile.flagship {
    grid-column: 1 / -1;
  }
  /* The flagship gets a wider, more cinematic crop so it reads as a feature
     tile instead of an oversized 4:3 square. */
  .thumbnail-tile.flagship .tile-image {
    aspect-ratio: 21 / 9;
  }
}

.thumbnail-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--text-strong);
}

.thumbnail-tile .tile-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-alt);
  opacity: 0.92;
  transition: opacity 200ms var(--ease-out);
}

.thumbnail-tile:hover .tile-image,
.thumbnail-tile:focus-visible .tile-image {
  opacity: 1;
}

.thumbnail-tile .tile-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  transition: color 160ms var(--ease-out);
}

.thumbnail-tile:hover .tile-title,
.thumbnail-tile:focus-visible .tile-title {
  color: var(--text-strong);
}

/* ==== HOME EPILOGUE (thank-you callout below the grid) ==== */
.epilogue {
  max-width: 780px;
  margin: clamp(96px, 12vw, 168px) auto 0;
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.epilogue-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.epilogue-statement {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-strong);
  margin-bottom: clamp(24px, 3vw, 40px);
  text-transform: none;
}

.epilogue-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.epilogue-link:hover,
.epilogue-link:focus-visible {
  color: var(--text-strong);
  border-color: var(--text-strong);
}

/* ==== PRODUCT DETAIL (editorial split) ==== */
.breadcrumb {
  display: inline-block;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 160ms var(--ease-out);
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: var(--text-strong);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .product-detail {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
}

.product-detail-media {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 28px);
}

.product-detail-media img {
  width: 100%;
  height: auto;
  background: var(--bg-alt);
}

/* The first image in the media column is the morph target — force it to
   match the tile's 16:9 crop so the View Transition is a pure size/position
   change instead of interpolating between two different shapes. */
.product-detail-media img:first-child {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-detail-body h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: 0.04em;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.product-detail-body p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.product-detail-body .back-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.product-detail-body .back-link:hover {
  color: var(--text-strong);
  border-color: var(--text-strong);
}

/* ==== ABOUT ==== */
.about-hero {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.about-hero img {
  width: 100%;
  background: var(--bg-alt);
}

.page-header.about-heading {
  max-width: 680px;
  margin: 0 auto clamp(24px, 3vw, 40px);
}

.about-body {
  max-width: 680px;
  margin: 0 auto;
}

.about-body p + p {
  margin-top: 1.2em;
}

.about-body p {
  font-size: 16px;
  line-height: 1.85;
}

/* ==== TEAM ==== */
.page-header {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.team-founder {
  max-width: 1180px;
  margin: 0 auto clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--rule);
}

.team-founder-member {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 720px) {
  .team-founder-member {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(48px, 6vw, 88px);
  }
}

.team-founder-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  background: var(--bg-alt);
}

.team-founder-member figcaption h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: clamp(8px, 1vw, 12px);
}

.team-founder-member figcaption .role {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.team-founder-member figcaption .bio {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 42ch;
}

.team-founder-member figcaption .founder-link {
  display: inline-block;
  margin-top: clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 160ms var(--ease-out);
}

.team-founder-member figcaption .founder-link:hover,
.team-founder-member figcaption .founder-link:focus-visible {
  color: var(--text-strong);
}

.team-founder-member figcaption .founder-link .nowrap {
  white-space: nowrap;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px) clamp(24px, 3vw, 40px);
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-member {
  text-align: left;
}

.team-member img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  margin-bottom: 16px;
  background: var(--bg-alt);
}

.team-member h3 {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.team-member .role {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==== PRESS ==== */
.press-list {
  max-width: 960px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.press-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: clamp(20px, 2.5vw, 32px) 0;
  border-bottom: 1px solid var(--rule);
}

.press-list li:first-child {
  border-top: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .press-list li {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr) minmax(0, auto);
    align-items: baseline;
    gap: clamp(24px, 4vw, 56px);
  }
}

.press-list a {
  text-decoration: none;
  color: var(--text-strong);
  transition: color 160ms var(--ease-out);
}

.press-list li:hover .press-title,
.press-list a:focus-visible {
  color: var(--text);
}

.press-outlet {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.press-title {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-strong);
}

.press-year {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ==== THANK YOU ==== */
.thank-you {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.thank-you .thank-you-media {
  margin: 0 auto clamp(40px, 6vw, 64px);
}

.thank-you h1 {
  margin-bottom: 8px;
}

.thank-you h2 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.thank-you p {
  text-align: left;
}

.signoff {
  margin-top: clamp(24px, 4vw, 40px);
  font-style: italic;
  text-align: left;
}

.thank-you .back-link {
  display: block;
  width: max-content;
  margin-top: clamp(32px, 5vw, 56px);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.thank-you .back-link:hover {
  color: var(--text-strong);
  border-color: var(--text-strong);
}

/* ==== FOOTER ==== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  margin-top: clamp(64px, 10vw, 120px);
  view-transition-name: site-footer;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer .footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus-visible {
  color: var(--text-strong);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  transition: color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}

.social-links a:hover {
  color: var(--text-strong);
  border-color: var(--text-strong);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 640px) {
  /* Pull the nav out of the header's flex flow so the MENU label can sit
     flush right. Left in-flow, the 24px flex gap on .header-inner pushed
     the label 24px inboard of the container edge. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    background: var(--bg);
    padding: 24px var(--pad-x);
    gap: 20px;
    border-bottom: 1px solid var(--rule);
  }

  .nav-toggle:checked ~ .main-nav ul {
    display: flex;
  }

  .nav-toggle-label {
    display: inline-block;
  }

  .footer-inner {
    flex-direction: column-reverse;
  }
}
