@font-face { font-family: "Grotesk"; src: url("/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Grotesk"; src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mono"; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7f4ec;
  --line: #ddd7cb;
  --grid: #e9e4da;
  --ink: #171b1d;
  --ink-2: #555a62;
  --ink-3: #8a8e95;
  --accent-ink: #a8650a;
  --amber: #ffad19;
  --amber-deep: #e89a0c;
  --teal: #56c9be;
  /* Felix (ref C) */
  --f-body: #34383c;
  --f-dark: #24272a;
  --f-panel: #3f4448;
  --f-screen: #171b1d;
  --f-cream: #f3ebda;
  --f-knob: #8e9297;
  --sans: "Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Serif", ui-serif, Georgia, serif;
  --mono: "Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(800px 480px at 78% 30%, rgba(233, 162, 59, .14), transparent 62%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  background-blend-mode: normal, multiply, multiply, normal;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

/* header */
.top {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font: 600 22px/1 "Inter", var(--sans); letter-spacing: -.02em; color: var(--ink); padding: 4px 0; }
.mark img { height: 40px; width: auto; display: block; }
.foot-mark { display: inline-flex; align-items: center; gap: 9px; }
.foot-mark img { height: 24px; width: auto; }
.status {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; background: rgba(255, 255, 255, .8);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #0f9f8a; box-shadow: 0 0 0 3px rgba(15, 159, 138, .18); animation: pulse 2.4s ease-in-out infinite; }

/* hero */
.hero {
  flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 48px;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px;
}
.eyebrow { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
h1 { font-size: clamp(46px, 7.4vw, 96px); line-height: .98; letter-spacing: -.03em; font-weight: 700; margin: 0 0 26px; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; letter-spacing: -.01em; color: var(--accent-ink); }
.punch { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; margin: 0 0 8px; text-wrap: balance; }
.quiet { color: var(--ink-2); margin: 0 0 32px; }
.btn {
  display: inline-block; text-decoration: none; font: 700 16px/1 var(--mono); color: var(--ink);
  background: var(--amber); padding: 16px 22px; border-radius: 12px;
  box-shadow: 0 0 0 1px var(--amber-deep) inset, 0 12px 28px -14px rgba(213, 143, 42, .9);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.felix-wrap { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.felix-btn { all: unset; cursor: pointer; display: block; width: clamp(241px, 30vw, 331px); -webkit-tap-highlight-color: transparent; }
.felix-btn:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 6px; border-radius: 24px; }
#felix { width: 100%; height: auto; overflow: visible; display: block; }
.felix-wrap figcaption { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.shadow { fill: #2b2318; opacity: .14; }
.b { fill: var(--f-body); }
.d { fill: var(--f-dark); }
.p { fill: var(--f-panel); }
.sole { fill: #111315; }
.screen { fill: var(--f-screen); }
.cream { fill: var(--f-cream); }
.amber { fill: var(--amber); }
.lg { fill: var(--amber); }
.led { fill: var(--teal); }
.knob { fill: var(--f-knob); stroke: #55595e; stroke-width: 3; }
.knob.sm { stroke-width: 2.5; }
.amber-line { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; }
.cream-line { fill: none; stroke: var(--f-cream); stroke-width: 3.6; stroke-linecap: round; }

.whole { animation: breathe 4.8s ease-in-out infinite; transform-origin: 150px 400px; }
#eyes { transition: transform .18s ease-out; }
.blink { transform-origin: 147px 75px; }
.blink.shut { animation: blink .16s ease-in-out; }
.eye-happy { opacity: 0; }
#felix.is-happy .eye-open { opacity: 0; }
#felix.is-happy .eye-happy { opacity: 1; }
.led { animation: lamp 2.6s ease-in-out infinite; }
.arm-wave { transform-origin: 222px 208px; }
.arm-wave.wave { animation: present 1.1s ease-in-out; }
.head { transform-origin: 150px 120px; transition: transform .3s ease; }
.felix-btn:hover .head { transform: rotate(-3deg); }

.bubble {
  position: absolute; z-index: 2; top: 2%; right: 58%; max-width: 260px;
  background: #fff; color: var(--ink); font: 500 14px/1.45 var(--mono);
  padding: 12px 14px; border-radius: 14px 14px 4px 14px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(43, 35, 24, .45); animation: pop .22s ease-out;
}

.foot {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 400 12px var(--mono); color: var(--ink-3);
}
.lost { text-align: center; padding: 12vh var(--gutter) 0; }
.lost-felix { width: 160px; height: auto; margin: 0 auto 18px; display: block; }

/* motion */
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.08); } }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes present { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 60% { transform: rotate(4deg); } }
@keyframes pop { from { transform: scale(.9) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 4px; }
  .felix-wrap { order: -1; margin-bottom: 24px; }
  .felix-btn { width: clamp(166px, 50vw, 200px); }
  .bubble { right: auto; left: 0; top: 56%; max-width: 40%; font-size: 13px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; }
  .status .long { display: none; }
  .mark { font-size: 19px; gap: 12px; }
  .mark img { height: 36px; }
}
