/* jmandrews.com — Executive multifamily / PropTech portfolio
   Presentation-deck feel: full-screen scroll-snap slides.
   Palette: deep navy #171B2E, coral/peach-orange accent #F0A868,
   lavender/periwinkle secondary #8E90C4 — reference: Visme CIO portfolio deck. */

:root {
  --bg: #171b2e;
  --bg-2: #1b2036;
  --panel: #252a44;
  --panel-2: #2e3352;
  --border: #343a59;
  --text: #f5f6fc;
  --muted: #aab0cc;
  --faint: #7c82a6;

  /* Accents — coral is the hero, lavender the secondary */
  --coral: #f0a868;
  --coral-2: #e8a87c;
  --coral-deep: #e79350;
  --lav: #8e90c4;
  --on-coral: #241608;

  /* Legacy hooks repointed to the new palette so all existing rules re-theme */
  --blue: #f0a868;
  --teal: #f0a868;

  --grad: linear-gradient(120deg, #e8a87c, #f0a868);
  --grad-lav: linear-gradient(160deg, #71749f, #585c8e);
  --grad-orange: linear-gradient(160deg, #f1ad70, #e79350);
  --ring: rgba(240, 168, 104, 0.42);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --maxw: 1180px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Full-screen section snapping on the body scroll container */
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { scroll-snap-type: none; }
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 .5em;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--coral); color: var(--on-coral); padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Fixed top nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in oklab, var(--bg) 74%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { font-family: "Space Grotesk", monospace; font-weight: 700; font-size: .78rem; color: var(--on-coral); background: var(--grad); padding: .35rem .5rem; border-radius: 8px; letter-spacing: .05em; }
.brand-name { font-size: .98rem; font-family: "Space Grotesk", sans-serif; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { color: var(--on-coral) !important; background: var(--coral); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--coral-deep); }
.nav-toggle { display: none; }

/* ---------- Slide dot nav (right rail) ---------- */
.dots { position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: .8rem; }
.dots a { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--faint); background: transparent; transition: .2s; }
.dots a:hover { border-color: var(--coral); }
.dots a.active { background: var(--coral); border-color: transparent; box-shadow: 0 0 0 4px rgba(240, 168, 104, .2); }

/* ---------- Slides ---------- */
.slide {
  min-height: 100vh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; position: relative;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
}
.slide-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; position: relative; z-index: 2; padding-top: 2.4rem; }
.cover .slide-inner { padding-top: 2.4rem; }

/* "PORTFOLIO" corner tag with short rule (reference top-right treatment) */
.portfolio-tag {
  position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: .7rem;
  font-family: "Space Grotesk", sans-serif; font-size: .72rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted); pointer-events: none;
}
.portfolio-tag::after { content: ""; width: 38px; height: 1px; background: var(--faint); }

.kicker { font-family: "Space Grotesk", monospace; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--coral); margin: 0 0 1.2rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--grad); display: inline-block; }
.slide h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--coral); }
.slide-sub { color: var(--muted); max-width: 60ch; font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease; font-family: "Space Grotesk", sans-serif; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--on-coral); box-shadow: 0 14px 34px -14px var(--ring); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--panel); }
.btn-ghost:hover { border-color: var(--coral); }

/* ===== SLIDE 1 — Cover ===== */
.cover { background:
    radial-gradient(1100px 600px at 85% 8%, rgba(240,168,104,.14), transparent 60%),
    radial-gradient(900px 600px at 0% 92%, rgba(142,144,196,.14), transparent 55%),
    var(--bg); }
.cover-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 3rem; align-items: center; }

/* Photo sits on a rounded coral offset panel (reference cover) */
.cover-portrait { position: relative; justify-self: end; padding: 16px 0 16px 16px; }
.cover-portrait::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 0;
  width: 80%; height: 84%; background: var(--grad-orange); border-radius: 24px;
}
.cover-portrait picture { display: block; position: relative; z-index: 1; }
.cover-portrait img {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px; height: auto;
  border-radius: 24px 24px 24px 64px;
  box-shadow: var(--shadow);
  filter: saturate(1.02);
}
.cover h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; color: var(--text); }

.cover .title-role { font-family: "Space Grotesk", sans-serif; color: var(--coral); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; font-size: clamp(.9rem, 2vw, 1.15rem); margin-top: .5rem; }
.cover .value-prop { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 46ch; margin: 1.6rem 0 2rem; }
.cover .value-prop strong { color: var(--text); font-weight: 600; }
.cover-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Contact rows with small circular coral icons (reference) */
.cover-contact { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.cover-contact li { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .95rem; }
.cover-contact a { color: var(--text); }
.cover-contact a:hover { color: var(--coral); text-decoration: none; }
.ci { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: var(--on-coral); font-size: .82rem; font-weight: 700; font-family: "Space Grotesk", sans-serif; }

/* ===== Ventures & builds ===== */
.ventures { margin-top: 2.6rem; }
.ventures-label {
  font-family: "Space Grotesk", monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--faint); display: block; margin-bottom: 1.1rem;
}
.venture-cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.venture-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.1rem 1.1rem 1.2rem; text-align: left;
}
.venture-card img { height: 30px; width: auto; margin-bottom: .7rem; }
.venture-mono {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: .7rem;
  font-family: "Space Grotesk", monospace; font-weight: 700; font-size: .85rem;
  color: var(--on-coral); background: var(--grad);
}
.venture-card h4 { font-size: .98rem; margin: 0 0 .3rem; color: var(--coral); }
.venture-card p { font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 880px) { .venture-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .venture-cards { grid-template-columns: 1fr; } }

/* ===== SLIDE 2 — Metrics ===== */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.4rem; }
.metric { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 1.8rem 1.6rem; position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); opacity: .85; }
.metric .value { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .value.placeholder { background: none; color: var(--faint); border-bottom: 2px dashed var(--border); display: inline-block; padding-bottom: .2rem; }
.metric .label { color: var(--text); font-weight: 600; margin-top: .8rem; font-size: 1rem; }
.metric .note { color: var(--faint); font-size: .8rem; margin-top: .3rem; }
.fill-tag { display: inline-block; margin-top: .7rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); border: 1px dashed color-mix(in oklab, var(--coral) 50%, var(--border)); border-radius: 999px; padding: .2rem .55rem; }

/* ===== SLIDE 3 — Stakeholder tabs ===== */
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 1.6rem; }
.tab { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .95rem; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: .7rem 1.1rem; cursor: pointer; transition: .18s; }
.tab:hover { color: var(--text); border-color: var(--faint); }
.tab[aria-selected="true"] { color: var(--on-coral); background: var(--coral); border-color: transparent; }
.tab .tab-for { display: block; font-size: .7rem; font-weight: 500; color: inherit; opacity: .8; letter-spacing: .04em; }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; }
.panel-lead { color: var(--muted); font-size: 1.02rem; }
.caps { list-style: none; padding: 0; margin: 0; }
.caps li { padding: .6rem 0 .6rem 2rem; position: relative; border-bottom: 1px solid var(--border); color: var(--text); font-size: .98rem; }
.caps li:last-child { border-bottom: 0; }
/* Circular coral bullet icons (reference competency list) */
.caps li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 18px; height: 18px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(240,168,104,.15); }
.caps li::after { content: ""; position: absolute; left: 6px; top: 1.15rem; width: 6px; height: 6px; border-radius: 50%; background: var(--on-coral); }

/* ===== SLIDE 4 — Case studies ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.case { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; }
.case:hover { border-color: color-mix(in oklab, var(--coral) 45%, var(--border)); box-shadow: var(--shadow); }
.case h3 { font-size: 1.15rem; color: var(--text); }
.case .case-tag { font-family: "Space Grotesk", monospace; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--coral); margin-bottom: .6rem; }
.case .block { margin-top: 1rem; }
.case .block h4 { font-family: "Space Grotesk", sans-serif; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--lav); margin: 0 0 .35rem; }
.case .block ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.case .block ul li { margin: .2rem 0; }
.case .roi { color: var(--text); }

/* ===== SLIDE 5 — Cert matrix ===== */
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.matrix-col { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 1.5rem; }
.matrix-col h3 { font-size: 1.02rem; color: var(--coral); }
.badges { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.badge { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: .55rem .8rem; font-size: .9rem; }
.status { font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 999px; white-space: nowrap; }
.status.done { color: #04241a; background: #35d69a; }
.status.progress { color: var(--on-coral); background: var(--coral); }
.status.planned { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.status.target { color: var(--faint); background: transparent; border: 1px dashed var(--border); }
.status.skill { color: var(--coral); background: transparent; border: 1px solid var(--coral); }

/* Alternating lavender / orange filled cards (reference Certifications/Memberships) */
.matrix-col.lav { background: var(--grad-lav); border-color: transparent; }
.matrix-col.lav h3 { color: #fff; }
.matrix-col.lav .badge { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); color: #fff; }
.matrix-col.lav .status.skill { color: #fff; border-color: rgba(255,255,255,.5); }
.matrix-col.lav .status.target { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.matrix-col.orange { background: var(--grad-orange); border-color: transparent; }
.matrix-col.orange h3 { color: var(--on-coral); }
.matrix-col.orange .badge { background: rgba(36,22,8,.14); border-color: rgba(36,22,8,.22); color: #241608; }
.matrix-col.orange .status { color: #241608; background: rgba(36,22,8,.16); border-color: transparent; }

/* ===== Learning & education strip ===== */
.learning-strip {
  margin-top: 1.6rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.4rem;
  padding-top: 1.4rem; border-top: 1px solid var(--border);
}
.ls-label {
  font-family: "Space Grotesk", monospace; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--faint); display: block; margin-bottom: .7rem;
}
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .8rem; color: var(--muted); background: var(--panel-2);
  border: 1px dashed var(--border); border-radius: 999px; padding: .34rem .7rem;
}
.chips.chips-plain li { border-style: solid; }
@media (max-width: 720px) { .learning-strip { grid-template-columns: 1fr; } }

/* Footer inside last slide */
.deck-footer { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; color: var(--faint); font-size: .85rem; }
.deck-footer .footer-sub { font-family: "Space Grotesk", monospace; color: var(--coral); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Decorative geometric accents (reference Visme CIO deck) —
   floating half/quarter circles, dot-grid clusters. Pure CSS,
   sit behind content, never intercept pointer events.
   ============================================================ */
.slide-deco {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  pointer-events: none;
}
.deco { position: absolute; display: block; }

/* Half circle — a full disc; positioned so half sits off the edge */
.deco.half-circle { border-radius: 50%; }
/* Quarter circle — round one corner only */
.deco.quarter-circle { border-radius: 100% 0 0 0; }

.deco.coral { background: var(--grad-orange); }
.deco.lav { background: var(--grad-lav); }

/* Dot-grid cluster (reference small dotted patches) */
.deco.dot-grid {
  background-image: radial-gradient(currentColor 1.7px, transparent 1.8px);
  background-size: 17px 17px;
  color: var(--coral);
}

/* Cover */
.deco-cover-a { width: 300px; height: 300px; top: -120px; right: 6%; opacity: .16; }
.deco-cover-b { width: 210px; height: 210px; bottom: -70px; left: -70px; opacity: .18; transform: rotate(180deg); }
.deco-cover-c { width: 120px; height: 96px; bottom: 12%; right: 40%; opacity: .5; color: var(--lav); }

/* Cover portrait halo — half-circle tucked behind the photo (reference) */
.portrait-halo {
  position: absolute; z-index: 0; top: -26px; right: -26px;
  width: 190px; height: 190px; border-radius: 50%;
  background: var(--grad-lav); opacity: .9;
}

/* Metrics */
.deco-metrics-a { width: 260px; height: 260px; top: -110px; left: -90px; opacity: .14; }
.deco-metrics-b { width: 130px; height: 100px; top: 10%; right: 2%; opacity: .45; color: var(--coral); }

/* Stakeholders */
.deco-stake-a { width: 240px; height: 240px; bottom: -60px; right: -60px; opacity: .16; transform: rotate(180deg); }
.deco-stake-b { width: 220px; height: 220px; top: -110px; left: 10%; opacity: .13; }

/* Cases */
.deco-cases-a { width: 260px; height: 260px; top: -80px; left: -80px; opacity: .5; transform: rotate(90deg); }

/* Credentials */
.deco-cert-a { width: 300px; height: 300px; bottom: -150px; right: 4%; opacity: .13; }
.deco-cert-b { width: 120px; height: 96px; top: 6%; left: 1%; opacity: .5; color: var(--lav); }
.deco-cert-c { width: 200px; height: 200px; top: -100px; right: 22%; opacity: .14; transform: rotate(270deg); }

/* ============================================================
   Photo frames — rounded image with an offset colored panel
   behind it (reference offset-panel portrait treatment).
   ============================================================ */
.photo-frame { position: relative; margin: 0; }
.photo-frame::before {
  content: ""; position: absolute; z-index: 0; border-radius: 20px;
  width: 78%; height: 82%; right: -14px; bottom: -14px;
}
.photo-frame.frame-coral::before { background: var(--grad-orange); }
.photo-frame.frame-lav::before { background: var(--grad-lav); }
.photo-frame picture { display: block; position: relative; z-index: 1; }
.photo-frame img {
  display: block; width: 100%; height: auto;
  border-radius: 22px; box-shadow: var(--shadow);
  object-fit: cover;
}
.photo-frame.frame-tall img { border-radius: 22px 22px 22px 60px; }

/* Metrics: photo beside a 2x2 stat grid */
.metrics-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 2rem; align-items: center; margin-top: 2.2rem; }
.metrics-layout .metrics-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
.metrics-layout .photo-frame img { max-height: 62vh; }

/* Stakeholder panels: text + contextual photo */
.panel-grid.has-photo { grid-template-columns: 1.15fr .85fr; align-items: center; }
.panel-grid.has-photo .panel-text { min-width: 0; }
.panel-grid.has-photo .photo-frame img { max-height: 52vh; }
.panel-grid.has-photo .photo-frame.frame-tall img { max-height: 58vh; }

/* Case featured media */
.case-media { margin: 0 0 1rem; border-radius: 14px; overflow: hidden; }
.case-media img { display: block; width: 100%; height: 150px; object-fit: cover; }

/* Full-width photographic section background with navy overlay */
.has-bg-photo { position: relative; overflow: hidden; }
.has-bg-photo .bg-photo { position: absolute; inset: 0; z-index: 0; }
.has-bg-photo .bg-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.has-bg-photo .bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(23,27,46,.97) 0%, rgba(23,27,46,.9) 38%, rgba(23,27,46,.74) 100%),
    linear-gradient(0deg, rgba(23,27,46,.92), rgba(23,27,46,.4));
}

/* ---------- Responsive: fall back to standard vertical layout ---------- */
@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .metrics-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .metrics-layout .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid.has-photo { grid-template-columns: 1fr; }
  /* Cap image height so stacked photos don't dominate on tablets */
  .metrics-layout .photo-frame img,
  .panel-grid.has-photo .photo-frame img,
  .panel-grid.has-photo .photo-frame.frame-tall img { max-height: 300px; object-position: center 30%; }
  .photo-frame::before { right: -10px; bottom: -10px; }
}
@media (max-width: 768px) {
  body { scroll-snap-type: none; scroll-padding-top: var(--nav-h); }
  .slide { min-height: auto; scroll-snap-align: none; padding: calc(var(--nav-h) + 1.5rem) 1.25rem 2.5rem; }
  .dots { display: none; }
  .metrics-grid,
  .metrics-layout .metrics-grid { grid-template-columns: 1fr; }
  .cover-portrait { justify-self: start; margin-top: 1.4rem; }
  .portfolio-tag { font-size: .66rem; letter-spacing: .24em; }

  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 38px; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; padding: 0 9px; }
  .nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: .2rem; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s ease; }
  .nav-links[data-open="true"] { max-height: 360px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .6rem 0; width: 100%; }
  .cover-actions .btn { flex: 1 1 auto; justify-content: center; }

  /* Tame decorative accents on phones — smaller, fewer, subtler */
  .deco.half-circle, .deco.quarter-circle { max-width: 200px; max-height: 200px; }
  .deco-cover-c, .deco-metrics-b, .deco-cert-b, .deco-stake-b { display: none; }
  .portrait-halo { width: 130px; height: 130px; top: -16px; right: -12px; }
  .cover-portrait { max-width: 320px; }
  .photo-frame img { border-radius: 18px; }
  .photo-frame.frame-tall img { border-radius: 18px 18px 18px 44px; }
}
