@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── TOKENS ── */
:root {
  --ink:          #0f0e0c;
  --charcoal:     #2a2825;
  --mid:          #6b6560;
  --rule:         #d4cfc4;
  --paper:        #f5f1e8;
  --warm-white:   #faf8f3;
  --copper:       #b5602a;
  --copper-light: #d4854a;
  --teal:         #1a5f6e;
  --teal-light:   #2e8b9c;
  --sage:         #5a7a52;
  --gold:         #c9922a;
  --cyan:         #8ecfd8;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--warm-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--copper);
  color: #fff;
  padding: 8px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6%;
  transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s;
}

nav.scrolled {
  background: rgba(15, 14, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 19px;
  color: var(--copper-light);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-logo em { color: var(--copper-light); font-style: italic; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--copper-light); }

/* ── HOMEPAGE HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 6%;
  overflow: hidden;
  background: var(--ink);
}

#lissajous-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}

.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(56px, 9vw, 116px);
  font-weight: 400;
  line-height: 0.92;
  color: var(--warm-white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--copper-light); font-style: italic; }

.hero-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-style: italic;
  color: var(--cyan);
  margin-bottom: 56px;
  line-height: 1.3;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-copper {
  background: var(--copper);
  color: var(--warm-white);
  border: 1px solid var(--copper);
}
.btn-copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--warm-white);
}

.btn-teal {
  background: transparent;
  color: var(--teal-light);
  border: 1px solid var(--teal);
}
.btn-teal:hover {
  background: rgba(26,95,110,0.18);
  border-color: var(--teal-light);
  color: var(--cyan);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 6%;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.hero-scroll-hint::after {
  content: '';
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}

/* ── LISSAJOUS CONTROLS ── */
.lissajous-controls {
  position: absolute;
  bottom: 36px;
  right: 6%;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  z-index: 2;
}
.lissajous-control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lissajous-label {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  user-select: none;
}
.lissajous-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(15,14,12,0.6);
  border: 1px solid rgba(181,96,42,0.35);
  border-radius: 3px;
  color: rgba(255,255,255,0.7);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(181,96,42,0.6)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.2s, color 0.2s;
  min-width: 90px;
}
.lissajous-select:hover {
  border-color: rgba(181,96,42,0.7);
  color: #fff;
}
.lissajous-select:focus {
  border-color: var(--copper);
  color: #fff;
}
.lissajous-select option {
  background: #1a1917;
  color: rgba(255,255,255,0.8);
}

/* ── PROJECT GRID SECTION ── */
.project-grid-section {
  background: var(--ink);
  padding: 80px 6% 100px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-count {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* ── PROJECT CARD ── */
.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--charcoal);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.4s ease;
  filter: brightness(0.65) saturate(0.9);
}

.project-card:hover .project-card-img {
  transform: scale(1.06);
  filter: brightness(0.82) saturate(1.1);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,14,12,0.95) 0%,
    rgba(15,14,12,0.4) 45%,
    transparent 100%
  );
  transition: opacity 0.3s;
}

.project-card-border {
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  transition: border-color 0.3s;
  pointer-events: none;
  z-index: 3;
}

.project-card:hover .project-card-border {
  border-color: var(--copper);
}

.project-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 24px;
  z-index: 2;
}

.project-card-month {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 6px;
}

.project-card-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  color: var(--warm-white);
  line-height: 1.2;
  margin-bottom: 10px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.project-card:hover .project-card-tags {
  opacity: 1;
  transform: translateY(0);
}

/* ── DISCIPLINE TAGS ── */
.disc-tag {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

.disc-tag.fabrication {
  background: rgba(181,96,42,0.3);
  color: #e8a06a;
  border: 1px solid rgba(181,96,42,0.5);
}
.disc-tag.physics {
  background: rgba(26,95,110,0.3);
  color: #5cc8db;
  border: 1px solid rgba(26,95,110,0.5);
}
.disc-tag.living-systems {
  background: rgba(90,122,82,0.3);
  color: #88b87e;
  border: 1px solid rgba(90,122,82,0.5);
}
.disc-tag.art-math {
  background: rgba(201,146,42,0.3);
  color: #e0aa4a;
  border: 1px solid rgba(201,146,42,0.5);
}

/* light background versions for project body */
.disc-tag-light.fabrication {
  background: rgba(181,96,42,0.12);
  color: var(--copper);
  border: 1px solid rgba(181,96,42,0.3);
}
.disc-tag-light.physics {
  background: rgba(26,95,110,0.1);
  color: var(--teal);
  border: 1px solid rgba(26,95,110,0.25);
}
.disc-tag-light.living-systems {
  background: rgba(90,122,82,0.1);
  color: var(--sage);
  border: 1px solid rgba(90,122,82,0.25);
}
.disc-tag-light.art-math {
  background: rgba(201,146,42,0.1);
  color: var(--gold);
  border: 1px solid rgba(201,146,42,0.3);
}

/* ── HOME ABOUT STRIP ── */
.about-strip {
  background: var(--charcoal);
  padding: 80px 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.about-strip-text .eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.about-strip-text h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--warm-white);
  margin-bottom: 24px;
}
.about-strip-text h2 em { color: var(--copper-light); font-style: italic; }

.about-strip-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 32px;
}

.about-strip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}

.stat-cell {
  padding: 28px 24px;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat-cell:nth-child(2n) { border-right: none; }
.stat-cell:nth-last-child(-n+2) { border-bottom: none; }

.stat-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 48px;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  padding: 56px 6%;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: var(--warm-white);
  text-decoration: none;
}
.footer-logo em { color: var(--copper-light); font-style: italic; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--copper-light); }

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.18);
}

/* ── PROJECT PAGE HERO ── */
.project-hero {
  position: relative;
  height: 68vh;
  min-height: 480px;
  overflow: hidden;
}

.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,14,12,0.25) 0%,
    rgba(15,14,12,0.1) 25%,
    rgba(15,14,12,0.7) 65%,
    var(--ink) 100%
  );
}

.project-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 6% 52px;
}

.project-hero-month {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 12px;
}

.project-hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: var(--warm-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.project-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ── PROJECT BODY ── */
.project-body {
  background: var(--paper);
  color: var(--ink);
  padding: 72px 6% 80px;
}

.project-body-inner {
  max-width: 700px;
  margin: 0 auto;
}

.project-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.82;
  color: #3a3835;
  margin-bottom: 24px;
}

.project-body h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--teal);
  margin: 52px 0 20px;
}

.project-body strong { color: var(--ink); font-weight: 600; }

/* ── SPECS BLOCK ── */
.specs-block {
  background: var(--charcoal);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 40px 0;
}

.specs-block-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}

.specs-row {
  display: flex;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  line-height: 1.5;
}
.specs-row:last-child { border-bottom: none; }

.specs-key {
  color: var(--copper-light);
  min-width: 150px;
  flex-shrink: 0;
}
.specs-val { color: rgba(255,255,255,0.7); }

/* ── PHOTO GALLERY ── */
.gallery-section {
  background: var(--paper);
  padding: 0 6% 80px;
}

.gallery-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--charcoal);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.3s;
  filter: brightness(0.9) saturate(0.95);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.0) saturate(1.05);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15,14,12,0.9), transparent);
  padding: 20px 14px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
}
.lightbox-close:hover { color: var(--copper-light); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 3px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(181,96,42,0.2);
  border-color: var(--copper);
  color: var(--copper-light);
}

/* ── PROJECT NAVIGATION ── */
.project-nav {
  background: var(--charcoal);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.project-nav-link {
  text-decoration: none;
  padding: 40px 6%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.project-nav-link:hover { background: rgba(255,255,255,0.03); }
.project-nav-link + .project-nav-link {
  border-left: 1px solid rgba(255,255,255,0.06);
  text-align: right;
}

.project-nav-dir {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.project-nav-month {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.7;
}

.project-nav-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: var(--warm-white);
  line-height: 1.2;
  transition: color 0.2s;
}
.project-nav-link:hover .project-nav-title { color: var(--copper-light); }

/* ── PAGE HERO (about / newsletter / contact) ── */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  overflow: hidden;
  background: var(--charcoal);
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.6);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,14,12,0.3) 0%, var(--ink) 100%);
}

.page-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 6% 52px;
}

.page-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
}

.page-hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 400;
  color: var(--warm-white);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

/* ── ABOUT BODY ── */
.about-body {
  background: var(--paper);
  color: var(--ink);
  padding: 80px 6%;
}

.about-body-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-body p {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.82;
  color: #3a3835;
  margin-bottom: 24px;
}

.about-body h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--teal);
  margin: 64px 0 24px;
  line-height: 1.1;
}

.about-body strong { color: var(--ink); font-weight: 600; }

/* ── ABOUT INTRO WITH PHOTO ── */
.about-intro {
  overflow: hidden;
}

.about-intro-text {
  /* no styles needed — text flows naturally around the float */
}

.about-intro-img {
  float: right;
  width: 260px;
  margin: 4px 0 32px 48px;
}

.about-intro-img img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.about-portrait-bottom {
  margin: 48px 0;
}

.about-portrait-bottom img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

@media (max-width: 640px) {
  .about-intro-img {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
}

/* ── COMPETENCY GRID ── */
.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  margin: 40px 0;
}

.comp-cell {
  background: var(--warm-white);
  padding: 28px 30px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.comp-cell:nth-child(2n) { border-right: none; }
.comp-cell:nth-last-child(-n+2) { border-bottom: none; }

.comp-cell h4 {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
  font-weight: 700;
}

.comp-cell ul {
  list-style: none;
  padding: 0;
}

.comp-cell li {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--mid);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}
.comp-cell li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--copper);
  opacity: 0.5;
  font-size: 11px;
  top: 5px;
}

.about-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ── DARK FULL PAGES (newsletter / contact) ── */
.dark-page {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 6% 80px;
  text-align: center;
}

.dark-page h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.dark-page h1 em { color: var(--copper-light); font-style: italic; }

.dark-page .page-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ── FORMS ── */
.form-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.form-row { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--warm-white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--copper);
  background: rgba(255,255,255,0.07);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-textarea { min-height: 140px; resize: vertical; }

.form-select option { background: var(--charcoal); color: var(--warm-white); }

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--copper);
  color: var(--warm-white);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.22s;
  margin-top: 8px;
}
.form-submit:hover { background: var(--copper-light); }

/* Newsletter specific */
.newsletter-row {
  display: flex;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-email {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--warm-white);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-email:focus { border-color: var(--copper); }
.newsletter-email::placeholder { color: rgba(255,255,255,0.28); }

.newsletter-btn {
  background: var(--copper);
  color: var(--warm-white);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  padding: 14px 22px;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  transition: background 0.22s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--copper-light); }

.newsletter-fine {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.2);
  margin-top: 16px;
}

/* Form success */
.form-success {
  display: none;
  padding: 20px 24px;
  background: rgba(90,122,82,0.15);
  border: 1px solid rgba(90,122,82,0.3);
  border-radius: 4px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #88b87e;
  margin-top: 16px;
  text-align: center;
}
.form-success.show { display: block; }

/* ── CONTACT INFO ROW ── */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.contact-item {
  text-align: center;
}
.contact-item-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 6px;
}
.contact-item-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  nav { padding: 20px 5%; }
  .nav-links { gap: 20px; }

  .hero { padding: 0 5%; }
  .hero h1 { font-size: clamp(48px, 12vw, 72px); }

  .project-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.two-col { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-cell:nth-child(2n) { border-right: 1px solid var(--rule); }
  .comp-cell { border-right: none; }

  .project-nav { grid-template-columns: 1fr; }
  .project-nav-link + .project-nav-link {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: left;
  }

  .newsletter-row { flex-direction: column; }
  .newsletter-email {
    border-right: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px 3px 0 0;
  }
  .newsletter-btn { border-radius: 0 0 3px 3px; }

  .about-strip-stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 440px) {
  .nav-links { display: none; }
  .hero-cta { flex-direction: column; gap: 16px; }
}
