/* =================================================================
   Ghassen.Lab — dark developer-portfolio theme
   Near-black navy, electric-blue accent, terminal/blueprint motifs.
   ================================================================= */

:root {
  --bg:        #070a0f;
  --bg-2:      #0a0e16;
  --bg-3:      #0f1622;
  --bg-4:      #131d2c;
  --line:      rgba(159, 176, 194, 0.14);
  --line-2:    rgba(159, 176, 194, 0.26);
  --text:      #e7eef7;
  --muted:     #9fb0c2;
  --muted-2:   #64758a;
  --accent:    #2e8cff;
  --accent-2:  #74b4ff;
  --green:     #3ddc84;
  --amber:     #ffd27a;
  --red:       #ff5f57;
  --yellow:    #febc2e;
  --glow:      rgba(46, 140, 255, 0.5);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 60px);
  --maxw: 1500px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; }
em { font-style: normal; color: var(--accent); }

/* backdrop */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 8%, rgba(46,140,255,0.16), transparent 70%),
    radial-gradient(40% 30% at 85% 30%, rgba(61,220,132,0.06), transparent 70%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
}

/* ---------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 24px; height: 24px; color: var(--accent); display: inline-flex; }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 0.95rem; }
.brand-name .dot { color: var(--accent); }

.site-nav { display: flex; gap: 26px; justify-self: center; }
.site-nav a {
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); position: relative; padding-bottom: 3px;
  transition: color 0.25s;
}
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

.header-meta { display: flex; align-items: center; gap: 14px; justify-self: end; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.btn-dash {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text);
  padding: 8px 13px; border: 1px solid var(--line-2); border-radius: 8px;
  transition: all 0.25s var(--ease);
}
.btn-dash:hover { border-color: var(--accent); color: var(--accent); background: rgba(46,140,255,0.08); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) var(--gutter) clamp(40px, 6vw, 80px);
  min-height: calc(100svh - 58px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.float-card {
  position: absolute; z-index: 1; width: 260px;
  background: color-mix(in srgb, var(--bg-3) 88%, transparent);
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.float-card.blueprint { top: 8%; left: max(var(--gutter), 3%); animation: floaty 7s var(--ease) infinite; }
.float-card.terminal  { top: 12%; right: max(var(--gutter), 3%); animation: floaty 7s var(--ease) infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
.fc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted-2);
  font-size: 0.62rem; letter-spacing: 0.04em;
}
.fc-dots i, .tl i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; background: var(--line-2); }
.tl i.r { background: var(--red); } .tl i.y { background: var(--yellow); } .tl i.g { background: var(--green); }
.tl { display: inline-flex; }
.bp-svg { width: 100%; display: block; }
.term-body {
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
  font-size: 0.66rem; line-height: 1.5; max-height: 168px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.term-body::-webkit-scrollbar { width: 5px; }
.term-body::-webkit-scrollbar-track { background: transparent; }
.term-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.term-body .l { color: var(--text); white-space: normal; word-break: break-word; }
.term-body b { color: var(--accent); font-weight: 700; }
.term-body .dim { color: var(--muted-2); }
.term-body .ok { color: var(--green); }
.cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-trigger {
  display: inline-flex; padding: 0 2px; margin: -2px; border-radius: 3px;
  transition: background 0.2s var(--ease);
}
.term-trigger:hover, .term-trigger:focus-visible { background: rgba(46,140,255,0.16); outline: none; }
.term-trigger:hover .cursor, .term-trigger:focus-visible .cursor { animation-duration: 0.6s; }
.term-line {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px 12px;
  font-size: 0.66rem; border-top: 1px solid var(--line); transition: background 0.2s var(--ease);
}
.term-line:focus-within { background: rgba(46,140,255,0.07); }
.term-line b { color: var(--accent); font-weight: 700; flex: none; }
.term-input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; padding: 0;
  color: var(--text); font-family: var(--font-mono); font-size: inherit; caret-color: var(--accent);
}
.term-input::placeholder { color: var(--muted-2); }
.term-input:focus ~ .cursor, .term-input:not(:placeholder-shown) ~ .cursor { display: none; }
@media (max-width: 1080px) { .float-card { display: none; } }

/* interactive terminal modal — opened from the hero card's cursor */
.term-modal { position: fixed; inset: 0; z-index: 300; display: grid; }
.term-modal[hidden] { display: none; }
.term-modal-scrim { position: absolute; inset: 0; background: rgba(3,5,9,0.72); backdrop-filter: blur(4px); animation: fade 0.3s ease; }
.term-modal-panel {
  position: relative; margin: auto; width: min(560px, 92vw);
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85); animation: pop 0.35s var(--ease);
}
.term-modal-head { padding: 12px 14px; }
.term-modal-close { color: var(--muted); padding: 4px 8px; border-radius: 6px; transition: all 0.2s; }
.term-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.term-modal-body { max-height: min(48vh, 420px); font-size: 0.82rem; padding: 18px; gap: 10px; }
.term-modal-panel .term-line { padding: 12px 18px 16px; font-size: 0.82rem; }
@media (max-width: 560px) { .term-modal-panel { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; } .term-modal-body { max-height: none; flex: 1; } }

.hero-center { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.34em; font-size: 0.72rem; margin-bottom: 22px; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3rem, 11vw, 9rem); line-height: 0.94; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff, #9fb4cc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-roles { color: var(--muted); margin-top: 20px; font-size: clamp(0.78rem, 1.4vw, 0.95rem); letter-spacing: 0.02em; }
.hero-roles s { color: var(--accent); text-decoration: none; margin: 0 6px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 13px 22px; border-radius: 10px; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: 1px solid var(--accent-2);
  box-shadow: 0 10px 30px -8px var(--glow);
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn-primary span { transition: transform 0.25s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px var(--glow); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 13px 22px; border-radius: 10px; color: var(--text);
  border: 1px solid var(--line-2); background: var(--bg-3);
  transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-chip {
  margin-top: 46px; display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg-3); color: var(--muted); font-size: 0.72rem;
}
.hero-chip b { color: var(--text); font-family: var(--font-display); }
.hero-chip b.green { color: var(--green); }
.hero-chip s { width: 1px; height: 14px; background: var(--line-2); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.62rem; display: inline-flex; align-items: center; gap: 8px; }
.scroll-cue span { animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ── Going Merry — sails the hero sea ─────────────────────── */
.merry {
  position: absolute; z-index: 1; pointer-events: none;
  right: max(var(--gutter), 2.5%); bottom: 7%;
  width: clamp(140px, 15vw, 240px); aspect-ratio: 666 / 375;
}
.merry-float { position: absolute; inset: 0; animation: merry-bob 4.6s ease-in-out infinite; }
.merry-ship {
  width: 100%; height: auto; display: block;
  transform-origin: 52% 80%;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.5));
  animation: merry-rock 6.4s ease-in-out infinite;
}
/* shimmering water the hull rides on (stays put so the ship floats on it) */
.merry-wake {
  position: absolute; left: 50%; bottom: 6%;
  width: 62%; height: 20px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 70%);
  filter: blur(6px); opacity: 0.5;
  animation: merry-shimmer 4.6s ease-in-out infinite;
}
@keyframes merry-bob     { 0%, 100% { transform: translateY(0); }   50% { transform: translateY(-11px); } }
@keyframes merry-rock    { 0%, 100% { transform: rotate(-3deg); }   50% { transform: rotate(3deg); } }
@keyframes merry-shimmer { 0%, 100% { opacity: 0.32; transform: translateX(-50%) scaleX(0.9); }
                           50%       { opacity: 0.58; transform: translateX(-50%) scaleX(1.12); } }
@media (max-width: 1080px) { .merry { width: clamp(104px, 24vw, 168px); right: 3%; bottom: 5%; } }
@media (max-width: 600px)  { .merry { width: 110px; right: 2%; bottom: 4%; opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) {
  .merry-float, .merry-ship, .merry-wake { animation: none; }
}

/* section scaffolding */
.section-label { color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }

/* ------------------------------------------------------------ work */
.work, .voyage { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 7vw, 120px) var(--gutter); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted);
  transition: all 0.22s var(--ease);
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.state { color: var(--muted-2); padding: 40px 0; }

.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 1000px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .apps { grid-template-columns: 1fr; } }

.app-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  opacity: 0; transform: translateY(16px); animation: rise 0.6s var(--ease) forwards;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.app-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0,0,0,0.8); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.app-card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 100px; backdrop-filter: blur(6px);
  background: rgba(7,10,15,0.65); border: 1px solid var(--line-2);
}
.card-badge.live { color: var(--green); border-color: rgba(61,220,132,0.4); }
.card-badge.beta { color: var(--amber); border-color: rgba(255,210,122,0.4); }
.card-badge.dev { color: var(--accent-2); border-color: rgba(116,180,255,0.4); }
.card-badge.arch { color: var(--muted-2); }
.card-star { position: absolute; top: 10px; right: 10px; z-index: 2; color: var(--accent); filter: drop-shadow(0 0 6px var(--glow)); }

.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; cursor: pointer; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; }
.card-platform { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.card-tagline { color: var(--muted); font-size: 0.9rem; line-height: 1.45; flex: 1; }
.card-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tech span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }
.card-actions { display: flex; gap: 8px; padding: 0 16px 16px; }
.card-link, .card-details {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.02em;
  padding: 10px; border-radius: 9px; transition: all 0.22s var(--ease);
}
.card-link { color: #fff; background: rgba(46,140,255,0.14); border: 1px solid rgba(46,140,255,0.4); }
.card-link:hover { background: var(--accent); }
.card-details { color: var(--muted); border: 1px solid var(--line); }
.card-details:hover { border-color: var(--line-2); color: var(--text); }
.card-link[hidden] { display: none; }

.empty { text-align: center; padding: 70px 0; display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--muted); max-width: 42ch; }
.empty .btn-primary { margin-top: 10px; }

/* ---------------------------------------------- the voyage timeline */
.timeline { position: relative; margin-top: 6px; }
.spine {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(46,140,255,0.55) 7%, rgba(46,140,255,0.55) 93%, transparent);
  z-index: 0;
}
.spine::before { content: ''; position: absolute; inset: -1px -4px; background: rgba(46,140,255,0.28); filter: blur(7px); }
.spine-hat {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 46px; height: 34px; z-index: 5; pointer-events: none;
  transition: top 0.12s linear;
}
/* One Piece straw hat, built from three divs (from Ghassen's design) */
.hat { position: absolute; inset: 0; opacity: 0.92; animation: hatbob 4s ease-in-out infinite; filter: drop-shadow(0 5px 8px rgba(0,0,0,0.5)); }
.hat-brim  { position: absolute; left: 0; bottom: 0; width: 46px; height: 9px; border-radius: 50%; background: rgb(232,198,106); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15); }
.hat-crown { position: absolute; left: 9px; bottom: 5px; width: 28px; height: 22px; border-radius: 14px 14px 6px 6px; background: rgb(237,207,120); }
.hat-band  { position: absolute; left: 9px; bottom: 14px; width: 28px; height: 6px; background: rgb(192,57,43); }
@keyframes hatbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ports { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(40px, 7vw, 100px); padding: 34px 0; }

.port { position: relative; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; }
.port.in .port-card, .port.in .port-phone { opacity: 1; transform: none; }
.port-node {
  grid-column: 2; justify-self: center; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(46,140,255,0.16), 0 0 18px var(--glow);
  z-index: 2; animation: nodePulse 2.6s var(--ease) infinite;
}
@keyframes nodePulse { 50% { box-shadow: 0 0 0 8px rgba(46,140,255,0.07), 0 0 24px var(--glow); } }

.port-card {
  position: relative; grid-row: 1;
  background: color-mix(in srgb, var(--bg-3) 92%, transparent);
  border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 2.4vw, 30px);
  cursor: pointer; backdrop-filter: blur(6px); opacity: 0;
  transition: opacity 0.75s var(--ease), transform 0.85s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.port-card:hover { border-color: var(--line-2); box-shadow: 0 26px 60px -30px rgba(0,0,0,0.9); }
.port-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.port-code { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.port-right { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.port-right.live { color: var(--green); }
.port-right.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.port-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.port-desc { color: var(--muted); font-size: 0.96rem; max-width: 46ch; }
.port-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.port-tech span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; }
.port-tech span.lead { color: #fff; background: rgba(46,140,255,0.16); border-color: rgba(46,140,255,0.5); }

/* device mockup cell + directional slide-in entrance */
.port-phone { grid-row: 1; display: flex; justify-content: center; opacity: 0; transition: opacity 0.85s var(--ease) 0.12s, transform 0.85s var(--ease) 0.12s; }
.port--left  .port-card  { grid-column: 1; transform: translateX(-46px); }
.port--left  .port-phone { grid-column: 3; margin-top: -26px; transform: translateX(46px); justify-content: flex-start; padding-left: clamp(24px, 7vw, 110px); }
.port--right .port-card  { grid-column: 3; transform: translateX(46px); }
.port--right .port-phone { grid-column: 1; margin-top: 26px; transform: translateX(-46px); justify-content: flex-end; padding-right: clamp(24px, 7vw, 110px); }
.port--left  .port-card::after  { content: ''; position: absolute; top: 50%; right: -32px; width: 32px; height: 1px; background: linear-gradient(90deg, rgba(46,140,255,0.5), transparent); }
.port--right .port-card::before { content: ''; position: absolute; top: 50%; left: -32px; width: 32px; height: 1px; background: linear-gradient(270deg, rgba(46,140,255,0.5), transparent); }

.phone {
  width: clamp(150px, 15vw, 196px); aspect-ratio: 9 / 18.5; border-radius: 30px; padding: 9px;
  background: linear-gradient(160deg, #1a2537, #0b1018); border: 1px solid var(--line-2);
  box-shadow: 0 44px 80px -44px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; animation: floaty 7s var(--ease) infinite;
}
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 3px; background: rgba(159,176,194,0.3); z-index: 2; }
.phone-screen { height: 100%; border-radius: 22px; padding: 28px 12px 12px; gap: 8px; }

/* laptop mockup (used for Web / Desktop / Backend apps) */
.laptop { width: clamp(210px, 22vw, 300px); position: relative; animation: floaty 7s var(--ease) infinite; }
.laptop-screen { aspect-ratio: 16 / 10; border-radius: 12px 12px 3px 3px; padding: 0; border: 1px solid var(--line-2); border-bottom: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.laptop-base { position: relative; height: 12px; width: 116%; margin-left: -8%; background: linear-gradient(180deg, #26344a, #131d2c); border: 1px solid var(--line-2); border-top: none; border-radius: 2px 2px 12px 12px; box-shadow: 0 44px 80px -44px rgba(0,0,0,0.95); }
.laptop-base::before { content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 24%; height: 3px; border-radius: 2px; background: rgba(159,176,194,0.28); }

/* shared screen contents */
.phone-screen, .laptop-screen { background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.mock-icon { border-radius: 12px; height: 42%; background: linear-gradient(150deg, rgba(46,140,255,0.38), rgba(46,140,255,0.06)); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(46,140,255,0.28); flex: none; }
.mock-icon img { width: 100%; height: 100%; object-fit: contain; }
.mock-glyph { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 44px); color: #cfe0f5; }
.mock-bar { height: 7px; border-radius: 4px; background: rgba(159,176,194,0.14); flex: none; }
.mock-bar.w1 { width: 72%; } .mock-bar.w2 { width: 46%; }
.mock-blocks { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-blocks i { height: 38px; border-radius: 10px; background: rgba(159,176,194,0.08); border: 1px solid var(--line); }

/* window chrome inside the laptop screen (browser for Web, app window for Desktop/Backend) */
.win-chrome { flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-bottom: 1px solid var(--line); background: rgba(159,176,194,0.05); }
.win-dots { display: inline-flex; gap: 4px; flex: none; }
.win-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.win-dots i:nth-child(1) { background: var(--red); }
.win-dots i:nth-child(2) { background: var(--yellow); }
.win-dots i:nth-child(3) { background: var(--green); }
.win-url { flex: 1; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 0.5rem; color: var(--muted); background: var(--bg-3); border: 1px solid var(--line); border-radius: 100px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-title { flex: 1; min-width: 0; text-align: center; font-family: var(--font-mono); font-size: 0.52rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; }

/* desktop-app layout inside the app window: sidebar + main pane */
.dt-body { flex-direction: row; gap: 0; padding: 0; }
.dt-sidebar { flex: none; width: 34%; max-width: 78px; display: flex; flex-direction: column; gap: 7px; padding: 12px 8px; background: rgba(159,176,194,0.05); border-right: 1px solid var(--line); }
.dt-nav { height: 8px; border-radius: 4px; background: rgba(159,176,194,0.16); }
.dt-nav:first-child { background: rgba(46,140,255,0.55); }
.dt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.dt-main .mock-icon { height: 40%; }
.dt-grid { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.dt-grid i { height: 26px; border-radius: 8px; background: rgba(159,176,194,0.08); border: 1px solid var(--line); }

@media (max-width: 820px) {
  .port { grid-template-columns: 26px 1fr; gap: 16px; align-items: start; }
  .spine, .spine-hat { left: 13px; }
  .port-node { grid-column: 1; margin-top: 26px; }
  .port--left .port-card, .port--right .port-card { grid-column: 2; }
  .port-card::before, .port-card::after { display: none; }
  .port-phone { display: none; }
}

/* ----------------------------------------------------------- stack */
.stack { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--gutter); border-top: 1px solid var(--line); }
.stack-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 32px; }
.stack-grid li {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-3);
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.stack-grid li::before { content: '▹ '; color: var(--accent); }
.stack-grid li:hover { border-color: var(--accent); color: var(--text); background: rgba(46,140,255,0.06); }
@media (max-width: 760px) { .stack-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------- 01 · the architect */
.architect { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 130px) var(--gutter); border-top: 1px solid var(--line); }
.architect-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 64px); align-items: start; margin-top: 8px; }
.architect-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 22px; }
.architect-lede { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.08rem); line-height: 1.75; max-width: 56ch; margin-bottom: 16px; }
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.skill-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-3); }
.skill-k { color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.skill-v { color: var(--text); font-size: 0.92rem; line-height: 1.6; }
.side-card { padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: var(--bg-3); backdrop-filter: blur(6px); }
.side-k { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.side-title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text); }
.side-sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.side-divider { height: 1px; background: var(--line); margin: 24px 0; }
.exp-list { list-style: none; display: flex; flex-direction: column; }
.exp-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.95rem; font-weight: 500; }
.exp-list li:last-child { border-bottom: none; }
.exp-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); flex: none; }
.exp-list li.is-current::before { background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.exp-list li.muted { color: var(--muted-2); }
.exp-list li.muted::before { display: none; }
@media (max-width: 860px) { .architect-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .skill-grid { grid-template-columns: 1fr; } }

/* -------------------------------------- 02 · assembled layer by layer (flat) */
.assembly { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gutter); border-top: 1px solid var(--line); }
.assembly-sticky { max-width: 720px; margin: 0 auto; }
.assembly-head { text-align: center; margin-bottom: clamp(30px, 5vw, 54px); }
.assembly-head .section-label { color: var(--accent); }
.assembly-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3.2rem); letter-spacing: -0.02em; margin: 6px 0 12px; background: linear-gradient(180deg, #fff, #9fb0c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.assembly-sub { color: var(--muted); font-size: 0.98rem; max-width: 46ch; margin: 0 auto; }
.stack3d { position: relative; display: flex; flex-direction: column; gap: 18px; }
.layer { position: relative; border-radius: 18px; padding: clamp(20px, 2.4vw, 28px); background: linear-gradient(135deg, rgba(46,140,255,0.10), rgba(46,140,255,0.03)), var(--bg-3); border: 1px solid var(--line-2); box-shadow: 0 20px 44px rgba(0,0,0,0.4); opacity: 0; transform-origin: center top; will-change: opacity, transform; }
.layer.current { border-color: var(--accent); box-shadow: 0 18px 44px rgba(46,140,255,0.24); background: linear-gradient(135deg, rgba(46,140,255,0.20), rgba(46,140,255,0.06)), var(--bg-3); }
.layer-content { display: flex; flex-direction: column; gap: 8px; }
.layer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.layer-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--text); letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.layer.current .layer-name { color: #fff; }
.layer-name a { color: inherit; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.layer-name a:hover { border-color: var(--accent); }
.layer-period { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.04em; white-space: nowrap; }
.layer-role { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-2); letter-spacing: 0.02em; }
.layer-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.layer-bullets li { position: relative; padding-left: 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.layer-bullets li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }
.layer-note { color: var(--muted-2); font-size: 0.82rem; line-height: 1.5; margin-top: 6px; }
.layer-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); flex: none; }
@media (max-width: 520px) { .layer-head { gap: 6px; } }

/* ----------------------------------------------------------- about */
.about { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--gutter); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); margin-top: 28px; }
.about-lede { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; }
.about-body { align-self: end; display: flex; flex-direction: column; gap: 16px; }
.about-body p { color: var(--muted); max-width: 48ch; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(46,140,255,0.05)); padding: clamp(50px, 8vw, 120px) var(--gutter) 28px; }
.footer-cta { max-width: var(--maxw); margin: 0 auto; }
.footer-head { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 8vw, 6.5rem); line-height: 0.96; letter-spacing: -0.03em; margin: 14px 0 26px; }
.footer-mail { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 2rem); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.25s, border-color 0.25s; }
.footer-mail:hover { color: var(--accent); border-color: var(--accent); }
.footer-cols { max-width: var(--maxw); margin: clamp(44px, 7vw, 84px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted); line-height: 1.8; }
.footer-cols a { transition: color 0.25s; } .footer-cols a:hover { color: var(--accent); }
.footer-k { display: block; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.64rem; }
.footer-base { max-width: var(--maxw); margin: 40px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 680px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------- overlay */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; }
.overlay[hidden] { display: none; }
.overlay-scrim { position: absolute; inset: 0; background: rgba(3,5,9,0.7); backdrop-filter: blur(4px); animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } }
.overlay-panel {
  position: relative; margin: auto; width: min(980px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 16px;
  display: grid; grid-template-columns: 1.05fr 1fr; animation: pop 0.4s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.99); } }
.overlay-media { background: var(--bg-2); border-right: 1px solid var(--line); }
.overlay-media img { width: 100%; height: 100%; object-fit: contain; min-height: 320px; }
.overlay-info { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.overlay-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(7,10,15,0.7); border: 1px solid var(--line-2); border-radius: 100px; padding: 7px 12px; color: var(--muted); transition: all 0.22s; }
.overlay-close:hover { color: var(--text); border-color: var(--accent); }
.overlay-eyebrow { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.ov-status { color: var(--green); }
.overlay-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; }
.overlay-tagline { color: var(--accent-2); font-size: 1.02rem; }
.overlay-desc { color: var(--muted); }
.overlay-tech { display: flex; flex-wrap: wrap; gap: 6px; }
.overlay-tech span { font-size: 0.62rem; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.spec dt { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.64rem; align-self: center; }
.spec dd { color: var(--text); text-align: right; font-size: 0.82rem; }
.overlay-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.overlay-links a {
  flex: 1 1 auto; min-width: 118px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; font-family: var(--font-mono); font-size: 0.74rem; padding: 12px; border-radius: 10px;
  transition: all 0.22s var(--ease);
}
.overlay-links a svg { flex: none; }
.ov-link.store-appstore,
.ov-link.store-web { color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 26px -10px var(--glow); }
.ov-link.store-playstore { color: #0a0e16; background: linear-gradient(180deg, #4be39a, var(--green)); box-shadow: 0 10px 26px -10px rgba(61,220,132,0.45); }
.ov-link.store-source { color: var(--muted); border: 1px solid var(--line-2); }
.ov-link.store-source:hover { color: var(--text); border-color: var(--accent); }
.overlay-links a:hover { transform: translateY(-2px); }
.overlay-links a[hidden] { display: none; }
@media (max-width: 760px) {
  .overlay-panel { grid-template-columns: 1fr; }
  .overlay-media { border-right: none; border-bottom: 1px solid var(--line); }
  .overlay-media img { min-height: 220px; max-height: 38vh; }
}

/* ---------------------------------------------------------- 04 · contact */
.contact { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(50px, 7vw, 110px) var(--gutter) clamp(60px, 8vw, 130px); border-top: 1px solid var(--line); }
.contact-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.contact-head .section-label { color: var(--accent); }
.contact-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.02em; margin-top: 8px; background: linear-gradient(180deg, #fff, #9fb0c2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { padding: clamp(24px, 3vw, 34px); border-radius: 22px; background: var(--bg-3); border: 1px solid var(--line); }
.cf-fields { display: flex; flex-direction: column; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field label { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.66rem; }
.cf-field input, .cf-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color 0.25s, box-shadow 0.25s; }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: var(--muted-2); }
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,140,255,0.15); }
.cf-field textarea { resize: vertical; line-height: 1.55; min-height: 120px; }
.cf-submit { margin-top: 4px; padding: 15px; border-radius: 12px; border: none; background: var(--accent); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; cursor: pointer; box-shadow: 0 14px 40px -8px var(--glow); transition: transform 0.2s var(--ease), box-shadow 0.25s; }
.cf-submit span { display: inline-block; transition: transform 0.25s var(--ease); }
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -8px var(--glow); }
.cf-submit:hover span { transform: translateX(4px); }
.cf-submit:disabled { opacity: 0.6; pointer-events: none; }
.cf-error { color: #ffb4ae; font-size: 0.74rem; margin-top: -4px; }
/* honeypot — kept in the DOM for bots, hidden from humans + assistive tech flow */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-success { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cf-check { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--accent); display: grid; place-items: center; box-shadow: 0 0 30px var(--glow); margin-bottom: 22px; font-size: 26px; color: var(--accent-2); }
.cf-success-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cf-success-sub { color: var(--muted); max-width: 280px; }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.cv-card { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: 22px; background: linear-gradient(135deg, rgba(46,140,255,0.16), rgba(46,140,255,0.04)); border: 1px solid rgba(46,140,255,0.4); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.cv-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px -20px var(--glow); }
.cv-card.is-disabled { opacity: 0.5; pointer-events: none; filter: grayscale(0.5); }
.cv-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 24px var(--glow); flex: none; }
.cv-text { display: flex; flex-direction: column; gap: 2px; }
.cv-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.cv-sub { color: var(--muted); font-size: 0.8rem; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); transition: border-color 0.25s; }
.contact-link:hover { border-color: var(--accent); }
.cl-k { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.64rem; width: 52px; flex: none; }
.cl-v { color: var(--text); font-size: 0.95rem; }
.contact-base { text-align: center; margin-top: clamp(48px, 7vw, 80px); color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.66rem; line-height: 2; }
.contact-base .gl { color: var(--accent); }
.contact-base .gl-key { color: var(--accent-2); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; }

/* Grand Line mode (press L) — warm regrade */
.grandline-tint { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1s ease; mix-blend-mode: screen; background: radial-gradient(1000px 700px at 50% 30%, rgba(255,150,60,0.16), transparent 60%), linear-gradient(180deg, rgba(255,120,40,0.06), rgba(120,40,10,0.08)); }
body.grandline .grandline-tint { opacity: 1; }

/* ------------------------------------------------- admin login modal */
.auth-modal { position: fixed; inset: 0; z-index: 300; display: grid; }
.auth-modal[hidden] { display: none; }
.auth-scrim { position: absolute; inset: 0; background: rgba(3,5,9,0.72); backdrop-filter: blur(4px); animation: fade 0.3s ease; }
.auth-panel { position: relative; margin: auto; width: min(420px, 92vw); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 15px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.85); animation: pop 0.35s var(--ease); }
.auth-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.64rem; }
.auth-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field label { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.62rem; }
.auth-field input { padding: 13px 15px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color 0.25s, box-shadow 0.25s; }
.auth-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,140,255,0.15); }
.auth-error { color: #ffb4ad; background: rgba(255,95,87,0.1); border: 1px solid rgba(255,95,87,0.3); border-radius: 9px; padding: 9px 12px; font-size: 0.72rem; letter-spacing: 0.02em; }
.auth-actions { display: flex; gap: 10px; margin-top: 4px; }
.auth-actions .btn-primary, .auth-actions .btn-ghost { flex: 1; justify-content: center; cursor: pointer; }
.auth-actions .btn-primary { border: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
