/* ============================================================
   Dan Lyons — deep-water editorial design system
   Kailua-Kona greens · Fraunces + IBM Plex Mono
   ============================================================ */

/* ---------- password gate ---------- */
html.gated, html.gated body { overflow: hidden; height: 100%; }
html.gated body > *:not(.gate):not(script) { visibility: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(12, 38, 32, 0.82) 0%, rgba(10, 32, 27, 0.94) 100%),
    #0c2620 url(assets/ocean-grain.jpg?v=2) center center / cover no-repeat;
  transition: opacity 0.5s ease;
}

.gate.done { opacity: 0; pointer-events: none; }

.gate-inner { max-width: 460px; }

.gate-coord {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--jade);
  margin-bottom: 28px;
}

.gate-eyebrow {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.gate h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--foam);
  margin-bottom: 22px;
}

.gate h1 em { font-style: italic; font-weight: 400; color: var(--jade); }

.gate-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 30px;
}

.gate-note a { color: var(--jade); text-decoration: none; }
.gate-note a:hover { text-decoration: underline; }

.gate-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

#gate-input {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--foam);
  background: transparent;
  border: 1px solid var(--line);
  padding: 14px 20px;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

#gate-input::placeholder { color: var(--muted); }
#gate-input:focus { border-color: var(--jade); }

.gate-form .btn { cursor: pointer; }

.gate-error {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #e9a08a;
  margin-top: 18px;
}

.gate-back {
  display: inline-block;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.gate-back:hover { color: var(--foam); }

:root {
  --deep: #0c2620;          /* deep kelp green */
  --deep-2: #0a201b;
  --foam: #ecf3ec;          /* sea-foam text */
  --muted: #9fbbac;         /* sage */
  --line: rgba(236, 243, 236, 0.16);
  --jade: #62e2b4;          /* sea-glass accent */
  --serif: 'Fraunces', 'Georgia', serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;
  --max: 1160px;
  --frame: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--deep);
  color: var(--foam);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4.5vw, 56px);
}

h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; color: var(--foam); }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.08; }

h2 em, h1 em { font-style: italic; font-weight: 400; }

.accent { color: var(--jade); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

/* ---------- page frame & corner marks ---------- */
.frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--line);
  pointer-events: none;
  z-index: 95;
}

.corner {
  position: fixed;
  bottom: calc(var(--frame) + 8px);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 96;
  background: var(--deep);
  padding: 0 8px;
}

.corner-l { left: calc(var(--frame) + 22px); }
.corner-r { right: calc(var(--frame) + 22px); }

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  border: 1px solid var(--jade);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}

.btn-dark { background: var(--jade); color: var(--deep); }
.btn-dark:hover { background: var(--foam); border-color: var(--foam); transform: translateY(-2px); }

.btn-line { color: var(--foam); border-color: var(--line); background: transparent; }
.btn-line:hover { border-color: var(--foam); transform: translateY(-2px); }

.link-quiet {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.link-quiet:hover { color: var(--jade); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: var(--frame); left: var(--frame); right: var(--frame);
  z-index: 100;
  background: rgba(12, 38, 32, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-color: var(--line); }

.nav-inner {
  max-width: calc(var(--max) + 60px);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 44px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--foam);
  text-decoration: none;
  white-space: nowrap;
}

.nav-logo sup { color: var(--jade); font-size: 0.6em; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }

.nav-links a {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--foam);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--jade); }
.nav-links a.active { border-bottom: 1px solid var(--jade); padding-bottom: 2px; }

.nav-links .nav-cta { color: var(--jade); }
.nav-links .nav-cta:hover { color: var(--foam); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-clock { color: var(--jade); min-width: 7ch; }
.nav-place { color: var(--muted); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  padding: clamp(150px, 22vh, 210px) 0 clamp(80px, 12vh, 120px);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(12, 38, 32, 0.45) 0%, rgba(12, 38, 32, 0.15) 42%, rgba(12, 38, 32, 0.55) 78%, var(--deep) 100%),
    url(assets/ocean-grain.jpg?v=2) center center / cover no-repeat;
}

/* lockup eyebrow — REEF-style vertical rules */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.lockup span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--foam);
  padding: 2px 18px;
}

.lockup span + span { border-left: 1px solid rgba(236, 243, 236, 0.35); }

.hero-intro {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--foam);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(4rem, 13vw, 9.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}

.hero h1 .dot { color: var(--jade); }

.hero-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 2;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

.scroll-note {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- services ---------- */
.services {
  border-top: 1px solid var(--line);
  padding: clamp(80px, 12vh, 130px) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  margin-top: 44px;
}

.service {
  border: 1px solid var(--line);
  padding: clamp(30px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s, background 0.35s;
}

.service:hover {
  transform: translateY(-5px);
  border-color: var(--jade);
  background: rgba(70, 198, 158, 0.04);
}

.service-no {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--jade);
  margin-bottom: 18px;
}

.service h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.service h3 em { font-style: italic; font-weight: 400; }

.service p {
  font-size: 0.78rem;
  line-height: 2;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 24px;
}

.service-foot {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jade);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ---------- stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat { padding: 36px 28px 32px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }

.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 230px;
  line-height: 1.8;
}

/* ---------- featured / gallery cards ---------- */
.featured { padding: clamp(80px, 12vh, 130px) 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.feature-grid, .email-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}

.email-card {
  display: block;
  text-align: left;
  text-decoration: none;
  color: var(--foam);
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.email-thumb {
  position: relative;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--deep-2);
  aspect-ratio: 480 / 645;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s, border-color 0.35s;
}

.email-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}

.email-card:hover .email-thumb {
  transform: translateY(-6px);
  border-color: var(--jade);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
}

.badge {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--jade);
  padding: 4px 10px;
}

.badge-live { background: var(--foam); }

.email-meta { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; }

.email-brand {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.email-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* ---------- pull quote ---------- */
.pull {
  border-top: 1px solid var(--line);
  padding: clamp(90px, 14vh, 150px) 0;
  text-align: center;
}

.pull blockquote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 26px;
  color: var(--foam);
}

.pull blockquote em { font-style: italic; color: var(--jade); }

.pull cite {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); padding: clamp(80px, 12vh, 130px) 0; }

.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 70px);
}

.about-body p {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.75;
  color: var(--foam);
  max-width: 640px;
  margin-bottom: 22px;
}

.about-body em { font-style: italic; }

/* ---------- work page ---------- */
.work-hero {
  padding: clamp(140px, 21vh, 200px) 0 clamp(40px, 6vh, 70px);
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(70, 198, 158, 0.07), transparent 65%);
}

.work-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 28px;
}

.work-hero .hero-sub {
  text-align: left;
  margin: 0;
  max-width: 600px;
}

.gallery { padding-bottom: clamp(80px, 12vh, 130px); }

.filters { display: flex; gap: 0; margin: 30px 0 40px; border: 1px solid var(--line); width: fit-content; }

.filter {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 24px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter + .filter { border-left: 1px solid var(--line); }
.filter:hover { color: var(--foam); }
.filter.on { background: var(--jade); color: var(--deep); }

.email-card.hidden { display: none; }

.section-count {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.see-more { text-align: center; margin-top: clamp(40px, 6vh, 64px); }
.see-more .btn { cursor: pointer; }

.email-archive { margin-top: clamp(40px, 6vh, 60px); }
.email-archive[hidden] { display: none; }
.email-archive .filters { margin-top: 0; }

/* ---------- brand & landing pages ---------- */
.pages-section {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vh, 100px) 0 clamp(90px, 13vh, 140px);
}

.section-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 520px;
  margin: -22px 0 36px;
  line-height: 2;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
}

.email-thumb.wide { aspect-ratio: 16 / 10; }

/* ---------- viewer modal ---------- */
.viewer { position: fixed; inset: 0; z-index: 200; display: none; }
.viewer.open { display: block; }

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 16, 13, 0.74);
  backdrop-filter: blur(5px);
}

.viewer-panel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, calc(100vw - 32px));
  height: min(88vh, 1000px);
  background: #f4f4f2;
  border: 1px solid var(--jade);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  animation: viewerIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes viewerIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--deep-2);
  color: var(--foam);
}

.viewer-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.viewer-open {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.viewer-open:hover { color: var(--jade); }

.viewer-close {
  background: none;
  border: none;
  color: var(--foam);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
}

#viewer-frame { flex: 1; width: 100%; border: 0; background: #f7f7f7; }

/* ---------- resume page ---------- */
.record-hero {
  padding: clamp(140px, 21vh, 200px) 0 clamp(50px, 8vh, 90px);
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(70, 198, 158, 0.07), transparent 65%);
}

.record-hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 28px;
}

.record-hero h1 em { font-style: italic; font-weight: 400; color: var(--jade); }

.record-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  max-width: 560px;
  line-height: 2;
}

.record-metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vh, 64px) 0; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.metric { padding: 4px 20px 0 0; }
.metric + .metric { border-left: 1px solid var(--line); padding-left: 24px; }

.metric-value {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.metric-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

.record-work { padding: clamp(70px, 11vh, 110px) 0; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
  margin-top: 40px;
}

.case-card {
  background: transparent;
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, background 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--jade);
  background: rgba(70, 198, 158, 0.04);
}

.case-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--jade);
  color: var(--jade);
}

.case-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.case-via {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.case-card > p:not(.case-via) {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 20px;
}

.case-card strong { color: var(--foam); font-weight: 500; }

.case-points { list-style: none; border-top: 1px solid var(--line); padding-top: 16px; }

.case-points li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.case-points li::before { content: "—"; position: absolute; left: 0; color: var(--jade); }

.record-journey { border-top: 1px solid var(--line); padding: clamp(70px, 11vh, 110px) 0; }

.timeline { position: relative; margin-top: 40px; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline-item { position: relative; padding-bottom: 38px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -34px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--jade);
}

.timeline-when {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 5px;
}

.timeline-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item p { font-size: 0.78rem; line-height: 1.9; color: var(--muted); max-width: 560px; }

.education {
  margin-top: 46px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- film credits (table) ---------- */
.credits-section { border-top: 1px solid var(--line); padding: clamp(70px, 11vh, 110px) 0; }

.credits-table {
  width: 100%;
  margin-top: 40px;
  border: 1px solid var(--line);
  border-collapse: collapse;
}

.credits-table th {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--jade);
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(98, 226, 180, 0.05);
}

.credits-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.credits-table tr:last-child td { border-bottom: none; }
.credits-table tbody tr { transition: background 0.2s; }
.credits-table tbody tr:hover { background: rgba(98, 226, 180, 0.05); }

.credits-table .ct-prod {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foam);
  white-space: nowrap;
}

.credits-table .ct-role {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.credits-table .ct-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--muted);
}

.credits-table .ct-note strong { color: var(--foam); font-weight: 500; }

/* ---------- services index (home strip) ---------- */
.svc-index {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.svc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s;
}

.svc-row:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-row:hover { background: rgba(98, 226, 180, 0.05); }

.svc-row h3 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--foam);
}

.svc-row h3 em { font-style: italic; font-weight: 400; }

.svc-row .svc-no {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--jade);
}

.svc-cta { margin-top: 40px; text-align: center; }

/* ---------- skills ---------- */
.record-skills { border-top: 1px solid var(--line); padding: clamp(70px, 11vh, 110px) 0 clamp(90px, 13vh, 130px); }

.skills-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.skill-group h3 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}

.chips span:hover { border-color: var(--jade); color: var(--jade); }

.record-cta { margin-top: clamp(46px, 7vh, 70px); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 44px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links { display: flex; gap: 26px; }

.footer-links a { color: var(--muted); text-decoration: none; text-transform: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--jade); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .feature-grid, .email-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd), .metric:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat { padding: 26px 20px 22px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 18px; }
  .services-grid { grid-template-columns: 1fr; }
  .credits-table .ct-note { display: none; }
  .svc-index { grid-template-columns: 1fr; }
  .svc-row:nth-child(odd) { border-right: none; }
  .nav-meta .nav-place { display: none; }
}

@media (max-width: 640px) {
  :root { --frame: 8px; }
  .feature-grid, .email-grid, .case-grid, .page-grid { grid-template-columns: 1fr; }
  .stats-row, .metrics-grid { grid-template-columns: 1fr; }
  .stat + .stat, .metric + .metric { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .metric { padding-bottom: 18px; }
  .skills-grid { grid-template-columns: 1fr; }
  .viewer-panel { width: calc(100vw - 16px); height: 92vh; }
  .section-head { flex-direction: column; gap: 10px; align-items: flex-start; }
  .credits-table .ct-prod { white-space: normal; }
  .credits-table th, .credits-table td { padding: 12px 14px; }
  .lockup span { padding: 2px 10px; letter-spacing: 0.18em; font-size: 0.58rem; }
  .nav-meta { display: none; }
  .corner { display: none; }
  .nav-links { gap: 14px; }
}
