/* =================================================================
   FINCA CA'N POSTETA — "The Register"
   Concept: the property's tourism register (ETV/1634) made beautiful.
   Every section is a numbered ledger entry; the seal is the motif.
   Lane: EB Garamond + Inter · vineyard wine-red + leaf green · refined.
   Mobile-first.
   ================================================================= */

:root {
  /* palette — derived warm, vineyard reds + Tramuntana leaf */
  --ink:        #2c1118;   /* near-black oxblood, text on parchment */
  --ink-soft:   #5a4046;   /* muted body ink */
  --wine:       #7c2230;   /* signature wine-red */
  --wine-deep:  #5a1722;   /* deep ground */
  --leaf:       #4a5d3a;   /* muted olive-leaf green */
  --leaf-soft:  #6b7a58;
  --parchment:  #f5efe3;   /* warm register paper */
  --parch-2:    #efe6d4;   /* second paper tone */
  --gold:       #b08948;   /* rare seal/rule glint */
  --gold-soft:  #c8a572;
  --line:       #d8cbb2;   /* ruling line on parchment */
  --line-2:     rgba(124,34,48,0.16);

  --maxw: 1160px;
  --gut: clamp(20px, 5vw, 64px);

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  /* faint ruled-paper grain */
  background-image:
    repeating-linear-gradient(180deg, transparent 0 38px, rgba(124,34,48,0.035) 38px 39px);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--wine); color: var(--parchment); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  /* keep big display type from breaking into one-letter-per-line on mobile */
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  margin: 0;
}

/* shared display headline tuning */
.hero-name, .preamble-lead, .entry-h, .enquire-h {
  letter-spacing: -0.01em;
  line-height: 1.04;
}

/* ============ MASTHEAD ============ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--gut);
  background: rgba(245,239,227,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.mast-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
  min-height: 44px;            /* ≥44px tap target without enlarging the mark */
}
.mast-mark { display: block; width: 34px; height: 34px; flex: 0 0 34px; }
.mast-mark svg { display: block; width: 34px; height: 34px; }

.mast-name { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.mast-name-sm {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 2px;
}
.mast-name-lg {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.mast-nav { display: none; }
.mast-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;            /* touch-safe even on iPad-landscape widths */
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0 2px;
  transition: color .25s var(--ease);
}
.mast-nav a:hover { color: var(--wine); }
.mast-cta {
  color: var(--wine) !important;
  font-weight: 600;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 8px 16px !important;
}
.mast-cta:hover { background: var(--wine); color: var(--parchment) !important; }

.lang {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 11px 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color .25s var(--ease);
}
.lang:hover { border-color: var(--wine); }
.lang .is-active { color: var(--wine); }
.lang-sep { opacity: .4; }

/* ============ SEAL MOTIF — masthead/footer small mark + enquire stamp ============ */
.seal-ring-o, .hs-ring-o { fill: none; stroke: var(--wine); stroke-width: 2; }
.seal-ring-i, .hs-ring-i { fill: none; stroke: var(--wine); stroke-width: 1; opacity: .55; }
.hs-ring-c { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .8; }
.seal-rule, .hs-rule { stroke: var(--gold); stroke-width: 1.5; }
.seal-etv, .hs-etv {
  font-family: var(--serif); font-weight: 600; fill: var(--wine);
}
.seal-num, .hs-num {
  font-family: var(--serif); font-weight: 500; fill: var(--ink);
}
.seal-etv { font-size: 24px; letter-spacing: 1px; }
.seal-num { font-size: 15px; letter-spacing: 2px; }
.hs-etv  { font-size: 40px; letter-spacing: 2px; }
.hs-num  { font-size: 26px; letter-spacing: 4px; }
.hs-arc  {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 3.5px; fill: var(--wine);
}
.hs-star { font-size: 13px; fill: var(--gold); }

/* ============ HERO — Folio 1634, the stamped register sheet ============ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  /* cap so a very tall window (or full-page screenshot) can't balloon the hero
     into an empty band — caps to a real laptop fold where it reads balanced */
  max-height: 940px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* clears the sticky masthead at top; symmetric breathing room */
  padding: clamp(96px, 14vh, 150px) var(--gut) clamp(72px, 11vh, 104px);
  /* warm paper that lifts toward the seal, so the right side feels lit */
  background:
    radial-gradient(120% 110% at 82% 38%, var(--parch-2) 0%, rgba(239,230,212,0) 56%),
    var(--parchment);
  overflow: hidden;
  isolation: isolate;
}

/* THE FOLIO SHEET — ruled paper + a hairline document border + margin column */
.hero-sheet { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* a wine hairline frame, inset like the rule box around a ledger page */
.hero-sheet::before {
  content: "";
  position: absolute;
  inset: clamp(56px, 8vh, 92px) clamp(14px, 3.5vw, 44px);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 0 0 1px rgba(245,239,227,0.5);
}
/* a heavier double rule on the left = the binding margin of the folio */
.hero-margin {
  position: absolute;
  top: clamp(56px, 8vh, 92px);
  bottom: clamp(56px, 8vh, 92px);
  left: clamp(40px, 10vw, 132px);
  width: 0;
  border-left: 1px solid rgba(124,34,48,0.28);
  box-shadow: 3px 0 0 -2px rgba(124,34,48,0.16);
}
/* faint horizontal ruling fills the whole field */
.hero-rules {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 53px, var(--line-2) 53px 54px);
  opacity: .7;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}
.hero-edge { display: none; }

/* folio heading strip — registry caption left, folio number right */
.hero-folio {
  position: absolute;
  top: clamp(70px, 9.5vh, 112px);
  left: clamp(40px, 10vw, 132px);
  right: clamp(30px, 6vw, 70px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--sans);
  font-size: clamp(8.5px, 1.6vw, 10px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--leaf);
  z-index: 2;
}
.hero-folio-reg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-folio-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 2.4vw, 15px);
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--wine);
  white-space: nowrap;
  flex: none;
}

/* the composition: entry on the left, struck seal on the right */
.hero-grid {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 6vw, 56px);
  align-items: center;
}

.hero-entry { min-width: 0; }

.hero-kicker {
  font-family: var(--sans);
  font-size: clamp(9.5px, 1.9vw, 10.5px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.hero-name {
  font-size: clamp(4.2rem, 19vw, 11.5rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-shadow: 0 1px 0 rgba(245,239,227,0.6);
}
.hero-line { display: block; }
.hero-line--amp {
  color: var(--wine);
  font-style: italic;
  margin-left: 0.04em;
}

.hero-place {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  color: var(--leaf);
  margin: 18px 0 0;
  letter-spacing: 0.01em;
}

.hero-note {
  max-width: 42ch;
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  color: var(--ink-soft);
  margin: 18px 0 26px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----- THE SEAL, struck into the paper (signature moment) ----- */
.hero-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}
.seal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* slight rotation = a real hand-pressed stamp, never machine-square */
  transform: rotate(-4deg);
  animation: sealStrike 0.9s var(--ease) both 0.25s;
}
/* the debossed disc: the seal sits in a shallow well pressed into the paper */
.seal-press {
  position: relative;
  display: block;
  width: clamp(190px, 44vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* deboss: dark inner top-left, light inner bottom-right + a soft outer lip */
  box-shadow:
    inset 0 3px 7px rgba(58,22,32,0.22),
    inset 0 -2px 5px rgba(245,239,227,0.85),
    0 1px 0 rgba(245,239,227,0.9);
  background:
    radial-gradient(circle at 38% 34%, rgba(124,34,48,0.05), rgba(124,34,48,0) 62%),
    radial-gradient(circle at 62% 70%, rgba(176,137,72,0.05), rgba(176,137,72,0) 60%);
}
.seal-svg {
  width: 100%; height: 100%;
  /* the ink itself sits slightly proud of the well */
  filter: drop-shadow(0 1px 0 rgba(245,239,227,0.7));
}
.bigseal-ring-1 { fill: none; stroke: var(--wine); stroke-width: 2.4; }
.bigseal-ring-2 { fill: none; stroke: var(--wine); stroke-width: 1; opacity: .6; }
.bigseal-ring-3 { fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .85; }
.bigseal-arc {
  font-family: var(--sans); font-size: 11.5px; font-weight: 600;
  letter-spacing: 3.4px; fill: var(--wine);
}
.bigseal-etv {
  font-family: var(--serif); font-weight: 600; font-size: 46px;
  letter-spacing: 2px; fill: var(--wine);
}
.bigseal-num {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  letter-spacing: 5px; fill: var(--ink);
}
.bigseal-rule { stroke: var(--gold); stroke-width: 1.6; }
.bigseal-star { font-size: 15px; fill: var(--gold); }
.seal-caption {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leaf);
  transform: rotate(0);
  text-align: center;
}
@keyframes sealStrike {
  0%   { opacity: 0; transform: rotate(-4deg) scale(1.16); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}

.hero-foot {
  position: absolute;
  left: clamp(40px, 10vw, 132px);
  right: clamp(30px, 6vw, 70px);
  bottom: clamp(28px, 4.5vh, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: .7;
  z-index: 2;
}
.hero-foot-coord, .hero-foot-reg { display: none; }
.hero-foot-scroll { position: relative; padding-bottom: 18px; margin: 0 auto; }
.hero-foot-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 13px;
  background: var(--wine);
  animation: scrollPulse 1.8s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--wine); color: var(--parchment); }
.btn--solid:hover { background: var(--wine-deep); transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--line:hover { background: var(--wine); color: var(--parchment); transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 15px; }

/* ============ ENTRY (shared section frame) ============ */
.entry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 11vw, 116px) var(--gut);
  border-top: 1px solid var(--line);
}
.entry-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 30px;
}
.entry-no {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 500;
  color: var(--wine);
  font-feature-settings: "lnum" 1;
}
.entry-tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--leaf);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  flex: 1;
}

.entry-h {
  font-size: clamp(2.1rem, 8vw, 4rem);
  color: var(--ink);
  margin-bottom: 26px;
}
.entry-intro {
  max-width: 56ch;
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  color: var(--ink-soft);
  margin: 0 0 36px;
}

/* preamble */
.entry--preamble { border-top: none; }
.preamble-lead {
  font-size: clamp(1.6rem, 6.2vw, 3rem);
  font-style: italic;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 30px;
  line-height: 1.12;
}
.preamble-lead { max-width: 26ch; }
.preamble-body p {
  max-width: 60ch;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.preamble-body p:last-child { margin-bottom: 0; }

/* valley */
.entry-cols { display: grid; gap: 38px; }
.entry-lede p {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.record { margin: 0; }
.record-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.record-row:first-child { border-top: 1px solid var(--line); }
.record dt {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}
.record dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--ink);
}

/* house ledger list */
.entry--house { background: linear-gradient(180deg, transparent, rgba(74,93,58,0.04)); }
.ledger-list { list-style: none; margin: 0; padding: 0; }
.ledger-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.ledger-item:last-child { border-bottom: 1px solid var(--line); }
.ledger-idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
  width: 1.4em;
}
.ledger-text h3 {
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  color: var(--ink);
  margin-bottom: 8px;
}
.ledger-text p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 54ch;
  font-size: clamp(.98rem, 2.4vw, 1.05rem);
}

/* table */
.entry--table {
  background: var(--wine-deep);
  max-width: none;
  color: var(--parchment);
  border-top: none;
}
.entry--table .entry-body { max-width: var(--maxw); margin: 0 auto; }
.entry--table .entry-tag { color: var(--gold-soft); border-color: rgba(245,239,227,0.2); }
.entry--table .entry-no { color: var(--gold); }
.table-grid { display: grid; gap: 40px; }
.table-copy .entry-h { color: var(--parchment); }
.table-copy p {
  color: rgba(245,239,227,0.82);
  max-width: 52ch;
  margin: 0 0 18px;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}
.table-list {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: start;
}
.table-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(245,239,227,0.16);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  color: var(--parchment);
}
.table-list li:first-child { border-top: 1px solid rgba(245,239,227,0.16); }
.tl-dot { color: var(--gold); font-size: .8em; flex: 0 0 auto; }

/* ============ ENQUIRE / CTA ============ */
.enquire {
  position: relative;
  text-align: center;
  padding: clamp(72px, 14vw, 150px) var(--gut);
  background:
    radial-gradient(90% 70% at 50% 30%, var(--parch-2), var(--parchment));
  overflow: hidden;
  isolation: isolate;
}
.enquire-seal {
  width: clamp(180px, 60vw, 360px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.07;
}
.enquire-seal svg { width: 100%; height: auto; }
.enquire-kicker {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 16px;
}
.enquire-h {
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  color: var(--ink);
  margin-bottom: 20px;
}
.enquire-sub {
  max-width: 50ch;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
}
.enquire-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.enquire-fine {
  margin: 34px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

/* ============ COLOPHON / FOOTER ============ */
.colophon {
  background: var(--ink);
  color: var(--parch-2);
  padding: clamp(56px, 10vw, 96px) var(--gut) 40px;
}
.colo-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}
.colo-block { min-width: 0; }
.colo-mark { display: block; width: 52px; height: 52px; margin-bottom: 16px; }
.colo-mark svg { display: block; width: 52px; height: 52px; }
/* recolour seal for dark footer */
.colophon .seal-ring-o { stroke: var(--gold-soft); }
.colophon .seal-ring-i { stroke: var(--gold-soft); opacity: .4; }
.colophon .seal-etv { fill: var(--parchment); }
.colophon .seal-num { fill: var(--gold-soft); }
.colophon .seal-rule { stroke: var(--gold); }

.colo-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--parchment);
  margin: 0 0 4px;
}
.colo-reg {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0;
}
.colo-h {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 14px;
  font-weight: 600;
}
.colo-block p {
  margin: 0 0 6px;
  color: rgba(245,239,227,0.78);
  font-size: 0.98rem;
}
.colo-block a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;            /* comfortable tap target on mobile */
  color: var(--parch-2);
  /* underline hugs the text (not the 44px box) so it reads as a proper link */
  text-decoration: underline;
  text-decoration-color: rgba(176,137,72,0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  line-height: 1.2;
  transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
.colo-block a:hover { color: var(--gold-soft); text-decoration-color: var(--gold-soft); }
/* the address/where lines are not links — keep them on their own line above the link rows */
.colo-block p:has(a) { margin-bottom: 0; }
.colo-lang, .colo-map { margin-top: 6px !important; font-style: italic; opacity: .85; }
.colo-lang { min-height: 0; }

.colo-rule {
  max-width: var(--maxw);
  margin: 44px auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176,137,72,0.5), transparent);
}
.colo-foot {
  max-width: var(--maxw);
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245,239,227,0.55);
}
.colo-sign { font-style: italic; color: var(--gold-soft); }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (min-width: 600px) {
  .entry-cols { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .record-row { grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: baseline; }
  .table-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
  .ledger-item { grid-template-columns: auto 1fr; gap: 24px; }
  .colo-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
  .colo-foot { flex-direction: row; justify-content: space-between; }
  .hero-foot-coord, .hero-foot-reg { display: block; }
  .hero-foot-scroll { margin: 0; }
}

@media (min-width: 880px) {
  .mast-nav { display: flex; align-items: center; gap: 26px; }
  .ledger-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .ledger-item { border-top: 1px solid var(--line); }
  .ledger-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }

  /* desktop: the entry holds the left of the folio, the struck seal owns the
     right — a real dialogue between the record and its stamp */
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(40px, 5vw, 80px);
    padding-left: clamp(8px, 5vw, 96px);
  }
  .hero-name { font-size: clamp(5.6rem, 11vw, 11rem); }
  .hero-stamp { justify-self: end; }
  .seal-press { width: clamp(280px, 30vw, 400px); }
}

/* very wide: keep the seal generous but not vast */
@media (min-width: 1500px) {
  .seal-press { width: 400px; }
}

/* ============ MOTION SAFETY ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .seal { opacity: 1; transform: rotate(-4deg); animation: none; }
}
