/* ===== Billahdev — shared styles ===== */
:root {
  --bg: #f6f1e8;
  --bg-2: #efe7d8;
  --bg-3: #e8dec9;
  --ink: #1d1a14;
  --ink-2: #3b362c;
  --ink-3: #6b6456;
  --muted: #8a8271;
  --line: #d9cfb8;
  --card: #fbf7ef;
  --accent: #c65a2e;      /* warm terracotta */
  --accent-ink: #8a3a17;
  --accent-soft: #f2d6c6;
  --ok: #4a7d4a;
  --shadow: 0 1px 0 rgba(29,26,20,.04), 0 12px 32px -18px rgba(29,26,20,.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}
html[data-theme="dark"] {
  --bg: #14120e;
  --bg-2: #1b1914;
  --bg-3: #22201a;
  --ink: #f3ead8;
  --ink-2: #d8cfbc;
  --ink-3: #a79e8a;
  --muted: #7f7868;
  --line: #2e2a22;
  --card: #1b1914;
  --accent: #e27b4f;
  --accent-ink: #f4b495;
  --accent-soft: #3a2418;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links {
  display: flex; gap: 4px; align-items: center;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--bg-2); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 500;
  margin-left: 8px;
  white-space: nowrap;
  transition: transform .15s, background .15s;
}
.nav-cta:hover { background: var(--accent); }
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px;
}
.theme-toggle:hover { background: var(--bg-2); color: var(--ink); }

.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: transparent;
    color: var(--ink); cursor: pointer;
  }
  .nav-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px var(--pad); gap: 2px;
    align-items: stretch;
  }
}

/* ===== Hero / section primitives ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink-3);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; margin: 16px 0 18px; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; margin: 0 0 14px; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; margin: 0 0 8px; }
p { color: var(--ink-2); margin: 0 0 14px; }
p.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 80px) 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: #fff; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* Divider with monospace tag */
.rule {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  margin: 0 0 28px;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== Logo (glitch) ===== */
.logo-wrap {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--font-mono);
  color: var(--ink);
  user-select: none;
}
.logo-caret {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.logo-glitch {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-glitch::before,
.logo-glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.logo-glitch::before {
  color: var(--accent);
  transform: translate(1px, 0);
  mix-blend-mode: multiply;
  clip-path: inset(0 0 60% 0);
  animation: glitch-top 3.2s infinite steps(1, end);
  opacity: .0;
}
.logo-glitch::after {
  color: #2a7a7a;
  transform: translate(-1px, 0);
  mix-blend-mode: multiply;
  clip-path: inset(55% 0 0 0);
  animation: glitch-bot 3.2s infinite steps(1, end);
  opacity: .0;
}
html[data-theme="dark"] .logo-glitch::before { mix-blend-mode: screen; }
html[data-theme="dark"] .logo-glitch::after { mix-blend-mode: screen; color: #7dc4c4; }

@keyframes glitch-top {
  0%, 92%, 100% { opacity: 0; transform: translate(0,0); }
  93% { opacity: .9; transform: translate(2px, -1px); }
  95% { opacity: .9; transform: translate(-2px, 0); }
  97% { opacity: 0; }
}
@keyframes glitch-bot {
  0%, 92%, 100% { opacity: 0; transform: translate(0,0); }
  94% { opacity: .9; transform: translate(-2px, 1px); }
  96% { opacity: .9; transform: translate(1px, 0); }
  98% { opacity: 0; }
}

/* Big hero logo block */
.hero-logo {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.hero-logo .prompt { color: var(--accent); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.footer a { color: var(--ink-2); display: block; padding: 4px 0; font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer .sig {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Utilities ===== */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-2); text-transform: uppercase;
}
.tag-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.stat-num { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--ink); }
.stat-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }

/* ===== Page intro (for inner pages) ===== */
.page-intro { padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-intro h1 { font-size: clamp(44px, 6vw, 84px); margin-top: 10px; }

/* ===== Placeholders (no SVG illustration) ===== */
.ph-img {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      var(--bg-3) 0 10px,
      var(--bg-2) 10px 20px
    );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden;
}
.ph-img::after {
  content: attr(data-label);
}
.ph-img.square { aspect-ratio: 1 / 1; }
.ph-img.portrait { aspect-ratio: 4 / 5; }
.ph-img.wide { aspect-ratio: 16 / 10; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.marquee-track {
  display: inline-flex; gap: 64px;
  padding: 18px 0;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track em { color: var(--accent); font-style: normal; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Form */
.form {
  display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans); font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--card);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }



/* ===== New Links Page CSS ===== */

.links-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:80px;
  padding-bottom:80px;
}

.links-wrap{
  width:600px;
  max-width:80%;
  margin:auto;
}

.links-hero{
  text-align:center;
  margin-bottom:36px;
}

.links-avatar{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 22px;
  border:4px solid var(--card);
  box-shadow:var(--shadow);
}

.links-hero h1{
  margin-bottom:10px;
}

.links-subtitle{
  font-family:var(--font-mono);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.links-grid{
  display:grid;
  gap:16px;
}

.link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;

  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);

  padding:18px 22px;

  transition:.2s ease;

  font-weight:500;
}

.link-card:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  box-shadow:var(--shadow);
}

.link-card span:last-child{
  color:var(--accent);
  font-size:18px;

  display:flex;
  align-items:center;
  justify-content:center;

  flex-shrink:0;
}

.link-card.accent{
  background:var(--accent);
  color:#fff;
  border-color:transparent;
}

.link-card.accent span:last-child{
  color:#fff;
}

.links-social{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;

  margin-top:42px;
}

.links-social a{
  width:48px;
  height:48px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;

  border:1px solid var(--line);
  background:var(--card);

  transition:.2s ease;
}

.links-social a:hover{
  border-color:var(--accent);
  transform:translateY(-2px);
}

.links-social svg{
  width:18px;
  height:18px;
  fill:var(--ink);
}

@media(max-width:640px){

  .links-avatar{
    width:100px;
    height:100px;
  }

  .link-card{
    padding:16px 18px;
    font-size:15px;
  }

.links-page{
  padding-top:50px;
  padding-bottom:50px;
}

.links-wrap{
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  margin:auto;
}


}

