/* ============================================================
   djdevelops.com — PORTFOLIO
   ------------------------------------------------------------
   Layered on top of /card/css/card.css, which is loaded first
   and brings three things with it:
     1. the :root Nocturne tokens (--bg, --cyan, --ink, fonts…)
     2. the pure-CSS .backdrop
     3. the .gallery / .tile / .sheet styling — battle-tested,
        including the portrait and sideways-phone overrides that
        took real debugging to get right. Reusing it beats
        re-deriving it.

   So this file is only what card.css does not have: the nav, the
   hero, the section furniture, the filter chips, and the about /
   contact / footer blocks.

   Audience is a hiring manager with forty tabs open, so first
   paint matters more than spectacle: no hero video, no particle
   canvas, no custom cursor, no boot sequence. The previous
   agency homepage had all four.
   ============================================================ */

/* ---------- shared layout ---------- */
:root {
  --wrap: 1100px;
  --gut: 22px;
}
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gut); }
body.locked { overflow: hidden; }   /* set while the detail sheet is open */

/* Skip link — the gallery is 30 focusable tiles, so a keyboard
   visitor needs a way past them to the contact details. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #03121a; padding: 10px 16px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--gut);
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 7px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { color: var(--cyan); font-size: 15px; }
.brand-dot { color: var(--amber); }
.brand-name { font-size: 15px; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.18s var(--ease-out), background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); border-color: var(--cyan); color: #03121a; }
.btn-primary:hover { background: #5ce1f7; }
.btn-ghost:hover { border-color: rgba(57, 215, 242, 0.5); background: var(--cyan-soft); }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- hero ---------- */
/* padding-BLOCK, not the shorthand: .hero also carries .wrap, and a
   `padding: x 0 y` here resets .wrap's side gutters to zero, which put
   the headline flush against the left edge of the viewport. */
.hero { padding-block: clamp(54px, 10vw, 104px) clamp(30px, 5vw, 52px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--teal);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}
.hero-name { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 20px; }
.hero-title {
  font-size: clamp(34px, 7.4vw, 66px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.04; margin-top: 10px; max-width: 19ch;
}
.grad {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--teal) 48%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 22px; max-width: 60ch; font-size: clamp(16px, 1.9vw, 18.5px); color: var(--muted); }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* The honest numbers. These are the claim the rest of the page pays off,
   so they sit directly under the CTAs rather than in a footer nobody reads. */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin-top: 42px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.stat { background: var(--panel); padding: 18px 16px; }
.stat b { display: block; font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.stat span { display: block; font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); margin-top: 5px; }

/* ---------- section furniture ---------- */
.section { padding: clamp(44px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
.kicker { font-size: 11px; letter-spacing: 0.17em; text-transform: uppercase; color: var(--teal); }
.section-title {
  font-size: clamp(25px, 4.6vw, 40px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin-top: 12px; max-width: 24ch;
}
.section-sub { margin-top: 14px; max-width: 64ch; color: var(--muted); font-size: 16px; }

/* ---------- filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; letter-spacing: 0.03em; font-family: var(--font-mono);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.chip b { color: var(--muted); font-weight: 500; opacity: 0.6; margin-left: 3px; }
.chip:hover { color: var(--ink); border-color: rgba(57, 215, 242, 0.4); }
.chip[aria-pressed="true"] { background: var(--cyan-soft); border-color: rgba(57, 215, 242, 0.55); color: var(--cyan); }
.chip[aria-pressed="true"] b { color: var(--cyan); opacity: 0.8; }
.chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- gallery tweaks on top of card.css ---------- */
/* card.css centres the gallery at 1100px with its own padding; the
   homepage wraps it in .wrap, so drop the duplicate horizontal pad. */
.section .gallery { padding-inline: 0; padding-top: 22px; }

/* Status line on a tile — "paused", "in daily use", "spec builds — unsold".
   Worth the pixels: a 30-tile grid with no status reads as 30 live products,
   which would be a lie, and the first interviewer to ask would catch it. */
.tile-tag {
  display: inline-block; margin-top: 9px; padding: 3px 8px;
  border-radius: 999px; background: rgba(245, 165, 36, 0.1);
  border: 1px solid rgba(245, 165, 36, 0.26); color: var(--amber);
  font-size: 10px; letter-spacing: 0.06em;
}

/* Placeholder panel inside the sheet for a project with no recording.
   card.css styles .sheet-noshot; this is only the added caption. */
.noshot-note { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.sheet-noshot { display: grid; place-content: center; text-align: center; }

/* Two links can appear in the sheet (source + live), so lay them out
   as a row rather than inheriting the single-link block style. */
#sheet-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#sheet-links[hidden] { display: none; }
#sheet-links a {
  display: inline-flex; padding: 10px 16px; border-radius: 9px;
  border: 1px solid rgba(57, 215, 242, 0.3); background: var(--cyan-soft);
  color: var(--cyan); font-size: 13.5px; font-weight: 600;
}
#sheet-links a:hover { border-color: rgba(57, 215, 242, 0.6); background: rgba(57, 215, 242, 0.2); }
#sheet-links a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- how I work ---------- */
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; margin-top: 30px; }
.trait { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; }
.trait h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.trait p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }
.trait-num { font-size: 11px; letter-spacing: 0.15em; color: var(--teal); }

/* ---------- stack list ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stack-col { background: var(--panel); padding: 20px; }
.stack-col h3 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); }
.stack-col ul { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-col li {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 42px; align-items: start; margin-top: 28px; }
.about-body p { margin-top: 16px; font-size: 16.5px; color: var(--muted); max-width: 62ch; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-photo { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.about-photo img { display: block; width: 100%; height: auto; }
.about-photo figcaption { padding: 13px 16px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); border-top: 1px solid var(--line); }

/* ---------- contact ---------- */
.contact-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 14px; margin-top: 30px; }
.crow {
  display: flex; align-items: center; gap: 14px; padding: 17px 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  transition: border-color 0.18s, transform 0.18s var(--ease-out);
}
.crow:hover { border-color: rgba(57, 215, 242, 0.45); transform: translateY(-2px); }
.crow:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.crow-ico { font-size: 19px; line-height: 1; }
.crow-label { display: block; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.crow-value { display: block; font-size: 14.5px; color: var(--ink); font-family: var(--font-mono); margin-top: 3px; word-break: break-all; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px var(--gut) 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.foot-tag { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.foot-legal { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--font-mono); display: flex; gap: 10px; }
.foot-legal a { color: var(--muted); }
.foot-legal a:hover { color: var(--cyan); }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  .nav { gap: 12px; padding: 11px var(--gut); }
  /* Seven nav links will not fit a phone; the page is one scroll anyway,
     so the links go and the two that do something stay. */
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { max-width: none; }
  .foot-legal { margin-left: 0; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
  .btn:hover, .crow:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
