/* ============================================
   Founders Office @ Shifu — Notion-inspired
   ============================================ */

:root {
  --text: #37352f;
  --text-light: #787774;
  --text-faint: #b4b4b0;
  --bg: #ffffff;
  --bg-warm: #f7f6f3;
  --bg-hover: #f1f1ef;
  --border: #e9e9e7;
  --accent: #37352f;
  --accent-soft: #eb5757;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --max-w: 1080px;
  --narrow: 680px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: var(--narrow); }

/* ---- Animations ---- */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

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

.nav-logo {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-img {
  height: 32px; width: auto;
}

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--text) !important;
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.78rem !important;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); border-radius: 1px;
}

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

.hero {
  padding: 120px 32px 60px;
  text-align: center;
  max-width: var(--narrow);
  margin: 0 auto;
}

.hero-label {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center;
  padding: 10px 24px; border-radius: 4px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.15s; cursor: pointer; border: none;
}
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-large { padding: 14px 36px; font-size: 0.95rem; }

.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 32px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 500;
  letter-spacing: -0.02em; color: var(--text);
}
.stat-label { font-size: 0.72rem; color: var(--text-faint); margin-top: 2px; }
.stat-sep { width: 1px; height: 32px; background: var(--border); }

/* ============================================
   Sections
   ============================================ */

.section { padding: 56px 0; }

.section-rule {
  border: none;
  border-top: 1px solid var(--border);
  max-width: var(--narrow);
  margin: 0 auto;
}

.overline {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 8px;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.subtitle {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 40px;
}

.prose p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}
.prose h3 {
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

/* ---- Pullquote ---- */

.pullquote {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  border-left: 2px solid var(--text);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  line-height: 1.5;
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-light);
  margin-top: 12px;
}

/* ---- Divider ---- */

.divider {
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.divider span {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-light);
}

/* ---- Two Column ---- */

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

/* ---- Cards ---- */

.card-minimal {
  padding: 28px; border: 1px solid var(--border); border-radius: 8px;
  transition: box-shadow 0.2s;
}
.card-minimal:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.card-minimal h3 { font-size: 0.95rem; margin-bottom: 8px; }
.card-minimal p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.card-num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
  color: var(--text-faint); margin-bottom: 12px;
}

.card-bordered {
  padding: 28px; border: 1px solid var(--border); border-radius: 8px;
}
.card-bordered h3 { margin-bottom: 8px; }
.card-bordered p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin: 0; }

.card-muted { background: var(--bg-warm); border-color: transparent; }
.card-highlight { border-color: var(--text); position: relative; }
.card-badge {
  position: absolute; top: -10px; left: 20px;
  background: var(--text); color: #fff;
  font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 3px;
  letter-spacing: 0.02em;
}

/* ---- Lists ---- */

.list-dash li, .list-check li {
  font-size: 0.88rem; color: var(--text-light);
  padding: 6px 0 6px 20px; position: relative; line-height: 1.5;
}
.list-dash li::before {
  content: '\2013'; position: absolute; left: 0; color: var(--text-faint);
}
.list-check li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--text); font-weight: 600;
}

/* ---- Callout ---- */

.callout {
  background: var(--bg-warm); border-radius: 8px;
  padding: 32px; margin: 40px 0;
}
.callout-label {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 8px;
}
.callout h3 { margin-bottom: 12px; }
.callout p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin: 0; }
.callout-stats {
  display: flex; gap: 40px; margin-top: 20px;
}
.big-num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 500;
  color: var(--text); display: block;
}
.big-label { font-size: 0.72rem; color: var(--text-faint); }

/* ---- Portfolio ---- */

.portfolio-card {
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.portfolio-card h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  margin-bottom: 8px;
}
.portfolio-card > p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.portfolio-card > p:last-of-type { margin-bottom: 0; }

.metrics-row {
  display: inline-flex; align-items: center; gap: 20px;
  background: var(--bg-warm); border-radius: 6px;
  padding: 20px 24px; margin: 20px 0;
}
.metric-block { display: flex; flex-direction: column; }
.metric-label {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 2px;
}
.metric-label.accent { color: #2d8a4e; }
.metric-val { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.metric-note { font-size: 0.75rem; color: var(--text-faint); margin-top: 1px; }
.metric-arrow { font-size: 1.2rem; color: var(--text-faint); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.tags span {
  font-size: 0.75rem; font-weight: 500; padding: 4px 12px;
  border: 1px solid var(--border); border-radius: 3px; color: var(--text-light);
}

.aside {
  font-size: 0.82rem; color: var(--text-faint); font-style: italic;
  line-height: 1.6; margin-top: 12px;
}

/* ---- Why Section ---- */

.section-warm {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.big-statement {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 16px 0 20px;
  line-height: 1.35;
}

.role-punch {
  border-top: 1px solid var(--border);
  padding-top: 20px; margin-top: 24px;
}
.role-punch p {
  font-size: 1rem; color: var(--text); line-height: 1.7; margin-bottom: 4px;
}

/* ---- T-Shape Graphic ---- */

.t-shape {
  margin: 40px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.t-bar {
  position: relative;
  width: 100%;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}

.t-bar-label {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.t-bar-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.t-bar-items span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
}

.t-stem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  margin-top: 0;
}

.t-stem-label {
  position: absolute;
  top: 20px;
  left: -40px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.t-stem-blocks {
  width: 100%;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
}

.t-stem-block {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.t-stem-block:last-child {
  border-bottom: none;
}

.t-stem-block strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2px;
}

.t-stem-block span {
  font-size: 0.8rem;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .t-stem { width: 160px; }
  .t-bar-items { gap: 8px 12px; }
  .t-bar-items span { font-size: 0.75rem; }
  .t-stem-label { left: -32px; }
}

/* ---- Vertical Blocks (Role) ---- */

.vertical-block {
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.vertical-block:last-child { border-bottom: none; }
.vertical-block h3 { font-size: 1.1rem; margin-bottom: 12px; }

/* ---- Tool List (clean prose) ---- */

.tool-list { margin-top: 20px; }
.tool-list p {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.7;
  padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0;
}
.tool-list p:last-child { border-bottom: none; }

/* ---- Problem Table ---- */

.problem-table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0 48px; font-size: 0.88rem;
}
.problem-table th {
  text-align: left; font-weight: 600; font-size: 0.8rem;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 16px; border-bottom: 2px solid var(--border);
}
.problem-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  color: var(--text-light); line-height: 1.7; vertical-align: top;
}
.problem-table td:first-child {
  font-weight: 500; color: var(--text); width: 40%;
}

/* ---- Horizontal List (clean prose) ---- */

.horizontal-list { margin: 24px 0 16px; }
.horizontal-list p {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.7;
  padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0;
}
.horizontal-list p:last-child { border-bottom: none; }

/* ---- Traits ---- */

.trait-list { margin: 32px 0 48px; }
.trait {
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.trait:first-child { border-top: 1px solid var(--border); }
.trait h3 { font-size: 0.95rem; margin-bottom: 6px; }
.trait p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0 0 16px; }
.trait p:last-child { margin-bottom: 0; }

/* ---- Not For ---- */

.not-for-list {
  margin-top: 32px;
}
.not-for-list p {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.8;
  padding: 20px 0; border-bottom: 1px solid var(--border); margin: 0;
}
.not-for-list p:first-child { border-top: 1px solid var(--border); }
.not-for-list p:last-child { border-bottom: none; }

/* ---- Values ---- */

.values-list { margin-top: 32px; }
.value {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.value:first-child { border-top: 1px solid var(--border); }
.value-num {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 400;
  color: var(--text-faint); flex-shrink: 0; width: 32px; padding-top: 2px;
}
.value h3 { font-size: 0.95rem; margin-bottom: 6px; }
.value p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0 0 16px; }
.value p:last-child { margin-bottom: 0; }

/* ---- Steps ---- */

.steps { margin-top: 32px; }
.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:first-child { border-top: 1px solid var(--border); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--text); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; flex-shrink: 0; margin-top: 2px;
}
.step h3 { font-size: 0.95rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin: 0 0 4px; }

/* ---- CTA ---- */

.section-cta {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.section-cta h2 { margin-bottom: 12px; }
.section-cta p {
  font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 8px;
}
.section-cta .big-statement {
  max-width: 500px; margin: 20px auto;
}
.section-cta .btn { margin-top: 24px; }

/* ---- Modal ---- */

.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 12px; padding: 40px;
  max-width: 480px; width: 90%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal h3 {
  font-family: var(--serif); font-size: 1.4rem; margin-bottom: 12px;
}
.modal p {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.7; margin-bottom: 12px;
}
.modal p a { color: var(--text); font-weight: 500; text-decoration: underline; }
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 1.5rem;
  color: var(--text-faint); cursor: pointer;
}
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0; text-align: center;
}
.footer-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.footer p { font-size: 0.78rem; color: var(--text-faint); line-height: 1.6; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column; justify-content: center;
    align-items: center; gap: 20px; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; color: var(--text); }
  .nav-toggle { display: flex; z-index: 1001; }

  .two-col, .tool-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-sep { width: 40px; height: 1px; }
  .metrics-row { flex-direction: column; text-align: center; }
  .metric-arrow { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .hero { padding: 120px 24px 64px; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
}
