/* ===========================================================
   Sub-page layout system (work overview, area pages, about)
   Shares tokens + base + nav + footer from style.css.
   =========================================================== */

  .page-wrap { position: relative; z-index: 1; }

  /* --- PAGE HERO --- */
  .page-hero {
    position: relative; z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 9rem 2.5rem 3rem;
  }
  .breadcrumb {
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.5rem;
    display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  }
  .breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb .sep { opacity: 0.5; }
  .breadcrumb .here { color: var(--text-bright); }

  .page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    line-height: 1.08; letter-spacing: -0.02em;
    color: var(--text-bright);
    margin-bottom: 1.1rem;
    max-width: 16ch;
  }
  .page-lead {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--muted); line-height: 1.7;
    max-width: 62ch;
  }
  .hero-chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1.75rem;
  }
  .hero-chip {
    font-family: var(--mono); font-size: 0.7rem;
    color: var(--accent);
    background: color-mix(in oklch, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in oklch, var(--accent) 35%, transparent);
    padding: 0.32rem 0.8rem; border-radius: 999px;
    letter-spacing: 0.03em;
  }

  /* --- GENERIC SECTION on sub-pages --- */
  .page-section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 2.5rem; }
  .page-section > .section-label { margin-bottom: 0.6rem; }
  .page-section > h2 { margin-bottom: 1.75rem; }

  /* --- CAPABILITIES GRID --- */
  .cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
  }
  .cap-card {
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  }
  .cap-card:hover { border-color: var(--accent); box-shadow: 0 0 28px var(--accent-dim); transform: translateY(-3px); }
  .cap-card .cap-num {
    font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
    letter-spacing: 0.08em; display: block; margin-bottom: 0.6rem;
  }
  .cap-card h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--text-bright); margin-bottom: 0.5rem; }
  .cap-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

  /* --- PROJECT GRID --- */
  .proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.5rem;
  }
  .proj-card {
    display: flex; flex-direction: column;
    background: var(--deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.6rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  }
  .proj-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px var(--accent-dim); transform: translateY(-3px); }
  a.proj-card, a.cap-card { text-decoration: none; color: inherit; }
  a.proj-card:hover h3, a.cap-card:hover h3 { color: var(--accent); }
  .proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
  .proj-card h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--text-bright); line-height: 1.2; }
  .proj-status {
    font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase;
    white-space: nowrap; padding: 0.2rem 0.5rem; border-radius: 999px;
    border: 1px solid var(--border); color: var(--muted);
  }
  .proj-status.live { color: #4ade80; border-color: color-mix(in oklch, #4ade80 50%, transparent); }
  .proj-status.client { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
  .proj-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; }
  .proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
  .proj-tag {
    font-family: var(--mono); font-size: 0.62rem; color: var(--accent);
    background: var(--accent-dim); padding: 0.22rem 0.55rem; border-radius: 2px;
    letter-spacing: 0.03em;
  }
  .proj-link {
    margin-top: 1rem; font-family: var(--mono); font-size: 0.72rem;
    color: var(--text-bright); text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.35rem;
    transition: gap 0.2s, color 0.2s;
  }
  .proj-link:hover { color: var(--accent); gap: 0.6rem; }
  .proj-link.disabled { color: var(--muted); pointer-events: none; }

  /* --- STACK / TECH LIST --- */
  .stack-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .stack-chip {
    font-family: var(--mono); font-size: 0.78rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border);
    padding: 0.45rem 0.9rem; border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
  }
  .stack-chip:hover { border-color: var(--accent); color: var(--text-bright); }

  /* --- OTHER AREAS NAV --- */
  .area-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
  }
  .area-link {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 1rem 1.2rem;
    background: var(--deep); border: 1px solid var(--border); border-radius: 6px;
    text-decoration: none; color: var(--text);
    font-family: var(--sans); font-size: 0.92rem;
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
  }
  .area-link:hover { border-color: var(--accent); color: var(--text-bright); transform: translateX(3px); }
  .area-link .arr { font-family: var(--mono); color: var(--accent); }

  /* --- CTA BAND --- */
  .cta-band {
    max-width: 1100px; margin: 1rem auto 0;
    padding: 3.5rem 2.5rem 4.5rem;
    text-align: center;
  }
  .cta-band h2 {
    font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-bright); margin-bottom: 1rem; letter-spacing: -0.015em;
  }
  .cta-band p { color: var(--muted); max-width: 50ch; margin: 0 auto 2rem; line-height: 1.7; }
  .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
  .btn-primary {
    font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.02em;
    color: #fff; background: var(--accent); border: 1px solid var(--accent);
    padding: 0.8rem 1.8rem; border-radius: 999px; text-decoration: none;
    transition: filter 0.2s, box-shadow 0.2s;
  }
  .btn-primary:hover { filter: brightness(1.12); box-shadow: 0 0 28px var(--accent-glow); }
  .btn-ghost {
    font-family: var(--mono); font-size: 0.84rem; letter-spacing: 0.02em;
    color: var(--text-bright); background: transparent; border: 1px solid var(--border);
    padding: 0.8rem 1.8rem; border-radius: 999px; text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

  /* --- ABOUT --- */
  .about-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start;
  }
  .about-prose p { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 1.1rem; max-width: 62ch; }
  .about-prose strong { color: var(--text-bright); font-weight: 600; }
  .about-side {
    background: var(--deep); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem;
  }
  .about-side h3 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
  .about-side ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
  .about-side li { font-size: 0.9rem; color: var(--text); display: flex; gap: 0.6rem; align-items: baseline; }
  .about-side li::before { content: '+'; color: var(--accent); font-family: var(--mono); }

  @media (max-width: 760px) {
    .page-hero { padding: 7rem 1.5rem 2rem; }
    .page-section { padding: 2.5rem 1.5rem; }
    .cta-band { padding: 2.5rem 1.5rem 3.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
  }
