/* Bit-Tech portfolio — shared stylesheet */

:root {
  --bg: #f5f4ee;
  --ink: #14201a;
  --accent: #004225;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Archivo, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #f5f4ee; }

img { max-width: 100%; }

@keyframes caret {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.caret {
  display: inline-block;
  width: 0.45em;
  height: 0.82em;
  background: var(--accent);
  margin-left: 0.08em;
  vertical-align: baseline;
  transform: translateY(0.12em);
  animation: caret 1.1s step-end infinite;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4vw;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.nav-logo { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.nav-links > a[href^="#"] { opacity: 0.75; }
.nav-links > a[href^="#"]:hover { opacity: 1; }

.nav-cta {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent);
  padding: 9px 18px;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent); color: #f5f4ee !important; border-color: var(--accent); }

.lang-switch {
  display: flex;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}
.lang-switch a { opacity: 0.55; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; color: var(--accent); border-bottom: 1px solid var(--accent); }

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 68px 4vw clamp(36px, 7svh, 72px);
  box-sizing: border-box;
}

.hero-statusline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  padding: 18px 0 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}
.hero-statusline .green { color: var(--accent); }

.hero-comment {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-style: italic;
  color: color-mix(in oklab, var(--ink) 42%, transparent);
}

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2svh;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, min(6.5vw, 11svh), 96px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.038em;
  min-height: 2.04em;
}
.hero h1 .accent, .type-accent { color: var(--accent); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: clamp(22px, 4.5svh, 48px);
  flex-wrap: wrap;
}

.hero-sub {
  margin: 0;
  max-width: 470px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: color-mix(in oklab, var(--ink) 68%, transparent);
  text-wrap: pretty;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 8px;
  color: var(--accent);
  transition: gap 0.3s;
}
.hero-cta:hover { gap: 20px; }

/* ---------- statement (pinned laptop) ---------- */

.statement {
  height: 240vh;
  position: relative;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 60px 4vw 24px;
  overflow: hidden;
}

.laptop { width: min(1060px, 100%, 122vh); }

.laptop-lid {
  background: #181c19;
  border-radius: 20px 20px 0 0;
  padding: 14px 14px 20px;
  position: relative;
}
.laptop-cam {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2c332e;
}

.bit-os {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(120% 130% at 20% 0%, #1b3227, #0e1712 60%, #0a100c);
}

.bit-os-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: rgba(10, 16, 12, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(230, 240, 232, 0.55);
}
.bit-os-bar .dot { color: #4fbf87; }

.win-agent {
  position: absolute;
  left: 3.5%; top: 12%;
  width: 36%;
  opacity: 0.85;
  background: #0d1410;
  border: 1px solid rgba(230, 240, 232, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
}
.win-agent-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #141c17;
  border-bottom: 1px solid rgba(230, 240, 232, 0.08);
}
.win-agent-bar .b { width: 8px; height: 8px; border-radius: 50%; background: rgba(230, 240, 232, 0.18); }
.win-agent-bar .t { margin-left: 8px; font-size: 10px; color: rgba(230, 240, 232, 0.4); }
.win-agent-body { padding: 12px 13px 14px; font-size: 11px; line-height: 1.85; color: rgba(230, 240, 232, 0.55); }
.win-agent-body .ok { color: #4fbf87; }
.win-agent-body .dim { color: rgba(230, 240, 232, 0.3); }
.win-agent-body .dim2 { color: rgba(230, 240, 232, 0.35); }

.win-copilot {
  position: absolute;
  right: 3%; bottom: 6%;
  width: 37%;
  opacity: 0.92;
  background: #fbfaf6;
  border: 1px solid rgba(20, 32, 26, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5);
}
.win-copilot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #efeee7;
  border-bottom: 1px solid rgba(20, 32, 26, 0.1);
}
.win-copilot-bar .b { width: 8px; height: 8px; border-radius: 50%; background: rgba(20, 32, 26, 0.18); }
.win-copilot-bar .t { margin-left: 8px; font-family: var(--mono); font-size: 10px; color: rgba(20, 32, 26, 0.5); }
.win-copilot-body { padding: 12px 12px 13px; display: grid; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.chat-q {
  justify-self: end;
  max-width: 85%;
  background: var(--accent);
  color: #f5f4ee;
  padding: 7px 11px;
  border-radius: 10px 10px 3px 10px;
}
.chat-a {
  justify-self: start;
  max-width: 88%;
  background: rgba(20, 32, 26, 0.08);
  color: rgba(20, 32, 26, 0.85);
  padding: 7px 11px;
  border-radius: 10px 10px 10px 3px;
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  border: 1px solid rgba(20, 32, 26, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10.5px;
  color: rgba(20, 32, 26, 0.4);
}
.chat-input .enter { margin-left: auto; color: var(--accent); }

.win-code {
  position: absolute;
  left: 50%; top: 53%;
  transform: translate(-50%, -50%);
  width: 72%;
  background: #0d1410;
  border: 1px solid rgba(230, 240, 232, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.65);
}
.win-code-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  background: #16201a;
  border-bottom: 1px solid rgba(230, 240, 232, 0.1);
}
.win-code-bar .r { width: 10px; height: 10px; border-radius: 50%; background: #e0604f; }
.win-code-bar .y { width: 10px; height: 10px; border-radius: 50%; background: #dfa93f; }
.win-code-bar .g { width: 10px; height: 10px; border-radius: 50%; background: #4fbf87; }
.win-code-bar .t { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: rgba(230, 240, 232, 0.55); }
.win-code-body {
  padding: 16px 16px 20px;
  font-family: var(--mono);
  font-size: clamp(8.5px, 1.05vw, 12.5px);
  line-height: 1.8;
  overflow-x: auto;
}
.code-line { display: flex; gap: 16px; white-space: pre; min-height: 1.8em; }
.code-line .ln {
  width: 20px;
  text-align: right;
  color: rgba(230, 240, 232, 0.25);
  flex-shrink: 0;
  user-select: none;
}
.cc { color: rgba(230, 240, 232, 0.45); font-style: italic; }
.ck { color: #4fbf87; }
.cf { color: #7db3d8; }
.ct { color: #e6f0e8; }

.laptop-base {
  height: 42px;
  margin: 0 -2.5%;
  background: linear-gradient(#e6e4da 0%, #d5d3c9 45%, #b9b7ad 80%, #96948b 100%);
  border-radius: 3px 3px 22px 22px;
  position: relative;
  box-shadow: 0 16px 34px -12px rgba(20, 32, 26, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.laptop-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 150px; height: 14px;
  background: linear-gradient(#a19f95, #b3b1a7);
  border-radius: 0 0 10px 10px;
}
.laptop-edge {
  position: absolute;
  bottom: 7px; left: 0; right: 0;
  height: 1px;
  background: rgba(20, 32, 26, 0.18);
}

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

.section {
  position: relative;
  padding: 150px 4vw;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 3fr;
  gap: 32px;
  margin-bottom: 80px;
}

.mono-comment {
  font-family: var(--mono);
  font-size: 13px;
  font-style: italic;
  color: color-mix(in oklab, var(--ink) 45%, transparent);
}
.section-head .mono-comment { padding-top: 10px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 70px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 820px;
  text-wrap: balance;
}
h2 .accent { color: var(--accent); }

/* ---------- ai steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
}

.step {
  border-top: 1px solid color-mix(in oklab, var(--ink) 25%, transparent);
  padding-top: 24px;
}
.step-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--ink) 65%, transparent);
  text-wrap: pretty;
}

/* ---------- capabilities ---------- */

.caps { border-bottom: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); }

.cap {
  display: grid;
  grid-template-columns: 160px 1.1fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 32px 12px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  transition: background 0.3s;
}
.cap:hover { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.cap-tag { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.cap h3 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.cap p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--ink) 62%, transparent);
  text-wrap: pretty;
}

/* ---------- work ---------- */

.work-head {
  margin-bottom: 56px;
  display: flex;
  align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
}
.work-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.work-head .note { flex: 1 1 100%; margin-top: -18px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 40px 28px;
}

/* never more than two columns — wider screens shrank the figures and threw
   the device mockups out of proportion */
@media (min-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

.work-grid figure { margin: 0; }

.shot {
  position: relative;
  height: 340px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
}
.shot > img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.mini-laptop { position: absolute; }
.mini-laptop-lid {
  background: #181c19;
  border-radius: 10px 10px 3px 3px;
  padding: 7px 7px 9px;
  box-shadow: 0 18px 40px -18px rgba(20, 32, 26, 0.45);
}
.mini-laptop-screen {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.mini-laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mini-laptop-base {
  height: 12px;
  margin: 0 -4%;
  background: linear-gradient(#e6e4da, #b9b7ad);
  border-radius: 2px 2px 8px 8px;
  position: relative;
}
.mini-laptop-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 5px;
  background: #a19f95;
  border-radius: 0 0 5px 5px;
}

.mini-phone {
  position: absolute;
  width: min(17%, 120px);
  aspect-ratio: 9 / 19;
  background: #181c19;
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 20px 44px -16px rgba(20, 32, 26, 0.5);
  z-index: 2;
  box-sizing: border-box;
}
.mini-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
}
.mini-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mini-phone-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 34%; height: 9px;
  background: #181c19;
  border-radius: 6px;
  z-index: 3;
}

/* phone hanging beside the laptop (Popi) */
.mini-phone-side {
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
}

/* phone peeking from the bottom corner (eBusiness) */
.mini-phone-peek {
  left: 7%;
  bottom: -6%;
}

/* "under NDA" card — terminal listing of the projects we can't show */
.nda-shot {
  background: #f3ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.nda-term {
  width: min(100%, 440px);
  background: #0d1410;
  border: 1px solid rgba(230, 240, 232, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(10, 20, 14, 0.45);
  font-family: var(--mono);
}
.nda-term-body {
  padding: 16px 18px 18px;
  font-size: 12.5px;
  line-height: 2.1;
  color: #e6f0e8;
}
.nda-term-body .cmd { color: rgba(230, 240, 232, 0.5); }
.nda-term-body .cmd .green { color: #4fbf87; }
.nda-row { display: flex; gap: 14px; }
.nda-row .perm { color: rgba(230, 240, 232, 0.35); }
.nda-row .tag { margin-left: auto; color: #dfa93f; }
.nda-caret {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  background: #4fbf87;
  vertical-align: baseline;
  transform: translateY(0.15em);
  animation: caret 1.1s step-end infinite;
}

.work-grid figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 16px;
  border-top: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  padding-top: 14px;
}
.work-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: color-mix(in oklab, var(--ink) 50%, transparent);
  margin-bottom: 6px;
}
.work-meta .ref { color: var(--accent); }
.work-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.work-desc {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--ink) 62%, transparent);
  text-wrap: pretty;
}
.work-stat {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- numbers ---------- */

.numbers {
  padding: 0 4vw;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-left: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
  border-right: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
}
.number {
  padding: 56px 32px;
  border-right: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
}
.number-value {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.number-label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
  margin-top: 10px;
}

/* ---------- contact ---------- */

.contact { padding: 160px 4vw 130px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(300px, 1fr);
  gap: 72px;
}

.contact .mono-comment { margin-bottom: 24px; }

.contact h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 82px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact-alt {
  margin-top: 36px;
  font-size: 15px;
  color: color-mix(in oklab, var(--ink) 55%, transparent);
}
.contact-alt a { color: var(--ink); border-bottom: 1px solid var(--accent); }

.term-form {
  align-self: start;
  background: #0d1410;
  border: 1px solid rgba(230, 240, 232, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(10, 20, 14, 0.45);
  font-family: var(--mono);
}
.term-form-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #16201a;
  border-bottom: 1px solid rgba(230, 240, 232, 0.1);
}
.term-form-bar .r { width: 11px; height: 11px; border-radius: 50%; background: #e0604f; }
.term-form-bar .y { width: 11px; height: 11px; border-radius: 50%; background: #dfa93f; }
.term-form-bar .g { width: 11px; height: 11px; border-radius: 50%; background: #4fbf87; }
.term-form-bar .t { margin-left: 12px; font-size: 12px; color: rgba(230, 240, 232, 0.55); }
.term-form-body { padding: 22px 20px 24px; display: grid; gap: 18px; }
.term-cmd { font-size: 13px; color: rgba(230, 240, 232, 0.5); }
.term-cmd em { font-style: italic; }

.term-row { display: flex; gap: 12px; align-items: baseline; }
.term-key { font-size: 13px; color: #4fbf87; white-space: nowrap; }
.term-key .hint { color: rgba(230, 240, 232, 0.4); font-style: italic; }

.term-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(230, 240, 232, 0.18);
  color: #e6f0e8;
  font-family: var(--mono);
  font-size: 14.5px;
  padding: 6px 2px;
  outline: none;
  caret-color: #4fbf87;
  transition: border-color 0.3s;
}
.term-form input:focus { border-bottom-color: #4fbf87; }

.term-msg { display: grid; gap: 8px; }
.term-form textarea {
  background: rgba(230, 240, 232, 0.04);
  border: 1px solid rgba(230, 240, 232, 0.12);
  border-radius: 4px;
  color: #e6f0e8;
  font-family: var(--mono);
  font-size: 14.5px;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  caret-color: #4fbf87;
  transition: border-color 0.3s;
}
.term-form textarea:focus { border-color: #4fbf87; }

.term-submit {
  justify-self: start;
  background: transparent;
  color: #4fbf87;
  border: 1px solid #4fbf87;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 12px 24px;
  transition: all 0.25s;
}
.term-submit:hover:not(:disabled) { background: #4fbf87; color: #0d1410; }
.term-submit:disabled { opacity: 0.6; cursor: wait; }

.form-status { font-size: 12.5px; min-height: 1.2em; }
.form-status.ok { color: #4fbf87; }
.form-status.err { color: #e0604f; }

/* honeypot — invisible to humans */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

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

footer {
  padding: 90px 0 0;
  border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  overflow: hidden;
}
.footer-type {
  padding: 0 4vw;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  min-height: 1em;
}
.footer-type .caret { width: 0.42em; height: 0.78em; margin-left: 0.06em; transform: translateY(0.08em); }
.footer-bar {
  margin-top: 64px;
  background: var(--accent);
  color: #f5f4ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 13px 4vw;
  font-family: var(--mono);
  font-size: 12px;
}
.footer-bar .links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bar a { color: #f5f4ee; }
.footer-bar a:hover { color: #f5f4ee; text-decoration: underline; }

/* ---------- grain ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- cookie consent ---------- */
.consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(420px, calc(100vw - 40px));
  background: #0d1410;
  color: #e6f0e8;
  border: 1px solid rgba(230, 240, 232, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(10, 20, 14, 0.6);
  font-family: var(--mono);
}
.consent-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #16201a;
  border-bottom: 1px solid rgba(230, 240, 232, 0.1);
}
.consent-bar .r, .consent-bar .y, .consent-bar .g { width: 10px; height: 10px; border-radius: 50%; }
.consent-bar .r { background: #e0604f; }
.consent-bar .y { background: #dfa93f; }
.consent-bar .g { background: #4fbf87; }
.consent-bar .t { margin-left: 10px; font-size: 11.5px; color: rgba(230, 240, 232, 0.55); }
.consent-body { padding: 16px 18px 18px; display: grid; gap: 12px; }
.consent-cmd { font-size: 12.5px; color: rgba(230, 240, 232, 0.5); }
.consent-text { margin: 0; font-size: 13px; line-height: 1.55; color: #e6f0e8; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btn {
  background: transparent;
  color: rgba(230, 240, 232, 0.7);
  border: 1px solid rgba(230, 240, 232, 0.3);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 18px;
  transition: all 0.2s;
}
.consent-btn.primary { color: #4fbf87; border-color: #4fbf87; }
.consent-btn:hover { background: rgba(230, 240, 232, 0.08); color: #e6f0e8; }
.consent-btn.primary:hover { background: #4fbf87; color: #0d1410; }
.consent-btn:focus-visible { outline: 2px solid #4fbf87; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.3s ease-out; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 56px; }
  .cap { grid-template-columns: 1fr; gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .win-agent, .win-copilot { display: none !important; }
  .nav-links > a[href^="#"]:not(.nav-cta) { display: none; }
  .nav { padding: 14px 3vw; }
  .nav-logo { white-space: nowrap; }
  .nav-links { gap: 14px; }
  .lang-switch { gap: 7px; }
  .nav-cta { white-space: nowrap; padding: 8px 12px; font-size: 11.5px; }
  .work-grid { gap: 72px; }
  .work-grid figcaption { flex-direction: column; gap: 8px; }
  .section { padding: 90px 4vw; }
  .contact { padding: 100px 4vw 80px; }

  /* statement: no laptop on mobile — just the IDE window as a card */
  .statement-sticky { padding: 60px 3vw 16px; }
  .laptop { width: 100%; }
  .laptop-lid { padding: 0; background: none; border-radius: 0; }
  .laptop-cam { display: none; }
  .laptop-base { display: none; }
  .bit-os { aspect-ratio: auto; height: auto; background: none; border-radius: 0; overflow: visible; }
  .bit-os-bar { display: none; }
  .win-code {
    position: static;
    width: auto;
    transform: none;
    border-radius: 10px;
    box-shadow: 0 24px 60px -24px rgba(10, 20, 14, 0.5);
  }
  .win-code-body { font-size: 11px; padding: 12px 10px 16px; }
  .code-line { gap: 10px; }
  .code-line .ln { width: 16px; }

  /* full-bleed project screenshots: show the whole image instead of
     center-cropping it into the fixed frame (mockup figures keep theirs) */
  .shot:has(> img.cover) { height: auto; }
  .shot > img.cover { height: auto; }

  /* project phone mockups: a fixed size keeps the bezel radius and notch
     in proportion instead of shrinking into a pill */
  .mini-phone { width: 92px; padding: 4px; border-radius: 16px; }
  .mini-phone-screen { border-radius: 12px; }
  .mini-phone-notch { height: 6px; top: 5px; }
  .mini-phone-side { right: 4%; }
  .mini-phone-peek { left: 4%; bottom: 4%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
