:root {
  --bg: #0d1711;
  --bg-deep: #07100b;
  --glow: #1d2a20;
  --text: #eef2ec;
  --muted: #b2beb0;
  --accent: #dfe7dc;
  --accent-soft: #9eb7a0;
  --accent-deep: #76906f;
  --line: rgba(209, 220, 208, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, var(--glow) 0%, rgba(29, 42, 32, 0) 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a { color: inherit; }

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem var(--pad);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top a { text-decoration: none; transition: color .2s; }
.top a:hover { color: var(--text); }
.top .mark { color: var(--text); }
.top nav { display: flex; gap: 1.75rem; }

section { padding: 0 var(--pad); }

.label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40ch;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 13ch;
}
h1 em { font-style: italic; color: var(--accent-soft); }
.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  margin: 2.25rem 0 0;
  color: var(--muted);
  max-width: 36ch;
}

/* Soft tidal bands at the foot of the hero */
.field {
  position: absolute;
  inset: auto 0 0 0;
  z-index: -1;
  height: 32%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}
.field span {
  display: block;
  flex: 1;
  background: var(--accent-deep);
  opacity: 0.05;
  animation: tide 9s ease-in-out infinite alternate;
}
.field span:nth-child(1) { animation-delay: -1s; }
.field span:nth-child(2) { animation-delay: -2s; }
.field span:nth-child(3) { animation-delay: -3s; }
.field span:nth-child(4) { animation-delay: -4s; }
.field span:nth-child(5) { animation-delay: -5s; }
.field span:nth-child(6) { animation-delay: -6s; }
@keyframes tide {
  from { transform: scaleX(0.3); transform-origin: left; opacity: 0.04; }
  to   { transform: scaleX(1);   transform-origin: left; opacity: 0.12; }
}

/* Sections */
.now, .about, .method, .contact {
  margin: 0 var(--pad);
  padding: clamp(5rem, 14vw, 10rem) 0 0;
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem 4rem;
  align-items: end;
}
.project h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.project-body p { margin: 0 0 1rem; color: var(--muted); }
.project-body strong { color: var(--text); font-weight: 600; }
.meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep) !important;
}

.image { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: 88svh;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.image figcaption { margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem clamp(2rem, 6vw, 6rem);
  align-items: stretch;
}
.portrait {
  position: relative;
  margin: 0.5rem 0 0.75rem;
  min-height: 26rem;
}
.portrait figcaption {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 31% 50%;
  border-radius: clamp(14px, 2vw, 28px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.about-body {
  max-width: 38ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.about-body p { margin: 0 0 1.4rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body p:first-child { color: var(--text); }
.about-body p:not(:first-child) { color: var(--muted); }

/* Method */
.method-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
}
.method-title em { font-style: italic; color: var(--accent-soft); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}
.steps li { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.steps .num {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
}
.steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}
.steps p { text-wrap: balance; margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.65; }

/* Whitespace below the about block */
.about, .now, .method { padding-bottom: clamp(5rem, 14vw, 10rem); }

/* Contact */
.contact { padding-bottom: clamp(5rem, 12vw, 9rem); }
.big-link {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 7vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}
.big-link em { font-style: italic; color: var(--accent-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 0.75rem 2.25rem; margin: 2.25rem 0 0; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.socials a { padding: 0.5rem 0; text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); }
.socials a:hover { color: var(--text); }

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
footer a { text-decoration: none; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .top { font-size: 0.72rem; letter-spacing: 0.12em; }
  .top .mark { white-space: nowrap; }
  .top nav a:not(:last-child) { display: none; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .project, .about-grid { grid-template-columns: 1fr; }
  .about-grid { align-items: start; }
  .portrait { min-height: 0; height: 0; padding-bottom: 125%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field span { animation: none; opacity: 0.07; }
}
