/* ============================================================
   haggai.dev — Terminal redesign
   IBM Plex Mono + Plex Sans · lime signal · light/dark
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --acc-h: 132; --acc-c: 0.185;
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---- DARK (default) ---- */
:root, [data-theme="dark"] {
  --bg:        #0C0C0A;
  --bg-elev:   #131311;
  --bg-elev2:  #181815;
  --fg:        #F5F4EF;
  --fg-dim:    rgba(245,244,239,.60);
  --fg-dim2:   rgba(245,244,239,.40);
  --line:      rgba(245,244,239,.10);
  --line2:     rgba(245,244,239,.18);
  --acc:       oklch(0.86 var(--acc-c) var(--acc-h));
  --acc-text:  oklch(0.86 var(--acc-c) var(--acc-h));
  --on-acc:    #0C0C0A;
  --shadow:    0 24px 60px -24px rgba(0,0,0,.7);
  --grid-dot:  rgba(245,244,239,.05);
  --chip:      #ffffff;
}
/* ---- LIGHT ---- */
[data-theme="light"] {
  --bg:        #F4F3ED;
  --bg-elev:   #FBFAF5;
  --bg-elev2:  #FFFFFF;
  --fg:        #14140E;
  --fg-dim:    rgba(20,20,14,.62);
  --fg-dim2:   rgba(20,20,14,.42);
  --line:      rgba(20,20,14,.13);
  --line2:     rgba(20,20,14,.20);
  --acc:       oklch(0.82 var(--acc-c) var(--acc-h));
  --acc-text:  oklch(0.52 0.13 var(--acc-h));
  --on-acc:    #14140E;
  --shadow:    0 24px 50px -28px rgba(20,20,14,.35);
  --grid-dot:  rgba(20,20,14,.05);
  --chip:      #ffffff;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--acc); color: var(--on-acc); }

.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============ TITLEBAR ============ */
.titlebar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.titlebar .bar { display: flex; align-items: center; gap: 18px; height: 56px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.tb-dots { display: flex; gap: 7px; }
.tb-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line2); }
.tb-dots i:nth-child(1) { background: #ff5f57; }
.tb-dots i:nth-child(2) { background: #febc2e; }
.tb-dots i:nth-child(3) { background: #28c840; }
.tb-path { font-family: var(--mono); font-size: 13px; color: var(--fg-dim2); white-space: nowrap; }
.tb-path b { color: var(--acc-text); font-weight: 500; }
.tb-nav { margin-left: auto; display: flex; gap: 4px; }
.tb-nav a {
  font-family: var(--mono); font-size: 13px; color: var(--fg-dim); white-space: nowrap;
  padding: 7px 12px; border-radius: 7px; transition: color .2s, background .2s;
}
.tb-nav a:hover { color: var(--fg); background: var(--bg-elev2); }
.tb-nav a.active { color: var(--acc-text); }
.tb-right { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border: 1px solid var(--line2); background: transparent;
  border-radius: 9px; color: var(--fg); cursor: pointer; display: grid; place-items: center;
  transition: border-color .2s, background .2s;
}
.theme-btn:hover { border-color: var(--acc); background: var(--bg-elev2); }
.theme-btn svg { width: 17px; height: 17px; }
.tb-hire {
  font-family: var(--mono); font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--acc); color: var(--on-acc); padding: 9px 16px; border-radius: 8px;
  transition: transform .2s var(--ease), filter .2s;
}
.tb-hire:hover { transform: translateY(-1px); filter: brightness(1.05); }
.menu-btn { display: none; }

/* ============ SECTION SHELL ============ */
.section { padding: 110px 0; border-top: 1px solid var(--line); position: relative; }
.section:first-of-type { border-top: none; }
.sec-head { margin-bottom: 56px; }
.sec-prompt { font-family: var(--mono); font-size: 14px; color: var(--fg-dim); margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.sec-prompt .dollar { color: var(--acc-text); }
.sec-prompt .cursor { width: 8px; height: 16px; background: var(--acc); display: inline-block; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sec-title { font-family: var(--sans); font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.sec-title .dim { color: var(--fg-dim2); }
.sec-sub { color: var(--fg-dim); font-size: 18px; margin-top: 16px; max-width: 56ch; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ HERO ============ */
.hero { position: relative; min-height: calc(100vh - 56px); display: flex; flex-direction: column; padding-top: 0; border-top: none; }
.hero-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--grid-dot) 1.4px, transparent 1.4px); background-size: 30px 30px; mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%); pointer-events: none; }
.hero-inner { flex: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero-left { padding: 40px 0; }
.hero-prompt { font-family: var(--mono); font-size: 15px; color: var(--acc-text); margin-bottom: 28px; }
.hero-prompt b { color: var(--fg-dim); font-weight: 400; }
.hero h1 { font-family: var(--mono); font-weight: 600; font-size: clamp(52px, 9vw, 104px); line-height: .94; letter-spacing: -.04em; margin: 0 0 26px; }
.hero .typed { font-size: clamp(20px, 2.5vw, 28px); color: var(--fg-dim); min-height: 1.4em; margin-bottom: 14px; font-family: var(--mono); }
.hero .typed .tw { color: var(--fg); border-bottom: 2px solid var(--acc); padding-bottom: 2px; }
.hero .typed .caret { color: var(--acc); animation: blink 1.1s steps(1) infinite; }
.hero .lede { font-size: 19px; color: var(--fg-dim); max-width: 40ch; margin: 0 0 38px; line-height: 1.5; }
.hero .lede a { color: var(--acc-text); border-bottom: 1px solid var(--acc); transition: opacity .2s; }
.hero .lede a:hover { opacity: .7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { font-family: var(--mono); font-size: 14px; font-weight: 500; padding: 14px 24px; border-radius: 10px; border: 1px solid var(--line2); color: var(--fg); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--acc); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-fill { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.btn-fill:hover { filter: brightness(1.05); border-color: var(--acc); }
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: 30px; width: 100%; max-width: 340px; }
.avatar { position: relative; width: min(300px, 26vw); aspect-ratio: 1; }
.avatar .ring { position: absolute; inset: -14px; border: 1px solid var(--line2); border-radius: 50%; }
.avatar .ring::before { content: ""; position: absolute; top: -1px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); transform: translateX(-50%); box-shadow: 0 0 14px var(--acc); }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 1px solid var(--line2); background: var(--bg-elev); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s; }
.avatar:hover .avatar-img img { filter: grayscale(0) contrast(1.02); }
.avatar .status { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--acc-text); background: var(--bg-elev); border: 1px solid var(--line2); padding: 7px 13px; border-radius: 20px; display: flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: var(--shadow); }
.avatar .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--acc); } 50% { box-shadow: 0 0 0 5px transparent; } }
.hero-foot { position: relative; z-index: 1; display: flex; gap: 40px; flex-wrap: wrap; padding: 26px 0 40px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--fg-dim2); }
.hero-foot b { color: var(--fg); }
.hero-foot .s { display: flex; flex-direction: column; gap: 4px; }
.hero-foot .s .v { font-family: var(--sans); font-size: 26px; font-weight: 700; color: var(--fg); letter-spacing: -.02em; }

/* hero stack line + currently-building list */
.hero-stack { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); margin-top: 26px; line-height: 1.7; }
.hero-stack .hk { color: var(--acc-text); }
.hero-building { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hero-building .hb-label { font-family: var(--mono); font-size: 12px; color: var(--fg-dim2); margin-bottom: 2px; }
.hb-row { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-elev); transition: border-color .25s, transform .25s var(--ease); }
.hb-row:hover { border-color: var(--acc); transform: translateX(3px); }
.hb-row .hb-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hb-row .hb-n { font-family: var(--mono); font-weight: 600; font-size: 14px; white-space: nowrap; }
.hb-row .hb-d { font-size: 12.5px; color: var(--fg-dim); }
.hb-row .hb-x { margin-left: auto; color: var(--acc-text); font-family: var(--mono); }

/* ============ VENTURES ============ */
.ven-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ven-card { display: block; background: var(--bg-elev); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s; }
.ven-card:hover { transform: translateY(-4px); border-color: var(--acc); }
.ven-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }
.ven-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.ven-bar i:nth-child(1) { background: #ff5f57; }
.ven-bar i:nth-child(2) { background: #febc2e; }
.ven-bar i:nth-child(3) { background: #28c840; }
.ven-bar .t { margin-left: 6px; }
.ven-bar .ven-visit { margin-left: auto; color: var(--acc-text); white-space: nowrap; }
.ven-body { padding: 26px 26px 28px; }
.ven-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--on-acc); background: var(--acc); display: inline-block; padding: 4px 9px; border-radius: 5px; margin-bottom: 16px; }
.ven-name { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.ven-desc { color: var(--fg-dim); font-size: 16px; margin: 0 0 22px; }
.ven-cli { font-family: var(--mono); font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.ven-cli .c { color: var(--acc-text); }
.ven-cli .o { color: var(--fg-dim2); }
.ven-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ven-tags span { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; white-space: nowrap; }

/* ============ FEATURES ============ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
  position: relative; overflow: hidden; transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.feat:hover { border-color: var(--line2); transform: translateY(-4px); }
.feat .num { font-family: var(--mono); font-size: 13px; color: var(--fg-dim2); }
.feat .ic { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line2); display: grid; place-items: center; margin: 22px 0 26px; color: var(--acc-text); transition: background .3s, color .3s; }
.feat:hover .ic { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }
.feat p { color: var(--fg-dim); font-size: 16px; margin: 0; }
.feat .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.feat .tags span { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }

/* ============ PORTFOLIO ============ */
.pf { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.pf-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 80px; }
.pf-item { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 18px 18px; cursor: pointer; transition: background .25s, border-color .25s; font-family: inherit; color: inherit; }
.pf-item:hover { background: var(--bg-elev); }
.pf-item.on { background: var(--bg-elev); border-color: var(--line2); }
.pf-item .pf-i-top { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim2); margin-bottom: 8px; }
.pf-item.on .pf-i-top .dot { color: var(--acc-text); }
.pf-item h4 { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.pf-item.on h4 { color: var(--acc-text); }
.pf-item .pf-i-sub { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.pf-detail { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pf-shot { aspect-ratio: 16/9; background: var(--bg-elev2); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; display: block; }
.pf-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s var(--ease); }
.pf-shot:hover img { transform: scale(1.02); }
.pf-shot .pf-url { position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--mono); font-size: 12px; background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line2); padding: 6px 11px; border-radius: 7px; color: var(--fg-dim); transition: color .2s, border-color .2s; }
.pf-shot:hover .pf-url { color: var(--acc-text); border-color: var(--acc); }
.pf-body { padding: 30px 32px 34px; }
.pf-body h3 { font-size: 25px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; }
.pf-body p { color: var(--fg-dim); font-size: 16.5px; margin: 0 0 26px; max-width: 62ch; }
.pf-stack-label { font-family: var(--mono); font-size: 12px; color: var(--fg-dim2); margin-bottom: 12px; }
.pf-stack { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-stack span { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line2); border-radius: 8px; padding: 7px 13px; display: inline-flex; align-items: center; gap: 8px; }
.pf-stack span::before { content: "+"; color: var(--acc-text); }

/* ============ SKILLS (CLI) ============ */
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sk-panel { background: var(--bg-elev); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.sk-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }
.sk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.sk-bar i:nth-child(1) { background: #ff5f57; }
.sk-bar i:nth-child(2) { background: #febc2e; }
.sk-bar i:nth-child(3) { background: #28c840; }
.sk-bar .t { margin-left: 6px; }
.sk-body { padding: 24px 22px 28px; }
.sk-cmd { font-family: var(--mono); font-size: 13.5px; color: var(--acc-text); margin-bottom: 22px; }
.sk-cmd b { color: var(--fg-dim); font-weight: 400; }
.sk-row { display: grid; grid-template-columns: 120px 1fr 46px; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13.5px; margin: 13px 0; }
.sk-row .lbl { color: var(--fg); }
.sk-meter { font-size: 14px; letter-spacing: 1.5px; color: var(--fg-dim2); white-space: nowrap; overflow: hidden; position: relative; }
.sk-meter .fill { color: var(--acc); }
.sk-row .pct { text-align: right; color: var(--fg-dim); }

/* ============ TESTIMONIALS ============ */
.tst-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tst-marquee { display: flex; gap: 18px; width: max-content; animation: scrollx 140s linear infinite; }
.tst-track { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.tst-track:hover .tst-marquee { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tst-marquee { animation: none; flex-wrap: wrap; width: auto; } }
.tst {
  width: 380px; flex-shrink: 0; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: border-color .3s;
}
.tst:hover { border-color: var(--line2); }
.tst-top { display: flex; align-items: center; gap: 13px; }
.tst-mono { position: relative; overflow: hidden; width: 44px; height: 44px; border-radius: 10px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 15px; flex-shrink: 0; }
.tst-mono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tst-who { min-width: 0; flex: 1; }
.tst-who .n { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.tst-who .r { font-size: 13px; color: var(--fg-dim); }
.tst-stars { margin-left: auto; align-self: flex-start; white-space: nowrap; font-size: 13px; color: var(--acc-text); letter-spacing: 1px; font-family: var(--mono); }
.tst-quote { font-size: 15px; color: var(--fg-dim); line-height: 1.55; margin: 0; flex: 1; }
.tst-meta { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim2); padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }

/* ============ CLIENTS ============ */
.cl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cl-tab { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); background: transparent; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 16px; cursor: pointer; transition: all .2s; }
.cl-tab:hover { color: var(--fg); border-color: var(--fg-dim2); }
.cl-tab.on { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.cl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cl-card { background: var(--chip); border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 16/10; display: grid; place-items: center; padding: 24px; transition: transform .25s var(--ease), border-color .25s; position: relative; overflow: hidden; }
.cl-card:hover { transform: translateY(-3px); border-color: var(--acc); }
.cl-card img { max-width: 78%; max-height: 56px; object-fit: contain; transition: transform .25s; }
.cl-card:hover img { transform: scale(1.04); }
.cl-card .arr { position: absolute; top: 10px; right: 12px; font-family: var(--mono); font-size: 12px; color: rgba(20,20,14,.3); opacity: 0; transition: opacity .2s; }
.cl-card:hover .arr { opacity: 1; }

/* ============ CONTACT ============ */
.ct { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: start; }
.ct-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.ct-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ct-id .mono-av { width: 54px; height: 54px; border-radius: 12px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 19px; }
.ct-id .n { font-size: 19px; font-weight: 600; }
.ct-id .r { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); }
.ct-card p { color: var(--fg-dim); font-size: 15.5px; }
.ct-lines { font-family: var(--mono); font-size: 13.5px; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.ct-lines .row { display: flex; gap: 10px; align-items: center; color: var(--fg-dim); }
.ct-lines .row .k { color: var(--acc-text); }
.ct-lines .row a:hover { color: var(--fg); }
.ct-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ct-cta .btn { justify-content: center; }
.ct-form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; padding: 8px; overflow: hidden; }
.ct-form .form-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-family: var(--mono); font-size: 13px; color: var(--fg-dim); border-bottom: 1px solid var(--line); }
.ct-form .form-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); }
.ct-form .form-bar i:nth-child(1) { background: #ff5f57; }
.ct-form .form-bar i:nth-child(2) { background: #febc2e; }
.ct-form .form-bar i:nth-child(3) { background: #28c840; }
.ct-form form { padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld.full { grid-column: 1 / -1; }
.fld label { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.fld label .req { color: var(--acc-text); }
.fld input, .fld textarea { font-family: var(--sans); font-size: 15px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; color: var(--fg); transition: border-color .2s; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--acc); }
.fld.err input, .fld.err textarea { border-color: oklch(0.65 0.2 25); }
.fld .msg { font-family: var(--mono); font-size: 11px; color: oklch(0.7 0.18 25); }
.ct-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.ct-sent { font-family: var(--mono); font-size: 13px; color: var(--acc-text); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-6px); transition: all .3s; }
.ct-sent.show { opacity: 1; transform: none; }
.ct-err { font-family: var(--mono); font-size: 12.5px; color: oklch(0.7 0.18 25); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.footer .brand .acc { color: var(--acc-text); }
.footer .cp { font-family: var(--mono); font-size: 13px; color: var(--fg-dim2); }
.footer .socials { display: flex; gap: 8px; }
.footer .socials a { width: 38px; height: 38px; border: 1px solid var(--line2); border-radius: 9px; display: grid; place-items: center; color: var(--fg-dim); transition: all .2s; }
.footer .socials a:hover { color: var(--on-acc); background: var(--acc); border-color: var(--acc); }
.footer .socials a svg { width: 16px; height: 16px; }

/* back to top */
.totop { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; background: var(--acc); color: var(--on-acc); border: none; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(14px) scale(.9); transition: all .3s var(--ease); z-index: 55; box-shadow: var(--shadow); }
.totop.show { opacity: 1; transform: none; }
.totop:hover { filter: brightness(1.06); }
.totop svg { width: 19px; height: 19px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-right { display: flex; order: -1; margin-bottom: 30px; }
  .hero-aside { max-width: 100%; gap: 0; }
  .hero-building { display: none; }
  .avatar { width: 168px; }
  .hero h1 { font-size: clamp(52px, 14vw, 80px); }
  .ven-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .pf { grid-template-columns: 1fr; }
  .pf-list { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .pf-item { min-width: 200px; }
  .sk-grid { grid-template-columns: 1fr; }
  .ct { grid-template-columns: 1fr; }
  .cl-grid { grid-template-columns: repeat(2, 1fr); }
  .ct-form form { grid-template-columns: 1fr; }
}
/* Switch the (now 8-item) nav to the hamburger earlier so it never crowds the bar */
@media (max-width: 1080px) {
  .tb-nav { display: none; }
  .tb-right { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line2); background: transparent; border-radius: 9px; color: var(--fg); cursor: pointer; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 80px 0; }
  .cl-grid { grid-template-columns: 1fr; }
  .tb-path { display: none; }
}

/* mobile menu sheet */
.msheet { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; padding: 24px; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.msheet.open { opacity: 1; visibility: visible; pointer-events: auto; }
.msheet .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.msheet .brand { font-family: var(--mono); font-weight: 600; }
.msheet a.link { font-family: var(--mono); font-size: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.msheet a.link:active { color: var(--acc-text); }
.msheet .x { background: none; border: 1px solid var(--line2); border-radius: 9px; width: 40px; height: 40px; color: var(--fg); cursor: pointer; }
