@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

/* CELL — Warm Analog */
{
  --bg: #f3ede3;
  --bg2: #ede5d8;
  --bg3: #e3d9c8;
  --fg: #2a241c;
  --fg2: #6b5e4e;
  --acc: #7c3b1e;
  --acc2: #3d6b4e;
  --border: rgba(42,36,28,.12);
  background: var(--bg); color: var(--fg);
  font-family: 'Jost', sans-serif;
  min-height: 100vh;
}
/* grain overlay */
.t4::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: .4;
}
> * { position: relative; z-index: 1; }
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 52px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, padding .3s;
}
nav.scrolled {
  background: rgba(243,237,227,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
  padding: 16px 52px;
}
/* When over the video hero, nav text is white */
.video-hero ~ * { position: relative; }
.logo {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .3s;
}
nav.scrolled .logo { color: var(--fg); }
nav.scrolled .nav-links a { color: var(--fg2); }
nav.scrolled .nav-links a:hover { color: var(--fg); }
nav.scrolled .nav-links a.active { color: var(--acc); }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); text-decoration: none; font-weight: 400; transition: color .2s;
}
.nav-links a:hover { color: rgba(255,255,255,.9); }

.video-hero {
  position: relative; width: 100%; height: 100vh;
  overflow: hidden; display: flex; flex-direction: column;
  justify-content: flex-end;
}
.video-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #2a241c;
  display: flex; align-items: center; justify-content: center;
}
.video-bg video {
  width: 100%; height: 100%; object-fit: cover;
}
.video-bg-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #3a2e22 0%, #1e1710 60%, #2d2218 100%);
  display: flex; align-items: center; justify-content: center;
}
.video-bg-placeholder::after {
  content: 'upload background video';
  font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.2);
  border: 1px dashed rgba(255,255,255,.15); padding: 16px 28px;
}
.video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.05) 40%,
    rgba(0,0,0,.55) 80%,
    rgba(0,0,0,.72) 100%
  );
}
.video-bottom {
  position: relative; z-index: 2;
  padding: 0 52px 52px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.video-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,.82); line-height: 1.25; max-width: 540px;
}
.video-scroll {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-family: 'Jost', sans-serif;
  display: flex; align-items: center; gap: 10px;
}
.video-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.3);
}

.intro-strip {
  padding: 80px 52px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 28px; font-weight: 500;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 300; line-height: 1.12; margin-bottom: 28px;
}
.hero-headline em { font-style: italic; color: var(--acc); }
.hero-sub {
  font-size: 15px; line-height: 1.8; color: var(--fg2); max-width: 400px;
  font-weight: 300; margin-bottom: 36px;
}
.hero-cta {
  display: inline-block; border-bottom: 1px solid var(--acc);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc); font-weight: 500; padding-bottom: 4px;
  cursor: pointer; transition: letter-spacing .2s;
}
.hero-cta:hover { letter-spacing: .2em; }

.diagram-section {
  padding: 80px 52px; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center;
}
.diag-desc { }
.diag-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 24px; font-weight: 500;
}
.diag-title {
  font-family: 'Cormorant Garamond', serif; font-size: 34px;
  font-weight: 300; line-height: 1.2; margin-bottom: 20px;
}
.diag-body {
  font-size: 14px; line-height: 1.85; color: var(--fg2); font-weight: 300;
}

.domains {
  padding: 80px 52px; border-bottom: 1px solid var(--border);
}
.domains-intro {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 56px;
}
.domains-title {
  font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 300;
}
.domains-note { font-size: 12px; color: var(--fg2); letter-spacing: .06em; }
.domain-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.domain-card {
  background: rgba(243,237,227,.82);
  backdrop-filter: blur(2px);
  padding: 40px 36px;
  border: none;
  transition: background .3s;
}
.domain-card:hover { background: rgba(237,229,216,.92); }
.dc-num {
  font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300;
  font-style: italic; color: var(--acc); line-height: 1; margin-bottom: 16px;
}
.dc-name {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400;
  margin-bottom: 14px; line-height: 1.2;
}
.dc-desc { font-size: 13px; color: var(--fg2); line-height: 1.75; margin-bottom: 28px; }
.dc-works { display: flex; flex-direction: column; gap: 8px; }
.dw-item {
  display: flex; justify-content: space-between;
  font-size: 11px; padding: 6px 0;
  border-bottom: 1px solid var(--border); color: var(--fg2);
}
.dw-item em { font-style: normal; font-size: 10px; color: var(--acc2); }

.quilt {
  padding: 72px 52px; border-bottom: 1px solid var(--border);
}
.quilt-intro {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg2); margin-bottom: 32px; font-weight: 500;
}
.quilt-names {
  display: flex; flex-wrap: wrap; gap: 0;
}
.quilt-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300; color: var(--fg);
  white-space: nowrap;
  transition: color .2s; cursor: default;
}
.quilt-name:hover { color: var(--acc); }
.quilt-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300; color: var(--border);
  padding: 0 14px; user-select: none;
}

.metadesign {
  padding: 80px 32px;
  background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.meta-body-grid {
  display: flex; justify-content: center;
  padding: 0 24px;
}
.meta-diagram {
  display: flex; justify-content: center; padding-top: 8px;
  width: 100%;
}

.domain-prev-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 20px; font-weight: 500;
  font-family: 'Jost', sans-serif;
}

.video-wordmark {
  position: absolute; z-index: 2;
  top: 50%; left: 50%; transform: translate(-50%, -54%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 300; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.92);
  line-height: 1; user-select: none;
  text-shadow: 0 2px 80px rgba(0,0,0,.3);
}
.meta-headline {
  font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 300;
  line-height: 1.2; max-width: 560px; margin-bottom: 56px;
}
.meta-stack { display: flex; flex-direction: column; gap: 2px; }
.meta-layer {
  background: rgba(243,237,227,.78);
  backdrop-filter: blur(2px);
  padding: 32px 36px;
  display: grid; grid-template-columns: 120px 1fr;
  gap: 40px; align-items: start;
  border: none;
  transition: background .2s;
}
.meta-layer:hover { background: rgba(237,229,216,.92); }
.ml-side { }
.ml-num {
  font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300;
  font-style: italic; color: var(--acc); line-height: 1; display: block;
  margin-bottom: 6px;
}
.ml-tag {
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc2);
}
.ml-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.ml-body { font-size: 13px; color: var(--fg2); line-height: 1.7; font-weight: 300; }

footer {
  padding: 48px 52px; display: flex;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 24px;
  font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
}
.footer-cta {
  background: var(--acc); color: var(--bg); border: none;
  padding: 14px 36px; font-family: 'Jost', sans-serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer;
}
.footer-copy { font-size: 11px; color: var(--fg2); letter-spacing: .06em; }



/* ── Page fade-in ── */
body { opacity: 0; animation: fadeIn .5s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }


/* ── Venn SVG shared ── */
.venn-svg { width: 100%; max-width: 540px; }

/* ── Work page ── */
.work-hero {
  padding: 140px 52px 80px;
  border-bottom: 1px solid var(--border);
}
.work-hero-eyebrow {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 20px; font-weight: 500;
}
.work-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 68px); font-weight: 300; line-height: 1.1;
}
.work-section { padding: 72px 52px; border-bottom: 1px solid var(--border); }
.work-section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 48px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ws-num {
  font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 300;
  font-style: italic; color: var(--acc); line-height: 1; margin-right: 24px;
}
.ws-title {
  font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300;
}
.ws-desc { font-size: 14px; color: var(--fg2); max-width: 540px; line-height: 1.7; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); }
.work-card {
  background: var(--bg); padding: 36px 40px;
  transition: background .25s;
}
.work-card:hover { background: var(--bg2); }
.wc-client { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); margin-bottom: 10px; }
.wc-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.wc-desc { font-size: 13px; color: var(--fg2); line-height: 1.7; font-weight: 300; }
.wc-tag {
  display: inline-block; margin-top: 14px;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); border-bottom: 1px solid rgba(124,59,30,.3); padding-bottom: 2px;
}

/* ── Framework page ── */
.framework-hero {
  padding: 140px 52px 80px;
  border-bottom: 1px solid var(--border);
}
.framework-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 80px 52px; border-bottom: 1px solid var(--border); align-items: start;
}
.fi-label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 20px; font-weight: 500;
}
.fi-title {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300;
  line-height: 1.2; margin-bottom: 20px;
}
.fi-body { font-size: 14px; color: var(--fg2); line-height: 1.8; font-weight: 300; }
.framework-diagram { padding: 80px 32px; display: flex; flex-direction: column; align-items: center; }

/* ── Contact page ── */
.contact-wrap {
  min-height: 80vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
}
.contact-left { padding: 100px 52px; border-right: 1px solid var(--border); }
.contact-eyebrow {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--acc2); margin-bottom: 24px; font-weight: 500;
}
.contact-left h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 58px);
  font-weight: 300; line-height: 1.1; margin-bottom: 28px;
}
.contact-left p { font-size: 15px; color: var(--fg2); line-height: 1.8; font-weight: 300; max-width: 400px; }
.contact-right { padding: 100px 52px; }
.contact-detail {
  padding: 28px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.cd-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--acc2); font-weight: 500;
}
.cd-value {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300;
  color: var(--fg);
}
.cd-value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color .2s; }
.cd-value a:hover { border-color: var(--acc); color: var(--acc); }

/* ── Mobile nav ── */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 101;
}
.nav-burger span {
  display: block; width: 24px; height: 1px;
  background: currentColor; transition: transform .3s, opacity .3s;
}
@media (max-width: 680px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 14px 24px; }
  .nav-burger { display: flex; color: rgba(255,255,255,.85); }
  nav.scrolled .nav-burger { color: var(--fg); }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg); justify-content: center; align-items: center;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 14px; letter-spacing: .18em; padding: 16px 0;
    border-bottom: 1px solid var(--border); width: 200px; text-align: center;
  }
  /* Page-specific padding adjustments */
  .intro-strip, .domains, .metadesign, .work-hero,
  .framework-hero, .framework-intro, .contact-hero,
  .contact-body > *, .process-note, .clients-strip,
  .founder, .credentials, .practice, .about-hero { padding-left: 24px; padding-right: 24px; }
  .domain-grid { grid-template-columns: 1fr; }
  .intro-strip, .about-hero, .contact-hero, .contact-body,
  .framework-intro, .process-note, .founder { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .eng-item { grid-template-columns: 1fr; gap: 6px; }
  .practice-item { grid-template-columns: 32px 1fr; gap: 16px; flex-wrap: wrap; }
}
