/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f3ea;
  --bg-soft: #efe8d9;
  --ink: #171a24;
  --ink-soft: #565d70;
  --cream: #f7f3ea;
  --accent: #1f4fa0;
  --accent-deep: #122d5c;
  --accent-ink: #ffffff;
  --gold: #c1602e;
  --line: #ddd3bd;
  --shadow: 0 30px 60px -30px rgba(18, 45, 92, 0.35);

  --serif: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1240px;

  --mx: 50%;
  --my: 40%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
em { font-style: italic; color: var(--accent); font-family: var(--serif); }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--cream);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .75rem;
}
.kicker {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; margin-bottom: 1.25rem;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .2s; }
}

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--accent); box-shadow: var(--shadow); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1rem; }

.text-link {
  display: inline-block; font-weight: 600; color: var(--ink);
  border-bottom: 1.5px solid var(--accent); padding-bottom: .15rem;
  transition: color .3s var(--ease-out), gap .3s var(--ease-out);
}
.text-link:hover { color: var(--accent); }

/* =============================================================
   5. Nav
   ============================================================= */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter);
  background: rgba(250, 247, 242, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.masthead.is-scrolled { border-bottom-color: var(--line); }

.masthead-logo {
  font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em;
}
.masthead-logo span { color: var(--accent); font-style: italic; }

.masthead-nav { display: none; align-items: center; gap: 2.1rem; font-size: .92rem; font-weight: 500; }
.masthead-nav a:not(.nav-cta) { position: relative; }
.masthead-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.masthead-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .55rem 1.15rem; border-radius: 999px; background: var(--ink); color: var(--cream); }
.nav-cta:hover { background: var(--accent); }

.masthead-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: .4rem; z-index: 60;
}
.masthead-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.masthead-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.masthead-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.masthead-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) { .masthead-nav { display: flex; } .masthead-toggle { display: none; } }

.masthead-mobile {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  font-family: var(--serif); font-size: 1.7rem;
  transform: translateY(-100%); transition: transform .5s var(--ease-out);
}
.masthead-mobile.is-open { transform: translateY(0); }
@media (min-width: 960px) { .masthead-mobile { display: none; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative; padding: clamp(7rem, 14vw, 10rem) var(--gutter) 5rem;
  overflow: clip;
}
.hero-bg {
  position: absolute; inset: -10% -10% -10% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38rem 32rem at var(--mx) var(--my), rgba(31, 79, 160, 0.16), transparent 65%),
    radial-gradient(30rem 26rem at calc(100% - var(--mx)) calc(100% - var(--my)), rgba(193, 96, 46, 0.14), transparent 60%);
  transition: background .3s linear;
  filter: blur(2px);
}
.hero-grid {
  position: relative; z-index: 2; max-width: var(--container); margin-inline: auto;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 14ch; margin-bottom: 1.4rem;
}
.hero-lead { max-width: 46ch; color: var(--ink-soft); font-size: clamp(1rem, 1.6vw, 1.14rem); margin-bottom: 2.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-photo {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--ink-soft); border-radius: 999px;
  display: none;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 999px; animation: scrollDot 1.8s var(--ease-soft) infinite;
}
@media (min-width: 720px) { .hero-scroll { display: block; } }
@keyframes scrollDot { 0%,100% { opacity: 1; transform: translateY(0); } 60% { opacity: 0; transform: translateY(14px); } }

/* split words */
.split-word { display: inline-block; }

/* =============================================================
   7. Story
   ============================================================= */
.story { padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--bg-soft); }
.story-grid { max-width: var(--container); margin-inline: auto; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .story-grid { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; } }

.story-photo { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.story-photo:hover img { transform: scale(1.045); }

.story-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 1.3rem; max-width: 16ch; }
.story-copy p { color: var(--ink-soft); max-width: 56ch; margin-bottom: 1.1rem; font-size: 1.02rem; }
.story-copy strong { color: var(--ink); }

/* =============================================================
   8. Today (trio)
   ============================================================= */
.today { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.today-head { max-width: var(--container); margin: 0 auto 2.8rem; text-align: center; }
.today-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.today-grid {
  max-width: var(--container); margin-inline: auto; display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .today-grid { grid-template-columns: repeat(3, 1fr); } }

.today-card {
  padding: 2.2rem 1.8rem; border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.today-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.today-card h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.today-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.3rem; }
.today-card a { font-weight: 600; font-size: .9rem; color: var(--accent); }
.today-card a:hover { text-decoration: underline; }

/* =============================================================
   9. Map / gallery
   ============================================================= */
.map { padding: clamp(4rem, 9vw, 7rem) var(--gutter); background: var(--bg-soft); }
.map-head { max-width: var(--container); margin: 0 auto 2.8rem; text-align: center; }
.map-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.map-lead { color: var(--ink-soft); }

.map-grid {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
}
@media (min-width: 640px) { .map-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .map-grid { grid-template-columns: repeat(4, 1fr); } }

.map-card {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.map-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.map-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.map-card:hover img { transform: scale(1.08); }
.map-card-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .9rem .8rem;
  background: linear-gradient(to top, rgba(20,16,13,.82), transparent);
  color: #fff;
}
.map-card-label strong { display: block; font-family: var(--serif); font-size: 1rem; }
.map-card-label span { font-size: .74rem; opacity: .85; letter-spacing: .03em; }

/* =============================================================
   10. Stories
   ============================================================= */
.stories { padding: clamp(4rem, 9vw, 7rem) var(--gutter); }
.stories-head { max-width: var(--container); margin: 0 auto 2.8rem; text-align: center; }
.stories-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.stories-grid { max-width: var(--container); margin-inline: auto; display: grid; gap: 1.75rem; }
@media (min-width: 780px) { .stories-grid { grid-template-columns: repeat(2, 1fr); } }

.story-card {
  border-radius: 18px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.story-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.story-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.story-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.story-card:hover img { transform: scale(1.05); }
.story-card-body { padding: 1.6rem 1.7rem 1.9rem; }
.story-card-tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.story-card h3 { font-size: 1.3rem; margin: .55rem 0 .7rem; }
.story-card p { color: var(--ink-soft); font-size: .95rem; }

/* =============================================================
   11. Collab
   ============================================================= */
.collab { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); background: var(--ink); color: var(--cream); }
.collab-inner { max-width: var(--container); margin-inline: auto; }
.collab .eyebrow { color: var(--gold); }
.collab h2 { font-size: clamp(2rem, 4vw, 2.9rem); max-width: 18ch; margin-bottom: 3rem; }
.collab-grid { display: grid; gap: 2.3rem; }
@media (min-width: 780px) { .collab-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.collab-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.collab-item h3 { font-size: 1.25rem; margin: .8rem 0 .7rem; color: var(--cream); }
.collab-item p { color: rgba(250,247,242,.68); font-size: .96rem; }

/* =============================================================
   12. Contact
   ============================================================= */
.contact { padding: clamp(5rem, 11vw, 9rem) var(--gutter); text-align: center; }
.contact-inner { max-width: 46rem; margin-inline: auto; }
.contact h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.contact-lead { color: var(--ink-soft); margin-bottom: 2.3rem; font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* =============================================================
   12.5 Ad slots (AdSense)
   ============================================================= */
.ad-slot { padding: 1.6rem var(--gutter) 0.4rem; }
.ad-slot-tag {
  display: block; text-align: center; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); opacity: .6; margin-bottom: .6rem;
}
.ad-slot-box {
  max-width: var(--container); margin-inline: auto;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 10px;
  background: var(--bg-soft); overflow: hidden;
}
.ad-slot-native .ad-slot-box { min-height: 250px; max-width: 720px; }

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer { padding: 2.6rem var(--gutter) 2.8rem; border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-logo { font-family: var(--serif); font-weight: 600; }
.footer-social { display: flex; gap: 1.4rem; font-size: .9rem; font-weight: 500; }
.footer-social a:hover { color: var(--accent); }
.footer-copy { width: 100%; font-size: .8rem; color: var(--ink-soft); }
@media (min-width: 640px) { .footer-copy { width: auto; } }

/* =============================================================
   14. Cursor & magnetic (fine pointers only)
   ============================================================= */
.cursor-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
.cursor-ring {
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1.5px solid var(--accent); transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), border-color .25s var(--ease-out);
}
.cursor.is-hover .cursor-ring { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-color: var(--ink); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-glow { display: none; } }

/* =============================================================
   15. Reduced motion — only the truly intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll span { animation: none; }
  .hero-bg { transition: none; }
}
