/* ============================================================
   UNFOLD GROUP — MASTER STYLESHEET
   Editorial luxury · Black dominant · Cream accents
   ============================================================ */

/* Fonts: Fraunces (display serif), Geist Mono (mono), Inter Tight (body) */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300..900,0..100,0..1&family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  /* Unfold core palette — BLACK primary + cream/white text */
  --bg: #0a0a0a;
  --bg-deep: #141414;
  --ink: #f3eee5;
  --ink-soft: #e5e0d3;
  --line: #f3eee5;
  --muted: #8e887e;
  --accent: #c7341f;          /* sparingly used red for emphasis */
  --paper-shadow: rgba(0,0,0,0.4);

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max: 1480px;
  --gutter: clamp(20px, 4vw, 60px);
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   MOBILE-FRIENDLY IMAGE DEFAULTS
   Ensures every image on every page renders cleanly on phone.
   ============================================================ */
@media (max-width: 700px) {
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Photo strips switch to a vertical stack on phones */
  .photo-strip { aspect-ratio: auto !important; grid-template-columns: 1fr !important; }
  .photo-strip img { aspect-ratio: 4 / 3; }

  /* Portfolio + tile images stay readable */
  .co-tile-img { aspect-ratio: 16 / 10 !important; }
  .co-tile-img .brand-logo { padding: 30px !important; }
  .portfolio-grid { gap: 12px !important; }

  /* Founder portraits scale down */
  .founder-portrait-large { max-width: 100% !important; aspect-ratio: 4 / 5 !important; }

  /* Event card stacking */
  .event-card, .event-card.reverse { grid-template-columns: 1fr !important; }
  .event-card.reverse .event-img { order: 0 !important; }
  .event-img { aspect-ratio: 4 / 3 !important; }

  /* Hero meta wraps cleanly */
  .hero-meta { flex-wrap: wrap; gap: 8px 16px; }
  .hero-meta span { font-size: 10px !important; }

  /* Logo banner mobile */
  .naks-logo-banner img { max-width: 100% !important; }
}

/* ============================================================
   GRAIN OVERLAY — film texture for dark theme
   ============================================================ */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.18;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0 0.4 0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAVIGATION — minimal, editorial
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(243,238,229,0.08);
  transition: padding 0.35s ease;
}
.nav.scrolled { padding-top: 14px; padding-bottom: 14px; }

.nav-brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  position: relative; top: -4px;
}

.nav-menu {
  display: flex; gap: 36px; list-style: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-menu a {
  position: relative;
  padding: 6px 0;
  transition: opacity 0.2s;
}
.nav-menu a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-cta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 50px;
  transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* Back-to-Unfold persistent pill on subsidiaries */
.back-to-unfold {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(243, 238, 229, 0.95);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.1);
}
.back-to-unfold:hover {
  background: #0a0a0a;
  color: #f3eee5;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.back-to-unfold .icon {
  display: inline-block;
  transition: transform 0.3s;
}
.back-to-unfold:hover .icon { transform: translateX(-4px); }
@media (max-width: 600px) {
  .back-to-unfold { font-size: 10px; padding: 10px 16px; bottom: 16px; left: 16px; }
}

.nav-toggle {
  display: none;
  width: 28px; height: 18px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 30px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid rgba(243,238,229,0.1);
  }
}

/* ============================================================
   HERO — Big editorial serif
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.hero-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 60px;
}
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .blink {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(58px, 11vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
}
.hero-headline em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-weight: 300;
  color: var(--accent);
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 80px;
  align-items: end;
}
@media (max-width: 800px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 30px; }
}

.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  max-width: 600px;
}
.hero-side {
  display: flex; flex-direction: column; gap: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-side-row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}
.hero-side-row:last-child { border-bottom: 1px solid var(--ink); }

/* Marquee */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
  color: var(--bg);
}
.marquee-track {
  display: inline-flex;
  animation: scroll 40s linear infinite;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
}
.marquee-track span {
  padding: 0 40px;
  display: inline-flex; align-items: center; gap: 40px;
}
.marquee-track span::after {
  content: '✦';
  color: var(--accent);
  font-style: normal;
  margin-left: 40px;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION BASES
   ============================================================ */
.section {
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  position: relative;
}
.section.dark {
  background: #060606;
  border-top: 1px solid rgba(243,238,229,0.06);
  border-bottom: 1px solid rgba(243,238,229,0.06);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: currentColor;
}

.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

/* ============================================================
   ABOUT / NUMBERED LIST
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-text { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 720px; }
.about-text p { margin-bottom: 24px; font-family: var(--display); font-weight: 300; font-style: italic; }
.about-text strong { font-style: normal; font-weight: 500; }

.principles {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.principle {
  border-bottom: 1px solid var(--ink);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
  cursor: pointer;
  transition: padding 0.3s;
}
.principle:hover { padding-left: 12px; }
.principle-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 8px;
}
.principle-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}
.principle-title em { font-style: italic; color: var(--accent); }
.principle-body {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
}

/* ============================================================
   COMPANIES GRID
   ============================================================ */
.companies-stack {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
}
.company-row {
  border-bottom: 1px solid var(--ink);
  padding: 50px 0;
  display: grid;
  grid-template-columns: 110px minmax(280px, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: center;
  transition: padding 0.4s;
  text-decoration: none;
  color: inherit;
}
.company-row:hover { padding-left: 30px; }
@media (max-width: 900px) {
  .company-row { grid-template-columns: 60px 1fr; gap: 16px; padding: 30px 0; }
  .company-row .co-tagline, .company-row .co-cta { grid-column: 2; }
}

.co-num {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(243,238,229,0.55);
  letter-spacing: 0.1em;
}
.co-name {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.co-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.co-tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,238,229,0.75);
  max-width: 380px;
  line-height: 1.6;
}
.co-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.co-cta .arrow {
  display: inline-block;
  transition: transform 0.3s;
}
.company-row:hover .co-cta .arrow { transform: translateX(8px); }

/* ============================================================
   FOUNDERS / TEAM CARDS
   ============================================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
@media (max-width: 900px) { .founders-grid { grid-template-columns: 1fr; } }

.founder {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 50px 36px;
  position: relative;
  background: var(--bg-deep);
  transition: background 0.35s;
}
.founder:hover { background: #1c1c1c; }
.founder-num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.founder-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #050505;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(243,238,229,0.06);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.3) contrast(1.05);
}
.founder-portrait .silhouette {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 96px;
  color: rgba(243,238,229,0.1);
  font-style: italic;
}
.founder-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.founder-role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.founder-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   BOARD GRID — small cards
   ============================================================ */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
@media (max-width: 900px) { .board-grid { grid-template-columns: 1fr; } }
.board-card {
  padding: 30px 0;
  border-top: 1px solid var(--ink);
}
.board-card .name {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 4px;
}
.board-card .role {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ============================================================
   CTA / JOIN STRIP
   ============================================================ */
.join-strip {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(80px, 14vw, 180px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.join-strip h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
  color: inherit;
}
.join-strip h2 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.join-strip p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  max-width: 640px;
  margin: 0 auto 50px;
  line-height: 1.4;
  color: inherit;
  opacity: 0.85;
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 38px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn .arrow { transition: transform 0.3s; display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px var(--gutter) 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(243,238,229,0.15);
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.footer-brand h3 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.footer-brand p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: rgba(243,238,229,0.6);
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(243,238,229,0.45);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(243,238,229,0.85);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 30px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243,238,229,0.45);
  flex-wrap: wrap;
  gap: 20px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Scroll bar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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