/* ══════════════════════════════════════════════════════
   OZAS.UK — Portfolio Styles
   Font: Syne (display) + DM Mono (code)
   Accent: Electric Lime #CAFF00
══════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { max-width: 100%; display: block; }

/* ══════════════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 800;
  letter-spacing: -0.045em;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.5, 0, 0.75, 0), visibility 0.55s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: plIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(0.1s + var(--pi) * 0.07s) forwards;
}

@keyframes plIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 10001;
  width: 0%;
  transition: width 0.08s linear;
  transform-origin: left;
  box-shadow: 0 0 12px var(--accent), 0 0 24px rgba(202,255,0,0.4);
}

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:      #070707;
  --bg2:     #0d0d0d;
  --bg3:     #141414;
  --border:  rgba(255,255,255,0.07);
  --bh:      rgba(255,255,255,0.14);
  --text:    #efefef;
  --muted:   #505050;
  --muted2:  #303030;

  --accent:  #CAFF00;
  --adim:    rgba(202,255,0,0.10);
  --aborder: rgba(202,255,0,0.25);
  --green:   #4ade80;

  --D: 'Syne', sans-serif;
  --M: 'DM Mono', monospace;

  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --easein:  cubic-bezier(0.5, 0, 0.75, 0);
}

/* ── Light mode ─────────────────────────────────────── */
html.light-mode {
  --bg:      #f0f0eb;
  --bg2:     #fafaf6;
  --bg3:     #ededea;
  --border:  rgba(0,0,0,0.08);
  --bh:      rgba(0,0,0,0.15);
  --text:    #0d0d0d;
  --muted:   #696969;
  --muted2:  #c0c0c0;
}

/* Small lime text → readable dark olive on light bg */
html.light-mode .hero-label,
html.light-mode .hero-role em,
html.light-mode .ap-idx,
html.light-mode .section-num { color: #4d6600; text-shadow: none; }

html.light-mode .blink-dot { background: #4d6600; box-shadow: none; }
html.light-mode .live-dot  { box-shadow: none; }

/* Suppress lime glows that look bad on light bg */
html.light-mode .logo-accent        { text-shadow: none; }
html.light-mode .price-val          { text-shadow: none; }
html.light-mode .footer-h span      { text-shadow: none; }
html.light-mode .about-quote        { box-shadow: none; }
html.light-mode .scroll-progress    { box-shadow: 0 0 6px var(--accent); }
html.light-mode .log-entry:last-child::before { animation: none; box-shadow: none; }

/* Nav backdrop on light */
html.light-mode #nav.stuck {
  background: rgba(240,240,235,0.94);
  border-color: var(--border);
}

/* Card shadows on light */
html.light-mode .proj-featured:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: var(--bh);
}

/* Vouch frame - replace glow with shadow */
html.light-mode .vouch-frame {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Base ───────────────────────────────────────────── */
html {
  scroll-padding-top: 72px;
  overflow-x: hidden;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--D);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Film-grain noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }

/* ══════════════════════════════════════════════════════
   CURSOR
══════════════════════════════════════════════════════ */
.c-cross {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  transition: transform 0.16s var(--ease), opacity 0.2s;
}

.c-cross::before,
.c-cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.c-cross::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.c-cross::after {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

body.cursor-hover .c-cross {
  transform: translate(-50%, -50%) rotate(45deg) scale(1.6);
}


/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.theme-toggle:hover {
  border-color: var(--bh);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

html.light-mode .theme-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.theme-toggle svg { width: 15px; height: 15px; display: block; }
.theme-toggle .icon-sun { display: none; }
html.light-mode .theme-toggle .icon-sun  { display: block; }
html.light-mode .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.4s, border-color 0.4s;
}

#nav.stuck {
  padding: 14px 0;
  background: rgba(7,7,7,0.90);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-color: var(--border);
}

.nav-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.logo-accent {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(202,255,0,0.5);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-right a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

.nav-right a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 5px;
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease) !important;
}

.nav-cta:hover {
  border-color: var(--bh) !important;
  background: rgba(255,255,255,0.04);
}

.nav-gh {
  color: var(--muted) !important;
  display: flex;
  align-items: center;
  transition: color 0.2s !important;
}

.nav-gh:hover { color: var(--text) !important; }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Ambient lime glow bloom */
#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -15%;
  width: 90%;
  height: 140%;
  background: radial-gradient(ellipse at 38% 55%, rgba(202,255,0,0.07) 0%, rgba(202,255,0,0.022) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: heroAmbient 12s ease-in-out infinite alternate;
}

/* Subtle horizontal scanlines */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.011) 1px, transparent 1px);
  background-size: 100% 72px;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 65%, transparent 100%);
}

@keyframes heroAmbient {
  0%   { transform: translate(0, 0) scale(1);       opacity: 1; }
  40%  { transform: translate(3%, -5%) scale(1.07); opacity: 0.75; }
  100% { transform: translate(-3%, 4%) scale(0.96); opacity: 1; }
}

.hero-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(88px, 15vw, 120px) clamp(20px, 4vw, 48px) clamp(72px, 10vw, 100px);
  position: relative;
  z-index: 2;
}

/* ── Label ── */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--M);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 52px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.6s var(--ease) 0.15s forwards;
}

.blink-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(202,255,0,0.7), 0 0 16px rgba(202,255,0,0.3);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* ── Name ── */
.hero-name {
  font-size: clamp(64px, 18vw, 210px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin-bottom: 32px;
  white-space: nowrap;
}

.ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: charUp 0.7s var(--ease) calc(0.35s + var(--i) * 0.08s) forwards;
  transition: text-shadow 0.35s var(--ease);
}

.ch:hover {
  text-shadow:
    0 0 28px rgba(202,255,0,0.55),
    0 0 70px rgba(202,255,0,0.2),
    0 0 130px rgba(202,255,0,0.08);
}

@keyframes charUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Role ── */
.hero-role {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(13px, 1.8vw, 17px);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.82s forwards;
}

.hero-role em {
  font-style: normal;
  color: var(--accent);
}

.rdot { color: var(--muted2); }

/* ── Tagline ── */
.hero-line {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(239,239,239,0.55);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 68px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.0s forwards;
}

.hero-line strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Stats ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 56px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.2s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stat-n {
  font-size: clamp(22px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stat-l {
  font-family: var(--M);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
}

/* ── Scroll hint ── */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 1.4s forwards;
}

.scroll-track {
  width: 24px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px;
}

.scroll-thumb {
  width: 3px;
  height: 9px;
  background: var(--accent);
  border-radius: 100px;
  animation: scrollBounce 2.2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(202,255,0,0.6);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  60%       { transform: translateY(16px); opacity: 0.2; }
}

.scroll-hint span {
  font-family: var(--M);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Ghost name ── */
.hero-ghost {
  position: absolute;
  right: -2%;
  bottom: -10%;
  font-size: clamp(120px, 34vw, 480px);
  font-weight: 800;
  letter-spacing: -0.055em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.022);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.25s forwards;
  z-index: 0;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   MARQUEE
══════════════════════════════════════════════════════ */
.marquee-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
}

.marquee-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}

.marquee-fade.left  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee-fade.right { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.marquee-track { overflow: hidden; }

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--M);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-inner em  { font-style: normal; color: var(--muted2); }
.marquee-inner span { transition: color 0.2s, text-shadow 0.2s; }
.marquee-inner span:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(202,255,0,0.45);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════
   PRINCIPLES
══════════════════════════════════════════════════════ */
.principles {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.ap-item {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

/* Bottom glow on hover */
.ap-item::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 120%;
  height: 90%;
  background: radial-gradient(ellipse at 50% 100%, rgba(202,255,0,0.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
  z-index: 0;
}

/* Top border sweep */
.ap-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  box-shadow: 0 0 8px rgba(202,255,0,0.6);
}

.ap-item > * { position: relative; z-index: 1; }

.ap-item:hover { background: var(--bg2); }
.ap-item:hover::after { transform: scaleX(1); }
.ap-item:hover::before { opacity: 1; }

.ap-idx {
  font-family: var(--M);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(202,255,0,0.35);
}

.ap-item h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ap-item p {
  font-size: 14px;
  color: rgba(239,239,239,0.48);
  line-height: 1.75;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════
   SECTION SHELL
══════════════════════════════════════════════════════ */
#work  { padding: 100px 0; }
#about { padding: 100px 0; border-top: 1px solid var(--border); }

.section-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.section-num {
  font-family: var(--M);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-shadow: 0 0 16px rgba(202,255,0,0.45);
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════
   FEATURED PROJECT
══════════════════════════════════════════════════════ */
.proj-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  transition: border-color 0.35s, box-shadow 0.5s var(--ease);
}

.proj-featured:hover {
  border-color: rgba(202,255,0,0.22);
  box-shadow:
    0 0 0 1px rgba(202,255,0,0.08),
    0 24px 64px rgba(0,0,0,0.55),
    0 0 80px rgba(202,255,0,0.05),
    0 0 160px rgba(202,255,0,0.02);
}

/* Left column */
.proj-left {
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg2);
  transition: background 0.3s;
}

.proj-featured:hover .proj-left { background: var(--bg3); }

/* Right column */
.proj-right {
  border-left: 1px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.proj-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(202,255,0,0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
}

.proj-featured:hover .proj-right::before { opacity: 1; }

/* ── Project shared ── */
.proj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.proj-tech {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.proj-badge {
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
}

.proj-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(74,222,128,0.35);
  color: var(--green);
  background: rgba(74,222,128,0.05);
}

.live-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: blink 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
}

.proj-title {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.proj-title.sm {
  font-size: clamp(22px, 2.6vw, 34px);
}

.proj-desc {
  font-size: 15px;
  color: rgba(239,239,239,0.52);
  line-height: 1.78;
  font-weight: 400;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.proj-tags span {
  font-family: var(--M);
  font-size: 10px;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.proj-tags span:hover {
  border-color: var(--aborder);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(202,255,0,0.12), inset 0 0 8px rgba(202,255,0,0.04);
}

/* Pricing */
.proj-pricing {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-opt {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.price-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(202,255,0,0.35);
}

.price-period {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
}

.price-or {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted2);
}

/* Link */
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  align-self: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.2s, gap 0.25s var(--ease), text-shadow 0.3s;
}

.proj-link:hover {
  border-color: var(--accent);
  gap: 18px;
  text-shadow: 0 0 20px rgba(202,255,0,0.2);
}

.link-arrow { transition: transform 0.25s var(--ease); }
.proj-link:hover .link-arrow { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════
   ADRENALIN SCREENSHOTS
══════════════════════════════════════════════════════ */
.adr-screenshots {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.adr-img {
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.adr-img-main {
  width: 100%;
}

.adr-img-sub {
  width: 48%;
  margin-left: auto;
  margin-top: -12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.65);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.adr-screenshots:hover .adr-img-main {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 40px rgba(202,255,0,0.04);
}

.adr-screenshots:hover .adr-img-sub {
  transform: translateY(4px);
}

/* ══════════════════════════════════════════════════════
   PROJECT ROW (smaller cards)
══════════════════════════════════════════════════════ */
/* Other work list */
.other-work {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.ow-label {
  font-family: var(--M);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ow-list { display: flex; flex-direction: column; }

.ow-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
}

/* Left accent indicator on hover */
.ow-row::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s var(--ease);
  box-shadow: 0 0 8px rgba(202,255,0,0.5);
}

.ow-row:hover::before { transform: scaleY(1); }

.ow-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  transition: color 0.2s;
}

.ow-row:hover .ow-name { color: var(--accent); }

.ow-desc {
  font-size: 13px;
  color: rgba(239,239,239,0.42);
  line-height: 1.6;
}

.ow-link {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color 0.2s, text-shadow 0.2s;
}

.ow-link:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(202,255,0,0.4);
}

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
.about-log {
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.log-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 40px;
  padding: 28px 0 28px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.log-entry::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.3s;
}

.log-entry:hover::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(202,255,0,0.6), 0 0 24px rgba(202,255,0,0.25);
}

/* Current / last entry — always lit, pulsing */
.log-entry:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
  animation: dotPulse 2.8s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(202,255,0,0.5), 0 0 14px rgba(202,255,0,0.2);
  }
  50% {
    box-shadow: 0 0 14px rgba(202,255,0,0.9), 0 0 28px rgba(202,255,0,0.4), 0 0 48px rgba(202,255,0,0.15);
  }
}

.log-year {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-top: 5px;
}

.log-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.log-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.log-desc {
  font-size: 14px;
  color: rgba(239,239,239,0.48);
  line-height: 1.78;
  max-width: 600px;
}

/* About footer - take + quote */
.about-foot {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.about-take {
  font-size: 14px;
  color: rgba(239,239,239,0.36);
  line-height: 1.9;
  border-left: 2px solid var(--muted2);
  padding-left: 18px;
}

.about-quote {
  margin-top: 28px;
  font-family: var(--M);
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  box-shadow: -6px 0 20px rgba(202,255,0,0.1);
}

/* ══════════════════════════════════════════════════════
   FOOTER / CONTACT
══════════════════════════════════════════════════════ */
footer#contact {
  border-top: 1px solid var(--border);
  padding: 100px 0 64px;
}

.footer-cta {
  margin-bottom: 80px;
}

.footer-cta .section-num {
  display: block;
  margin-bottom: 22px;
}

.footer-h {
  font-size: clamp(36px, 10vw, 128px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin-bottom: 28px;
}

.footer-h span {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(202,255,0,0.4), 0 0 80px rgba(202,255,0,0.15);
}

.footer-cta p {
  font-size: 18px;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  padding: 18px 38px;
  border-radius: 6px;
  letter-spacing: -0.02em;
  transition: background 0.2s, gap 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

.mail-btn:hover {
  background: var(--accent);
  gap: 22px;
  box-shadow:
    0 0 0 1px rgba(202,255,0,0.35),
    0 16px 48px rgba(202,255,0,0.22),
    0 4px 12px rgba(202,255,0,0.12);
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-bar > span {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
}

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════════
   VOUCHES
══════════════════════════════════════════════════════ */
.vouches {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.vouches-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Frame shell */
.vouch-frame {
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  border: 1px solid rgba(202,255,0,0.12);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(202,255,0,0.07),
    0 4px 40px rgba(0,0,0,0.65),
    0 0 60px rgba(202,255,0,0.055),
    0 0 120px rgba(202,255,0,0.02);
  position: relative;
}

/* Fake title bar */
.vouch-frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.vfb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: inline-block;
}

.vfb-dot:first-child  { background: rgba(255,95,87,0.5); }
.vfb-dot:nth-child(2) { background: rgba(255,189,46,0.5); }
.vfb-dot:nth-child(3) { background: rgba(39,201,63,0.5); }

.vfb-label {
  font-family: var(--M);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-left: 6px;
}

.vouch-video {
  width: 100%;
  display: block;
  background: #000;
}

.vouch-caption {
  font-family: var(--M);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════ */

/* Expand hint that appears on hover */
.lightbox-trigger {
  position: relative;
}

.lightbox-trigger::after {
  content: 'EXPAND';
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  font-family: var(--M);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.6);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-trigger:hover::after {
  opacity: 1;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.lightbox-overlay.active {
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 32px 96px rgba(0,0,0,0.65),
    0 0 40px rgba(202,255,0,0.06);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-content video,
.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9001;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.1);
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .proj-featured {
    grid-template-columns: 1fr;
  }
  .proj-right { display: none; }
}

@media (max-width: 900px) {
  .hero-stats      { gap: 36px; }
  .ow-row          { grid-template-columns: 1fr auto; gap: 20px; }
  .ow-row .ow-desc { display: none; }
  .ap-grid         { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Safer full-screen hero on iOS Safari */
  #hero { min-height: 100svh; }

  /* Hero vertical rhythm */
  .hero-stats  { flex-wrap: wrap; justify-content: flex-start; gap: 20px; margin-bottom: 52px; }
  .stat-sep    { display: none; }
  .hero-ghost  { display: none; }

  /* Section vertical padding */
  #work, #about  { padding: 64px 0; }
  .principles    { padding: 40px 0; }
  .vouches       { padding: 64px 0; }
  footer#contact { padding: 64px 0 40px; }

  /* Section head — prevent overflow */
  .section-head  { margin-bottom: 36px; gap: 14px; flex-wrap: wrap; }
  .section-head h2 { font-size: clamp(28px, 8vw, 42px); word-break: break-word; }

  /* Footer CTA */
  .footer-cta    { margin-bottom: 52px; }
  .footer-cta p  { font-size: 16px; }

  /* Nav — prevent items from shrinking */
  #nav           { padding: 16px 0; }
  .nav-right     { gap: 12px; }
  .nav-cta       { white-space: nowrap; padding: 6px 14px; font-size: 12px; }

  /* Cards */
  .proj-left, .ap-item { padding: 24px; }

  /* Project title — prevent overflow */
  .proj-title    { font-size: clamp(28px, 7vw, 38px); }

  /* Pricing — wrap on narrow */
  .proj-pricing  { flex-wrap: wrap; gap: 10px; }

  /* Other work rows — stack on small */
  .ow-row        { grid-template-columns: 1fr; gap: 4px; }
  .ow-row .ow-desc { display: block; }
  .ow-row::before  { display: none; }

  /* Timeline */
  .log-entry     { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .log-year      { font-size: 10px; }

  /* About foot */
  .about-foot    { margin-top: 40px; padding-top: 32px; }

  /* Footer headline — prevent overflow on narrow screens */
  .footer-h      { font-size: clamp(28px, 8.5vw, 44px); line-height: 0.95; }
  .mail-btn      { font-size: 16px; padding: 14px 28px; }

  /* Footer bar — stack on mobile */
  .footer-bar    { flex-direction: column; gap: 16px; align-items: flex-start; }

  /* Vouches frame */
  .vouch-frame   { border-radius: 8px; }

  /* Hide cursor crosshair on touch */
  .c-cross       { display: none; }

  /* Disable heavy animations on mobile for battery */
  #hero::before  { animation: none; }
  #hero::after   { display: none; }
  body::after    { display: none; }
}

@media (max-width: 400px) {
  .nav-right a:not(.nav-cta):not(.nav-gh) { display: none; }
  .nav-right     { gap: 10px; }
  .hero-wrap     { padding-top: 72px; }

  /* Tighter section head */
  .section-head h2 { font-size: clamp(24px, 7vw, 32px); }

  /* Hero name — prevent overflow on tiny screens */
  .hero-name     { font-size: clamp(48px, 16vw, 64px); }

  /* Stats — stack vertically, centered, bigger */
  .hero-stats    { flex-direction: column; align-items: center; gap: 24px; text-align: center; width: 100%; }
  .stat          { align-items: center; }
  .stat-n        { font-size: 36px; }
  .stat-l        { font-size: 11px; }
}

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ch     { opacity: 1; transform: none; }
  .hero-label, .hero-role, .hero-line,
  .hero-stats, .scroll-hint { opacity: 1; transform: none; }
  .marquee-inner { animation: none !important; }
}

/* ── Keyboard focus ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Suppress focus ring on mouse clicks */
:focus:not(:focus-visible) {
  outline: none;
}
