/* Layout: a lit stage. Full-width name under a live WebGL lamp, a Canals-style project viewer, then about and contact in the same oversized type. Single committed dark world. */
@property --proj { syntax: "<color>"; inherits: true; initial-value: #5fb3a8; }
:root {
  --bg: #131313;          /* near-black, the unlit room */
  --bg-2: #1b1b1b;        /* raised surface */
  --ink: #e9e6df;         /* lit paper white */
  --muted: #8f8c85;       /* grey */
  --line: #2b2a28;        /* hairlines */
  --amber: #5fb3a8;       /* key light */
  --violet: #8aa3c7;      /* cool rim light, Tamal-style contrast */
  --display: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mono-label b { color: var(--amber); font-weight: 500; }

/* ---------- crosshair cursor (fine pointers only) ---------- */
.xh { position: fixed; inset: 0; pointer-events: none; z-index: 100; display: none; opacity: 0; }
.xh.live { opacity: 1; }
@media (pointer: fine) {
  .xh { display: none; }
  body.has-xh, body.has-xh a, body.has-xh button { cursor: none; }
}
.xh-plus { position: absolute; width: 22px; height: 22px; left: -11px; top: -11px; margin: -11px 0 0 -11px; }
.xh-plus::before, .xh-plus::after { content: ""; position: absolute; background: var(--ink); }
.xh-plus::before { left: 10px; top: 0; width: 2px; height: 22px; transform-origin: 1px 11px; }
.xh-plus::after { top: 10px; left: 0; height: 2px; width: 22px; transform-origin: 11px 1px; }
.xh.hot .xh-plus::before, .xh.hot .xh-plus::after { transform: rotate(45deg) scale(1.3); }
.xh-plus::before, .xh-plus::after { transition: transform .2s ease; }
.xh-tag { position: absolute; left: 26px; top: 24px; font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(var(--bg) 0%, color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.mark { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-decoration: none; }
.mark span { color: var(--amber); }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { font-size: 13px; text-decoration: none; color: var(--muted); transition: color .2s; }
.top nav a:hover { color: var(--ink); }
.cv {
  font-size: 13px; text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.cv:hover { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.lang { display: flex; gap: 2px; margin-left: 4px; }
.lang button { font: inherit; font-size: 12px; letter-spacing: .08em; color: var(--muted); background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 10px; cursor: pointer; transition: color .2s, border-color .2s; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--line); }
@media (max-width: 640px) { .top nav { display: none; } .lang { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(620px, 94svh); display: grid; align-content: end; overflow: hidden; isolation: isolate; }
#lamp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-inner { padding: 120px var(--gutter) clamp(28px, 5vw, 56px); display: grid; gap: clamp(20px, 3vw, 36px); }
.name-wrap { position: relative; }
.name, .name-shadow {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 14vw, 15.5rem); line-height: 0.86; letter-spacing: 0.01em; margin: 0;
}
.name span, .name-shadow span { display: block; }
.name {
  position: relative;
  color: transparent;
  background-image: radial-gradient(circle at var(--lx, 70%) var(--ly, 20%),
      #f4f1ea 0px, #c3e3de 8vw, var(--amber) 18vw, #2f6b66 34vw, #24403e 56vw, #1f2f2e 85vw);
  -webkit-background-clip: text; background-clip: text;
}
.name-shadow {
  position: absolute; inset: 0; color: rgba(0,0,0,.6); filter: blur(12px);
  transform: translate(var(--sx, 0px), var(--sy, 0px)); pointer-events: none; user-select: none;
}
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; }
.role { font-family: var(--display); font-size: clamp(1.15rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.25; max-width: 30ch; }
.hero-foot p.intro { color: var(--muted); max-width: 46ch; }
.hud { font-family: var(--mono); font-size: 11px; color: var(--muted); display: grid; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud b { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } .hud { text-align: left; } }

/* ---------- section scaffolding ---------- */
section.block { padding: clamp(72px, 10vw, 140px) var(--gutter); border-top: 1px solid var(--line); }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- project viewer ---------- */
.work { --proj: #5fb3a8; transition: --proj .9s ease; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.toggle button {
  font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; padding: 6px 14px; border-radius: 999px;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.stage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.stage > * { min-width: 0; }
.info { display: grid; gap: 26px; align-content: space-between; }
.counter { display: flex; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }
.counter .now { font-family: var(--display); font-size: clamp(3rem, 6vw, 5rem); line-height: .9; color: var(--proj); }
.counter .of { font-size: 13px; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 44px); list-style: none; padding: 0; }
.strip button {
  width: 100%; text-align: left; font: inherit; color: var(--muted); background: none; border: 0; padding: 14px 0 0; position: relative;
  display: grid; gap: 4px; transition: color .25s;
}
.strip button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.strip button .bar { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--c); }
.strip button[aria-selected="true"] .bar { width: calc(var(--p, 1) * 100%); }
.strip button .sn { font-size: 11px; font-variant-numeric: tabular-nums; }
.strip button .st { font-family: var(--display); font-weight: 500; font-size: 15px; line-height: 1.2; }
.strip button:hover, .strip button[aria-selected="true"] { color: var(--ink); }
.strip button[aria-selected="true"] .sn { color: var(--c); }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; } }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.next-btn { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-align: right; }
.next-btn .lbl { display: grid; gap: 2px; }
.next-btn small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: none; }
.ptitle {
  font-size: clamp(2.2rem, 5.4vw, 4.8rem); text-transform: uppercase; letter-spacing: 0.18em; line-height: 1;
  margin-right: -0.18em;
}
.fade { transition: opacity .28s ease, transform .28s ease; }
.swapping .fade { opacity: 0; transform: translateY(8px); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.meta div { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.meta dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 0; font-size: 14px; }
.pdesc { color: var(--muted); max-width: 52ch; font-size: 15px; }
.explore {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--display); font-weight: 500;
  font-size: 18px; letter-spacing: .2em; text-transform: uppercase; width: fit-content;
}
.explore .dot { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--proj); display: grid; place-items: center; transition: background .25s, color .25s; flex-shrink: 0; }
.explore .dot svg { width: 16px; height: 16px; }
.explore:hover .dot { background: var(--proj); color: var(--bg); }
.media { position: relative; border-radius: 4px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; max-width: 100%; }
#film { width: 100%; height: 100%; display: block; }
.media .cap { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: rgba(233,230,223,.7); }
@media (max-width: 600px) { .media .cap { display: none; } }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } .media { order: -1; } }

.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s, color .25s;
}
.plist li a:hover { padding-left: 12px; color: var(--c); }
.plist .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.plist .t { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.plist .s { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .plist li a { grid-template-columns: 40px minmax(0, 1fr) 20px; } .plist .s { grid-column: 2; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.about h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.08; letter-spacing: -0.01em; }
.about h2 em { font-style: normal; color: var(--amber); }
.about .side { display: grid; gap: 28px; align-content: start; }
.about .side p { color: var(--muted); max-width: 52ch; }
.seek { border: 1px solid var(--line); border-radius: 4px; padding: 22px; display: grid; gap: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--amber) 9%, transparent), transparent 60%); }
.seek h3 { font-size: 20px; font-weight: 500; }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; font-family: var(--display); font-size: 18px; font-weight: 500; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- contact ---------- */
.contact .big {
  font-size: clamp(3.2rem, 13vw, 12rem); text-transform: uppercase; line-height: .88; letter-spacing: .01em;
  color: var(--ink);
}
.c-row { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.mail { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--amber); overflow-wrap: anywhere; }
.copy { font: inherit; font-size: 12px; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.copy:hover { border-color: var(--amber); }
.socials { display: flex; gap: 24px; margin-left: auto; }
.socials a { text-decoration: none; color: var(--muted); }
.socials a:hover { color: var(--ink); }
footer { padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .fade, .work, .plist li a, .xh-plus { transition: none !important; }
}
