:root {
  --ink: #090909;
  --paper: #ffffff;
  --muted: #626262;
  --line: #e7e7e7;
  --field: #f7f7f7;
  --focus: #175cce;
  --error: #9f2d22;
  --error-bg: #fff7f5;
  --content: 1280px;
  --gutter: clamp(22px, 5vw, 76px);
  --backdrop-artwork: url("/studio-field.webp");
  --backdrop-position: center 62%;
  --backdrop-zoom-start: 1;
  --backdrop-zoom-end: 1.12;
  --hero-height: clamp(640px, 100svh, 1050px);
  --hero-copy-padding: 78px 0 84px;
  --hero-copy-width: 980px;
  --hero-copy-inset: clamp(0px, 5.8vw, 84px);
  --hero-title-size: clamp(68px, 7.4vw, 102px);
  --hero-title-tracking: -0.012em;
  --hero-title-leading: 1.17;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: transparent;
}
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

/* One viewport-sized scene stays behind every section; scroll changes only its crop. */
.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}
.backdrop-art {
  position: absolute;
  inset: -5%;
  background-image: var(--backdrop-artwork);
  background-repeat: no-repeat;
  background-position: var(--backdrop-position);
  background-size: cover;
  transform: scale(var(--backdrop-zoom-start));
  transform-origin: center 54%;
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .backdrop-art {
    animation: background-expansion 1s linear both;
    animation-timeline: scroll(root block);
    animation-range: 0% 86%;
  }
  @keyframes background-expansion {
    from { transform: scale(var(--backdrop-zoom-start)) translate3d(0, 0, 0); }
    to { transform: scale(var(--backdrop-zoom-end)) translate3d(0, -1.2%, 0); }
  }
}

.site-header {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--content)) / 2));
  background: transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.brand img { display: block; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.header-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); font-size: 14px; font-weight: 540; }
.header-nav a { text-decoration: none; text-underline-offset: 4px; }
.header-nav a:hover { text-decoration: underline; }
.header-nav .nav-account { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; }
.header-nav .nav-account:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
main { width: 100%; flex: 1; }

.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-height);
  display: flex;
  align-items: center;
  background: transparent;
}
.hero-inner {
  width: min(100% - 2 * var(--gutter), var(--content));
  min-height: inherit;
  display: grid;
  align-content: center;
  justify-items: start;
  margin-inline: auto;
  padding: var(--hero-copy-padding);
}
.hero-copy { width: 100%; max-width: var(--hero-copy-width); padding-left: var(--hero-copy-inset); text-align: left; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 960px;
  margin: 0 0 30px;
  font-size: var(--hero-title-size);
  font-weight: 480;
  letter-spacing: var(--hero-title-tracking);
  line-height: var(--hero-title-leading);
  text-wrap: balance;
}
.intro-copy {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.68;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 18px 24px; margin-top: 32px; }
.primary-link {
  min-height: 52px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 540;
  transition: background 160ms ease, transform 160ms ease;
}
.primary-link:hover { transform: translateY(-1px); background: #333; }
.hero-product-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #999;
  text-underline-offset: 6px;
  font-size: 15px;
  font-weight: 540;
}
.hero-product-link:hover { text-decoration-color: var(--ink); }
.products { padding: 88px 0 112px; background: transparent; scroll-margin-top: 24px; }
.products-inner { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.products-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.5vw, 56px); font-weight: 520; letter-spacing: -0.012em; line-height: 1.16; }
.products-list { display: grid; }
.product-row-copy { min-width: 0; }
.product-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 520;
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.product-row p { max-width: 700px; margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.product-row-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 540;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.product-row-action:hover { background: var(--ink); color: white; }
.product-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }

.directory-feedback {
  width: min(100% - 2 * var(--gutter), var(--content));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px auto;
  padding: 14px 0;
  border-top: 1px solid var(--error-line, #e9c4bd);
  border-bottom: 1px solid var(--error-line, #e9c4bd);
  color: var(--error);
  font-size: 13px;
}
.directory-feedback p { margin: 0; }
.retry-button { min-height: 38px; flex: none; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: 12px; font-weight: 560; cursor: pointer; }
.retry-button:hover { background: var(--ink); color: white; }

.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px max(var(--gutter), calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  :root {
    --gutter: 28px;
    --backdrop-zoom-end: 1.08;
    --hero-height: clamp(620px, 100svh, 820px);
    --hero-copy-padding: 72px 0 78px;
    --hero-copy-inset: clamp(0px, 3vw, 20px);
    --hero-title-size: clamp(46px, 9vw, 62px);
    --hero-title-tracking: -0.01em;
    --hero-title-leading: 1.19;
  }
  .site-header { min-height: 72px; }
  .products { padding: 70px 0 82px; }
}
@media (max-width: 520px) {
  :root {
    --gutter: 20px;
    --backdrop-zoom-end: 1.06;
    --hero-height: clamp(600px, 100svh, 780px);
    --hero-copy-padding: 62px 0 72px;
    --hero-copy-inset: 0px;
    --hero-title-size: clamp(42px, 10.8vw, 50px);
    --hero-title-tracking: -0.005em;
    --hero-title-leading: 1.2;
  }
  .site-header { min-height: 68px; gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand img { width: 34px; height: 34px; }
  .header-nav { gap: 14px; font-size: 13px; }
  h1 { margin-bottom: 24px; }
  .intro-copy { max-width: 360px; font-size: 18px; line-height: 1.65; }
  .hero-actions { gap: 14px; margin-top: 27px; }
  .primary-link { min-height: 50px; }
  .products { padding: 59px 0 66px; }
  .products-heading { padding-bottom: 18px; }
  h2 { font-size: 40px; }
  .product-row { grid-template-columns: 1fr; gap: 14px; padding: 21px 0; }
  .product-row-action { justify-self: start; }
  .directory-feedback { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-footer { min-height: 64px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop-art { animation: none !important; transform: scale(1); }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
