:root {
  --bg: #f8f7f4;
  --bg-section: #edecea;
  --text: #111110;
  --text-secondary: #3d3d38;
  --accent: #2d5a3d;
  --accent-light: #3a7a52;
  --border: #d0cec8;
  --card-bg: #ffffff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", -apple-system, sans-serif;
  color-scheme: light only;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #f8f7f4;
  color-scheme: light only;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f7f4;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

nav .logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav .nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

nav .nav-links a:hover {
  color: var(--text);
}

nav .nav-links a.cta-nav {
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
}

nav .nav-links a.cta-nav:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* NAV DROPDOWN */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav-dropdown > a:hover {
  color: var(--text);
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-section);
  color: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-text .subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.875rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}

.hero-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.2);
}

.hero-cta svg {
  transition: transform 0.2s;
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

.hero-photo {
  position: relative;
}

.hero-photo .photo-frame {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.hero-photo .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* SECTION LAYOUT */
section {
  padding: 6rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* THESIS SECTION */
.thesis {
  padding: 6rem 2.5rem;
}

.thesis-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.thesis-main p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.thesis-main p strong {
  color: var(--text);
  font-weight: 600;
}

.look-for {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.look-for h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.look-for-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.look-for-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.look-for-item strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* PORTFOLIO */
.portfolio-section {
  background: var(--text);
  color: var(--bg);
  padding: 6rem 2.5rem;
  margin: 0;
  max-width: none;
}

.portfolio-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-section .section-label {
  color: rgba(248, 247, 244, 0.5);
}

.portfolio-section .section-title {
  color: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  grid-column: span 3;
}

.portfolio-card:nth-child(-n + 3) {
  grid-column: span 4;
}

.portfolio-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.portfolio-card .company-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
  font-weight: 400;
}

.portfolio-card .company-stage {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248, 247, 244, 0.4);
  margin-bottom: 0.75rem;
}

.portfolio-card .company-desc {
  font-size: 0.875rem;
  color: rgba(248, 247, 244, 0.6);
  line-height: 1.5;
}

.portfolio-note {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 247, 244, 0.5);
  font-size: 0.875rem;
  line-height: 1.6;
}

.portfolio-note strong {
  color: rgba(248, 247, 244, 0.7);
}

/* BACKGROUND / STORY */
.story {
  padding: 6rem 2.5rem;
}

.story-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  margin-top: 2rem;
}

.story-prose p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.story-prose p strong {
  color: var(--text);
  font-weight: 600;
}

.story-highlights {
  padding-top: 0.5rem;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.highlight-card .number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-card .label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* RESOURCES */
.resources {
  background: var(--bg-section);
  padding: 6rem 2.5rem;
  max-width: none;
  margin: 0;
}

.resources-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.resource-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.resource-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.resource-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.resource-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.resource-card .arrow {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}

.resource-card:hover .arrow {
  gap: 0.625rem;
}

/* CONNECT */
.connect {
  padding: 8rem 2.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.connect .section-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.connect p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--card-bg);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.connect .email-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: white;
  padding: 1rem 2.25rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.25s ease;
  margin-bottom: 2rem;
}

.connect .email-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.25);
}

/* FOOTER */
footer {
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* HAMBURGER MENU */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  transition: transform 0.2s;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

/* EXTERNAL LINK INDICATOR */
.resource-card.external::after {
  content: "↗";
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.75rem;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.resource-card.external:hover::after {
  opacity: 0.6;
}

/* FORCE LIGHT MODE */
@media (prefers-color-scheme: dark) {
  html,
  body {
    background-color: #f8f7f4 !important;
    color: #111110 !important;
    color-scheme: light only !important;
  }
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-in.visible,
.no-js .fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* SUBPAGE STYLES */
.page-header {
  padding: 10rem 2.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-header .section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.page-header .intro {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
}

.page-header .intro a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.prose p strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.prose a:hover {
  color: var(--accent-light);
}

.prose ul,
.prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.prose li strong {
  color: var(--text);
  font-weight: 600;
}

.prose li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.prose li a:hover {
  color: var(--accent-light);
}

.prose li ul,
.prose li ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* BOOKS PAGE */
.book-section { margin-bottom: 3.5rem; }
.book-section-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 400; letter-spacing: -0.02em; color: var(--text); padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.book-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 2rem; margin-bottom: 1rem; text-decoration: none; color: inherit; transition: all 0.25s ease; }
.book-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
div.book-card a { color: inherit; text-decoration: none; }
div.book-card a:hover { text-decoration: underline; }
div.book-card p a { color: var(--accent); text-decoration: underline; }
.book-card .book-num { font-family: var(--serif); font-size: 0.875rem; color: var(--accent); opacity: 0.6; margin-bottom: 0.25rem; }
.book-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 0 0 0.25rem; }
.book-card .book-author { font-size: 0.8125rem; color: var(--accent); font-weight: 500; margin-bottom: 0.625rem; }
.book-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }
.book-card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* MEDITATION PAGE */
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.practice-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: all 0.25s ease; }
.practice-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.practice-card .practice-since { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.practice-card h3 { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; margin: 0 0 0.75rem; }
.practice-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 0; }
.practice-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.practice-card h3 a { display: block; color: inherit; text-decoration: none; }
.practice-card h3 a:hover { color: var(--accent); text-decoration: underline; }

.med-section { margin-bottom: 3.5rem; scroll-margin-top: 6rem; }
.med-section-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 400; letter-spacing: -0.02em; color: var(--text); padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.med-subsection { margin-bottom: 1.5rem; }
.med-subsection h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }

.resource-item { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem; margin-bottom: 0.75rem; text-decoration: none; color: inherit; transition: all 0.25s ease; }
.resource-item:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.resource-item h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 400; margin: 0 0 0.25rem; }
.resource-item .resource-author { font-size: 0.8125rem; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem; }
.resource-item p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; }

.resource-item-static { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem; margin-bottom: 0.75rem; }
.resource-item-static h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 400; margin: 0 0 0.5rem; }
.resource-item-static p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; }
.resource-item-static a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.resource-item-static > a { color: inherit; text-decoration: none; }
.resource-item-static > a:hover { text-decoration: underline; }

/* NEGOTIATION PAGE */
.cheat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cheat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: all 0.25s ease; }
.cheat-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.cheat-card.full-width { grid-column: 1 / -1; }
.cheat-card h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; color: var(--text); letter-spacing: -0.01em; }
.cheat-card h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 400; margin: 1.25rem 0 0.5rem; color: var(--accent); }
.cheat-card p, .cheat-card li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.cheat-card p { margin-bottom: 0; }
.cheat-card ul { list-style: none; padding: 0; }
.cheat-card ul li { padding: 0.375rem 0 0.375rem 1.25rem; position: relative; }
.cheat-card ul li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.5; }
.cheat-card strong { color: var(--text); font-weight: 600; }
.cheat-card em { font-style: italic; color: var(--accent); }
.blank-fill { display: inline-block; width: 5em; border-bottom: 1.5px solid var(--text); vertical-align: baseline; margin: 0 0.15em; }
.cheat-card .phrase { display: block; background: var(--bg-section); border-radius: 6px; padding: 0.5rem 0.875rem; margin: 0.375rem 0; font-size: 0.875rem; color: var(--text); font-style: italic; }

.section-divider { grid-column: 1 / -1; padding: 3rem 0 0.5rem; }
.section-divider h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 400; letter-spacing: -0.02em; color: var(--text); padding-bottom: 1rem; border-bottom: 1px solid var(--border); }

.negotiator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-column: 1 / -1; }
.negotiator-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.negotiator-card h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin: 0 0 0.25rem; }
.negotiator-card .motto { font-size: 0.8125rem; color: var(--accent); font-weight: 500; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.negotiator-card p, .negotiator-card li { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.negotiator-card p { margin-bottom: 0; }
.negotiator-card ul { list-style: none; padding: 0; }
.negotiator-card ul li { padding: 0.25rem 0 0.25rem 1rem; position: relative; }
.negotiator-card ul li::before { content: ""; position: absolute; left: 0; top: 0.7rem; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: 0.4; }
.negotiator-card strong { color: var(--text); font-weight: 600; }
.negotiator-card em { font-style: italic; color: var(--accent); }

/* MANUAL PAGE */
.manual-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2rem 2.25rem; margin-bottom: 1.25rem; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start; transition: all 0.25s ease; }
.manual-item:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.manual-num { font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; opacity: 0.4; padding-top: 0.2rem; }
.manual-text h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: 0.85rem; }
.manual-text p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.85rem; }
.manual-text p strong { color: var(--text); font-weight: 600; }
.manual-text ul { margin: 0 0 0.85rem; padding-left: 1.4rem; }
.manual-text li { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }
.manual-text > :last-child { margin-bottom: 0; }

/* APPS PAGE */
.apps-hero { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 3rem; align-items: center; }
.apps-page-header .intro { max-width: none; margin-bottom: 0; }
.apps-hero-art { margin: 0; }
.apps-hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 28px rgba(17, 17, 16, 0.09)); }
.app-section { margin-bottom: 3rem; scroll-margin-top: 6rem; }
.app-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 2.25rem 2.5rem; }
.app-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.app-icon-img { width: 72px; height: 72px; flex-shrink: 0; }
.app-icon-cli { width: 72px; height: 72px; flex-shrink: 0; border-radius: 16px; background: #1f1e1a; color: #7ee787; display: flex; align-items: center; justify-content: center; font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 1.375rem; font-weight: 600; }
.app-head h2 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 0.125rem; }
.app-tagline { font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.app-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.app-meta span { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--text-secondary); background: var(--bg-section); border-radius: 100px; padding: 0.3125rem 0.75rem; }
.app-card > p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.app-card p strong { color: var(--text); font-weight: 600; }
.app-card p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.app-subsection { margin-top: 1.5rem; }
.app-subsection h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.app-subsection p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.app-subsection ol { margin: 0; padding-left: 1.375rem; }
.app-subsection li { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.5rem; }
.app-subsection li a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.app-card code { font-family: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace; font-size: 0.8125em; background: var(--bg-section); border-radius: 5px; padding: 0.125em 0.4em; }
.app-code { background: #1f1e1a; border-radius: 10px; padding: 1rem 1.25rem; margin: 0.75rem 0; overflow-x: auto; }
.app-code code { display: block; background: none; padding: 0; border-radius: 0; font-size: 0.8125rem; line-height: 1.8; color: #e8e6df; white-space: pre; }
.app-code .cmt { color: #8a8778; }
.app-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.app-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; border-radius: 100px; padding: 0.6875rem 1.5rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.app-btn:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45, 90, 61, 0.22); }
.app-btn.secondary { background: var(--card-bg); border: 1px solid var(--border); color: var(--text); }
.app-btn.secondary:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }
.app-note { font-size: 0.8125rem; line-height: 1.6; margin-top: 1.25rem; }
.app-card > :last-child { margin-bottom: 0; }

/* EMAIL GATE */
.email-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
}

.email-gate.hidden { display: none; }

.email-gate-modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.email-gate-modal h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.email-gate-modal p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.email-gate-form {
  display: flex;
  gap: 0.75rem;
}

.email-gate-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.email-gate-form input[type="email"]:focus {
  border-color: var(--accent);
}

.email-gate-form button {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.email-gate-form button:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

body.gate-active .page-header,
body.gate-active .content,
body.gate-active footer {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* PDF VIEWER */
.pdf-viewer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}

.pdf-controls {
  position: sticky;
  top: 65px;
  z-index: 50;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pdf-controls .pdf-nav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.pdf-controls .pdf-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.pdf-controls .pdf-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pdf-page-info {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.pdf-progress-wrap {
  flex: 1;
  height: 4px;
  background: var(--bg-section);
  border-radius: 2px;
  overflow: hidden;
}

.pdf-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.375rem 0.75rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.pdf-download-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pdf-download-label { }

.pdf-canvas-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.pdf-canvas-container canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.pdf-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.pdf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pdf-spin 0.8s linear infinite;
}

@keyframes pdf-spin {
  to { transform: rotate(360deg); }
}

/* PDF CTA on negotiation page */
.pdf-cta {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.pdf-cta p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pdf-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.pdf-cta a:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }

  nav .nav-links {
    gap: 1.25rem;
  }

  .hero {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-photo {
    order: -1;
    max-width: 280px;
  }

  .thesis-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-card,
  .portfolio-card:nth-child(-n + 3) {
    grid-column: auto;
  }

  .story-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  section,
  .thesis,
  .story,
  .portfolio-section,
  .resources {
    padding: 4rem 1.5rem;
  }

  .page-header {
    padding: 7rem 1.5rem 3rem;
  }

  .content {
    padding: 0 1.5rem 4rem;
  }

  .apps-hero {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 2rem;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .cheat-grid {
    grid-template-columns: 1fr;
  }

  .negotiator-grid {
    grid-template-columns: 1fr;
  }

  .pdf-viewer {
    padding: 0 1.5rem 4rem;
  }

  .pdf-controls {
    top: 57px;
    padding: 0.625rem 1rem;
  }

  .manual-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .manual-num {
    font-size: 1.5rem;
  }

  .app-card {
    padding: 1.75rem 1.5rem;
  }

  .app-head {
    gap: 1rem;
  }

  .app-icon-img,
  .app-icon-cli {
    width: 56px;
    height: 56px;
  }

  .app-icon-cli {
    border-radius: 12px;
    font-size: 1.125rem;
  }

  .app-head h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav-toggle {
    display: block;
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 150;
  }

  .apps-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .apps-hero-art {
    order: -1;
    width: 120px;
  }

  nav .nav-links.open {
    right: 0;
  }

  nav .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav .nav-links a.cta-nav {
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem 1.25rem;
    width: auto;
    border-bottom: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown > a {
    font-size: 1rem !important;
    padding: 0.75rem 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-dropdown.open > a {
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    border-radius: 0;
    margin: 0;
    opacity: 1;
    pointer-events: auto;
    display: none;
    padding: 0;
    min-width: 0;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    border-bottom: 1px solid var(--border);
    padding: 0.625rem 0 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: none;
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: 1px solid var(--border);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  .nav-overlay.active {
    display: block;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .email-gate-form {
    flex-direction: column;
  }

  .pdf-controls {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pdf-download-label {
    display: none;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }
}
