/* ─── tokens ─────────────────────────────────────────────────────── */
:root {
  --accent: #EA580C;
  --accent-soft: rgba(234, 88, 12, 0.14);
  --accent-line: rgba(234, 88, 12, 0.35);

  --bg: #0a0907;
  --bg-2: #14110c;
  --bg-3: #1b1812;
  --bg-4: #221e17;

  --border: #29241d;
  --border-soft: #1d1a14;
  --border-strong: #3a3328;

  --text: #f5efe2;
  --text-2: #d1cab8;
  --muted: #837c6e;
  --muted-2: #5a5448;

  --green: #6ee089;

  --font-sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', SFMono-Regular, monospace;

  --container: 1080px;
  --pad-x: clamp(20px, 4vw, 48px);
}

/* ─── reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ─── backdrop: dot grid + faint noise ───────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 20%, #000 60%, transparent 100%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
body[data-texture="none"]::before { display: none; }
body[data-texture="none"]::after  { display: none; }

#app { position: relative; z-index: 1; }

/* ─── container ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── top nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  background: rgba(10, 9, 7, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav__brand {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 1px;
}
.nav__brand-path { color: var(--accent); }
.nav__brand-cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  margin-left: 4px;
  animation: blink 1.15s steps(1) infinite;
  vertical-align: -2px;
}
.nav__links {
  display: flex; gap: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.nav__links a { transition: color 120ms; }
.nav__links a:hover { color: var(--text); }
.nav__links .idx { color: var(--muted-2); margin-right: 4px; }
@media (max-width: 640px) {
  .nav__links { display: none; }
}

/* ─── section frame ─────────────────────────────────────────────── */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--border-soft); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.eyebrow__idx { color: var(--accent); }
.eyebrow__rule {
  flex: 1; max-width: 48px;
  height: 1px; background: var(--border-strong);
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 92px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }

.lede {
  font-size: 17px; color: var(--text-2);
  max-width: 540px; line-height: 1.5;
}

/* ─── hero / terminal ───────────────────────────────────────────── */
.hero { padding-top: 64px; padding-bottom: 96px; }

.term {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -40px rgba(0,0,0,0.8);
}
.term__chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.012);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.term__dot {
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--bg-4);
  border: 1px solid var(--border-strong);
}
.term__chrome .term__dot:nth-of-type(1) { background: #FF5F57; border-color: #E0443E; }
.term__chrome .term__dot:nth-of-type(2) { background: #FEBC2E; border-color: #DEA123; }
.term__chrome .term__dot:nth-of-type(3) { background: #28C840; border-color: #1AAB29; }
.term__title { margin-left: 8px; }
.term__title b { color: var(--text-2); font-weight: 500; }
.term__branch { color: var(--accent); }

.term__body {
  padding: 28px clamp(20px, 4vw, 40px) 32px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.term__body .prompt { color: var(--accent); user-select: none; }
.term__body .cmd { color: var(--text); }
.term__body .out  { color: var(--text-2); }
.term__body .cmt  { color: var(--muted-2); }
.term__body .hl   { color: var(--text); }

.hero__name {
  font-family: var(--font-sans);
  font-size: clamp(56px, 10vw, 116px);
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--text);
  margin: 10px 0 12px;
  font-weight: 500;
}
.hero__name .dot { color: var(--accent); }

.hero__tag {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.4;
  margin: 6px 0 0;
}

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  color: var(--text);
  transition: transform 80ms ease, background 120ms, border-color 120ms;
  cursor: pointer;
}
.btn:hover { background: var(--bg-4); border-color: #4a4234; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #1b0a02;
  border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover { background: #ff6512; border-color: #ff6512; }
.btn .k { color: var(--muted); font-weight: 400; }
.btn--primary .k { color: rgba(27, 10, 2, 0.55); }
.btn__arrow { transition: transform 160ms; }
.btn:hover .btn__arrow { transform: translateY(2px); }
.btn--primary:hover .btn__arrow { transform: translateX(2px) translateY(0); }

.cursor {
  display: inline-block;
  width: 9px; height: 1.05em;
  background: var(--accent);
  vertical-align: -3px;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* status pill */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.status__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(110, 224, 137, 0.14);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 224, 137, 0.14); }
  50%      { box-shadow: 0 0 0 8px rgba(110, 224, 137, 0.04); }
}

/* ─── featured ──────────────────────────────────────────────────── */
.featured__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}
.featured__head h2 { max-width: 600px; }
.featured__meta {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  display: flex; gap: 14px; align-items: center;
}
.featured__meta b { color: var(--accent); font-weight: 500; }

.featured__grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px;
  margin-top: 28px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .featured__grid { grid-template-columns: 1fr; }
}

.feat-side {
  display: flex; flex-direction: column; gap: 18px;
  align-self: start;
}
.feat-side .lede { font-size: 16px; }

.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feat-list li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  line-height: 1.45;
}
.feat-list li::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
}
.feat-list li b { color: var(--text); font-weight: 500; }

.feat-links {
  display: flex; gap: 16px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-2);
  border-top: 1px solid var(--border-soft);
  padding-top: 14px;
  margin-top: 4px;
}
.feat-links a {
  display: inline-flex; gap: 6px; align-items: center;
  transition: color 120ms;
}
.feat-links a:hover { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  background: rgba(255,255,255,0.015);
}
.chip--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* browser frame */
.browser {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -50px rgba(0,0,0,0.9);
  display: flex; flex-direction: column;
}
.browser__chrome {
  height: 32px; padding: 0 12px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.012);
}
.browser__dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--bg-4);
  border: 1px solid var(--border-strong);
}
.browser__chrome .browser__dot:nth-of-type(1) { background: #FF5F57; border-color: #E0443E; }
.browser__chrome .browser__dot:nth-of-type(2) { background: #FEBC2E; border-color: #DEA123; }
.browser__chrome .browser__dot:nth-of-type(3) { background: #28C840; border-color: #1AAB29; }
.browser__url {
  flex: 1; height: 18px;
  margin-left: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}
.browser__url .lock { color: var(--green); }
.browser__url .pad { color: var(--muted-2); }
.browser__body { flex: 1; min-height: 460px; background: #fefcf7; color: #1c1814; position: relative; overflow: hidden; container-type: inline-size; }

/* ─── other projects ────────────────────────────────────────────── */
.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 28px;
}
@media (max-width: 880px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  background: linear-gradient(180deg, var(--bg-2), rgba(20,17,12,0.4));
  display: flex; flex-direction: column; gap: 14px;
  min-height: 200px;
  transition: border-color 160ms, transform 160ms, background 160ms;
}
.proj-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.proj-card__top {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.proj-card__status {
  padding: 2px 8px; border-radius: 999px; font-size: 10.5px;
  border: 1px solid var(--border-strong); color: var(--text-2);
}
.proj-card__status--wip  { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.proj-card__status--soon { color: var(--muted); }
.proj-card__title { font-family: var(--font-sans); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.proj-card__title .dot { color: var(--accent); }
.proj-card__desc { color: var(--text-2); font-size: 13.5px; line-height: 1.5; flex: 1; }
.proj-card__foot { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── stack ─────────────────────────────────────────────────────── */
.stack-shell {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
  margin-top: 24px;
}
.stack-shell__head {
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 16px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  display: flex; justify-content: space-between;
}
.stack-shell__head .prompt { color: var(--accent); margin-right: 6px; }

.stack-tree {
  padding: 22px clamp(18px, 3vw, 32px);
  font-family: var(--font-mono); font-size: 13px;
  line-height: 1.95;
  columns: 2;
  column-gap: 40px;
  color: var(--text-2);
}
@media (max-width: 680px) { .stack-tree { columns: 1; } }
.stack-tree .line { break-inside: avoid; }
.stack-tree .pkg { color: var(--text); }
.stack-tree .ver { color: var(--muted-2); }
.stack-tree .br  { color: var(--muted-2); }
.stack-tree .star { color: var(--accent); }

.stack-cats {
  padding: 24px clamp(18px, 3vw, 32px);
  display: grid; grid-template-columns: 140px 1fr; row-gap: 16px; column-gap: 24px;
  font-family: var(--font-mono); font-size: 13px;
  align-items: baseline;
}
@media (max-width: 680px) { .stack-cats { grid-template-columns: 1fr; row-gap: 6px; } }
.stack-cats dt {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  padding-top: 2px;
}
.stack-cats dd { margin: 0; color: var(--text-2); }
.stack-cats dd .sep { color: var(--muted-2); margin: 0 8px; }

/* ─── experience (git log) ──────────────────────────────────────── */
.gitlog {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
}
.gitlog__head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.gitlog__head .prompt { color: var(--accent); margin-right: 6px; }
.gitlog__head b { color: var(--text-2); font-weight: 500; }
.gitlog__body {
  padding: 22px clamp(18px, 3vw, 28px);
  font-family: var(--font-mono); font-size: 13.5px;
  line-height: 1.75;
  position: relative;
}
.gitlog__body::before {
  content: '';
  position: absolute;
  left: calc(clamp(18px, 3vw, 28px) + 4.5px);
  top: 38px; bottom: 22px;
  width: 1px;
  background: var(--border-strong);
}
.commit { position: relative; padding-left: 28px; }
.commit + .commit { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border-soft); }
.commit::before {
  content: '*';
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}
.commit__line {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline;
  color: var(--text-2);
}
.commit__hash { color: #f3b07b; }
.commit__ref  { color: var(--muted); }
.commit__co {
  font-family: var(--font-sans); font-size: 22px; font-weight: 500;
  color: var(--text); letter-spacing: -0.01em;
}
.commit__role { color: var(--text-2); font-size: 13px; }
.commit__blurb {
  margin-top: 8px;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  max-width: 720px;
}

/* ─── about ─────────────────────────────────────────────────────── */
.about {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  margin-top: 22px;
  align-items: start;
}
@media (max-width: 680px) { .about { grid-template-columns: 1fr; } }
.about__caption {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.about__body {
  font-size: 19px; line-height: 1.5; color: var(--text);
  max-width: 660px; letter-spacing: -0.005em;
}
.about__body em { color: var(--accent); font-style: normal; }

/* ─── contact ───────────────────────────────────────────────────── */
.contact {
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  padding: 22px clamp(18px, 3vw, 28px);
  font-family: var(--font-mono); font-size: 14px; line-height: 2.1;
}
.contact a { display: inline-flex; align-items: center; gap: 8px; transition: color 120ms; }
.contact a:hover { color: var(--accent); }
.contact .prompt { color: var(--accent); margin-right: 8px; }
.contact .arg { color: var(--text-2); }

/* ─── footer ────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border-soft);
  padding: 26px 0 36px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ─── sidebar rail variant ──────────────────────────────────────── */
body[data-layout="rail"] .nav__links { display: none; }
body[data-layout="rail"] { padding-left: 0; }
body[data-layout="rail"] .rail { display: flex; }

.rail {
  display: none;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 220px;
  border-right: 1px solid var(--border-soft);
  background: rgba(10, 9, 7, 0.7);
  backdrop-filter: blur(12px) saturate(1.4);
  flex-direction: column;
  padding: 24px 22px;
  gap: 22px;
  z-index: 40;
}
body[data-layout="rail"] #app { padding-left: 220px; }
body[data-layout="rail"] .nav { display: none; }

.rail__brand {
  font-family: var(--font-sans); font-size: 30px; font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.92;
}
.rail__brand .dot { color: var(--accent); }
.rail__title {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 2px;
}
.rail__nav {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-2);
}
.rail__nav a { display: flex; gap: 10px; padding: 4px 0; transition: color 120ms; }
.rail__nav a:hover { color: var(--accent); }
.rail__nav .idx { color: var(--accent); width: 18px; }
.rail__hr { height: 1px; background: var(--border-soft); }
.rail__soc {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 11.5px;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--muted);
}
.rail__soc a:hover { color: var(--accent); }

@media (max-width: 880px) {
  body[data-layout="rail"] .rail { display: none; }
  body[data-layout="rail"] #app { padding-left: 0; }
  body[data-layout="rail"] .nav { display: block; }
}

/* ─── selection ─────────────────────────────────────────────────── */
::selection { background: var(--accent); color: #1b0a02; }

/* ─── storefront mock — matches food.devtzan.com LandingPage ─────── */
.sf {
  --sf-orange: #EA580C;
  --sf-amber-bg: #fbbf24;
  --sf-amber-ink: #78350f;
  --sf-amber-deep: #92400e;
  --sf-dark: #111110;
  --sf-ink: #1f2937;
  --sf-ink-2: #6b7280;
  --sf-line: #e5e7eb;
  --sf-font-display: 'Syne', system-ui, sans-serif;
  --sf-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  position: absolute; inset: 0;
  background: var(--sf-dark);
  color: #FFF8F0;
  font-family: var(--sf-font-body);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* amber status bar */
.sf__status {
  background: var(--sf-amber-bg);
  color: var(--sf-amber-deep);
  font-size: 10.5px;
  padding: 6px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  white-space: nowrap;
}
.sf__status-l { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sf__status-l b { color: #15803d; font-weight: 700; letter-spacing: 0.04em; }
.sf__status-l .muted { color: var(--sf-amber-ink); }
.sf__status-l .link  { color: var(--sf-amber-ink); text-decoration: underline; }
.sf__status-r {
  display: flex; gap: 12px; color: var(--sf-amber-ink);
  overflow: hidden; flex-shrink: 1; min-width: 0;
}
.sf__status-r span {
  display: inline-flex; align-items: center; gap: 4px;
  overflow: hidden; text-overflow: ellipsis;
}
.sf__status-r svg { width: 9px; height: 9px; flex-shrink: 0; }
.sf__status-r .addr { display: none; }            /* hidden on narrow */
@container (min-width: 460px) {
  .sf__status-r .addr { display: inline-flex; }
}

/* white nav with gold medallion */
.sf__nav {
  position: relative;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
  padding: 10px 14px;
  /* Grid with a centered auto-width column for the medallion slot. The two
     outer 1fr tracks are equal, so the slot's center == nav's center
     regardless of left-links width or CTA width. */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  z-index: 2;
  min-height: 38px;
}
.sf__nav-links {
  grid-column: 1;
  justify-self: stretch;
  /* Hidden by default — only show when frame is wide enough to fit all 4
     labels without bleeding under the medallion (empirical fit ≥ 440px).
     When visible, space-between spreads the labels across the left column. */
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  font-size: clamp(8px, 2.4cqi, 11px);
  color: var(--sf-ink-2);
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  padding-right: 12px;
}
@container (min-width: 440px) {
  .sf__nav-links { display: flex; }
}
.sf__nav-links .active {
  color: var(--sf-orange);
  position: relative;
}
.sf__nav-links .active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: var(--sf-orange); border-radius: 999px;
}
.sf__nav-medallion-slot { grid-column: 2; width: 64px; flex-shrink: 0; position: relative; }
.sf__nav-cta {
  grid-column: 3;
  justify-self: end;
  background: var(--sf-orange);
  color: #fff;
  font-weight: 700; font-size: clamp(9px, 2.2cqi, 10.5px);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(234,88,12,0.35);
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.sf__nav-links .active {
  color: var(--sf-orange);
  position: relative;
}
.sf__nav-links .active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--sf-orange); border-radius: 999px;
}
.sf__medallion {
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 64px; height: 78px;
  background: linear-gradient(170deg, #fde68a 0%, #fbbf24 55%, #f59e0b 100%);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 22px rgba(251,191,36,0.5), 0 2px 6px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  padding: 6px;
  pointer-events: none;
}
.sf__medallion img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}

/* dark hero */
.sf__hero {
  flex: 1;
  position: relative;
  background-image: url('assets/hero-food.webp');
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 36px 22px 40px;
  text-align: center;
  overflow: hidden;
}
.sf__hero::before {
  /* darkening overlay so text reads against the food image */
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.7) 60%, rgba(10,8,6,0.85) 100%);
}
.sf__hero::after {
  content: '';
  position: absolute;
  top: 38%; left: 50%;
  width: 380px; height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(234,88,12,0.22) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.sf__hero-inner { position: relative; z-index: 1; max-width: 360px; }
.sf__hero-name {
  font-family: var(--sf-font-display);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #FFF8F0;
  margin: 0 0 12px;
}
.sf__hero-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sf-orange);
  margin: 0 0 10px;
}
.sf__hero-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,248,240,0.55);
  margin: 0 0 18px;
}
.sf__hero-ctas { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sf__hero-primary {
  background: var(--sf-orange);
  color: #fff;
  font-weight: 700;
  font-size: 11.5px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(234,88,12,0.4);
  white-space: nowrap;
}
.sf__hero-secondary {
  border: 1px solid rgba(255,248,240,0.4);
  color: rgba(255,248,240,0.7);
  font-size: 11px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}
.sf__hero-cue {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  color: rgba(255,248,240,0.4);
  font-size: 14px;
  animation: sf-bounce 1.8s ease-in-out infinite;
}
@keyframes sf-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -4px); }
}
