:root {
  --white: #ffffff;
  --ink: #0b0b0c;
  /* Fixed vertical sizes (px, not vh): the layout doesn't shrink when the
     window is short — instead the viewer sees less content and scrolls. */
  --band-h: 260px;
  --window-h: 1150px;
  --radius: 28px;
  --gutter: clamp(20px, 4vw, 64px);
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* White on overscroll bounce — parallax bg is bounded inside body
     (absolute positioning), so the rubber-band zone reveals this white. */
  background: var(--white);
  color: var(--ink);
  font-family: var(--sf);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

/* Parallax background.
   .bg is ABSOLUTE inside body — bounded by the document so the rubber-band
   overscroll zone (above/below the page) shows body white instead of bg.
   .bg__layer is the 300vh tall stack that JS translates for the parallax;
   .bg clips it. Three tiles (normal / mirrored / normal) make a seamless,
   reflectable image that never runs out vertically. */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg__layer {
  position: relative;
  width: 100%;
  height: 4320px; /* 3 × tile height — fixed so coverage doesn't depend on viewport */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.bg__tile {
  width: 100%;
  height: 1440px;
  background-image: url("assets/background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.bg__tile--flip { transform: scaleY(-1); }

/* Brand sits inside the top white band — scrolls away with the page.
   Sized to fill the band horizontally (with gutter padding) at any width.
   The vw-heavy clamp lets it grow large on mobile, capped on desktop. */
.brand {
  font-family: var(--sf);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1a1a1c;
  font-size: clamp(48px, 18vw, 156px);
  line-height: 0.95;
  padding: 30px var(--gutter) 22px;
}

main {
  position: relative;
  z-index: 1;
}

/* Solid white bands (these are the rest of the white overlay). */
.white-band {
  background: var(--white);
  height: var(--band-h);
}
.white-band--top    { height: auto; min-height: 0; }
.white-band--bottom { height: auto; min-height: calc(var(--band-h) + 60px); }

/* A "window" section: clips its overflow, contains a rounded transparent
   cutout that paints white everywhere outside itself via a giant box-shadow.
   Result: the parallax background is visible only inside the rounded rect. */
.window {
  position: relative;
  height: var(--window-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.window__cutout {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  height: calc(100% - 2 * var(--gutter));
  border-radius: var(--radius);
  background: transparent;
  box-shadow:
    0 0 0 100vmax var(--white),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 40px 80px -30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 56px);
}

.window__title {
  margin: 0;
  color: #fff;
  text-align: center;
  font-family: var(--sf);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(36px, 6.4vw, 96px);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.window__title--md {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4.8vw, 72px);
  line-height: 1.12;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px var(--gutter) 40px;
  font-family: var(--sf);
  font-size: 15px;
  color: #2a2a2c;
}
.footer__left { letter-spacing: -0.005em; }
.footer__right {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 2px;
  transition: border-color 160ms ease, color 160ms ease;
}
.footer__right:hover {
  color: #000;
  border-bottom-color: rgba(0,0,0,0.75);
}

@media (max-width: 700px) {
  :root {
    --band-h: 130px;
    --window-h: 580px;
    --radius: 22px;
  }
  .window__title { font-size: clamp(30px, 8vw, 56px); }
  .footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}
