/* ═══════════════════════════════════════════════
   TREDNETS — style.css
   Theme: Dark (#212121) + Red (#bf1e2d)
════════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────── */
:root {
  --bg:        #f7f5f0;
  --white:     #ffffff;
  --ink:       #141412;
  --ink-mid:   #4a4a42;
  --ink-light: #9a9a8e;
  --rule:      #e2dfd8;
  --rule-soft: #ece9e2;

  --header-bg:   #212121;
  --header-rule: #2e2e2e;

  --accent:     #212121;
  --accent-mid: #2a2a2a;
  --accent-hl:  #bf1e2d;
  --accent-dim: #8a1520;

  --tag-bg: #edeae4;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-card:  0 2px 12px rgba(20,20,18,0.06), 0 1px 3px rgba(20,20,18,0.04);
  --shadow-hover: 0 8px 32px rgba(20,20,18,0.10), 0 2px 6px rgba(20,20,18,0.06);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  background: #f7f5f0 url("pattern.png") fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
}

::selection { background: var(--accent-hl); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-light); }


/* ════════════════════════════════════════════════
   HEADER — dark
════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-rule);
  transition: box-shadow 0.3s var(--ease-out);
}
header.scrolled {
  box-shadow: 0 1px 32px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }
.logo img { display: block; height: 26px; width: auto; }

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  position: relative;
}
nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--accent-hl);
  transition: right 0.25s var(--ease-out);
}
nav a:not(.nav-cta):hover::after { right: 0; }
nav a:hover { color: rgba(255,255,255,0.95); }

.nav-cta {
  background: var(--accent-hl) !important;
  color: #fff !important;
  padding: 8px 20px;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--accent-dim) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }


/* ════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════ */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 148px 40px 108px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 30px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 30px;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--accent-hl); }

.hero-desc {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.85;
  max-width: 400px;
}

.hero-tagline {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.04em;
}

.hero-left > * {
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) backwards;
}
.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.15s; }
.hero-left > *:nth-child(3) { animation-delay: 0.25s; }
.hero-left > *:nth-child(4) { animation-delay: 0.35s; }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Canvas right ── */
.hero-right {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  animation: heroReveal 0.9s cubic-bezier(0.16,1,0.3,1) 0.2s backwards;
}

.network-card {
  position: absolute;
  inset: 0;
  background: transparent;
  overflow: hidden;
}

canvas#network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(247,245,240,0.9) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.network-label-text {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.network-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hl);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}


/* ════════════════════════════════════════════════
   INTRO STRIP
════════════════════════════════════════════════ */
.intro-strip {
  background: var(--accent);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.intro-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.02) 50%, transparent 65%);
  pointer-events: none;
}
.intro-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.intro-strip p {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  flex: 1;
  min-width: 260px;
  line-height: 1.7;
}
.intro-strip-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.intro-strip-tag {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 14px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.intro-strip-tag:hover {
  color: rgba(255,255,255,0.8);
  border-color: var(--accent-hl);
  background: rgba(191,30,45,0.2);
}


/* ════════════════════════════════════════════════
   SECTION
════════════════════════════════════════════════ */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 40px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 52px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.section-count {
  font-size: 12px;
  color: var(--ink-light);
  font-variant-numeric: tabular-nums;
}


/* ════════════════════════════════════════════════
   PROJECT ROWS
════════════════════════════════════════════════ */
.projects-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.project-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 36px;
  align-items: start;
  padding: 34px 38px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  color: inherit;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition:
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.project-row:last-child { border-bottom: none; }

.project-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-hl);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}
.project-row:hover { background: #faf9f6; box-shadow: var(--shadow-hover); z-index: 1; }
.project-row:hover::before { transform: scaleY(1); }
.project-row:hover .row-name { color: var(--accent-hl); }
.project-row:hover .row-arrow { color: var(--accent-hl); transform: translate(4px, -4px); }
.project-row:hover .row-link { color: var(--ink-mid); }
.project-row.visible { opacity: 1; transform: none; }

.row-logo { width: 28px; height: 28px; margin-bottom: 10px; }
.row-logo img { width: 100%; height: 100%; object-fit: contain; }

.row-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 5px;
  transition: color 0.2s;
}
.row-type { font-size: 11.5px; color: var(--ink-light); letter-spacing: 0.03em; line-height: 1.5; }
.row-middle { padding-top: 2px; }
.row-desc { font-size: 13.5px; color: var(--ink-mid); line-height: 1.8; }
.row-desc strong { color: var(--ink); font-weight: 500; }

.row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2px;
  min-width: 140px;
}
.row-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }

.tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  padding: 3px 10px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.project-row:hover .tag {
  background: #fce8ea;
  border-color: #e8c0c4;
  color: var(--accent-hl);
}

.row-link { font-size: 11px; color: var(--ink-light); letter-spacing: 0.04em; white-space: nowrap; transition: color 0.2s; text-decoration: none; }
.row-arrow { font-size: 16px; color: var(--rule); transition: color 0.25s, transform 0.25s var(--ease-out); line-height: 1; margin-top: 4px; }


/* ════════════════════════════════════════════════
   ECOSYSTEM
════════════════════════════════════════════════ */
.ecosystem-section {
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.ecosystem-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 40px;
}
.ecosystem-header { max-width: 580px; margin-bottom: 68px; }
.ecosystem-header .section-title { display: block; margin-bottom: 22px; }
.ecosystem-heading {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 300;
  letter-spacing: -1.8px;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 22px;
}
.ecosystem-heading em { font-style: italic; color: var(--accent-hl); }
.ecosystem-subtext { font-size: 15px; color: var(--ink-mid); line-height: 1.85; }

.ecosystem-flows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 1px;
  box-shadow: var(--shadow-card);
}
.flow-card {
  background: var(--bg);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.25s;
}
.flow-card:hover { background: #f2efea; }
.flow-icon { font-size: 18px; color: var(--accent-hl); line-height: 1; margin-bottom: 2px; opacity: 0.8; }
.flow-title { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--ink); }
.flow-desc { font-size: 13px; color: var(--ink-mid); line-height: 1.8; flex: 1; }
.flow-projects { font-size: 11px; color: var(--ink-light); letter-spacing: 0.03em; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.flow-projects span { color: var(--ink-mid); font-weight: 500; }

/* Philosophy — dark */
.ecosystem-philosophy {
  background: var(--accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--accent);
  margin-top: 1px;
  overflow: hidden;
}
.philosophy-left {
  padding: 52px 44px;
  border-right: 1px solid #2e2e2e;
  position: relative;
}
.philosophy-left::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 180px;
  line-height: 1;
  color: rgba(255,255,255,0.03);
  position: absolute;
  top: 20px; left: 28px;
  pointer-events: none;
  user-select: none;
}
.philosophy-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 22px;
  font-family: var(--serif);
}
.philosophy-quote {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  letter-spacing: -0.2px;
  position: relative;
}
.philosophy-right { padding: 52px 44px; display: flex; align-items: center; }
.philosophy-principles {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}

.principle-item {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.4px;
  color: rgba(255,255,255,0.75);
  padding: 22px 0;
  border-bottom: 1px solid #2e2e2e;
  line-height: 1.2;
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
}

.principle-item:first-child { padding-top: 0; }
.principle-item:last-child { border-bottom: none; padding-bottom: 0; }

.principle-item:hover {
  color: rgba(255,255,255,0.95);
  padding-left: 10px;
}


/* ════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════ */
.about-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 22px; font-family: var(--serif); display: block; }
.about-heading { font-family: var(--serif); font-size: 34px; font-weight: 300; letter-spacing: -1px; line-height: 1.2; color: var(--ink); margin-bottom: 24px; }
.about-heading em { font-style: italic; color: var(--accent-hl); }
.about-body { font-size: 14px; color: var(--ink-mid); line-height: 1.9; }
.about-right { padding-top: 30px; }

.capability-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.capability-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  gap: 16px;
  transition: background 0.2s, padding-left 0.25s var(--ease-out);
}
.capability-item:last-child { border-bottom: none; }
.capability-item:hover { background: #faf9f6; padding-left: 30px; }
.capability-name { font-size: 13px; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.capability-item:hover .capability-name { color: var(--accent-hl); }
.capability-detail { font-size: 11.5px; color: var(--ink-light); text-align: right; flex-shrink: 0; }


/* ════════════════════════════════════════════════
   FOOTER — dark
════════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--header-rule);
  background: var(--accent);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 0.65; }
.footer-logo img { display: block; height: 22px; width: auto; }
.footer-text { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-text a { color: rgba(255,255,255,0.45); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.15); transition: color 0.2s, border-color 0.2s; }
.footer-text a:hover { color: rgba(255,255,255,0.8); border-color: var(--accent-hl); }


  .error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .error-main {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    width: 100%;
    gap: 80px;
  }

  .error-left {
    flex: 1;
  }

  .error-code {
    font-family: var(--serif);
    font-size: clamp(100px, 16vw, 180px);
    font-weight: 300;
    letter-spacing: -8px;
    line-height: 1;
    color: var(--rule);
    margin-bottom: 0;
    user-select: none;
  }

  .error-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-light);
    margin-bottom: 24px;
  }
  .error-label::before {
    content: '';
    width: 28px; height: 1px;
    background: currentColor;
  }

  .error-heading {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 20px;
  }
  .error-heading em {
    font-style: italic;
    color: var(--accent-hl);
  }

  .error-desc {
    font-size: 15px;
    color: var(--ink-mid);
    line-height: 1.85;
    max-width: 380px;
    margin-bottom: 40px;
  }

  .error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 24px;
    transition: background 0.2s, transform 0.2s;
  }
  .btn-primary:hover {
    background: var(--accent-hl);
    transform: translateY(-1px);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    transition: color 0.2s, border-color 0.2s;
  }
  .btn-secondary:hover {
    color: var(--ink);
    border-color: var(--ink);
  }

  .error-right {
    width: 340px;
    flex-shrink: 0;
  }

  .error-links {
    border: 1px solid var(--rule);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  .error-links-label {
    padding: 14px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-light);
  }

  .error-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--rule-soft);
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s, padding-left 0.25s var(--ease-out);
    position: relative;
  }
  .error-link-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-hl);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s var(--ease-out);
  }
  .error-link-item:last-child { border-bottom: none; }
  .error-link-item:hover { background: #faf9f6; padding-left: 30px; }
  .error-link-item:hover::before { transform: scaleY(1); }
  .error-link-item:hover .error-link-name { color: var(--accent-hl); }

  .error-link-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
  }

  .error-link-type {
    font-size: 11px;
    color: var(--ink-light);
  }

  @media (max-width: 860px) {
    .error-main {
      flex-direction: column;
      padding: 100px 24px 60px;
      gap: 48px;
      align-items: flex-start;
    }
    .error-right { width: 100%; }
    .error-code { font-size: 120px; letter-spacing: -6px; }
  }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 112px 24px 64px; gap: 52px; }
  .hero-desc { max-width: 100%; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-right { aspect-ratio: 4/3; }
  .header-inner { padding: 0 24px; }
  nav a:not(.nav-cta) { display: none; }
  .section { padding: 64px 24px; }
  .project-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; }
  .row-right { align-items: flex-start; }
  .row-tags { justify-content: flex-start; }
  .ecosystem-flows { grid-template-columns: 1fr; }
  .ecosystem-philosophy { grid-template-columns: 1fr; }
  .philosophy-left { border-right: none; border-bottom: 1px solid #2e2e2e; }
  .ecosystem-inner { padding: 64px 24px; }
  .about-section { grid-template-columns: 1fr; gap: 48px; padding: 64px 24px; }
  .footer-inner { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .intro-strip-inner { padding: 0 24px; gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; letter-spacing: -1.2px; }
  .project-row { padding: 20px 18px; }
  .philosophy-left, .philosophy-right { padding: 36px 24px; }
  .philosophy-quote { font-size: 16px; }
}


/* ════════════════════════════════════════════════
   COOKIE POLICY PAGE
════════════════════════════════════════════════ */
.cookie-content {
  max-width: 720px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.9;
}
.cookie-content p { margin-bottom: 16px; }
.cookie-content p:last-child { margin-bottom: 0; }
.cookie-content a { color: var(--accent-hl); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.cookie-content a:hover { border-color: var(--accent-hl); }

.cookie-manage-action { margin: 24px 0; }

.cookie-rights-list {
  margin: 12px 0 18px 22px;
}
.cookie-rights-list li {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 4px;
}

.cookie-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cookie-category-block {}
.cookie-cat-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 8px;
}
.cookie-cat-desc {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.cookie-table {
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.cookie-table-header {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  gap: 16px;
  padding: 12px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.cookie-table-row {
  display: grid;
  grid-template-columns: 180px 1fr 100px;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}
.cookie-table-row:last-child { border-bottom: none; }

.cookie-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-family: monospace;
}
.cookie-purpose {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.7;
}
.cookie-duration {
  font-size: 12px;
  color: var(--ink-light);
  text-align: right;
}

@media (max-width: 860px) {
  .cookie-table-header,
  .cookie-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .cookie-duration { text-align: left; }
}