/* Design tokens */
:root {
  --bg: oklch(0.97 0.01 85);
  --fg: oklch(0.22 0.02 60);
  --muted: oklch(0.5 0.02 60);
  --primary: oklch(0.38 0.05 148);
  --accent: oklch(0.55 0.08 60);
  --border: oklch(0.88 0.015 80);
  --card: oklch(0.99 0.005 85);
  --secondary: oklch(0.93 0.015 85);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }

h1, h2, h3, .serif-lg, .serif-md, .contact-name, .tl-date {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.eyebrow .rule {
  display: inline-block;
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow-light { color: rgba(255,255,255,0.9); }
.eyebrow-primary { color: var(--primary); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; }

.container { max-width: 72rem; margin: 0 auto; }
.section { padding: 6rem 1.5rem; }
.section-alt { background: color-mix(in oklch, var(--secondary) 60%, transparent); }
@media (min-width: 768px) { .section { padding: 8rem 3rem; } }
@media (min-width: 1024px) { .section { padding: 8rem 5rem; } }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  color: white;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em;
}
.topbar .brand { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; text-transform: none; letter-spacing: normal; }
.topbar-right { display: none; }
@media (min-width: 768px) { .topbar { padding: 1.25rem 2.5rem; } .topbar-right { display: inline; } }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.15), rgba(0,0,0,0.45)); }
.hero-inner { width: 100%; padding: 8rem 1.5rem 4rem; }
@media (min-width: 768px) { .hero-inner { padding: 8rem 3rem 6rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 8rem 5rem 6rem; } }
.hero-content { max-width: 56rem; color: white; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.hero-content h1 { font-size: 2.75rem; line-height: 1.02; margin: 2rem 0 0; }
.hero-content h1 em { font-style: italic; }
@media (min-width: 768px) { .hero-content h1 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 5.5rem; } }
.lead { max-width: 40rem; font-size: 1.125rem; margin-top: 2rem; color: rgba(255,255,255,0.95); }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }
.hero-meta { margin-top: 3.5rem; display: grid; gap: 1rem 2.5rem; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,0.4); padding-top: 1.5rem; max-width: 40rem; }
@media (min-width: 640px) { .hero-meta { grid-template-columns: repeat(3, 1fr); } }
.mini { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(255,255,255,0.8); }
.serif-lg { font-size: 1.35rem; margin-top: 0.25rem; }

/* Section heading */
.section-heading { max-width: 48rem; }
.section-heading h2 { font-size: 2.25rem; line-height: 1.05; margin: 1.25rem 0 0; }
@media (min-width: 768px) { .section-heading h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .section-heading h2 { font-size: 3.75rem; } }
.section-heading .intro { max-width: 42rem; margin-top: 1.5rem; color: var(--muted); font-size: 1rem; }
@media (min-width: 768px) { .section-heading .intro { font-size: 1.125rem; } }

/* Numbered project grid */
.numbered-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .numbered-grid { grid-template-columns: 1fr 1fr; } }
.numbered-grid article { display: flex; align-items: baseline; gap: 1.5rem; border-bottom: 1px solid var(--border); padding: 2rem 0; }
.numbered-grid .num { font-family: 'Cormorant Garamond', serif; color: var(--primary); font-size: 0.9rem; }
.numbered-grid h3 { font-size: 1.5rem; margin: 0; line-height: 1.15; }
@media (min-width: 768px) { .numbered-grid h3 { font-size: 1.85rem; } }

/* Team */
.team-grid { margin-top: 4rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { padding: 2rem; background: color-mix(in oklch, var(--card) 60%, transparent); border-top: 2px solid var(--primary); }
.team-card h3 { font-size: 2rem; margin: 1rem 0 0; }
@media (min-width: 768px) { .team-card h3 { font-size: 2.25rem; } }
.team-card ul { list-style: none; padding: 0; margin: 2rem 0 0; }
.team-card li { display: flex; align-items: baseline; gap: 0.75rem; border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent); padding-bottom: 0.75rem; margin-bottom: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; }
.team-card li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); display: inline-block; }

/* Maps */
.maps-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .maps-grid { grid-template-columns: 1fr 1fr; } }
.maps-grid figure { margin: 0; border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.maps-grid img { width: 100%; height: 380px; object-fit: cover; }
@media (min-width: 768px) { .maps-grid img { height: 440px; } }
.maps-grid figcaption { border-top: 1px solid var(--border); padding: 1rem 1.25rem; }

/* Vineyard */
.vineyard-wrap { position: relative; height: 70vh; width: 100%; overflow: hidden; }
.vineyard-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vineyard-fade { position: absolute; inset: auto 0 0 0; height: 24px; background: linear-gradient(to top, var(--bg), transparent); }

/* Site facts */
.site-facts { margin-top: 3.5rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; border-top: 1px solid var(--border); padding-top: 2.5rem; }
@media (min-width: 768px) { .site-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-facts { grid-template-columns: repeat(4, 1fr); } }
.serif-md { font-size: 1.4rem; margin-top: 0.75rem; line-height: 1.25; }

/* Conditions */
.two-col { display: grid; gap: 4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col h2 { font-size: 2.25rem; margin: 1.5rem 0 0; }
@media (min-width: 768px) { .two-col h2 { font-size: 3rem; } }
.numbered-list { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.numbered-list li { display: flex; align-items: baseline; gap: 1.5rem; border-bottom: 1px solid var(--border); padding: 1.25rem 0; font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; }
.numbered-list .num { color: var(--primary); font-size: 0.9rem; }
.building-img { width: 100%; height: auto; object-fit: cover; border-radius: 2px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.3); }
.caption { font-size: 0.9rem; font-style: italic; color: var(--muted); margin-top: 1rem; }

/* Profiles */
.profiles-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
@media (min-width: 640px) { .profiles-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .profiles-grid { grid-template-columns: repeat(4, 1fr); } }
.profile { min-height: 150px; padding: 1.25rem; background: var(--bg); font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; transition: all 0.3s; }
.profile-icon { color: var(--primary); transition: color 0.3s; }
.profile-label { line-height: 1.15; }
.profile:hover { background: var(--primary); color: white; }
.profile:hover .profile-icon { color: white; }
.footnote { margin-top: 2.5rem; max-width: 42rem; font-size: 0.9rem; color: var(--muted); }

/* Horizon */
.horizon { position: relative; padding: 7rem 1.5rem; color: white; overflow: hidden; }
@media (min-width: 768px) { .horizon { padding: 10rem 3rem; } }
@media (min-width: 1024px) { .horizon { padding: 10rem 5rem; } }
.horizon-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.horizon-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.35), rgba(0,0,0,0.65)); }
.horizon-inner { max-width: 56rem; margin: 0 auto; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.horizon-heading { text-align: center; }
.horizon-heading h2 { font-size: 2.25rem; line-height: 1.15; margin-top: 2rem; }
@media (min-width: 768px) { .horizon-heading h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .horizon-heading h2 { font-size: 3.75rem; } }
.timeline { position: relative; margin: 4rem auto 0; max-width: 44rem; padding-left: 0; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,0.3); }
.tl-item { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; position: relative; }
@media (min-width: 768px) { .tl-item { gap: 2.5rem; } }
.tl-dot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1; }
.tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 999px; background: white; }
.tl-date { font-size: 1.75rem; }
@media (min-width: 768px) { .tl-date { font-size: 2rem; } }
.tl-item h3 { font-size: 1.35rem; margin: 0.25rem 0 0.5rem; line-height: 1.2; }
@media (min-width: 768px) { .tl-item h3 { font-size: 1.5rem; } }
.tl-item p { margin: 0; max-width: 42rem; color: rgba(255,255,255,0.9); }

/* Contact */
.contact { text-align: center; max-width: 48rem; }
.contact h2 { font-size: 3rem; margin-top: 1.5rem; line-height: 1.1; }
@media (min-width: 768px) { .contact h2 { font-size: 3.75rem; } }
.contact-card { display: inline-flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 3.5rem; }
.contact-name { font-size: 2rem; }
@media (min-width: 768px) { .contact-name { font-size: 2.25rem; } }
.contact-card a { color: var(--primary); text-decoration: none; margin-top: 0.5rem; font-size: 1.1rem; }
.contact-card a:hover { text-decoration: underline; }

footer { border-top: 1px solid var(--border); padding: 2.5rem 1.5rem; text-align: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); }
