:root{
  --bg: #0c0d10;
  --bg2:#101218;
  --panel:#141720;
  --panel2:#181c27;
  --line:#242a3a;
  --text:#e7e9ef;
  --muted:#aeb4c2;
  --muted2:#7e8597;
  --accent:#d8dbe4;      /* “accent” still gray */
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 16px;

  /* Hex sizing */
  --hex-w: 340px;
  --hex-h: 392px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { overscroll-behavior: none; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  line-height: 1.55;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip{
  position:absolute; left:-9999px; top: 12px;
  background: var(--panel); color: var(--text);
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px;
}
.skip:focus{ left: 20px; z-index: 999; }

.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(12,13,16,.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner{
  padding: 16px 0;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 260px;
}
.brand-mark{
  width: 44px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.brand-text h1{
  font-size: 16px;
  margin: 0;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-text p{
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted2);
}

.nav{
  display:flex;
  gap: 14px;
  align-items:center;
}
.nav a{
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.03);
  text-decoration: none;
}

.hero{
  margin-top: 28px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero h2{
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .01em;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 60ch;
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.btn:hover{
  background: rgba(255,255,255,.09);
  text-decoration: none;
}
.btn-ghost{
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.hero-right{
  display:flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

/* Decorative hex cluster (hero only) */
.hex{
  width: 92px;
  height: 104px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  position:absolute;
}
.hex-cluster{
  position: relative;
  width: 240px;
  height: 200px;
}
.hex--a{ left: 20px; top: 10px; transform: rotate(2deg); }
.hex--b{ left: 110px; top: 0px; transform: rotate(-4deg); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); }
.hex--c{ left: 70px; top: 78px; transform: rotate(1deg); }
.hex--d{ left: 155px; top: 78px; transform: rotate(6deg); }
.hex--e{ left: 110px; top: 156px; transform: rotate(-3deg); }

/* Section headers */
.section-head{
  margin-top: 34px;
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 10px;
}
.section-head h3{
  margin:0;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}
.section-head p{
  margin:0;
  color: var(--muted2);
  font-size: 13px;
}

/* Projects grid */
.grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 12px;
}

.project{
  display:flex;
  justify-content: center;
  align-items: center;
}

/* Project card */
.project-card{
  width: min(100%, var(--hex-w));
  aspect-ratio: 340 / 392;
  clip-path: border-box;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.project-card__inner{
  height: 100%;
  padding: 26px 22px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

/* Subtle tech lines */
.project-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 220px at 20% 10%, rgba(255,255,255,.10), transparent 50%),
    radial-gradient(320px 200px at 80% 70%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,.05) 46% 47%, transparent 47% 100%),
    linear-gradient(0deg, transparent 0 54%, rgba(255,255,255,.04) 54% 55%, transparent 55% 100%);
  opacity: .75;
  pointer-events:none;
}

.project-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.project-top{
  display:flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}

.project-title{
  margin:0;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.project-subtitle{
  margin:0;
  font-size: 12px;
  color: var(--muted2);
}

.project-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* Tags */
.tags{
  list-style:none;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.tags li{
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 6px 8px;
  border-radius: 999px;
}

/* Links row */
.links{
  margin-top: auto;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.links a{
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}
.links a:hover{
  background: rgba(255,255,255,.05);
  text-decoration: none;
}

/* About panels */
.about{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.panel{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.panel h4{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.panel p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */
.footer{
  margin: 34px 0 40px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-inner{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.footer-inner a{ color: var(--muted); }
.footer-inner a:hover{ color: var(--text); text-decoration: none; }
.dot{ color: rgba(255,255,255,.25); }

.fineprint{
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .about{ grid-template-columns: 1fr; }
  .hero{ grid-template-columns: 1fr; }
  .hero-right{ order: -1; }
}

@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* keep header clean; easy to remove if you want */
  .header-inner{ justify-content: center; }
  .brand{ min-width: unset; }
}
