/* ============================================================
   TAN Castle · Kukup Team Bonding — site stylesheet
   Token system: "kelong at dusk" — dark tide-water ground,
   warm ember (sunset/string lights) + teal (lantern) accents,
   a violet glow borrowed from the resort's own LED-lit rooms.
   ============================================================ */

:root {
  --ink:        #0A1613;
  --panel:      #10201C;
  --panel-soft: #142722;
  --paper:      #F4EFE4;
  --text:       #EDE6D8;
  --text-dim:   #9CAAA2;
  --text-faint: #6C7B75;
  --line:       rgba(237, 230, 216, 0.14);
  --line-soft:  rgba(237, 230, 216, 0.07);

  --teal:       #34C39B;
  --teal-deep:  #1E7A5F;
  --teal-wash:  rgba(52, 195, 155, 0.12);

  --ember:      #E68A4C;
  --ember-soft: rgba(230, 138, 76, 0.15);

  --glow:       #8C7CFF;
  --glow-soft:  rgba(140, 124, 255, 0.18);

  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.35);

  --display: "Fraunces", Georgia, "Iowan Old Style", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --edge: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--ink); }

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

.eyebrow {
  font-family: var(--mono);
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 1.4em; height: 1px;
  background: var(--teal);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.accent { color: var(--teal); font-style: italic; }
.accent-ember { color: var(--ember); font-style: italic; }

p { margin: 0; }

/* ---------- ambient signature: light on water ---------- */
.tide-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tide-glow::before,
.tide-glow::after {
  content: "";
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}
.tide-glow::before {
  left: -20vmax; top: -30vmax;
  background: radial-gradient(circle, var(--teal), transparent 60%);
  animation: drift-a 34s ease-in-out infinite;
}
.tide-glow::after {
  right: -25vmax; bottom: -25vmax;
  background: radial-gradient(circle, var(--glow), transparent 60%);
  animation: drift-b 40s ease-in-out infinite;
}
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(8vmax, 6vmax) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6vmax, -8vmax) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .tide-glow::before, .tide-glow::after { animation: none; }
}

/* ---------- nav ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 2.4vw, 22px) var(--edge);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 320ms ease, border-color 320ms ease, backdrop-filter 320ms ease;
}
.topnav.solid {
  background: rgba(10, 22, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.topnav .word {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topnav .word b { color: var(--teal); font-weight: 500; font-style: italic; }
.topnav .word .back {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  transition: color 200ms ease, transform 200ms ease;
}
.topnav .word:hover .back { color: var(--teal); transform: translateX(-3px); }
.topnav .links a.compare {
  color: var(--teal);
  border: 1px solid var(--teal-wash);
  padding: 5px 12px;
  border-radius: 999px;
}
.topnav .links a.compare:hover { background: var(--teal-wash); }
.venue-tabs {
  display: flex;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.venue-tabs a {
  padding: 5px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-dim);
  transition: background 200ms ease, color 200ms ease;
}
.venue-tabs a:hover { color: var(--text); }
.venue-tabs a.active { background: var(--teal-wash); color: var(--teal); }
.topnav .links {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topnav .links a {
  text-decoration: none;
  color: var(--text-dim);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.topnav .links a:hover,
.topnav .links a.active { color: var(--text); border-color: var(--teal); }
@media (max-width: 760px) { .topnav .links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 65%;
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08) translateY(-1%); }
}
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }
.hero .veil {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(10,22,19,.55) 42%, rgba(10,22,19,.18) 65%),
    linear-gradient(to bottom, rgba(10,22,19,.55) 0%, rgba(10,22,19,0) 30%);
}

.hero-content {
  padding: calc(var(--edge) + 64px) var(--edge) clamp(96px, 15vh, 160px);
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { margin-bottom: clamp(16px, 3vh, 28px); }
.hero-content h1 {
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.94;
  color: var(--paper);
}
.hero-content .sub {
  margin-top: clamp(16px, 2.4vh, 26px);
  font-size: clamp(16px, 1.7vw, 22px);
  color: var(--text-dim);
  max-width: 52ch;
}

.hero-facts {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 48px);
}
.hero-facts .fact { min-width: 92px; }
.hero-facts .num {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--paper);
  line-height: 1;
}
.hero-facts .lbl {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.scrollcue {
  position: absolute;
  left: 50%; bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scrollcue .line {
  width: 1px; height: 34px;
  background: linear-gradient(var(--teal), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0.3); transform-origin: top; opacity: .4; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .scrollcue .line { animation: none; } }
@media (max-height: 760px) {
  .hero-content h1 { font-size: clamp(40px, 9vw, 108px); }
  .hero-facts { margin-top: clamp(18px, 3vh, 30px); }
  .scrollcue { display: none; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- sections (general) ---------- */
section { position: relative; z-index: 1; }
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--edge);
}
.wrap.tight { padding-top: clamp(48px, 8vh, 90px); padding-bottom: clamp(48px, 8vh, 90px); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head h2 {
  margin-top: clamp(10px, 1.6vh, 18px);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
}

/* ---------- story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.story p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: var(--measure);
}
.story p + p { margin-top: 1.1em; }
.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--paper);
  border-left: 2px solid var(--teal);
  padding-left: clamp(18px, 2.4vw, 28px);
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(120px, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
}
.gallery figure {
  margin: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.gallery figure.g1 { grid-column: 1 / 4; grid-row: 1 / 3; }
.gallery figure.g2 { grid-column: 4 / 7; grid-row: 1 / 2; }
.gallery figure.g3 { grid-column: 4 / 6; grid-row: 2 / 4; }
.gallery figure.g4 { grid-column: 6 / 7; grid-row: 2 / 4; }
.gallery figure.g5 { grid-column: 1 / 3; grid-row: 3 / 4; }
.gallery figure.g6 { grid-column: 3 / 4; grid-row: 3 / 4; }

.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(.16,1,.3,1), filter 900ms ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(10px, 1.6vw, 18px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgba(6,12,10,.86), transparent 70%);
  transform: translateY(6px);
  opacity: 0.88;
  transition: transform 300ms ease, opacity 300ms ease;
}
.gallery figure:hover figcaption { transform: translateY(0); opacity: 1; }

@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery figure.g1 { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery figure.g2 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery figure.g3 { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery figure.g4 { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery figure.g5 { grid-column: 2 / 3; grid-row: 3 / 4; }
  .gallery figure.g6 { grid-column: 1 / 3; grid-row: 4 / 5; }
}

/* ---------- itinerary / tide line ---------- */
.itin-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
@media (max-width: 820px) { .itin-days { grid-template-columns: 1fr; } }

.day-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(6px, 1.4vh, 14px);
}
.day-head .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.day-head h3 {
  font-size: clamp(19px, 1.8vw, 23px);
  color: var(--paper);
}

.tideline { position: relative; padding-left: 28px; }
.tideline svg {
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 16px; height: calc(100% - 12px);
  overflow: visible;
}
.tideline .rail {
  stroke: var(--line);
  stroke-width: 1.4;
  fill: none;
}
.tideline .fill {
  stroke: var(--teal);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1200ms cubic-bezier(.16,1,.3,1);
}
.tideline.in .fill { stroke-dashoffset: 0; }

.itin-row {
  position: relative;
  padding: clamp(12px, 2vh, 18px) 0;
  border-top: 1px solid var(--line-soft);
}
.itin-row:first-child { border-top: none; }
.itin-row::before {
  content: "";
  position: absolute;
  left: -28px; top: clamp(18px, 2.6vh, 24px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.4px solid var(--teal);
  transition: background 300ms ease 200ms;
}
.tideline.in .itin-row::before { background: var(--teal); }

.itin-row .time {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--teal);
}
.itin-row .what {
  margin-top: 4px;
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--paper);
}
.itin-row .sub {
  display: block;
  margin-top: 3px;
  font-size: 0.8em;
  color: var(--text-faint);
}

/* ---------- route / map ---------- */
.route-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 860px) { .route-layout { grid-template-columns: 1fr; } }

.route-info p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 46ch;
}
.route-stops {
  margin-top: clamp(20px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.route-stop {
  position: relative;
  padding: 4px 0 4px 26px;
  font-size: 14.5px;
}
.route-stop::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.4px solid var(--teal);
  background: var(--ink);
}
.route-stop.end::before { background: var(--teal); }
.route-stop::after {
  content: "";
  position: absolute;
  left: 3px; top: 17px;
  width: 1px; height: calc(100% + 2px);
  background: var(--line);
}
.route-stop.end::after { display: none; }
.route-stop .place { color: var(--paper); font-weight: 500; }
.route-stop .addr { display: block; color: var(--text-faint); font-size: 0.85em; margin-top: 1px; }

.route-directions {
  margin-top: clamp(18px, 2.6vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--teal-wash);
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 200ms ease, border-color 200ms ease;
}
.route-directions:hover { background: var(--teal-wash); border-color: var(--teal); }

.mapbox {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}
.mapbox iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
@media (max-width: 860px) { .mapbox { aspect-ratio: 16 / 11; } }

/* ---------- cost ---------- */
.cost-tracks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: end;
}
@media (max-width: 760px) { .cost-tracks { grid-template-columns: 1fr; } }

.track {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(20px, 2.6vw, 30px) clamp(18px, 2.4vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
}
.track.rec {
  border-color: var(--teal);
  background: linear-gradient(180deg, var(--teal-wash), var(--panel) 60%);
  box-shadow: 0 0 0 1px var(--teal-wash), var(--shadow);
}
.track .tag2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.track.rec .tag2 { color: var(--teal); }
.track .tag2 .star { margin-left: 4px; }
.track h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  color: var(--paper);
  margin: 0;
}

.bar-scale {
  height: clamp(90px, 14vh, 150px);
  display: flex;
  align-items: flex-end;
}
.bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--line);
  height: 0%;
  transition: height 1100ms cubic-bezier(.16,1,.3,1);
  position: relative;
}
.track.rec .bar { background: linear-gradient(180deg, var(--teal), var(--teal-deep)); }
.cost-tracks.in .bar { height: var(--h); }

.track .amount {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.track .amount .unit { font-size: 0.42em; color: var(--text-faint); font-family: var(--mono); }
.track .lineitems {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.track .lineitems li { display: flex; justify-content: space-between; gap: 10px; }
.track .lineitems span:last-child { font-variant-numeric: tabular-nums; color: var(--text-faint); }

.cost-foot {
  margin-top: clamp(28px, 4vh, 44px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: clamp(20px, 3vh, 30px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.cost-foot b { color: var(--teal); font-weight: 500; }

/* ---------- cost: itemised breakdown ---------- */
.cost-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
  margin-bottom: clamp(28px, 4vh, 44px);
}
@media (max-width: 700px) { .cost-summary { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 26px);
}
.stat-card .num {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.stat-card .num.over { color: var(--ember); }
.stat-card .num .unit { font-size: 0.4em; color: var(--text-faint); font-family: var(--mono); }
.stat-card .lbl {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.stat-card .cap-note { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.stat-card .cap-note.ok { color: var(--teal); }
.stat-card .cap-note.over { color: var(--ember); }

.cost-detail-wrap { overflow-x: auto; }
table.cost-detail {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: clamp(13px, 1.5vw, 15px);
}
table.cost-detail th, table.cost-detail td {
  text-align: right;
  padding: clamp(9px, 1.4vw, 14px) clamp(8px, 1.4vw, 14px);
  border-top: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
table.cost-detail th:first-child, table.cost-detail td:first-child { text-align: left; }
table.cost-detail thead th {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.76em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: none;
  border-bottom: 2px solid var(--ink);
}
table.cost-detail tbody th { font-weight: 400; color: var(--text-dim); }
table.cost-detail td.incl { color: var(--text-faint); font-style: italic; font-size: 0.92em; }
table.cost-detail tr.total th, table.cost-detail tr.total td {
  border-top: 2px solid var(--ink);
  font-weight: 700;
  color: var(--paper);
  font-size: 1.05em;
}
table.cost-detail sup.inf { color: var(--ember); font-style: normal; margin-left: 2px; }

.cost-footnote {
  margin-top: clamp(16px, 2.4vh, 22px);
  font-size: 12.5px;
  color: var(--text-faint);
  max-width: 72ch;
}
.cost-footnote b { color: var(--ember); }

/* ---------- logistics ---------- */
.logi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
@media (max-width: 760px) { .logi-grid { grid-template-columns: 1fr; } }
.logi-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(18px, 2.2vw, 24px);
}
.logi-card .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
}
.logi-card p { margin-top: 10px; font-size: 14.5px; color: var(--text-dim); }

/* ---------- footer / contact ---------- */
.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.contact-row:first-child { border-top: none; }
.contact-row .who { color: var(--paper); font-weight: 500; }
.contact-row .role { color: var(--text-faint); }
.contact-row a { color: var(--teal); text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .contact-row { grid-template-columns: 1fr; gap: 4px; }
}

footer {
  border-top: 1px solid var(--line);
  padding: clamp(28px, 4vh, 40px) var(--edge);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.btn-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 40;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(16, 32, 28, 0.75);
  backdrop-filter: blur(6px);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease, border-color 200ms ease, color 200ms ease;
}
.btn-top.show { opacity: 1; pointer-events: auto; transform: none; }
.btn-top:hover { color: var(--teal); border-color: var(--teal); }
