/* Portfolio 2026 — signal workshop */
:root {
  --bg: #0d0e0b;
  --bg-elevated: #151610;
  --bg-card: #1b1c15;
  --text: #f2f0e8;
  --text-muted: #aaa99e;
  --text-dim: #707167;
  --accent: #d8ff3e;
  --accent-warm: #ff6b35;
  --border: #34352c;
  --border-subtle: #24251e;
  --display: "Archivo", sans-serif;
  --serif: "Instrument Serif", serif;
  --mono: "IBM Plex Mono", monospace;
}

html { scroll-padding-top: 78px; }

body {
  font-family: var(--mono);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-size: 14px;
  overflow-x: hidden;
}

body::before { opacity: .045; mix-blend-mode: soft-light; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10000;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container { max-width: 1320px; padding-inline: clamp(20px, 4vw, 64px); }

nav {
  border-bottom: 1px solid rgba(216,255,62,.16);
  background: rgba(13,14,11,.88);
}
nav .container { height: 72px; }
.nav-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.06em;
  color: var(--accent);
}
.nav-logo::after { content: " / build log"; color: var(--text-dim); font: 400 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { border-radius: 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active { background: transparent; border-color: var(--accent); color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(216,255,62,.75);
  vertical-align: 1px;
}
.radio-player { border-radius: 0; background: transparent; }
.radio-btn { border-radius: 2px; }
.radio-live { background: var(--accent-warm); }

.hero {
  min-height: 100svh;
  padding: 150px 0 76px;
  border: 0;
}
.hero::before {
  inset: 0;
  width: auto;
  height: auto;
  background:
    radial-gradient(circle at 78% 30%, rgba(216,255,62,.12), transparent 28%),
    linear-gradient(115deg, transparent 56%, rgba(255,107,53,.055) 56% 57%, transparent 57%);
}
.hero-content { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(48px, 8vw, 130px); }
.hero-text { position: relative; z-index: 2; }
.hero-label { color: var(--text-muted); margin-bottom: 24px; letter-spacing: .15em; }
.hero-label::before { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(216,255,62,.65); }
.hero-title {
  max-width: 850px;
  margin-bottom: 30px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(66px, 10vw, 150px);
  line-height: .78;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero-title em { display: block; font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.04em; color: var(--accent); transform: translateX(clamp(18px, 5vw, 74px)); }
.hero-description { max-width: 620px; padding-left: clamp(18px, 5vw, 74px); font-size: clamp(14px, 1.35vw, 18px); line-height: 1.75; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-left: clamp(18px, 5vw, 74px); margin-top: 32px; }
.hero-cta { display: inline-flex; align-items: center; gap: 26px; padding: 13px 16px; border: 1px solid var(--accent); color: var(--accent); text-transform: uppercase; font-size: 10px; letter-spacing: .12em; }
.hero-cta::after { content: "↘"; font-size: 18px; }
.hero-cta:hover { opacity: 1; background: var(--accent); color: var(--bg); }
.hero-status { display: inline-flex; align-items: center; gap: 9px; padding: 13px 16px; border: 1px solid var(--border); color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.hero-status::before { content: ""; width: 7px; height: 7px; background: var(--accent-warm); border-radius: 50%; }

.hero-image { justify-self: end; width: min(100%, 420px); }
.hero-image::before { inset: 22px -22px -22px 22px; border-radius: 0; border-color: var(--accent); opacity: .45; }
.hero-image::after { content: "WILL McCAMBLEY  /  VANCOUVER, WA"; position: absolute; left: -30px; bottom: -50px; color: var(--text-dim); font-size: 9px; letter-spacing: .14em; writing-mode: vertical-rl; transform: rotate(180deg); }
.hero-image img { max-width: none; border-radius: 0; filter: saturate(.8) contrast(1.05); }
.mini-me { right: -72px; top: -132px; filter: drop-shadow(0 16px 16px rgba(0,0,0,.35)); }

section { padding: clamp(88px, 11vw, 156px) 0; border-top-color: var(--border); }
.section-header { display: grid; grid-template-columns: minmax(140px, .35fr) 1fr; align-items: end; gap: 28px; margin-bottom: clamp(46px, 7vw, 84px); }
.section-label { margin: 0 0 9px; color: var(--accent-warm); }
.section-title { max-width: 900px; font-family: var(--display); font-weight: 800; font-size: clamp(43px, 6.4vw, 88px); line-height: .92; letter-spacing: -.06em; text-wrap: balance; }

.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); counter-reset: projects; }
.project-card {
  grid-column: span 4;
  min-height: 360px;
  padding: clamp(24px, 3vw, 40px);
  border: 0;
  border-radius: 0;
  background: var(--bg);
  counter-increment: projects;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; background: var(--bg-elevated); }
.project-card:nth-child(3) { grid-column: span 5; }
.project-card:nth-child(4) { grid-column: span 7; background: var(--bg-elevated); }
.project-card:nth-child(1)::after, .project-card:nth-child(4)::after { content: "FEATURED"; position: absolute; right: -35px; top: 23px; width: 140px; padding: 4px 0; background: var(--accent); color: var(--bg); font-size: 8px; text-align: center; letter-spacing: .18em; transform: rotate(35deg); }
.project-card::before { content: "0" counter(projects); position: absolute; right: 26px; bottom: 16px; color: rgba(242,240,232,.05); font-family: var(--display); font-size: 88px; font-weight: 900; line-height: 1; }
.project-card:hover { transform: none; z-index: 2; background: #202219; border-color: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
.project-header { margin-bottom: 28px; }
.project-name { font-family: var(--display); font-size: clamp(22px, 2.2vw, 34px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.project-icon { font-size: 25px; filter: grayscale(1); transition: filter .25s, transform .25s; }
.project-card:hover .project-icon { filter: none; transform: rotate(-8deg) scale(1.15); }
.project-description { max-width: 560px; margin-bottom: 26px; color: var(--text-muted); line-height: 1.8; }
.project-tech { margin-top: auto; padding-right: 64px; }
.project-tech span, .work-tag { background: transparent; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); text-transform: uppercase; font-size: 8px; letter-spacing: .08em; }
.project-link, .project-download { position: relative; z-index: 1; align-self: flex-start; padding: 0 0 4px; margin-top: 22px; border-radius: 0; border-bottom: 1px solid var(--accent); background: transparent; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; }
.project-link::after, .project-download::after { content: " ↗"; }
.project-link:hover, .project-download:hover { opacity: 1; color: var(--text); transform: none; border-color: var(--text); }
.project-links { border: 0; padding: 0; }
.project-links a { border-radius: 0; }

.work-card { border-radius: 0; border: 1px solid var(--border); padding: clamp(30px, 5vw, 72px); grid-template-columns: .75fr 1.5fr; background: linear-gradient(130deg, var(--bg-elevated), var(--bg)); position: relative; }
.work-card::before { content: "CURRENT SIGNAL"; position: absolute; top: 0; right: 0; padding: 8px 12px; background: var(--accent-warm); color: var(--bg); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.work-card:hover { border-color: var(--accent-warm); }
.work-company { font-family: var(--display); font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -.06em; }
.work-role { color: var(--accent); }
.work-description { font-size: clamp(14px, 1.45vw, 18px); }

.music-section { background: var(--accent); color: var(--bg); }
.music-section .section-label, .music-section .section-title { color: var(--bg); }
.music-player { padding: clamp(25px, 5vw, 60px); border: 2px solid var(--bg); border-radius: 0; background: rgba(13,14,11,.94); color: var(--text); box-shadow: 14px 14px 0 rgba(13,14,11,.22); }
.now-playing { font-family: var(--display); }
.play-btn { border-radius: 2px; background: var(--accent-warm); }
.play-btn:hover { background: var(--text); }
.progress-bar { height: 8px; border-radius: 0; }
.track-item { border-radius: 0; }

.gallery-grid { grid-template-columns: repeat(12, 1fr); gap: 10px; }
.gallery-item { grid-column: span 4; border-radius: 0; aspect-ratio: 4/3; }
.gallery-item:nth-child(5n + 1) { grid-column: span 7; aspect-ratio: 16/10; }
.gallery-item:nth-child(5n + 2) { grid-column: span 5; aspect-ratio: 1; }
.gallery-item img { filter: saturate(.65); }
.gallery-item:hover img { transform: scale(1.025); filter: saturate(1); }

footer { padding: 54px 0; border-top: 1px solid var(--accent); text-align: left; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-text::before { content: "● "; color: var(--accent); }
.footer-back { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

/* Blog and lab share the same visual language. */
main { padding-top: 150px; }
.page-header { padding-bottom: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--border); }
.page-label { color: var(--accent-warm); }
.page-title { max-width: 950px; font-family: var(--display); font-size: clamp(58px, 9vw, 116px); font-weight: 900; line-height: .83; letter-spacing: -.075em; }
.blog-card, .lab-card { border-radius: 0 !important; }
.blog-list, .blog-post { max-width: 820px; }
.blog-item-title, .lab-name { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.blog-item { border-radius: 0; }
.lab-grid { gap: 1px; padding: 1px; background: var(--border); }
.lab-card { border: 0 !important; background: var(--bg) !important; }
.lab-card:hover { box-shadow: inset 0 0 0 1px var(--accent); transform: none !important; }

@media (max-width: 980px) {
  .nav-logo::after, .nav-sep { display: none; }
  .hero-content { grid-template-columns: 1.15fr .85fr; gap: 42px; }
  .mini-me { right: -35px; }
  .project-card { grid-column: span 6; }
  .project-card:nth-child(1), .project-card:nth-child(2), .project-card:nth-child(3), .project-card:nth-child(4) { grid-column: span 6; }
}

@media (max-width: 768px) {
  body { background-size: 44px 44px; }
  nav { position: absolute; }
  nav .container { height: auto; min-height: 66px; flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav-left { width: 100%; justify-content: space-between; gap: 12px; }
  .nav-links { display: flex; max-width: calc(100vw - 72px); overflow-x: auto; scrollbar-width: none; gap: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { display: block; white-space: nowrap; padding: 11px 9px; font-size: 9px; }
  .nav-right { position: absolute; right: 14px; top: 9px; }
  .radio-player, .nav-social { display: none; }

  .hero { min-height: auto; padding: 138px 0 84px; }
  .hero-content { grid-template-columns: 1fr; text-align: left; gap: 80px; }
  .hero-title { font-size: clamp(62px, 24vw, 104px); }
  .hero-description, .hero-actions { padding-left: 18px; }
  .hero-image { order: 0; width: calc(100% - 28px); margin: 0 28px 0 0; justify-self: start; }
  .hero-image img { max-width: none; }
  .hero-image::after { left: auto; right: -42px; }
  .mini-me { top: -100px; right: -35px; width: 135px; height: 135px; }

  section { padding: 82px 0; }
  .section-header { grid-template-columns: 1fr; gap: 14px; margin-bottom: 44px; }
  .section-title { font-size: clamp(42px, 13vw, 66px); }
  .projects-grid { display: block; border: 1px solid var(--border); background: transparent; }
  .project-card, .project-card:nth-child(n) { min-height: 330px; border-bottom: 1px solid var(--border); }
  .project-card:last-child { border-bottom: 0; }
  .work-card { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; }
  .player-controls { gap: 16px; }
  .music-player { box-shadow: 8px 8px 0 rgba(13,14,11,.22); }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
