/* ============================================================
   Liam Robinson — v2 "Nightshift"
   Dark split-screen · bold grotesk · one acid accent
   ============================================================ */

:root {
  /* dark — warm charcoal */
  --bg:     oklch(0.155 0.006 60);
  --bg-2:   oklch(0.195 0.007 62);
  --ink:    oklch(0.945 0.008 92);
  --muted:  oklch(0.66 0.012 82);
  --faint:  oklch(0.44 0.010 72);
  --line:   oklch(0.29 0.006 66);
  --accent: oklch(0.87 0.19 124);          /* acid lime */
  --on-accent: oklch(0.18 0.03 124);

  --disp: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.5rem, 3.5vw, 3.5rem);
}

[data-theme="light"] {
  --bg:     oklch(0.965 0.006 92);
  --bg-2:   oklch(0.94 0.007 90);
  --ink:    oklch(0.20 0.01 70);
  --muted:  oklch(0.46 0.012 78);
  --faint:  oklch(0.68 0.010 82);
  --line:   oklch(0.86 0.006 88);
  --accent: oklch(0.74 0.17 128);
  --on-accent: oklch(0.18 0.03 124);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.acc { color: var(--accent); }

/* ============================================================
   SHELL — split screen
   ============================================================ */
.shell { display: grid; grid-template-columns: 44vw 1fr; min-height: 100vh; }

/* ---- left identity panel (pinned) ---- */
.panel {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--pad);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status { display: inline-flex; align-items: center; gap: .6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity:.4; transform: scale(.7);} }

.panel-mid { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: clamp(1.5rem,4vh,3rem) 0; }
.id-name {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 7rem);
  line-height: .92;
  letter-spacing: -0.04em;
}
.id-name .ln { display: block; overflow: hidden; }
.id-name .ln > span { display: block; }
.id-role {
  margin-top: clamp(1.1rem, 2.5vh, 1.8rem);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 500; letter-spacing: -.01em; color: var(--muted);
  max-width: 26ch;
}
.id-role b { color: var(--ink); font-weight: 600; }

.panel-foot { display: flex; flex-direction: column; gap: 1.1rem; }
.panel-foot .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.panel-mail { font-family: var(--disp); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.panel-mail .ar { color: var(--accent); transition: transform .45s var(--ease); }
.panel-mail:hover .ar { transform: translate(.3em,-.3em); }
.panel-socials { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.panel-socials a { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: relative; padding-bottom: 3px; transition: color .3s var(--ease); }
.panel-socials a::after { content:""; position:absolute; left:0; bottom:0; height:1px; width:100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.panel-socials a:hover { color: var(--ink); }
.panel-socials a:hover::after { transform: scaleX(1); }
.clockline { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--faint); }

/* ============================================================
   CONTENT (right, scrolls)
   ============================================================ */
.content { padding: var(--pad); }
.block { padding: clamp(3.5rem, 9vh, 8rem) 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: clamp(2.5rem, 6vh, 5rem); }
.block:last-of-type { border-bottom: 0; }

.block-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.block-head .num {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: var(--accent); letter-spacing: -.02em;
}
.block-head h2 { font-family: var(--mono); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* about */
.about p {
  font-family: var(--disp);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.3vw, 2.7rem);
  line-height: 1.18; letter-spacing: -.02em;
  text-wrap: balance; max-width: 22ch;
}
.about p .dim { color: var(--faint); }
.about .small { font-family: var(--sans); font-weight: 400; font-size: clamp(1rem,1.3vw,1.15rem); line-height: 1.6; color: var(--muted); max-width: 46ch; margin-top: clamp(1.75rem,4vh,2.75rem); }

/* capabilities — 2x2 quadrants */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1.1rem;
  min-height: clamp(220px, 26vh, 300px);
  transition: background .4s var(--ease), color .35s var(--ease);
}
.cell:hover { background: var(--accent); color: var(--on-accent); }
.cell .ctop { display: flex; align-items: baseline; justify-content: space-between; }
.cell .cnum { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; color: var(--muted); transition: color .35s var(--ease); }
.cell:hover .cnum { color: var(--on-accent); }
.cell h3 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; line-height: 1; }
.cell ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; margin-top: auto; }
.cell li { font-family: var(--sans); font-size: clamp(.92rem,1.1vw,1.02rem); font-weight: 500; color: var(--muted); transition: color .35s var(--ease); display: flex; gap: .6rem; align-items: baseline; }
.cell:hover li { color: color-mix(in oklch, var(--on-accent) 78%, transparent); }
.cell li::before { content: ""; width: 5px; height: 5px; margin-top:.55em; flex: none; background: currentColor; opacity: .5; }

/* now */
.now p {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; max-width: 24ch;
}
.now p .acc { font-weight: 800; }
.now p .dim { color: var(--faint); }

/* footer */
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: baseline; padding: clamp(2rem,5vh,3.5rem) 0; }
.foot .mono { color: var(--faint); }
.foot a.mono:hover { color: var(--ink); }

/* ============================================================
   REVEAL
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .id-name .ln > span { transform: translateY(108%); transition: transform 1s var(--ease); }
  .loaded .id-name .ln > span { transform: translateY(0); }
  .loaded .id-name .ln:nth-child(2) > span { transition-delay: .07s; }
  .panel-mid .id-role, .panel-foot, .panel-top { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .loaded .panel-top { opacity:1; transform:none; transition-delay:.1s; }
  .loaded .id-role { opacity:1; transform:none; transition-delay:.45s; }
  .loaded .panel-foot { opacity:1; transform:none; transition-delay:.6s; }

  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .shell { grid-template-columns: 1fr; }
  .panel { position: relative; height: auto; min-height: 92svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding-top: clamp(1rem,3vh,2rem); }
}
@media (max-width: 560px) {
  .quad { grid-template-columns: 1fr; }
}
