:root {
  /* brand (brand/build_wordmarks.py): navy and gold from the engraved wordmark */
  --navy: #0A1D3F;
  --gold: #A88B5A;           /* rules and ornament only: 2.9:1 on paper, too light for text */
  --gold-deep: #7A5E33;      /* gold text on paper, 5.5:1; 4.9:1 on paper-2 */
  --gold-light: #CDB27F;     /* gold text on navy, 7.4:1 */
  /* surfaces */
  --paper: #F3F3EF;
  --paper-2: #E8E8E1;
  --ink: var(--navy);
  --ink-2: #061531;
  --on-paper: #0A1D3F;
  --on-paper-2: #4A5874;     /* 6.4:1 on paper */
  --on-ink: #ECEEEF;
  --on-ink-2: #A8B8D8;       /* navy-tinted, 8.2:1 on navy */
  --hair: rgba(10, 29, 63, .14);
  --hair-ink: rgba(236, 238, 239, .16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 72px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--gold) var(--ink-2); } /* off-screen animation states must never widen the page on phones */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--on-paper); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--gold); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
h1, h2, h3, .city__coord, .contact__info dd, .city__clock time { font-variant-numeric: lining-nums tabular-nums; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
[data-theme="ink"] :focus-visible { outline-color: var(--gold-light); }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }

/* paper grain: makes flat color feel printed */
.grain { position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ── nav ─────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); color: var(--on-paper); transition: color .4s ease, background-color .4s ease; }
.nav[data-on="ink"] { color: var(--on-ink); }
.nav.is-solid { background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--hair); }
.nav.is-solid[data-on="ink"] { background: color-mix(in srgb, var(--ink) 94%, transparent); box-shadow: 0 1px 0 var(--hair-ink); }
.nav__brand { display: grid; padding: 10px 0; }
.nav__logo { grid-area: 1 / 1; width: clamp(132px, 11vw, 160px); height: auto; transition: opacity .4s ease; }
.nav__logo--ink, .nav[data-on="ink"] .nav__logo--paper { opacity: 0; }
.nav[data-on="ink"] .nav__logo--ink { opacity: 1; }
.nav__links { display: flex; gap: 34px; }
.nav__links a, .nav__cta { font: 500 13px/1 var(--sans); letter-spacing: .08em; text-decoration: none; padding: 14px 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.nav__end { display: flex; align-items: center; gap: 18px; }
.lang { background: none; border: 0; color: inherit; font: 500 12px/1 var(--sans); letter-spacing: .1em; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; }
.lang span { opacity: .55; transition: opacity .2s ease; }
.lang .is-active { opacity: 1; }
.nav__cta { border: 1px solid currentColor; padding: 14px 22px; border-radius: 99px; transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.nav__cta:active { transform: scale(.97); }

/* ── I. hero ─────────────────────────── */
.hero { position: relative; background: var(--ink); color: var(--on-ink); }
.hero__pin { position: relative; height: 100svh; min-height: 600px; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: grayscale(1) contrast(1.1) brightness(.92); }
/* navy veil: darkest where the copy sits; the color blend gives the B&W footage the brand's navy */
.hero__veil { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(6, 21, 49, .88) 0%, rgba(6, 21, 49, .35) 42%, rgba(6, 21, 49, .12) 100%),
    linear-gradient(90deg, rgba(6, 21, 49, .82) 0%, rgba(6, 21, 49, .45) 40%, rgba(6, 21, 49, 0) 72%); }
.hero__veil::after { content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: color; opacity: .55; }

.hero__copy { position: absolute; left: var(--gutter); bottom: 13svh; z-index: 3; max-width: min(58vw, 880px); }
.hero__title { font-size: clamp(56px, 7.4vw, 6rem); font-weight: 400; line-height: .95; letter-spacing: -.03em; color: var(--on-ink); }
.hero__line { display: block; white-space: nowrap; }
.hero__line em { color: var(--gold-light); }
.hero__rule { display: block; width: clamp(72px, 9vw, 132px); height: 1px; margin-top: 34px; background: var(--gold); transform-origin: 0 50%; }
.hero__lead { margin-top: 26px; max-width: 42ch; font: 400 clamp(16px, 1.25vw, 19px)/1.6 var(--sans); color: var(--on-ink-2); }
.hero__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero__btn { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 28px; border-radius: 99px; background: var(--on-ink); color: var(--navy); font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background-color .2s ease, transform .16s var(--ease-out); }
.hero__btn .ico { transition: transform .25s var(--ease-out); }
.hero__btn:active { transform: scale(.97); }
.hero__link { font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: 16px 0; color: var(--on-ink); border-bottom: 1px solid var(--hair-ink); transition: border-color .2s ease; }

/* ── II. origin ──────────────────────── */
.lex { background: var(--ink); color: var(--on-ink); padding: clamp(110px, 15vw, 210px) 0; position: relative; overflow: hidden; }
.lex__word { font-size: clamp(84px, 19vw, 330px); font-weight: 300; font-style: italic; line-height: .82; letter-spacing: -.04em; padding-bottom: .1em; }
.lex__word span { color: var(--gold-light); font-style: normal; }
.lex__pron { margin-top: 28px; font: 400 17px/1.5 var(--sans); color: var(--on-ink-2); }
.lex__pron i { font-family: var(--serif); font-size: 22px; }
.lex__defs { list-style: none; padding: 0; margin: clamp(56px, 8vw, 110px) 0 0 auto; max-width: 820px; display: grid; gap: 40px; }
.lex__defs li { font: 400 clamp(24px, 2.4vw, 34px)/1.3 var(--serif); padding-left: 56px; position: relative; }
.lex__defs b { position: absolute; left: 0; font: 500 15px/2.2 var(--sans); color: var(--gold-light); }
.lex__defs i { color: var(--on-ink-2); }
.lex__latin { margin: 22px 0 10px; font-size: clamp(28px, 3vw, 44px); font-style: italic; line-height: 1.2; color: var(--on-ink); }
.lex__latin em { color: var(--gold-light); }
.lex__src { display: block; font: 400 14px/1.6 var(--sans); color: var(--on-ink-2); }
/* the vinculum itself: the bar that groups the terms, the same bar as the logo */
.lex__group { margin-top: clamp(90px, 13vw, 180px); text-align: center; }
.lex__bar { display: block; height: 3px; width: min(100%, 980px); margin: 0 auto 26px; background: var(--gold); transform-origin: 50% 50%; }
.motion.ready .lex__bar { transform: scaleX(0); }
.lex__terms { font: 300 clamp(36px, 6.4vw, 6rem)/1 var(--serif); letter-spacing: -.02em; }
.lex__coda { margin-top: 40px; text-align: center; font: 500 13px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--on-ink-2); }

/* ── III. practice index ─────────────── */
.index { padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 140px); background: var(--paper); }
.index__grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(32px, 6vw, 110px); }
.index__head { position: sticky; top: 22svh; align-self: start; }
.index__head h2 { font-size: clamp(44px, 4.6vw, 5rem); line-height: .95; letter-spacing: -.03em; }
.index__head h2 em { color: var(--gold-deep); }
.index__list { list-style: none; margin: 0; padding: 0; }
.ix { border-top: 1px solid var(--hair); padding: clamp(36px, 5vw, 60px) 0; transition: opacity .4s ease; }
.ix:first-child { border-top: 0; padding-top: 0; }
.motion.ready .ix { opacity: .32; }
.motion.ready .ix.is-active { opacity: 1; }
.ix h3 { font-size: clamp(44px, 5.4vw, 88px); line-height: .98; letter-spacing: -.03em; }
.ix p { margin-top: 18px; max-width: 46ch; color: var(--on-paper-2); font-size: 17px; }
.ix .ix__tags { font: 500 14px/1.7 var(--sans); letter-spacing: .02em; color: var(--gold-deep); }

/* ── IV. manifesto ───────────────────── */
.manifesto { background: var(--ink); color: var(--on-ink); }
.manifesto__pin { min-height: 100svh; display: flex; align-items: center; padding: 120px 0; }
.manifesto__pin .wrap { width: 100%; }
.manifesto__text { font: 300 clamp(44px, 6.8vw, 6rem)/1.06 var(--serif); letter-spacing: -.02em; max-width: 17ch; }
.manifesto__text .w { opacity: .16; transition: opacity .25s linear; }
.manifesto__text .w.on { opacity: 1; }
.manifesto__sign { margin-top: 56px; width: clamp(180px, 18vw, 260px); height: auto; }

/* ── V. the deed ─────────────────────── */
.deed-section { overflow: clip; background: var(--ink); padding: 40px var(--gutter) clamp(120px, 14vw, 200px); }
.deed { position: relative; max-width: 980px; margin: 0 auto; background: var(--paper); color: var(--on-paper); padding: clamp(36px, 7vw, 104px) clamp(24px, 7vw, 110px) clamp(40px, 6vw, 90px); box-shadow: 0 40px 120px -20px rgba(3, 12, 22, .6); }
.deed::before { /* ruled margin, like legal paper */
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(12px, 3.4vw, 54px); width: 1px; background: var(--gold); opacity: .55; }
.deed__ref { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-paper-2); border-bottom: 1px solid var(--hair); padding-bottom: 18px; }
.deed__head h2 { margin-top: clamp(36px, 5vw, 64px); font-size: clamp(54px, 7.4vw, 6rem); letter-spacing: -.03em; line-height: .92; }
.deed__parties { margin-top: 36px; font: 400 clamp(20px, 1.9vw, 26px)/1.45 var(--serif); max-width: 40ch; }
.deed__parties b { font-weight: 600; letter-spacing: .04em; }
.deed__clauses { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; counter-reset: c; }
.deed__clauses li { display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; padding: 26px 0; border-top: 1px solid var(--hair); counter-increment: c; }
.deed__clauses li::before { content: counter(c, upper-roman) "."; font: italic 500 22px/1.15 var(--serif); color: var(--gold-deep); grid-row: span 2; }
.deed__clauses h3 { font: 500 13px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.deed__clauses p { margin-top: 8px; font: 400 clamp(20px, 1.9vw, 25px)/1.4 var(--serif); max-width: 46ch; }
.deed__sign { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: end; }
.sig { position: relative; }
.sig__line { border-bottom: 1px solid var(--on-paper); padding: 0 0 12px; min-height: 56px; display: flex; align-items: flex-end; gap: .4em; font: italic 400 clamp(24px, 2.4vw, 34px)/1 var(--serif); text-decoration: none; }
.sig__line--cta { color: var(--gold-deep); border-color: var(--gold); }
.sig__line--cta .ico { transition: transform .25s var(--ease-out); }
.sig__who { margin-top: 12px; font: 500 12px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-paper-2); }
.seal { position: absolute; right: -14px; bottom: 92px; width: clamp(120px, 13vw, 170px); height: auto; transform: rotate(-9deg); mix-blend-mode: multiply; pointer-events: none; }

/* ── VI. Caracas ─────────────────────── */
.city { background: var(--paper-2); padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 9vw, 120px); overflow: hidden; position: relative; }
.city .wrap { position: relative; }
.city__coord { font: 400 clamp(72px, 15vw, 270px)/.9 var(--sans); letter-spacing: -.06em; white-space: nowrap; }
.city__coord--b { text-align: right; color: var(--gold-deep); }
.city__foot { margin-top: clamp(48px, 7vw, 100px); padding-top: 28px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.city__text { font: 400 clamp(24px, 2.4vw, 34px)/1.3 var(--serif); max-width: 26ch; }
.city__clock { display: grid; gap: 6px; text-align: right; font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-paper-2); }
.city__clock time { font: 400 clamp(32px, 3.2vw, 48px)/1 var(--sans); letter-spacing: -.02em; color: var(--on-paper); }

/* ── VII. contact ────────────────────── */
.contact { background: var(--ink); color: var(--on-ink); padding: clamp(110px, 14vw, 200px) 0 clamp(90px, 10vw, 140px); }
.contact__title { font-size: clamp(58px, 8vw, 6rem); letter-spacing: -.03em; line-height: .92; }
.contact__title em { color: var(--gold-light); }
.letter { margin-top: clamp(56px, 7vw, 96px); max-width: 1180px; font: 300 clamp(28px, 3.4vw, 52px)/1.5 var(--serif); }
.blank { display: inline-block; position: relative; vertical-align: baseline; }
.blank input, .blank select, .letter textarea { font: italic 400 1em/1.2 var(--serif); color: var(--gold-light); background: transparent; border: 0; border-bottom: 1px solid var(--hair-ink); border-radius: 0; padding: 0 4px 2px; transition: border-color .2s ease; }
.blank input { width: 9.5em; }
.blank input[type="email"] { width: 11em; }
.blank select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.1em; }
.blank--select::after { content: ""; position: absolute; right: 2px; top: 50%; width: .42em; height: .42em; transform: translateY(-50%); background: var(--on-ink-2); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.blank select option { background: var(--ink); color: var(--on-ink); font: 400 18px var(--sans); }
.letter textarea { display: block; width: 100%; margin-top: 16px; resize: vertical; min-height: 2.6em; }
.blank input::placeholder, .letter textarea::placeholder { color: var(--on-ink-2); opacity: 1; }
.blank input:focus, .blank select:focus, .letter textarea:focus { outline: none; border-color: var(--gold-light); }
.letter [aria-invalid="true"] { border-color: #F2A8A0; }
.letter__err { min-height: 1.6em; margin-top: 12px; font: 400 15px/1.6 var(--sans); color: #F2A8A0; }
.letter__end { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.send { position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 38px; border: 1px solid var(--gold); border-radius: 99px; background: transparent; color: var(--on-ink); font: 500 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), transform .16s var(--ease-out); }
.send::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-light); transform: translateY(101%); transition: transform .35s var(--ease-out); }
.send .ico { transition: transform .25s var(--ease-out); }
.send:active { transform: scale(.97); }
.letter__note { font: 400 13px/1.5 var(--sans); color: var(--on-ink-2); max-width: 36ch; }
.contact__info { margin: clamp(80px, 10vw, 130px) 0 0; display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 28px 40px; border-top: 1px solid var(--hair-ink); padding-top: 30px; }
.contact__info dt { font: 500 11px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--on-ink-2); }
.contact__info dd { margin: 6px 0 0; font: 400 17px/1.4 var(--sans); }
.contact__info a { text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }

/* ── footer ──────────────────────────── */
.footer { background: var(--ink-2); color: var(--on-ink-2); overflow: hidden; }
.footer__mark { width: min(78vw, 980px); height: auto; margin: clamp(80px, 10vw, 140px) auto clamp(56px, 7vw, 96px); }
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--hair-ink); font: 400 13px/1.5 var(--sans); letter-spacing: .08em; }
.footer__row em { font: italic 400 20px/1 var(--serif); color: var(--on-ink); letter-spacing: 0; }
.footer__row a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: color .2s ease; }

/* hover only where a pointer can hover: no sticky states after a tap */
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta:hover { background: var(--on-paper); color: var(--paper); }
  .nav[data-on="ink"] .nav__cta:hover { background: var(--on-ink); color: var(--ink); }
  .hero__btn:hover { background: #fff; }
  .hero__btn:hover .ico, .sig__line--cta:hover .ico, .send:hover .ico { transform: translateX(4px); }
  .hero__link:hover { border-color: var(--gold-light); }
  .send:hover { color: var(--navy); }
  .send:hover::before { transform: none; }
  .contact__info a:hover { background-size: 100% 1px; }
  .footer__row a:hover { color: var(--on-ink); }
}

/* reveals (hidden only once GSAP is confirmed running: html.ready) */
.motion.ready .rv { opacity: 0; transform: translateY(24px); }

/* ── responsive ──────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__copy { max-width: calc(100vw - 2 * var(--gutter)); }
  .index__grid { grid-template-columns: 1fr; }
  .index__head { position: static; }
  .motion.ready .ix { opacity: 1; }
  .deed__sign { grid-template-columns: 1fr; }
  .seal { position: relative; right: auto; bottom: auto; margin: 28px 0 0 auto; }
  .contact__info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav__logo { width: 124px; }
  .nav__cta { padding: 12px 18px; }
  .hero__title { font-size: 15vw; }
  .hero__copy { bottom: 6svh; }
  .hero__rule { margin-top: 24px; }
  .hero__lead { margin-top: 18px; }
  .hero__ctas { margin-top: 24px; }
  .lex__defs li { padding-left: 40px; }
  .deed__clauses li { grid-template-columns: 38px 1fr; }
  .deed__head h2 { font-size: 11vw; }
  .deed__clauses h3 { font-size: 12px; letter-spacing: .1em; }  /* keeps "Cuarta. Del acompañamiento." on one line */
  .letter { font-size: 28px; }
  .blank { display: flex; align-items: baseline; }
  .blank input, .blank input[type="email"], .blank select { flex: 1; width: auto; min-width: 0; }
  .contact__info { grid-template-columns: 1fr; }
  .city__clock { text-align: left; }
}
