/* === Portfolio · Direction B === Electric blue paper, white ink */

:root {
  --paper: #3D33FF;
  --paper-deep: #2A22DB;
  --ink: #FFFFFF;
  --ink-fixed: #1A1A1A;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.36);
  --highlight: #FFEE00;
  --pulse: #1AFF6C;
  --hot: #FF2D87;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
.no-underline { text-decoration: none; }
.label-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.muted { color: var(--ink-soft); }

::selection { background: var(--highlight); color: var(--paper); }

/* ─── Top bar ───────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 50;
}
.topbar .left { display: flex; align-items: center; gap: 14px; }
.topbar .left .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.topbar nav { display: flex; gap: 26px; }
.topbar a { text-decoration: none; }
.topbar a:hover { font-style: italic; }
.topbar .available {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1.2px solid var(--ink);
  border-radius: 999px;
}
.topbar .available::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--pulse);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(26,255,108,0.25);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,255,108,0.25); }
  50%      { box-shadow: 0 0 0 7px rgba(26,255,108,0.05); }
}

/* ─── Hero marquee ──────────────────────────────────── */
.marquee {
  padding: 56px 0 28px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(120px, 16vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee .track {
  display: inline-flex;
  animation: marquee 38s linear infinite;
}
.marquee .track span { padding: 0 28px; }
.marquee .track em { font-style: italic; font-weight: 500; color: var(--highlight); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Intro band ────────────────────────────────────── */
.intro {
  padding: 24px 40px 64px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  border-bottom: 1.5px solid var(--ink);
}
.intro h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.intro h2 b { font-weight: 800; font-style: normal; }
.intro h2 .accent {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-style: normal;
  color: var(--ink-fixed);
  padding: 0 8px;
}
.intro h2 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10%;
  bottom: 8%;
  background: var(--highlight);
  z-index: -1;
  transform: skewX(-8deg);
}
.intro .col h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.intro .col p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 38ch;
}
.intro .col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.intro .col ul li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.intro .col ul li:last-child { border-bottom: 0; }
.intro .col ul li span:last-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

/* Live ticker in vitals */
.vitals-live {
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: none;
}
.vitals-live .now-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 16px;
  border: 1.2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  min-height: 56px;
}
.vitals-live .now-row .pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  flex: 0 0 auto;
  align-self: center;
  animation: pulse 2.2s ease-in-out infinite;
}
.vitals-live .now-row .now-text {
  flex: 1; min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.vitals-live .now-row .now-text .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.vitals-live .clock {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 4px;
}
.vitals-live .clock .city {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.vitals-live .clock .time {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.vitals-live .years {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--highlight);
}
.vitals-live .years .label {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* fade transition for now ticker */
.now-fade-enter { opacity: 0; transform: translateY(8px); }
.now-fade-active { opacity: 1; transform: translateY(0); transition: opacity .35s, transform .35s; }
.now-fade-exit { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s; }

/* Languages chip row */
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

/* ─── Section heads ─────────────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 96px 40px 28px;
  gap: 40px;
}
.section-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.section-head h3 em { font-weight: 500; font-style: italic; color: var(--highlight); }
.section-head .meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  line-height: 1.5;
}

/* ─── Work list ─────────────────────────────────────── */
.work {
  position: relative;
  padding: 56px 40px 24px;
  min-height: 1000px;
}
.work .legend {
  display: grid;
  grid-template-columns: 80px 1fr 360px 80px;
  gap: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.row {
  display: grid;
  grid-template-columns: 80px 1fr 360px 80px;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding-left .35s cubic-bezier(.2,.7,.3,1), background .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
}
.row:hover { padding-left: 24px; }
.row[data-active="true"] {
  background: rgba(255,255,255,0.06);
  border-color: var(--row-frame);
}
.row .num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.row .title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  transition: color .25s, transform .35s;
}
.row .title em { font-style: italic; font-weight: 500; }
.row[data-active="true"] .title { color: var(--row-frame); }
.row .meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.5;
}
.row .meta .client { color: var(--ink); font-weight: 500; }
.row .yr {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-align: right;
}
.row .arrow {
  display: inline-block;
  margin-left: 14px;
  transform: translateX(-4px);
  opacity: 0;
  transition: opacity .25s, transform .35s;
}
.row[data-active="true"] .arrow { opacity: 1; transform: translateX(0); }

/* Floating preview card */
.float-preview {
  position: absolute;
  right: 40px;
  width: 320px;
  padding: 14px;
  border-radius: 22px;
  background: var(--prev-frame, transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: opacity .35s, transform .35s, top .55s cubic-bezier(.2,.7,.3,1), background .25s;
  z-index: 5;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.float-preview.on {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.float-preview .thumb {
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.float-preview .label {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 4px 0;
  color: var(--prev-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Project thumb (placeholder visual) ────────────── */
.project-thumb {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}
.project-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 32%, var(--thumb-accent, #fff) 0%, transparent 38%),
    radial-gradient(circle at 78% 72%, var(--thumb-accent2, #fff) 0%, transparent 44%),
    var(--thumb-bg, #999);
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.18) 1px, transparent 0);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  opacity: 0.35;
}
.project-thumb > .thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  color: var(--thumb-ink, #fff);
  z-index: 1;
  letter-spacing: -0.04em;
  text-align: center;
  padding: 8%;
  font-size: 5vw;
  mix-blend-mode: difference;
  filter: contrast(1.1);
}

/* ─── Awards table ──────────────────────────────────── */
.awards { padding: 0 40px 24px; }
.awards table { width: 100%; border-collapse: collapse; }
.awards th, .awards td {
  text-align: left;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.awards th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
}
.awards td {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.awards td.yr {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  width: 80px;
}
.awards td.cat {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0;
}
.awards td.proj {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  letter-spacing: 0;
}

/* ─── Clients cloud ─────────────────────────────────── */
.clients {
  padding: 0 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}
.clients .chip {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: -0.02em;
  padding: 6px 18px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: background .25s, color .25s, transform .25s;
  cursor: default;
}
.clients .chip:hover {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-1.5deg);
}
.clients .chip:nth-child(7n+1):hover { background: var(--highlight); color: var(--ink-fixed); }
.clients .chip:nth-child(7n+3):hover { background: var(--hot); color: var(--ink); }
.clients .chip:nth-child(7n+5):hover { background: var(--pulse); color: var(--ink-fixed); }

/* ─── Press list ────────────────────────────────────── */
.press { padding: 0 40px 24px; }
.press .item {
  display: grid;
  grid-template-columns: 200px 1fr 90px 32px;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left .25s;
}
.press .item:hover { padding-left: 12px; }
.press .item .outlet {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.press .item .title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.press .item .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.press .item .arrow { text-align: right; }

/* ─── About long ─────────────────────────────────────── */
.about {
  padding: 0 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.about .bigtext {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.about .bigtext b {
  font-weight: 800;
  font-style: normal;
  color: var(--ink-fixed);
  background: var(--highlight);
  padding: 0 6px;
  border-radius: 2px;
}
.about .body p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 56ch;
  color: var(--ink);
}
.about .body p:first-child::first-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: 80px;
  float: left;
  line-height: 0.85;
  padding: 4px 12px 0 0;
  color: var(--highlight);
}

/* ─── Contact band ───────────────────────────────────── */
.contact {
  margin: 96px 40px 0;
  padding: 80px 56px;
  background: #0A0A14;
  color: var(--ink);
  border-radius: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .contact { grid-template-columns: 1fr; gap: 36px; padding: 64px 40px; }
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(26,255,108,0.22) 0%, transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(255,45,135,0.22) 0%, transparent 35%);
  pointer-events: none;
}
.contact h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}
.contact h3 em { font-style: italic; font-weight: 500; color: var(--highlight); }
.contact .right {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 24px;
  position: relative; z-index: 1;
}
.contact .right p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 42ch;
  color: rgba(255,255,255,0.7);
}
.contact .email {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--pulse);
  align-self: flex-start;
  word-break: break-word;
  max-width: 100%;
}
.contact .email:hover { color: var(--pulse); }
.contact .socials {
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact .socials a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.contact .socials a:hover { border-color: var(--pulse); color: var(--pulse); }

/* ─── Footer ────────────────────────────────────────── */
.footer {
  margin-top: 64px;
  padding: 28px 40px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1.5px solid var(--ink);
}
.footer .colophon { display: flex; gap: 22px; }

/* ─── Cursor ────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width .25s, height .25s, background .25s;
  transform: translate(-50%, -50%);
}
.cursor-dot.expanded {
  width: 56px;
  height: 56px;
  background: var(--highlight);
}
@media (max-width: 900px) { .cursor-dot { display: none; } }

/* ─── Scroll reveal ─────────────────────────────────── */
/* Content visible by default. Opt into animation only when JS confirms. */
.reveal { opacity: 1; transform: none; transition: opacity .8s ease-out, transform .8s ease-out; }
body.js-ready .reveal { opacity: 0; transform: translateY(24px); }
body.js-ready .reveal.on { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Particle portrait (animated headshot in the vitals column) ─── */
.particle-portrait {
  display: block;
  margin: 0 0 24px;
  width: 200px;
  height: 280px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 1.5px var(--line-strong) inset;
}
