:root{
  --twl-bg: #070a0f;
  --twl-fg: #e8eef7;
  --twl-muted: #a2afbf;

  /* Copper, but classy: deep → bright range */
  --twl-copper: #b87333;
  --twl-copper-hi: #e2b072;
  --twl-copper-deep: #7a3f12;

  /* Surfaces */
  --twl-card: rgba(255,255,255,0.05);
  --twl-card-2: rgba(255,255,255,0.035);
  --twl-border: rgba(255,255,255,0.10);
  --twl-border-2: rgba(255,255,255,0.14);

  /* Shadow glow */
  --twl-glow: rgba(184,115,51,0.18);
}

html { scroll-behavior: smooth; }

body{
  background: var(--twl-bg);
  color: var(--twl-fg);
  font-family: 'Raleway', ui-sans-serif, system-ui;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', ui-serif, Georgia;
}

/* Cinzel needs a touch more breathing room at display sizes */
h1 { letter-spacing: 0.01em; }
h2 { letter-spacing: 0.04em; }
h3 { letter-spacing: 0.03em; }

/* Subtle "lab grid + vignette" background overlay */
.twl-bg{
  position: relative;
  isolation: isolate;
}

.twl-bg::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background:
    radial-gradient(900px 420px at 18% 22%, rgba(184,115,51,0.24), transparent 62%),
    radial-gradient(720px 360px at 85% 15%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(900px 500px at 50% 90%, rgba(0,0,0,0.55), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.72));
}

/* faint blueprint grid */
.twl-bg::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0.9), transparent 75%);
}

/* Copper gradient section dividers */
section.border-t,
footer.border-t {
  border-top: none !important;
  position: relative;
}

section.border-t::before,
footer.border-t::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184,115,51,0.20) 15%,
    rgba(184,115,51,0.50) 50%,
    rgba(184,115,51,0.20) 85%,
    transparent 100%
  );
}

/* Copper contact pill */
.twl-nav-contact {
  border: 1px solid rgba(184,115,51,0.55);
  background: rgba(184,115,51,0.08);
  color: #e2b072;
  box-shadow: 0 0 10px rgba(184,115,51,0.12);
  transition: all 180ms ease;
}

.twl-nav-contact:hover {
  background: rgba(184,115,51,0.15);
  border-color: rgba(184,115,51,0.75);
  box-shadow: 0 0 16px rgba(184,115,51,0.20);
}

/* Copper text utility */
.twl-copper{
  background: linear-gradient(
    135deg,
    var(--twl-copper-deep),
    var(--twl-copper),
    var(--twl-copper-hi)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(184,115,51,0.35);
}


/* Slightly richer card feel */
.twl-card{
  background: var(--twl-card);
  border: 1px solid var(--twl-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.twl-card:hover{
  border-color: var(--twl-border-2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(184,115,51,0.10);
  transform: translateY(-1px);
  transition: 160ms ease;
}
/* =========================
   TWL Buttons (bevel + sheen)
   ========================= */

.twl-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 14px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transform: translateZ(0);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  
  overflow: hidden; /* ✅ clips sheen to button */
}

/* Primary: copper foil w/ bevel + soft glow */
.twl-btn-primary{
  color: rgba(0,0,0,0.88);
  background: linear-gradient(
    135deg,
    var(--twl-copper-deep),
    var(--twl-copper),
    var(--twl-copper-hi)
  );
  box-shadow:
    0 12px 30px rgba(184,115,51,0.28),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Sheen sweep */
.twl-btn-primary::before{
  content:"";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.22) 18%,
    transparent 35%,
    transparent 100%
  );
  transform: translateX(-70%);
  opacity: 0;
  pointer-events: none;
}

/* Subtle edge highlight (machined feel) */
.twl-btn-primary::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}

.twl-btn-primary:hover{
  filter: saturate(1.05) brightness(1.02);
  box-shadow:
    0 16px 38px rgba(184,115,51,0.34),
    inset 0 1px 0 rgba(255,255,255,0.26),
    inset 0 -1px 0 rgba(0,0,0,0.24);
  transform: translateY(-1px);
  transition: 180ms ease;
}
.twl-btn-primary:hover::before{
  transform: translateX(70%);
  transition: 520ms ease;
  opacity: 0.55;
}
.twl-btn-primary:active{
  transform: translateY(0px);
  transition: 80ms ease;
}

/* Ghost: lab-grade outline */
.twl-btn-ghost{
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    0 10px 26px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.twl-btn-ghost:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
  transition: 180ms ease;
}
.twl-btn-ghost:active{
  transform: translateY(0px);
  transition: 80ms ease;
}


::selection{
  background: rgba(184,115,51,0.35);
}
