/* ============================================================
   rickconner.com — Direction A design system
   Light, grounded in CrewHub360 tokens. Inter + JetBrains Mono.

   COLOR ROLES ARE NOT INTERCHANGEABLE.
   ON LIGHT SURFACES:
     Fill / tint only : --orange  (1.96:1 — never a glyph, never text)
     Icon / UI (3:1)  : --blue-hi   (NOT on .icon-tile's own tint — use --blue)
     Text (4.5:1)     : --orange-ink  --blue  --green  --t1..--t4
   Inside .mock and .cta, which stay dark, the light-on-dark literals and
   --orange are correct; those rules carry an intentional-on-dark tag.
   Every text token clears WCAG AA (4.5:1) on both --bg and --bg-2.
   Mixing a fill color into text is how this palette fails.
   ============================================================ */

:root {
  --bg:        #ffffff;   /* page */
  --bg-2:      #f5f7fa;   /* alt section band */
  --surface:   #ffffff;   /* panels — defined by border, not fill */
  --raised:    #f8fafc;   /* cards / console */
  --raised-2:  #f1f5f9;
  --border:    #d8dfe9;
  --border-s:  rgba(15,23,42,0.08);

  --t1: #0f172a;          /* 17.85:1 on --bg */
  --t2: #334155;          /* 10.35:1 */
  --t3: #52637a;          /*  6.13:1 — was #94a3b8, 2.56:1 on white */
  --t4: #5b6b80;          /*  5.44:1 */

  --blue:      #1d4ed8;   /* 6.70:1 — links and blue text */
  --blue-hi:   #3b82f6;   /* 3.68:1 — UI fills and icons, never body text */
  --blue-deep: #1a3a8f;   /* white on it: 10.27:1 — .btn-primary */
  --orange:    #fca72a;   /* 1.96:1 — decorative fill and icons ONLY */
  --orange-deep:#c2410c;  /* white on it: 5.18:1 — was #f07c0a at 2.77:1 */
  --orange-ink:#9a3412;   /* 7.31:1 — orange text */
  --green:     #166534;   /* 6.26:1 — status text, and 4.9:1 on .pill.live's own tint */
  --ink-on-dark: #ffffff; /* text on filled buttons and the dark .cta band */

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1200px;
  --pad: 56px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;
  --shadow-lg: 0 1px 2px rgba(15,23,42,0.06), 0 12px 28px rgba(15,23,42,0.08);

  --ease: cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.band { background: var(--bg-2); border-top: 1px solid var(--border-s); border-bottom: 1px solid var(--border-s); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow.mono { font-family: var(--mono); letter-spacing: 0.18em; font-weight: 500; }
.display em { font-style: italic; }
.display { font-family: var(--serif); font-size: clamp(40px, 5vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -1px; text-wrap: balance; }
h2.h-sec { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); line-height: 1.14; font-weight: 700; letter-spacing: -0.5px; text-wrap: balance; }
.spotlight h2, .cta h2, .page-hero h1, .app-hero h1 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.5px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.2px; }
.lead { font-size: 18px; line-height: 1.7; color: var(--t2); font-weight: 400; }
.muted { color: var(--t2); }
.subtle { color: var(--t3); }
strong, b { font-weight: 700; color: var(--t1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-s);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--raised);
  font-weight: 800; font-size: 14px; color: var(--t1); letter-spacing: 0.02em;
}
.brand .name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a.navlink { font-size: 14px; font-weight: 500; color: var(--t2); transition: color .2s var(--ease); }
.nav a.navlink:hover, .nav a.navlink.active { color: var(--t1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
  font-size: 14px; font-weight: 600; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s var(--ease); white-space: nowrap;
}
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn-primary { background: var(--blue-deep); color: var(--ink-on-dark); border-color: var(--blue-deep); }
.btn-primary:hover { background: #152e73; }
.btn-blue { background: var(--blue); color: var(--ink-on-dark); border-color: var(--blue); }
.btn-blue:hover { background: #1740b0; }
.btn-orange { background: var(--orange-deep); color: var(--ink-on-dark); border-color: var(--orange-deep); }
.btn-orange:hover { background: #9a3412; }
.btn-ghost { background: transparent; color: var(--t1); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-s); background: rgba(15,23,42,0.04); }
.btn-soft { background: var(--raised); color: var(--t1); border-color: var(--border); }
.btn-soft:hover { background: var(--raised-2); }
.btn .bi { font-size: 15px; }

/* ---------- launch badge ---------- */
.launch {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 12px;
  border-radius: var(--r-pill); background: rgba(252,167,42,0.18);
  border: 1px solid rgba(252,167,42,0.50); font-size: 12.5px; font-weight: 600; color: var(--t2);
}
.launch .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.launch b { color: var(--orange-ink); }
.launch .sub { color: var(--t3); font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600;
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { margin: 22px 0 0; }
.hero .lead { margin: 26px 0 0; max-width: 480px; }
.hero .cta-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- track console ---------- */
.console { border-radius: var(--r-lg); background: var(--raised); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.console-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.console-head .lbl { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; color: var(--t2); text-transform: uppercase; }
.console-head .lbl .bi { color: var(--blue-hi); font-size: 15px; }
.console-head .dots { display: flex; gap: 6px; }
.console-head .dots span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.console-head .dots span:last-child { background: var(--green); }
.kpis { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { padding: 18px 18px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.kpi .bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-bottom: 12px; }
.kpi .bars i { width: 5px; border-radius: 2px; background: var(--border); display: block; }
.kpi .bars i.on { background: var(--blue); }
.kpi .n { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.kpi .l { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--t3); }
.console-foot { padding: 4px 18px 18px; display: flex; align-items: center; gap: 11px; }
.console-foot .glyph { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }
.console-foot .glyph .bi { color: var(--t3); font-size: 17px; }
.console-foot .txt { font-size: 13px; color: var(--t3); line-height: 1.4; }

/* ---------- capability lane ---------- */
.lane { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-s); border-bottom: 1px solid var(--border-s); margin-top: 72px; }
.lane .cell { padding: 28px 40px; display: flex; gap: 15px; align-items: center; border-left: 1px solid var(--border-s); }
.lane .cell:first-child { border-left: none; }
.lane .cell .bi { font-size: 22px; }
.lane .cell .ttl { font-size: 16px; font-weight: 700; }
.lane .cell .sub { margin-top: 3px; font-size: 13.5px; color: var(--t3); }

/* ---------- now strip ---------- */

/* ---------- generic section head ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head .lhs { max-width: 640px; }
.sec-head h2.h-sec { margin-top: 14px; }
.sec-head .desc { margin-top: 16px; }

/* ---------- crewhub spotlight ---------- */
.spotlight {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.spotlight .dots-bg { position: absolute; inset: 0; opacity: 1;
  background-image: radial-gradient(rgba(15,23,42,0.07) 1.4px, transparent 1.4px);
  background-size: 22px 22px; }
.spotlight .inner { position: relative; display: grid; grid-template-columns: 1fr 0.92fr; gap: 48px; padding: 56px; align-items: center; }
.spotlight h2 { color: var(--t1); font-size: 34px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.12; }
.spotlight .lead { color: var(--t2); margin-top: 18px; max-width: 460px; }
.feat-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 26px 0 30px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--t2); }
.feat-list li .bi { color: var(--blue-hi); font-size: 17px; }

/* product mock card inside spotlight */
.mock {
  /* intentional on dark: a screenshot of dark UI, framed on a light page */
  background: #0f172a; /* intentional on dark */ border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; overflow: hidden; backdrop-filter: blur(2px); }
.mock-bar { /* intentional on dark */ display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.04); }
.mock-bar .tl { width: 9px; height: 9px; border-radius: 50%; }
/* intentional on dark: macOS window chrome */ .mock-bar .tl:nth-child(1){ background:#ff5f57;} .mock-bar .tl:nth-child(2){ background:#febc2e;} .mock-bar .tl:nth-child(3){ background:#28c840;}
.mock-bar .url { /* intentional on dark */ margin-left: 8px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.5); }
.mock-body { padding: 16px; }
.mock-title { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.mock-title .h { /* intentional on dark */ font-size: 13px; font-weight: 700; color: #fff; }
.mock-title .badge { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: #60a5fa; /* intentional on dark */ }
.mock-row { /* intentional on dark */ display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); margin-bottom: 8px; }
.mock-row .who { /* intentional on dark */ font-size: 12.5px; color: #e6edf6; font-weight: 600; }
.mock-row .meta { /* intentional on dark */ font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.status { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); }
.status.s-green { background: rgba(34,197,94,0.16); color: #4ade80; /* intentional on dark */ }
.status.s-blue  { background: rgba(59,130,246,0.18); color: #60a5fa; /* intentional on dark */ }
.status.s-amber { background: rgba(252,167,42,0.16); color: var(--orange); /* intentional on dark */ }

.why-ttl { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; }
/* 4 cards orphan the 4th in the shared 3-col .cards grid, so this grid only */
.cards.why { grid-template-columns: repeat(2,1fr); }

/* ---------- engagements ---------- */
.engagements { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eng-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 32px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.eng-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.eng-name { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; }
.eng-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px;
  padding-bottom: 15px; border-bottom: 1px solid var(--border-s);
}
/* price is --t1, never --orange: it is the most important text on the page */
.eng-price .amt { font-size: 21px; font-weight: 700; color: var(--t1); letter-spacing: -0.4px; }
.eng-price .unit { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--t3); }
.eng-card p { color: var(--t2); font-size: 14.5px; line-height: 1.65; }
.eng-foot { margin-top: auto; padding-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t4); }
@media (max-width: 860px) {
  .engagements { grid-template-columns: 1fr; }
  .eng-card { padding: 26px 22px; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.portrait-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; background: var(--raised); box-shadow: var(--shadow-lg); }
.portrait-card image-slot { display: block; width: 100%; height: 420px; color: var(--t3); }
.portrait-card .portrait-img { display: block; width: 100%; height: 460px; object-fit: cover; object-position: 50% 18%; border-radius: 10px; }
.about-copy p { color: var(--t2); font-size: 16.5px; line-height: 1.75; }
.about-copy p + p { margin-top: 18px; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 30px; background: var(--border-s); border: 1px solid var(--border-s); border-radius: var(--r-md); overflow: hidden; }
.mini-stats .ms { background: var(--bg); padding: 20px; }
.mini-stats .ms .n { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.mini-stats .ms .l { margin-top: 4px; font-size: 12.5px; color: var(--t3); line-height: 1.4; }

/* ---------- work cards ---------- */
.work-card {
  display: grid; grid-template-columns: 1.05fr 0.95fr; border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: border-color .25s var(--ease);
}
.work-card:hover { border-color: var(--blue); }
.work-info { padding: 40px; display: flex; flex-direction: column; }
.work-info .name { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; margin-top: 14px; }
.work-info .role { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-top: 6px; }
.work-info p { color: var(--t2); margin-top: 16px; font-size: 15px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--t2); padding: 5px 10px; border-radius: 7px; background: var(--raised); border: 1px solid var(--border); }
.work-info .work-cta { margin-top: auto; padding-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.work-preview { background: var(--bg-2); position: relative; display: flex; align-items: center; justify-content: center; padding: 34px; }
.work-preview::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 60% 40%, rgba(59,130,246,0.10), transparent 70%); }

/* generic feature card grid */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.card { padding: 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--blue); }
.icon-tile { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(26,86,219,0.28)); border: 1px solid rgba(29,78,216,0.28); }
.icon-tile.orange { background: linear-gradient(135deg, rgba(240,124,10,0.16), rgba(240,124,10,0.28)); border-color: rgba(194,65,12,0.30); }
/* --blue-hi is 2.37:1 on this tile's own gradient; the tile IS the background */
.icon-tile .bi { font-size: 21px; color: var(--blue); }
.icon-tile.orange .bi { color: var(--orange-deep); }
.card p { color: var(--t3); font-size: 14px; line-height: 1.6; margin-top: 8px; }

/* ---------- experience timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl-entry { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 26px 28px; transition: border-color .25s var(--ease); }
.tl-entry:hover { border-color: var(--blue); }
.tl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tl-role { font-size: 17px; font-weight: 700; }
.tl-co { color: var(--blue); font-weight: 600; }
.tl-dates { font-family: var(--mono); font-size: 12px; color: var(--t3); letter-spacing: 0.04em; white-space: nowrap; }
.tl-entry p { color: var(--t2); font-size: 14.5px; line-height: 1.65; margin-top: 12px; }
/* Prose links. The global a{color:inherit;text-decoration:none} is for nav,
   buttons and whole-card links; inside running text a link must look like one.
   The support, privacy, terms and EULA links on the app pages live here, and
   App Store reviewers follow them. */
.tl-entry p a, .tl-entry .bullets a,
.resume-block p a, .resume-block li a, .resume-block .bullets a,
.app-note a, .lead a, .about-copy p a
{ color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.tl-entry p a:hover, .tl-entry .bullets a:hover,
.resume-block p a:hover, .resume-block li a:hover, .resume-block .bullets a:hover,
.app-note a:hover, .lead a:hover, .about-copy p a:hover
{ color: var(--blue-deep); }

/* ---------- contact CTA ---------- */
.cta {
  border-radius: 20px; padding: 64px 56px; text-align: center;
  /* intentional on dark: the one dark accent band on a light page */
  background: linear-gradient(135deg, #0f172a 0%, #1e3a6e 100%); /* intentional on dark */
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta h2 { color: var(--ink-on-dark); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.6px; }
.cta p { color: #c7d2e4; /* intentional on dark */ font-size: 18px; margin: 16px auto 0; max-width: 520px; }
.cta .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta .btn-ghost { color: var(--ink-on-dark); border-color: rgba(255,255,255,0.25); /* intentional on dark */ }
.cta .btn-ghost:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.08); /* intentional on dark */ }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-s); padding: 40px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .fl { display: flex; align-items: center; gap: 11px; color: var(--t3); font-size: 13px; }
.site-footer .fnav { display: flex; gap: 10px 24px; flex-wrap: wrap; justify-content: center; }
.site-footer .fnav a { font-size: 13px; color: var(--t3); transition: color .2s var(--ease); }
.site-footer .fnav a:hover { color: var(--t1); }
.site-footer .copy { font-size: 12.5px; color: var(--t4); }

/* ---------- page hero (work/resume) ---------- */
.page-hero { padding: 76px 0 0; }
.page-hero h1 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1px; margin-top: 18px; }
.page-hero .lead { margin-top: 18px; max-width: 620px; }

/* ---------- resume specifics ---------- */
.resume-block { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); padding: 30px 32px; }
.resume-block .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.resume-block p { color: var(--t2); font-size: 16px; line-height: 1.8; margin-top: 14px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skill { display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.skill .k { font-family: var(--mono); font-size: 12px; color: var(--blue); min-width: 116px; letter-spacing: 0.02em; }
.skill .v { font-size: 14px; color: var(--t2); }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bullets li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.6; color: var(--t2); }
.bullets li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; margin-top: 0.6em; }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* .reveal only hides once the observer is live (html.reveal-ready), so a
     blocked, failed or disabled script leaves every section visible. */
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
}

/* ---------- print ----------
   Browsers do not print background colours by default, so the old dark theme
   printed light text onto white paper and the resume came out near-blank.
   This makes paper output deliberate rather than accidental. */
@media print {
  :root { --bg: #ffffff; --bg-2: #ffffff; --surface: #ffffff; --raised: #ffffff;
          --raised-2: #ffffff; --border: #999999; --border-s: #cccccc;
          --t1: #000000; --t2: #1a1a1a; --t3: #333333; --t4: #444444;
          --blue: #000000; --blue-hi: #000000; --shadow-lg: none; }
  body { background: #ffffff; color: #000000; }
  .site-header, .site-footer, .cta, .mock, .work-preview,
  .cta-row, .btn { display: none !important; }
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section, .section-sm { padding: 12px 0 !important; }
  .wrap { max-width: 100% !important; padding: 0 !important; }
  .resume-block, .tl-entry, .skill, .card, .eng-card {
    border: 1px solid #cccccc !important; background: #ffffff !important;
    box-shadow: none !important; break-inside: avoid; page-break-inside: avoid;
  }
  .skills, .about-grid, .engagements, .cards { grid-template-columns: 1fr !important; }
  a { color: #000000 !important; text-decoration: none !important; }
  h1, h2, h3, .tl-role { break-after: avoid; page-break-after: avoid; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  :root { --pad: 24px; }
  .hero-grid, .about-grid, .spotlight .inner, .work-card { grid-template-columns: 1fr; gap: 36px; }
  .lane { grid-template-columns: 1fr; }
  .lane .cell { border-left: none; border-top: 1px solid var(--border-s); }
  .lane .cell:first-child { border-top: none; }
  .cards, .cards.why { grid-template-columns: 1fr; }
  .nav .navlink { display: none; }
  .feat-list { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .mini-stats { grid-template-columns: 1fr; }
  .tl-top { flex-direction: column; gap: 4px; }
}

/* ---------- iOS apps ---------- */
.app-hero { display: flex; align-items: center; gap: 28px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; border: 1px solid var(--border); flex: 0 0 auto; }
.app-icon.lg { width: 128px; height: 128px; border-radius: 30px; box-shadow: var(--shadow-lg); }
.app-hero h1 { margin-top: 12px; }
.app-tagline { margin-top: 6px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.page-hero .cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.pill.live { background: rgba(21,128,61,0.10); border: 1px solid rgba(21,128,61,0.34); color: var(--green); }
.pill.soon { background: rgba(252,167,42,0.18); border: 1px solid rgba(194,65,12,0.30); color: var(--orange-ink); }
.pill.blue { background: rgba(29,78,216,0.10); border: 1px solid rgba(29,78,216,0.28); color: var(--blue); }
.pill .dotg { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 8px var(--green); }
.btn.is-static { cursor: default; }
.lane .cell .bi { color: var(--blue-hi); }
.lane .cell.accent .bi { color: var(--orange-deep); }
.app-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-top: 40px; background: var(--border-s); border: 1px solid var(--border-s); border-radius: var(--r-md); overflow: hidden; }
.app-facts .f { background: var(--bg); padding: 18px 20px; }
.app-facts .f .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.app-facts .f .v { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s var(--ease), border-color .25s var(--ease); }
.app-card:hover { transform: translateY(-3px); border-color: var(--blue); }
.app-card .head { display: flex; align-items: center; gap: 14px; }
.app-card .name { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.app-card .sub { font-size: 13px; color: var(--t3); margin-top: 2px; }
.app-card p { color: var(--t2); font-size: 14.5px; line-height: 1.65; }
.app-card .foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card .more { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.app-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: rgba(252,167,42,0.12); border: 1px solid rgba(194,65,12,0.22); color: var(--t2); font-size: 14.5px; line-height: 1.6; margin-top: 28px; }
.app-note .bi { color: var(--orange-deep); font-size: 18px; flex: 0 0 auto; margin-top: 2px; }

@media (max-width: 940px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .app-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .app-icon.lg { width: 96px; height: 96px; border-radius: 22px; }
  .app-facts { grid-template-columns: 1fr; }
}
