:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-2: #161616;
  --text: #f4f4f0;
  --muted: #a0a0a0;
  --line: rgba(255,255,255,.12);
  --accent: #d7ff55;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 5%, rgba(215,255,85,.08), transparent 30%), radial-gradient(circle at 90% 30%, rgba(255,255,255,.035), transparent 30%);
  z-index: -2;
}
.noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(10,10,10,.72);
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--max))/2));
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.brand-mark {
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--line);
  padding: 8px 9px;
  font-size: 12px;
  letter-spacing: .08em;
}
.brand-name { font-size: 14px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14px; color: #cfcfcf; }
.nav a:hover { color: white; }
.nav-cta { color: var(--accent) !important; }
.hero { padding: 118px 0 80px; }
.eyebrow, .kicker {
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  color: #b8b8b8;
}
.eyebrow { display: flex; gap: 10px; align-items: center; }
.dot { width: 7px; height: 7px; border-radius: 100%; background: var(--accent); box-shadow: 0 0 18px rgba(215,255,85,.6); }
h1 {
  font-size: clamp(58px, 8vw, 112px);
  letter-spacing: -.065em;
  line-height: .9;
  margin: 30px 0 32px;
  max-width: 1050px;
}
h1 span { color: #8e8e8e; }
.hero-copy { max-width: 720px; color: #b7b7b7; font-size: clamp(18px, 2.1vw, 25px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin: 38px 0 72px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 14px 18px;
  min-height: 48px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: .2s ease;
}
.button.primary { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.button.primary:hover { transform: translateY(-2px); }
.button.ghost { background: transparent; color: white; }
.button.ghost:hover { background: #171717; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta div { padding: 24px 18px 24px 0; }
.hero-meta div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-meta span { display: block; font-family: "JetBrains Mono"; font-size: 10px; color: #737373; letter-spacing: .12em; margin-bottom: 8px; }
.hero-meta strong { font-size: 13px; font-weight: 600; color: #d7d7d7; }
.marquee-wrap { overflow: hidden; border-bottom: 1px solid var(--line); padding: 16px 0; }
.marquee { width: max-content; display: flex; gap: 34px; animation: move 26s linear infinite; color: #6f6f6f; font: 500 11px "JetBrains Mono"; letter-spacing: .12em; }
.marquee span::after { content: " /"; color: #343434; }
@keyframes move { to { transform: translateX(-50%); } }
.section { padding: 112px 0; }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 50px; }
.section-head.compact { margin-bottom: 36px; }
h2 { font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.05em; margin: 12px 0 0; max-width: 760px; }
.section-note { color: #8d8d8d; max-width: 270px; text-align: right; margin: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project, .skill-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  padding: 30px;
  min-height: 330px;
  transition: transform .25s ease, border-color .25s ease;
}
.project:hover, .skill-card:hover { transform: translateY(-4px); border-color: rgba(215,255,85,.34); }
.project-featured { grid-column: span 2; min-height: 410px; }
.project-topline { display: flex; justify-content: space-between; gap: 16px; color: #7e7e7e; font: 11px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .08em; }
.project h3 { font-size: clamp(34px, 4vw, 58px); margin: 50px 0 14px; letter-spacing: -.045em; }
.project p { color: #a9a9a9; max-width: 690px; line-height: 1.65; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.project-tags span { border: 1px solid var(--line); color: #bcbcbc; padding: 7px 9px; font: 10px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .06em; }
.project-detail { margin-top: 46px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.project-detail div { border-top: 1px solid var(--line); padding-top: 14px; }
.project-detail small { color: #767676; display: block; font: 10px "JetBrains Mono"; text-transform: uppercase; margin-bottom: 7px; }
.project-detail strong { font-size: 14px; }
.project-concept { border-style: dashed; }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-card { min-height: 270px; }
.skill-number { color: var(--accent); font: 11px "JetBrains Mono"; }
.skill-card h3 { font-size: 24px; margin: 54px 0 14px; }
.skill-card p { color: #999; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: start; border-top: 1px solid var(--line); }
.about-copy { font-size: clamp(19px, 2vw, 25px); line-height: 1.65; color: #adadad; }
.about-copy p:first-child { margin-top: 4px; }
.principles { border-top: 1px solid var(--line); }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; }
.principles-grid > div { padding: 24px 28px 24px 0; }
.principles-grid > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.principles-grid span { font: 11px "JetBrains Mono"; color: #767676; }
.principles-grid h3 { font-size: 22px; margin-top: 42px; }
.principles-grid p { color: #8f8f8f; line-height: 1.6; }
.contact { margin-top: 40px; margin-bottom: 40px; padding: 72px; background: var(--accent); color: #090909; display: flex; justify-content: space-between; gap: 40px; align-items: end; }
.contact .kicker { color: #343434; }
.contact h2 { max-width: 700px; }
.contact p { max-width: 620px; line-height: 1.6; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.contact .button.primary { background: #0a0a0a; color: white; border-color: #0a0a0a; }
.contact .button.ghost { border-color: rgba(0,0,0,.25); color: #0a0a0a; }
.contact .button.ghost:hover { background: rgba(0,0,0,.08); }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 20px; color: #6f6f6f; font-size: 12px; }
@media (max-width: 820px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 82px; }
  .hero-meta, .skills-grid, .projects-grid, .about-grid, .principles-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .hero-meta div + div, .principles-grid > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
  .contact { padding: 42px 26px; flex-direction: column; align-items: stretch; }
  .contact-actions { min-width: 0; }
  .footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { padding-inline: 14px; }
  .brand-name { display: none; }
  h1 { font-size: 54px; }
  .project, .skill-card { padding: 22px; }
  .project-detail { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.project-link:hover, .text-link:hover, .footer-link:hover { color: var(--accent); }
.project-visit { margin-top: 20px !important; }
.project-visit a, .text-link { color: var(--accent); font-weight: 650; }
.blog-section { border-top: 1px solid var(--line); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); padding: 28px; min-height: 300px; display: flex; flex-direction: column; }
.blog-card:hover { border-color: rgba(215,255,85,.34); }
.blog-featured { grid-column: span 2; }
.blog-meta, .draft-label { font: 10px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .08em; color: #777; }
.blog-card h3 { font-size: clamp(25px, 3vw, 42px); line-height: 1.08; letter-spacing: -.035em; margin: 42px 0 14px; }
.blog-card p { color: #9f9f9f; line-height: 1.65; max-width: 650px; }
.blog-card .text-link, .blog-card .draft-label { margin-top: auto; padding-top: 24px; }
.blog-all { margin-top: 18px; }
.footer-link { color: #a9a9a9; }
@media (max-width: 820px) { .blog-grid { grid-template-columns: 1fr; } .blog-featured { grid-column: span 1; } }

/* Case studies */
.case-studies-section { border-top: 1px solid var(--line); }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-card { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 28px; }
.case-card-head { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 18px; align-items: center; font: 11px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .08em; }
.case-card-head span { color: #6f6f6f; }
.case-card-head strong { color: #ededed; font-size: 12px; }
.case-blurred { margin-top: 54px; filter: blur(7px); opacity: .44; transform: scale(1.015); user-select: none; pointer-events: none; }
.case-label { color: var(--accent); font: 10px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .08em; }
.case-blurred h3 { max-width: 560px; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; margin: 15px 0 30px; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.case-metrics span { border: 1px solid var(--line); padding: 8px 10px; font: 10px "JetBrains Mono"; color: #999; }
.case-lock { position: absolute; z-index: 4; inset: 66px 20px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, rgba(12,12,12,.48), rgba(12,12,12,.16) 54%, transparent 78%); }
.case-lock span { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid rgba(215,255,85,.34); background: rgba(215,255,85,.08); color: var(--accent); font: 10px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .09em; }
.case-lock small { max-width: 330px; margin-top: 12px; color: #8d8d8d; line-height: 1.5; }
.case-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 55%, rgba(215,255,85,.025)); }
@media (max-width: 820px) { .case-grid { grid-template-columns: 1fr; } }


/* Pre-launch project privacy: keep the portfolio structure visible while obscuring unfinished/publicly-unreleased work. */
.project-locked {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  cursor: default;
}
.project-locked > * {
  filter: blur(8px);
  opacity: .42;
  transform: scale(1.01);
  user-select: none;
  pointer-events: none;
}
.project-locked::before {
  content: "PROJECT PREVIEW HIDDEN UNTIL LAUNCH";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 42px);
  padding: 12px 15px;
  border: 1px solid rgba(215,255,85,.42);
  background: rgba(10,10,10,.88);
  color: var(--accent);
  font: 10px "JetBrains Mono";
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 12px 42px rgba(0,0,0,.45);
}
.project-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(12,12,12,.16), rgba(12,12,12,.34));
}


/* Final contact form */
.contact { align-items: center; }
.contact-intro { max-width: 570px; }
.contact-form { width: min(100%, 430px); display: grid; gap: 10px; }
.contact-form label { font: 600 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(0,0,0,.24); background: rgba(255,255,255,.72); color: #090909; padding: 14px 15px; font: inherit; border-radius: 0; outline: none; }
.contact-form textarea { resize: vertical; min-height: 132px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #090909; background: #fff; }
.contact-form .button { margin-top: 4px; width: 100%; }
.form-status { min-height: 20px; margin: 2px 0 0 !important; font-size: 13px; }
.form-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 820px) { .contact-form { width: 100%; } }
