/* ════════════════════════════════════════════════════════════
   Studio Diseñá — Base system
   Tokens, reset, helpers, topbar, nav, buttons, section-head, footer.
   Extracted verbatim from the approved v1 homepage design.
   ════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --paper:     oklch(0.985 0 0);
  --paper-2:   oklch(0.955 0 0);
  --paper-3:   oklch(0.905 0 0);
  --ink:       oklch(0.155 0 0);
  --ink-soft:  oklch(0.32  0 0);
  --ink-mute:  oklch(0.52  0 0);
  --rule:      oklch(0.80  0 0);
  --rule-soft: oklch(0.88  0 0);
  --accent:    oklch(0.64  0.193 42);

  /* type */
  --serif:  "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:   "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 4.5vw, 84px);
  --gutter: clamp(16px, 2vw, 36px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; overflow: hidden;
  position: absolute; white-space: nowrap; width: 1px;
}

/* ── HELPERS ── */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.mono-sm { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.serif { font-family: var(--serif); font-weight: 300; }
.rule { height: 1px; background: var(--rule); width: 100%; }
.rule-soft { height: 1px; background: var(--rule-soft); width: 100%; }
.italic { font-style: italic; }

/* ============ TOP BAR ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad-x);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:8px; vertical-align:middle; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.topbar-mid { display: flex; gap: 28px; }
.topbar-mid span { display: inline-flex; align-items: center; }

/* ============ NAV ============ */
nav.primary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
nav.primary .left, nav.primary .right {
  display: flex; gap: 36px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
nav.primary .right { justify-content: flex-end; }
nav.primary a { transition: color .25s ease; }
nav.primary a:hover, nav.primary a.active,
nav.primary .current-menu-item > a { color: var(--accent); }
nav.primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* ── BRAND LOGO ──
   Supplied horizontal lockup (6251×1459 ≈ 4.28:1). Height is the control; width
   follows the aspect ratio, so the intrinsic width/height attrs never reserve a
   wrong box. Header art has an ink wordmark for paper; footer art is all white.

   48px is not arbitrary: nav.primary has 10px padding top and bottom, and the
   approved design's nav measures 68px. 10 + 48 + 10 = 68 — the lockup swap keeps
   the header exactly the height it was. */
.sd-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 100%;
  transition: opacity .25s ease;
}
.wordmark:hover .sd-logo { opacity: .72; }

.site-footer .sd-logo--footer { height: 44px; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  padding: 24px var(--pad-x);
  display: none; flex-direction: column; gap: 8px;
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer a {
  display: block; padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif); font-weight: 300; font-size: 28px;
  color: var(--ink);
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* ============ BUTTONS ============ */
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer; border: none;
  transition: all .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ============ DISPLAY TYPE (V2 scale) ============
   Used by the interior pages. The homepage composes its type inside its own
   blocks, so these classes never touch it. */
.h-xl {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 7.5vw, 120px); line-height: 0.96;
  letter-spacing: -0.015em; color: var(--ink); text-wrap: balance;
  margin: 0;
}
.h-xl em, .h-xl i { font-style: italic; color: var(--accent); font-weight: 300; }
.h-lg {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02;
  letter-spacing: -0.012em; color: var(--ink); text-wrap: balance;
  margin: 0;
}
.h-lg em, .h-lg i { font-style: italic; color: var(--accent); font-weight: 300; }
.h-md {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05;
  letter-spacing: -0.008em; color: var(--ink);
  margin: 0;
}
.h-md em, .h-md i { font-style: italic; color: var(--accent); font-weight: 400; }
.h-sm {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
.body-text { font-size: 16px; line-height: 1.75; color: var(--ink-soft); max-width: 64ch; }
.body-text p { margin: 0 0 1.2em; }
.body-text strong { color: var(--ink); font-weight: 500; }

.dropcap::first-letter {
  font-family: var(--serif); font-weight: 400;
  font-size: 5em; float: left; line-height: 0.86;
  margin: 8px 14px 0 0; color: var(--accent);
}

.pullquote {
  margin: clamp(32px, 4vw, 56px) 0;
  padding: clamp(20px, 3vw, 32px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2;
  color: var(--accent); text-wrap: balance;
  max-width: 28ch;
}

/* Page eyebrow — the numbered rule used at the top of every interior page. */
.eyebrow { display: flex; gap: 14px; align-items: center; color: var(--ink-mute); }
.eyebrow .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; }
.eyebrow .line { flex: 0 0 64px; height: 1px; background: var(--ink-mute); }
.eyebrow .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }

/* V2's outline button. Kept as a modifier so the homepage's solid .btn-primary
   and .btn-ghost (verified against v1) stay untouched. */
.btn-outline {
  padding: 15px 28px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-link {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding: 0 0 4px;
  border-bottom: 1px solid var(--accent);
  display: inline-flex; gap: 10px; align-items: center;
  background: none; cursor: pointer; border-left: 0; border-right: 0; border-top: 0;
}
.btn-link .arrow { transition: transform .3s ease; display: inline-block; }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ============ SECTION HEAD ============ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(20px, 4vw, 80px);
  padding: clamp(72px, 9vw, 140px) var(--pad-x) clamp(40px, 5vw, 64px);
  align-items: end;
}
.section-head .left {
  display: flex; flex-direction: column; gap: 18px;
  color: var(--ink-mute);
}
.section-head .left .index {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
}
.section-head .left .stamp {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.6vw, 72px);
  line-height: 1.03; letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-head p.lead {
  margin: 18px 0 0;
  font-size: 16.5px; color: var(--ink-soft);
  max-width: 56ch;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 6vw, 96px) var(--pad-x) 28px;
}
.site-footer .top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 56px);
  padding-bottom: clamp(40px, 5vw, 72px);
  border-bottom: 1px solid oklch(0.30 0 0);
}
.site-footer .brand {
  display: inline-flex; align-items: center;
  color: var(--paper);
}
.site-footer .brand:hover .sd-logo { opacity: .72; }
.site-footer .brand-sub {
  margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: oklch(0.62 0 0);
}
.site-footer h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: oklch(0.72 0.16 42);
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a {
  font-family: var(--sans); font-size: 14.5px;
  color: oklch(0.80 0 0);
  transition: color .2s ease;
}
.site-footer ul a:hover { color: var(--paper); }
.site-footer .contact .line { font-size: 15px; color: var(--paper); }
.site-footer .contact .line + .line { margin-top: 8px; }
.site-footer .contact .line a { color: inherit; transition: color .2s ease; }
.site-footer .contact .line a:hover { color: var(--accent); }
.site-footer .contact .line.address { margin-top: 16px; font-size: 13px; color: oklch(0.78 0 0); }
.site-footer .bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: oklch(0.52 0 0);
}
.site-footer .bottom a:hover { color: var(--paper); }
.site-footer .bottom .legal { display: flex; gap: 28px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s cubic-bezier(.16,.84,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  /* Source v1 hides the left links here and shrinks the right ones. We keep that,
     and add the drawer toggle so the hidden links stay reachable on touch. */
  nav.primary { grid-template-columns: auto 1fr auto; }
  nav.primary .left { display: none; }
  nav.primary .right { font-size: 10.5px; gap: 22px; }
  nav.primary .right ul { gap: 22px; }
  .nav-toggle { display: inline-flex; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topbar-mid { display: none; }
  /* Scale by height, not font-size. 10 + 38 + 10 = 58, matching the source's
     58px nav at this breakpoint. */
  .sd-logo { height: 38px; }
  .site-footer .sd-logo--footer { height: 34px; }
  /* Below 600px the inline links + wordmark + toggle no longer fit on one row and
     push the document wider than the viewport. Everything lives in the drawer here. */
  nav.primary { grid-template-columns: 1fr auto; }
  nav.primary .right { display: none; }
  .site-footer .top { grid-template-columns: 1fr; }
}
