/* ============================================================
   tact.css — Tact app design system, ported to the public portfolio.
   Standalone stylesheet. NOT wired into index.html / style.css yet —
   referenced only by /.port/style-tile.html for owner sign-off (WP1).

   Sources (tokens copied verbatim unless noted):
     - /Users/gokulmc/tactyle/apps/tact/app/globals.css            (:root tokens, .tk-card, .tk-livechip, .tk-orgchip)
     - /Users/gokulmc/tactyle/apps/tact/app/_tactyle/landing/landing.css  (glow bg, pill buttons, hero rhythm)
     - /Users/gokulmc/gokulmc-sites/sites/portfolio/admin/admin.css (dark-mode adaptation — Tact itself is light-only)

   Scoping: all custom properties live under the `.tact-page` class
   (body-level), NOT bare :root — mirrors admin.css's approach of
   avoiding collisions with assets/style.css, which already owns
   --bg / --font-display / --font-body / --font-mono / --r-* names on
   :root. Put `class="tact-page"` on <body> (or any ancestor) to use
   this stylesheet. Consuming HTML must link Google Fonts itself:
     <link href="https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">

   Theme mechanism: mirrors assets/site.js exactly — the toggle sets/
   removes `data-theme="dark"` on <html> and persists to
   localStorage["pf-theme"]. Dark tokens apply via
   `:root[data-theme="dark"] .tact-page` (explicit, wins on specificity)
   and, as a system-preference fallback, `@media (prefers-color-scheme:
   dark)` when no explicit theme has been chosen yet.
   ============================================================ */

/* ============ TOKENS ============ */
.tact-page {
  /* type */
  --tact-font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tact-font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tact-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* brand — verbatim from globals.css :root */
  --green: #00be5d;
  /* darkened from #009a4a — used as small text (chips, links, resume header
     line) where #009a4a is only 3.3-3.7:1 on light surfaces (axe audit) */
  --green-deep: #00753f;
  --green-soft: #e6f9ef;
  --green-glow: rgba(0, 190, 93, 0.22);
  --yellow: #ffc400;
  --yellow-deep: #e6a800;
  --yellow-soft: #fff6da;

  /* neutrals / ink ramp — verbatim from globals.css :root */
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #16181c;
  --ink-2: #4b4f56;
  --muted: #666b74; /* darkened from #8a8f98 — WCAG 4.5:1 for small muted text (axe audit) */
  --line: #ededf0;
  --line-strong: #dcdee3;

  /* shape — verbatim from globals.css :root */
  --r-card: 14px;
  --r-sm: 12px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 24, 28, 0.04), 0 8px 28px rgba(20, 24, 28, 0.05);
  --shadow-pop: 0 24px 70px rgba(20, 24, 28, 0.22);

  /* layout — 560px per WP1 spec (Tact's own app feed is 472px; the
     portfolio feed column is deliberately wider per the plan). Still used
     by the profile header card + footer row (WP10 keeps those at their
     original width — only the feed itself widens into a grid). */
  --feed-w: 560px;
  /* WP10: feed grid width (3/2/1 responsive columns) + the tab bar, which
     aligns with the grid below it. */
  --grid-w: 1120px;
  --reading-w: 720px;

  --accent: var(--green);
  --accent-deep: var(--green-deep);

  /* type-chip colors — repurposed from existing Tact palette values
     (not new colors; the *mapping* to content-type is invented, see
     WP1 report). travel reuses the yellow/badge-draft treatment,
     blog reuses the .tk-orgchip violet, dump reuses the neutral
     icon-btn gray. */
  --chip-project-bg: var(--line);
  --chip-project-fg: var(--ink-2);
  --chip-dump-bg: #eff0f2;
  --chip-dump-fg: var(--ink-2);
  --chip-travel-bg: var(--yellow-soft);
  --chip-travel-fg: #8a6100;
  --chip-blog-bg: rgba(139, 92, 246, .14);
  --chip-blog-fg: #6d28d9;

  color-scheme: light;
}

/* dark — values ported from admin.css's :root[data-theme="dark"] body.admin-body block,
   the site's existing working Tact-in-dark adaptation (Tact itself has no dark mode). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tact-page {
    --bg: #16181c;
    --surface: #1d2025;
    --ink: #f2f3f5;
    --ink-2: #b7bac0;
    --muted: #9da2ab; /* lightened from #7d818a — WCAG contrast on dark surfaces (axe audit) */
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
    --shadow-pop: 0 24px 70px rgba(0, 0, 0, .5);
    --accent-deep: #3ddc8c;
    --green-soft: rgba(0, 190, 93, .16);
    --chip-dump-bg: #22252b;
    --chip-travel-fg: var(--yellow);
    --chip-travel-bg: rgba(255, 196, 0, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .tact-page {
  --bg: #16181c;
  --surface: #1d2025;
  --ink: #f2f3f5;
  --ink-2: #b7bac0;
  --muted: #9da2ab; /* lightened from #7d818a — WCAG contrast on dark surfaces (axe audit) */
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 28px rgba(0, 0, 0, .35);
  --shadow-pop: 0 24px 70px rgba(0, 0, 0, .5);
  --accent-deep: #3ddc8c;
  --green-soft: rgba(0, 190, 93, .16);
  --chip-dump-bg: #22252b;
  --chip-travel-fg: var(--yellow);
  --chip-travel-bg: rgba(255, 196, 0, .14);
  color-scheme: dark;
}

/* ============ RESET / BASE ============ */
.tact-page, .tact-page *, .tact-page *::before, .tact-page *::after { box-sizing: border-box; }
.tact-page {
  font-family: var(--tact-font-body);
  background:
    radial-gradient(120% 90% at 85% -10%, var(--green-glow), transparent 60%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .2s ease, color .2s ease;
}
:root[data-theme="dark"] .tact-page {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(0, 190, 93, .10), transparent 60%),
    var(--bg);
}
.tact-page a { color: inherit; text-decoration: none; }
.tact-page button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.tact-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tact-page h1, .tact-page h2, .tact-page h3, .tact-page h4 {
  font-family: var(--tact-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.tact-page p { margin: 0; line-height: 1.5; }

/* uppercase-tracked mono label treatment (meta / kickers) */
.tact-label {
  font-family: var(--tact-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

@keyframes tact-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); } 50% { box-shadow: 0 0 0 6px rgba(0, 190, 93, 0); } }
@keyframes tact-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ TYPE SCALE (reference for style tile) ============ */
.tact-h1 { font-family: var(--tact-font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
.tact-h2 { font-family: var(--tact-font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.1; }
.tact-h3 { font-family: var(--tact-font-display); font-weight: 700; letter-spacing: -0.01em; font-size: 19px; }
.tact-body { font-size: 15px; line-height: 1.55; color: var(--ink); }
.tact-body-sm { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.tact-mono { font-family: var(--tact-font-mono); font-size: 12px; color: var(--muted); }

/* ============ CARD SHELL ============ */
.tact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tact-card.is-hoverable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(20, 24, 28, .07);
  border-color: var(--line-strong);
}
:root[data-theme="dark"] .tact-card.is-hoverable:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }

/* ============ PILL BUTTONS ============ */
.tact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--tact-font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.tact-btn:active { transform: scale(.98); }
.tact-btn-primary {
  background: var(--green);
  color: #08130c;
  box-shadow: 0 8px 24px var(--green-glow);
}
.tact-btn-primary:hover { background: var(--green-deep); color: #fff; }
.tact-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.tact-btn-ghost:hover { border-color: var(--accent); }
.tact-btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.tact-btn-secondary:hover { border-color: var(--accent); }
.tact-btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============ CHIPS ============ */
.tact-chip-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--green-soft);
  padding: 3px 9px 3px 7px;
  border-radius: var(--r-pill);
  letter-spacing: .01em;
  white-space: nowrap;
}
.tact-livedot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: tact-live-pulse 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .tact-livedot { animation: none; } }

.tact-chip-type {
  display: inline-flex;
  align-items: center;
  font-family: var(--tact-font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.tact-chip-type--project { background: var(--chip-project-bg); color: var(--chip-project-fg); }
.tact-chip-type--dump    { background: var(--chip-dump-bg);    color: var(--chip-dump-fg); }
.tact-chip-type--travel  { background: var(--chip-travel-bg);  color: var(--chip-travel-fg); }
.tact-chip-type--blog    { background: var(--chip-blog-bg);    color: var(--chip-blog-fg); }

/* ============ PROFILE HEADER ============ */
.tact-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 48px 20px 32px;
}
.tact-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: var(--shadow-card);
  background: var(--line);
}
.tact-profile-name { font-family: var(--tact-font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.tact-profile-title { font-size: 14px; color: var(--accent-deep); font-weight: 700; }
.tact-profile-bio { font-size: 14.5px; color: var(--ink-2); max-width: 440px; line-height: 1.55; margin-top: 2px; }

.tact-stats { display: flex; gap: 0; margin-top: 18px; }
.tact-stat { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.tact-stat + .tact-stat { border-left: 1px solid var(--line); }
.tact-stat-v { font-family: var(--tact-font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.tact-stat-l { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

.tact-link-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.tact-link-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--r-pill);
  transition: border-color .15s ease, color .15s ease;
}
.tact-link-pill:hover { border-color: var(--accent); color: var(--accent-deep); }

.tact-ticker-wrap {
  overflow: hidden; border-block: 1px solid var(--line);
  padding: 12px 0; margin: 8px 0 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tact-ticker { display: flex; gap: 36px; width: max-content; animation: tact-ticker 30s linear infinite; }
.tact-ticker:hover { animation-play-state: paused; }
@keyframes tact-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tact-ticker { animation: none; } }
.tact-ticker span {
  font-family: var(--tact-font-mono); font-size: 12px; color: var(--muted);
  white-space: nowrap; display: flex; align-items: center; gap: 36px;
}
.tact-ticker span::after { content: "\2726"; color: var(--accent); opacity: .6; }

/* ============ FEED GRID ============ */
/* WP10: image-forward responsive grid (was a single 560px flex column).
   3 cols >=1024px, 2 cols 640-1024px, 1 col <640px — breakpoints match the
   file's existing 640/480 convention plus a new 1024 tier. Cards keep
   their natural height (align-items: start) rather than stretching to the
   tallest item in a row, since dump/blog cards are text-first and
   project/travel cards carry a media block — stretching would leave dead
   whitespace in the shorter cards. Gap carries the same 18px rhythm the
   old flex column used (no per-card margins existed to fold in). */
.tact-feed {
  max-width: var(--grid-w);
  margin: 0 auto;
  padding: 24px 16px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 18px;
}
@media (max-width: 1023px) {
  .tact-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .tact-feed { grid-template-columns: 1fr; }
}

/* ============ POST CARD (base) ============ */
.tact-post {
  display: flex;
  flex-direction: column;
}
.tact-post-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.tact-post-media { position: relative; background: #0a0d12; overflow: hidden; }
.tact-post-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tact-post-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.tact-post-title { font-family: var(--tact-font-display); font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.tact-post-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.tact-post-meta {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--tact-font-mono); font-size: 11.5px; color: var(--muted);
  margin-top: 2px;
}
.tact-post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tact-post-tags span { color: var(--accent-deep); font-weight: 600; font-size: 13px; }

/* project variant: logo + title + LIVE chip, 16:10 shot */
.tact-post.is-project .tact-post-media { aspect-ratio: 16 / 10; }
.tact-post-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.tact-post-logo img { width: 100%; height: 100%; object-fit: contain; }
.tact-post-headtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tact-post-headrow { display: flex; align-items: center; gap: 8px; }

/* dump variant: text-first, optional image */
.tact-post.is-dump .tact-post-body { padding-top: 16px; }
.tact-post.is-dump .tact-post-media { aspect-ratio: 16 / 9; margin: 0 16px; width: calc(100% - 32px); border-radius: 10px; }

/* travel variant: 3:2 cover + kicker + dates */
.tact-post.is-travel .tact-post-media { aspect-ratio: 3 / 2; }
.tact-post-kicker {
  font-family: var(--tact-font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep);
}

/* blog variant: kicker "BLOG · date · N MIN" + title + excerpt, no media required */
.tact-post.is-blog .tact-post-body { padding-top: 16px; }
.tact-post-blogmeta {
  font-family: var(--tact-font-mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}

/* ============ READING COLUMN (blog post) ============ */
.tact-reading {
  max-width: var(--reading-w);
  margin: 0 auto;
  padding: 56px 20px 100px;
}
.tact-reading-meta {
  font-family: var(--tact-font-mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.tact-reading-title {
  font-family: var(--tact-font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(28px, 4.5vw, 42px); line-height: 1.08; margin-bottom: 20px;
}
.tact-reading-body { font-size: 16px; line-height: 1.7; color: var(--ink); }
.tact-reading-body p { margin: 0 0 20px; }
.tact-reading-body h2 {
  font-family: var(--tact-font-display); font-weight: 800; font-size: 24px;
  letter-spacing: -0.02em; margin: 40px 0 16px; scroll-margin-top: 24px; position: relative;
}
.tact-reading-body h2:hover::before {
  content: "#"; position: absolute; left: -22px; color: var(--accent); opacity: .6;
}
.tact-reading-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.tact-reading-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
}
.tact-reading-nav a { font-size: 13.5px; font-weight: 700; color: var(--ink-2); max-width: 46%; }
.tact-reading-nav a:hover { color: var(--accent-deep); }
.tact-reading-nav .next { text-align: right; margin-left: auto; }

/* ============ FEATURE GRID ============ */
.tact-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0; }
@media (max-width: 640px) { .tact-feature-grid { grid-template-columns: 1fr; } }
.tact-feature {
  padding: 20px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); transition: transform .2s ease, border-color .2s ease;
}
.tact-feature:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.tact-feature strong { display: block; font-family: var(--tact-font-display); font-weight: 700; font-size: 15px; margin-bottom: 5px; letter-spacing: -0.01em; }
.tact-feature span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .tact-feed { padding: 16px 12px 70px; }
  .tact-reading { padding: 32px 16px 70px; }
  .tact-stats { gap: 0; }
  .tact-stat { padding: 0 12px; }
}

/* ============================================================
   WP11 — SECTIONED HOMEPAGE (desktop-first showcase)

   The homepage moved from the single uniform feed grid to a larger,
   sectioned landing: a full-width profile HERO, a section-nav anchor row,
   and per-category sections (Web Apps / Mac Apps / Hardware / Tools /
   Archive / Tech Dump / Travel / Blog). Everything below is additive — the
   feed grid + card primitives above are untouched (still used by the
   blog/techdump/travel list pages). Desktop uses the full 1120px width with
   generous section spacing; <640px every grid stacks to a single column.
   ============================================================ */

/* ---- HERO (full content width, larger than the 560px profile card) ---- */
.tact-hero { max-width: var(--grid-w); margin: 0 auto; padding: 56px 20px 12px; }
.tact-hero-inner { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.tact-hero-avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--surface); box-shadow: var(--shadow-card); background: var(--line);
}
.tact-hero-name {
  font-family: var(--tact-font-display); font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; margin: 4px 0 0;
}
.tact-hero-title { font-size: clamp(15px, 1.5vw, 19px); color: var(--accent-deep); font-weight: 700; }
.tact-hero-bio { font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-2); line-height: 1.55; max-width: 660px; }
.tact-hero-stats { display: flex; gap: 0; margin: 8px 0 2px; }
.tact-hero-stats .tact-stat { align-items: flex-start; padding: 0 26px 0 0; }
.tact-hero-stats .tact-stat + .tact-stat { border-left: 1px solid var(--line); padding-left: 26px; }
.tact-hero-stats .tact-stat-v { font-size: 28px; }
.tact-hero-stats .tact-stat-l { font-size: 12px; }
.tact-hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tact-hero-ticker { max-width: var(--grid-w); margin: 12px auto 0; }

/* ---- SECTION NAV (anchor row) ---- */
.tact-secnav {
  max-width: var(--grid-w); margin: 20px auto 4px; padding: 4px 20px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tact-secnav a {
  font-family: var(--tact-font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface);
  padding: 7px 13px; border-radius: var(--r-pill);
  transition: border-color .15s ease, color .15s ease;
}
.tact-secnav a:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---- SECTIONS ---- */
.tact-sections-wrap { padding-bottom: 40px; }
.tact-section { max-width: var(--grid-w); margin: 0 auto; padding: 0 20px; scroll-margin-top: 78px; }
.tact-section + .tact-section { margin-top: clamp(56px, 8vw, 96px); }
.tact-sections-wrap > .tact-section:first-child { margin-top: clamp(40px, 6vw, 72px); }
.tact-section-head { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tact-section-kicker {
  font-family: var(--tact-font-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px;
}
.tact-section-title { font-size: clamp(24px, 3.2vw, 34px); }
.tact-section-sub { font-size: 15px; color: var(--ink-2); margin-top: 8px; max-width: 640px; line-height: 1.55; }
.tact-section-more { margin-top: 26px; }

/* collapsible sections: <details class="tact-section"><summary class="tact-section-head">.
   Every section folds except the pinned Star projects strip (plain <section>, no summary). */
details.tact-section > summary.tact-section-head { cursor: pointer; list-style: none; }
details.tact-section > summary.tact-section-head::-webkit-details-marker { display: none; }
details.tact-section > summary.tact-section-head::marker { content: ""; }
.tact-section-toggle { flex: none; color: var(--ink-2); transition: transform .25s ease, color .2s ease; margin-bottom: 4px; }
details.tact-section > summary.tact-section-head:hover .tact-section-toggle { color: var(--ink); }
details.tact-section[open] .tact-section-toggle { transform: rotate(180deg); }

/* ---- ★ STAR BADGE — small corner marker on any card whose entry is
   featured:true (large project cards + Mac App mini cards). Gold (--yellow,
   already in the Tact palette) rather than the green accent so it doesn't
   get lost against the green LIVE dot on the same card; the --surface-colored
   ring keeps it legible over a photo in both themes. ---- */
.tact-star-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: #4a3300;
  border: 2px solid var(--surface);
  font-size: 13px; line-height: 1;
  box-shadow: 0 2px 6px rgba(20, 24, 28, .22);
}

/* ---- STAR STRIP (curated homepage showcase, appears above Web Apps) ----
   Same minmax(0,1fr) 3-up grid as .tact-grid-3 so it never overflows at
   narrow widths, but the card itself (.tact-star-card) reads as the hero
   showcase: a slightly taller 16:10 media crop, a bigger title, and an
   accent-tinted hover state (green ring + glow) instead of the plain
   .tact-card hover — this selector is intentionally as specific as
   .tact-card.is-hoverable:hover and declared AFTER it, so source order
   gives it the win on featured cards. */
.tact-star-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tact-star-card { position: relative; }
.tact-star-card .tact-post-media { aspect-ratio: 16 / 10; }
.tact-star-card .tact-post-title { font-size: 19px; }
.tact-star-card.is-hoverable:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--green-glow), var(--shadow-card);
}

/* large-card grid (Web / Hardware / Tools) — one step up from the feed grid.
   minmax(0, 1fr) (not the default 1fr = minmax(auto,1fr)) so a card's
   min-content — e.g. a mini card's nowrap one-liner — can't blow the track
   wider than its share and cause horizontal overflow. */
.tact-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
/* card titles up a step inside sections */
.tact-section .tact-post-title { font-size: 18px; }
/* icon-tile placeholder for image-less project cards (light surface, not the
   media block's near-black) */
.tact-post-media--ph { display: grid; place-items: center; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--muted); }

/* mini grid (Mac Apps) — WP12p: icon-forward. The app ICON tile grew (was
   38px) so the artwork does more of the talking, per the "insanely pictorial"
   brief; the row padding + name step up to match. */
.tact-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tact-mini {
  position: relative;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tact-mini.is-hoverable:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.tact-mini-logo {
  width: 56px; height: 56px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); overflow: hidden;
}
.tact-mini-logo img { width: 100%; height: 100%; object-fit: contain; }
/* image thumb variant (WP12): Mac app ICONS + landscape screenshots set via
   images[0] — cover-crop so a square icon fills the tile and a landscape shot
   (e.g. relay) crops cleanly to the square, unlike the contain-fit brand-logo
   case. The fixed square box keeps a landscape image from blowing the row. */
.tact-mini-logo.has-img { background: var(--bg); }
.tact-mini-logo.has-img img { object-fit: cover; }
.tact-mini-logo .tact-mono { font-size: 16px; color: var(--ink-2); }
.tact-mini-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tact-mini-name { font-family: var(--tact-font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.tact-mini-sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- ARCHIVE WALL (WP12p) — full pictorial grid of ALL archive projects ----
   Every earlier-work project renders as an image-dominant cover tile (its Wix
   media). A dense 4-up wall at desktop, image-forward: a fixed-aspect,
   cover-cropped media box (so mixed Wix aspect ratios crop uniformly AND the
   reserved height prevents lazy-load layout shift) with a minimal caption —
   title + one-word group kicker. */
.tact-archive-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tact-arch-tile {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tact-arch-tile.is-hoverable:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.tact-arch-tile-media {
  aspect-ratio: 4 / 3; background: #0a0d12; overflow: hidden;
  display: grid; place-items: center;
}
.tact-arch-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tact-arch-tile-media .tact-mono { font-size: 22px; color: var(--muted); }
.tact-arch-tile-cap { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tact-arch-tile-title {
  font-family: var(--tact-font-display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tact-arch-tile-kicker {
  font-family: var(--tact-font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* blog reading rows */
.tact-blog-list { display: flex; flex-direction: column; }
.tact-blog-row {
  display: block; padding: 22px 0; border-top: 1px solid var(--line);
  transition: padding-left .15s ease;
}
.tact-blog-list > .tact-blog-row:last-child { border-bottom: 1px solid var(--line); }
.tact-blog-row.is-hoverable:hover { padding-left: 8px; }
.tact-blog-row-kicker {
  font-family: var(--tact-font-mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 7px;
}
.tact-blog-row-title {
  font-family: var(--tact-font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(17px, 2vw, 21px); display: block; margin-bottom: 7px;
  transition: color .15s ease;
}
.tact-blog-row.is-hoverable:hover .tact-blog-row-title { color: var(--accent-deep); }
.tact-blog-row-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 700px; }

/* ---- SECTIONED-HOME RESPONSIVE ---- */
@media (max-width: 900px) {
  .tact-grid-3, .tact-star-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tact-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tact-archive-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 639px) {
  .tact-hero { padding: 40px 16px 8px; }
  .tact-hero-avatar { width: 92px; height: 92px; }
  .tact-hero-stats { flex-wrap: wrap; gap: 12px 0; }
  .tact-grid-3, .tact-mini-grid, .tact-star-grid { grid-template-columns: minmax(0, 1fr); }
  /* archive stays a WALL on mobile (2-up) — it's the pictorial centerpiece,
     not a text list; a single column would bury the images below the fold. */
  .tact-archive-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tact-section { padding: 0 16px; }
}
