/* ==========================================================================
   rdcruz.com — fonts (self-hosted, SIL Open Font License; latin files subset with fonttools to include ₱)
   ========================================================================== */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B1, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B0, U+20B2-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B0, U+20B2-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================================
   rdcruz.com — tokens
   ========================================================================== */
:root {
  --paper: #F6F1E7;
  --paper-2: #EFE7D8;
  --card: #FFFDF8;
  --ink: #17140F;
  --muted: #6D6559;
  --line: #17140F;
  --sun: #FFC53D;
  --tomato: #FF5A36;
  --tomato-text: #C23A1C; /* the orange for small text: readable (4.5:1+) on the light backgrounds */
  --sea: #3558FF;
  --leaf: #1FA67A;
  --lilac: #B69CFF;
  --shadow: 5px 5px 0 var(--line);
  --shadow-lg: 8px 8px 0 var(--line);
  --radius: 18px;
  --font: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15130F; --paper-2: #1E1B16; --card: #221F19;
    --ink: #F4EEE3; --muted: #A89F90; --line: #F4EEE3;
    --sea: #6D86FF; --tomato: #FF7152; --tomato-text: #FF7152;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15130F; --paper-2: #1E1B16; --card: #221F19;
  --ink: #F4EEE3; --muted: #A89F90; --line: #F4EEE3;
  --sea: #6D86FF; --tomato: #FF7152; --tomato-text: #FF7152;
  color-scheme: dark;
}

/* ==========================================================================
   base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  background-attachment: fixed;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
h2 { font-size: clamp(2.1rem, 5.5vw, 4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.small { font-size: .9rem; }
kbd { font-family: var(--mono); border: 2px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--card); }
::selection { background: var(--sun); color: #17140F; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

/* scroll progress + cursor blob */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; background: var(--tomato); transform-origin: 0 50%; transform: scaleX(0); z-index: 100; }
.blob {
  position: fixed; width: 420px; height: 420px; left: 0; top: 0; pointer-events: none; z-index: -1;
  border-radius: 50%; filter: blur(70px); opacity: .45;
  background: radial-gradient(circle at 30% 30%, var(--sun), var(--tomato) 60%, transparent 70%);
  transform: translate(-50%, -50%); will-change: transform;
}

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 700 1rem/1 var(--font); color: #17140F; text-decoration: none; cursor: pointer;
  background: var(--sun); border: 2.5px solid var(--line); border-radius: 999px;
  padding: .95em 1.5em; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; box-shadow: 3px 3px 0 var(--line); }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; margin: .6rem auto 0; display: block; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 12px;
  font: 700 .85rem var(--mono); transition: transform .15s;
}
.icon-btn:hover { transform: rotate(-6deg) scale(1.05); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}

/* ==========================================================================
   nav
   ========================================================================== */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px var(--gutter) 0; padding: 10px 10px 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2.5px solid var(--line); border-radius: 999px; box-shadow: 4px 4px 0 var(--line);
}
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.04em; text-decoration: none; }
.logo span { color: var(--tomato); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45em .9em; border-radius: 999px; transition: background .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--paper-2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-actions .btn-sm { display: none; } }

/* ==========================================================================
   hero
   ========================================================================== */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) var(--gutter) 64px; min-height: 86vh; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 .85rem var(--mono); padding: .45em 1em; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 var(--leaf); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-title { font-size: clamp(2.6rem, 8vw, 6.6rem); margin: 28px 0 28px; max-width: 16ch; position: relative; z-index: 2; }
.hero-title .line { display: block; }
.name { display: inline-block; }
.name .ch { display: inline-block; transition: transform .25s cubic-bezier(.3,1.6,.5,1), color .2s; }
.name .ch:hover { color: var(--tomato); }
.rotator {
  display: inline-block; background: var(--sun); color: #17140F; padding: 0 .18em; border-radius: .18em;
  border: 3px solid var(--line); box-shadow: var(--shadow); transform: rotate(-1.5deg); white-space: nowrap;
}
#rotWord { display: inline-block; transition: transform .3s, opacity .3s; }
#rotWord.out { transform: translateY(-40%); opacity: 0; }
.hero-sub { max-width: 40rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); position: relative; z-index: 2; }
.hero-sub em { color: var(--ink); font-style: normal; font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--leaf) 45%, transparent) 62%); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; position: relative; z-index: 2; }
.hero-cta.center { justify-content: center; }

.sticker-field { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sticker {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r));
  pointer-events: auto; cursor: grab; user-select: none; touch-action: none;
  font: 800 1.05rem/1.1 var(--font); padding: .7em 1.1em; color: #17140F;
  border: 2.5px solid #17140F; border-radius: 14px; box-shadow: 4px 4px 0 #17140F; white-space: nowrap;
  transition: box-shadow .15s, scale .15s;
}
.sticker:hover { scale: 1.06; }
.sticker.dragging { cursor: grabbing; scale: 1.12; box-shadow: 10px 12px 0 #17140F; z-index: 10; transition: none; }
.sticker.round { border-radius: 50%; width: 96px; height: 96px; display: grid; place-items: center; text-align: center; padding: 0; white-space: normal; font-size: .9rem; }
.s-sun { background: var(--sun); } .s-tomato { background: var(--tomato); }
.s-sea { background: var(--sea); color: #fff; } .s-leaf { background: var(--leaf); }
:root[data-theme="dark"] .s-sea { color: #17140F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-sea { color: #17140F; } }
:root[data-theme="dark"] .sticker { box-shadow: 4px 4px 0 var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sticker { box-shadow: 4px 4px 0 var(--line); } }
.s-paper { background: #FFFDF8; font-family: var(--mono); font-size: .9rem; }
.drag-hint { position: absolute; right: var(--gutter); bottom: 18px; font: 600 .8rem var(--mono); color: var(--muted); transform: rotate(-2deg); margin: 0; }
@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 300px; }
  .sticker-field { top: auto; height: 260px; bottom: 30px; }
  .sticker { --x: 0; }
  .sticker:nth-child(1) { left: 6%; top: 4%; } .sticker:nth-child(2) { left: 58%; top: 0; }
  .sticker:nth-child(3) { left: 14%; top: 40%; } .sticker:nth-child(4) { left: 64%; top: 36%; }
  .sticker:nth-child(5) { left: 30%; top: 74%; }
  .drag-hint { bottom: 6px; }
}

/* marquee */
.marquee { border-block: 2.5px solid var(--line); background: var(--ink); color: var(--paper); overflow: hidden; transform: rotate(-1.2deg); margin: 0 -10px; }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 16px 0; font-weight: 800; font-size: 1.5rem; animation: marquee 38s linear infinite; }
.marquee i { color: var(--sun); font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 72px var(--gutter) 24px; }
.stat { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat:nth-child(1) { rotate: -1deg; } .stat:nth-child(2) { rotate: .8deg; } .stat:nth-child(3) { rotate: -.6deg; } .stat:nth-child(4) { rotate: 1.2deg; }
.stat b { display: block; font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); font-size: .95rem; line-height: 1.35; display: block; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   sections
   ========================================================================== */
.section { padding: clamp(72px, 10vw, 130px) var(--gutter) 0; }
.section-head { margin-bottom: 40px; }
.kicker { font: 600 .85rem var(--mono); color: var(--tomato-text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, background .2s; position: relative;
}
.svc:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.svc p { color: var(--muted); margin: 10px 0 0; font-size: 1rem; }
.svc-emoji { width: 52px; height: 52px; border: 2.5px solid var(--line); border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; background: var(--paper-2); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.svc:hover .svc-emoji { transform: rotate(-12deg) scale(1.1); }
.svc[data-svc="branding"]:hover { background: color-mix(in srgb, var(--lilac) 22%, var(--card)); }
.svc[data-svc="graphics"]:hover { background: color-mix(in srgb, var(--tomato) 16%, var(--card)); }
.svc[data-svc="copy"]:hover { background: color-mix(in srgb, var(--sun) 25%, var(--card)); }
.svc[data-svc="marketing"]:hover { background: color-mix(in srgb, var(--sea) 16%, var(--card)); }
.svc[data-svc="pm"]:hover { background: color-mix(in srgb, var(--leaf) 18%, var(--card)); }
.svc-main { grid-column: span 2; grid-row: span 2; background: var(--sea); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.svc-main:hover { background: var(--sea); }
.svc-main > :not(.mini-ui) { grid-column: 1; }
.svc-main h3 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: 6px; }
.svc-main p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.svc-tag { display: inline-block; font: 600 .75rem var(--mono); text-transform: uppercase; background: var(--sun); color: #17140F; border: 2px solid #17140F; padding: .3em .8em; border-radius: 999px; justify-self: start; }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; font-size: .98rem; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; background: var(--sun); color: #17140F; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.mini-ui { grid-column: 2; grid-row: 1 / span 4; align-self: center; background: #FFFDF8; border: 2.5px solid #17140F; border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 #17140F; transform: rotate(2deg); transition: transform .4s; }
.svc-main:hover .mini-ui { transform: rotate(0) scale(1.03); }
.mini-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 2px solid #17140F; background: #EFE7D8; }
.mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: #FF5A36; } .mini-bar i:nth-child(2) { background: #FFC53D; } .mini-bar i:nth-child(3) { background: #1FA67A; }
.mini-bar span { font: .65rem var(--mono); color: #6D6559; margin-left: 8px; }
.mini-body { display: flex; height: 200px; }
.mini-side { width: 26%; background: #17140F; padding: 12px 8px; display: grid; align-content: start; gap: 8px; }
.mini-side b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); } .mini-side b:first-child { background: #FFC53D; width: 70%; }
.mini-main { flex: 1; padding: 12px; display: grid; gap: 10px; grid-template-rows: auto 1fr; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-cards span { height: 34px; border: 2px solid #17140F; border-radius: 8px; background: #F6F1E7; }
.mini-cards span:nth-child(2) { background: #B69CFF; } .mini-cards span:nth-child(3) { background: #1FA67A; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; border: 2px solid #17140F; border-radius: 8px; padding: 8px; }
.mini-chart em { flex: 1; height: var(--h); background: #3558FF; border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 2.4s ease-in-out infinite alternate; }
.mini-chart em:nth-child(even) { background: #FF5A36; animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .svc-main { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1fr; }
  .mini-ui { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* work */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { font: 700 .92rem var(--font); cursor: pointer; padding: .55em 1.1em; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); transition: transform .15s, background .2s; }
.chip:hover { transform: translateY(-2px); }
.chip.active { background: var(--ink); color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card {
  text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0;
  background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, opacity .3s;
  display: flex; flex-direction: column; transform-style: preserve-3d;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card.hide { display: none; }
.card.pop { animation: pop .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.cover { height: 170px; position: relative; overflow: hidden; border-bottom: 2.5px solid var(--line); display: grid; place-items: center; }
.cover-mono { font-weight: 800; font-size: 4.2rem; letter-spacing: -0.06em; color: #17140F; mix-blend-mode: multiply; opacity: .9; transition: transform .4s; }
.card:hover .cover-mono { transform: scale(1.12) rotate(-4deg); }
.cover-mono { position: relative; z-index: 1; }
.cover-shape { position: absolute; pointer-events: none; transform: rotate(var(--r)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.cover-shape svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cover-shape svg * { stroke: #17140F; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cover-shape.light svg * { fill: rgba(255,255,255,.35); }
.cover-shape.dark svg * { fill: rgba(23,20,15,.12); }
.cover-shape svg .line { fill: none !important; stroke-width: 3; }
.card:hover .cover-shape { transform: rotate(calc(var(--r) + 25deg)) scale(1.06); }
.c-sun { background: var(--sun); } .c-tomato { background: #FF8A6B; } .c-sea { background: #8EA3FF; } .c-leaf { background: #6FD1AE; } .c-lilac { background: var(--lilac); } .c-sand { background: #E8D7B5; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.card-body p { color: var(--muted); font-size: .98rem; margin: 0; }
.card-meta { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--tomato-text); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tag { font: 600 .72rem var(--mono); padding: .3em .7em; border: 1.5px solid var(--line); border-radius: 999px; }
.card-more { font-weight: 700; font-size: .9rem; display: inline-flex; gap: .3em; }
.card:hover .card-more span { transform: translateX(4px); }
.card-more span { transition: transform .2s; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; font: 700 .7rem var(--mono); background: #17140F; color: #FFC53D; padding: .35em .7em; border-radius: 999px; }

/* modal */
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: 88vh; padding: 0; overflow: auto;
  background: var(--card); color: var(--ink); border: 3px solid var(--line); border-radius: 22px; box-shadow: 10px 10px 0 var(--line);
}
.modal::backdrop { background: rgba(23,20,15,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 2px solid #17140F; background: #FFFDF8; color: #17140F; cursor: pointer; font-size: 1rem; }
.modal .cover { height: 150px; }
.modal-content { padding: 26px 28px 30px; }
.modal-content h3 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 6px 0 14px; }
.modal-content p { color: var(--muted); }
.modal-content h4 { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 20px 0 10px; }
.modal-content ul { margin: 0; padding-left: 1.2em; }
.modal-content li { margin-bottom: 6px; }
.modal-role { display: flex; flex-wrap: wrap; gap: 6px; }
.modal-role .tag { background: var(--sun); color: #17140F; border-color: #17140F; }
.modal-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.modal-modules div { border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--paper-2); }
.modal-modules b { display: block; font-size: .95rem; margin-bottom: 4px; color: var(--ink); }
.modal-modules span { display: block; font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.process::before { content: ''; position: absolute; left: 4%; right: 4%; top: 30px; height: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); z-index: -1; }
.process li { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); margin-top: 0; transition: transform .25s; }
.process li:nth-child(odd) { margin-top: 36px; }
.process li:hover { transform: translateY(-6px) rotate(-1deg); }
.process p { color: var(--muted); font-size: .95rem; margin: 8px 0 0; }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; border: 2.5px solid var(--line); margin-bottom: 14px; background: var(--sun); color: #17140F; }
.process li:nth-child(2) .step-n { background: var(--tomato); color: #fff; }
.process li:nth-child(3) .step-n { background: var(--sea); color: #fff; }
.process li:nth-child(4) .step-n { background: var(--leaf); color: #fff; }
.process li:nth-child(5) .step-n { background: var(--lilac); }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(odd) { margin-top: 0; }
  .process::before { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* brief builder */
.builder { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.builder-form { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; align-items: baseline; }
legend small { font-weight: 500; color: var(--muted); font-size: .85rem; }
legend output { font: 600 .8rem var(--mono); background: var(--sun); color: #17140F; padding: .2em .7em; border-radius: 999px; border: 2px solid #17140F; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; font-weight: 700; font-size: .95rem; padding: .55em 1em; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); transition: transform .15s, background .15s, box-shadow .15s; user-select: none; }
.pick-sm span { font-size: .85rem; padding: .45em .85em; }
.pick label:hover span { transform: translateY(-2px); }
.pick input:checked + span { background: var(--leaf); color: #fff; box-shadow: 3px 3px 0 var(--line); transform: rotate(-1.5deg); }
.pick input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--tomato); height: 28px; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font: .72rem var(--mono); color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: 400 1rem var(--font); color: var(--ink); background: var(--paper); border: 2px solid var(--line); border-radius: 12px; padding: .75em .9em; resize: vertical; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--sea); border-color: var(--sea); }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.receipt { position: sticky; top: 100px; filter: drop-shadow(6px 6px 0 var(--line)); }
.receipt-inner {
  background: #FFFDF8; color: #17140F; font-family: var(--mono); font-size: .88rem; padding: 26px 24px 30px; border: 2.5px solid #17140F; border-bottom: 0;
  --zz: 12px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
  padding-bottom: 40px;
}
.receipt p { margin: 0 0 4px; }
.r-head { text-align: center; font-weight: 600; font-size: 1.05rem; letter-spacing: .1em; }
.r-head small { font-size: .72rem; letter-spacing: .05em; color: #6D6559; }
.r-dash { border-top: 2px dashed #17140F; margin: 14px 0; }
.r-label { font-size: .7rem; color: #6D6559; margin-top: 12px !important; letter-spacing: .1em; }
.receipt ul { list-style: none; padding: 0; margin: 0; }
.receipt li { display: flex; justify-content: space-between; gap: 8px; animation: slidein .25s ease; }
.receipt li::after { content: '✓'; color: #1FA67A; font-weight: 700; }
@keyframes slidein { from { opacity: 0; transform: translateX(-8px); } }
.r-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; }
.r-meter { height: 12px; border: 2px solid #17140F; border-radius: 999px; overflow: hidden; margin: 8px 0 20px; }
.r-meter i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, #1FA67A, #FFC53D, #FF5A36); background-size: 300% 100%; transition: width .4s cubic-bezier(.3,1.4,.5,1); }
.receipt .btn { font-family: var(--font); }
.receipt .linkish { color: #6D6559; font-family: var(--mono); }
.r-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .75rem; line-height: 1.45; color: #6D6559; margin: 0 0 12px; cursor: pointer; }
.r-consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: #17140F; }
.r-consent a { color: #17140F; font-weight: 600; }
.r-foot { text-align: center; font-size: .72rem; color: #6D6559; margin-top: 16px !important; }
@media (max-width: 960px) { .builder { grid-template-columns: 1fr; } .receipt { position: static; } }

/* about */
.about-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; background: var(--card); border: 2.5px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.about-card h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.about-card p:not(.kicker) { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.avatar { width: clamp(110px, 16vw, 180px); aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--line); background: conic-gradient(var(--sun) 0 25%, var(--tomato) 0 50%, var(--sea) 0 75%, var(--leaf) 0); display: grid; place-items: center; animation: spin 18s linear infinite; }
.avatar span { width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--card); border: 3px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .about-card { grid-template-columns: 1fr; } }

/* contact */
.contact { text-align: center; padding-bottom: 80px; }
.socials { display: flex; justify-content: center; gap: 12px; margin: 22px 0 18px; }
.social { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); }
.big-cta { font-size: clamp(2.6rem, 9vw, 7rem); }
.squiggle { position: relative; display: inline-block; color: var(--tomato); }
.squiggle::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q5 0 10 5 T20 5 T30 5 T40 5' fill='none' stroke='%23FFC53D' stroke-width='3'/%3E%3C/svg%3E") repeat-x 0 0 / .8em 100%;
  animation: wave 1.2s linear infinite;
}
@keyframes wave { to { background-position-x: .8em; } }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px var(--gutter); border-top: 2.5px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* analytics consent banner */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--card); color: var(--ink); border: 2.5px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--line); padding: 18px 20px; font-size: .92rem; line-height: 1.5; animation: consent-in .5s cubic-bezier(.2,.8,.2,1); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-title { font-weight: 800; font-size: 1rem; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; }
@keyframes consent-in { from { opacity: 0; transform: translateY(20px); } }
.consent a { color: inherit; font-weight: 700; }

/* privacy policy page */
.legal { max-width: 46rem; margin: 0 auto; padding-bottom: 96px; line-height: 1.65; }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 12px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 48px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 6px; letter-spacing: -0.01em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal a:not(.btn) { color: inherit; text-decoration-color: var(--tomato); text-underline-offset: 3px; }

/* terminal */
.term {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(560px, calc(100vw - 32px)); height: min(380px, 60vh);
  background: #17140F; color: #E9E2D4; border: 2.5px solid #17140F; border-radius: 14px; box-shadow: 8px 8px 0 var(--tomato);
  display: flex; flex-direction: column; font: .88rem/1.55 var(--mono); overflow: hidden; animation: pop .3s cubic-bezier(.3,1.5,.5,1);
}
.term[hidden] { display: none; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #2A251E; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5A36; } .term-bar i:nth-child(2) { background: #FFC53D; } .term-bar i:nth-child(3) { background: #1FA67A; }
.term-bar span { margin-left: 8px; color: #A89F90; font-size: .78rem; flex: 1; }
.term-x { background: none; border: 0; color: #A89F90; cursor: pointer; font-size: 1rem; }
.term-out { flex: 1; overflow-y: auto; padding: 12px 14px; white-space: pre-wrap; }
.term-out .c { color: #FFC53D; } .term-out .g { color: #6FD1AE; } .term-out .r { color: #FF8A6B; } .term-out .d { color: #A89F90; }
.term-out a { color: #8EA3FF; }
.term-in { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #2A251E; }
.term-in span { color: #6FD1AE; }
.term-in input { flex: 1; background: none; border: 0; color: #fff; font: inherit; outline: none; caret-color: #FFC53D; }

/* toast + confetti */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); z-index: 95; background: var(--ink); color: var(--paper); font-weight: 700; padding: .8em 1.3em; border-radius: 999px; border: 2px solid var(--line); transition: transform .35s cubic-bezier(.3,1.5,.5,1); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99; width: 100%; height: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .blob { display: none; }
}
