/* =========================================================================
   breejones.ai — styles.css
   Sections:
   1. Fonts
   2. Variables (light + dark)
   3. Reset & base
   4. Grid background + glitch
   5. Typography helpers
   6. Pixel utilities (staircase corners, drop shadow)
   7. Navigation
   8. Buttons (nav, Press Start)
   9. Home / hero
   10. Overlay + Mac window chrome + persona cards + popup
   ========================================================================= */

/* ----------------------------------------------------------------- 1. Fonts */
@font-face {
  font-family: 'Motter Tektura';
  src: url('../fonts/motter-tektura_regular.woff2') format('woff2'),
       url('../fonts/motter-tektura_regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------- 2. Variables */
:root {
  /* palette */
  --bg:     #FAFAF8;
  --grid:   #555552;
  --text:   #1A1A18;

  --green:  #61BB46;
  --yellow: #FDB827;
  --orange: #F5821F;
  --red:    #E03A3C;
  --purple: #963D97;
  --blue:   #009DDC;

  /* semantic (adapt in dark mode) */
  --paper:    var(--bg);
  --ink:      var(--text);
  --grid-line: rgba(85, 85, 82, 0.28);
  --panel-bg: rgba(250, 250, 248, 0.92);

  /* fonts */
  --font-display: 'Motter Tektura', 'Silkscreen', monospace;
  --font-ui:      'Silkscreen', monospace;
  --font-body:    'IBM Plex Mono', monospace;
}

/* Dark values apply when: (a) system is dark and no manual choice made, or
   (b) the user forced dark via the toggle. data-theme="light" forces light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:     #15150F;
    --grid:   #C9C9C2;
    --text:   #EDEDE8;
    --grid-line: rgba(140, 140, 132, 0.22);
    --panel-bg: rgba(28, 28, 22, 0.90);
  }
}

:root[data-theme="dark"] {
  --bg:     #15150F;
  --grid:   #C9C9C2;
  --text:   #EDEDE8;
  --grid-line: rgba(140, 140, 132, 0.22);
  --panel-bg: rgba(28, 28, 22, 0.90);
}
/* data-theme="light" needs no overrides — :root defaults are already light */

/* ---------------------------------------------------------- 3. Reset & base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* ------------------------------------------------- 4. Grid background + CRT */
body { background-color: var(--paper); }

/* Grid lives on its own fixed layer so we can warp/animate it without
   distorting the page content above it. */
body::before {
  content: "";
  position: fixed;
  inset: -48px;                      /* oversized so warp/parallax never reveal edges */
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 0 0;
  transform: translate(var(--grid-x, 0px), var(--grid-y, 0px));   /* mouse parallax */
  animation: gridGlitch 8s steps(1, end) infinite;
  pointer-events: none;
  will-change: transform;
}
/* barrel/CRT warp — JS-gated so a missing filter ref can never blank the grid */
body.crt-warp::before { filter: url(#crt-warp); }

/* CRT screen feel: faint scanlines + vignette (not warped, sits above the grid) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 92% 84% at 50% 50%, transparent 56%, rgba(0,0,0,0.13) 100%);
}

@keyframes gridGlitch {
  /* steady most of the cycle, then a clear ~0.5s tear where the two grid
     layers shear in opposite directions before snapping back */
  0%, 90%, 100% { background-position: 0 0, 0 0; }
  90.5% { background-position: 12px 0,  0 -9px; }
  91.5% { background-position: -14px 5px, 5px 11px; }
  92.5% { background-position: 9px -7px, -7px 5px; }
  93.5% { background-position: -5px 3px, 3px -3px; }
  94.5% { background-position: 7px 0,  0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: none; }
}


/* ------------------------------------------------------ 5. Typography helpers */
.font-display { font-family: var(--font-display); }
.font-ui      { font-family: var(--font-ui); }
.font-body    { font-family: var(--font-body); }

h1, h2, h3 { font-family: var(--font-ui); font-weight: 400; line-height: 1.25; }

/* --------------------------------------------------------- 6. Pixel utilities */
/* Right-angle stepped (staircase) corners. 4px steps. */
.pixel-corners,
.press-start {
  clip-path: polygon(
    0% 8px,
    4px 8px, 4px 4px, 8px 4px, 8px 0%,
    calc(100% - 8px) 0%, calc(100% - 8px) 4px,
    calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px),
    calc(100% - 4px) calc(100% - 8px),
    calc(100% - 4px) calc(100% - 4px),
    calc(100% - 8px) calc(100% - 4px),
    calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px),
    4px calc(100% - 4px), 4px calc(100% - 8px), 0% calc(100% - 8px)
  );
}

/* Small-step (2px) staircase for small buttons and section containers. */
.nav-btn,
.tab-footer__btn,
.section {
  clip-path: polygon(
    0% 4px,
    2px 4px, 2px 2px, 4px 2px, 4px 0%,
    calc(100% - 4px) 0%, calc(100% - 4px) 2px,
    calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px,
    100% calc(100% - 4px),
    calc(100% - 2px) calc(100% - 4px),
    calc(100% - 2px) calc(100% - 2px),
    calc(100% - 4px) calc(100% - 2px),
    calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 2px),
    2px calc(100% - 2px), 2px calc(100% - 4px), 0% calc(100% - 4px)
  );
}

.pixel-shadow { box-shadow: 3px 3px 0 var(--ink); }

/* ------------------------------------------------------------ 7. Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px clamp(16px, 5vw, 48px);
}

.nav-links { display: flex; gap: 10px; }

.nav-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 12px;
  text-decoration: none;
  color: var(--paper);                        /* solid single-color fill -> clean pixel corners */
  background: var(--ink);
  padding: 9px 14px;
  filter: drop-shadow(3px 3px 0 var(--grid)); /* pixel drop shadow that contrasts the page */
  transition: transform 0.08s ease, filter 0.08s ease, background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover { transform: translate(1px, 1px); filter: drop-shadow(2px 2px 0 var(--grid)); }

/* active = current page: color fill + flat (no shadow). No translate, so it
   stays aligned with the others; the missing shadow reads as "pressed". */
.nav-btn[aria-current="page"] {
  filter: none;
  transform: none;
}
.nav-btn[aria-current="page"]:hover { transform: none; }
.nav-btn--home[aria-current="page"]    { background: var(--green);  color: var(--text); }
.nav-btn--lore[aria-current="page"]    { background: var(--purple); color: #fff; }
.nav-btn--contact[aria-current="page"] { background: var(--blue);   color: #fff; }

/* day/night toggle — borderless icon button */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: none;
  transition: transform 0.1s ease, color 0.15s ease;
}
.theme-toggle:hover { transform: translateY(-2px); color: var(--yellow); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
/* in dark mode, show the sun (click to go light) */
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ------------------------------------------------------- 8. Press Start button */
.press-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 13px 20px;
  cursor: pointer;
  filter: drop-shadow(3px 3px 0 var(--grid));
  transition: transform 0.08s ease, filter 0.08s ease;
}
.press-start::before { content: '\25B6'; font-size: 11px; }
.press-start:hover  { transform: translate(1px, 1px); filter: drop-shadow(2px 2px 0 var(--grid)); }
.press-start:active { transform: translate(3px, 3px); filter: none; }

/* ------------------------------------------------------------- 9. Home / hero */
.page-home { display: flex; flex-direction: column; min-height: 100vh; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  padding: clamp(32px, 8vw, 80px) clamp(20px, 5vw, 48px);
  flex-wrap: wrap;
}

.hero__portrait {
  display: block;
  width: auto;
  height: clamp(220px, 28vw, 270px);   /* roughly matches the text column height */
  image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 var(--ink));   /* pixel drop shadow, no border */
}

.hero__text { max-width: 460px; }

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: 1px;
}

.hero__title {
  font-family: var(--font-ui);
  font-size: 14px;
  margin: 0 0 6px;
}

.hero__location {
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0.8;
  margin: 0 0 16px;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 40ch;
}

.site-footer {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

/* social icon links (footer + contact CTA) */
.social-link {
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease, transform 0.08s ease;
}
.social-link:hover { opacity: 1; transform: translateY(-2px); }
.social-link--linkedin:hover { color: var(--blue); }
.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;   /* inline SVG inherits the link color (theme-adaptive) */
}

/* ----------------------------------------- 10. Overlay + Mac window + personas */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 8, 0.62);
}
.overlay.is-open { display: flex; }

/* Mac OS window chrome (Option A) */
.mac-window {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--ink);                      /* solid box -> connected stepped corners */
  filter: drop-shadow(6px 6px 0 var(--ink));  /* stepped pixel drop shadow */
}

.mac-window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;                     /* the window's ink shows through as the titlebar */
  padding: 9px 11px;
}

.mac-window__close {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid var(--paper);
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 9px;
  line-height: 1;
  padding: 0;
}
.mac-window__close:hover { background: var(--red); border-color: var(--red); color: #fff; }

.mac-window__title {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--paper);
}

.mac-window__body {
  background: var(--paper);
  margin: 0 6px 6px;       /* 6px clears the 4px-step corners so the frame connects */
  padding: clamp(20px, 4vw, 32px);
}

.overlay__explainer {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}

/* persona cards */
.persona-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.persona-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--panel-bg);
  border: 2px solid var(--ink);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.persona-card:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }

.persona-card__icon {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: grayscale(60%);
  transition: filter 0.15s ease;
}
.persona-card:hover .persona-card__icon { filter: none; }

.persona-card__name { font-family: var(--font-ui); font-size: 13px; }
.persona-card__desc { font-family: var(--font-body); font-size: 12px; line-height: 1.45; opacity: 0.85; }

.persona-card--scout    { border-top: 5px solid var(--green); }
.persona-card--ally     { border-top: 5px solid var(--purple); }
.persona-card--wanderer { border-top: 5px solid var(--yellow); }

/* post-selection popup */
.persona-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;            /* sit near the top so the shuffle/expand shows below */
  justify-content: center;
  padding: 90px 20px 20px;
  background: rgba(10, 10, 8, 0.18);   /* light scrim — the animation stays visible beneath */
}
.persona-popup.is-open { display: flex; }

/* Order popup is now a Mac window (see .mac-window); just size + center it */
.persona-window { width: min(440px, 100%); }
.persona-window .mac-window__body { text-align: center; }
.persona-popup__title { font-family: var(--font-ui); font-size: 14px; line-height: 1.4; margin: 0 0 12px; }
.persona-popup__msg   { font-family: var(--font-body); font-size: 14px; line-height: 1.55; margin: 0; }

/* ===================================================================
   LORE PAGE
   =================================================================== */
.lore {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 5vw, 40px) 64px;
}

.lore-welcome {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 0 24px;
}

.lore-sections { display: flex; flex-direction: column; gap: 18px; }

/* ---- section container ---- */
/* Solid ink box (clean stepped corners). The header sits flush on the ink;
   the body is inset as a rectangle, so the ink reads as one connected frame. */
.section {
  background: var(--ink);
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--paper);
  background: transparent;     /* the section's ink shows through */
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}
.section__title { letter-spacing: 0.5px; }
.section__arrow { font-size: 10px; opacity: 0.85; }

.section__body {
  background: var(--panel-bg);
  margin: 0 4px 4px;   /* inset rectangle -> leaves a solid ink frame (incl. stepped corners) */
  padding: 20px clamp(16px, 3vw, 28px);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;   /* clip during expand animation; also contains the Who-I-Am float */
}
.section__body p { margin: 0 0 14px; }
.section__body p:last-child { margin-bottom: 0; }
.section__body strong { font-weight: 700; }
.section__body a { color: var(--blue); }

.section.collapsed .section__body { display: none; }

/* Who I Am portrait */
.who-portrait {
  width: 132px;
  float: left;
  margin: 0 18px 10px 0;
  image-rendering: pixelated;
}

/* nested sections inside Side Quests */
.side-quests__body { display: flex; flex-direction: column; gap: 14px; padding: 14px; }
.side-quests__body .section { background: var(--grid); }

/* Contact CTA card (Wanderer) */
.section--cta { background: var(--purple); }
.cta-body { background: var(--purple); color: #fff; }
.cta-title { font-family: var(--font-ui); font-size: 15px; margin: 0 0 6px; }
.cta-body a { color: #fff; text-underline-offset: 3px; }

/* ---- tab container ---- */
/* directive prompt above the switch */
.work-prompt {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

/* segmented switch — one connected control, three equal segments */
.tabs {
  display: flex;
  width: 100%;
  margin-bottom: 0;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.tab {
  flex: 1 1 0;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  padding: 13px 8px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-right: 2px solid var(--ink);     /* dividers between segments */
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.tab:last-child { border-right: none; }
/* hover = fill preview (clear it's pressable); active = filled */
.tab:hover, .tab.is-active { color: #fff; }
.tab--hdo:hover,     .tab--hdo.is-active     { background: var(--red); }
.tab--evals:hover,   .tab--evals.is-active   { background: var(--orange); }
.tab--prodops:hover, .tab--prodops.is-active { background: var(--blue); }

/* the active segment flows into a matching colored stripe on its content */
.tab-panel { border-top: 4px solid var(--ink); padding-top: 18px; margin-top: 0; }
#panel-hdo     { border-top-color: var(--red); }
#panel-evals   { border-top-color: var(--orange); }
#panel-prodops { border-top-color: var(--blue); }
.tab-panel[hidden] { display: none; }
.tab-opener { font-size: 14px; }

/* end-of-panel control: jump back to the switcher to pick another area */
.tab-footer { margin-top: 24px; display: flex; justify-content: center; }
.tab-footer__btn {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink);
  border: none;
  filter: drop-shadow(3px 3px 0 var(--grid));
  transition: transform 0.08s ease, filter 0.08s ease;
}
.tab-footer__btn:hover { transform: translate(1px, 1px); filter: drop-shadow(2px 2px 0 var(--grid)); }
.tab-tools { font-family: var(--font-ui); font-size: 10px; line-height: 1.7; opacity: 0.85; margin-top: 18px; }

/* ---- timeline ---- */
.timeline {
  display: flex;
  gap: 3px;
  align-items: stretch;
  /* segments grow/shrink to fill the container — no horizontal scroll */
}
.timeline__seg {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 10px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  cursor: default;
  transition: transform 0.1s ease;
}
.timeline__seg:hover { transform: translateY(-2px); }
.seg__company { font-size: 10px; line-height: 1.2; }
.seg__role { font-family: var(--font-body); font-size: 10px; line-height: 1.2; opacity: 0.92; }
.seg__years { display: flex; justify-content: space-between; font-size: 9px; opacity: 0.85; margin-top: 2px; }

.seg--trusource     { background: rgba(253, 184, 39, 0.7); color: #1A1A18; }
.seg--meta-contract { background: rgba(0, 157, 220, 0.5); }
.seg--meta-ft       { background: var(--blue); }
.seg--pinterest     { background: var(--red); }
.seg--browser       { background: var(--purple); }

.timeline__tooltip {
  position: fixed;
  z-index: 50;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}
.timeline__tooltip[hidden] { display: none; }
.timeline__tooltip strong { font-family: var(--font-ui); font-size: 11px; }
.timeline__tooltip .tip-note { opacity: 0.7; }

/* ---- tools grid ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 14px;
}
.tool {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #FAFAF8;            /* light tile so logos read in both themes */
  box-shadow: inset 0 0 0 1px var(--grid);
}
.tool-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;        /* fills the box regardless of the SVG's intrinsic size */
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.tool:hover .tool-logo { filter: none; }
.tool--text {
  font-family: var(--font-ui);
  font-size: 8px;
  line-height: 1.3;
  text-align: center;
  color: #1A1A18;
  padding: 6px;
}

/* ---- Career Curiosities table ---- */
.lore-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; line-height: 1.5; }
.lore-table th {
  font-family: var(--font-ui);
  font-size: 10px;
  text-align: left;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--paper);
}
.lore-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--grid); }
.lore-table td:first-child { font-family: var(--font-ui); font-size: 13px; line-height: 1.5; width: 32%; }
.lore-table tr:last-child td { border-bottom: none; }

/* ---- Outside the Job interests ---- */
.interests { display: flex; flex-direction: column; gap: 16px; margin: 18px 0; }
.interest-group { display: flex; flex-direction: column; gap: 8px; }
.interest-label { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.5px; }
.interest-group--red    .interest-label { color: var(--red); }
.interest-group--purple .interest-label { color: var(--purple); }
.interest-group--orange .interest-label { color: var(--orange); }
.interest-group--blue   .interest-label { color: var(--blue); }
.interest-group--green  .interest-label { color: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  padding: 8px 11px;
  background: var(--paper);
  border: 2px solid var(--ink);          /* normal rectangle */
  box-shadow: 2px 2px 0 var(--grid);     /* simple drop shadow */
}
.interest-outro { margin-top: 18px; }

/* ---- Contact CTA socials ---- */
.cta-socials { display: flex; gap: 14px; margin-top: 14px; }

/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.page-contact { display: flex; flex-direction: column; min-height: 100vh; }
.contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 56px) clamp(16px, 5vw, 40px);
}
.contact-window { width: min(540px, 100%); max-height: none; overflow: visible; }

.contact-intro {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-family: var(--font-ui); font-size: 11px; }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 112px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form .press-start { align-self: flex-start; margin-top: 4px; }
/* Send button is a normal rectangle (no pixel staircase) */
.contact-submit { clip-path: none; }

.contact-socials { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }

/* form result states */
.contact-success { text-align: center; padding: 18px 0; }
.contact-success__title { font-family: var(--font-ui); font-size: 15px; color: var(--green); margin: 0 0 10px; }
.contact-success__body { font-family: var(--font-body); font-size: 14px; margin: 0; }
.contact-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--red);
  margin: 4px 0 0;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .timeline { flex-direction: column; overflow-x: visible; }
  .timeline__seg { flex: none !important; width: 100% !important; min-height: 60px; }
  /* segmented switch stacks so the full labels never cramp */
  .tabs { flex-direction: column; }
  .tab { border-right: none; border-bottom: 2px solid var(--ink); }
  .tab:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .persona-cards { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .nav-links { gap: 8px; }
  .nav-btn { padding: 8px 10px; font-size: 11px; }
  .who-portrait { float: none; margin: 0 auto 14px; display: block; }
}

/* =========================================================================
   Pixel cursor — defined LAST so it overrides component cursor:pointer rules.
   Chunky arrow + crispEdges so it reads as pixel art. Black w/ white outline
   by default; inverted (white w/ black outline) over clickable elements.
   ========================================================================= */
body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' shape-rendering='crispEdges'%3E%3Cpath d='M3,2L3,20L8,15L11,22L14,21L11,14L18,14Z' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 3 2, auto;
}
a, button, summary, label, [role="tab"],
.nav-btn, .tab, .press-start, .persona-card, .theme-toggle, .section__header, .social-link, .mac-window__close {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' shape-rendering='crispEdges'%3E%3Cpath d='M3,2L3,20L8,15L11,22L14,21L11,14L18,14Z' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 3 2, pointer;
}
.contact-form input, .contact-form textarea { cursor: text; }
