/* Maybac — "Lamination" design system.
 * Palette: Oven Black #1a120c · Cocoa #3a2517 · Crust #b5722e ·
 *          Butter #f2c26b · Parchment #f7ecd9
 * Type: Fraunces (display) · Instrument Sans (body) · IBM Plex Mono (labels) */

:root {
  --oven: #1a120c;
  --cocoa: #3a2517;
  --cocoa-soft: #2a1b11;
  --crust: #b5722e;
  --butter: #f2c26b;
  --parchment: #f7ecd9;
  --parchment-dim: #cfb896;
  --display: "Fraunces", serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 6vw, 7rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--parchment);
  background: var(--oven);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

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

/* ---------- shared type roles ---------- */

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--crust);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--parchment-dim);
}

.h2 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.body { max-width: 46ch; color: var(--parchment-dim); }

.lede {
  max-width: 50ch;
  margin: 1.2rem 0 0;
  color: var(--parchment-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.cta {
  display: inline-block;
  margin-top: 2.2rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid var(--butter);
  color: var(--butter);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.cta:hover { background: var(--butter); color: var(--oven); }

.cta--ghost {
  margin-top: 0;
  padding: 0.7rem 1.1rem;
  border-color: color-mix(in srgb, var(--parchment) 25%, transparent);
  color: var(--parchment-dim);
}

.cta--ghost:hover { border-color: var(--butter); background: transparent; color: var(--butter); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

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

.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  transition: background 0.35s ease;
}

.nav.is-solid { background: color-mix(in srgb, var(--oven) 88%, transparent); backdrop-filter: blur(10px); }

.nav__mark {
  color: var(--parchment);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  padding: 0.6rem 0.85rem;
  color: var(--parchment-dim);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__links a:hover { color: var(--butter); }

.nav__visit { color: var(--butter) !important; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 100dvh;
  padding: 0 var(--gutter) clamp(4rem, 9vh, 7rem);
}

.hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--oven) 92%, transparent) 0%, transparent 45%),
    linear-gradient(to right, color-mix(in srgb, var(--oven) 72%, transparent) 0%, transparent 60%);
}

.hero__copy { position: relative; z-index: 1; max-width: 60rem; }

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 8.6vw, 8.5rem);
  font-weight: 480;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 60;
}

.hero__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--butter);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero__sub {
  max-width: 40ch;
  margin: 1.6rem 0 0;
  color: var(--parchment-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero__hint {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 2.2rem;
  margin: 0;
  color: var(--parchment-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: hint-bob 2.6s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(0.45rem); opacity: 1; }
}

/* ---------- lamination seam (signature) ---------- */

.seam {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(0.3rem, 0.8vw, 0.6rem);
  padding: clamp(1.6rem, 4vw, 3rem) 0;
  overflow: hidden;
  background: var(--oven);
}

.seam i {
  display: block;
  height: clamp(3px, 0.5vw, 5px);
  width: 130%;
  margin-left: -15%;
  border-radius: 999px;
  will-change: transform;
}

.seam i:nth-child(1) { background: color-mix(in srgb, var(--crust) 55%, transparent); }
.seam i:nth-child(2) { background: color-mix(in srgb, var(--butter) 70%, transparent); }
.seam i:nth-child(3) { background: var(--crust); }
.seam i:nth-child(4) { background: color-mix(in srgb, var(--butter) 45%, transparent); }
.seam i:nth-child(5) { background: color-mix(in srgb, var(--crust) 35%, transparent); }

/* ---------- fold 01 · craft ---------- */

.craft {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  background: var(--cocoa-soft);
}

.craft__dust {
  position: absolute;
  inset: -15% 0;
  z-index: 0;
  opacity: 0.5;
}

.craft__dust video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 78rem;
  margin: 0 auto;
}

.craft__title {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.craft__film { margin: 0; }

.craft__film video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.craft__film figcaption { margin-top: 0.8rem; }

/* ---------- parallax quote bands ---------- */

.band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 82dvh;
  padding: clamp(5rem, 10vh, 8rem) var(--gutter);
  text-align: center;
}

.band__media {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
}

.band__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--oven) 45%, transparent);
}

.band__copy { position: relative; z-index: 1; }

.band__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

.band__title em {
  font-style: italic;
  color: var(--butter);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.band__sub {
  margin: 1.2rem 0 0;
  color: var(--parchment-dim);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

/* ---------- fold 03 · the case ---------- */

.case { padding: clamp(5rem, 12vh, 9rem) var(--gutter); }

.case__head { max-width: 78rem; margin: 0 auto; }

.case__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 78rem;
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}

.case__item { grid-column: span 2; margin: 0; }
.case__item--wide { grid-column: span 4; }

.case__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.96);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.case__item:hover img { transform: scale(1.025); filter: saturate(1.05); }

.case__item--wide img { aspect-ratio: 16 / 9; }

.case__item figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  margin-top: 1rem;
  align-items: baseline;
}

.case__item figcaption .mono { color: var(--crust); }

.case__item figcaption strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.case__item figcaption em {
  grid-column: 2;
  font-style: normal;
  color: var(--parchment-dim);
  font-size: 0.95rem;
}

/* ---------- fold 04 · classes ---------- */

.classes {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
  background: var(--cocoa-soft);
}

.classes__intro {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 78rem;
  margin: 0 auto;
}

.classes__intro .body strong { color: var(--parchment); }

.classes__photo { margin: 0; }

.classes__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.classes__photo figcaption { margin-top: 0.8rem; }

.courses {
  max-width: 78rem;
  margin: clamp(3rem, 7vh, 5rem) auto 0;
  padding: 0;
  list-style: none;
}

.courses__row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 2fr) minmax(0, 3fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.4rem 0;
  border-top: 1px solid color-mix(in srgb, var(--parchment) 14%, transparent);
}

.courses__row:last-child { border-bottom: 1px solid color-mix(in srgb, var(--parchment) 14%, transparent); }

.courses__row img { width: 2.4rem; height: 2.4rem; object-fit: contain; }

.courses__row h3 {
  margin: 0 0 0.2rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.courses__row .mono { margin: 0; color: var(--crust); }

.courses__focus { margin: 0; color: var(--parchment-dim); }

.classes__table { max-width: 78rem; margin: clamp(3rem, 7vh, 5rem) auto 0; }

.classes__table img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 4px;
}

.classes__table figcaption { margin-top: 0.8rem; }

/* ---------- fold 05 · visit ---------- */

.visit {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}

.visit__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.02em;
}

.visit__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.visit__col h3 {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
}

.visit__col h3 img { width: 1.15rem; height: 1.15rem; }

.visit__col address { font-style: normal; }

.visit__col p, .visit__col address { margin: 0; color: var(--parchment-dim); line-height: 1.8; }

.visit__note { font-size: 0.9rem; opacity: 0.8; }

.visit__link {
  color: var(--parchment);
  text-decoration-color: var(--crust);
  text-underline-offset: 0.25em;
}

.visit__link:hover { color: var(--butter); }

/* ---------- footer ---------- */

.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vh, 4rem) var(--gutter) 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--parchment) 10%, transparent);
  background: #140d08;
}

.footer__ghost {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.5rem, 17vw, 16rem);
  line-height: 0.85;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--crust) 45%, transparent);
  user-select: none;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  color: var(--parchment-dim);
  font-size: 0.85rem;
}

.footer__row a { color: var(--butter); text-underline-offset: 0.25em; }

.footer__credit { opacity: 0.75; }

/* ---------- responsive: tablet ---------- */

@media (max-width: 1024px) {
  .craft__inner, .classes__intro { grid-template-columns: 1fr; }
  .courses__row {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .courses__focus { grid-column: 2; }
  .courses__row .cta--ghost { grid-column: 2; justify-self: start; }
}

/* ---------- responsive: mobile ---------- */

@media (max-width: 700px) {
  .nav { padding: 0.7rem 1.1rem; }
  .nav__mark { font-size: 1.05rem; }
  .nav__links a { padding: 0.55rem 0.5rem; font-size: 0.72rem; }

  .hero { padding-bottom: 5.5rem; }
  .hero__hint { right: auto; left: var(--gutter); }

  .case__grid { grid-template-columns: 1fr; }
  .case__item, .case__item--wide { grid-column: auto; }
  .case__item--wide img { aspect-ratio: 4 / 3; }

  .band { min-height: 62dvh; }

  .visit__cols { grid-template-columns: 1fr; }

  .footer__row { flex-direction: column; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__hint { animation: none; }
  [data-px] { transform: none !important; }
  .case__item img, .case__item:hover img { transform: none; transition: none; }
}
