/* KuhlForge styles.css v10 */

:root{
  --bg:#02040a;
  --bg-2:#040816;
  --panel:rgba(8,14,28,.82);
  --panel-2:rgba(5,10,20,.72);
  --text:#f5f7ff;
  --muted:#9aa7c5;
  --line:rgba(86,135,255,.18);
  --blue:#168bff;
  --blue-2:#59c8ff;
  --cyan:#71e7ff;
  --purple:#7a39ff;
  --shadow:rgba(0,0,0,.42);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  overflow-x:hidden;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 82% 10%,rgba(22,139,255,.08),transparent 20%),
    radial-gradient(circle at 20% 16%,rgba(122,57,255,.06),transparent 18%),
    linear-gradient(180deg,#02040a 0%,#030610 38%,#02040a 100%);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.12;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(41,92,170,.07) 0,
      rgba(41,92,170,.07) 1px,
      transparent 1px,
      transparent 78px
    ),
    linear-gradient(180deg,transparent 0%,rgba(22,139,255,.03) 100%);
}

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

img{
  max-width:100%;
  display:block;
}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(2,4,10,.9);
  border-bottom:1px solid rgba(86,135,255,.12);
  backdrop-filter:blur(18px);
}

.nav-shell{
  max-width:1240px;
  margin:0 auto;
  padding:14px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand img{
  width:245px;
  height:auto;
}

.nav-links{
  display:flex;
  gap:34px;
  color:var(--muted);
  font-weight:800;
  font-size:.93rem;
}

.nav-links a{
  transition:color .2s ease,text-shadow .2s ease;
}

.nav-links a:hover{
  color:#fff;
  text-shadow:0 0 14px rgba(89,200,255,.24);
}

main{
  max-width:1240px;
  margin:0 auto;
  padding:0 26px 70px;
}

/* hero */
.hero{
  position:relative;
  min-height:680px;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
  background:
    linear-gradient(90deg,#02040a 0%,#03050b 50%,#02040a 100%);
}

.hero-copy{
  position:relative;
  z-index:12;
  width:50%;
  max-width:640px;
  transform:translateY(-6px);
}

.eyebrow,
.section-kicker{
  color:var(--cyan);
  font-family:"JetBrains Mono","IBM Plex Mono","Space Mono",monospace;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.18em;
}

.hero h1{
  margin:16px 0 18px;
  font-family:"IBM Plex Mono","Space Mono","JetBrains Mono",monospace;
  font-weight:600;
  font-size:clamp(3.05rem,4.15vw,4.35rem);
  line-height:1.03;
  letter-spacing:-.045em;
  white-space:nowrap;
}

.hero h1 span{
  color:var(--purple);
  text-shadow:0 0 18px rgba(122,57,255,.26);
}

.hero-text{
  max-width:520px;
  margin:0 0 28px;
  color:#c8d3ee;
  font-size:1.08rem;
  line-height:1.6;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  min-height:54px;
  padding:0 22px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  border:1px solid rgba(86,135,255,.34);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,#7a39ff 0%,#168bff 100%);
  box-shadow:0 0 34px rgba(22,139,255,.3),inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-primary:hover{
  box-shadow:0 0 46px rgba(22,139,255,.44),inset 0 1px 0 rgba(255,255,255,.18);
}

.btn-secondary{
  color:#fff;
  background:rgba(8,14,28,.42);
  border-color:rgba(86,135,255,.28);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.btn-secondary:hover{
  border-color:rgba(89,200,255,.52);
  box-shadow:0 0 24px rgba(89,200,255,.12),inset 0 1px 0 rgba(255,255,255,.05);
}

/* hero code */
.hero-code{
  position:absolute;
  z-index:5;
  left:39%;
  top:7%;
  margin:0;
  color:var(--cyan);
  opacity:.16;
  font-family:"JetBrains Mono","IBM Plex Mono","Space Mono",monospace;
  font-size:.92rem;
  line-height:1.65;
  letter-spacing:.02em;
  text-shadow:0 0 22px rgba(77,245,255,.18);
  pointer-events:none;
  user-select:none;
  animation:codeBreath 6.2s ease-in-out infinite;
}

/* hero art area */
.hero-art{
  position:absolute;
  inset:0 0 0 auto;
  z-index:4;
  width:74%;
  pointer-events:none;
  overflow:visible;
}

/* main glow behind forge opening */
.hero-art::before{
  content:"";
  position:absolute;
  z-index:1;
  left:55%;
  top:35%;
  width:500px;
  height:250px;
  transform:translate(-50%,-50%);
  background:
  radial-gradient(
    ellipse at center,
    rgba(77, 245, 255, 0.42) 0%,
    rgba(22, 139, 255, 0.32) 24%,
    rgba(0, 95, 255, 0.20) 48%,
    rgba(122, 57, 255, 0.08) 64%,
    rgba(0, 0, 0, 0) 78%
  );
  filter:blur(52px);
  opacity:.98;
  animation:forgePulse 2.8s ease-in-out infinite;
}

/* heat shimmer */
.hero-art::after{
  content:"";
  position:absolute;
  z-index:6;
  left:56%;
  top:31%;
  width:340px;
  height:170px;
  transform:translate(-50%,-50%);
  background:
  linear-gradient(
    180deg,
    rgba(77, 245, 255, 0) 0%,
    rgba(77, 245, 255, 0.16) 20%,
    rgba(22, 139, 255, 0.30) 48%,
    rgba(0, 95, 255, 0.16) 76%,
    rgba(77, 245, 255, 0) 100%
  );
  filter:blur(10px);
  opacity:.42;
  mix-blend-mode:screen;
  animation:heatShimmer 3.2s ease-in-out infinite;
}

.hero-anvil{
  position:absolute;
  left:95px;
  top:40%;
  width:min(820px,70vw);
  height:auto;
  z-index:5;
  transform:translateY(-50%);
  filter:drop-shadow(0 0 18px rgba(22,139,255,.14));
}

/* panels / sections */
.forge-panel,
.project-card,
.statement-panel{
  background:linear-gradient(180deg,var(--panel) 0%,var(--panel-2) 100%);
  border:1px solid var(--line);
  box-shadow:0 24px 100px var(--shadow),inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter:blur(18px);
}

.forge-panel{
  position:relative;
  z-index:4;
  border-radius:22px;
  padding:28px;
  margin-top:0;
}

.section-kicker{
  display:flex;
  align-items:center;
  gap:10px;
}

.section-kicker span{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--purple);
  box-shadow:0 0 16px var(--purple);
}

.principles{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.principles article{
  min-height:160px;
  padding:26px;
  text-align:center;
  border-left:1px solid rgba(86,135,255,.17);
}

.principles article:first-child{
  border-left:0;
}

.principle-icon{
  margin:0 auto 16px;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:1px solid rgba(122,57,255,.45);
  border-radius:15px;
  color:var(--cyan);
  background:rgba(122,57,255,.09);
  box-shadow:0 0 24px rgba(122,57,255,.25);
  font-family:"JetBrains Mono","IBM Plex Mono",monospace;
  font-weight:700;
}

h2{
  margin:10px 0 8px;
  font-size:clamp(2.2rem,4vw,3.35rem);
  letter-spacing:-.055em;
}

h3{
  margin:0 0 8px;
  font-size:1.12rem;
}

.principles p,
.section-heading p,
.project-card p,
.project-card li,
.statement-panel p,
.contact-section p,
footer p,
footer small{
  color:var(--muted);
  line-height:1.62;
}

.work-section{
  padding:88px 0;
}

.section-heading{
  margin-bottom:30px;
}

.project-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.project-card{
  border-radius:22px;
  padding:24px;
  overflow:hidden;
  position:relative;
}

.project-image-wrap{
  position:relative;
  height:280px;
  margin:-24px -24px 20px;
  overflow:hidden;
  border-bottom:1px solid rgba(86,135,255,.15);
  background:#050a16;
}

.project-image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.04em;
  background:rgba(22,139,255,.16);
  color:#cbe6ff;
  border:1px solid rgba(22,139,255,.25);
  margin-bottom:14px;
}

.tag-purple{
  background:rgba(122,57,255,.17);
  border-color:rgba(122,57,255,.28);
  color:#e5d6ff;
}

.stack{
  margin-top:18px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.stack span{
  padding:7px 10px;
  border-radius:10px;
  font-size:.78rem;
  color:#d7e1f6;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.statement-panel{
  border-radius:24px;
  padding:68px 34px;
  text-align:center;
}

.statement-panel p{
  max-width:760px;
  margin:18px auto 0;
  font-size:1.08rem;
}

.contact-section{
  margin-top:34px;
  padding:76px 0 40px;
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
}

footer{
  max-width:1240px;
  margin:0 auto;
  padding:34px 26px 60px;
  border-top:1px solid rgba(86,135,255,.18);
  display:grid;
  gap:12px;
}

footer img{
  width:230px;
  height:auto;
}

footer p{
  max-width:480px;
}

/* animations */
@keyframes codeBreath{
  0%,100%{
    opacity:.12;
    transform:translateY(0);
  }
  50%{
    opacity:.22;
    transform:translateY(-5px);
  }
}

@keyframes forgePulse{
  0%,100%{
    opacity:.72;
    transform:translate(-50%,-50%) scale(.98);
  }
  50%{
    opacity:1;
    transform:translate(-50%,-50%) scale(1.08);
  }
}

@keyframes heatShimmer{
  0%,100%{
    opacity:.30;
    transform:translate(-50%,-50%) scale(1);
  }
  50%{
    opacity:.52;
    transform:translate(-50%,-52%) scale(1.05);
  }
}

/* accessibility */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-code,
  .hero-art::before,
  .hero-art::after{
    animation:none;
  }
}

/* responsive */
@media (max-width:1100px){
  .hero-copy{
    width:52%;
    max-width:600px;
  }

  .hero h1{
    font-size:clamp(2.85rem,4.5vw,3.9rem);
  }

  .hero-anvil{
    left:92px;
    top:calc(50% - 2px);
    width:min(740px,70vw);
  }

  .hero-code{
    left:35%;
    top:8%;
    font-size:.84rem;
  }

  .hero-art::before{
    left:55%;
    top:33%;
  }

  .hero-art::after{
    left:55%;
    top:31%;
  }
}

@media (max-width:980px){
  .hero{
    min-height:auto;
    display:block;
    padding:70px 0 36px;
  }

  .hero-copy{
    width:100%;
    max-width:620px;
    transform:none;
  }

  .hero h1{
    white-space:normal;
  }

  .hero-text{
    max-width:520px;
  }

  .hero-code{
    left:8%;
    top:46%;
    font-size:.8rem;
    opacity:.1;
  }

  .hero-art{
    position:relative;
    width:100%;
    height:390px;
    margin-top:8px;
  }

  .hero-art::before{
    left:52%;
    top:30%;
    width:420px;
    height:220px;
  }

  .hero-art::after{
    left:52%;
    top:28%;
    width:280px;
    height:140px;
  }

  .hero-anvil{
    left:50%;
    top:46%;
    width:min(760px,118vw);
    transform:translate(-50%,-50%);
  }

  .principles,
  .project-grid{
    grid-template-columns:1fr;
  }

  .principles article{
    border-left:0;
    border-top:1px solid rgba(86,135,255,.17);
  }

  .principles article:first-child{
    border-top:0;
  }

  .contact-section{
    display:grid;
  }
}

@media (max-width:640px){
  .nav-shell{
    padding:14px 18px;
  }

  .brand img{
    width:205px;
  }

  .nav-links{
    display:none;
  }

  main{
    padding-inline:18px;
  }

  .hero h1{
    font-size:3.15rem;
    line-height:1.04;
  }

  .hero-text{
    font-size:1rem;
  }

  .hero-art{
    height:300px;
  }

  .hero-anvil{
    width:min(720px,132vw);
  }

  .project-image-wrap{
    height:240px;
  }

  .statement-panel{
    padding:42px 22px;
  }

  footer img{
    width:205px;
  }
}
