/* =====================================
   Black Swan VC — v3 (dark Anduril)
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Surface */
  --bg: #0a0b0d;
  --bg-1: #0e1014;
  --bg-2: #14171c;
  --bg-3: #1a1e24;
  --bg-hi: #20242b;

  /* Ink */
  --ink: #f4f5f7;
  --ink-1: #d8dade;
  --ink-2: #9ea2a9;
  --ink-3: #6a6f78;
  --ink-4: #4a4e56;

  /* Lines */
  --rule: rgba(255, 255, 255, 0.08);
  --rule-2: rgba(255, 255, 255, 0.14);
  --rule-3: rgba(255, 255, 255, 0.22);

  /* Accent — restrained, signal-orange like Anduril */
  --accent: #e6533a;
  --accent-soft: rgba(230, 83, 58, 0.16);

  /* Type */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --text-xxs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 22px;
  --text-xl: 30px;
  --text-2xl: 44px;
  --text-3xl: 64px;
  --text-4xl: 92px;
  --text-5xl: 128px;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-14: 56px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;
  --s-40: 160px;

  /* Container */
  --max: 1760px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: "ss01", "ss02", "cv02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
}

/* =====================================
   Typography utilities
   ===================================== */

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--accent::before { background: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(56px, 9vw, var(--text-4xl)); font-weight: 500; letter-spacing: -0.035em; line-height: 0.95; }
h2 { font-size: clamp(36px, 5.2vw, var(--text-3xl)); letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: var(--text-xl); letter-spacing: -0.02em; line-height: 1.1; }
h4 { font-size: var(--text-md); letter-spacing: -0.01em; line-height: 1.2; }

p {
  margin: 0;
  color: var(--ink-1);
  line-height: 1.55;
}
.lead {
  font-size: var(--text-md);
  color: var(--ink);
  line-height: 1.45;
  font-weight: 400;
  max-width: 56ch;
}
.muted { color: var(--ink-2); }

/* =====================================
   Top bar
   ===================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding-inline: var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: var(--s-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand__mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand { white-space: nowrap; }
.brand small {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: var(--s-3);
  border-left: 1px solid var(--rule-2);
  padding-left: var(--s-3);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .brand small { display: none; }
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
}
.nav a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 200ms ease;
  position: relative;
  padding: var(--s-2) 0;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}
.nav a:hover::after { transform: scaleX(1); }

.topbar__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  padding: 12px 18px;
  border: 1px solid var(--rule-3);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--ghost { border-color: var(--rule-2); }

.btn .arrow { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* mobile nav toggle */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--ink);
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

@media (max-width: 920px) {
  .topbar__inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .topbar__cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
}

.mobile-nav {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--bg);
  z-index: 90;
  padding: var(--s-12) var(--gutter);
  display: none;
  flex-direction: column;
  gap: var(--s-6);
  border-top: 1px solid var(--rule);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}

/* =====================================
   Main
   ===================================== */

main { padding-top: 68px; }

section { position: relative; }

/* Section-head matches the Contact (section 04) pattern:
   small accent eyebrow above the title, no rule above, no oversized padding */
.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding-block: var(--s-12) var(--s-8);
}
.section-head__row {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
.section-head__num {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head__num::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-head h2 { max-width: none; margin: 0; }
.section-head__lede {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: var(--text-md);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 720px) {
  .section-head { padding-block: var(--s-10) var(--s-6); }
}

/* =====================================
   Hero
   ===================================== */

.hero {
  padding-top: var(--s-16);
  padding-bottom: var(--s-24);
  overflow: hidden;
  position: relative;
}
.hero__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-8);
  align-items: baseline;
  padding-block: var(--s-4) var(--s-10);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-12);
}
.hero__meta .mono { color: var(--ink-3); }
.hero__meta-right { text-align: right; }

/* Inline dictionary-style definition in the hero meta strip */
.hero__defn {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hero__defn-w { color: var(--ink-1); letter-spacing: 0.18em; text-transform: uppercase; }
.hero__defn-p { color: var(--ink-3); }
.hero__defn-pos { color: var(--ink-3); font-style: italic; }
.hero__defn-g { color: var(--ink-2); }
.hero__defn-sep { color: var(--ink-4, var(--rule-2)); }

@media (max-width: 1200px) {
  .hero__defn-sep,
  .hero__defn-g { display: none; }
}
@media (max-width: 920px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: var(--s-2);
    text-align: left;
  }
  .hero__meta-right { text-align: left; }
  .hero__defn { justify-content: flex-start; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-16);
  align-items: stretch;
}

/* Wide (no media) hero variant */
.hero__wide { padding-block: var(--s-6) 0; }
.hero__title--wide {
  font-size: clamp(72px, 14vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-weight: 500;
  margin-bottom: var(--s-16);
}
.hero__bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-12);
  align-items: end;
  padding-bottom: var(--s-16);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--s-10);
}
.hero__bottom .hero__lede { margin-bottom: 0; max-width: 52ch; }
.hero__bottom .hero__actions { margin-bottom: 0; justify-self: end; }
@media (max-width: 920px) {
  .hero__bottom { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero__bottom .hero__actions { justify-self: start; }
  .hero__title--wide { font-size: clamp(56px, 13vw, 88px); margin-bottom: var(--s-10); }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: var(--s-4);
}
.hero__eyebrow { margin-bottom: var(--s-10); }
.hero__title {
  font-size: clamp(56px, 8.5vw, 124px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--s-10);
}
.hero__title .accent { color: var(--accent); }
.hero__title .super {
  font-family: var(--font-mono);
  font-size: 0.22em;
  vertical-align: super;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  margin-left: 0.2em;
  font-weight: 500;
}
.hero__lede {
  font-size: var(--text-md);
  color: var(--ink-1);
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: var(--s-10);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-12);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
}
.hero__stat-k {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.hero__stat-v {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero__media {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--rule);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-5);
}
.hero__media-tl, .hero__media-br {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__media-tl span, .hero__media-br span { background: rgba(10, 11, 13, 0.6); padding: 4px 8px; backdrop-filter: blur(8px); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero__meta { grid-template-columns: 1fr; gap: var(--s-2); text-align: left; }
  .hero__meta-center, .hero__meta-right { text-align: left; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

/* =====================================
   Definition (dictionary block — inside Thesis)
   ===================================== */

.defn {
  position: relative;
  margin: var(--s-10) 0 var(--s-12);
  padding: var(--s-10) var(--s-10) var(--s-10) var(--s-12);
  background:
    linear-gradient(180deg, rgba(230,83,58,0.04) 0%, rgba(230,83,58,0) 60%),
    var(--bg-1, #111316);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.defn::before {
  /* signal-orange edge marker */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.defn::after {
  /* ghosted open-quote */
  content: "\201C";
  position: absolute;
  right: var(--s-6);
  top: -10px;
  font-family: var(--font-sans);
  font-size: clamp(120px, 14vw, 180px);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  font-weight: 600;
}

.defn__rail {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-size: var(--text-xxs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.defn__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.defn__src { color: var(--ink-3); }

.defn__body { min-width: 0; }
.defn__headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.defn__word {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.defn__word .accent { color: var(--accent); font-weight: 600; }
.defn__meta {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.defn__pron {
  font-size: var(--text-sm);
  color: var(--ink-2);
  letter-spacing: 0;
}
.defn__pos {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.defn__text {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 68ch;
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.defn__text em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 720px) {
  .defn {
    padding: var(--s-6) var(--s-6) var(--s-6) var(--s-8);
    margin: var(--s-8) 0 var(--s-10);
  }
  .defn__headline {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
  .defn::after { right: var(--s-4); font-size: 110px; }
}

/* =====================================
   Thesis
   ===================================== */

.thesis {
  padding-bottom: var(--s-24);
}

/* Stacked contact heading (Founders. / Co-investors. / Operators.) */
.contact__h2 {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  line-height: 1.04;
}
.contact__h2 span { display: block; }
.contact__h2 span:nth-child(2) { color: var(--ink-1); }
.contact__h2 span:nth-child(3) { color: var(--ink-2); }

.thesis__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-10);
  padding-top: var(--s-6);
}
.thesis__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (max-width: 1200px) {
  .thesis__pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .thesis__pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: var(--bg);
  padding: var(--s-8) var(--s-6);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-6);
  align-items: start;
}
.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: var(--s-1);
}
.pillar__title {
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.pillar__body {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.55;
}

.thesis__copy {
  max-width: 72ch;
}
.thesis__copy h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-weight: 500;
  max-width: 28ch;
}
.thesis__copy p {
  color: var(--ink-1);
  margin: 0 0 var(--s-3);
  line-height: 1.55;
  font-size: var(--text-md);
  max-width: 68ch;
}
.thesis__copy p:last-of-type {
  color: var(--ink-2);
  margin-bottom: 0;
}



/* =====================================
   Sectors
   ===================================== */

.sectors { padding-bottom: var(--s-24); }
.sectors__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
  background: var(--rule);
  border: 1px solid var(--rule);
}

/* When 3 sectors render in a 2-col grid, the third tile spans full width
   and switches to a horizontal image-left / body-right layout. */
.sectors__grid .sector:nth-child(3):last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 0;
}
.sectors__grid .sector:nth-child(3):last-child .sector__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 480px;
}
.sectors__grid .sector:nth-child(3):last-child .sector__body {
  justify-content: center;
}
.sector {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}
.sector__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-1);
}
.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
  display: block;
}
.sector:hover .sector__media img { transform: scale(1.035); }
.sector__tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(10px);
  padding: 6px 10px;
  border: 1px solid var(--rule-2);
  z-index: 2;
}
.sector__body {
  padding: var(--s-8) var(--s-6) var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}
.sector__title {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.sector__title .accent { color: var(--accent); font-weight: 500; }
.sector__lede {
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}
.sector__points {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
}
.sector__points li {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s-3);
}
.sector__points li::before {
  content: "→";
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

@media (max-width: 920px) {
  .sectors__grid { grid-template-columns: 1fr; }
  .sector { min-height: 0; }
  .sectors__grid .sector:nth-child(3):last-child {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .sectors__grid .sector:nth-child(3):last-child .sector__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    height: auto;
  }
  .sector { min-height: 0; }
}

/* =====================================
   Portfolio
   ===================================== */

.portfolio { padding-bottom: var(--s-24); }
.portfolio__list {
  border-top: 1px solid var(--rule-2);
}
.portfolio__row {
  display: grid;
  grid-template-columns: 80px 200px 1fr auto;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 280ms ease, background 280ms ease;
  position: relative;
}
.portfolio__row::before {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  top: 0; bottom: 0;
  background: var(--accent);
  width: 2px;
  opacity: 0;
  transition: opacity 280ms ease;
}
a.portfolio__row:hover { padding-inline: var(--s-4); }
a.portfolio__row:hover::before { opacity: 1; left: -2px; }
a.portfolio__row:hover .portfolio__name { color: var(--accent); }

.portfolio__row-idx {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.portfolio__row-sector {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.portfolio__name {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 220ms ease;
}
.portfolio__row-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.portfolio__row--muted { opacity: 0.45; }
.portfolio__row--muted:hover { padding-inline: 0; cursor: default; }

@media (max-width: 920px) {
  .portfolio__row {
    grid-template-columns: 1fr;
    gap: var(--s-2);
    padding: var(--s-5) 0;
  }
}

/* =====================================
   Team
   ===================================== */

.team { padding-bottom: var(--s-24); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-1);
  background: var(--rule);
  border: 1px solid var(--rule);
}
.member {
  background: var(--bg);
  padding: var(--s-10) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 220px;
}
.member__idx {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.member__name {
  font-size: var(--text-md);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: auto;
}
.member__role {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.member--placeholder .member__name { color: var(--ink-3); }
.member--placeholder .member__role { color: var(--ink-4); }

@media (max-width: 920px) {
  .team__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .team__grid { grid-template-columns: 1fr; }
}

/* =====================================
   Footer / Contact
   ===================================== */

.contact {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-20) var(--s-12);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.contact h2 { max-width: 14ch; }
.contact__channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.channel {
  background: var(--bg);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--s-4);
  transition: background 220ms ease;
}
.channel:hover { background: var(--bg-1); }
.channel__k {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.channel__v {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.channel__cta {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.channel:hover .channel__cta { color: var(--accent); }

@media (max-width: 920px) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

.footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s-8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-6);
}
.footer .mono { color: var(--ink-3); }
.footer__center { text-align: center; }
.footer__right { text-align: right; }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-2); }
  .footer__center, .footer__right { text-align: left; }
}

/* =====================================
   Reveal animation (IntersectionObserver in app.js)
   ===================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 800ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 800ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   Selection
   ===================================== */
::selection { background: var(--accent); color: var(--bg); }
