@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --stone: #F3EFE6;
  --stone-2: #E9E1D5;
  --stone-3: #F9F6F1;
  --ink: #0D1B2A;
  --ink-soft: #5C6670;
  --gold: #C8A56A;
  --gold-line: #C8A56A;
  --bordeaux: #E76B48;
  --bordeaux-light: #D35D3A;
  --cream-text: #F3EFE6;
  --line: rgba(13,27,42,0.1);
  --focus: rgba(231,107,72,0.4);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--stone);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: multiply;
}
@media (max-width: 640px) { body::before { opacity: 0.012; } }
a { color: inherit; }
.serif { font-family: 'Playfair Display', serif; }
.mono { font-family: 'Inter', sans-serif; }

/* Plumb — brand mark */
.plumb { display: inline-flex; flex-direction: column; align-items: center; }
.plumb .string { width: 1px; height: 18px; background: var(--gold-line); }
.plumb .weight { width: 5px; height: 5px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); margin-top: -1px; }
.breath { height: 42vh; min-height: 280px; display: flex; align-items: center; justify-content: center; }

.plumb-divider { display: flex; justify-content: center; padding: 70px 0 0; }
.plumb-divider .string { height: 60px; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: calc(24px + env(safe-area-inset-top));
  padding-bottom: 24px;
  padding-left: calc(56px + env(safe-area-inset-left));
  padding-right: calc(56px + env(safe-area-inset-right));
  background: rgba(243,239,230,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}
body { padding-top: calc(164px + env(safe-area-inset-top)); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 116px; width: auto; display: block; }
.seal-badge { display: inline-block; margin-bottom: 28px; }
.seal-badge img { width: 112px; height: 112px; display: block; }
.page-tag {
  font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}
.header-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.06em; }
.lang-switch a { color: var(--ink-soft); text-decoration: none; padding: 4px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.lang-switch a.active { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold-line); }
.lang-switch a:hover:not(.active) { color: var(--ink); }
.lang-switch .sep { color: var(--line); }
.menu-toggle {
  background: none; border: none; color: var(--ink);
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.04em;
  cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  min-height: 44px; min-width: 44px;
}
.menu-toggle .bars { display: flex; flex-direction: column; gap: 3px; }
.menu-toggle .bars span { width: 16px; height: 1px; background: var(--gold); display: block; }

.menu-panel {
  position: fixed; inset: 0; z-index: 100; background: var(--stone);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  padding: calc(200px + env(safe-area-inset-top)) calc(15% + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(15% + env(safe-area-inset-left));
  overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.menu-panel.open { opacity: 1; pointer-events: all; }
.menu-item {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 27px; color: var(--ink);
  transition: color 0.3s ease;
}
.menu-item .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--gold); }
.menu-item:hover { color: var(--ink); }
.menu-item.current { color: var(--ink); }
.menu-item.current .dot { background: var(--ink); box-shadow: 0 0 0 3px rgba(13,27,42,0.12); }
.menu-close {
  position: absolute; top: calc(40px + env(safe-area-inset-top)); right: calc(56px + env(safe-area-inset-right)); background: none; border: none;
  color: var(--ink); font-size: 13px; cursor: pointer;
  min-height: 44px; min-width: 44px;
}

/* Hero (used on Home + as page-opener elsewhere) */
.hero { position: relative; padding: 100px 56px 30px; max-width: 1000px; margin: 0 auto; }
.hero-mark { margin-bottom: 34px; }
.hero-eyebrow {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 34px;
}
.hero h1 {
  font-family: 'Playfair Display', serif; font-weight: 400; font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.22; letter-spacing: -0.005em; max-width: 760px; color: var(--ink);
}
.hero h2 {
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400;
  font-size: clamp(19px, 2.2vw, 25px); color: var(--ink-soft);
  margin-top: 26px; max-width: 560px;
}
.hero h2.emphasis { color: var(--bordeaux); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: rise 1s ease forwards; }
@media (prefers-reduced-motion: reduce) { .animate-in { animation: none; opacity: 1; } }

/* Animation delay scale — named by millisecond value, reused across pages */
.delay-100 { animation-delay: 0.1s; }
.delay-250 { animation-delay: 0.25s; }
.delay-300 { animation-delay: 0.3s; }
.delay-600 { animation-delay: 0.6s; }
.delay-1600 { animation-delay: 1.6s; }

/* Spacing utilities — replace inline padding/margin/height set once per composition */
.plumb-divider.lg { padding-top: 100px; }
.plumb-divider.lg .string { height: 70px; }
.photo-breathe { margin-top: 60px; }
.beat-tight-bottom { padding-bottom: 100px; }

/* Real photography — container ratio matches source exactly, so object-fit:cover never crops */
.photo-real { margin: 80px 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.photo-real img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intimate-photo .frame-real { aspect-ratio: 3 / 2; overflow: hidden; background: none; }
.intimate-photo .frame-real img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photography placeholders */
.photo-block {
  margin: 80px 0; height: 58vh; min-height: 380px; max-height: 600px;
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, rgba(255,253,248,0.6) 0%, transparent 50%), linear-gradient(200deg, #FBFAF6 0%, #EFEBE0 45%, #DBD4C2 100%);
}
.photo-block::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(56,53,46,0.08) 0%, transparent 40%); }
.photo-block .beam { position: absolute; top: -10%; left: 22%; width: 18%; height: 130%; background: rgba(255,255,252,0.55); transform: skewX(-12deg); filter: blur(3px); }
.photo-caption { position: absolute; bottom: 28px; left: 56px; z-index: 2; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.06em; color: var(--ink); opacity: 0.6; }

.intimate-photo { max-width: 1100px; margin: 0 auto 40px; padding: 0 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.intimate-photo .frame { height: 360px; position: relative; overflow: hidden; background: linear-gradient(160deg, #FBFAF6 0%, #EFEAE0 55%, #DCD3BE 100%); }
.intimate-photo .frame::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(255,255,252,0.7), transparent 65%); }
.intimate-photo .frame .cap { position: absolute; bottom: 20px; left: 24px; font-family: 'Inter', sans-serif; font-size: 10px; color: var(--ink); opacity: 0.55; }
.intimate-photo .text { padding-bottom: 8px; }
.intimate-photo .text p { font-family: 'Playfair Display', serif; font-size: 19px; font-style: italic; line-height: 1.55; color: var(--ink-soft); }

/* Single-beat / pull-quote sections */
.beat { padding: 30px 56px 170px; text-align: center; }
.beat-inner { max-width: 600px; margin: 0 auto; }
.beat p { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 400; line-height: 1.55; color: var(--ink); }
.beat a.more { display: inline-block; margin-top: 38px; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--ink-soft); padding-bottom: 3px; transition: color 0.3s ease, border-color 0.3s ease; }
.beat a.more:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

.method-strip { padding: 30px 56px 170px; max-width: 760px; margin: 0 auto; text-align: center; }
.method-strip .label { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 24px; }
.method-strip h3 { font-family: 'Playfair Display', serif; font-size: 29px; font-weight: 400; margin-bottom: 20px; color: var(--ink); }
.method-strip p { color: var(--ink-soft); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* Editorial article layout — Filosofia, Método, Empresa */
.article { max-width: 680px; margin: 0 auto; padding: 40px 56px 160px; }
.article p {
  font-family: 'Playfair Display', serif; font-size: 21px; line-height: 1.75; color: var(--ink);
  margin-bottom: 30px;
}
.article .movement-label {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 70px 0 24px;
}
.article .movement-label:first-of-type { margin-top: 0; }

/* Atlas / Contextos */
.atlas { background: var(--stone-2); padding: 30px 56px 150px; }
.atlas-inner { max-width: 900px; margin: 0 auto; }
.atlas-header { text-align: center; max-width: 580px; margin: 0 auto 70px; }
.atlas-eyebrow { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.atlas-header h2 { font-family: 'Playfair Display', serif; font-weight: 400; font-size: 29px; line-height: 1.4; color: var(--ink); }
.chart-index { max-width: 620px; margin: 0 auto; }
.chart-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.chart-row .name-group { display: flex; align-items: center; gap: 14px; }
.chart-row .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.chart-row .name { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; color: var(--ink); }
.chart-row .tag { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--ink-soft); }
.atlas-close { max-width: 600px; margin: 90px auto 0; text-align: center; }
.atlas-close p { font-family: 'Playfair Display', serif; font-size: 19px; line-height: 1.7; color: var(--ink-soft); }

/* Territory chapter pages */
.territory-signature { max-width: 620px; margin: 80px auto 0; text-align: center; padding: 0 56px; }
.territory-signature p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; line-height: 1.5; color: var(--ink); }
.territory-nav { display: flex; justify-content: space-between; max-width: 900px; margin: 0 auto; padding: 50px 56px 0; font-family: 'Inter', sans-serif; font-size: 13px; }
.territory-nav a { color: var(--ink-soft); text-decoration: none; transition: color 0.3s ease; }
.territory-nav a:hover { color: var(--bordeaux); }

/* Pillars grid — Decision Room */
.pillars { padding: 30px 56px 150px; }
.pillars-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pillar { padding: 0 40px; border-left: 1px solid var(--line); }
.pillar:first-child, .pillar:nth-child(4) { border-left: none; padding-left: 0; }
.pillar-num { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--ink-soft); margin-bottom: 16px; }
.pillar h4 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 19px; margin-bottom: 12px; color: var(--ink); }
.pillar p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

/* What changes signature block */
.what-changes { background: var(--stone-3); color: var(--ink); padding: 90px 56px; max-width: 100%; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.what-changes .label { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 20px; }
.what-changes p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 24px; max-width: 540px; margin: 0 auto; color: var(--ink); }

/* Advisory situations */
.situations { max-width: 760px; margin: 0 auto; padding: 30px 56px 100px; }
.situation { padding: 36px 0; border-bottom: 1px solid var(--line); }
.situation:last-child { border-bottom: none; }
.situation h4 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 20px; margin-bottom: 14px; color: var(--ink); }
.situation p { font-family: 'Inter', sans-serif; font-size: 16px; color: var(--ink-soft); line-height: 1.75; font-weight: 300; }

/* Journey phases */
.journey { max-width: 700px; margin: 0 auto; padding: 30px 56px 140px; }
.phase { padding: 40px 0; border-bottom: 1px dashed var(--line); }
.phase:last-child { border-bottom: none; }
.phase-label { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.phase h4 { font-family: 'Playfair Display', serif; font-size: 23px; font-weight: 400; margin-bottom: 16px; color: var(--ink); }
.phase p { font-family: 'Playfair Display', serif; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }

/* Practice beats — how it works */
.practice { max-width: 700px; margin: 0 auto; padding: 30px 56px 140px; }
.practice-item { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 42px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.practice-item:last-child { border-bottom: none; }
.practice-item .name { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; color: var(--ink); }
.practice-item p { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink-soft); font-weight: 300; }

/* FAQ */
.faq { max-width: 680px; margin: 0 auto; padding: 30px 56px 140px; }
.faq-item { padding: 36px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item .q { font-family: 'Playfair Display', serif; font-style: italic; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.faq-item .a { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink-soft); font-weight: 300; }

/* Contact form */
.contact-block { max-width: 560px; margin: 0 auto; padding: 30px 56px 160px; text-align: center; }
.contact-block .lede { font-family: 'Playfair Display', serif; font-size: 24px; line-height: 1.55; color: var(--ink); margin-bottom: 60px; }
.form-field { text-align: left; margin-bottom: 26px; }
.form-field label { display: block; font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--ink-soft);
  font-family: 'Playfair Display', serif; font-size: 18px; color: var(--ink); padding: 8px 0; font-style: italic;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--bordeaux); }
.form-submit {
  display: inline-block; background: var(--bordeaux); color: var(--cream-text); border: none;
  padding: 16px 40px; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.06em;
  cursor: pointer; margin-top: 20px; transition: background 0.3s ease;
}
.form-submit:hover { background: var(--bordeaux-light); }
.contact-alt { margin-top: 50px; font-family: 'Inter', sans-serif; font-size: 14px; color: var(--ink-soft); }
.contact-alt a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink-soft); transition: color 0.3s ease, border-color 0.3s ease; }
.contact-alt a:hover { color: var(--bordeaux); border-color: var(--bordeaux); }

/* Footer */
footer { padding: 30px 56px 70px; text-align: center; }
footer p.cta { font-family: 'Playfair Display', serif; font-size: 27px; font-weight: 400; max-width: 520px; margin: 0 auto 40px; line-height: 1.45; color: var(--ink); }
.cta-button {
  display: inline-block; background: var(--bordeaux); color: var(--cream-text); text-decoration: none;
  padding: 16px 38px; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.04em;
  transition: background 0.3s ease;
}
.cta-button:hover { background: var(--bordeaux-light); }
.foot-meta {
  margin-top: 90px; padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 1100px; margin-left: auto; margin-right: auto;
  display: flex; justify-content: space-between;
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-soft);
}

/* Focus states — visible, elegant, never suppressed */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}
.chart-row:focus-visible, .menu-item:focus-visible, .territory-nav a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.cta-button:focus-visible, .form-submit:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus);
}

/* Mobile — deliberate, not just responsive */
@media (max-width: 860px) {
  header { padding: 26px 24px; padding-top: calc(26px + env(safe-area-inset-top)); padding-left: calc(24px + env(safe-area-inset-left)); padding-right: calc(24px + env(safe-area-inset-right)); }
  body { padding-top: calc(140px + env(safe-area-inset-top)); }
  .logo img { height: 88px; }
  .menu-panel { padding: calc(170px + env(safe-area-inset-top)) 8% calc(50px + env(safe-area-inset-bottom)) 8%; overflow-y: auto; }
  .menu-item { font-size: 22px; padding: 12px 0; gap: 12px; }
  .menu-close { top: 26px; right: 24px; }

  .hero { padding: 70px 24px 20px; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .hero h2 { font-size: clamp(16px, 4vw, 19px); margin-top: 20px; }
  .hero-eyebrow { margin-bottom: 24px; font-size: 11px; }

  .article, .beat, .method-strip, .journey, .practice, .faq, .situations,
  .atlas, .atlas-inner, .pillars, .contact-block, .territory-signature { padding-left: 24px; padding-right: 24px; }
  .article p { font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
  .article .movement-label { margin: 46px 0 18px; }
  .beat p { font-size: 20px; }
  .territory-signature p { font-size: 20px; }
  .atlas-header h2, .method-strip h3 { font-size: 23px; }

  .beat { padding-bottom: 100px; }
  .method-strip { padding-bottom: 100px; }
  .journey, .practice, .faq, .situations, .atlas, .pillars, .contact-block, .article { padding-bottom: 90px; }
  .breath { height: 26vh; min-height: 160px; }
  .plumb-divider { padding-top: 50px; }

  .photo-block { height: 42vh; min-height: 260px; margin: 50px 0; }
  .photo-caption { left: 24px; bottom: 20px; font-size: 10px; }
  .intimate-photo { padding: 0 24px; gap: 20px; margin-bottom: 20px; }
  .intimate-photo .frame { height: 220px; }
  .intimate-photo .text p { font-size: 16px; }

  .situation, .phase, .faq-item { padding: 26px 0; }
  .practice-item { padding: 30px 0; }
  .chart-row { padding: 18px 0; flex-wrap: wrap; row-gap: 4px; }
  .chart-row .tag { font-size: 12px; }

  .contact-block .lede { font-size: 20px; margin-bottom: 40px; }
  .form-field { margin-bottom: 28px !important; }
  .form-field input, .form-field textarea { font-size: 16px; }

  footer { padding: 60px 24px 50px; }
  footer p.cta { font-size: 21px; }
  .foot-meta { margin-top: 60px; }

  .territory-nav {
    flex-direction: column; align-items: center; gap: 18px;
    padding: 40px 24px 0; text-align: center;
  }
  .territory-nav a { padding: 6px 0; font-size: 14px; }

  .intimate-photo, .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-left: none; padding-left: 0; padding-top: 30px; border-top: 1px solid var(--line); padding-right: 0; }
  .pillar:first-child { border-top: none; padding-top: 0; }
  .practice-item { grid-template-columns: 1fr; gap: 8px; }
  .foot-meta { flex-direction: column; gap: 10px; text-align: center; }
}

/* Page-level rhythm variation — same system, different breathing */
.page-home .hero, .page-commercial .hero { padding-top: 120px; }
.page-essay .hero { padding-top: 80px; padding-bottom: 6px; }
.page-essay .article { max-width: 640px; }
.page-essay .article p { line-height: 1.8; }
.page-atlas .hero { padding-top: 90px; }
.page-atlas .atlas { padding-top: 20px; }
.page-room .hero { padding-top: 90px; }
.page-room .pillars { padding-top: 10px; }
.page-contact .hero { padding-top: 100px; }

@media (max-width: 860px) {
  .page-home .hero, .page-commercial .hero { padding-top: 70px; }
  .page-essay .hero { padding-top: 56px; }
  .page-atlas .hero, .page-room .hero, .page-contact .hero { padding-top: 60px; }
}

/* Timeline — horizontal, for Briefing chronology */
.timeline { position: relative; padding: 50px 0 30px; }
.timeline-line { position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline-track { display: flex; justify-content: space-between; position: relative; gap: 12px; }
.timeline-node { flex: 1; text-align: left; position: relative; }
.timeline-node .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-bottom: 18px; position: relative; z-index: 2; border: 2px solid var(--stone); }
.timeline-node .year { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--gold); margin-bottom: 10px; letter-spacing: 0.02em; }
.timeline-node .title { font-family: 'Playfair Display', serif; font-style: italic; font-size: 15px; color: var(--ink); margin-bottom: 8px; line-height: 1.35; }
.timeline-node .desc { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-soft); line-height: 1.6; font-weight: 300; }
.timeline-node.emphasis .dot { background: var(--gold); width: 10px; height: 10px; }
.timeline-node.emphasis .year { color: var(--gold); }

@media (max-width: 860px) {
  .timeline-line { display: none; }
  .timeline-track { flex-direction: column; gap: 0; }
  .timeline-node { display: grid; grid-template-columns: 20px 1fr; gap: 16px; padding-bottom: 30px; position: relative; }
  .timeline-node::before { content: ''; position: absolute; left: 3px; top: 20px; bottom: -6px; width: 1px; background: var(--line); }
  .timeline-node:last-child::before { display: none; }
  .timeline-node:last-child { padding-bottom: 0; }
  .timeline-node .dot { margin-bottom: 0; margin-top: 4px; }
}

/* Structured reference layout — Briefings */
.brief-box { background: var(--stone-2); padding: 32px 36px; margin: 40px 0; }
.brief-box h4 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 17px; margin-bottom: 16px; color: var(--ink); }
.brief-box ul { list-style: none; padding: 0; }
.brief-box li { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink); line-height: 1.7; padding: 8px 0 8px 20px; position: relative; }
.brief-box li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.brief-fact { border-left: 2px solid var(--gold-line); padding-left: 22px; margin: 40px 0; }
.brief-fact .label { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }

/* Reference table — Briefings */
.brief-table-wrap { overflow-x: auto; margin: 40px 0; }
.brief-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; font-size: 14px; min-width: 640px; }
.brief-table th { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--ink); font-weight: 400; }
.brief-table td { padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); line-height: 1.65; font-weight: 300; }
.brief-table td:first-child { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink); white-space: nowrap; padding-right: 24px; }
.brief-table td.num { font-family: 'Inter', sans-serif; color: var(--gold); white-space: nowrap; }
.brief-table-note { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--ink-soft); font-style: italic; margin-top: -20px; margin-bottom: 40px; }

@media (max-width: 700px) {
  .brief-table-wrap { overflow-x: visible; }
  .brief-table { min-width: 0; width: 100%; }
  .brief-table thead { display: none; }
  .brief-table, .brief-table tbody, .brief-table tr, .brief-table td { display: block; width: 100%; }
  .brief-table tr {
    border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px; margin-bottom: 18px; background: var(--stone-2);
  }
  .brief-table td { padding: 0; border-bottom: none; white-space: normal; }
  .brief-table td:first-child {
    font-size: 18px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
    white-space: normal !important;
  }
  .brief-table td[data-label] { margin-top: 14px; }
  .brief-table td[data-label]::before {
    content: attr(data-label); display: block; font-family: 'Inter', sans-serif; font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; opacity: 0.8;
  }
  .brief-table td.num { color: var(--gold); white-space: normal !important; }
}

.brief-question { font-family: 'Playfair Display', serif; font-style: italic; font-size: 21px; color: var(--ink); text-align: center; margin: 36px 0; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--ink); color: var(--cream-text);
  padding-top: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  padding-left: calc(40px + env(safe-area-inset-left));
  padding-right: calc(40px + env(safe-area-inset-right));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-text { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.6; max-width: 620px; opacity: 0.9; }
.cookie-text a { color: var(--gold-line); border-bottom: 1px solid var(--gold-line); text-decoration: none; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-btn {
  font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: 0.04em;
  padding: 14px 24px; min-height: 44px; cursor: pointer; border: 1px solid rgba(243,239,230,0.5);
  background: transparent; color: var(--cream-text); transition: background 0.3s ease;
}
.cookie-btn:hover { background: rgba(243,239,230,0.12); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); padding-left: calc(22px + env(safe-area-inset-left)); padding-right: calc(22px + env(safe-area-inset-right)); }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

@media (max-width: 480px) {
  .hero-mark .string { height: 24px !important; }
  .plumb-divider .string { height: 40px !important; }
  header { padding: 22px 18px; padding-top: calc(22px + env(safe-area-inset-top)); padding-left: calc(18px + env(safe-area-inset-left)); padding-right: calc(18px + env(safe-area-inset-right)); }
  .header-right { gap: 14px; }
  .lang-switch { font-size: 11px; gap: 4px; }
  body { padding-top: calc(100px + env(safe-area-inset-top)); }
  .logo img { height: 56px; }
}

@media (max-width: 360px) {
  .menu-label { display: none; }
  .lang-switch { font-size: 10px; gap: 3px; }
  .header-right { gap: 10px; }
}
