:root {
  --bg: #090a0c;
  --bg-raised: #111317;
  --surface: #17191d;
  --text: #f4f2ed;
  --muted: #9c9d9e;
  --line: rgba(244, 242, 237, 0.16);
  --line-strong: rgba(244, 242, 237, 0.34);
  --accent: #b7ff23;
  --accent-2: #75a7ff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", var(--sans);
  --sidebar-width: 17.5rem;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 2rem 1.8rem 1.5rem;
  border-right: 1px solid var(--line);
  background: rgba(9, 10, 12, 0.94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 0.7rem;
  letter-spacing: -0.04em;
}
.brand-name { font-size: 0.78rem; font-weight: 700; line-height: 0.96; letter-spacing: -0.04em; }
.sidebar-rule { width: 100%; margin: 2.2rem 0 1.4rem; border-top: 1px solid var(--line); }
.site-nav { display: grid; gap: 0.55rem; }
.nav-link {
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.3rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link span { color: var(--accent); font-size: 0.64rem; }
.nav-link:hover, .nav-link.is-active { color: var(--text); transform: translateX(0.2rem); }
.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
.sidebar-footer { display: grid; gap: 0.55rem; margin-top: auto; color: var(--muted); font-size: 0.66rem; }
.availability { display: flex; align-items: center; gap: 0.4rem; }
.availability i, .status-dot { display: inline-block; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0.6rem var(--accent); }

main { margin-left: var(--sidebar-width); overflow: hidden; }
.text-link span, .footer-links span { color: var(--accent); }
.section-pad { padding-right: var(--pad); padding-left: var(--pad); }

.intro { padding-top: 7rem; padding-bottom: 8rem; }
.intro > .eyebrow { display: flex; align-items: center; gap: 0.5rem; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr); gap: 5vw; align-items: start; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.065em; }
h1 {
  max-width: 8ch;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(4.6rem, 10vw, 10.5rem);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}
h1 em, h2 em, h3 em { color: var(--accent); font-family: var(--serif); font-weight: 400; }
h1 em { text-transform: none; }
.intro-side { display: grid; gap: 2.2rem; align-self: start; justify-items: center; }
.intro-art { width: min(100%, 37rem); overflow: hidden; background: var(--bg); }
.intro-art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.intro-copy { width: min(100%, 25rem); padding-bottom: 0.6rem; }
.intro-copy p { margin-bottom: 2rem; color: var(--muted); font-size: 1rem; }
.text-link { display: inline-flex; gap: 0.8rem; align-items: center; padding-bottom: 0.35rem; border-bottom: 1px solid var(--line-strong); font-size: 0.76rem; }
.text-link:hover { border-bottom-color: var(--accent); }
.statement { display: grid; grid-template-columns: 1fr 2.2fr; gap: 2rem; padding-top: 8rem; padding-bottom: 10rem; border-top: 1px solid var(--line); }
.statement-copy { max-width: 19ch; margin: 0; font-size: clamp(2.4rem, 5vw, 5.5rem); letter-spacing: -0.07em; line-height: 0.98; }

.work { display: flex; flex-direction: column; padding-top: 2rem; padding-bottom: 10rem; }
.work > .section-heading { order: 0; }
.work-period-2026 { order: 1; }
.work-period-2025 { order: 2; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2.3rem; }
h2 { margin: 0; font-family: var(--display); font-size: clamp(3.8rem, 8vw, 8.5rem); font-weight: 900; line-height: 0.82; text-transform: uppercase; }
.section-note { margin: 0 0 0.25rem; color: var(--muted); font-size: 0.68rem; line-height: 1.45; text-align: right; }
.work-period-2025 { margin-top: 6rem; }
.period-heading, .project-heading { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
.period-heading span:first-child, .project-heading span:first-child { color: var(--accent); }
.work-grid { display: grid; grid-auto-flow: dense; grid-auto-rows: minmax(12rem, auto); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
.work-period-2026 .work-card:nth-child(9) { order: 1; }
.work-period-2026 .work-card:nth-child(6) { order: 2; }
.work-period-2026 .work-card:nth-child(5) { order: 3; }
.work-period-2026 .work-card:nth-child(4) { order: 4; }
.work-period-2026 .work-card:nth-child(10) { order: 5; }
.work-period-2026 .work-card:nth-child(3) { order: 6; }
.work-period-2026 .work-card:nth-child(11) { order: 7; }
.work-period-2026 .work-card:nth-child(2) { order: 8; }
.work-period-2026 .work-card:nth-child(7) { order: 9; }
.work-period-2026 .work-card:nth-child(8) { order: 10; }
.work-period-2026 .work-card:nth-child(1) { order: 11; }
.work-period-2025 .work-card:nth-child(6) { order: 1; }
.work-period-2025 .work-card:nth-child(4) { order: 2; }
.work-period-2025 .work-card:nth-child(10) { order: 3; }
.work-period-2025 .work-card:nth-child(1) { order: 4; }
.work-period-2025 .work-card:nth-child(8) { order: 5; }
.work-period-2025 .work-card:nth-child(5) { order: 6; }
.work-period-2025 .work-card:nth-child(3) { order: 7; }
.work-period-2025 .work-card:nth-child(9) { order: 8; }
.work-period-2025 .work-card:nth-child(2) { order: 9; }
.work-period-2025 .work-card:nth-child(7) { order: 10; }
.work-card, .personal-card { position: relative; min-height: 14rem; padding: 0; overflow: hidden; border: 0; background: var(--surface); cursor: pointer; text-align: left; }
.work-card-wide { grid-column: span 2; }
.work-card-tall { grid-row: span 2; }
.work-card img { width: 100%; height: 100%; min-height: 14rem; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.4s ease; }
.work-card-tall img { min-height: 29rem; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.045); filter: brightness(0.75); }
.card-overlay { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.78)); color: #fff; font-size: 0.72rem; opacity: 0; transform: translateY(0.5rem); transition: opacity 0.25s ease, transform 0.25s ease; }
.work-card:hover .card-overlay, .work-card:focus-visible .card-overlay { opacity: 1; transform: translateY(0); }
.card-overlay b { color: var(--accent); font-size: 1rem; }

.personal { padding-top: 2rem; padding-bottom: 10rem; border-top: 1px solid var(--line); }
.personal-project { padding: 1.4rem 0 4.5rem; border-top: 1px solid var(--line); }
.project-heading { margin-bottom: 1rem; color: var(--text); }
.project-heading span:last-child { color: var(--muted); }
.project-grid { display: grid; gap: 0.65rem; }
.project-grid-four { grid-auto-rows: minmax(11rem, 16rem); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-grid-three { grid-auto-rows: minmax(12rem, 22rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-grid-five { grid-auto-rows: minmax(10rem, 15rem); grid-template-columns: repeat(5, minmax(0, 1fr)); }
.personal-card-feature { grid-column: span 2; grid-row: span 2; }
.personal-card img { width: 100%; height: 100%; min-height: 11rem; object-fit: cover; transition: transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.35s ease; }
.personal-card:hover img, .personal-card:focus-visible img { transform: scale(1.035); filter: brightness(0.78); }

.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.85fr); gap: clamp(0.75rem, 1.5vw, 1.5rem); align-items: center; padding-top: 8rem; padding-bottom: 10rem; border-top: 1px solid var(--line); }
.about-image { position: relative; width: 100%; max-width: none; }
.about-image img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.9); }
.about-image span { display: block; margin-top: 0.7rem; color: var(--muted); font-size: 0.66rem; }
.about-copy { max-width: 42rem; }
.about-copy h2 { margin-bottom: 2.5rem; }
.about-copy > p:not(.eyebrow) { max-width: 29rem; color: var(--muted); font-size: 1.05rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.about-tags span { padding: 0.45rem 0.75rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 0.66rem; }
.footer { display: flex; min-height: 50vh; justify-content: space-between; gap: 2rem; align-items: end; padding-top: 5rem; padding-bottom: 2rem; border-top: 1px solid var(--line); }
.footer h2 { font-size: clamp(4rem, 10vw, 10rem); }
.footer-links { display: grid; min-width: 10rem; gap: 0.7rem; padding-bottom: 0.35rem; }
.footer-links a { display: flex; justify-content: space-between; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line); font-size: 0.75rem; }
.footer-links a:hover { border-color: var(--accent); }
.footer-links small { margin-top: 1.3rem; color: var(--muted); font-size: 0.62rem; }

.lightbox { position: fixed; z-index: 20; inset: 0; display: grid; padding: 3rem; place-items: center; background: rgba(0,0,0,0.9); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(92vw, 100rem); margin: 0; }
.lightbox img { max-height: 82vh; object-fit: contain; }
.lightbox figcaption { padding-top: 0.8rem; color: var(--muted); font-size: 0.7rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; border: 0; background: none; color: #fff; cursor: pointer; font-size: 2.5rem; line-height: 1; }

.reveal { opacity: 0; transform: translateY(1.3rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

@media (max-width: 980px) {
  :root { --sidebar-width: 13.5rem; }
  .sidebar { padding-right: 1.2rem; padding-left: 1.2rem; }
  .intro-layout { grid-template-columns: 1fr; gap: 3rem; }
  .intro-copy { max-width: 30rem; }
  .intro-art { margin-left: 0; }
  .about { gap: 3rem; }
}

@media (max-width: 700px) {
  :root { --sidebar-width: 0px; --pad: 1.15rem; }
  .sidebar { position: relative; width: auto; height: auto; padding: 1rem var(--pad); border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-rule, .sidebar-footer { display: none; }
  .brand { justify-content: space-between; }
  .brand::after { content: "Signal / 2026"; color: var(--accent); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
  .site-nav { display: flex; gap: 1rem; margin-top: 1rem; overflow-x: auto; }
  .nav-link { flex: 0 0 auto; font-size: 0.72rem; }
  main { margin-left: 0; }
  .intro { padding-top: 5rem; padding-bottom: 6rem; }
  h1 { font-size: clamp(4rem, 18vw, 7rem); }
  .intro-side { gap: 1.7rem; }
  .intro-art { width: min(100%, 31rem); }
  .statement { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 5rem; padding-bottom: 6rem; }
  .statement-copy { font-size: clamp(2.5rem, 11vw, 4rem); }
  .section-heading { display: block; }
  .section-note { margin-top: 1.4rem; text-align: left; }
  h2 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .work, .personal { padding-bottom: 6rem; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(10rem, auto); }
  .work-card, .work-card img { min-height: 10rem; }
  .work-card-tall img { min-height: 20.5rem; }
  .work-period-2025 { margin-top: 4rem; }
  .project-grid-four, .project-grid-three, .project-grid-five { grid-auto-rows: minmax(9rem, 13rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid-five .personal-card-feature, .project-grid-three .personal-card-feature { grid-column: span 2; }
  .personal-card, .personal-card img { min-height: 9rem; }
  .about { grid-template-columns: 1fr; gap: 3rem; padding-top: 5rem; padding-bottom: 6rem; }
  .about-image { max-width: 25rem; }
  .footer { display: block; min-height: 60vh; padding-top: 5rem; }
  .footer-links { max-width: 18rem; margin-top: 5rem; }
  .lightbox { padding: 1rem; }
}
