:root {
  --bg: #101418;
  --panel: #171d23;
  --panel-2: #1b222a;
  --line: #232b33;
  --line-2: #2d3742;
  --text: #e8ecef;
  --muted: #93a1ab;
  --amber: #ffb454;
  --amber-dim: #d98f35;
  --green: #3ddc97;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: #14100a; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap, .topbar, .footer {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand { font-family: var(--font-mono); font-size: 15px; }
.brand-prompt { color: var(--text); font-weight: 600; }
.brand-path { color: var(--muted); }

.topnav { display: flex; gap: 22px; margin-right: auto; }
.topnav a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  transition: color .2s;
}
.topnav a:hover { color: var(--amber); }

.topright { display: flex; align-items: center; gap: 16px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 40%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.toplink {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  transition: color .2s, border-color .2s;
}
.toplink:hover { color: var(--amber); border-color: var(--amber-dim); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  min-height: calc(88dvh - 64px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber);
  margin: 0 0 18px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
h1 .amber { color: var(--amber); }

.lead {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 34px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 24px;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-solid { background: var(--amber); color: #14100a; }
.btn-solid:hover { background: #ffc476; }

.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber-dim); color: var(--amber); }

/* ---------- terminal ---------- */

.term {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgb(0 0 0 / .38);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #f26d5f; }
.tdot-y { background: #f5bd4f; }
.tdot-g { background: #57c26b; }
.term-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.term-body {
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.85;
  min-height: 340px;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-cmd { color: var(--text); }
.t-cmd .t-prompt { color: var(--green); }
.t-out { color: var(--muted); }
.t-out .t-amber { color: var(--amber); }
.t-out .t-green { color: var(--green); }

.cursor { display: inline-block; }
.cursor::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--amber);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */

.section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
}

.section-sub { color: var(--muted); max-width: 62ch; margin: 0 0 44px; }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  transition: border-color .25s, transform .25s;
}
.cell:hover { border-color: var(--line-2); transform: translateY(-3px); }

.cell-a { grid-column: span 7; }
.cell-b { grid-column: span 5; }
.cell-c { grid-column: span 5; }
.cell-d { grid-column: span 7; }

.cell-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

.cell-e, .cell-f { grid-column: span 6; }
.cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 14px 0 10px;
}

.cell p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- portfolio cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: var(--amber-dim);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgb(0 0 0 / .35);
}

.shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .5s ease;
}
.card:hover .shot img { transform: scale(1.03); }

.card-body { padding: 24px 26px 28px; display: block; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
}

.card-soon {
  border-style: dashed;
  background: transparent;
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.card-soon:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.card-soon .shot-soon {
  width: 240px;
  flex: none;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px dashed var(--line-2);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.card p { color: var(--muted); font-size: 15px; margin: 0; }


.shot-soon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.soon-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 10px 18px;
}

/* ---------- contacts ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }

.contact-list a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 6px;
  transition: background .2s;
}
.contact-list a:hover { background: var(--panel); }
.contact-list a:hover .c-arrow { color: var(--amber); transform: translateX(4px); }

.c-key {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  min-width: 110px;
}
.c-val { font-weight: 600; }
.c-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--muted);
  transition: color .2s, transform .2s;
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 34px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
}
.foot-cmd .exit-ok { color: var(--green); }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 40px; }
  .term-body { min-height: 300px; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f { grid-column: span 12; }
  .cards { grid-template-columns: 1fr; }
  .card-soon { flex-direction: column; }
  .card-soon .shot-soon { width: auto; aspect-ratio: 16 / 10; border-right: none; border-bottom: 1px dashed var(--line-2); }
}

@media (max-width: 620px) {
  .topnav { display: none; }
  .topbar { gap: 16px; }
  .topright { margin-left: auto; }
  .topright .status, .topright .toplink:nth-of-type(n + 2) { display: none; }
  .section { padding: 72px 20px; }
  .c-key { min-width: 84px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
