:root{
  --bg:#f4ece7;
  --bg-soft:#fbf6f2;
  --surface:rgba(255,255,255,.65);
  --surface-strong:rgba(255,255,255,.82);
  --surface-dark:#3b2e2f;
  --text:#342728;
  --muted:#6f5d5e;
  --muted-2:#8b7576;
  --line:rgba(88,61,63,.12);
  --shadow:0 20px 60px rgba(91,63,65,.12);
  --shadow-soft:0 10px 30px rgba(91,63,65,.08);
  --accent:#c08779;
  --accent-2:#e1b7ad;
  --accent-3:#8a5a5f;
  --success:#7d9b84;
}

[data-theme="dark"]{
  --bg:#1c1718;
  --bg-soft:#241d1e;
  --surface:rgba(47,36,38,.82);
  --surface-strong:rgba(57,44,46,.95);
  --surface-dark:#f6efea;
  --text:#f7efea;
  --muted:#d6c6c1;
  --muted-2:#bfaeaa;
  --line:rgba(255,255,255,.10);
  --shadow:0 24px 70px rgba(0,0,0,.32);
  --shadow-soft:0 12px 36px rgba(0,0,0,.25);
  --accent:#dfaa9d;
  --accent-2:#b87972;
  --accent-3:#f0cbc0;
  --success:#9bc1a3;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(224,183,173,.38), transparent 32%),
    radial-gradient(circle at top right, rgba(192,135,121,.18), transparent 28%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  min-height:100vh;
  overflow-x:hidden;
}

a{color:inherit}
button{font:inherit}

.bg{position:fixed; inset:0; pointer-events:none; z-index:-1; overflow:hidden}
.noise{
  position:absolute; inset:0;
  opacity:.08;
  background-image:radial-gradient(rgba(120,90,90,.35) .6px, transparent .6px);
  background-size:18px 18px;
}
.blob{
  position:absolute;
  border-radius:999px;
  filter:blur(90px);
  opacity:.36;
}
.blob-a{width:320px;height:320px;background:#f1d2c7;left:-90px;top:-70px}
.blob-b{width:380px;height:380px;background:#ecd7bf;right:-120px;top:80px}
.blob-c{width:300px;height:300px;background:#d7c4dd;left:45%;bottom:-120px}

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

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(18px);
  background:color-mix(in srgb, var(--bg-soft) 82%, transparent);
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  min-height:76px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.brand__mark{
  width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--accent-2), var(--accent));
  color:#fff7f4;
  box-shadow:var(--shadow-soft);
  font-size:15px;
}
.brand__text{
  font-weight:800;
  letter-spacing:.04em;
  text-transform:lowercase;
}
.nav{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  padding:10px 14px;
  border-radius:999px;
  transition:.2s ease;
}
.nav a:hover{background:rgba(255,255,255,.55); color:var(--text)}
.actions{display:flex; align-items:center; gap:10px}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  font-weight:700;
  font-size:13px;
}
.discordIcon{width:16px; height:16px}
.iconbtn{
  width:42px; height:42px;
  border:none; border-radius:14px;
  background:var(--surface);
  color:var(--text);
  display:grid; place-items:center;
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  border:1px solid var(--line);
  transition:.2s ease;
}
.iconbtn:hover{transform:translateY(-1px); background:var(--surface-strong)}

.hero{
  display:grid; grid-template-columns:1.2fr .8fr; gap:22px;
  padding:54px 0 26px;
  align-items:stretch;
}
.eyebrow,.section__eyebrow{
  margin:0 0 12px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--accent-3);
  font-weight:800;
}
h1{
  margin:0 0 14px;
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:clamp(3rem, 6vw, 5.2rem);
  line-height:.95;
  font-weight:700;
}
.lead{
  margin:0;
  max-width:720px;
  font-size:16px;
  line-height:1.8;
  color:var(--muted);
}
.lead strong{color:var(--text)}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin:24px 0 18px}
.btn{
  border:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:16px;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--line);
}
.btn.primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff9f7;
}
.btn.secondary,.btn.small{
  background:var(--surface);
  color:var(--text);
}
.btn:hover{transform:translateY(-1px)}
.chips,.pillRow,.contactMini,.spotsRow,.miniRow,.socials,.dots,.footer__right{
  display:flex; flex-wrap:wrap; gap:10px;
}
.chip,.pillmini{
  display:inline-flex; align-items:center; gap:6px;
  padding:9px 12px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:700;
  font-size:12px;
}
.socials{margin-top:18px}
.slink{
  text-decoration:none;
  padding:10px 14px;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  border:1px dashed var(--line);
  font-weight:700;
  font-size:13px;
}
.slink:hover{background:var(--surface)}

.card{
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow);
  border-radius:28px;
  padding:22px;
  backdrop-filter:blur(14px);
}
.heroCard{
  display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(180deg, var(--surface-strong), var(--surface));
}
.heroCard__top{display:flex; align-items:center; gap:10px; font-weight:700; color:var(--muted)}
.statusDot{width:10px; height:10px; border-radius:50%; background:var(--success); box-shadow:0 0 0 6px rgba(125,155,132,.15)}
.heroStats{display:grid; gap:14px; margin:20px 0}
.stat{padding:14px 16px; border-radius:20px; background:rgba(255,255,255,.32); border:1px solid var(--line)}
[data-theme="dark"] .stat{background:rgba(255,255,255,.03)}
.stat__label{display:block; color:var(--muted-2); font-size:12px; margin-bottom:6px; text-transform:uppercase; letter-spacing:.12em; font-weight:700}
.heroNote,.muted{
  color:var(--muted);
  line-height:1.75;
  margin:0;
}

.section{padding:28px 0}
.section__head{margin-bottom:18px}
.section__head h2{
  margin:0;
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:clamp(2.2rem, 4vw, 3.3rem);
  line-height:1;
}
.section__head p{margin:6px 0 0; color:var(--muted)}
.aboutGrid,.projectGrid,.miniBoxGrid{
  display:grid; gap:16px;
}
.aboutGrid{grid-template-columns:repeat(2, minmax(0,1fr))}
.aboutCard h3{margin:0 0 12px; font-size:18px}
.alist{margin:0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:10px}
.icon{font-size:12px}
.stackTop{margin-top:14px}

.projectGrid{grid-template-columns:repeat(2, minmax(0,1fr))}
.dcard{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.dcard__top{display:flex; gap:14px; padding:18px 18px 10px}
.dlogo{
  width:58px; height:58px; flex:0 0 auto;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(192,135,121,.18), rgba(225,183,173,.45));
  border:1px solid var(--line);
  display:grid; place-items:center;
  overflow:hidden;
  font-weight:800;
}
.dlogo img{width:100%; height:100%; object-fit:cover}
.dmeta{min-width:0; display:grid; gap:8px}
.dnameRow{display:flex; align-items:center; justify-content:space-between; gap:10px}
.dname{font-weight:800; font-size:18px}
.dtag{
  white-space:nowrap;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(192,135,121,.12);
  color:var(--accent-3);
  border:1px solid var(--line);
  font-size:11px;
  font-weight:800;
}
.ddesc{margin:0; color:var(--muted); line-height:1.65; font-size:14px}
.dchips{padding:0 18px 14px}
.dbar{
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:16px 18px 18px;
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.18);
}
[data-theme="dark"] .dbar{background:rgba(255,255,255,.03)}
.dbarLeft,.dactions{display:flex; align-items:center; flex-wrap:wrap; gap:8px}
.dcount,.dbtn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface-strong);
  font-size:12px;
  font-weight:800;
}
.dbtn{cursor:pointer; color:var(--text)}
.dbtn:hover{transform:translateY(-1px)}
.dIcon{width:15px; height:15px}

.carousel{padding:0; overflow:hidden}
.carousel__top,.carousel__bottom{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:16px 18px;
}
.carousel__top{border-bottom:1px solid var(--line)}
.carousel__bottom{border-top:1px solid var(--line)}
.carousel__label{display:block; font-size:11px; text-transform:uppercase; letter-spacing:.16em; color:var(--muted-2); margin-bottom:4px; font-weight:800}
.carousel__title{font-size:18px; font-weight:800}
.carousel__controls{display:flex; gap:8px}
.iframeWrap{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:#120f10;
}
.iframeWrap video,.iframeWrap iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0; display:block;
}
.dot{
  width:10px; height:10px; border-radius:999px; border:none;
  background:rgba(111,93,94,.24); cursor:pointer;
}
.dot.active{background:var(--accent)}

.footer{
  margin-top:28px; padding:26px 0 40px;
  display:flex; align-items:flex-start; justify-content:space-between; gap:20px;
  border-top:1px solid var(--line);
}
.footer__right a{
  text-decoration:none; color:var(--muted); font-weight:700; font-size:14px;
}
.footer__right a:hover{color:var(--text)}
.brand.mini .brand__mark{width:28px; height:28px; font-size:12px}

.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(12px);
  padding:12px 16px;
  border-radius:999px;
  background:var(--surface-dark);
  color:var(--bg-soft);
  box-shadow:var(--shadow);
  opacity:0; pointer-events:none; transition:.18s ease; z-index:120;
  font-size:13px; font-weight:700;
}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0)}

.miniBoxGrid{grid-template-columns:repeat(2, minmax(0,1fr)); margin-top:8px}
.miniBox{
  padding:14px;
  border-radius:20px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.3);
}
[data-theme="dark"] .miniBox{background:rgba(255,255,255,.03)}
.miniBox__top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px}
.miniBox__title{font-weight:800}
.miniBox__desc{color:var(--muted); font-size:13px; line-height:1.6}
.miniTag{
  padding:7px 10px; border-radius:999px; font-size:11px; font-weight:800;
  border:1px solid var(--line); background:var(--surface);
}
.miniTag.good{color:var(--accent-3)}
.spotDot{
  width:12px; height:12px; border-radius:999px; background:rgba(111,93,94,.18);
  border:1px solid var(--line);
}
.spotDot.filled{background:var(--accent); box-shadow:0 0 0 5px rgba(192,135,121,.12)}

@media (max-width: 980px){
  .hero,.aboutGrid,.projectGrid{grid-template-columns:1fr}
}
@media (max-width: 700px){
  .nav{display:none}
  .topbar__inner{min-height:68px}
  .wrap{width:min(1120px, calc(100% - 26px))}
  .footer{flex-direction:column}
  .miniBoxGrid{grid-template-columns:1fr}
}
