/* ==============================================================
   Studio Maui — homepage
   Built on theme.css tokens. Link theme.css FIRST.
   ============================================================== */

body { overflow-x: hidden; }

/* ── Reveal ──────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ── Nav — links hard left, nothing else ─────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 26px 32px;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}
#nav.scrolled {
  background: rgba(245, 244, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding: 18px 32px;
}
#nav a {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
}
#nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width var(--transition);
}
#nav a:hover::after { width: 100%; }

/* ── Hero — the sketch, and nothing else ─────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 96px;
}
.hero-dolphin {
  width: min(92vw, 1100px);
  height: auto;
  opacity: 0;
  animation: dolphin-in 1.6s cubic-bezier(.2, .6, .2, 1) .2s forwards;
}
@keyframes dolphin-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: clamp(-28px, -2vw, -8px);
  opacity: 0;
  animation: dolphin-in 1.4s cubic-bezier(.2, .6, .2, 1) .7s forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--grey-mid);
  opacity: 0;
  animation: cue-in 1s ease 1.6s forwards;
}
@keyframes cue-in { to { opacity: 1; } }
#hero { position: relative; }

/* ── About ───────────────────────────────────────────────── */
#about { padding: 40px 32px clamp(80px, 11vw, 130px); }
.about-inner { max-width: 760px; margin: 0 auto; }
.about-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 32px;
}
.about-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--grey-dark);
  max-width: 62ch;
}
.about-body + .about-body { margin-top: 18px; }

/* ── Projects — index with thumbnails ───────────────────── */
#projects { padding: clamp(88px, 13vw, 150px) 32px; }
.projects-inner { max-width: 1000px; margin: 0 auto; }
.projects-head { margin-bottom: clamp(40px, 6vw, 64px); }
.projects-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02;
  margin-top: 14px;
}
.projects-head h2 em { font-style: italic; }

.project-index { border-top: 1px solid var(--line); }

.project-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 200px) minmax(0, 1fr) 2rem;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(20px, 2.6vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}

.row-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--grey-mid);
  font-variant-numeric: tabular-nums;
}

.row-img { display: block; overflow: hidden; }
.row-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-width: 100%;
  transition: transform var(--transition);
}
a.project-row:hover .row-img img { transform: scale(1.03); }

.row-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.row-meta {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.row-cue {
  justify-self: end;
  font-size: 1rem;
  color: var(--grey-mid);
  transition: transform var(--transition), color var(--transition);
}
a.project-row:hover .row-cue { color: var(--ink); transform: translateX(5px); }
.row-cue--none { visibility: hidden; }

/* ── Footer ──────────────────────────────────────────────── */
#footer {
  border-top: 1px solid var(--line);
  padding: 56px 32px 44px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .1em;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: .78rem; color: var(--grey-mid); line-height: 1.8; }

/* ── Music button ────────────────────────────────────────── */
.site-music-btn {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(245, 244, 240, .9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--grey-dark);
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.site-music-btn:hover { color: var(--ink); border-color: var(--grey-mid); }

/* ── Small screens ───────────────────────────────────────── */
@media (max-width: 640px) {
  #nav, #nav.scrolled { padding-left: 20px; padding-right: 20px; gap: 24px; }
  #hero { padding: 100px 20px 80px; }
  #about { padding: 24px 20px 88px; }
  #projects { padding: 80px 20px; }
  .project-row {
    grid-template-columns: 2rem minmax(0, 110px) minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }
  .row-cue { display: none; }
  #footer { padding: 44px 20px 92px; }  /* clear the fixed music button */
}
