@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --cream:   #FAF5EC;
  --cream2:  #F0E8D6;
  --card:    #EDE4D2;
  --terra:   #C4522A;
  --amber:   #D99530;
  --forest:  #3A7359;
  --dark:    #1A1108;
  --muted:   #7A6352;
  --white:   #FFFDF7;
  --nav-h:   70px;
  --r:       14px;
  --max:     1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── TYPE ── */
h1, h2, h3, .serif { font-family: 'Cormorant Garant', serif; }
h1 { font-size: clamp(3.2rem, 8vw, 7rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 700; line-height: 1.1;  letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; font-weight: 600; }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terra); display: block; margin-bottom: 0.6rem;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: color-mix(in oklab, var(--cream) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--dark) 8%, transparent);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px color-mix(in oklab, var(--dark) 8%, transparent); }

.nav-logo {
  font-family: 'Cormorant Garant', serif; font-weight: 700; font-size: 1.4rem;
  color: var(--dark); text-decoration: none; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 2px;
}
.nav-logo em { color: var(--terra); font-style: normal; }

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 99px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover  { color: var(--dark); }
.nav-links a.active { color: var(--terra); }

.nav-right { display: flex; gap: 0.5rem; align-items: center; }
.lang-btn {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.38rem 0.8rem; border-radius: 99px;
  border: 1.5px solid color-mix(in oklab, var(--dark) 20%, transparent);
  background: transparent; cursor: pointer; color: var(--muted); transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.lang-btn.active { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.lang-btn:not(.active):hover { color: var(--dark); border-color: var(--dark); }

/* ── PAGE WRAPPER ── */
.page-top { padding-top: var(--nav-h); }
.inner { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.85rem 1.9rem; border-radius: 99px; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: none; cursor: pointer;
}
.btn-primary {
  background: var(--terra); color: var(--white);
  box-shadow: 0 4px 20px color-mix(in oklab, var(--terra) 40%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px color-mix(in oklab, var(--terra) 50%, transparent); }
.btn-outline {
  border: 1.5px solid var(--dark); color: var(--dark); background: transparent;
}
.btn-outline:hover { background: var(--dark); color: var(--cream); }
.btn-outline-cream {
  border: 1.5px solid color-mix(in oklab, var(--cream) 30%, transparent);
  color: var(--cream); background: transparent;
}
.btn-outline-cream:hover { background: color-mix(in oklab, var(--cream) 15%, transparent); }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-top: 0.4rem; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: color-mix(in oklab, var(--cream) 45%, transparent);
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.82rem;
}
.ft-logo {
  font-family: 'Cormorant Garant', serif; font-weight: 700; font-size: 1.3rem;
  color: color-mix(in oklab, var(--cream) 70%, transparent); text-decoration: none;
}
.ft-logo em { color: var(--terra); font-style: normal; }
footer a { color: inherit; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cream); }
.ft-links { display: flex; gap: 1.5rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--dark); color: var(--cream);
  padding: 6rem clamp(1.5rem, 5vw, 4rem) 4rem;
  position: relative; overflow: hidden;
}
.page-hero .eyebrow { color: var(--amber); }
.page-hero h1 { color: var(--cream); margin-top: 0.5rem; }
.page-hero p {
  color: color-mix(in oklab, var(--cream) 65%, transparent);
  max-width: 520px; margin-top: 1.25rem; font-size: 1.05rem;
}
.page-hero-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.page-hero-deco.d1 {
  width: 400px; height: 400px; right: -80px; top: -100px;
  background: radial-gradient(circle, color-mix(in oklab, var(--terra) 20%, transparent) 0%, transparent 70%);
}
.page-hero-deco.d2 {
  width: 200px; height: 200px; left: 40%; bottom: -60px;
  background: radial-gradient(circle, color-mix(in oklab, var(--amber) 18%, transparent) 0%, transparent 70%);
}

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fi.vis { opacity: 1; transform: none; }
.fi-d1 { transition-delay: 0.1s; }
.fi-d2 { transition-delay: 0.2s; }
.fi-d3 { transition-delay: 0.3s; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
}

/* ── FOOTER (new pages use .footer-inner) ── */
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.ft-copy { font-size: 0.82rem; }

/* ── TOOL CHIP ── */
.tool-chip {
  font-size: 0.8rem; font-weight: 500;
  color: color-mix(in oklab, var(--cream) 75%, transparent);
  background: color-mix(in oklab, var(--cream) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--cream) 12%, transparent);
  border-radius: 99px; padding: 0.4rem 1rem; white-space: nowrap;
}

/* ── PULSE ── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(0.85)} }
.pulse-dot { animation: pulse 2s ease-in-out infinite; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 24px 1fr;
  gap: 1.25rem; padding-bottom: 2.5rem; position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; padding-top: 0.35rem; }
.tl-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--terra); background: var(--cream); flex-shrink: 0;
}
.tl-line {
  width: 1px; flex: 1; margin-top: 4px;
  background: color-mix(in oklab, var(--dark) 12%, transparent);
}
.tl-item:last-child .tl-line { display: none; }
.tl-date {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 0.3rem;
}
.tl-title {
  font-family: 'Cormorant Garant', serif; font-size: 1.2rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 0.2rem;
}
.tl-org { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.6rem; font-style: italic; }
.tl-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }
