:root {
  --bg: #07090b;
  --bg-soft: #101418;
  --surface: #161b20;
  --line: rgba(237, 232, 224, 0.1);
  --text: #ebe6dc;
  --muted: #8d969d;
  --accent: #d4a574;
  --accent-2: #6bb8b0;
  --ok: #7dba8a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --wrap: 1180px;
  --gutter: clamp(40px, 7vw, 96px);
  --header-gutter: clamp(28px, 6vw, 80px);
  --header: 72px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Outfit", system-ui, sans-serif;
  --c-dart: #2bd4bd;
  --c-react: #7dd3fc;
  --c-flask: #86efac;
  --c-sqlite: #67e8f9;
  --c-flutter: #38bdf8;
  --c-python: #fde68a;
  --c-php: #c4b5fd;
  --c-firebase: #fbbf24;
  --c-js: #facc15;
  --c-git: #fb7185;
  --c-mysql: #60a5fa;
  --c-html: #fb923c;
  --c-figma: #f472b6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  padding-top: var(--header);
  padding-bottom: 44px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(237, 232, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 232, 224, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  opacity: 0.35;
}

#cursor-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  background: #050607;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  letter-spacing: 0.12em;
  color: var(--accent);
  text-align: center;
}

.boot-sub {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  max-width: 18ch;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #1a130d;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--header);
  padding-inline: var(--header-gutter);
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 11, 0.55);
  border-bottom: 1px solid var(--line);
  transition: top 0.28s ease, background 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 11, 0.78);
}

.site-header.is-hidden {
  top: calc(-1 * var(--header) - 24px);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #1a130d;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.logo-path {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  max-width: 22ch;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: #c9c3ba;
  font-family: var(--mono);
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 7px 12px;
  border: 1px solid rgba(212, 165, 116, 0.4);
  border-radius: 8px;
  color: var(--accent) !important;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ok);
}

.header-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(125, 186, 138, 0.16);
}

.nav-toggle {
  display: none;
  width: auto;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(237, 232, 224, 0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

.nav-toggle em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.nav-toggle.is-hidden {
  top: -80px !important;
  opacity: 0;
  pointer-events: none;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window-dots {
  width: 38px;
  height: 10px;
  border-radius: 99px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 19px 5px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 33px 5px, #28c840 4px, transparent 4.5px);
}

.window-title,
.window-flag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.window-title {
  flex: 1;
}

.window-flag {
  color: var(--ok);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 24px 0 clamp(36px, 6vw, 64px);
}

.hero-banner {
  position: relative;
  z-index: 1;
  padding-top: 8px;
}

.hero-banner-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 2089 / 753;
  background: #0a0d10;
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}

.hero-banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 9, 11, 0.28) 0%,
    transparent 38%
  );
  pointer-events: none;
}

.hero-banner-chip {
  position: absolute;
  right: clamp(12px, 2vw, 20px);
  top: clamp(12px, 2vw, 20px);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff6e8;
  background: rgba(7, 9, 11, 0.45);
  border: 1px solid rgba(212, 165, 116, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0.85;
}

.hero-banner-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px clamp(16px, 3vw, 22px) 18px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.hero-banner-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-banner-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(237, 232, 224, 0.18);
  cursor: pointer;
  transition: width 0.45s ease, background 0.45s ease;
}

.hero-banner-dots button.is-on {
  width: 40px;
  background: var(--accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "term copy"
    "stats stats";
  gap: 22px 48px;
  align-items: start;
  margin-top: 28px;
}

.terminal {
  grid-area: term;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}

.terminal-body {
  padding: 22px 20px 26px;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.7;
  min-height: 220px;
}

.term-line {
  margin: 0 0 4px;
}

.term-out {
  margin: 0 0 18px;
  color: #c8c2b8;
}

.prompt {
  color: var(--accent);
  margin-right: 8px;
}

.ok {
  color: var(--ok);
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: caret 0.9s step-end infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.hero-copy {
  grid-area: copy;
}

.hero-copy .lede {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.hero-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li {
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child {
  border-right: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(16, 20, 24, 0.7);
  cursor: default;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker-track span {
  padding: 14px 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.ticker-track span:nth-child(12n + 1) { color: var(--c-dart); }
.ticker-track span:nth-child(12n + 2) { color: var(--c-react); }
.ticker-track span:nth-child(12n + 3) { color: var(--c-flask); }
.ticker-track span:nth-child(12n + 4) { color: var(--c-sqlite); }
.ticker-track span:nth-child(12n + 5) { color: var(--c-flutter); }
.ticker-track span:nth-child(12n + 6) { color: var(--c-python); }
.ticker-track span:nth-child(12n + 7) { color: var(--c-php); }
.ticker-track span:nth-child(12n + 8) { color: var(--c-firebase); }
.ticker-track span:nth-child(12n + 9) { color: var(--c-js); }
.ticker-track span:nth-child(12n + 10) { color: var(--c-git); }
.ticker-track span:nth-child(12n + 11) { color: var(--c-html); }
.ticker-track span:nth-child(12n + 12) { color: var(--c-figma); }

[data-lang="dart"] { color: var(--c-dart); }
[data-lang="react"],
[data-lang="react-native"] { color: var(--c-react); }
[data-lang="flask"] { color: var(--c-flask); }
[data-lang="sqlite"] { color: var(--c-sqlite); }
[data-lang="flutter"] { color: var(--c-flutter); }
[data-lang="python"] { color: var(--c-python); }
[data-lang="php"] { color: var(--c-php); }
[data-lang="firebase"] { color: var(--c-firebase); }
[data-lang="javascript"] { color: var(--c-js); }
[data-lang="git"] { color: var(--c-git); }
[data-lang="mysql"] { color: var(--c-mysql); }
[data-lang="html"] { color: var(--c-html); }
[data-lang="figma"] { color: var(--c-figma); }

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.dream {
  position: relative;
  z-index: 1;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.dream::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08), transparent 45%);
  pointer-events: none;
}

.dream-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px 48px;
  align-items: center;
}

.dream-copy h2 {
  max-width: 16ch;
}

.dream-copy .lede {
  margin-top: 14px;
}

.dream-cycle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.dream-cycle-label {
  color: var(--muted);
}

.dream-phrase {
  color: var(--accent);
  font-weight: 600;
  min-width: 12ch;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dream-phrase.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.dream-panel {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(212, 165, 116, 0.06), transparent 40%),
    var(--bg-soft);
}

.dream-beam {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 2px;
  background: rgba(237, 232, 224, 0.08);
  transform: translateY(-50%);
  overflow: hidden;
}

.dream-beam::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: dream-beam 3.2s ease-in-out infinite;
}

@keyframes dream-beam {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%);
    opacity: 0;
  }
}

.dream-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dream-steps li {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 20, 0.55);
  transition:
    border-color 0.45s ease,
    background 0.45s ease,
    transform 0.45s ease;
}

.dream-steps li.is-active {
  border-color: rgba(212, 165, 116, 0.5);
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-2px);
}

.step-no {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent-2);
  margin-bottom: 6px;
}

.dream-steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.dream-steps p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.dream-note {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.about,
.services,
.work,
.delivered,
.skills,
.console,
.contact {
  position: relative;
  z-index: 1;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.about-grid,
.contact-grid,
.console-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.about-body p {
  color: var(--muted);
  margin-top: 0;
}

.facts {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
}

.facts div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.facts dd {
  margin: 4px 0 0;
}

.services .lede {
  margin: 16px 0 0;
}

.services h2 {
  max-width: 22ch;
}

.service-cta {
  margin-top: 36px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.55),
    rgba(107, 184, 176, 0.35),
    rgba(212, 165, 116, 0.25)
  );
  box-shadow:
    0 0 0 1px rgba(212, 165, 116, 0.12),
    0 20px 48px rgba(0, 0, 0, 0.28);
}

.service-cta-inner {
  border-radius: calc(var(--radius) - 1px);
  padding: clamp(22px, 4vw, 32px);
  background:
    radial-gradient(circle at top right, rgba(212, 165, 116, 0.12), transparent 48%),
    linear-gradient(165deg, #141a1f 0%, var(--bg-soft) 55%);
}

.service-cta-kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}

.service-cta-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 36ch;
  color: var(--text);
}

.service-cta-text {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 58ch;
}

.service-cta-btn {
  margin-top: 22px;
}

.service-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
}

.service-filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
}

.service-filters button:hover,
.service-filters button.is-on {
  color: var(--accent);
  border-color: rgba(212, 165, 116, 0.45);
}

.service-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.service.is-hidden {
  display: none;
}

.service-no {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-for {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent-2);
}

.service > p:not(.service-no):not(.service-for):not(.tag) {
  margin: 0 0 14px;
  color: var(--muted);
}

.service-includes {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.service-includes li {
  position: relative;
  padding-left: 14px;
  color: var(--text);
  font-size: 0.9rem;
}

.service-includes li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service .text-link {
  margin-top: auto;
}

.project-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.project.featured {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(212, 165, 116, 0.14), transparent 42%),
    var(--surface);
}

.project:hover,
.project:focus-within {
  border-color: rgba(212, 165, 116, 0.38);
}

.project::after {
  content: attr(data-path);
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project:hover::after,
.project:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.tag {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project p {
  color: var(--muted);
  margin-top: 0;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: auto 0 16px;
}

.stack li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.text-link:hover {
  text-decoration: underline;
}

.delivered .lede {
  margin: 16px 0 0;
}

.ship-table {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}

.ship-head,
.ship-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.9fr 0.8fr minmax(0, 0.85fr);
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}

.ship-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.ship-row {
  border-top: 1px solid var(--line);
}

.ship-row:first-of-type {
  border-top: 0;
}

.ship-row h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.ship-row h3 a,
.project h3 a {
  color: inherit;
  text-decoration: none;
}

.ship-row h3 a:hover,
.project h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.ship-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ship-type,
.ship-stack {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.ship-status {
  margin: 0;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.ship-status.is-done {
  color: var(--ok);
  background: rgba(125, 186, 138, 0.12);
}

.ship-status.is-live {
  color: var(--c-flutter);
  background: rgba(56, 189, 248, 0.12);
}

.ship-status-cell {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.ship-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: #f0d4a8;
  background:
    linear-gradient(135deg, rgba(212, 165, 116, 0.14), rgba(212, 165, 116, 0.04)),
    var(--surface);
  border: 1px solid rgba(212, 165, 116, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 0 rgba(212, 165, 116, 0);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.ship-visit-cmd {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(7, 9, 11, 0.45);
  border: 1px solid rgba(212, 165, 116, 0.22);
}

.ship-visit-arrow {
  margin-left: 2px;
  font-size: 0.82rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ship-visit:hover,
.ship-visit:focus-visible {
  transform: translateY(-1px);
  color: #fff6e8;
  border-color: rgba(212, 165, 116, 0.65);
  background:
    linear-gradient(135deg, rgba(212, 165, 116, 0.22), rgba(212, 165, 116, 0.08)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(212, 165, 116, 0.18);
  outline: none;
}

.ship-visit:hover .ship-visit-arrow,
.ship-visit:focus-visible .ship-visit-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.ship-visit:hover .ship-visit-cmd,
.ship-visit:focus-visible .ship-visit-cmd {
  border-color: rgba(212, 165, 116, 0.45);
  color: #f3d08a;
}

.token-board {
  margin-top: 40px;
}

.token-hint {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token {
  position: relative;
  border: 1px solid color-mix(in srgb, currentColor 35%, var(--line));
  background: color-mix(in srgb, currentColor 8%, var(--surface));
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.84rem;
  cursor: pointer;
}

.token:hover,
.token.is-open,
.token:focus-visible {
  border-color: currentColor;
}

.token::after {
  content: attr(data-hint);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 6px;
  background: #1d1610;
  color: inherit;
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 2;
}

.token:hover::after,
.token.is-open::after,
.token:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.snippet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.snippet pre {
  margin: 0;
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #d7d1c7;
}

.copy-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  cursor: pointer;
}

.copy-btn:hover,
.copy-btn.is-copied {
  color: var(--ok);
  border-color: rgba(125, 186, 138, 0.4);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c1013;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.contact-form button {
  width: fit-content;
  margin-top: 6px;
}

.honeypot {
  display: none;
}

.form-note {
  margin: 0;
  color: var(--accent-2);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-soft);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 36ch;
}

.footer-grid h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: var(--text);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.footer-inner p {
  margin: 0;
}

.statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  padding: 0 var(--header-gutter);
  background: #0c1013;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.kbd-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.68rem;
}

.kbd-hint:hover,
.kbd-hint:hover span {
  color: var(--accent);
}

.palette {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding-top: 14vh;
  background: rgba(5, 6, 7, 0.62);
  backdrop-filter: blur(8px);
}

.palette[hidden] {
  display: none;
}

.palette-panel {
  width: min(560px, calc(100% - 32px));
  background: #12171b;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.palette-panel input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 16px 18px;
  font-family: var(--mono);
  outline: none;
}

.palette-panel ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.palette-panel li {
  border-radius: 8px;
}

.palette-panel a,
.palette-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
}

.palette-panel li.is-active,
.palette-panel a:hover {
  background: rgba(212, 165, 116, 0.1);
}

.palette-panel small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.cv-page {
  position: relative;
  z-index: 1;
  padding: 48px 0 96px;
}

.cv-page h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 12px;
}

.cv-frame {
  margin-top: 28px;
  background: #11171a;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 72vh;
}

.cv-frame iframe,
.cv-frame object {
  width: 100%;
  height: min(82vh, 1100px);
  border: 0;
  background: #fff;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cv-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .header-status {
    display: none;
  }

  .logo-path {
    max-width: 14ch;
    font-size: 0.76rem;
  }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: 18px;
    right: var(--header-gutter);
    z-index: 80;
    background: var(--accent);
    color: #1a130d;
    border-color: transparent;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--header) + 8px);
    left: var(--header-gutter);
    right: var(--header-gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #141a1e;
    border: 1px solid var(--line);
    border-radius: 14px;
    z-index: 70;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-grid,
  .dream-grid,
  .about-grid,
  .contact-grid,
  .console-grid,
  .project-grid,
  .service-grid,
  .ship-head,
  .ship-row {
    grid-template-columns: 1fr;
  }

  .ship-head {
    display: none;
  }

  .ship-status-cell {
    width: 100%;
    margin-top: 4px;
  }

  .ship-visit {
    flex: 1;
    justify-content: center;
    min-width: min(100%, 240px);
  }

  .ship-status {
    justify-self: start;
  }

  .hero-banner-viewport {
    aspect-ratio: 2089 / 753;
  }


  .dream-steps {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-areas:
      "term"
      "copy"
      "stats";
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats li {
    border: 0;
    padding: 0;
  }

  .project.featured {
    grid-column: auto;
  }

  .project {
    transform: none !important;
  }

  .project::after {
    position: static;
    opacity: 0.7;
    transform: none;
    margin-top: 8px;
  }

  .token::after {
    white-space: normal;
    max-width: 70vw;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .statusbar-meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .boot,
  .btn,
  .site-header,
  .ticker-track,
  .dream-beam::after,
  .caret,
  [data-reveal],
  .project,
  .hero-banner-slide {
    animation: none;
    transition: opacity 0.35s ease;
  }

  .hero-banner-slide:not(.is-active) {
    opacity: 0;
  }
}
