/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Palette — "Pompeii": plaster ground, terracotta panels, gilded detail */
  --ink:        #261C15;   /* warm near-black brown — body text on light */
  --ink-mid:    #3A342B;
  --plaster:    #F8F7F4;   /* light ground — clean warm white, fresh plaster */
  --plaster-mid:#EFECE4;   /* raised surface */
  --terracotta: #6E2A18;   /* dark sections — deep Pompeian terracotta */
  --verdigris:  #20403B;   /* footer — patinated bronze, complement to terracotta */
  --cream:      #F0E9DB;   /* text on terracotta */
  --gold:       #7D5C14;   /* functional accent — muted antique gold, links only */
  --muted:      #6E6256;
  --faint:      #9A9082;

  --rule:     rgba(38, 28, 21, 0.13);
  --rule-mid: rgba(38, 28, 21, 0.22);

  /* Type families */
  --display: 'Newsreader', Georgia, serif;
  --body:    'EB Garamond', Georgia, serif;

  /* Type scale — six sizes, used with purpose */
  --t-label: 0.6875rem;   /* 11px  labels, small caps */
  --t-sm:    0.9375rem;   /* 15px  supporting text */
  --t-base:  1.0625rem;   /* 17px  body copy */
  --t-md:    1.25rem;     /* 20px  service names, subheads */
  --t-lg:    1.625rem;    /* 26px  hero motto */
  --t-xl:    clamp(1.75rem, 3.5vw, 2.75rem);  /* page titles */

  /* Spacing */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Layout */
  --content: 660px;
  --nav-h:   60px;
  --pad:     clamp(1.5rem, 5vw, 3rem);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}


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


/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  font-feature-settings: 'onum' 1;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  margin-top: var(--nav-h);
}

p {
  margin-bottom: var(--s4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.7;
}


/* ─────────────────────────────────────────────
   TEXTURE — fine paper grain
   A subtle tooth so surfaces aren't dead-flat. Fine, not cloudy.
───────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Letterpress depth — cream type pressed into the terracotta */
.hero-motto,
.statement p,
.surgical-quote,
.epigraph p,
.footer-name {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}


/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--plaster);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: opacity 0.15s;
}

.nav-brand:hover {
  opacity: 0.7;
}

.nav-brand-name {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.nav-brand-sub {
  font-family: var(--display);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

#nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.nav-link {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  padding-bottom: 3px;
  line-height: 1;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.nav-contact {
  color: var(--gold);
}

.nav-contact:hover {
  color: var(--gold);
  opacity: 0.7;
}

.nav-contact.active {
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s2);
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}


/* ─────────────────────────────────────────────
   PAGES
───────────────────────────────────────────── */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fade-in 0.2s var(--ease);
}

#page-ideas.active {
  display: flex;
}

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


/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--terracotta);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: var(--s16) var(--pad);
}

/* Aldus leaf scroll cue (❧) — a printer's fleuron pointing down */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--s8);
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  color: rgba(240, 233, 219, 0.55);
  opacity: 0;
  animation: cue-in 0.8s var(--ease) 1.3s forwards, cue-bob 2.4s ease-in-out 2.1s infinite;
}

.scroll-cue::before {
  content: '\2767';
}

@keyframes cue-in {
  from { opacity: 0; }
  to   { opacity: 0.45; }
}

@keyframes cue-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(5px); }
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s16);
}

.hero-left {
  display: flex;
  align-items: center;
}

.hero-seal {
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.88;
  animation: hero-seal 1s var(--ease) both;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-motto {
  font-family: 'Cormorant Garamond', var(--body), Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 300;
  font-style: normal;
  color: var(--cream);
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: var(--s6);
  animation: hero-rise 0.8s var(--ease) 0.5s both;
}

.hero-gloss {
  margin-bottom: var(--s8);
  animation: hero-fade 0.7s var(--ease) 0.75s both;
}

.hero-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(240, 233, 219, 0.38);
  margin: 0 0 var(--s8);
  animation: hero-fade 0.7s var(--ease) 0.85s both;
}

.hero-translation {
  font-family: var(--display);
  font-size: var(--t-sm); /* caption scale — subordinate to the inscription */
  font-style: italic;
  font-weight: 400;
  color: rgba(240, 233, 219, 0.78);
  line-height: 1.55;
}

.hero-attribution {
  font-family: var(--display);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 233, 219, 0.42);
}

.hero-attribution span {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.05em;
}

.hero-lede {
  max-width: 40ch;
  font-family: var(--body);
  font-size: var(--t-base);
  color: rgba(240, 233, 219, 0.82);
  line-height: 1.7;
  animation: hero-fade 0.8s var(--ease) 1s both;
}

.hero-year {
  position: absolute;
  top: var(--s8);
  right: var(--pad);
  z-index: 1;
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(240, 233, 219, 0.32);
  animation: hero-fade 0.6s var(--ease) 1.2s both;
}

@keyframes hero-seal {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 0.88; transform: scale(1); }
}

@keyframes hero-rule {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ─────────────────────────────────────────────
   DIVIDER — FLEURON RULE (printer's flower)
───────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.divider span {
  flex: none;
  width: 36px;
  height: 16px;
  margin: 0 var(--s6);
  font-size: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='16' viewBox='0 0 36 16'%3E%3Cg fill='%236E2A18'%3E%3Cpath d='M18 3 L21 8 L18 13 L15 8 Z'/%3E%3Cpath d='M15 8 C9 3 3 5 1 8 C3 11 9 13 15 8 Z'/%3E%3Cpath d='M21 8 C27 3 33 5 35 8 C33 11 27 13 21 8 Z'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.55;
}


/* ─────────────────────────────────────────────
   CONTENT COLUMN
───────────────────────────────────────────── */
.content {
  max-width: var(--content);
  margin-left: auto;
  margin-right: auto;
  padding: var(--s12) var(--pad);
}


/* ─────────────────────────────────────────────
   SECTION LABEL
───────────────────────────────────────────── */
.label {
  font-family: var(--display);
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s6);
}

.label::before {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 1em;
  margin-right: 0.6em;
  vertical-align: -0.18em;
  opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M5 0 C8 4 9 6 7.5 9.5 C6.8 11.5 3.2 11.5 2.5 9.5 C1.6 7 3.5 6 4 3 C4.3 5 5.2 6 6 6.5 C6 4 5 2 5 0 Z' fill='%236E2A18'/%3E%3C/svg%3E") center / contain no-repeat;
}


/* ─────────────────────────────────────────────
   WHO WE SERVE
───────────────────────────────────────────── */
.served {
  list-style: none;
  margin: var(--s4) 0 0;
  display: flex;
  flex-wrap: wrap;
}

.served li {
  font-family: var(--display);
  font-size: var(--t-sm);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.served li:not(:last-child)::after {
  content: ' · ';
  color: var(--faint);
  padding: 0 0.2em;
}


/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
dl.services {
  display: grid;
  grid-template-columns: 175px 1fr;
  column-gap: var(--s10);
  margin-top: var(--s6);
  counter-reset: svc;
}

dl.services dt {
  font-family: var(--display);
  font-size: var(--t-base);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  padding: var(--s6) 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  align-self: start;
}

dl.services dt::before {
  counter-increment: svc;
  content: counter(svc, upper-roman);
  display: inline-block;
  min-width: 1.7em;
  font-family: var(--display);
  font-style: normal;
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: var(--terracotta);
  vertical-align: 0.1em;
}

dl.services dt:first-child {
  border-top: none;
  padding-top: 0;
}

dl.services dd {
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.72;
  color: var(--muted);
  padding: var(--s6) 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

dl.services dd:first-of-type {
  border-top: none;
  padding-top: 0;
}


/* ─────────────────────────────────────────────
   FOOTNOTE — scholarly dagger aside
───────────────────────────────────────────── */
.footnote {
  display: flex;
  gap: 0.6em;
  margin-top: var(--s8);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm);
  color: var(--faint);
  font-style: italic;
}

.footnote .fn-mark {
  color: var(--terracotta);
  font-style: normal;
}

.fn-ref {
  color: var(--terracotta);
  font-style: normal;
  font-size: 0.7em;
  text-decoration: none;
  vertical-align: super;
  margin-left: 0.1em;
}


/* ─────────────────────────────────────────────
   STATEMENT — FULL-WIDTH DARK BAND
───────────────────────────────────────────── */
.statement {
  background: var(--terracotta);
  padding: var(--s20) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.statement p {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
}


/* ─────────────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────────────── */
.about-content {
  padding-top: var(--s16);
  padding-bottom: var(--s16);
}

.page-title {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--s8);
}

.clients {
  list-style: none;
  margin: var(--s4) 0 var(--s10);
}

.clients li {
  font-family: var(--body);
  font-size: var(--t-base);
  color: var(--ink);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--rule);
}

.clients li:first-child {
  border-top: 1px solid var(--rule);
}

.testimonial-full {
  border-left: 2px solid var(--terracotta);
  padding-left: var(--s6);
  margin: 0;
}

.testimonial-full p {
  font-family: var(--body);
  font-size: var(--t-base);
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--s3);
}

.testimonial-full footer cite {
  display: block;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ─────────────────────────────────────────────
   SURGICAL — CLOSING DARK STATEMENT
───────────────────────────────────────────── */
.surgical {
  background: var(--terracotta);
  padding: var(--s24) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.surgical-quote {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: var(--s6);
  position: relative;
}

.surgical-cite {
  font-family: var(--display);
  font-size: var(--t-label);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.4);
  position: relative;
}


/* ─────────────────────────────────────────────
   IDEAS PAGE
───────────────────────────────────────────── */
#page-ideas {
  position: relative;
  overflow: hidden;
  background: var(--terracotta);
  min-height: calc(100vh - var(--nav-h));
  align-items: center;
  justify-content: center;
}

.ideas-inner {
  max-width: 600px;
  padding: var(--s16) var(--pad);
}

.epigraph {
  text-align: center;
}

.epigraph p {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.85;
  margin-bottom: var(--s6);
}

.epigraph footer cite {
  display: block;
  font-family: var(--display);
  font-size: var(--t-label);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.4);
}

.epigraph footer cite em {
  font-style: italic;
}


/* ─────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────── */
.contact-content {
  padding-top: var(--s20);
  padding-bottom: var(--s20);
}

.contact-link {
  display: inline-block;
  margin-top: var(--s6);
  font-family: var(--body);
  font-size: var(--t-md);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.contact-link:hover {
  opacity: 0.7;
}


/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: var(--s10) var(--pad);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: var(--display);
  font-size: var(--t-sm);
  letter-spacing: 0.06em;
  color: var(--cream);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--s8);
}

.footer-meta a {
  font-family: var(--body);
  font-size: var(--t-sm);
  color: rgba(237, 231, 218, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-meta a:hover {
  color: var(--cream);
  opacity: 1;
}

.footer-meta span {
  font-family: var(--display);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  color: rgba(237, 231, 218, 0.3);
}


/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--plaster);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s6) var(--pad);
    gap: var(--s6);
  }

  #nav-menu.open {
    display: flex;
  }

  .nav-link {
    font-size: var(--t-sm);
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-link.active {
    border-bottom: none;
    color: var(--ink);
  }

  .hero {
    padding: var(--s12) var(--pad);
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s10);
    text-align: center;
  }

  .hero-left {
    justify-content: center;
  }

  .hero-seal {
    width: 180px;
    height: 180px;
  }

  .hero-right {
    align-items: center;
  }

  .hero-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-year {
    top: var(--s4);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--s4);
    text-align: center;
  }

  .footer-meta {
    flex-direction: column;
    gap: var(--s2);
  }
}


/* ─────────────────────────────────────────────
   ACCESSIBILITY
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .page.active,
  .hero-seal,
  .hero-rule,
  .hero-motto,
  .hero-year,
  .scroll-cue {
    animation: none;
  }

  .scroll-cue {
    opacity: 0.45;
  }
}

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