/* GC Bench demo: "The Memo".
   Editorial legal-brief concept. Paper white, ink black, one accent: redline red.
   Display type: Libre Caslon (the Caslon family set the American founding documents).
   Light theme, locked. Sharp corners throughout. */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-var-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("assets/fonts/libre-caslon-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("assets/fonts/libre-caslon-text-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #faf9f5;
  --paper-deep: #f1efe8;
  --ink: #1a1815;
  --muted: #625c52;
  --rule: #ddd8cc;
  --rule-dark: #b9b2a2;
  --red: #8e2323;
  --red-deep: #701b1b;
  --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --serif-italic: "Libre Caslon Text", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

::selection { background: var(--red); color: #faf9f5; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h3 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }

h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }

p { max-width: 62ch; }

a { color: var(--red); }

em.redline {
  font-family: var(--serif-italic);
  font-style: italic;
  position: relative;
  white-space: nowrap;
}
em.redline::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.05em;
  bottom: -0.02em;
  height: 0.045em;
  background: var(--red);
  transform-origin: left center;
}

.clause {
  font-family: var(--serif);
  color: var(--red);
  margin-right: 0.35em;
}

.section-sub {
  color: var(--muted);
  margin-top: 0.9rem;
  max-width: 52ch;
}

/* ---------- Reveal motion ---------- */

.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #faf9f5;
}
.btn-primary:hover { background: var(--red-deep); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--rule-dark);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 70px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--red); }

.nav-links { display: none; gap: 1.9rem; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.btn-nav { padding: 0.6rem 1.15rem; }

@media (min-width: 820px) {
  .nav-links { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 3rem;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
}

.hero-grid {
  display: grid;
  gap: 2.75rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.9vw, 4.4rem);
  max-width: 20ch;
  padding-bottom: 0.08em;
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 44ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--rule);
  filter: contrast(1.03);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto -10px -10px auto;
  width: 45%;
  height: 45%;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  pointer-events: none;
}

.cred-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  border-top: 2px solid var(--ink);
}
.cred-strip li {
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  flex: 1 1 100%;
}
.cred-strip li + li { border-top: 1px solid var(--rule); }

@media (min-width: 640px) {
  .cred-strip li { flex: 1 1 auto; padding: 1.15rem 0; }
  .cred-strip li + li {
    border-top: 0;
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
    margin-left: 1.5rem;
  }
}

@media (min-width: 820px) {
  .hero { padding-top: 4.5rem; }
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: 4.5rem;
  }
  .hero-media img { max-height: 570px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media {
    animation: rise 0.7s var(--ease) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-media { animation-delay: 0.15s; }
  em.redline::after {
    animation: draw 0.9s var(--ease) 0.55s both;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Preliminary statement ---------- */

.prelim {
  padding: 5.5rem 0 1.5rem;
}

.prelim-grid {
  display: grid;
  gap: 1.5rem;
}

.side-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 0.5rem;
}

.prelim-body p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.5;
  max-width: 30em;
}

.dropcap::first-letter {
  font-size: 3.1em;
  line-height: 0.82;
  float: left;
  padding: 0.06em 0.12em 0 0;
  color: var(--red);
}

@media (min-width: 820px) {
  .prelim { padding: 7rem 0 2rem; }
  .prelim-grid { grid-template-columns: 3fr 9fr; gap: 3rem; }
  .side-label { border-top: 1px solid var(--rule-dark); }
}

/* ---------- How it works: clauses ---------- */

.how { padding: 5rem 0; }

.clauses {
  list-style: none;
  margin-top: 2.75rem;
}

.clauses li {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0;
}
.clauses li:last-child { border-bottom: 1px solid var(--rule); }

.clause-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.clause-no {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--red);
  flex-shrink: 0;
  min-width: 2.1rem;
}

.clause-head h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.leader {
  flex: 1;
  border-bottom: 1px dotted var(--rule-dark);
  transform: translateY(-0.35em);
  min-width: 2rem;
}

.clause-meta {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}

.clauses li > p {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 58ch;
  padding-left: calc(2.1rem + 0.9rem);
}

@media (max-width: 639px) {
  .clause-meta { display: none; }
  .leader { display: none; }
  .clauses li > p { padding-left: 0; }
}

@media (min-width: 820px) {
  .how { padding: 6.5rem 0; }
}

/* ---------- Coverage: exhibits ---------- */

.coverage {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 5.5rem 0 0;
}

.exhibits {
  display: grid;
  gap: 2.75rem;
  margin-top: 2.75rem;
  padding-bottom: 4.5rem;
}

.exhibit figure {
  position: relative;
}
.exhibit img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule-dark);
  filter: grayscale(1) contrast(1.04);
}

.exhibit figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.exhibit-tag {
  font-family: var(--serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--red);
  white-space: nowrap;
}

.exhibit p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 820px) {
  .coverage { padding-top: 7rem; }
  .exhibits {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 5.5rem;
  }
  /* offset middle exhibit for rhythm */
  .exhibit:nth-child(2) { transform: translateY(2.25rem); }
  .exhibits { padding-bottom: 7rem; }
}

/* ---------- Functions marquee ---------- */

.functions {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0 1.6rem;
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  list-style: none;
  display: flex;
  gap: 3.5rem;
  width: max-content;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  padding-block: 0.4rem;
}
.marquee-track li { white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 36s linear infinite; }
  @keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 1.75rem)); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; gap: 1rem 2.5rem; }
  .marquee-track li[aria-hidden] { display: none; }
}

.functions-note {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.functions .marquee, .functions .functions-note {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.functions .marquee { padding-inline: 0; }

/* ---------- Mission band ---------- */

.mission {
  position: relative;
  background: var(--ink) url("assets/skyline.webp") center 62% / cover no-repeat;
  padding: 7.5rem 0;
  isolation: isolate;
}
.mission::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(16 14 12 / 0.84) 25%, rgb(16 14 12 / 0.55) 100%);
  z-index: -1;
}

.mission-line {
  font-family: var(--serif);
  color: #faf9f5;
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  line-height: 1.25;
  max-width: 24ch;
}

.signature {
  margin-top: 2.5rem;
  border-top: 1px solid rgb(250 249 245 / 0.28);
  padding-top: 1.2rem;
  max-width: 320px;
}
.sig-script {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.3rem;
  color: #faf9f5;
  line-height: 1.4;
  padding-bottom: 0.15em;
}
.sig-role {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: rgb(250 249 245 / 0.68);
}

@media (min-width: 820px) {
  .mission { padding: 9.5rem 0; }
}

/* ---------- About / counsel ---------- */

.about { padding: 5.5rem 0; }

.about-grid {
  display: grid;
  gap: 2.75rem;
  margin-top: 2.75rem;
}

.portrait-card {
  max-width: 360px;
  position: relative;
}
.portrait-card img {
  width: 100%;
  filter: grayscale(1) contrast(1.06);
  border: 1px solid var(--rule);
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: auto -8px -8px auto;
  width: 42%;
  height: 42%;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  pointer-events: none;
}

h3.about-name {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.about-copy .lede {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  line-height: 1.6;
}
.about-copy p + p { margin-top: 1.1rem; color: var(--muted); }

.ledger {
  list-style: none;
  margin-top: 2.25rem;
  border-top: 2px solid var(--ink);
}
.ledger li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.ledger-item { font-weight: 600; }
.ledger-note {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (min-width: 820px) {
  .about { padding: 7.5rem 0; }
  .about-grid {
    grid-template-columns: 4fr 7fr;
    gap: 5rem;
    align-items: start;
  }
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 5.5rem 0;
}

.faq-narrow { max-width: 860px; }

.faq h2 { margin-bottom: 1.9rem; }

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
}
.faq details:first-of-type { border-top: 2px solid var(--ink); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s var(--ease);
}
.faq summary:hover { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--red);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  margin-top: 0.95rem;
  color: var(--muted);
  max-width: 58ch;
}

@media (min-width: 820px) {
  .faq { padding: 7rem 0; }
}

/* ---------- Booking ---------- */

.book { padding: 5.5rem 0 4rem; }

.book-embed {
  margin-top: 2.5rem;
  border: 1px solid var(--rule-dark);
  background: #ffffff;
}
.book-embed iframe {
  display: block;
  border: 0;
  width: 100%;
}

.book-fallback {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (min-width: 820px) {
  .book { padding: 7rem 0 5rem; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 2px solid var(--ink);
  padding: 3rem 0 2.5rem;
}

.footer-close {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  padding-bottom: 0.1em;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-mark { font-size: 1.2rem; }

.footer address {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

.disclaimer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.55;
}

.demo-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
}
.demo-note a { color: var(--muted); }
.demo-note a:hover { color: var(--ink); }
