/* ===================================================
   TiByte — Thesis Page Design System
   ===================================================
   Palette:
     --bg:           #0a0a0b   (near-black)
     --bg-panel:     #111113   (graphite panel)
     --bg-card:      #141416   (card surface)
     --text:         #e8e6e1   (off-white)
     --text-muted:   #7a7d85   (muted cool gray)
     --accent:       #4a6fa5   (restrained infrastructure blue)
     --accent-dim:   #3a5a8a   (dimmer blue for borders)
     --border:       #222226   (thin dark gray)
     --divider:      #1c1c20   (subtle horizontal)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500&display=swap');

/* ── Reset ─────────────────────────────────────── */

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: #0a0a0b;
  color: #e8e6e1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ── Tokens ────────────────────────────────────── */

:root {
  --bg:         #0a0a0b;
  --bg-panel:   #111113;
  --bg-card:    #141416;
  --text:       #e8e6e1;
  --text-muted: #7a7d85;
  --accent:     #4a6fa5;
  --accent-dim: #3a5a8a;
  --border:     #222226;
  --divider:    #1c1c20;

  --serif:      'Cormorant Garamond', 'Georgia', serif;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w:      1180px;
  --gutter:     48px;
}

/* ── Navigation ────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text-muted);
  margin: 4px 0;
  transition: all 0.25s ease;
}

/* ── Main Container ────────────────────────────── */

.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  padding-top: 52px; /* nav clearance */
}

/* ── Section Base ──────────────────────────────── */

.section {
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--divider);
}

.section:last-child {
  border-bottom: none;
}

/* ── Typography ────────────────────────────────── */

.headline {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.headline--hero {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.headline--section {
  font-size: 2rem;
  margin-bottom: 22px;
}

.subheadline {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 800px;
}

.body-text {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 300;
  color: #b0ada6;
  line-height: 1.8;
  margin-bottom: 18px;
}

.body-text:last-child {
  margin-bottom: 0;
}

.label-text {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.supporting-line {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
}

/* ── Blue Accent Divider ──────────────────────── */

.accent-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  border: none;
  margin: 24px 0;
}

.accent-rule--short {
  width: 32px;
}

/* ── Thin Divider ─────────────────────────────── */

.thin-divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
  border: none;
  margin: 14px 0;
}

/* ── CTA Button ───────────────────────────────── */

.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 11px 28px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-top: 24px;
}

.cta:hover {
  background: rgba(74, 111, 165, 0.1);
  border-color: var(--accent);
}

/* ── Hero Section ─────────────────────────────── */

.hero {
  padding-top: 88px;
  padding-bottom: 64px;
}

/* ── Mood Field Images ────────────────────────── */

.mood-field {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 28px;
}

.mood-field img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(100%) contrast(1.1);
  mix-blend-mode: lighten;
}

/* Hero mood — compact atmospheric strip */
.mood-field--hero {
  height: 120px;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.6) 80%, transparent);
}

.mood-field--hero img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 200%;
  opacity: 0.35;
}

/* Section background accent — infrastructure */
.section--has-accent {
  position: relative;
  overflow: hidden;
}

.section-accent-bg {
  position: absolute;
  top: 0;
  right: -60px;
  width: 360px;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

.section-accent-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(100%) contrast(1.2);
}

/* Closing mood — contact ambient */
.mood-field--closing {
  height: 100px;
  margin-top: 24px;
  margin-bottom: -8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0.5) 70%, transparent);
}

.mood-field--closing img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 250%;
  opacity: 0.18;
}

/* ── Thesis Statements ────────────────────────── */

.statement-list {
  margin-top: 24px;
}

.statement {
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.statement:first-child {
  border-top: 1px solid var(--divider);
}

/* ── Two-Column Panel ─────────────────────────── */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 28px 26px;
}

.panel-title {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.panel-body {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: #b0ada6;
  line-height: 1.7;
}

/* ── 2×2 Card Grid ────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 26px 24px;
}

.card-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-text {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: #b0ada6;
  line-height: 1.7;
}

/* ── Principles / Manifesto ───────────────────── */

.principle {
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}

.principle:first-child {
  border-top: 1px solid var(--divider);
}

.principle-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}

.principle-desc {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Contact Section ──────────────────────────── */

.contact-section {
  text-align: left;
}

.contact-email {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--accent);
  text-decoration: none;
  margin-top: 16px;
  display: inline-block;
}

.contact-email:hover {
  text-decoration: underline;
}

/* ── Footer ───────────────────────────────────── */

.footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.footer-brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-tagline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.footer-link {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--text);
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 640px) {
  :root {
    --gutter: 24px;
  }

  .headline--hero {
    font-size: 2.2rem;
  }

  .headline--section {
    font-size: 1.55rem;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .section {
    padding: 52px 0 44px;
  }

  .columns {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .mood-field--hero {
    height: 80px;
    margin-top: 24px;
  }

  .mood-field--closing {
    height: 64px;
  }

  .section-accent-bg {
    width: 200px;
    right: -40px;
    opacity: 0.6;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.97);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}
