/* =========================================================
   THE FORGE — page sections
   ========================================================= */

/* ── HERO ──────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: space-between; gap: clamp(24px, 5vh, 60px);
  padding-top: calc(var(--nav-h) + clamp(18px, 4vh, 46px));
  padding-bottom: clamp(34px, 6vh, 80px); overflow: hidden;
}
#forge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 18% 80%, rgba(12,10,8,0.78), transparent 70%),
    linear-gradient(180deg, rgba(12,10,8,0.5) 0%, transparent 22%, transparent 60%, rgba(12,10,8,0.92) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-top {
  position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.hero-status {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--bone-3); text-transform: uppercase; line-height: 2.1;
}
.hero-status .av { display: inline-flex; align-items: center; gap: 8px; }
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flux); box-shadow: 0 0 10px var(--flux); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-coord { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--bone-4); letter-spacing: 0.1em; line-height: 1.9; }

.hero-h1 { margin-bottom: 26px; }
.hero-h1 .line-mask > span { will-change: transform; }
.hero-h1 .t1 { color: var(--bone); }
.hero-h1 .t2 { color: var(--bone); }
.hero-h1 .arrow { color: var(--flux); display: inline-block; }
.hero-h1 .t3 {
  -webkit-text-stroke: 1.4px var(--bone-2); color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  display: flex; gap: clamp(24px, 5vw, 80px); flex-wrap: wrap; align-items: flex-end;
  margin-top: clamp(20px, 3vh, 36px);
}
.hero-lede { max-width: 540px; }
.hero-lede .role { color: var(--flux); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-jump {
  display: flex; gap: 0; margin-top: clamp(34px,6vh,70px); border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.hero-jump a {
  flex: 1 1 0; min-width: 150px; padding: 18px 4px 0; border-right: 1px solid var(--line-2);
  font-family: var(--font-mono); position: relative; transition: padding-left .35s var(--ease);
}
.hero-jump a:last-child { border-right: none; }
.hero-jump a .jn { font-size: 11px; color: var(--flux); letter-spacing: 0.1em; }
.hero-jump a .jt { display: block; font-family: var(--font-disp); font-weight: 600; font-size: 16px; color: var(--bone-2); margin-top: 6px; letter-spacing: -0.02em; transition: color .3s; }
.hero-jump a:hover { padding-left: 14px; }
.hero-jump a:hover .jt { color: var(--bone); }
.hero-jump a::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--flux); transition: width .4s var(--ease); }
.hero-jump a:hover::before { width: 38px; }

/* ── SECTION shell ─────────────────────────────────────── */
.section { padding: clamp(80px, 13vh, 170px) 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(56px, 8vh, 104px); flex-wrap: wrap; }
.sec-head .left { max-width: 720px; }
.sec-head h2 { margin-top: 18px; padding-bottom: 0.12em; }
.sec-head .idx { font-family: var(--font-mono); font-size: 12px; color: var(--bone-4); letter-spacing: 0.12em; white-space: nowrap; padding-bottom: 0.2em; }

/* ── ABOUT ─────────────────────────────────────────────── */
#about { border-top: 1px solid var(--line-2); }
.about-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-statement { font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.24; color: var(--bone); }
.about-statement em { font-style: normal; color: var(--flux); }
.about-body { margin-top: 30px; color: var(--bone-2); max-width: 560px; }
.about-body p + p { margin-top: 18px; }
.about-portrait { position: relative; }
.portrait-frame {
  position: relative; border: 1px solid var(--line); overflow: hidden;
  background: var(--ink-2); aspect-ratio: 620/718;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04); }
.portrait-frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12,10,8,0.6));
  mix-blend-mode: multiply;
}
.portrait-tag {
  position: absolute; left: -1px; bottom: -1px; z-index: 2; background: var(--flux); color: var(--ink);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; padding: 9px 14px; text-transform: uppercase;
}
.about-meta { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-meta div { background: var(--ink-1); padding: 16px 18px; }
.about-meta .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--bone-4); text-transform: uppercase; }
.about-meta .v { font-family: var(--font-mono); font-size: 13px; color: var(--bone); margin-top: 6px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border-block: 1px solid var(--line-2); margin-top: clamp(50px,8vh,90px); }
@media (max-width: 720px){ .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--ink); padding: 30px 22px; }
.stat .n { font-family: var(--font-disp); font-weight: 800; font-size: clamp(36px,5vw,60px); letter-spacing: -0.04em; color: var(--bone); line-height: 1; }
.stat .n .u { color: var(--flux); }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--bone-3); text-transform: uppercase; margin-top: 12px; max-width: 170px; }

/* ── WORK / project cards ──────────────────────────────── */
#work { border-top: 1px solid var(--line-2); }
.proj { border-top: 1px solid var(--line); padding: clamp(40px,6vh,72px) 0; position: relative; }
.proj:first-of-type { border-top: none; }
.proj-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.proj-info, .proj-shot { min-width: 0; }
.proj.flip .proj-grid { grid-template-columns: 1.15fr 0.85fr; }
.proj.flip .proj-info { order: 2; }
.proj.flip .proj-shot { order: 1; }
@media (max-width: 920px) { .proj-grid, .proj.flip .proj-grid { grid-template-columns: 1fr; } .proj.flip .proj-info{order:0} .proj.flip .proj-shot{order:0} }

.proj-num { font-family: var(--font-mono); font-size: 12px; color: var(--flux); letter-spacing: 0.16em; }
.proj-title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.96; margin: 16px 0 6px; }
.proj-title .x { color: var(--flux); }
.proj-kind { font-family: var(--font-mono); font-size: 12px; color: var(--bone-3); letter-spacing: 0.08em; text-transform: uppercase; }
.proj-desc { color: var(--bone-2); margin: 22px 0 24px; max-width: 480px; }
.codeblock { max-width: 100%; }
.proj-feats { list-style: none; margin: 0 0 26px; display: grid; gap: 12px; max-width: 480px; }
.proj-feats li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--bone-2); line-height: 1.5; }
.proj-feats li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--flux); font-family: var(--font-mono); }
.proj-feats li b { color: var(--bone); font-weight: 600; }
.proj-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.proj-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-stack span { font-family: var(--font-mono); font-size: 10.5px; color: var(--bone-4); letter-spacing: 0.04em; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 2px; }

.proj-shot { position: relative; }
.shot-frame {
  position: relative; border: 1px solid var(--line); background: var(--ink-2);
  overflow: hidden; box-shadow: 0 50px 90px -50px rgba(0,0,0,0.9);
}
.shot-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,90,31,0); transition: border-color .5s;
}
.proj:hover .shot-frame::before { border-color: var(--line-flux); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: var(--ink-1); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); display: block; }
.shot-bar i:nth-child(1){ background:#3a2a20 } .shot-bar i:nth-child(2){ background:#3a3324 } .shot-bar i:nth-child(3){ background:#243226 }
.shot-bar .u { margin-left: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--bone-4); letter-spacing: 0.04em; }
.shot-frame img { width: 100%; display: block; transition: transform 1.1s var(--ease); }
.proj:hover .shot-frame img { transform: scale(1.025); }
.shot-stack { position: relative; }
.shot-stack .s2 {
  position: absolute; right: -22px; bottom: -26px; width: 46%; z-index: 3;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.95); border-radius: 2px;
  transition: transform .9s var(--ease);
}
.proj:hover .shot-stack .s2 { transform: translateY(-8px) translateX(-6px); }
@media (max-width: 560px){ .shot-stack .s2 { display: none; } }

/* code mini-block */
.codeblock { border: 1px solid var(--line); background: var(--ink-1); border-radius: 3px; overflow: hidden; margin-top: 18px; }
.codeblock pre { margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--bone-2); overflow-x: auto; }
.codeblock .cm { color: var(--bone-4); }
.codeblock .kw { color: var(--flux-2); }
.codeblock .st { color: var(--ice); }

/* ── CAPABILITIES strip ────────────────────────────────── */
#stack { border-top: 1px solid var(--line-2); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
@media (max-width: 820px){ .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .cap-grid { grid-template-columns: 1fr; } }
.cap { background: var(--ink); padding: 30px 26px; position: relative; transition: background .4s; }
.cap:hover { background: var(--ink-1); }
.cap .ci { font-family: var(--font-mono); font-size: 11px; color: var(--flux); letter-spacing: 0.1em; }
.cap h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 10px; color: var(--bone); }
.cap p { font-size: 13.5px; color: var(--bone-3); line-height: 1.6; }
.cap .tools { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--bone-4); letter-spacing: 0.03em; }

/* ── contact band ──────────────────────────────────────── */
#contact { border-top: 1px solid var(--line-2); padding: clamp(90px,14vh,180px) 0; }
.contact-lead { max-width: 820px; }
.contact-lead h2 { font-size: clamp(40px, 8vw, 110px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.92; text-transform: uppercase; }
.contact-lead h2 .o { color: var(--flux); }

/* =========================================================
   MOBILE / RESPONSIVE LAYER
   ========================================================= */
@media (max-width: 760px) {
  .hero-coord { display: none; }
  .hero-top { align-items: center; }
  .hero-status { font-size: 10.5px; line-height: 1.9; }
  .hero-sub { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-jump a { flex: 1 1 45%; min-width: 0; border-bottom: 1px solid var(--line-2); padding: 14px 4px; }
  .hero-jump a:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .hero-jump a:nth-child(even) { border-right: none; }
  .hero-jump a .jt { font-size: 14px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sec-head .idx { padding-bottom: 0; }
  .proj-stack span { font-size: 10px; }
}

@media (max-width: 600px) {
  :root { --nav-h: 62px; }
  .brand-txt { font-size: 11px; }
  .brand-txt .bx { display: none; }
  .nav-links { gap: 0; }
  .nav-cta { margin-left: 6px; padding: 8px 12px; font-size: 11px; }
  .display { font-size: clamp(40px, 15vw, 76px); line-height: 0.9; }
  .hero-h1 .arrow { font-size: 0.85em; }
  .hero-status .av { font-size: 10px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .about-statement { font-size: clamp(21px, 6vw, 28px); }
  .about-meta { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat .l { font-size: 10px; }
  .proj { padding: 44px 0; }
  .proj-grid, .proj.flip .proj-grid { gap: 26px; }
  .proj-info { order: 2 !important; }
  .proj-shot { order: 1 !important; }
  .proj-title { font-size: clamp(30px, 10vw, 48px); }
  .proj-actions { width: 100%; }
  .proj-actions .btn { flex: 1 1 auto; justify-content: center; }
  .codeblock pre { font-size: 11px; padding: 14px; }
  .cap { padding: 24px 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .marquee-track span { font-size: 22px; }
  .shot-stack .s2 { display: none; }
}

@media (max-width: 380px) {
  .stat-row { grid-template-columns: 1fr; }
  .hero-jump a { flex: 1 1 100%; border-right: none !important; }
}

@media (hover: none) {
  .proj:hover .shot-frame img,
  .proj:hover .shot-stack .s2 { transform: none; }
  .btn-fill::before, .btn-ghost::before { display: none; }
}
