/* ==========================================================================
   Yapper — themed to match gurusewak.in

   Ported directly from the portfolio's own source, not eyeballed:
     src/app/globals.css                          → tokens
     src/components/public/Header/Header.module.css   → nav pill
     src/components/public/Hero/Hero.module.css       → hero + buttons
     src/components/public/Skills/Skills.module.css   → filter pills + cards
     src/components/public/SectionHeader/…            → eyebrow + title

   The system in one line: pure black, monochrome (the accent IS white),
   Syne display / Outfit UI / DM Mono labels, three tiers of glass, expo easing.

   ONE DELIBERATE EXCEPTION — the fake LinkedIn post card keeps LinkedIn's own
   white surface and blue links. It is the punchline. Restyling it monochrome
   would stop it reading as a LinkedIn screenshot and the joke would evaporate.
   Everything around it is portfolio-native; the card is a quoted artefact.
   ========================================================================== */

/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in
   index.html rather than @import here. Same three families and weights as the
   portfolio; the difference is that an @import inside a stylesheet serialises
   the request behind this file, whereas the <link> starts it immediately. */

:root {
  --bg-primary: #000000;
  --bg-secondary: #070707;
  --bg-tertiary: #111111;

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary: rgba(255, 255, 255, 0.3);
  --text-muted: rgba(255, 255, 255, 0.14);

  --accent-primary: #ffffff;
  --accent-secondary: rgba(255, 255, 255, 0.82);

  --border-color: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.18);

  --card-bg: rgba(255, 255, 255, 0.03);
  --card-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
  --card-hover-shadow: 0 24px 72px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.11);
  --navbar-bg: rgba(0, 0, 0, 0.82);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glow-color: rgba(255, 255, 255, 0.06);
  --orb-opacity: 0.05;
  --grid-opacity: 0.035;
  --hero-overlay: rgba(0, 0, 0, 0.72);

  --success: rgba(160, 255, 200, 0.85);
  --error: rgba(255, 100, 100, 0.85);
  --warning: rgba(255, 210, 100, 0.85);

  /* === Three-tier glass system === */
  --glass-subtle-bg: rgba(255, 255, 255, 0.06);
  --glass-subtle-border: rgba(255, 255, 255, 0.1);
  --glass-subtle-blur: blur(20px) saturate(180%);

  --glass-panel-bg: rgba(255, 255, 255, 0.075);
  --glass-panel-border: rgba(255, 255, 255, 0.13);
  --glass-panel-blur: blur(40px) saturate(200%);
  --glass-panel-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-panel-shadow: 0 1px 0 rgba(0, 0, 0, 0.4),
    0 24px 48px -12px rgba(0, 0, 0, 0.6);

  --glass-elevated-bg: rgba(255, 255, 255, 0.105);
  --glass-elevated-border: rgba(255, 255, 255, 0.2);
  --glass-elevated-blur: blur(60px) saturate(240%);
  --glass-elevated-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --glass-elevated-shadow: 0 1px 0 rgba(0, 0, 0, 0.4),
    0 40px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.07);

  /* === Motion === */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 800ms;

  /* === Rhythm === */
  --section-padding-y: 160px;
  --section-padding-y-mobile: 96px;
  --section-max-width: 1200px;
  --section-divider-bg: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: "Syne", sans-serif; }
code, pre, .mono { font-family: "DM Mono", monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

/* ==========================================================================
   HERO BACKGROUND — ported from HeroBackground.module.css

   Layers, bottom to top:
   1. .stage      — pure black base
   2. .blob 1/2/3 — slow-drifting aurora blobs (radial gradients, big blur,
                    transform-only animations)
   3. .grid       — faint 64x64 grid that masks out at the edges
   4. .spotlight  — radial gradient following the cursor (JS sets the vars)
   5. .grain      — film grain via inline SVG turbulence
   6. .vignette   — corner darkening + fade-to-black into the next section

   Every animation is transform/opacity only, so it stays on the compositor
   and costs no layout or paint per frame.
   ========================================================================== */

.stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}

.blob1 {
  width: 720px;
  height: 720px;
  top: -180px;
  left: -180px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 70%);
  opacity: 0.55;
  animation: drift1 24s ease-in-out infinite;
}

.blob2 {
  width: 640px;
  height: 640px;
  top: 30%;
  right: -200px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    transparent 70%);
  opacity: 0.45;
  animation: drift2 30s ease-in-out infinite;
}

.blob3 {
  width: 540px;
  height: 540px;
  bottom: -160px;
  left: 25%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 75%);
  opacity: 0.4;
  animation: drift3 36s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(120px, 80px, 0) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-90px, 60px, 0) scale(0.92); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(60px, -100px, 0) scale(1.05); }
}

.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 75%);
}

.spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  transform: translate3d(
    calc(var(--spot-x, 50%) - 50%),
    calc(var(--spot-y, 50%) - 50%),
    0);
  will-change: transform;
  opacity: 0;
  transition: opacity 600ms var(--ease-out-smooth);
}
.spotlight.active { opacity: 1; }

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><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 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, transparent 70%, #000 100%);
}

/* ---------- nav ----------------------------------------------------------
   The portfolio's scrolled header state, adopted permanently: a floating
   glass pill with heavy blur so content behind it reads as frost, not text. */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(940px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(64px) saturate(220%);
  -webkit-backdrop-filter: blur(64px) saturate(220%);
  box-shadow: var(--glass-elevated-highlight), var(--glass-elevated-shadow);
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: "Syne", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  transition: opacity 0.25s ease;
}
.brand:hover { opacity: 0.65; }
.brand .dim { color: rgba(255, 255, 255, 0.35); }

.nav-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.nav-spacer { margin-left: auto; }

/* Modelled on .resumeBtn */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #000000;
  background: #ffffff;
  transition: all 0.25s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

/* ---------- layout -------------------------------------------------------- */

.wrap {
  position: relative;
  z-index: 1;
  width: min(760px, 100% - 48px);
  margin: 0 auto;
  padding-bottom: 96px;
}

/* ---------- hero ---------------------------------------------------------- */

.hero {
  padding: clamp(120px, 18vw, 170px) 0 48px;
  text-align: center;
}

/* .greeting */
.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

/* .name — the gradient fill is the portfolio's signature, reserved for the
   hero headline only. Section titles below use flat white. */
.hero h1 {
  margin-bottom: 18px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The single spot of colour on an otherwise strictly monochrome page.
   Because everything else is white-on-black, one red rule carries a lot of
   weight — it reads as an edit mark, which is exactly the joke: the word
   "small" being crossed out and overruled. */
.strike {
  position: relative;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}
.strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 54%;
  height: 4px;
  border-radius: 2px;
  background: var(--error);
  transform: rotate(-2.5deg);
}

/* .roleWrapper / .role / .cursor — the typing line.
   On the portfolio this cycles job roles; here it cycles the absurd job title
   the app is about to award you, which is the same interaction doing the joke. */
.role-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2rem;
  margin-bottom: 24px;
  font-family: "Outfit", sans-serif;
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.48);
}
.role { color: rgba(255, 255, 255, 0.7); font-weight: 400; }
.cursor {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.8);
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }

/* .description */
.sub {
  margin: 0 auto;
  max-width: 520px;
  font-family: "Outfit", sans-serif;
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.52);
}

/* The portfolio staggers its hero in with framer-motion. Same delays, same
   expo curve, done with CSS so no animation library is needed. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(var(--in-y, 20px)); }
  to   { opacity: 1; transform: none; }
}

.eyebrow,
.hero h1,
.role-wrapper,
.sub,
.composer {
  animation: heroIn var(--duration-base) var(--ease-out-smooth) both;
}
.eyebrow      { --in-y: 10px; animation-delay: 300ms; }
.hero h1      { --in-y: 30px; animation-duration: 900ms;
                animation-timing-function: var(--ease-out-expo);
                animation-delay: 400ms; }
.role-wrapper { --in-y: 0;    animation-delay: 600ms; }
.sub          { --in-y: 20px; animation-delay: 800ms; }
.composer     { --in-y: 20px; animation-delay: 1000ms; }

/* .socialDivider */
.hero-rule {
  width: 48px;
  height: 1px;
  margin: 16px auto 20px;
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- section header ------------------------------------------------ */

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
  align-items: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.section-eyebrow .num { color: rgba(255, 255, 255, 0.7); }
.section-eyebrow .line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.divider {
  height: 1px;
  margin: 72px 0;
  border: 0;
  background: var(--section-divider-bg);
}

/* ---------- composer ------------------------------------------------------
   .skillCard: glass-panel, 12px radius, elevates on hover. */

.composer {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--glass-panel-border);
  border-radius: 12px;
  background: var(--glass-panel-bg);
  backdrop-filter: var(--glass-panel-blur);
  -webkit-backdrop-filter: var(--glass-panel-blur);
  box-shadow: var(--glass-panel-highlight), var(--glass-panel-shadow);
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.input-shell {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color var(--duration-base) var(--ease-out-smooth),
              background-color var(--duration-base) var(--ease-out-smooth);
}
.input-shell:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 16px 16px 6px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  resize: none;
  outline: none;
}
textarea::placeholder { color: rgba(255, 255, 255, 0.28); }

.input-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px 12px;
}

.counter {
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.counter.warn { color: var(--warning); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- controls ------------------------------------------------------ */

.control { margin-top: 24px; }

.control-label {
  display: block;
  margin-bottom: 12px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.pills { display: flex; flex-wrap: wrap; gap: 10px; }

/* .categoryBtn — the portfolio's interactive filter, which is exactly what a
   tone selector is. Note it uses Outfit sentence-case, NOT the mono uppercase
   treatment reserved for static tech tags. */
.pill {
  position: relative;
  cursor: pointer;
  padding: 9px 22px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}
.pill:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}
.pill[aria-checked="true"] {
  background: #ffffff;
  color: #000000;
  border-color: transparent;
  font-weight: 600;
}

.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.seg {
  cursor: pointer;
  padding: 14px 12px;
  border-radius: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.45);
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}
.seg .seg-label {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.seg .seg-blurb {
  display: block;
  margin-top: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.35);
}
.seg:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}
.seg[aria-checked="true"] {
  background: #ffffff;
  color: #000000;
  border-color: transparent;
}
.seg[aria-checked="true"] .seg-label { font-weight: 600; }
.seg[aria-checked="true"] .seg-blurb { color: rgba(0, 0, 0, 0.6); }

/* ---------- buttons -------------------------------------------------------
   .primaryBtn / .secondaryBtn, verbatim. */

.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 26px;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out-smooth);
}

/* .primaryBtn's arrow nudges right on hover (framer's whileHover x:5). */
.go-arrow {
  transition: transform var(--duration-base) var(--ease-out-smooth);
}
.go:hover:not(:disabled) .go-arrow { transform: translateX(5px); }
.go.busy .go-arrow { display: none; }
.go:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.12);
}
.go:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.go-spin {
  display: none;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.go.busy .go-spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.ghost-btn {
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  background: var(--glass-elevated-bg);
  backdrop-filter: var(--glass-elevated-blur);
  -webkit-backdrop-filter: var(--glass-elevated-blur);
  border: 1px solid var(--glass-elevated-border);
  box-shadow: var(--glass-elevated-highlight);
  color: rgba(255, 255, 255, 0.82);
  transition: all var(--duration-base) var(--ease-out-smooth);
}
.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}
.ghost-btn.wide { padding: 14px 28px; border-radius: 8px; font-size: 0.9375rem; }

.primary-btn {
  cursor: pointer;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: #ffffff;
  color: #000000;
  transition: all var(--duration-base) var(--ease-out-smooth);
}
.primary-btn:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(255, 255, 255, 0.12);
}
.primary-btn.done {
  background: transparent;
  border: 1px solid var(--success);
  color: var(--success);
  box-shadow: none;
  transform: none;
}

/* ---------- quota --------------------------------------------------------- */

.quota {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

.dots { display: inline-flex; gap: 5px; }
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transition: background-color var(--duration-base) var(--ease-out-smooth);
}
.dots i.on { background: #ffffff; }
.dots i.premium { background: var(--warning); }

/* ---------- status -------------------------------------------------------- */

.status {
  min-height: 22px;
  margin: 18px 2px 0;
  font-family: "DM Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}
.status.err { color: var(--error); }
.status.pulse { animation: fade 1.6s ease-in-out infinite; }
@keyframes fade { 0%, 100% { opacity: 0.4 } 50% { opacity: 1 } }

/* ==========================================================================
   THE PUNCHLINE — intentionally NOT themed. See the note at the top.
   ========================================================================== */

.result {
  margin-top: 32px;
  animation: rise var(--duration-slow) var(--ease-out-expo) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.post-card {
  padding: 16px 16px 6px;
  border-radius: 12px;
  background: #fff;
  color: #191919;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.48;
  box-shadow: var(--glass-elevated-shadow);
}

.post-head { display: flex; gap: 11px; align-items: flex-start; }

.avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #191919;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.post-meta { flex: 1 1 auto; min-width: 0; }
.post-name { font-weight: 700; font-size: 14.5px; }
.degree { color: #666; font-weight: 400; font-size: 13px; }
.post-headline { margin-top: 1px; color: #666; font-size: 12.5px; line-height: 1.35; }
.post-time { margin-top: 2px; color: #666; font-size: 12.5px; }
.post-follow { flex: 0 0 auto; padding-top: 4px; color: #0a66c2; font-weight: 700; font-size: 14px; }

.post-body { margin-top: 13px; white-space: pre-wrap; word-wrap: break-word; }
.post-tags { margin-top: 10px; color: #0a66c2; font-weight: 600; word-spacing: 3px; }

.post-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 9px 0;
  border-top: 1px solid #e6e6e6;
  color: #666;
  font-size: 12.5px;
}
.reacts { display: inline-flex; margin-right: 3px; }
.reacts .r {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1.5px #fff;
  font-style: normal;
  font-size: 12px;
}
.reacts .r + .r { margin-left: -5px; }
.dot-sep { color: #b0b0b0; }

.post-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 0 8px;
  border-top: 1px solid #e6e6e6;
}
.post-actions span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 2px;
  border-radius: 4px;
  color: #666;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.post-actions i { font-style: normal; font-size: 13px; line-height: 1; }

/* ---------- result actions ------------------------------------------------- */

.result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.served {
  margin-left: auto;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.3);
}
.served .badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.served .badge.premium { color: var(--warning); border-color: rgba(255, 210, 100, 0.24); }
.served .badge.free { color: var(--success); border-color: rgba(160, 255, 200, 0.24); }

/* ---------- how it works ---------------------------------------------------- */

.how { margin-top: 96px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* .skillCard */
.how-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--glass-panel-bg);
  border: 1px solid var(--glass-panel-border);
  backdrop-filter: var(--glass-panel-blur);
  -webkit-backdrop-filter: var(--glass-panel-blur);
  box-shadow: var(--glass-panel-highlight), var(--glass-panel-shadow);
  transition: all var(--duration-base) var(--ease-out-smooth);
}
.how-card:hover {
  background: var(--glass-elevated-bg);
  border-color: var(--glass-elevated-border);
  box-shadow: var(--glass-elevated-highlight), var(--glass-elevated-shadow);
  transform: translateY(-3px);
}

.how-num {
  display: block;
  margin-bottom: 12px;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.how-card h3 {
  margin-bottom: 8px;
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.how-card p {
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.52);
}

/* ---------- footer ---------------------------------------------------------- */

.site-footer {
  margin-top: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
}
.site-footer p { margin-bottom: 10px; }
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid var(--border-color);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.site-footer a:hover { color: #ffffff; border-color: var(--border-hover); }

.fine {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.22);
}

/* ---------- responsive ------------------------------------------------------ */

@media (max-width: 768px) {
  .nav-tag { display: none; }
  .wrap { width: min(760px, 100% - 40px); }
  .how { margin-top: 72px; }
  .divider { margin: 56px 0; }
  .role-wrapper { font-size: 1.125rem; }
  .sub { font-size: 1rem; }

  /* Smaller, cheaper blobs on phones — same treatment as the portfolio. */
  .blob1, .blob2, .blob3 { filter: blur(60px); }
  .blob1 { width: 500px; height: 500px; }
  .blob2 { width: 440px; height: 440px; }
  .blob3 { width: 380px; height: 380px; }
  .spotlight { display: none; }
}

@media (max-width: 520px) {
  .site-header { top: 10px; padding: 8px 10px 8px 18px; }
  .brand { font-size: 1.25rem; }
  .nav-link { padding: 8px 16px; font-size: 0.875rem; }
  .segments { grid-template-columns: 1fr; }
  .seg { text-align: left; padding: 12px 14px; }
  .post-follow { display: none; }
  .result-actions .served { width: 100%; margin-left: 0; }
  .result-actions .primary-btn,
  .result-actions .ghost-btn.wide { flex: 1 1 auto; }
  .post-actions b { display: none; }
  .post-actions i { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob1, .blob2, .blob3 { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
