/* Griffin Brodman — Koi Pond */
:root {
  --water-deep: #0a2e30;
  --water: #134543;
  --jade: #6fa89a;
  --ink: #0f2a29;
  --ink-2: #314845;
  --ink-3: #384d49;
  --cream: #f6f1e6;
  --cream-2: #efe8d9;
  --paper: rgba(253, 246, 232, 0.90);
  --paper-solid: #f3eee3;
  --line: rgba(15, 42, 41, 0.12);
  --koi: #d9541f;
  --koi-ink: #872f0f;
  --gold: #c99a3c;
  --radius: 26px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 40px 80px -40px rgba(2, 22, 24, 0.75), 0 12px 30px -18px rgba(2, 22, 24, 0.5);
  --f-name: "Bree Serif", "Roboto Slab", "Rockwell", "DejaVu Serif", Georgia, serif;
  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, "Liberation Serif", Georgia, serif;
  --f-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5.5vw, 88px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--water-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(217, 84, 31, 0.25); }

/* ---------- pond ---------- */
.pond, .pond-fallback {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
}
.pond { opacity: 0; transition: opacity 1.4s ease; touch-action: pan-y; }
.pond.is-ready { opacity: 1; }
.pond-fallback {
  background:
    radial-gradient(60% 50% at 72% 30%, rgba(111, 168, 154, 0.35), transparent 70%),
    radial-gradient(40% 35% at 20% 80%, rgba(217, 84, 31, 0.18), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, #18504d 0%, #0d3536 55%, #072426 100%);
}
.pond-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 70% 35%, rgba(255,255,255,0.05) 0 1px, transparent 2px 46px);
  opacity: .6;
}
.has-pond .pond-fallback { opacity: 0; transition: opacity 1.4s ease 0.2s; }

/* ---------- layout ---------- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.page { position: relative; z-index: 1; }

.card {
  position: relative;
  background: var(--paper);
  -webkit-backdrop-filter: blur(28px) saturate(1.2) brightness(1.12) sepia(0.12);
  backdrop-filter: blur(28px) saturate(1.2) brightness(1.12) sepia(0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  isolation: isolate;
}
/* faint paper grain so bright shapes under the glass read as texture, not smudges */
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .52 0 0 0 0 .45 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: var(--paper-solid); }
}

:focus-visible {
  outline: 3px solid var(--koi);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(16px, 7vh, 84px);
  position: relative;
}
.hero-card {
  width: min(580px, 100%);
  padding: clamp(24px, 3.4vw, 44px);
}
.hero-top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(16px, 2.4vw, 26px); }
.portrait {
  position: relative;
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.7), 0 8px 20px -8px rgba(2,22,24,0.6);
  background: #164a47;
}
.portrait svg, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  margin: 0;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--koi); box-shadow: 0 0 0 4px rgba(217,84,31,0.16); }

.name {
  font-family: var(--f-name);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.tagline {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}
.sub { margin: 0 0 26px; color: var(--ink-2); font-size: 16px; max-width: 42ch; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 41, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: 600 15px/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: #fff; border-color: rgba(15, 42, 41, 0.32); transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(2,22,24,.6); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: #1b3d3b; border-color: #1b3d3b; }
.btn .ext { opacity: .55; font-size: 13px; transform: translateY(-1px); }

.email-reveal {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  animation: rise .45s cubic-bezier(.2,.8,.2,1);
}
.email-reveal[hidden] { display: none; }
.email-reveal a { font-weight: 700; color: var(--koi-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; word-break: break-all; min-height: 44px; display: inline-flex; align-items: center; }
.email-reveal .btn { min-height: 44px; margin-left: auto; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pond-hint {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(16px, 7vh, 84px);
  margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--ink);
  background: rgba(247, 243, 234, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  pointer-events: none;
  transition: opacity .8s ease, transform .8s ease;
}
.pond-hint.is-done { opacity: 0; transform: translateY(6px); }
.pond-hint svg { width: 18px; height: 18px; }
.reduced .pond-hint, .no-pond .pond-hint { display: none; }
.hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .hint-mouse { display: inline; } .hint-touch { display: none; } }

/* ---------- sections ---------- */
.flow {
  padding: 0 var(--gutter);
  display: grid;
  gap: clamp(72px, 18vh, 190px);
  padding-top: clamp(48px, 12vh, 140px);
  padding-bottom: clamp(72px, 16vh, 170px);
}
.section {
  width: min(700px, 100%);
  padding: clamp(26px, 3.6vw, 48px);
}
.section:nth-child(even) { justify-self: start; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section h2 em { font-style: italic; color: var(--koi-ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; margin: 0 0 18px; max-width: 40ch; text-wrap: pretty; }
.lead strong { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.chips li {
  font-size: 14px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 8px;
}
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--koi); opacity: .85; }
.chips li:nth-child(2)::before { background: var(--gold); }
.chips li:nth-child(3)::before { background: #2f6f69; }
.chips li:nth-child(4)::before { background: #1a1d1f; }
.aside { margin: 0; color: var(--ink-2); }
.aside a, .text-link { color: var(--koi-ink); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.aside a:hover, .text-link:hover { text-decoration-thickness: 2px; }
.aside a { display: inline-block; padding: 11px 0; margin: -11px 0; }

/* timeline */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(to bottom, var(--koi), rgba(15,42,41,.18) 30%, rgba(15,42,41,.12));
}
.timeline > li { position: relative; padding: 0 0 30px 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper-solid);
  border: 2px solid rgba(15,42,41,.35);
}
.timeline > li:first-child::before { border-color: var(--koi); background: radial-gradient(circle, var(--koi) 0 3.5px, var(--paper-solid) 4px); }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tl-head h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.005em; }
.years { font-size: 14px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.roles { list-style: none; margin: 6px 0 0; padding: 0; color: var(--ink-2); }
.roles li { padding: 2px 0; }
.roles li + li { position: relative; }
.timeline > li:first-child .roles li:first-child { color: var(--ink); font-weight: 600; }

/* footer */
.foot-wrap { padding: 0 var(--gutter) clamp(20px, 5vh, 48px); position: relative; z-index: 1; }
.foot {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-2);
}
.foot svg { width: 22px; height: 22px; }
.foot-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.paint-strip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  color: var(--ink-2); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
}
.paint-thumbs { display: flex; }
.paint-thumbs img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper-solid);
  margin-left: -10px;
  transition: transform .2s ease;
}
.paint-thumbs img:first-child { margin-left: 0; }
.paint-strip:hover .paint-thumbs img { transform: translateY(-2px); }
.paint-strip .ext { opacity: .55; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 40vh; }
  .hero-card { width: 100%; }
  .pond-hint { position: static; align-self: center; margin-top: 14px; font-size: 12.5px; padding: 8px 13px; }
  .card { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); --paper: rgba(253, 246, 232, 0.90); -webkit-backdrop-filter: blur(16px) brightness(1.1) sepia(0.12); backdrop-filter: blur(16px) brightness(1.1) sepia(0.12); }
  .links { gap: 8px; }
  .btn { padding: 0 15px; font-size: 14.5px; }
  .flow { gap: 56px; }
  .foot { border-radius: 20px; flex-wrap: wrap; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .hero { padding-top: 34vh; }
  .pond-hint { top: var(--gutter); bottom: auto; }
}

/* ---------- 404 ---------- */
.shrine-page {
  min-height: 100vh; min-height: 100svh;
  background:
    radial-gradient(70% 55% at 70% 28%, rgba(111, 168, 154, 0.34), transparent 70%),
    radial-gradient(45% 40% at 18% 85%, rgba(217, 84, 31, 0.14), transparent 70%),
    radial-gradient(130% 100% at 50% 35%, #1a5551 0%, #0e3839 55%, #072426 100%);
}
.shrine-page::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 30%, rgba(255,255,255,0.045) 0 1px, transparent 2px 38px);
  -webkit-mask-image: radial-gradient(closest-side at 50% 30%, #000 0, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 30%, #000 0, transparent 100%);
}
.shrine {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(16px, 5vw, 64px);
}
.shrine-card { --paper: rgba(250, 246, 236, 0.9); width: min(560px, 100%); padding: clamp(26px, 4vw, 48px); text-align: center; }
.fossil { width: clamp(140px, 30vw, 196px); height: auto; margin: -4px auto 14px; filter: drop-shadow(0 18px 18px rgba(4, 28, 30, .35)); }
.shrine-card .eyebrow { justify-content: center; margin-bottom: 10px; }
.shrine-card h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 50px); line-height: 1.05; margin: 0 0 24px; text-wrap: balance;
}
.confess { text-align: left; }
.confess label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.confess textarea {
  width: 100%; min-height: 120px; resize: vertical;
  padding: 14px 16px;
  font: 16px/1.5 var(--f-body); color: var(--ink);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,42,41,0.22);
  border-radius: 16px;
}
.confess textarea:focus-visible { outline: 3px solid var(--koi); outline-offset: 2px; border-color: transparent; }
.confess-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.forgiven { padding: 8px 0 4px; animation: rise .6s cubic-bezier(.2,.8,.2,1); }
.forgiven[hidden], .confess[hidden] { display: none; }
.forgiven:focus { outline: none; }
.forgiven p { font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 20px; }
.home-link { color: var(--ink-2); font-weight: 600; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.is-forgiven .fossil { animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { filter: drop-shadow(0 18px 18px rgba(4,28,30,.35)); } to { filter: drop-shadow(0 0 22px rgba(255, 214, 140, .75)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
