/* ============================================================
   Fost__ portfolio - refined minimal dev aesthetic
   ============================================================ */
:root {
  --bg:        #0B0E14;
  --surface:   #11161F;
  --surface-2: #161C28;
  --text:      #E8EDF7;
  --muted:     #97A3BE;
  --faint:     #5B6478;
  --accent:    #2E7DFF;
  --accent-br: #5AA8FF;
  --border:    rgba(255,255,255,0.08);
  --border-hi: rgba(120,160,255,0.40);
  --maxw:      1040px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  border-top: 2px solid var(--accent);
  overflow-x: hidden;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 18px;
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,14,20,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__logo { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--muted); transition: color .18s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #fff; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-family: var(--body); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border: 1px solid var(--accent); border-radius: 8px;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-br); border-color: var(--accent-br); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: transparent; border-color: var(--border-hi); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--full { width: 100%; padding: 14px; font-size: 16px; }

/* ---- hero ---- */
.hero { padding: 120px 28px 110px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 26px; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 540px; margin-bottom: 38px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero__status { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ad07a; box-shadow: 0 0 0 3px rgba(58,208,122,0.18); }

/* ---- sections ---- */
.section { padding: 72px 28px; border-top: 1px solid var(--border); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section__lead { color: var(--muted); margin-bottom: 44px; max-width: 460px; }
#work .section__title, #about .section__title { margin-bottom: 44px; }

/* ---- work grid ---- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 28px 26px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-4px); background: var(--surface-2); }
.card__tag { font-family: var(--mono); font-size: 12px; color: var(--accent-br); letter-spacing: 0.03em; }
.card__title { font-size: 1.5rem; margin: 14px 0 12px; }
.card__desc { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.card__link { font-family: var(--mono); font-size: 14px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; transition: gap .18s ease, color .18s ease; }
.card__link span { color: var(--accent); transition: transform .18s ease; }
.card__link:hover { color: var(--accent-br); }
.card__link:hover span { transform: translateX(4px); }
.card--quiet { background: transparent; border-style: dashed; }
.card--quiet:hover { background: var(--surface); }

/* ---- about ---- */
.about { max-width: 720px; }
.about p { margin-bottom: 20px; color: #c7cfe2; font-size: 17px; }
.about .hl { color: var(--accent-br); font-weight: 500; }
.stack { margin-top: 36px; }
.stack__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.chips li { font-family: var(--mono); font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; }

/* ---- contact ---- */
.contact { display: grid; grid-template-columns: 1fr 240px; gap: 48px; align-items: start; max-width: 880px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-family: var(--body); font-size: 15.5px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,125,255,0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { font-family: var(--mono); font-size: 13.5px; margin-top: 14px; min-height: 20px; }
.form__note.ok { color: #3ad07a; }
.form__note.err { color: #ff7a66; }
.contact__side { padding-top: 6px; }
.links { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.links a { font-family: var(--mono); font-size: 14px; color: var(--muted); transition: color .18s ease; }
.links a:hover { color: var(--accent-br); }
.contact__hint { font-size: 12.5px; color: var(--faint); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.footer__inner a { transition: color .18s ease; }
.footer__inner a:hover { color: var(--text); }

/* ---- reveal animation ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- nav active + hamburger ---- */
.nav__links a.active { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s ease; }

/* ---- sub-page hero ---- */
.page-hero { padding: 64px 28px 4px; }
.page-hero .section__title { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-lead { color: var(--muted); max-width: 580px; margin-top: 14px; }
.smallcaps-line { text-transform: lowercase; font-variant: small-caps; letter-spacing: 0.04em; }
.center-cta { margin-top: 32px; }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 84px 28px 70px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 2px;
    background: rgba(11,14,20,0.98);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px 22px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 9px 0; font-size: 16px; color: var(--text); }
  .nav__links .btn { margin-top: 10px; }
}
.card__media {
  display: flex; align-items: center; justify-content: center;
  height: 180px; margin-bottom: 22px;
  background: #0B0E14; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.card__media img { max-width: 80%; max-height: 82%; object-fit: contain; }
/* featured project (video + feature list) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.feature__media { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #000; }
.feature__media video { display: block; width: 100%; height: auto; }
.feature__title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 12px 0 14px; }
.feature__desc { color: var(--muted); margin-bottom: 22px; }
.feature__list { list-style: none; margin: 0 0 26px; padding: 0; columns: 2; column-gap: 22px; }
.feature__list li { position: relative; padding-left: 18px; margin-bottom: 10px; font-size: 14.5px; color: #c7cfe2; break-inside: avoid; }
.feature__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature__list { columns: 1; } }
