
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');
:root {
  --bg: #0a0c12;
  --bg-2: #121621;
  --text: #f4f1ea;
  --muted: #9aa3b5;
  --line: rgba(244,241,234,0.10);
  --accent: #d8a35d;
  --accent-2: #7eb6ff;
  --accent-soft: rgba(216,163,93,0.16);
  --nav: rgba(12,14,20,0.78);
  --radius: 999px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --display: Syne, "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(126,182,255,0.10), transparent 55%),
    radial-gradient(800px 420px at 90% 8%, rgba(216,163,93,0.10), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); color: #fff; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.nav-shell { position: fixed; top: 1rem; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 1rem;
  padding: .55rem .55rem .55rem 1.1rem; background: var(--nav);
  border: 1px solid var(--line); backdrop-filter: blur(18px); border-radius: var(--radius);
}
.brand { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: .15rem; }
.nav-links a { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .55rem .7rem; border-radius: var(--radius); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { background: var(--accent); color: #1a1208; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .7rem 1rem; border-radius: var(--radius); }
.hero { padding: 8.5rem 0 4rem; min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: .45rem .8rem; border-radius: var(--radius); color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; width: fit-content; margin-bottom: 1.75rem; }
.badge i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent-2); display: inline-block; box-shadow: 0 0 12px var(--accent-2); }
.hero-title {
  margin: 0;
  width: 100%;
  max-width: 100%;
  line-height: .88;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.05em;
  /* sized for the longer surname "MCCANDO" */
  font-size: clamp(2.6rem, 11.5vw, 7.25rem);
  text-transform: uppercase;
  overflow: hidden;
}
.hero-title .hero-line {
  display: block;
  white-space: nowrap;
}
.hero-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1.25px rgba(244,241,234,0.28);
  paint-order: stroke fill;
}
@media (max-width: 640px) {
  .hero-title .ghost { -webkit-text-stroke-width: 1px; }
}
.hero-alias { margin: 1rem 0 0; color: var(--accent); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
.hero-grid { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.hero-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.hero-grid strong { color: #fff; font-weight: 600; }
.meta-label { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .55rem; }
.meta-value { font-size: 1rem; font-weight: 600; }
.meta-sub { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
section { padding: 5.5rem 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: .95; }
.section-head h2 span { color: var(--accent); }
.section-head p { margin: .9rem 0 0; color: var(--muted); max-width: 38rem; line-height: 1.6; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.about-grid p { color: var(--muted); line-height: 1.7; margin: 0 0 1rem; }
.about-card { border: 1px solid var(--line); background: rgba(255,255,255,0.02); border-radius: 1.25rem; padding: 1.25rem; }
.about-card li { list-style: none; margin: .7rem 0; color: var(--muted); }
.about-card strong { color: #fff; }
.work-row { border-top: 1px solid var(--line); padding: 2rem 0; }
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-meta { display: flex; gap: 1rem; color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.work-num { color: #fff; }
.work-body { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.5rem; align-items: center; }
.work-kicker { color: var(--accent); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6rem; }
.work-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.03em; }
.work-desc { color: var(--muted); line-height: 1.6; margin: .8rem 0 1rem; max-width: 36rem; }
.tag-row, .archive-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius); padding: .28rem .65rem; font-size: .72rem; letter-spacing: .04em; }
.work-actions { display: flex; gap: .7rem; margin-top: 1.1rem; flex-wrap: wrap; }
.work-link { border: 1px solid var(--line); padding: .55rem .9rem; border-radius: var(--radius); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.work-link.primary { background: var(--accent); color: #1a1208; border-color: transparent; font-weight: 700; }
.work-link:hover { border-color: rgba(255,255,255,0.28); color: #fff; }
.work-link.primary:hover { color: #1a1208; opacity: .92; }
.work-media { border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); background: #10131a; aspect-ratio: 16/10; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.work-media:hover img { transform: scale(1.03); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 1.75rem; }
.filters button { background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .9rem; cursor: pointer; font: inherit; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.filters button.active, .filters button:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.archive-list { display: flex; flex-direction: column; }
.archive-row { display: grid; grid-template-columns: 4.5rem 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid var(--line); transition: background .2s ease; }
.archive-row:hover { background: rgba(255,255,255,0.02); }
.archive-year, .archive-num { color: var(--muted); font-size: .8rem; letter-spacing: .08em; }
.archive-num { color: #fff; }
.archive-main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.archive-main strong { font-size: 1.15rem; letter-spacing: -.02em; font-family: var(--display); }
.archive-main em { color: var(--muted); font-style: normal; font-size: .9rem; line-height: 1.45; }
.archive-row.is-hidden { display: none; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.skill { border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.2rem; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.skill h3 { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.15rem; }
.skill p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.cert { border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; color: var(--muted); font-size: .9rem; }
.cert strong { display: block; color: #fff; margin-bottom: .35rem; }
.cta { border: 1px solid var(--line); border-radius: 1.5rem; padding: 2.5rem; background: radial-gradient(600px 200px at 10% 0%, var(--accent-soft), transparent 60%), rgba(255,255,255,0.02); text-align: center; }
.cta h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.cta p { color: var(--muted); margin: .8rem auto 1.4rem; max-width: 32rem; }
.cta-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #1a1208; font-weight: 700; padding: .85rem 1.2rem; border-radius: var(--radius); }
.btn-ghost { border: 1px solid var(--line); padding: .85rem 1.2rem; border-radius: var(--radius); color: #fff; }
footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
footer a:hover { color: #fff; }

/* detail pages */
.detail-top { padding: 7.5rem 0 2rem; }
.back { color: var(--muted); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.back:hover { color: #fff; }
.detail-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 1.5rem; align-items: start; }
.detail-media { border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: #10131a; }
.detail-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top center; }
.detail-thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .6rem; }
.detail-thumbs img { border-radius: .75rem; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; }
.detail-panel { border: 1px solid var(--line); border-radius: 1rem; padding: 1.2rem; background: rgba(255,255,255,0.02); position: sticky; top: 5.5rem; }
.detail-panel h1 { margin: .2rem 0 .8rem; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; }
.detail-panel .meta { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 1rem; }
.detail-panel ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.detail-panel li { margin: .35rem 0; }
.detail-copy { margin-top: 1.5rem; }
.detail-copy h2 { font-family: var(--display); font-size: 1.35rem; margin: 1.4rem 0 .6rem; }
.detail-copy p, .detail-copy li { color: var(--muted); line-height: 1.65; }
.detail-copy ul { padding-left: 1.1rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.source-gate, .source-ok { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.source-gate-label, .source-ok p, .source-gate-msg { color: var(--muted); font-size: .85rem; line-height: 1.5; margin-bottom: .7rem; }
.source-gate input {
  width: 100%;
  margin-bottom: .7rem;
  background: #10131a;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: var(--radius);
  padding: .65rem .8rem;
}
.source-gate button { width: 100%; text-align: center; }
.detail-copy pre {
  background: #10131a;
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: .9rem 1rem;
  overflow: auto;
  color: #e8e4dc;
  font-size: .85rem;
}
.detail-copy a { color: var(--accent); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .about-grid, .work-body, .skills, .certs, .detail-grid { grid-template-columns: 1fr; }
  .archive-row { grid-template-columns: 3.2rem 2.4rem 1fr; }
  .archive-tags { display: none; }
  .hero { min-height: auto; padding-top: 7rem; }
  .detail-panel { position: static; }
}
