/* =========================================================================
   Morris Collaboratives — dark editorial premium
   Build: Boring Stories, 2026-06. Vanilla CSS, no framework.
   Type: Zodiak (editorial serif display) + Satoshi (grotesk body) via Fontshare.
   ========================================================================= */

:root {
  /* canvas */
  --bg:        #060606;
  --bg-raise:  #0c0c0d;
  --bg-card:   #111113;
  --ink:       #f4f1ea;     /* warm off-white */
  --ink-soft:  #b8b4ab;
  --ink-mute:  #6f6c65;
  --line:      rgba(244,241,234,0.10);
  --line-2:    rgba(244,241,234,0.06);
  --accent:    #c8a657;     /* aged brass — studio/console warmth */
  --accent-2:  #e7cd8f;

  /* type scale (fluid) */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  --step-2:  clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  --step-3:  clamp(2.6rem, 1.9rem + 3.6vw, 4.4rem);
  --step-4:  clamp(3.4rem, 2.1rem + 6.6vw, 7.5rem);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --maxw: 1240px;
  --radius: 1.75rem;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- film grain (fixed, perf-safe) ---- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- typography ---- */
h1, h2, h3, .serif {
  font-family: "Zodiak", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display { font-size: var(--step-4); }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
p { color: var(--ink-soft); max-width: 62ch; }
strong { color: var(--ink); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.28em; font-weight: 500;
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(200,166,87,0.05);
}
.eyebrow::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}

/* ---- layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }
section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--ink-soft); }
.lede { font-size: var(--step-1); color: var(--ink-soft); }

/* ---- nav: floating glass island ---- */
.nav {
  position: fixed; inset: 1.25rem 0 auto 0; z-index: 70;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: 0.6rem 0.7rem 0.6rem 1.35rem;
  background: rgba(12,12,13,0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px -30px rgba(0,0,0,0.9);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-family: "Zodiak", serif; font-size: 1.05rem; letter-spacing: 0.02em; }
.nav__brand img { height: 26px; width: auto; opacity: 0.95; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-soft);
  transition: color 0.5s var(--ease); position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--accent);
}
.nav__toggle { display: none; }

/* ---- buttons (island / button-in-button) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.85rem;
  padding: 0.7rem 0.8rem 0.7rem 1.5rem;
  border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
  cursor: pointer;
}
.btn .ic {
  width: 2rem; height: 2rem; border-radius: 999px;
  display: grid; place-items: center; flex: none;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn--primary { background: var(--ink); color: #0a0a0a; }
.btn--primary .ic { background: rgba(0,0,0,0.10); }
.btn--ghost { background: rgba(244,241,234,0.04); color: var(--ink); border-color: var(--line); }
.btn--ghost .ic { background: rgba(244,241,234,0.08); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:hover .ic { transform: translate(2px, -1px) scale(1.05); }

/* ---- double-bezel card ---- */
.shell {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem;
}
.shell > .core {
  background: var(--bg-card);
  border-radius: calc(var(--radius) - 0.5rem);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
  height: 100%;
}
.card { padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: var(--step--1); }

/* ---- hero ---- */
.hero { min-height: 100dvh; display: grid; align-items: center; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: grayscale(0.4) contrast(1.05); }
.hero::before {  /* vignette + brass wash */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 8%, rgba(200,166,87,0.10), transparent 55%),
    radial-gradient(120% 100% at 50% 120%, rgba(0,0,0,0.95), transparent 60%),
    linear-gradient(180deg, rgba(6,6,6,0.4), rgba(6,6,6,0.85));
}
.hero__inner { padding-top: 7rem; }
.hero .display { margin: 1.5rem 0 1.75rem; max-width: 16ch; }
.hero .tagline { color: var(--accent-2); font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-mute); }

/* ---- waveform divider (SVG audio motif) ---- */
.wave { width: 100%; height: 64px; color: var(--accent); opacity: 0.5; }
.wave path { stroke: currentColor; stroke-width: 1.25; fill: none; }

/* ---- credits logo-wall (the proof funnel beat) ---- */
.proof { background: var(--bg-raise); border-block: 1px solid var(--line-2); }
.proof__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
}
.proof__cell {
  padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 150px;
  display: flex; flex-direction: column; justify-content: center; gap: 0.35rem;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transition: background 0.5s var(--ease);
}
.proof__cell:hover { background: rgba(200,166,87,0.04); }
.proof__cell .name { font-family: "Zodiak", serif; font-size: var(--step-1); letter-spacing: -0.01em; }
.proof__cell .meta { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-mute); }

/* ---- generic responsive grids ---- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; }
.col-4 { grid-column: span 4; } .col-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }

/* ---- media frame (image with double-bezel + grayscale-on-rest) ---- */
.frame { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; overflow: hidden; }
.frame img { border-radius: calc(var(--radius) - 0.5rem); width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) contrast(1.05); transition: filter 0.7s var(--ease), transform 0.7s var(--ease); }
.frame:hover img { filter: grayscale(0); transform: scale(1.02); }
.frame--placeholder { display: grid; place-items: center; min-height: 280px; color: var(--ink-mute); background:
  repeating-linear-gradient(135deg, rgba(244,241,234,0.02) 0 12px, transparent 12px 24px), var(--bg-card); }
.frame--placeholder span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.24em; }

/* ---- list / credits columns ---- */
.creditlist { list-style: none; display: grid; gap: 0.1rem; }
.creditlist li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line-2); }
.creditlist .t { color: var(--ink); }
.creditlist .v { color: var(--ink-mute); font-size: var(--step--1); text-align: right; }

/* ---- gear spec (collapsible) ---- */
.spec { border-top: 1px solid var(--line-2); }
.spec details { border-bottom: 1px solid var(--line-2); }
.spec summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; font-family: "Zodiak", serif; font-size: var(--step-1); transition: color 0.4s var(--ease); }
.spec summary::-webkit-details-marker { display: none; }
.spec summary:hover { color: var(--accent-2); }
.spec summary .count { font-family: "Satoshi", sans-serif; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.spec summary .plus { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.spec details[open] summary .plus { transform: rotate(45deg); }
.spec .specbody { columns: 2; column-gap: 2.5rem; padding-bottom: 1.6rem; }
.spec .specbody p { font-size: var(--step--1); break-inside: avoid; padding: 0.18rem 0; color: var(--ink-soft); max-width: none; }

/* ---- contact ---- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-mute); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 0.95rem 1.1rem; color: var(--ink); font: inherit; font-size: var(--step-0);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-raise); }

/* ---- footer ---- */
.foot { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem); }
.foot__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; align-items: flex-end; }
.foot__top .display { font-size: var(--step-2); max-width: 14ch; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; color: var(--ink-soft); }
.foot__nav a:hover { color: var(--ink); }
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: 0.72rem; color: var(--ink-mute); letter-spacing: 0.02em; }

/* ---- scroll reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(2.5rem); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
[data-reveal][data-d="1"] { transition-delay: 0.08s; }
[data-reveal][data-d="2"] { transition-delay: 0.16s; }
[data-reveal][data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- page header (interior pages) ---- */
.phead { padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.phead .display { font-size: var(--step-3); margin: 1.25rem 0; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .col-8, .col-6, .col-5, .col-7, .col-4, .col-12 { grid-column: 1 / -1; }
  .row-2 { grid-row: auto; }
  .proof__grid { grid-template-columns: 1fr; }
  .spec .specbody { columns: 1; }
  .creditlist li { flex-direction: column; gap: 0.2rem; }
  .creditlist .v { text-align: left; }
}

/* ---- mobile menu overlay ---- */
.menu {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(6,6,6,0.86);
  backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px);
  display: grid; place-content: center; gap: 0.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.menu.open { opacity: 1; pointer-events: auto; }
.menu a {
  font-family: "Zodiak", serif; font-size: clamp(2rem, 9vw, 3.5rem); color: var(--ink-soft);
  text-align: center; opacity: 0; transform: translateY(2rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.4s var(--ease);
}
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1){transition-delay:.06s} .menu.open a:nth-child(2){transition-delay:.12s}
.menu.open a:nth-child(3){transition-delay:.18s} .menu.open a:nth-child(4){transition-delay:.24s}
.menu.open a:nth-child(5){transition-delay:.30s} .menu.open a:nth-child(6){transition-delay:.36s}
.menu.open a:nth-child(7){transition-delay:.42s}
.menu a:hover { color: var(--ink); }
.burger { width: 2.4rem; height: 2.4rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(244,241,234,0.04); display: grid; place-items: center; gap: 4px; cursor: pointer; }
.burger span { display: block; width: 16px; height: 1.4px; background: var(--ink); transition: transform 0.5s var(--ease), opacity 0.3s var(--ease); }
body.menu-open .burger span:nth-child(1){ transform: translateY(2.7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ transform: translateY(-2.7px) rotate(-45deg); }
