/* Mark Silcock showcase. Palette and type from mobiustech.co.nz. */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --slate: #2B3138;
  --charcoal: #3A3F45;
  --navy: #1F2933;
  --navy-deep: #171F28;
  --cream: #D9D4C7;
  --bone: #F2EFE6;
  --rust: #A8512A;
  --rust-glow: #C2632F;
  --rust-light: #E08A55; /* small rust text on dark, for contrast */
  --olive: #4F5440;
  --tan: #B8A88A;
  --ink-soft: rgba(242, 239, 230, 0.74);
  --ink-faint: rgba(242, 239, 230, 0.7);
  --fs-tiny: 13px;
  --line: rgba(217, 212, 199, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1280px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--bone);
  font-family: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'ss01' on, 'cv11' on;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.shell { max-width: var(--shell); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--bone); color: var(--navy); padding: 10px 16px; border-radius: 2px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--rust-light); outline-offset: 3px; border-radius: 2px; }
.about :focus-visible { outline-color: var(--rust); }

/* ---------- type helpers ---------- */
.label { font-size: var(--fs-tiny); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.label-rust { color: var(--rust-light); }
.label-rust-dark { color: #8E4120; }
.display { font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(34px, 4.6vw, 60px); }
.hl { color: var(--rust); }

.hair-grid {
  background-image:
    linear-gradient(rgba(217, 212, 199, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 212, 199, 0.028) 1px, transparent 1px);
  background-size: 96px 96px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 28px; border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms var(--ease);
}
.btn-primary { background: var(--rust); border-color: var(--rust); color: var(--bone); }
.btn-primary:hover { background: var(--rust-glow); border-color: var(--rust-glow); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(217, 212, 199, 0.35); }
.btn-ghost:hover { border-color: var(--rust-glow); background: rgba(168, 81, 42, 0.18); color: var(--bone); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.arrow { display: inline-block; transition: transform 260ms var(--ease); }
.btn:hover .arrow { transform: translate(2px, 2px); }
.btn-card:hover .arrow { transform: translate(3px, -3px); }

/* ---------- entrance + reveal ---------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fade-up 900ms var(--ease) both; }
.d-1 { animation-delay: 80ms; } .d-2 { animation-delay: 200ms; } .d-3 { animation-delay: 320ms; }
.d-4 { animation-delay: 440ms; } .d-5 { animation-delay: 560ms; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.reveal.reveal-in { opacity: 1; transform: none; }

/* =================================================================== HERO */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(217, 212, 199, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 212, 199, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, var(--slate) 0%, var(--navy) 100%);
  background-size: 96px 96px, 96px 96px, auto;
  color: var(--cream);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 78% 42%, rgba(168, 81, 42, 0.26) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 8% 100%, rgba(79, 84, 64, 0.35) 0%, transparent 70%);
}
.nav {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 26px; padding-bottom: 10px;
}
.nav-brand { display: inline-flex; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); font-size: 15px; font-weight: 500; }
.nav-link { position: relative; color: rgba(242, 239, 230, 0.8); text-decoration: none; padding-bottom: 4px; transition: color 200ms ease; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--rust-glow);
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease);
}
.nav-link:hover { color: var(--bone); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-out { margin: 0; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--cream);
  padding: 9px 14px; border: 1px solid rgba(217, 212, 199, 0.35); border-radius: 2px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms ease; }
.nav-menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-menu-list {
  position: absolute; left: 0; top: calc(100% + 8px); min-width: 170px; z-index: 30;
  background: var(--navy-deep); border: 1px solid rgba(217, 212, 199, 0.28); border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); padding: 6px;
}
.nav-menu-list a { display: block; padding: 12px 14px; font-size: 16px; color: var(--bone); text-decoration: none; border-radius: 2px; }
.nav-menu-list a:hover, .nav-menu-list a:focus-visible { background: rgba(168, 81, 42, 0.3); }

/* back to top */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rust); color: var(--bone); border: 1px solid var(--rust-glow); border-radius: 50%;
  font-size: 20px; line-height: 1; text-decoration: none; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms var(--ease), visibility 0s linear 240ms;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--rust-glow); }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 32px;
  padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 72px);
}
.hero-copy .label { margin-bottom: 22px; }
.hero-name {
  font-weight: 500; letter-spacing: -0.055em; line-height: 0.9;
  font-size: clamp(64px, 11vw, 156px); color: var(--bone);
  margin: 0 0 28px -0.04em;
}
.hero-name span { display: block; }
.hero-name span + span { color: transparent; -webkit-text-stroke: 1.5px rgba(242, 239, 230, 0.85); }
.hero-tag { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.3; letter-spacing: -0.015em; color: var(--bone); max-width: 26ch; margin-bottom: 18px; font-weight: 450; }
.hero-tag em { font-style: normal; color: var(--rust-light); display: block; }
.hero-sub { font-size: 17.5px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-mark { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.hero-mark-glow {
  position: absolute; inset: 10%; filter: blur(60px);
  background: radial-gradient(circle, rgba(168, 81, 42, 0.35) 0%, transparent 70%);
}
.hero-mark-move {
  position: relative; perspective: 1200px;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.38));
  transition: transform 320ms var(--ease); will-change: transform;
}
.mark-svg { width: 100%; height: auto; overflow: visible; animation: tilt-3d 22s ease-in-out infinite; }
.mark-svg path { shape-rendering: geometricPrecision; }
@keyframes tilt-3d { 0%, 100% { transform: rotateY(-8deg); } 50% { transform: rotateY(8deg); } }

/* ticker: label has its own solid column, only the track fades at its edges */
.ticker {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0;
  border-top: 1px solid var(--line); background: var(--navy);
  padding: 0 0 0 max(var(--pad), calc((100% - var(--shell)) / 2 + var(--pad)));
  max-width: none;
}
.ticker-label {
  color: var(--ink-faint); white-space: nowrap; position: relative; z-index: 2;
  padding: 20px 32px 20px 0; margin: 0;
}
.ticker-viewport {
  overflow: hidden; min-width: 0; padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 72px, #000 calc(100% - 72px), transparent 100%);
}
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker-track li {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: rgba(242, 239, 230, 0.86);
  white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px;
}
.ticker-track li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--rust-glow); margin-right: -22px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker:active .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================== ABOUT */
.about {
  background: var(--bone); color: var(--slate);
  padding: clamp(72px, 10vw, 140px) 0;
  background-image: radial-gradient(rgba(43, 49, 56, 0.03) 1px, transparent 1px);
  background-size: 3px 3px;
}
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about .label { margin-bottom: 18px; }
.about h2 { color: var(--navy); margin-bottom: 40px; max-width: 13ch; }
.creds { border-top: 1px solid rgba(43, 49, 56, 0.14); }
.creds li {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid rgba(43, 49, 56, 0.14);
}
.cred-k { font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8E4120; }
.cred-v { font-size: 17px; font-weight: 500; color: var(--navy); }
.about-body p { font-size: 17.5px; line-height: 1.65; color: #3A3F45; margin-bottom: 22px; max-width: 58ch; }
.about-body .lead { font-size: clamp(21px, 2vw, 25px); line-height: 1.45; color: var(--navy); letter-spacing: -0.012em; font-weight: 450; }
/* quiet, non-interactive tags: a faint tint, no border, no hover state */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.stack li {
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 2px;
  color: #3A3F45; background: rgba(43, 49, 56, 0.06); cursor: default; user-select: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stack li.is-key { color: #8E4120; background: rgba(168, 81, 42, 0.12); }

/* ================================================================== STATS */
.stats { background: var(--navy); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px, 4vw, 52px) 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-n { font-size: clamp(48px, 6vw, 84px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.stat:first-child .stat-n { color: var(--rust-light); }
.stat-l { font-size: 15px; color: var(--ink-soft); max-width: 18ch; }

/* =================================================================== WORK */
.work { background: var(--navy-deep); padding: clamp(72px, 10vw, 136px) 0 clamp(40px, 6vw, 80px); }
.work-head { margin-bottom: 40px; }
.work-head .label { margin-bottom: 18px; }
.work-head h2 { color: var(--bone); max-width: 16ch; margin-bottom: 20px; }
.work-intro { font-size: 18px; color: var(--ink-soft); max-width: 54ch; }

.sector-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 31, 40, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.sector-scroll { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.sector-scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: rgba(242, 239, 230, 0.78); padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(217, 212, 199, 0.16);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.chip:hover { color: var(--bone); border-color: rgba(217, 212, 199, 0.4); }
.chip.is-active { color: var(--navy-deep); background: var(--cream); border-color: var(--cream); }
.chip-n { font-size: 13px; opacity: 0.85; font-variant-numeric: tabular-nums; }

.group { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); scroll-margin-top: 64px; }
.g-agri { --accent: #C2632F; --accent-text: #E08A55; }
.g-civil { --accent: #B8A88A; --accent-text: #C9BB9F; }
.g-industry { --accent: #E08A55; --accent-text: #E89A6A; }
.g-commerce { --accent: #A3AB86; --accent-text: #B4BC97; }
.g-personal { --accent: #D9D4C7; --accent-text: #D9D4C7; }

.group-head { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.group-num { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent-text); padding-top: 12px; font-variant-numeric: tabular-nums; }
.group-title { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; color: var(--bone); }
.group-meta { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--navy); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform 420ms var(--ease), border-color 300ms ease, box-shadow 420ms var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
.card.reveal { transition: opacity 760ms var(--ease), transform 760ms var(--ease), border-color 300ms ease, box-shadow 420ms var(--ease); }
.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, var(--slate) 0%, var(--navy-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.card-media::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 212, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 212, 199, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(242, 239, 230, 0.07) 48%, transparent 66%);
  transform: translateX(-100%); transition: transform 900ms var(--ease);
}
.card:hover .card-media::after { transform: translateX(100%); }
.card-media .art, .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-float { transition: transform 700ms var(--ease); transform-origin: 50% 50%; }
.card:hover .art-float { transform: scale(1.045) translateY(-3px); }
.card-media img { transition: transform 700ms var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-num {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  padding: 3px 8px; border-radius: 999px; background: rgba(23, 31, 40, 0.82); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: rgba(242, 239, 230, 0.9);
  font-variant-numeric: tabular-nums;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.card-client { font-size: var(--fs-tiny); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--bone); margin-bottom: 6px; }
.card-line { font-size: 16px; color: var(--ink-soft); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tags li { font-size: var(--fs-tiny); font-weight: 500; color: rgba(242, 239, 230, 0.86); padding: 4px 9px; border-radius: 2px; background: rgba(217, 212, 199, 0.07); }
.btn-card {
  margin-top: auto; align-self: flex-start;
  padding: 10px 16px; font-size: 14px;
  color: var(--bone); border-color: rgba(217, 212, 199, 0.28); background: transparent;
}
.btn-card::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .btn-card { background: var(--rust); border-color: var(--rust); }

/* ================================================================= FOOTER */
.foot { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-faint); }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-line { font-size: 15px; line-height: 1.6; }
.foot-mail { color: var(--cream); text-decoration: none; }
.foot-mail:hover { color: var(--rust-light); }
.foot form { margin: 0; }

/* ================================================================== LOGIN */
.page-login { background: var(--navy); }
.login-wrap {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(217, 212, 199, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 212, 199, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, var(--slate) 0%, var(--navy) 100%);
  background-size: 96px 96px, 96px 96px, auto;
}
.login-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 30%, rgba(168, 81, 42, 0.24) 0%, transparent 70%);
}
.login-card {
  position: relative; width: 100%; max-width: 420px;
  background: rgba(23, 31, 40, 0.82);
  border: 1px solid rgba(217, 212, 199, 0.14); border-radius: 6px;
  padding: 40px 36px 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-up 800ms var(--ease) both;
}
.login-mark { width: 150px; margin: -6px auto 22px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4)); }
.login-card .label { text-align: center; margin-bottom: 10px; }
.login-title { text-align: center; font-size: 38px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; color: var(--bone); }
.login-sub { text-align: center; color: var(--ink-soft); margin: 8px 0 28px; }
.login-form { margin-top: 4px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-label { font-size: var(--fs-tiny); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 239, 230, 0.85); }
.form-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--bone);
  background: rgba(217, 212, 199, 0.05); border: 1px solid rgba(217, 212, 199, 0.22); border-radius: 2px;
  padding: 12px 13px; transition: border-color 200ms ease, background 200ms ease;
}
.form-input:focus { outline: none; border-color: var(--rust-light); background: rgba(217, 212, 199, 0.08); box-shadow: 0 0 0 3px rgba(224, 138, 85, 0.25); }
.login-form .btn { margin-top: 10px; }
.form-alert {
  font-size: 14.5px; color: var(--bone); background: rgba(168, 81, 42, 0.22);
  border: 1px solid rgba(194, 99, 47, 0.6); border-radius: 2px; padding: 11px 13px; margin-bottom: 20px;
}
.login-foot { position: relative; margin-top: 32px; opacity: 0.85; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; padding-top: 24px; }
  .hero-mark { order: -1; max-width: 240px; justify-self: start; margin-left: -12px; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-left: 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  :root { --fs-tiny: 12px; }
  .nav-link { display: none; }
  .nav-menu { display: block; }
  .nav-links { gap: 10px; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav .lockup { width: 110px; height: auto; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .hero-name { font-size: clamp(64px, 20vw, 96px); margin-bottom: 22px; }
  .hero-name span + span { -webkit-text-stroke-width: 1.2px; }
  .hero-sub { font-size: 16.5px; margin-bottom: 30px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .ticker { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .ticker-label { padding: 16px var(--pad) 0; background: transparent; }
  .ticker-viewport { padding: 10px 0 16px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
  .ticker-track li { font-size: 15px; }
  .group-head { gap: 14px; }
  .group-num { padding-top: 8px; }
  .login-card { padding: 32px 22px 26px; }
  .to-top { width: 44px; height: 44px; }
  .login-title { font-size: 34px; }
}

/* ======================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
  .to-top { transition: none; }
  .ticker-track { animation: none !important; flex-wrap: wrap; width: auto; row-gap: 6px; }
  .ticker-track li.dupe { display: none; }
  .card:hover, .card:focus-within { transform: none; }
  .card:hover .art-float, .card:hover .card-media img { transform: none; }
}
