/* ============================================================
   ARCO — antoniorevivo.com
   ARCO = Advise · Represent · Create · Optimize.
   Those four disciplines organise the page.
   Aesthetic: restrained editorial — private chambers, not SaaS.
   Warm ivory paper, warm near-black ink, gold used sparingly
   like a precious metal rather than a highlighter.
   ============================================================ */

:root {
  /* Paper & ink */
  --paper: #fbf8f2;
  --paper-2: #f4efe4;
  --paper-3: #ebe3d3;
  --ink: #14110d;
  --ink-2: #4a4238;
  --ink-3: #857a6b;
  --line: #e3dac9;

  /* Gold — from the logo's gradient */
  --gold: #b0821f;
  --gold-lt: #d9b15c;
  --gold-dk: #7d5a13;
  --gold-wash: rgba(176, 130, 31, 0.08);

  /* Deep band — echoes the logo's black field */
  --deep: #100e0b;

  --shell: min(1240px, 92vw);
  --rail: clamp(1.25rem, 4vw, 3rem);

  --serif: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain — keeps the ivory from reading as flat digital white. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Type scale ─────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6.2vw, 5.1rem);
}
h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
}
h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.2;
}

p {
  margin: 0;
}

/* Small letterspaced label — the logo's own tagline treatment. */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--ink-2);
  max-width: 56ch;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  z-index: 1;
}

/* A fine gold rule — the only recurring ornament. */
.rule {
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(176, 130, 31, 0));
  border: none;
  margin: 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-head.is-stuck {
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
  padding: 0.7rem 0;
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink);
  line-height: 1;
  padding-left: 0.06em;
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.48rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-top: 0.34rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.2rem;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  width: 100%;
}

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  color: #fffdf8;
  box-shadow: 0 8px 26px -14px rgba(125, 90, 19, 0.75);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(125, 90, 19, 0.85);
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dk);
  background: var(--gold-wash);
}

.btn-arrow {
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.head-cta {
  display: inline-flex;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(9rem, 17vh, 12.5rem) 0 clamp(4.5rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

/* Soft warm light pooling behind the plate */
.hero::after {
  content: '';
  position: absolute;
  top: -18%;
  right: -8%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 177, 92, 0.18), rgba(217, 177, 92, 0) 66%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy > * + * {
  margin-top: 1.6rem;
}

.hero h1 {
  margin-top: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-dk);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.6rem;
  margin-top: 3.2rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  min-width: 116px;
}

.hero-meta dt {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold-dk);
}

.hero-meta dd {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* The brand plate — a framed field, like a plaque at the door. */
.hero-plate {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  justify-self: end;
  width: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.7rem;
  border-radius: 3px;
  background: linear-gradient(168deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -60px rgba(20, 17, 13, 0.55);
  overflow: hidden;
}

/* Fine inner keyline, offset — a plaque detail */
.hero-plate::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(176, 130, 31, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

.hero-plate-mark {
  width: 42%;
  max-width: 180px;
  position: relative;
  z-index: 2;
  animation: markIn 1.5s var(--ease) 0.35s both;
}

.hero-plate-word {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-plate-word span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: 0.36em;
  color: var(--gold-dk);
  padding-left: 0.36em;
}

.hero-plate-word small {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@keyframes markIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Authorities strip
   ============================================================ */
.authorities {
  padding: 2.4rem 0;
  border-block: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.5);
}

.auth-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  justify-content: center;
}

.auth-row span {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.auth-row span.sep {
  color: var(--gold);
  letter-spacing: 0;
}

/* ============================================================
   Generic section furniture
   ============================================================ */
.band {
  padding: clamp(5rem, 10vw, 8.5rem) 0;
}

.band-head {
  max-width: 62ch;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}

.band-head > * + * {
  margin-top: 1.1rem;
}

.band-head.center {
  margin-inline: auto;
  text-align: center;
}

.band-head.center .rule {
  margin-inline: auto;
}

/* ============================================================
   Pillars — A · R · C · O
   The name itself: Advise, Represent, Create, Optimize.
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar {
  background: var(--paper);
  padding: clamp(1.8rem, 2.6vw, 2.6rem);
  position: relative;
  transition: background 0.4s var(--ease);
}

.pillar:hover {
  background: var(--paper-2);
}

/* The initial letter, oversized — A R C O reads down the row. */
.pillar-letter {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.32;
  transition: opacity 0.4s var(--ease);
}

.pillar:hover .pillar-letter {
  opacity: 0.7;
}

.pillar h3 {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}

.pillar p {
  margin-top: 0.85rem;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* A rule that draws in on hover */
.pillar::after {
  content: '';
  position: absolute;
  left: clamp(1.8rem, 2.6vw, 2.6rem);
  bottom: clamp(1.8rem, 2.6vw, 2.6rem);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.pillar:hover::after {
  width: 34px;
}

/* ============================================================
   Services
   ============================================================ */
.svc-group + .svc-group {
  margin-top: clamp(2.6rem, 5vw, 4rem);
}

.svc-group-head {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.svc-group-head h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.svc-group-head .count {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Individually bordered cards, not a grid-gap-as-rules trick: an incomplete
   final row then leaves plain paper rather than a stray block of background. */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 12px;
}

.svc {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Gold hairline that draws across the top on hover */
.svc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold));
  transition: width 0.55s var(--ease);
}

.svc:hover {
  background: var(--paper-2);
  border-color: rgba(176, 130, 31, 0.45);
  transform: translateY(-3px);
}

.svc:hover::before {
  width: 100%;
}

.svc-code {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--gold-dk);
}

.svc h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.svc-time {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* ============================================================
   Process — dark band, the counterpoint to all that ivory
   ============================================================ */
.process {
  background: var(--deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -30%;
  width: 120vw;
  height: 120vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217, 177, 92, 0.12), transparent 58%);
  pointer-events: none;
}

.process h2,
.process h3 {
  color: var(--paper);
}

.process .lede {
  color: rgba(251, 248, 242, 0.68);
}

.process .eyebrow {
  color: var(--gold-lt);
}

.process .rule {
  background: linear-gradient(90deg, var(--gold-lt), rgba(217, 177, 92, 0));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}

.step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(217, 177, 92, 0.35);
}

.step-num {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  color: var(--gold-lt);
}

.step h3 {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.step p {
  margin-top: 0.85rem;
  font-size: 0.93rem;
  line-height: 1.62;
  color: rgba(251, 248, 242, 0.6);
}

/* ============================================================
   Portal callout — the real differentiator
   ============================================================ */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.portal-copy > * + * {
  margin-top: 1.2rem;
}

.portal-list {
  list-style: none;
  padding: 0;
  margin: 1.9rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.portal-list li {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-2);
}

.portal-list li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  margin-top: 0.82rem;
  background: var(--gold);
}

/* A stylised matter pipeline — abstract, not a fake screenshot. */
.pipeline {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(175deg, var(--paper-2), var(--paper));
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  box-shadow: 0 40px 70px -55px rgba(20, 17, 13, 0.6);
}

.pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pipeline-head b {
  font-weight: 500;
  color: var(--gold-dk);
}

.pipe-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(227, 218, 201, 0.65);
}

.pipe-row:last-child {
  border-bottom: none;
}

.pipe-dot {
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.56rem;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--paper);
}

.pipe-row.done .pipe-dot {
  background: linear-gradient(135deg, var(--gold-lt), var(--gold));
  border-color: transparent;
  color: #fffdf8;
}

.pipe-row.now .pipe-dot {
  border-color: var(--gold);
  color: var(--gold-dk);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

.pipe-label {
  font-size: 0.88rem;
  color: var(--ink-2);
}

.pipe-row.now .pipe-label {
  color: var(--ink);
}

.pipe-tag {
  margin-left: auto;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.pipe-row.now .pipe-tag {
  color: var(--gold-dk);
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-copy > * + * {
  margin-top: 1.2rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.contact-details dt {
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.contact-details dd {
  margin: 0.45rem 0 0;
  font-size: 1rem;
  color: var(--ink-2);
}

.contact-details a:hover {
  color: var(--gold-dk);
}

/* ============================================================
   Footer
   ============================================================ */
.site-foot {
  background: var(--deep);
  color: rgba(251, 248, 242, 0.55);
  padding: clamp(3.4rem, 6vw, 5rem) 0 2.2rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(251, 248, 242, 0.12);
}

.foot-brand {
  text-align: center;
}

.foot-brand .brand-mark {
  width: 54px;
  height: 54px;
  margin-inline: auto;
}

.foot-word {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.34em;
  color: var(--gold-lt);
  padding-left: 0.34em;
}

.foot-tag {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.42);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 2.1rem;
}

.foot-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.62);
  transition: color 0.3s var(--ease);
}

.foot-nav a:hover {
  color: var(--gold-lt);
}

.foot-base {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  justify-content: space-between;
  font-size: 0.73rem;
  color: rgba(251, 248, 242, 0.38);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* Hero copy comes in on load, staggered — one orchestrated moment. */
.hero-copy > * {
  animation: riseIn 1s var(--ease) both;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.45s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
}

@media (max-width: 900px) {
  .nav,
  .head-cta {
    display: none;
  }
  .burger {
    display: block;
  }

  .hero-grid,
  .portal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-plate {
    max-height: 420px;
    max-width: 340px;
    justify-self: center;
    order: -1;
  }

  .hero {
    padding-top: 7.5rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .pillars,
  .steps {
    grid-template-columns: 1fr;
  }
  .svc-grid {
    grid-template-columns: 1fr;
  }
  .hero-meta {
    gap: 1.3rem 1.8rem;
  }
}

/* Mobile drawer -------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(251, 248, 242, 0.98);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer nav {
  display: grid;
  gap: 1.9rem;
  text-align: center;
}

.drawer nav a {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--ink);
}

.drawer nav a:hover {
  color: var(--gold-dk);
}

.drawer-close {
  position: absolute;
  top: 1.6rem;
  right: var(--rail);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
