/* ── TWiLabs Page Styles ── */

@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-serif-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/dm-serif-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #1a1a2e;
  --paper:  #faf8f3;
  --gold:   #c8940f;
  --border: #e0d8c8;
  --muted:  #666;
  --card:   #fff;
  --radius: 14px;
  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ── */
.tl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 10;
}
.tl-topbar-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.tl-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.tl-back:hover { color: var(--ink); }

/* ── Main content ── */
main {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Hero ── */
.tl-hero {
  text-align: center;
  margin-bottom: 52px;
}
.tl-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.tl-hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.tl-hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Divider ── */
.tl-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── Sections ── */
.tl-section { margin-bottom: 40px; }
.tl-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.tl-section-title {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 10px;
}
.tl-section-body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
}
.tl-section-body p + p { margin-top: 12px; }

/* ── Pillars ── */
.tl-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.tl-pillar {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.tl-pillar-icon { display: flex; justify-content: center; margin-bottom: 10px; color: var(--ink); }
.tl-pillar-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.tl-pillar-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Projects ── */
.tl-projects { display: flex; flex-direction: column; gap: 10px; }
.tl-project-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.tl-project-card:hover { border-color: #aaa; }
.tl-project-icon { flex-shrink: 0; color: var(--ink); display: flex; align-items: center; }
.tl-project-info { flex: 1; }
.tl-project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.tl-project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.tl-project-arrow { color: var(--muted); flex-shrink: 0; display: flex; align-items: center; }

/* ── How we build ── */
.tl-build-intro {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tl-build-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.tl-build-card {
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1.5px solid var(--border);
}
.tl-build-ai {
  background: var(--ink);
  border-color: var(--ink);
}
.tl-build-human {
  background: var(--card);
}
.tl-build-icon {
  margin-bottom: 10px;
}
.tl-build-ai .tl-build-icon { color: rgba(255,255,255,.7); }
.tl-build-human .tl-build-icon { color: var(--ink); }
.tl-build-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tl-build-ai .tl-build-label { color: #fff; }
.tl-build-human .tl-build-label { color: var(--ink); }
.tl-build-card p { font-size: 13px; line-height: 1.6; }
.tl-build-ai p { color: rgba(255,255,255,.6); }
.tl-build-human p { color: var(--muted); }
.tl-build-note {
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: #fffbea;
  padding: 14px 18px;
  font-size: 14px;
  color: #5a4000;
  line-height: 1.7;
}

/* ── Coffee CTA ── */
.tl-coffee-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.tl-coffee-icon-wrap {
  display: flex;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 14px;
}
.tl-coffee-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
}
.tl-coffee-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto 22px;
}
.tl-coffee-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.tl-coffee-btn {
  flex: 1;
  max-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 10px;
  transition: opacity .15s;
  font-family: var(--font-body);
  letter-spacing: .1px;
}
.tl-coffee-btn:hover { opacity: .85; }
.tl-btn-id  { background: #ffdd57; color: #1a1a1a; }
.tl-btn-global { background: var(--ink); color: #fff; }

/* ── TheWebInc CTA ── */
.tl-webinc-cta {
  background: #1e2330;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  margin-top: 12px;
}
.tl-webinc-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #277fbe;
  margin-bottom: 14px;
}
.tl-webinc-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: #fff;
  margin-bottom: 10px;
}
.tl-webinc-desc {
  font-size: 14px;
  color: #8a9ab0;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 24px;
}
.tl-webinc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #277fbe;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  transition: background .15s;
  font-family: var(--font-body);
  letter-spacing: .1px;
}
.tl-webinc-btn:hover { background: #1a5e8f; }

/* ── Footer ── */
.tl-footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  main { padding: 36px 20px 64px; }
  .tl-hero-title { font-size: 34px; }
  .tl-pillars { grid-template-columns: 1fr; }
  .tl-build-grid { grid-template-columns: 1fr; }
  .tl-coffee-btns { flex-direction: column; align-items: stretch; }
  .tl-coffee-btn { max-width: 100%; }
  .tl-topbar { padding: 0 18px; }
}
