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

:root {
  --text: #0a0a0a;
  --muted: #4a4a4a;
  --border: rgba(0, 0, 0, 0.09);
  --border-solid: rgba(0, 0, 0, 0.35);
  --bg: #fff;
  --surface: #f6f5f2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max: 1120px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --space-9: 7.5rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  padding: 0 1.5rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── NAV ──────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: var(--space-6);
}

nav .name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

nav .links {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav a:hover {
  color: var(--text);
}

/* ── HERO ─────────────────────────────────── */
.section-hero {
  text-align: center;
  margin-bottom: var(--space-8);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}

.hero p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 auto var(--space-4);
  line-height: 1.35;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
}

.chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  border: 0.5px solid var(--border-solid);
  border-radius: 999px;
  color: var(--muted);
}

.scroll-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #3a5a6a;
  text-decoration: none;
  transition: color 0.2s;
}

.scroll-link:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  padding: 0.75rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* ── TYPOGRAPHY ───────────────────────────── */
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3a5a6a;
  margin-bottom: var(--space-2);
  display: block;
}

.caption {
  font-size: 0.88rem;
  font-weight: 400;
  color: #4a4a4a;
  margin-top: var(--space-2);
  line-height: 1.55;
  text-align: left
}

.section-intro {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 580px;
  margin: 0 0 var(--space-6);
  line-height: 1.75;
}

/* ── SECTIONS ─────────────────────────────── */
.section {
  margin-bottom: var(--space-6);
}

.section-ruled {
  padding-top: var(--space-6);
  border-top: 0.5px solid var(--border);
}

/* ── SDPL CARD ────────────────────────────── */
.sdpl-card,
.section-card {
  background: var(--surface);
  border-radius: 16px;
  padding: var(--space-7) var(--space-7) var(--space-6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── DIVIDERS ─────────────────────────────── */
.site-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: var(--space-5) 0;
}

/* ── IMAGES ───────────────────────────────── */
.ph {
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* .r-4-1 { aspect-ratio: 4 / 1; } */

.r-3-4 {
  aspect-ratio: 3 / 4;
}

.r-4-3 {
  aspect-ratio: 4 / 3;
}

.r-3-2 {
  aspect-ratio: 3 / 2;
}

.r-16-9 {
  aspect-ratio: 16 / 9;
}

.r-16-7 {
  aspect-ratio: 16 / 7;
}

/* ── GRIDS ────────────────────────────────── */
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.g4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.g2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}


/* ── BULLETS ──────────────────────────────── */
.work-bullets {
  margin: var(--space-3) 0 var(--space-5);
  padding-left: 0;
  list-style: none;
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  color: #4a4a4a;
}

.work-bullets li {
  padding-left: 1.4rem;
  position: relative;
}

.work-bullets li+li {
  margin-top: 0.3rem;
}

.work-bullets li::before {
  /* content: '—';
  position: absolute;
  left: 0;
  color: var(--border-solid); */
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(0, 0, 0, 0.35);
}

.work-bullets-tight {
  margin-top: var(--space-2);
  margin-bottom: 0;
}

/* ── SDPL ─────────────────────────────────── */
.sdpl-pipeline {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: var(--space-6);
}

.sdpl-pipeline .label {
  margin-bottom: var(--space-2);
}

.sdpl-components-label {
  display: block;
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
  border-top: 0.5px solid var(--border);
}

.sdpl-components {
  align-items: start;
}

/* ── ECHALK ───────────────────────────────── */
.echalk-featured {
  align-items: start;
  margin-bottom: var(--space-5);
}

.echalk-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── PROJECTS (EDLIO) ─────────────────────── */
.project-card {
  margin-bottom: var(--space-4);
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.2rem;
  flex-wrap: wrap;
}

.site-meta {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--muted);
  opacity: 0.8;
}

.site-link {
  font-size: 0.88rem;
  color: #3a5a6a;
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-5);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.site-link:hover {
  opacity: 1;
  color: var(--text);
}

.featured-img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  background: var(--bg);
  margin-bottom: var(--space-2);
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.featured-img-comal {
  aspect-ratio: 16 / 9;
  max-width: 70%;
  margin: 0 auto var(--space-2);
}

/* ── CLEAR WATER 2-COL ────────────────────── */
.school-layout {
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 1.75rem;
  align-items: start;
}

.school-img {
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
}

.school-details {
  display: flex;
  flex-direction: column;
  /* padding-top: 0.25rem; */
}

.clear-details .work-bullets {
  margin-top: 0;
}

/* ── SUPPORTING STRIP ─────────────────────── */
.supporting-work {
  margin-top: var(--space-6);
}

.supporting-work .label {
  margin-bottom: var(--space-3);
}

.site-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.7rem;
  text-align: center;
}

.nyack-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.75rem;
  align-items: start;
}

.site-type {
  font-size: 0.75rem;
  color: #6a6a6a;
  margin-top: 0.1rem;
  text-align: center;
}

.site-card .ph {
  transition: opacity 0.2s, border-color 0.2s;
}

.site-card:hover .ph {
  opacity: 0.7;
  border-color: rgba(0, 0, 0, 0.3);
}

.site-card:hover .site-name {
  color: var(--text);
}

.site-card .featured-img {
  transition: opacity 0.2s;
}

.site-card:hover .featured-img {
  opacity: 0.8;
}

/* ── FOOTER ───────────────────────────────── */
footer {
  border-top: 0.5px solid var(--border);
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

footer .footer-links {
  display: flex;
  gap: 1rem;
}

footer a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}


/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 760px) {
  body {
    font-size: 15px;
    padding: 0 1rem;
  }

  nav {
    margin-bottom: var(--space-7);
  }

  .section-hero {
    margin-bottom: var(--space-7);
  }

  .g2,
  .g3,
  .g4,
  .g2-1,
  .sdpl-pipeline,
  .clear-layout {
    grid-template-columns: 1fr;
  }

  .sdpl-card,
  .section-card {
    padding: var(--space-5) var(--space-4);
  }

  .featured-img {
    aspect-ratio: 3 / 2;
  }

  .clear-img {
    aspect-ratio: 3 / 2;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}