/* ============================================================
   Tokens — identical brand values carried over from the portfolio
   design (paper/ink/orange/violet, Manrope + Inter). Nothing here
   is a new palette; only the spacing scale below is new.
   ============================================================ */
:root {
  --ink: #171717;
  --ink-soft: #232323;
  --paper: #FFFDF9;
  --mist: #EDF0EE;
  --text: #1B2026;
  --muted: #585F59;
  --line: #D4D9D4;
  --orange: #FF6B2C;
  --orange-deep: #E4531A;
  --orange-soft: #FFB28D;
  --violet: #5146A6;
  --success: #2F6B50;
  --dark-body: rgba(255,255,255,.8);
  --dark-label: rgba(255,255,255,.56);
  --ease: cubic-bezier(.22,1,.36,1);

  /* Spacing scale — one shared rhythm instead of one-off values.
     Sections pick a step deliberately: --space-8/9 for major
     sections that need room to breathe, --space-6/7 for compact
     or secondary ones, so the gaps between sections read as a
     considered rhythm rather than a wall of identical padding. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --space-9: 168px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Manrope, system-ui, sans-serif;
  margin: 0;
  letter-spacing: -.028em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; max-width: 65ch; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  font-family: Manrope, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--orange-deep);
  text-transform: uppercase;
}

/* ============================================================
   Layout rhythm
   ============================================================ */
.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* Every major section on a page uses one of these two paddings,
   chosen by weight, not by trial and error per-section. */
.section {
  padding-block: clamp(72px, 9vw, var(--space-8));
}
.section-tight {
  padding-block: clamp(48px, 6vw, var(--space-6));
}
.section-hero {
  padding-block: clamp(96px, 11vw, var(--space-9)) clamp(56px, 7vw, var(--space-7));
}

/* Alternating grounds do the separating work instead of ever-larger
   gaps — a visitor reads a new band as a new topic immediately. */
.band-paper { background: var(--paper); }
.band-mist  { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink   { background: var(--ink); color: #fff; border-radius: 36px; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.grid { display: grid; }

.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }

/* ============================================================
   Nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: clamp(20px, 2vw, 30px) clamp(20px, 2.4vw, 40px) 0;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1880px;
  height: clamp(68px, 5.6vw, 84px);
  padding: 0 clamp(12px, 1.4vw, 20px);
  border-radius: 48px;
  background: #151515;
  box-shadow: 0 14px 40px rgba(21,21,21,.14);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.nav-pill.is-scrolled { box-shadow: 0 18px 48px rgba(21,21,21,.24); transform: translateY(1px) scale(.99); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,.86);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--orange); color: var(--ink); }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-trigger svg { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  top: 100%; left: 0;
  margin-top: 10px;
  min-width: 280px;
  padding: 10px;
  border-radius: 20px;
  background: #151515;
  box-shadow: 0 20px 50px rgba(21,21,21,.28);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 5;
}
.nav-dropdown-panel.is-wide { min-width: 480px; grid-template-columns: 1fr 1fr; }
.nav-dropdown-panel.align-right { left: auto; right: 0; }
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-panel a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  color: rgba(255,255,255,.82);
}
.nav-dropdown-panel a span { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--dark-label); }
.nav-dropdown-panel a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-dropdown-panel a.nav-dropdown-all { margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); border-radius: 0 0 10px 10px; font-size: 13.5px; color: var(--orange); }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-panel, .nav-dropdown-trigger svg { transition: none; }
}

.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: Manrope, sans-serif;
  white-space: nowrap;
  padding: 0 clamp(10px, 1vw, 16px);
}
.brand:hover { color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(34px, 2.6vw, 40px);
  height: clamp(34px, 2.6vw, 40px);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-name { font-size: 15.5px; font-weight: 800; letter-spacing: .05em; line-height: 1.3; }
.brand-role { display: block; font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--orange); }

.mobile-header { display: none; }
.mobile-menu-btn {
  margin-left: auto;
  display: grid;
  gap: 4px;
  place-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: transparent;
  cursor: pointer;
}
.mobile-menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
.mobile-menu-btn span:last-child { width: 12px; background: var(--orange); }

.mobile-sheet {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink);
  padding: 22px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-sheet.is-open { display: flex; }
.mobile-sheet nav { margin-top: 34px; display: grid; gap: 2px; }
.mobile-sheet nav a {
  padding: 17px 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}
.mobile-sheet nav a:hover { color: var(--orange); }

.venture-grid { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 780px) {
  .venture-grid { grid-template-columns: 1fr; }
  .venture-grid > div:first-child { border-right: none !important; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1180px) {
  .nav-pill { display: none; }
  .mobile-header { display: block; position: fixed; top: 14px; left: 14px; right: 14px; z-index: 60; }
  .mobile-header-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 10px 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 10px 30px rgba(23,23,23,.24);
  }
}

main { padding-top: clamp(96px, 10vw, 130px); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn-solid { background: var(--orange); color: var(--ink); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,107,44,.32); color: var(--ink); }
.btn-line { background: var(--paper); border: 1.4px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); color: var(--ink); }

/* ============================================================
   Cards + common components
   ============================================================ */
.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
a.card:hover, .card-hoverable:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(23,23,23,.08);
  border-color: #C7CDC7;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--orange-deep); color: var(--ink); }

.pill-stat {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   Page + hero entrance
   ============================================================ */
@keyframes bodyIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: bodyIn .35s var(--ease) both; }

@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-anim > * { animation: heroIn .8s var(--ease) both; }
.hero-anim > *:nth-child(1) { animation-delay: .04s; }
.hero-anim > *:nth-child(2) { animation-delay: .12s; }
.hero-anim > *:nth-child(3) { animation-delay: .20s; }
.hero-anim > *:nth-child(4) { animation-delay: .28s; }
.hero-anim > *:nth-child(5) { animation-delay: .36s; }
.hero-anim > *:nth-child(6) { animation-delay: .44s; }

/* ============================================================
   Hero founder carousel
   ============================================================ */
.hero-carousel { position: relative; }
.hero-carousel-slides { position: relative; }
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide { transition: none; }
}
.hero-carousel-dots { display: flex; gap: 10px; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.hero-carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-carousel-dots button:hover { background: var(--orange-soft); }
.hero-carousel-dots button.is-active { background: var(--orange); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide.is-active { animation: none; }
}

/* ============================================================
   Scroll-reveal + interaction states
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-track] { cursor: grab; }
[data-track]:active { cursor: grabbing; }
[data-track]::-webkit-scrollbar { display: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-marquee]:hover, [data-marquee]:focus-within { animation-play-state: paused; }

/* Process stepper (services.html) */
.stage-card { transition: border-color .25s var(--ease); }
.stage-card.is-active { border-color: var(--orange) !important; }
[data-rail] { transition: background .25s var(--ease); }
[data-rail].is-filled { background: var(--orange) !important; }

/* Icon badges — small stroke-based icons used to break up card grids */
.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  flex: none;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge-dark { background: rgba(255,255,255,.08); color: var(--orange); }
.icon-badge { transition: transform .25s var(--ease), background .25s var(--ease); }
.card:hover .icon-badge, a:hover > .icon-badge { transform: scale(1.08) rotate(-4deg); }

/* Systems flow diagram (Founder Venture / Workroom Asia case study) */
.flow-lane { margin-bottom: 20px; }
.flow-lane:last-child { margin-bottom: 0; }
.flow-lane-label {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.flow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow-box {
  padding: 10px 16px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.flow-box:hover { border-color: var(--violet); transform: translateY(-2px); }
.flow-box-accent { border-color: var(--orange); color: var(--orange-deep); }
.flow-box-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.flow-arrow { color: var(--violet); font-size: 14px; flex: none; }
.flow-row-sm.flow-row { gap: 6px; }
.flow-row-sm .flow-box { padding: 7px 12px; font-size: 13px; }
.flow-row-sm .flow-arrow { font-size: 12px; }

/* Clickable case-study diagram (work.html) */
[data-node-shape] { transition: stroke .25s var(--ease), stroke-width .25s var(--ease); }
[data-node-shape].is-active { stroke: var(--orange-deep) !important; stroke-width: 3 !important; }
[data-node-select] { cursor: pointer; }

.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4FBF8B;
}

footer[data-site-footer] {
  background: var(--ink);
  border-radius: 36px 36px 0 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
footer[data-site-footer] .footer-texture {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  [data-marquee] { animation: none !important; transform: none !important; flex-wrap: wrap !important; width: auto !important; }
}
