:root {
  /* warm, tinted neutrals — scoreboard at night */
  --ink-0:   oklch(0.11  0.010 60);
  --ink-1:   oklch(0.14  0.012 60);
  --ink-2:   oklch(0.18  0.014 60);
  --ink-3:   oklch(0.24  0.015 60);
  --rule:    oklch(0.30  0.015 60);
  --rule-2:  oklch(0.38  0.016 60);
  --text-1:  oklch(0.965 0.008 85);
  --text-2:  oklch(0.78  0.012 70);
  --text-3:  oklch(0.55  0.012 65);

  --amber:   oklch(0.82  0.17 78);
  --amber-2: oklch(0.72  0.17 65);
  --blaze:   oklch(0.70  0.22 32);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 192px;

  --t-mega:  clamp(2.5rem, 5.4vw, 5rem);
  --t-xl:    clamp(2.75rem, 6vw, 5.25rem);
  --t-lg:    clamp(1.75rem, 3.25vw, 2.5rem);
  --t-md:    1.125rem;
  --t-sm:    0.9375rem;
  --t-xs:    0.8125rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);

  --measure: 62ch;
  --page-pad: clamp(20px, 4.5vw, 56px);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-1);
  color: var(--text-1);
  font-family: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--t-md);
  line-height: 1.5;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--ink-0); }

a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Big Shoulders Display", "Schibsted Grotesk", sans-serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
p { margin: 0; max-width: var(--measure); }

.mono { font-family: "Martian Mono", ui-monospace, monospace; font-feature-settings: "zero"; }
.eyebrow {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow--amber { color: var(--amber); }

.shell { padding-inline: var(--page-pad); }
main > section { border-top: 1px solid var(--rule); }
main > section:first-child { border-top: 0; }

/* ===== top bar ===== */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: inherit;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--amber); box-shadow: 0 0 0 3px color-mix(in oklab, var(--amber) 25%, transparent);
  animation: breathe 4.2s var(--ease-out) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px color-mix(in oklab, var(--amber) 25%, transparent); }
  50%      { opacity: 0.82; box-shadow: 0 0 0 5px color-mix(in oklab, var(--amber) 14%, transparent); }
}
.topbar nav {
  justify-self: center;
  display: flex; gap: var(--s-5);
  font-size: var(--t-sm);
  color: var(--text-2);
}
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: var(--text-1); }
.topbar .btn { justify-self: end; }
@media (max-width: 720px) {
  .topbar { grid-template-columns: auto 1fr; }
  .topbar nav { display: none; }
}

/* ===== buttons ===== */
.btn {
  --bg: var(--amber);
  --fg: var(--ink-0);
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 14px 20px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 1px solid var(--bg);
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out);
}
.btn:hover { background: color-mix(in oklab, var(--amber) 85%, white); transform: translateY(-1px); }
.btn--ghost {
  --bg: transparent; --fg: var(--text-1);
  border: 1px solid var(--rule-2);
}
.btn--ghost:hover { background: var(--ink-3); transform: none; }
.btn .arrow { transition: transform 240ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== ticker ===== */
.ticker {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--text-2);
  border-bottom: 1px solid var(--rule);
  padding-block: 10px;
  display: flex; align-items: center; gap: var(--s-4);
  white-space: nowrap; overflow: hidden;
}
.ticker .pulse {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--amber);
  flex: none;
  animation: pulse 1.8s var(--ease-out) infinite;
}
.ticker.is-live .pulse { background: var(--blaze); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
.ticker strong { color: var(--text-1); font-weight: 700; letter-spacing: 0.02em; }
.ticker .sep { color: var(--text-3); }
@media (max-width: 560px) {
  .ticker { font-size: 0.75rem; gap: var(--s-3); }
  .ticker .ticker-item:last-child { display: none; }
}

/* ===== hero ===== */
.hero { padding-block: clamp(40px, 7vw, 80px) clamp(48px, 8vw, 96px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: end;
}
.hero-text { display: flex; flex-direction: column; gap: var(--s-6); padding-top: var(--s-3); }
.hero-text .eyebrow { margin-bottom: calc(-1 * var(--s-4)); }
.hero-wordmark {
  font-size: var(--t-mega);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
.hero-wordmark .accent { color: var(--amber); }
.hero-text .lede { font-size: clamp(1.0625rem, 1.2vw, 1.25rem); color: var(--text-2); max-width: 48ch; }
.hero-text .lede em { font-style: normal; color: var(--text-1); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero-visual { position: relative; }
.hero-visual .action-frame { aspect-ratio: 5/6; width: 100%; max-height: min(60vh, 540px); }
.hero-visual .action-frame img { height: 100%; width: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); align-items: start; }
  .hero-visual { order: 2; }
  .hero-visual .action-frame { aspect-ratio: 16/10; max-height: none; }
}

/* ===== stat strip ===== */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--s-8);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-strip--flush { margin-top: 0; }
.stat {
  padding: var(--s-5) var(--s-5) var(--s-4);
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; }
.stat .k {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat .l {
  margin-top: var(--s-2);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }
  .stat:nth-child(4) { border-top: 1px solid var(--rule); }
}

/* ===== section chrome ===== */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
.section-head .no {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: start;
  padding-top: 10px;
}
.section-head h2 { font-size: var(--t-xl); max-width: 16ch; }
.section-head .kicker {
  grid-column: 2;
  color: var(--text-2);
  font-size: 1.0625rem;
  margin-top: var(--s-3);
  max-width: 52ch;
}

/* ===== action images ===== */
.action-frame { position: relative; margin: 0; overflow: hidden; display: block; background: var(--ink-0); }
.action-frame img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.86) contrast(1.06) sepia(0.12);
  transition: transform 1100ms var(--ease-out-strong), filter 600ms var(--ease-out);
}
.action-frame:hover img { transform: scale(1.015); filter: saturate(0.9) brightness(0.92) contrast(1.06) sepia(0.1); }
.action-frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, color-mix(in oklab, var(--ink-0) 78%, transparent) 100%),
    radial-gradient(70% 80% at 85% 15%, color-mix(in oklab, var(--amber) 16%, transparent) 0%, transparent 68%),
    radial-gradient(140% 120% at 50% 50%, transparent 55%, color-mix(in oklab, var(--ink-0) 55%, transparent) 100%);
  pointer-events: none;
}
.action-cap {
  position: absolute; left: clamp(16px, 2.4vw, 24px); right: clamp(16px, 2.4vw, 24px);
  bottom: clamp(14px, 1.8vw, 22px);
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-1);
  pointer-events: none;
}
.action-cap .cap-when { color: var(--amber); }
.action-cap .cap-title { color: var(--text-1); opacity: 0.92; }

.action-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0; }
.action-frame--wide { aspect-ratio: 12/5; }
@media (max-width: 780px) { .action-frame--wide { aspect-ratio: 5/4; } }

.floor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: var(--s-4); }
.floor-grid .action-frame { aspect-ratio: 1/1; border: 1px solid var(--rule); }
@media (max-width: 900px) { .floor-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== schedule ===== */
.schedule { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: var(--s-4); border: 1px solid var(--rule); }
.day {
  padding: var(--s-5) var(--s-4) var(--s-4);
  border-left: 1px solid var(--rule);
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink-1);
}
.day:first-child { border-left: 0; }
.day .dow { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 0.95; letter-spacing: -0.01em; }
.day .time { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.8125rem; color: var(--text-2); margin-top: var(--s-2); }
.day .status { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-top: var(--s-4); }
.day.is-rest { background: var(--ink-0); }
.day.is-rest .dow { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--rule-2); }
.day.is-rest .time { color: var(--text-3); }
.day.is-rest .status { color: var(--amber); }
.day.is-next { background: var(--ink-2); }
.day.is-next .status { color: var(--amber); }
@media (max-width: 780px) {
  .schedule { grid-template-columns: repeat(2, 1fr); }
  .day { border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
  .day:nth-child(odd) { border-left: 0; }
  .day:nth-child(-n+2) { border-top: 0; }
  .day { min-height: 140px; }
}

/* ===== how it works ===== */
.mechanics { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }
.step { grid-column: span 4; padding: var(--s-5) 0 0; border-top: 2px solid var(--text-1); }
.step-visual { margin-bottom: var(--s-5); }
.step-visual .action-frame { aspect-ratio: 4/3; width: 100%; }
.step .n { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; color: var(--amber); letter-spacing: -0.01em; }
.step h3 { font-size: clamp(1.5rem, 2vw, 2rem); margin-top: var(--s-3); }
.step p { margin-top: var(--s-3); color: var(--text-2); font-size: 1rem; max-width: 34ch; }
.step:nth-child(1) { grid-column: 1 / span 4; }
.step:nth-child(2) { grid-column: 5 / span 4; margin-top: var(--s-7); }
.step:nth-child(3) { grid-column: 9 / span 4; margin-top: var(--s-9); }
@media (max-width: 860px) {
  .step, .step:nth-child(1), .step:nth-child(2), .step:nth-child(3) { grid-column: 1 / -1; margin-top: 0; }
  .step + .step { border-top: 1px solid var(--rule); padding-top: var(--s-5); }
}

/* ===== points list ===== */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--rule); }
.points-head { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(1.75rem, 2.6vw, 2.25rem); letter-spacing: -0.01em; text-transform: uppercase; }
.points-list { list-style: none; padding: 0; margin: 0; display: grid; }
.points-list li { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.points-list li:last-child { border-bottom: 0; }
.points-list .what { color: var(--text-1); }
.points-list .pts { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.9375rem; color: var(--amber); font-variant-numeric: tabular-nums; }
@media (max-width: 780px) { .points { grid-template-columns: 1fr; } }

/* ===== leaderboard ===== */
.board-wrap { border: 1px solid var(--rule); background: var(--ink-2); overflow: hidden; }
.board-head {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px;
  padding: var(--s-4) var(--s-5);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--rule-2);
}
.board-row {
  display: grid;
  grid-template-columns: 80px 1fr 140px 140px;
  align-items: center;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  transition: background 180ms var(--ease-out);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: var(--ink-3); }
.board-row:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.board-row .rk { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: 1.75rem; line-height: 1; color: var(--text-2); letter-spacing: -0.01em; }
.board-row .nm { font-weight: 500; font-size: 1.0625rem; color: var(--text-1); }
.board-row .nm .handle { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.8125rem; color: var(--text-3); margin-left: var(--s-2); }
.board-row .num { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.9375rem; color: var(--text-2); }
.board-row.is-top .rk { color: var(--amber); }
.board-row.is-top .nm { font-weight: 700; }
.board-row.is-top { background: color-mix(in oklab, var(--amber) 10%, var(--ink-2)); }
.board-row.is-top .num { color: var(--text-1); }
.board-row .streak::after { content: "🔥"; margin-left: 6px; opacity: 0.9; }
@media (max-width: 700px) {
  .board-head, .board-row { grid-template-columns: 50px 1fr 88px; }
  .board-head .c-streak, .board-row .streak { display: none; }
}

.board-note { margin-top: var(--s-4); font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.04em; }

/* ===== faq ===== */
.faq { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: var(--s-8); }
.faq-title { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; text-transform: uppercase; font-size: var(--t-xl); line-height: 0.92; letter-spacing: -0.01em; }
.faq-list { display: grid; }
details.q { border-top: 1px solid var(--rule); padding: var(--s-5) 0; }
details.q:last-child { border-bottom: 1px solid var(--rule); }
details.q summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: baseline;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  letter-spacing: -0.005em;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-family: "Martian Mono", ui-monospace, monospace; font-weight: 400; font-size: 1.25rem; color: var(--amber); transition: transform 240ms var(--ease-out); }
details.q[open] summary::after { content: "—"; }
details.q .a { margin-top: var(--s-3); color: var(--text-2); max-width: 60ch; font-size: 1rem; }
@media (max-width: 780px) { .faq { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ===== final CTA ===== */
.finale { padding-block: clamp(80px, 12vw, 160px); text-align: left; }
.finale .huge { font-family: "Big Shoulders Display", sans-serif; font-weight: 900; font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; max-width: 15ch; }
.finale .huge .amber { color: var(--amber); }
.finale .sub { margin-top: var(--s-5); color: var(--text-2); font-size: 1.125rem; max-width: 48ch; }
.finale .btn-row { margin-top: var(--s-6); display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ===== footer ===== */
footer.foot {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
footer.foot a { color: var(--text-2); text-decoration: none; }
footer.foot a:hover { color: var(--text-1); }
footer.foot .links { display: flex; gap: var(--s-4); }
@media (max-width: 560px) { footer.foot { grid-template-columns: 1fr; } }

/* ===== reveal motion ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease-out-strong), transform 700ms var(--ease-out-strong); transition-delay: var(--rd, 0ms); }
  .reveal.in { opacity: 1; transform: none; }

  .hero-wordmark .line { display: block; }
  .hero-wordmark .line:nth-child(1) { --rd:  60ms; }
  .hero-wordmark .line:nth-child(2) { --rd: 140ms; }
  .hero-wordmark .line:nth-child(3) { --rd: 220ms; }

  .stat-strip .stat:nth-child(1) { --rd:  40ms; }
  .stat-strip .stat:nth-child(2) { --rd: 100ms; }
  .stat-strip .stat:nth-child(3) { --rd: 160ms; }
  .stat-strip .stat:nth-child(4) { --rd: 220ms; }

  .board-row.reveal { transform: translateY(8px); transition-duration: 520ms; }
  .board-row.reveal:nth-child(1) { --rd:  0ms; }
  .board-row.reveal:nth-child(2) { --rd: 40ms; }
  .board-row.reveal:nth-child(3) { --rd: 80ms; }
  .board-row.reveal:nth-child(4) { --rd: 120ms; }
  .board-row.reveal:nth-child(5) { --rd: 160ms; }
  .board-row.reveal:nth-child(6) { --rd: 200ms; }
  .board-row.reveal:nth-child(7) { --rd: 240ms; }
  .board-row.reveal:nth-child(8) { --rd: 280ms; }
  .board-row.reveal:nth-child(9) { --rd: 320ms; }
  .board-row.reveal:nth-child(10){ --rd: 360ms; }

  .finale .huge .l1 { --rd:  40ms; display: block; }
  .finale .huge .l2 { --rd: 160ms; display: block; }

  .log-entry.reveal { transform: translateY(8px); transition-duration: 520ms; }
}

/* ===== micro-interactions ===== */
.day { transition: background 260ms var(--ease-out); }
.day .dow { transition: transform 320ms var(--ease-out-strong); }
.day:hover .dow { transform: translateY(-2px); }
.day.is-rest:hover .dow { transform: none; }

.stat .k { transition: transform 360ms var(--ease-out-strong); }
.stat:hover .k { transform: translateY(-1px); }

.board-row .nm { transition: transform 280ms var(--ease-out); }
.board-row:hover .nm { transform: translateX(3px); }

.ticker-item { transition: opacity 220ms var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  .stat-strip { position: relative; overflow: hidden; }
  .stat-strip::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--amber) 50%, transparent 100%);
    transform: translateX(-100%);
    opacity: 0.6;
    animation: sweep 2200ms var(--ease-out-strong) 1600ms 1 forwards;
  }
  @keyframes sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
}

/* =========================================================
   Profile pages
   ========================================================= */
.profile-back-strip { border-bottom: 1px solid var(--rule); }
.profile-back {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--text-3);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding-block: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 200ms var(--ease-out), transform 260ms var(--ease-out);
}
.profile-back:hover { color: var(--amber); }
.profile-back .arr { transition: transform 240ms var(--ease-out); }
.profile-back:hover .arr { transform: translateX(-3px); }

.profile-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); }
.profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 260px);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
}
.profile-id { display: flex; flex-direction: column; gap: var(--s-3); }
.profile-id .eyebrow { margin-bottom: var(--s-2); }
.profile-name {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-1);
}
.profile-handle { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.875rem; color: var(--amber); letter-spacing: 0.04em; }
.profile-meta { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.8125rem; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.profile-meta .sep { color: var(--rule-2); }
.profile-bio { margin-top: var(--s-4); color: var(--text-2); font-size: 1.0625rem; max-width: 52ch; }
.profile-links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.profile-links a {
  color: var(--text-1);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--rule-2);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.profile-links a:hover { background: var(--ink-3); color: var(--amber); border-color: var(--amber); }

.profile-visual { justify-self: end; width: 100%; max-width: 260px; }
.monogram {
  aspect-ratio: 1/1;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.monogram::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 75% 20%, color-mix(in oklab, var(--amber) 16%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.monogram .mono-rank {
  position: absolute; top: 12px; left: 14px;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 500;
}
.monogram .mono-streak {
  position: absolute; bottom: 12px; right: 14px;
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  font-weight: 500;
}

@media (max-width: 820px) {
  .profile-head { grid-template-columns: 1fr; align-items: start; }
  .profile-visual { justify-self: start; max-width: 160px; order: -1; }
  .profile-visual .monogram { font-size: 3.5rem; }
}

/* ===== workshop log ===== */
.log { display: grid; gap: 0; }
.log-entry {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: var(--s-5);
  align-items: baseline;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--rule);
  transition-delay: var(--rd, 0ms);
}
.log-entry:last-child { border-bottom: 1px solid var(--rule); }
.log-date { font-family: "Martian Mono", ui-monospace, monospace; font-size: 0.8125rem; color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; }
.log-body { display: flex; flex-direction: column; gap: 6px; }
.log-meta { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.log-status {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  text-transform: uppercase;
  display: inline-block;
}
.log-status--shipped { background: var(--amber); color: var(--ink-0); }
.log-status--public  { background: var(--text-1); color: var(--ink-0); }
.log-status--shared  { background: var(--ink-3); color: var(--text-1); }
.log-status--wip     { background: transparent; color: var(--text-2); border: 1px solid var(--rule-2); padding: 2px 7px; }
.log-title {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 900;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-top: 2px;
}
.log-summary { color: var(--text-2); font-size: 1rem; max-width: 62ch; margin-top: 4px; }
.log-link {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--amber);
  text-decoration: none;
  margin-top: var(--s-2);
  letter-spacing: 0.02em;
  display: inline-flex; gap: 6px;
}
.log-link:hover { text-decoration: underline; }
.log-points {
  font-family: "Martian Mono", ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  align-self: start;
  padding-top: 6px;
}
@media (max-width: 720px) {
  .log-entry { grid-template-columns: 1fr; gap: var(--s-2); padding-block: var(--s-4); }
  .log-points { justify-self: start; padding-top: 0; }
  .log-date { font-size: 0.75rem; }
}

.profile-empty {
  padding-block: clamp(80px, 10vw, 140px);
  max-width: 52ch;
}
.profile-empty h2 { font-size: var(--t-xl); margin-bottom: var(--s-4); }
.profile-empty p { color: var(--text-2); font-size: 1.0625rem; }
