@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =========================================================================
   Ahmed Vohra — portfolio
   Clean, light, one violet accent from the LinkedIn brand.
   ========================================================================= */

:root {
  /* brand */
  --violet:      #5B46E5;
  --violet-deep: #3B2A8C;
  --violet-lift: #7460F0;
  --violet-wash: #F1EEFE;
  --violet-line: #DCD5FB;
  --cream:       #F6F4EF;
  --ink:         #17171A;

  /* neutrals */
  --paper:   #FFFFFF;
  --sunk:    var(--cream);
  --fg:      var(--ink);
  --fg-soft: color-mix(in srgb, var(--ink) 72%, var(--paper));
  --fg-mute: color-mix(in srgb, var(--ink) 50%, var(--paper));
  --line:    #E6E3DC;
  --line-soft: #F0EDE7;

  /* status */
  --live:  #1E8A6A;
  --live-wash: #E7F5F0;
  --amber: #B4780C;
  --amber-wash: #FBF2E0;

  --sans: 'Archivo', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --max: 78rem;
  --read: 68ch;

  --r:    3px;
  --r-sm: 3px;
  /* No shadows anywhere. Depth is the ground/surface step plus hairlines. */
  --ease: cubic-bezier(.16,1,.3,1) }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #121216; --sunk: #17171C; --fg: #F2F1EE; --fg-soft: color-mix(in srgb, #F2F1EE 70%, #121216);
    --fg-mute: color-mix(in srgb, #F2F1EE 48%, #121216); --line: #2A2A32; --line-soft: #212129;
    --violet: #8B79F5; --violet-lift: #A091F8; --violet-wash: #1E1A3A; --violet-line: #322C63;
    --live: #4FBF9B; --live-wash: #12241E; --amber: #E0A33A; --amber-wash: #2A2113 }
}
:root[data-theme='dark'] {
  --paper: #121216; --sunk: #17171C; --fg: #F2F1EE; --fg-soft: color-mix(in srgb, #F2F1EE 70%, #121216);
  --fg-mute: color-mix(in srgb, #F2F1EE 48%, #121216); --line: #2A2A32; --line-soft: #212129;
  --violet: #8B79F5; --violet-lift: #A091F8; --violet-wash: #1E1A3A; --violet-line: #322C63;
  --live: #4FBF9B; --live-wash: #12241E; --amber: #E0A33A; --amber-wash: #2A2113 }

/* ---------------------------------------------------------------- reset */

*,*::before,*::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0; background: var(--paper); color: var(--fg);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: hidden }
img { max-width: 100%; display: block }
a { color: inherit }
h1,h2,h3,h4 {
  margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-weight: 700;
  font-variation-settings: 'wdth' 82; text-wrap: balance }
h3, h4 { line-height: 1.12; font-variation-settings: 'wdth' 88 }
p { margin: 0 0 1.05em }
p:last-child { margin-bottom: 0 }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut) }
.read { max-width: var(--read) }
.skip { position: absolute; left: -9999px; z-index: 100; background: var(--violet); color: #fff; padding: .75rem 1.15rem; font: 600 .8rem/1 var(--mono); border-radius: 0 0 8px 0 }
.skip:focus { left: 0; top: 0 }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums }
.accent { color: var(--violet) }

/* --------------------------------------------------------------- header */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft) }
.nav__in { display: flex; align-items: center; gap: 1rem; min-height: 4rem }
.nav__id { display: flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.0625rem }
.nav__id img { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--violet-line) }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: .15rem }
.nav__links a {
  font-size: .9063rem; font-weight: 500; color: var(--fg-soft); text-decoration: none;
  padding: .5rem .8rem; border-radius: 999px; white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease) }
.nav__links a:hover, .nav__links a[aria-current='page'] { color: var(--fg); background: var(--line-soft) }
.themebtn {
  width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--fg-soft);
  border-radius: 999px; cursor: pointer; padding: 0; margin-left: .3rem;
  transition: color .16s var(--ease), border-color .16s var(--ease) }
.themebtn:hover { color: var(--fg); border-color: var(--fg-mute) }
.themebtn svg { width: 15px; height: 15px }
@media (max-width: 56rem) { .nav__links a.hide-md { display: none } }
@media (max-width: 40rem) {
  .nav__links a { padding: .45rem .45rem; font-size: .8125rem }
  .nav__links a.hide-sm { display: none }
  .nav__id span { display: none }
}

/* --------------------------------------------------------------- pieces */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; min-height: 46px;
  transition: transform .12s var(--ease), background .16s var(--ease), border-color .16s var(--ease) }
.btn--primary { background: var(--violet); color: #fff }
.btn--primary:hover { background: var(--violet-lift) }
.btn--primary:active { transform: translateY(1px) }
.btn--line { border-color: var(--line); color: var(--fg); background: var(--paper) }
.btn--line:hover { border-color: var(--fg-mute); background: var(--line-soft) }
.btn--ghost { color: var(--violet); padding-inline: .4rem }
.btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px }

.eyebrow {
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--violet);
  display: block; margin-bottom: .9rem }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: .38rem .8rem .38rem .55rem; background: var(--paper);
  font-size: .8125rem; color: var(--fg-soft) }
.pill b { color: var(--fg); font-weight: 700 }
.pill img { width: 22px; height: 22px; border-radius: 50% }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .04em; padding: .3rem .65rem; border-radius: 999px;
  background: var(--line-soft); color: var(--fg-mute); white-space: nowrap }
.tag--live  { background: var(--live-wash);  color: var(--live) }
.tag--built { background: var(--amber-wash); color: var(--amber) }
.tag--oss   { background: var(--violet-wash); color: var(--violet) }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none }
.dot--pulse { animation: pulse 2.2s ease-in-out infinite }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .dot--pulse { animation: none } }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.5rem }

/* -------------------------------------------------------------- section */

.sect { padding-block: clamp(3.25rem, 7vw, 5.5rem) }
.sect--sunk { background: var(--sunk); border-block: 1px solid var(--line-soft) }
.sect__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem) }
.sect__head h2 { font-size: clamp(1.9rem, 1.35rem + 2.6vw, 3.125rem); margin-bottom: .8rem; font-variation-settings: 'wdth' 78 }
.sect__head p { color: var(--fg-soft); font-size: 1.0625rem; margin: 0 }
.sect__head--center { margin-inline: auto; text-align: center }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative; padding-block: clamp(2.5rem, 5vw, 4.25rem) clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 15% -10%, var(--violet-wash), transparent 70%),
    var(--paper) }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 22px 22px; color: var(--line); opacity: .5;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%) }
.hero > * { position: relative }
.hero__grid { display: grid; gap: clamp(2.25rem, 4vw, 3.25rem); grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center }
@media (max-width: 64rem) { .hero__grid { grid-template-columns: minmax(0,1fr) } }

.hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.25rem);
  font-weight: 700; letter-spacing: -0.025em; margin: 1rem 0 1.15rem;
  font-variation-settings: 'wdth' 78; max-width: 15ch }
@media (max-width: 64rem) { .hero h1 { max-width: 17ch } }
.hero__lede { font-size: clamp(1rem, .97rem + .3vw, 1.125rem); color: var(--fg-soft); max-width: 33rem; margin-bottom: 1.4rem }

.checks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem }
.checks li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9688rem; color: var(--fg-soft) }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--violet) }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; margin-bottom: 1.75rem; max-width: 30rem }
@media (max-width: 26rem) { .stats { grid-template-columns: minmax(0,1fr) } }
.stat {
  display: inline-flex; align-items: baseline; gap: .4rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .5rem .8rem;
  background: var(--paper) }
.stat b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums }
.stat span { font-size: .8125rem; color: var(--fg-mute) }

.hero__acts { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center }

/* ------------------------------------------------------------ flow card */

.flow {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden }
.flow__bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); background: var(--line-soft) }
.flow__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E0E0E0 }
.flow__bar i:nth-child(1) { background: #F5675A }
.flow__bar i:nth-child(2) { background: #F6BE4F }
.flow__bar i:nth-child(3) { background: #61C555 }
.flow__name { font-family: var(--mono); font-size: .75rem; color: var(--fg-soft); margin-left: .5rem }
.flow__badge { margin-left: auto; font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 5px; padding: .2rem .45rem }
.flow__body { padding: 1.35rem 1.25rem 1.25rem }
.flow__status { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9375rem; margin-bottom: 1.15rem; letter-spacing: -0.015em }
.flow__status .dot { background: var(--live) }

.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; position: relative }
.flow__steps::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 26px; height: 2px;
  background: var(--line); border-radius: 2px }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center }
.step__tile {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--line-soft); color: var(--fg-mute); position: relative;
  border: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease) }
.step__tile svg { width: 22px; height: 22px }
.step__label { font-size: .6875rem; color: var(--fg-mute); line-height: 1.3; transition: color .3s var(--ease) }
.step__tick {
  position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--live); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: scale(.5); transition: opacity .25s var(--ease), transform .25s var(--ease);
  border: 2px solid var(--paper) }
.step__tick svg { width: 10px; height: 10px }

.step[data-state='done'] .step__tile { background: var(--violet-wash); color: var(--violet); border-color: var(--violet-line) }
.step[data-state='done'] .step__label { color: var(--fg-soft) }
.step[data-state='done'] .step__tick { opacity: 1; transform: scale(1) }
.step[data-state='active'] .step__tile { background: var(--violet); color: #fff; border-color: var(--violet); transform: scale(1.09) }
.step[data-state='active'] .step__label { color: var(--fg); font-weight: 600 }

.flow__track { height: 5px; background: var(--line-soft); border-radius: 3px; margin: 1.4rem 0 1rem; overflow: hidden }
.flow__fill { display: block; height: 100%; width: 100%; background: var(--violet); border-radius: 3px; transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease) }
.flow__foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between }
.flow__chip { font-size: .75rem; background: var(--violet-wash); color: var(--violet-deep); border-radius: 999px; padding: .3rem .7rem; font-weight: 600 }
:root[data-theme='dark'] .flow__chip { color: var(--violet) }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .flow__chip { color: var(--violet) } }
.flow__note { font-size: .75rem; color: var(--fg-mute) }
.flow__cap { text-align: center; font-size: .8125rem; color: var(--fg-mute); margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-soft) }

@media (max-width: 30rem) {
  .flow__steps { grid-template-columns: repeat(5, 1fr); gap: .15rem }
  .step__tile { width: 42px; height: 42px; border-radius: 10px }
  .step__tile svg { width: 18px; height: 18px }
  .step__label { font-size: .5625rem }
  .flow__steps::before { top: 21px }
}

/* --------------------------------------------------------------- grids */

.grid { display: grid; gap: 1.15rem }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)) }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)) }

.svc { display: flex; flex-direction: column; gap: .75rem; transition: border-color .18s var(--ease), transform .18s var(--ease) }
.svc:hover { border-color: var(--violet-line); transform: translateY(-2px) }
.svc__ico { width: 40px; height: 40px; border-radius: 3px; display: grid; place-items: center; background: var(--violet-wash); color: var(--violet) }
.svc__ico svg { width: 20px; height: 20px }
.svc h3 { font-size: 1.125rem; letter-spacing: -0.022em }
.svc p { color: var(--fg-soft); font-size: .9375rem; margin: 0 }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem }
.svc li { font-size: .875rem; color: var(--fg-soft); padding-left: 1.1rem; position: relative }
.svc li::before { content: '+'; position: absolute; left: 0; color: var(--violet); font-weight: 700 }

/* project card */
.proj {
  display: flex; flex-direction: column; gap: .8rem; text-decoration: none; color: inherit;
  transition: border-color .18s var(--ease), transform .18s var(--ease) }
.proj:hover { border-color: var(--violet-line); transform: translateY(-2px) }
.proj__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap }
.proj h3 { font-size: 1.0625rem; letter-spacing: -0.022em; line-height: 1.28 }
.proj p { color: var(--fg-soft); font-size: .9375rem; margin: 0; flex: 1 }
.proj__out { font-family: var(--mono); font-size: .75rem; color: var(--fg); font-weight: 500; padding-top: .8rem; border-top: 1px solid var(--line-soft); font-variant-numeric: tabular-nums }
.proj__go { font-size: .8125rem; color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem }
.proj:hover .proj__go span { transform: translateX(3px) }
.proj__go span { transition: transform .18s var(--ease); display: inline-block }
.proj__stack { display: flex; flex-wrap: wrap; gap: .3rem }


/* faq */
.faq { display: grid; gap: .6rem; max-width: 48rem }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.2rem; font-weight: 600;
  font-size: 1rem; display: flex; align-items: center; gap: 1rem; letter-spacing: -0.018em }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: '+'; margin-left: auto; color: var(--violet); font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform .2s var(--ease) }
.faq details[open] summary::after { transform: rotate(45deg) }
.faq details[open] summary { padding-bottom: .5rem }
.faq__a { padding: 0 1.2rem 1.15rem; color: var(--fg-soft); font-size: .9375rem; max-width: 60ch }
.faq__a p { margin-bottom: .7rem }

/* resources */
.res { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease) }
.res:hover { border-color: var(--violet-line); transform: translateY(-2px) }
.res h3 { font-size: 1rem; letter-spacing: -0.02em }
.res p { font-size: .9063rem; color: var(--fg-soft); margin: 0 }
.res__meta { font-family: var(--mono); font-size: .6875rem; color: var(--fg-mute); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap }


/* cta band */
.band { background: var(--violet); color: #fff; border-radius: var(--r); padding: clamp(2rem, 5vw, 3.25rem); text-align: center }
.band h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); margin-bottom: .8rem; color: #fff; font-variation-settings: 'wdth' 78 }
.band p { color: rgba(255,255,255,.82); max-width: 40rem; margin-inline: auto; margin-bottom: 1.6rem }
.band .btn--primary { background: #fff; color: var(--violet-deep) }
.band .btn--primary:hover { background: var(--cream) }
.band .btn--line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent }
.band .btn--line:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7) }
.band__acts { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center }

/* --------------------------------------------------------------- footer */

.foot { background: var(--sunk); border-top: 1px solid var(--line); padding-block: clamp(2.5rem,5vw,3.5rem) 1.75rem; margin-top: 0 }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0,1.4fr) repeat(auto-fit, minmax(9rem, 1fr)); margin-bottom: 2.25rem }
.foot__bio { max-width: 24rem }
.foot__bio p { font-size: .9063rem; color: var(--fg-soft); margin-top: .75rem }
.foot h4 { font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: .85rem; font-weight: 500 }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem }
.foot ul a { font-size: .9063rem; color: var(--fg-soft); text-decoration: none }
.foot ul a:hover { color: var(--violet) }
.foot__bar { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--fg-mute) }
.foot__bar .r { margin-left: auto }
@media (max-width: 40rem) { .foot__bar .r { margin-left: 0 } }

/* --------------------------------------------------------------- article */

.doc { padding-block: clamp(2.25rem,5vw,3.5rem) clamp(3rem,6vw,4.5rem) }
.doc h2 { font-size: clamp(1.4rem,1.2rem + 1.1vw,1.875rem); margin: clamp(2.25rem,4vw,3rem) 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); max-width: var(--read) }
.doc h2:first-child { margin-top: 0 }
.doc h3 { font-size: 1.125rem; margin: 1.85rem 0 .5rem; letter-spacing: -0.022em }
.doc p, .doc ul, .doc ol { max-width: var(--read) }
.doc ul, .doc ol { padding-left: 1.15rem; margin: 0 0 1.15rem }
.doc li { margin-bottom: .5rem; color: var(--fg-soft) }
.doc li strong { color: var(--fg) }
.doc .lead { font-size: 1.125rem; color: var(--fg) }
.doc a { color: var(--violet); text-underline-offset: 3px }
.doc blockquote { margin: 1.9rem 0; padding-left: 2.6rem; position: relative; font-size: 1.1875rem; line-height: 1.45; letter-spacing: -0.02em; max-width: 44ch }
.doc blockquote::before { content: 'C'; position: absolute; left: 0; top: -.35em; font-size: 3.2rem; line-height: 1; color: var(--violet); font-family: var(--sans) }
.doc blockquote cite { display: block; font-style: normal; margin-top: .75rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute) }

.phead { padding-block: clamp(2.25rem,5vw,3.25rem); background: var(--sunk); border-bottom: 1px solid var(--line) }
.phead h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: .98; margin-bottom: 1rem; max-width: 20ch;
  font-variation-settings: 'wdth' 74 }
.phead h1.upper { text-transform: uppercase; letter-spacing: -0.005em }
.phead__lede { color: var(--fg-soft); font-size: 1.0625rem; max-width: 52ch; margin: 0 }
.phead__back { font-size: .875rem; color: var(--violet); text-decoration: none; display: inline-block; margin-bottom: 1.15rem; font-weight: 500 }
.phead__facts { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem,1fr)); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line) }
.phead__facts dt { font-family: var(--mono); font-size: .625rem; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: .35rem }
.phead__facts dd { margin: 0; font-size: .875rem; color: var(--fg); line-height: 1.45 }

.outcome { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit,minmax(13rem,1fr)); margin: 2rem 0 }
.outcome > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; background: var(--paper) }
.outcome .f { display: block; font-size: clamp(1.25rem,1.05rem + .9vw,1.625rem); font-weight: 700; letter-spacing: -0.035em; margin-bottom: .4rem; font-variant-numeric: tabular-nums }
.outcome .f .arrow { color: var(--violet) }
.outcome .c { font-size: .875rem; color: var(--fg-soft); line-height: 1.45 }

.note { border: 1px solid color-mix(in srgb, var(--amber) 32%, var(--line)); border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 2rem 0; max-width: var(--read); background: var(--amber-wash) }
.note__t { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: .75rem }
.note p, .note li { color: var(--fg-soft); font-size: .9063rem }
.note ul { margin-bottom: 0 }

.route { margin: 2rem 0; overflow-x: auto; padding-bottom: .5rem }
.route svg { min-width: 34rem; width: 100%; height: auto; display: block }
.route figcaption { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); margin-top: .85rem }
.rt-node { fill: var(--paper); stroke: var(--line) }
.rt-node--key { fill: var(--violet-wash); stroke: var(--violet) }
.rt-wire { stroke: var(--fg-mute); fill: none }
.rt-t { font-family: var(--mono); font-size: 9.5px; fill: var(--fg) }
.rt-s { font-family: var(--mono); font-size: 7.5px; letter-spacing: .08em; fill: var(--fg-mute) }

.docnav { display: flex; gap: .7rem; flex-wrap: wrap; padding-top: 2.25rem; margin-top: 2.75rem; border-top: 1px solid var(--line) }



/* ---------------------------------------------------------------- table */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper) }
.tbl { width: 100%; border-collapse: collapse; min-width: 46rem; font-size: .9063rem }
.tbl th {
  text-align: left; font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--fg-mute);
  padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--sunk);
  white-space: nowrap }
.tbl td { padding: .95rem 1rem; border-bottom: 1px solid var(--line-soft); color: var(--fg-soft); vertical-align: top }
.tbl tr:last-child td { border-bottom: 0 }
.tbl td strong { color: var(--fg); font-weight: 600 }
.tbl td:last-child { font-family: var(--mono); font-size: .75rem; color: var(--fg-mute); white-space: nowrap }
.tbl__note { font-size: .875rem; color: var(--fg-mute); margin-top: 1rem; max-width: 60ch }

/* ----------------------------------------------------------- calculator */

.calc { display: grid; gap: 1.5rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start }
@media (max-width: 56rem) { .calc { grid-template-columns: minmax(0,1fr) } }
.calc__controls { display: grid; gap: 1.15rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem }
.calc__row { display: grid; gap: .55rem }
.calc__lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .875rem; color: var(--fg-soft) }
.calc__lbl b { font-family: var(--mono); font-size: .875rem; color: var(--fg); font-variant-numeric: tabular-nums }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px; background: var(--line); outline: none }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 19px; height: 19px; border-radius: 50%; background: var(--violet); cursor: pointer; border: 3px solid var(--paper) }
.calc input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--violet); cursor: pointer; border: 3px solid var(--paper) }
.calc__out { display: grid; gap: .9rem }
.calc__panel { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; background: var(--paper) }
.calc__panel--bad { background: var(--amber-wash); border-color: color-mix(in srgb, var(--amber) 30%, var(--line)) }
.calc__panel--good { background: var(--live-wash); border-color: color-mix(in srgb, var(--live) 30%, var(--line)) }
.calc__cap { display: block; font-size: .8125rem; color: var(--fg-mute); margin-bottom: .35rem }
.calc__fig { display: block; font-family: var(--mono); font-size: clamp(1.5rem,1.2rem + 1.4vw,2rem); font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums }
.calc__sub { display: block; font-family: var(--mono); font-size: .75rem; color: var(--fg-mute); margin-top: .3rem }
.calc__save { font-size: .9375rem; color: var(--fg-soft); margin: 0; padding: .9rem 1.4rem; background: var(--violet-wash); border-radius: var(--r) }
.calc__save b { color: var(--violet); font-family: var(--mono); font-variant-numeric: tabular-nums }

/* ------------------------------------------------------------ reviews
   The markup is commented out in index.html until a real quote exists.
   These rules stay so restoring it is a one-line change. */

.revs { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)) }
.rev { display: flex; flex-direction: column; gap: .9rem; position: relative }
.rev__stars { display: flex; gap: .12rem; color: #E8A33C }
.rev__stars svg { width: 15px; height: 15px }
.rev__q { font-size: .9688rem; color: var(--fg); line-height: 1.55; margin: 0; flex: 1 }
.rev__by { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: 1px solid var(--line-soft) }
.rev__av {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--violet-wash); color: var(--violet); font-weight: 700; font-size: .875rem }
.rev__name { font-size: .9063rem; font-weight: 600; letter-spacing: -0.015em; display: block }
.rev__role { font-size: .8125rem; color: var(--fg-mute); display: block }

/* Placeholder state. Remove data-placeholder once the quote is real. */
.rev[data-placeholder] { border-style: dashed; background: transparent }
.rev[data-placeholder] .rev__q { color: var(--fg-mute) }
.rev[data-placeholder] .rev__stars { color: var(--line) }
.rev[data-placeholder] .rev__av { background: var(--line-soft); color: var(--fg-mute) }
.rev__tag {
  position: absolute; top: -.6rem; right: 1rem;
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--amber-wash); color: var(--amber); padding: .22rem .5rem; border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent) }
code { font-family: var(--mono); font-size: .85em; background: var(--line-soft); padding: .1em .35em; border-radius: 4px }

/* ==================================================== portfolio cards ==== */

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--fg-mute); cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.filter:hover { color: var(--fg); border-color: var(--fg-mute); }
.filter[aria-pressed='true'] { background: var(--fg); border-color: var(--fg); color: var(--paper); }

.folio { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.folio__it[hidden] { display: none; }

.pcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  overflow: hidden; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.pcard:hover { border-color: var(--fg); background: var(--sunk); }

/* schematic: the mechanism, not a screenshot */
.pcard__fig {
  aspect-ratio: 16 / 9; background: var(--sunk); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; padding: 1.1rem; overflow: hidden;
}
.pcard:hover .pcard__fig { background: var(--violet-wash); }
.pcard__fig svg { width: 100%; height: 100%; }
.sch-l { stroke: var(--fg-mute); fill: none; stroke-width: 1.4; }
.sch-b { stroke: var(--fg); fill: none; stroke-width: 1.6; }
.sch-k { stroke: var(--violet); fill: none; stroke-width: 1.8; }
.sch-f { fill: var(--violet); stroke: none; }
.sch-fl { fill: var(--fg-mute); stroke: none; opacity: .35; }
.sch-t { font: 500 7px var(--mono); fill: var(--fg-mute); letter-spacing: .08em; stroke: none; }

.pcard__body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.pcard__cat {
  font: 500 .625rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute);
}
.pcard h3 {
  font-size: 1.5rem; font-variation-settings: 'wdth' 80; font-weight: 700;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.05;
}
.pcard__who { font-size: .875rem; color: var(--fg-mute); }
.pcard__foot {
  margin-top: auto; padding-top: .95rem; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: .6rem;
}
.pcard__fig-n {
  font: 700 1.375rem/1 var(--sans); font-variation-settings: 'wdth' 80;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pcard__cap { font-size: .8125rem; color: var(--fg-mute); line-height: 1.35; }
.pcard__go { margin-left: auto; color: var(--violet); font-size: 1rem; transition: transform .18s var(--ease); }
.pcard:hover .pcard__go { transform: translateX(3px); }

/* closing device */
.nextup {
  border: 1px solid var(--line); border-radius: var(--r); background: var(--sunk);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); text-align: center;
}
.nextup__k { font: 500 .6875rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-mute); display: block; margin-bottom: 1.1rem; }
.nextup h2 {
  font-size: clamp(2.25rem, 1.5rem + 4vw, 4.5rem); text-transform: uppercase;
  font-variation-settings: 'wdth' 74; letter-spacing: -0.01em; line-height: .95; margin-bottom: 1.1rem;
}
.nextup p { color: var(--fg-soft); max-width: 40ch; margin-inline: auto; margin-bottom: 1.75rem; }
.nextup__note { font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); margin-top: 1.25rem; }
