/* ===============================================================
   Private Rooms — landing
   Reference frame: 1728 x 1008 (Figma). All values below are
   design px measured off that frame.
   =============================================================== */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../assets/fonts/PPNeueMontreal-Book.woff2") format("woff2"),
       url("../assets/fonts/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;          /* Book */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../assets/fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;          /* Medium — brand wordmark only */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zilla Slab";
  src: url("../assets/fonts/ZillaSlab-Medium.woff2") format("woff2");
  font-weight: 500;          /* the wordmark weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:  #f4f0eb;
  --ink:    #151515;
  --ink-icon: #1a1a1a;

  --rule:   rgba(244, 240, 235, 0.10);   /* hairline — deliberately faint */
  --muted:  rgba(244, 240, 235, 0.62);

  /* brand palette — used by the light mission panel */
  --paper:  #f6f6f4;
  --black:  #0e0e0c;

  --gutter: 96px;
  --header-h: 48px;

  /* panels sit under a full viewport so the next one always peeks */
  --panel-h: 88vh;

  /* The wall canvas extends this far past its visible band, top and bottom, so
     the pointer light (max radius ~380px) always has bitmap to bleed into and
     never cuts against the canvas edge. Squares are only built inside the
     visible band, so the bleed costs no particles. */
  --wall-bleed: 420px;

  /* brand: the wordmark ships on a placeholder stack — this is the site's face */
  --pr-font-display: "PP Neue Montreal", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { min-height: 100%; }

body {
  background-color: var(--ink);
  color: var(--cream);

  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
  position: fixed;          /* overlays the page and stays put */
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);   /* lines up with the hero copy */

  background-color: var(--ink);
  transition: background-color 0.45s ease;

  /* 24px mark + 12px clear space top and bottom == the 48px bar exactly */
  --pr-mark-size: 24px;
  /* the token's 0.75em resolves against the 64px root size — far too wide */
  --pr-mark-gap: 9px;
}

/* once scrolled, the bar drops away and only the nav rides over the content */
.site-header.is-scrolled { background-color: transparent; }

.site-header .pr-logo { color: var(--cream); }
.site-header .pr-logo__wordmark {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 500;
  text-transform: none;     /* "Private Room", not the token's all-caps */
  letter-spacing: 0.06em;   /* the 0.22em token is tuned for tracked-out caps */
  font-size: calc(var(--pr-mark-size) * 0.72);
}

/* ---------------------------------------------------------------
   Primary nav
   --------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* the marker is always in the flow so nothing shifts when it appears */
.nav__link::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.nav__link:hover,
.nav__link.is-current { color: var(--cream); }

.nav__link:hover::before,
.nav__link.is-current::before { opacity: 1; }

.nav__link:hover,
.nav__link.is-current { animation: nav-flicker 0.5s linear 1; }

.nav__link:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

@keyframes nav-flicker {
  0%   { opacity: 1; }
  8%   { opacity: 0.25; }
  14%  { opacity: 1; }
  26%  { opacity: 0.4; }
  32%  { opacity: 1; }
  46%  { opacity: 0.65; }
  52%  { opacity: 1; }
  70%  { opacity: 0.85; }
  76%  { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link:hover,
  .nav__link.is-current { animation: none; }
}

/* ===============================================================
   Page 1 — hero
   =============================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: var(--panel-h);   /* header is fixed, so it takes no flow space */
  padding: 0 var(--gutter);

  background-color: #0b0b0b;
  background-image: url("../assets/images/hero.png");
  background-size: cover;
  background-position: center top;   /* plate is top-aligned; bottom 30px crops */
  background-repeat: no-repeat;
}

/* the plate has a hard pure-#000 vignette baked into its bottom edge, which
   sits a visible step below --ink (#151515) — fade it into the panel colour
   instead of handing the photo's own value straight to the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  background: linear-gradient(to bottom,
              rgba(21, 21, 21, 0)    0%,
              rgba(21, 21, 21, 0.55) 60%,
              rgba(21, 21, 21, 1)    100%);
  pointer-events: none;
  z-index: 0;
}

.hero__title,
.hero__foot { position: relative; z-index: 1; }

.hero__title {
  max-width: 900px;           /* wraps after "Rounds" at 64px */
  margin-top: 300px;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--cream);
}

/* copy + CTA, pinned near the bottom of the viewport */
.hero__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
  margin-bottom: 56px;
}

.hero__desc {
  max-width: 380px;
  font-size: 20px;
  line-height: 1.1;
  color: var(--cream);
}

/* ---------------------------------------------------------------
   CTA
   --------------------------------------------------------------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin-top: 24px;
  padding: 0 14px;
  border-radius: 4px;

  background-color: var(--cream);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta:hover  { background-color: #fff; }
.cta:active { transform: translateY(1px); }

.cta:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.cta__label {
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--ink-icon);
  color: var(--cream);
}

.cta__icon svg { width: 18px; height: 18px; display: block; }

/* ===============================================================
   Page 2 — proof
   =============================================================== */

.proof {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: var(--panel-h);
  padding-top: 140px;   /* padding, not a child margin — margins collapse out */
  background-color: var(--ink);
}

/* the square wall — fills whatever height the copy leaves, so its top edge
   always sits just under the headline instead of a guessed percentage */
.proof__wall {
  order: 2;
  flex: 1 1 0;
  min-height: 170px;
  /* reaches up behind the copy — its top rows are almost transparent, so the
     overlap reads as the wall fading in rather than dots over text.
     The extra --wall-bleed on each side is transparent bitmap that only the
     pointer light ever paints into; see the token for why. */
  margin-top: calc(-48px - var(--wall-bleed));
  margin-bottom: calc(-1 * var(--wall-bleed));
  position: relative;
  z-index: 0;
  width: 100%;
  display: block;
  pointer-events: none;   /* decorative: never eat clicks or selection */
}

.proof__eyebrow { order: 0; position: relative; z-index: 1; }
.proof__title   { order: 1; position: relative; z-index: 1; }

.proof__eyebrow {
  max-width: 360px;
  margin: 0 0 0 180px;
  font-size: 17px;
  line-height: 1.1;
  color: var(--cream);
}

.proof__title {
  width: 600px;
  margin: 60px 353px 0 auto;   /* still centred on x=1075 of the 1728 frame */
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
}




/* ===============================================================
   Shared — hairline rule + super-small section label
   =============================================================== */

.rule {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  text-align: center;          /* label centred under the line */
}

.rule__label {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ===============================================================
   Panel 3 — products
   =============================================================== */

.products {
  /* shorter than a full panel — its content is compact, and a full panel left
     a slab of empty black under the cards */
  min-height: auto;
  /* rule stays tight to panel 2; the equal 96px is the space around the cards */
  padding: 56px 160px 96px;
  background-color: var(--ink);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 96px;   /* matches the padding below the cards */
}

.product__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  text-decoration: none;
  color: var(--cream);
}

.product__shot {
  display: block;
  width: 100%;
  height: auto;          /* the width/height attrs are for CLS only — don't let
                            the presentational height beat aspect-ratio */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* scrim — product3 is near-white, so the label needs its own ground */
.product__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
              rgba(8, 8, 8, 0.62) 0%,
              rgba(8, 8, 8, 0.34) 46%,
              rgba(8, 8, 8, 0.12) 100%);
}

.product__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 17% 24px 0;
  text-align: center;
}

.product__name {
  font-size: 23px;
  font-weight: 500;      /* a touch heavier, per the reference */
  line-height: 1.15;
  color: var(--cream);
}

.product__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1;
  color: var(--cream);
}

.product__arrow {
  width: 15px;
  height: 15px;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product__card:hover .product__shot { transform: scale(1.035); }
.product__card:hover .product__arrow { transform: translateX(4px); }

.product__card:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.product__copy {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.45;   /* body copy needs more leading than the display 1.1 */
  color: var(--muted);
}

/* ===============================================================
   Panel 4 — mission
   =============================================================== */

.mission {
  display: grid;
  place-items: center;          /* centred in the panel, both axes */
  min-height: 58vh;             /* shorter than a full panel */
  padding: 88px var(--gutter);
  background-color: var(--paper);
}

.mission__body {
  max-width: 880px;
  text-align: center;
}

.mission__body p {
  font-size: 34px;
  line-height: 1.25;
  color: var(--black);
}

.mission__cta {
  margin-top: 36px;
  background-color: var(--black);
  color: var(--paper);
}

.mission__cta:hover { background-color: #000; }

.mission__cta .cta__icon {
  background-color: var(--paper);
  color: var(--black);
}

.mission__body p + p {
  margin-top: 40px;
}

/* ===============================================================
   Mobile menu — hamburger toggle + full-screen list
   =============================================================== */

/* the toggle only exists on small screens; the desktop nav only on large */
.nav-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  margin-right: -6px;   /* optically aligns the bars with the gutter */
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  cursor: pointer;
}

.nav-toggle__bar {
  position: absolute;
  left: 7px;
  width: 20px;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.2s ease;
}

.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 20px; }

/* the two bars cross into the close X rather than swapping to a new icon */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 4px;
}

.menu[hidden] { display: none; }

.menu:focus { outline: none; }   /* it takes focus as a dialog, not as a control */

.menu {
  position: fixed;
  inset: 0;
  z-index: 15;             /* under the header (20) so logo + toggle stay live */
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background-color: var(--ink);
  animation: menu-in 0.26s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes menu-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.menu__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.menu__link {
  position: relative;
  font-size: 26px;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
}

/* same marker and flicker the desktop nav uses, scaled up */
.menu__link::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.menu__link.is-current::before,
.menu__link:hover::before { opacity: 1; }

.menu__link.is-current,
.menu__link:hover { animation: nav-flicker 0.5s linear 1; }

.menu__link:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: 6px;
}

.menu__foot {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding-top: 32px;
}

.menu__meta {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu__meta:hover { color: var(--cream); }

@media (prefers-reduced-motion: reduce) {
  .menu { animation: none; }
  .nav-toggle__bar { transition: none; }
  .menu__link.is-current,
  .menu__link:hover { animation: none; }
}

/* ===============================================================
   Contact — overlay, hidden until a #contact link is clicked
   =============================================================== */

.contact[hidden] { display: none; }

.contact {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 96px 28px;

  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(10, 10, 9, 0.52), rgba(10, 10, 9, 0.74)),
    url("../assets/images/hero.png");
  background-size: cover;
  background-position: center top;
  animation: contact-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes contact-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.contact__close {
  position: absolute;
  top: 22px;
  right: var(--gutter);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.contact__close:hover { color: var(--cream); }
.contact__close svg { width: 20px; height: 20px; }

.contact__form {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.contact__form .rule:not(:first-child) { margin-top: 40px; }

.contact__field {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;

  font-family: inherit;
  font-size: 19px;
  line-height: 1.4;
  text-align: center;
  color: var(--cream);
  transition: border-color 0.25s ease;
}

.contact__field::placeholder { color: rgba(244, 240, 235, 0.34); }
.contact__field:focus {
  outline: none;
  border-bottom-color: var(--cream);
}

.contact__field--area {
  resize: vertical;
  min-height: 96px;
}

.contact__send {
  margin-top: 40px;
}


@media (prefers-reduced-motion: reduce) {
  .contact { animation: none; }
}

/* ===============================================================
   Responsive
   =============================================================== */

@media (max-width: 1200px) {
  :root { --gutter: 64px; }

  .hero__title { font-size: 52px; max-width: 740px; margin-top: 220px; }
  .hero::after  { height: 200px; }
  .hero__foot  { margin-bottom: 48px; }

  .proof { padding-top: 110px; }
  .proof__eyebrow { margin: 0 0 0 64px; }
  .proof__title   { width: 560px; margin: 48px 8% 0 auto; font-size: 40px; }

  .products { padding: 96px 96px 72px; }
  .mission  { padding: 72px var(--gutter); }
  .product__name  { font-size: 19px; }
  .product__copy  { font-size: 15px; }
  .products__grid { gap: 16px; }
  .mission__body p  { font-size: 23px; }
}

@media (max-width: 780px) {
  :root { --gutter: 28px; }
  .site-header { padding: 0 28px; }

  /* the three inline links don't fit beside the wordmark — swap to the menu */
  .nav        { display: none; }
  .nav-toggle { display: block; }

  .hero__title { font-size: 38px; max-width: 100%; margin-top: 150px; }
  .hero::after  { height: 150px; }
  .hero__desc  { max-width: 100%; }
  .hero__foot  { margin-bottom: 40px; }

  .proof { padding-top: 80px; }
  .proof__eyebrow { margin: 0 28px; font-size: 17px; }
  .proof__title   { width: auto; margin: 40px 28px 0 28px; font-size: 30px; text-align: left; }

  .products { padding: 72px var(--gutter) 56px; min-height: 0; }
  .mission  { padding: 64px var(--gutter); min-height: 0; }

  /* three cards side by side are unreadable on a phone — stack them */
  .products__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .product__name { font-size: 21px; }
  .product__copy { font-size: 15px; }
  .product__overlay { padding-top: 15%; }

  .mission__body p { font-size: 20px; }
  .mission__body p + p { margin-top: 28px; }
}
