/* ══════════════════════════════════════════
   BYTIMIZE — DESKTOP CSS (personal)
══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:          #000000;
  --surface:     #111111;
  --surface-2:   #121212;
  --surface-3:   #0c0c0c;
  --line:        #262626;
  --line-2:      #333333;
  --line-3:      #4a4a4a;
  --text:        #f5f5f5;
  --soft:        #c9c9c9;
  --muted:       #a3a3a3;
  --muted-2:     #8f8f8f;
  --accent:      #ee7b30;
  --accent-hover:#ff9a57;
  --accent-dark: #b4561a;
  --paper:       #f3f3f3;
  --ink:         #0a0a0a;
  --display:     'Space Grotesk', system-ui, sans-serif;
  --mono:        'VT323', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--display); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.accent { color: var(--accent); }
.wrap { width: 1120px; max-width: calc(100% - 64px); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--ink); border-radius: 6px; font-weight: 600; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ══ NAV ══ */
.nav-wrap { position: sticky; top: 16px; z-index: 50; margin-top: 24px; }
[id] { scroll-margin-top: 110px; }
.nav { padding: 14px 20px; background: #1f1f1f; border: 1px solid #383838; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; position: relative; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.nav-logo { font-family: var(--mono); font-size: 30px; line-height: 1; color: var(--text); }
.nav-logo span { color: var(--accent); }
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav-links a { color: #d4d4d4; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-links a.nav-cta { display: inline-block; padding: 10px 16px; background: var(--accent); color: var(--ink); border-radius: 6px; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: var(--ink); }
.nav-toggle { display: none; }

/* ══ BUTTONS ══ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 8px; border: 1px solid transparent; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { background: #121212; border-color: var(--line-3); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #262626; color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ══ SECTIONS ══ */
.section { margin-top: 140px; }
.section.after-band { margin-top: 100px; }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 22px; line-height: 1.2; color: var(--accent); }
.h2 { margin: 0; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -1px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.section-head p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.card h3 { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.check-list li::before { content: "\2713\00a0"; }

/* ══ SUB-PAGE HERO ══ */
.page-hero { padding-top: 110px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.page-hero h1 { margin: 0 0 26px; font-size: 70px; line-height: 1.02; font-weight: 700; letter-spacing: -2px; }
.lead { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--soft); }
.page-hero .lead { margin-bottom: 26px; }

/* ══ PIXEL BAND ══ */
.band { width: 100%; aspect-ratio: 1440 / 120; margin-top: 90px; background: url(static/backgrounds/band-grid.png) 0 0 / 100% 100% no-repeat; }

/* ══ TERMINAL WINDOW ══ */
.term { background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 6px #141414; }
.term-bar { padding: 12px 16px; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; gap: 8px; }
.term-dot { width: 10px; height: 10px; border-radius: 99px; background: #3a3a3a; }
.term-dot.on { background: var(--accent); }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 18px; color: var(--muted-2); }
.term-body { padding: 24px 26px; font-family: var(--mono); font-size: 23px; line-height: 1.45; color: #d4d4d4; }
.term-body p { margin: 0; }
.term-gap { height: 16px; }
.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ══ FAQ ══ */
.faq-item { padding: 22px 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.faq-item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ══ CLOSING CTA ══ */
.cta { margin-top: 140px; min-height: 460px; padding: 72px; border: 1px solid #2a2a2a; border-radius: 16px; background: #121212 url(static/backgrounds/cta-glow.png) no-repeat center calc(100% + 150px) / 1120px 440px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta .eyebrow { margin: 0; font-size: 26px; }
.cta h2 { margin: 0; max-width: 820px; font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -1.5px; }

/* ══ FOOTER ══ */
.footer { margin-top: 96px; padding: 32px 0 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 14px; color: var(--muted-2); }
.footer-logo img { width: auto; height: 40px; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}

/* ══ PERSONAL: IDEA NOTES ══ */
.ideas { height: 440px; position: relative; }
.idea { position: absolute; padding: 22px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.idea small { font-family: var(--mono); font-size: 18px; }
.idea p { margin: 0; font-family: var(--mono); font-size: 28px; line-height: 1.05; }
.idea-1 { left: 20px; top: 10px; width: 250px; background: var(--paper); color: var(--ink); transform: rotate(-4deg); }
.idea-1 small { color: var(--accent-dark); }
.idea-2 { left: 290px; top: 40px; width: 240px; background: #151515; border: 1px solid var(--line-2); color: #e5e5e5; transform: rotate(3deg); }
.idea-2 small { color: var(--accent); }
.idea-3 { left: 60px; top: 230px; width: 250px; background: var(--accent); color: var(--ink); transform: rotate(2deg); }
.idea-3 small { color: #3a1a06; }
.idea-4 { left: 330px; top: 250px; width: 210px; background: #1f1f1f; border: 1px dashed var(--line-3); color: var(--text); transform: rotate(-3deg); }
.idea-4 small { color: var(--muted-2); }

/* ══ PERSONAL: PROJECTS ══ */
.project { padding: 28px; }
.project h3 { font-size: 21px; }
.project .eg { margin-top: 12px; font-family: var(--mono); font-size: 19px; color: var(--muted-2); }

/* ══ PERSONAL: STEPS ══ */
.step { padding: 30px; background: var(--surface-3); border-top: 2px solid #3a3a3a; }
.step.first { border-top-color: var(--accent); }
.step-num { font-family: var(--mono); font-size: 52px; line-height: 1; color: var(--muted-2); }
.step.first .step-num { color: var(--accent); }
.step h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 600; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ══ NARROW DESKTOP WINDOWS (laptops with small or snapped windows stay on this site) ══ */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2 { font-size: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-hero { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cta h2 { font-size: 44px; }
}
@media (max-width: 760px) {
  .wrap { max-width: calc(100% - 32px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { flex-wrap: wrap; gap: 12px 18px; }
  .section { margin-top: 96px; }
  .page-hero { padding-top: 64px; }
  .page-hero h1 { font-size: 46px; }
  .cta { padding: 48px 24px; min-height: 0; padding-bottom: 170px; }
  .cta h2 { font-size: 34px; }
  .term-body { font-size: 20px; }
  .term-body p { white-space: normal; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .ideas { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .idea { position: static; width: auto; }
  .idea p { font-size: 22px; overflow-wrap: anywhere; }
}

/* ══ GLOW ══ */
:root { --glow: rgba(238, 123, 48, .45); --glow-soft: rgba(238, 123, 48, .18); }
.nav-logo span, .cursor, .term-body .accent { text-shadow: 0 0 12px var(--glow); }
.term-dot.on { box-shadow: 0 0 10px var(--glow); }
.eyebrow, .principle h3, .fork-tag { text-shadow: 0 0 18px var(--glow-soft); }
.hero h1 .accent, .page-hero h1 .accent, .h2 .accent, .cta h2 .accent { text-shadow: 0 0 32px var(--glow); }
.btn-primary, .nav-links a.nav-cta { box-shadow: 0 0 22px var(--glow-soft); transition: background .15s, box-shadow .2s; }
.btn-primary:hover, .nav-links a.nav-cta:hover { box-shadow: 0 0 30px var(--glow); }
.prompt:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 36px var(--glow-soft); }
.term { box-shadow: 0 0 0 6px #141414, 0 0 60px var(--glow-soft); }
.principle { box-shadow: 0 -12px 24px -16px var(--glow); }
.card { transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: rgba(238, 123, 48, .5); box-shadow: 0 0 32px var(--glow-soft); }
.cta { box-shadow: 0 0 80px var(--glow-soft); }
.fork-panel { box-shadow: 0 0 48px var(--glow-soft); }
.service-icon { filter: drop-shadow(0 0 8px var(--glow)); }

/* glow on page-specific elements, matching the home page */
.step.first { box-shadow: 0 -12px 24px -16px var(--glow); }
.step.first .step-num, .idea-2 small { text-shadow: 0 0 18px var(--glow-soft); }
.idea-3 { box-shadow: 0 0 32px var(--glow-soft); }

/* steps light up in turn: 1, 2, 3, repeat */
.step, .step-num { animation: 6s infinite; }
.step { animation-name: step-line; }
.step-num { animation-name: step-num; animation-delay: inherit; }
.step:nth-child(2) { animation-delay: 2s; }
.step:nth-child(3) { animation-delay: 4s; }
@keyframes step-line { 0%, 37%, 100% { border-top-color: #3a3a3a; box-shadow: none; } 5%, 30% { border-top-color: var(--accent); box-shadow: 0 -12px 24px -16px var(--glow); } }
@keyframes step-num { 0%, 37%, 100% { color: var(--muted-2); text-shadow: none; } 5%, 30% { color: var(--accent); text-shadow: 0 0 18px var(--glow); } }
@media (prefers-reduced-motion: reduce) { .step, .step-num { animation: none; } }
