:root {
  --ink: #271d1e;
  --muted: #6e6262;
  --paper: #f8f1e5;
  --paper-deep: #eee1cf;
  --wine: #651f32;
  --wine-dark: #471322;
  --gold: #b78d43;
  --gold-light: #d8bd84;
  --white: #fffdf8;
  --line: rgba(101, 31, 50, 0.16);
  --shadow: 0 22px 70px rgba(71, 19, 34, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--wine-dark);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 241, 229, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  color: var(--wine);
}
.brand-note {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:not(.button):hover,
.nav-links a:not(.button):focus-visible { color: var(--wine); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--wine);
  border-radius: 50%;
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(780px, 100%); }
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-dark { color: var(--white); background: var(--wine-dark); }
.section-wine { color: var(--white); background: var(--wine); }
.section-white { background: var(--white); }
.section-line { border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.section-dark .eyebrow,
.section-wine .eyebrow { color: var(--gold-light); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; }
h1 { max-width: 930px; font-size: clamp(3.1rem, 7.7vw, 7.1rem); letter-spacing: -0.048em; }
h2 { max-width: 780px; font-size: clamp(2.25rem, 5vw, 4.5rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.lede { max-width: 720px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.section-dark .lede,
.section-wine .lede { color: rgba(255, 253, 248, 0.76); }
.micro { color: var(--muted); font-size: 0.86rem; }
.section-dark .micro,
.section-wine .micro { color: rgba(255, 253, 248, 0.64); }

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 84px;
}
.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -260px;
  top: 60px;
  border: 1px solid rgba(183, 141, 67, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 84px rgba(183, 141, 67, 0.06), 0 0 0 168px rgba(101, 31, 50, 0.035);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 5px;
  background: var(--gold);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 760px; margin: 1.8rem 0 2.3rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.proof-strip { border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, 0.5); }
.proof-list {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  color: var(--wine);
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.proof-list li { display: flex; align-items: center; justify-content: center; gap: 0.75rem; text-align: center; }
.proof-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--wine);
  border-radius: 2px;
  background: var(--wine);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--wine-dark); border-color: var(--wine-dark); }
.button-outline { color: var(--wine); background: transparent; }
.button-outline:hover { color: var(--white); }
.button-gold { color: var(--wine-dark); background: var(--gold-light); border-color: var(--gold-light); }
.button-gold:hover { background: var(--white); border-color: var(--white); }
.button-small { min-height: 42px; padding: 0.55rem 1rem; }
.text-link { color: var(--wine); font-weight: 760; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.section-dark .text-link, .section-wine .text-link { color: var(--gold-light); }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { min-height: 280px; padding: 2.1rem; background: var(--white); }
.card-number { display: block; margin-bottom: 2rem; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.card p { margin: 1rem 0 0; color: var(--muted); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3.5rem; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15); }
.capability { min-height: 245px; padding: 2rem; background: var(--wine-dark); }
.capability .icon { width: 42px; height: 2px; margin-bottom: 2.2rem; background: var(--gold); }
.capability p { color: rgba(255,253,248,0.68); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.work-card { display: flex; min-height: 390px; flex-direction: column; justify-content: space-between; padding: 2.2rem; border: 1px solid var(--line); background: var(--white); }
.work-tag { margin: 0 0 4.5rem; color: var(--gold); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.work-card p { color: var(--muted); }
.work-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.86rem; }
.section-heading-row { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.carousel-controls { display: flex; gap: 0.6rem; flex-shrink: 0; }
.carousel-button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--wine); font-size: 1.3rem; line-height: 0; cursor: pointer; }
.carousel-button:hover, .carousel-button:focus-visible { background: var(--wine); color: var(--white); }
.arrow-icon { display: block; width: 18px; height: 18px; overflow: visible; }
.arrow-icon path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow-left { transform: scaleX(-1); }
.project-carousel { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-top: 3.5rem; padding: 0 0 1.2rem; }
.project-carousel:focus-visible { outline: 3px solid rgba(183,141,67,0.35); outline-offset: 6px; }
.project-card { flex: 0 0 min(760px, 88%); display: grid; grid-template-columns: 0.9fr 1.1fr; scroll-snap-align: start; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; }
.project-card:hover .project-card-link { color: var(--wine); }
.project-card-media { position: relative; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; overflow: hidden; background: var(--wine-dark); color: var(--white); font-family: var(--serif); font-size: 1.15rem; text-align: center; }
.project-card-media::after { content: ""; position: absolute; inset: 0; background: rgba(42,12,22,0.38); }
.project-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-card-play, .project-card-media-label { position: relative; z-index: 1; }
.project-card-play { display: grid; width: 58px; height: 58px; place-items: center; padding-left: 0.15rem; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); font-family: var(--sans); font-size: 0.9rem; }
.project-card-media-label { color: var(--white); font-weight: 760; }
.project-card-content { padding: clamp(1.5rem, 4vw, 2.5rem); }
.project-card-content .work-tag { margin: 0 0 1rem; }
.project-card-content h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.project-card-content p:not(.work-tag) { margin: 1rem 0 1.5rem; color: var(--muted); }
.project-card-link { color: var(--wine-dark); font-size: 0.9rem; font-weight: 760; }
.demo-play { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--gold-light); border-radius: 50%; color: var(--gold-light); font-family: var(--sans); font-size: 0.9rem; }
.project-hero { min-height: 590px; background: var(--wine-dark); color: var(--white); }
.project-hero .eyebrow { color: var(--gold-light); }
.project-hero .hero-copy { color: rgba(255,253,248,0.72); }
.project-media { display: grid; gap: 1rem; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #2a0c16; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.media-placeholder { display: grid; min-height: 100%; place-items: center; padding: 2rem; color: var(--gold-light); font-family: var(--serif); font-size: 1.25rem; text-align: center; }
.media-placeholder small { display: block; margin-top: 0.5rem; color: rgba(255,253,248,0.62); font-family: var(--sans); font-size: 0.78rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.screenshot-section { padding-top: 28px; }
.screenshot-section .screenshot-grid { margin-top: 0; }
.screenshot-frame { aspect-ratio: 4 / 3; display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper-deep); cursor: zoom-in; }
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.screenshot-frame:hover img { transform: scale(1.025); }
.lightbox { width: min(94vw, 1400px); height: min(92vh, 920px); padding: 4rem 5rem; border: 1px solid rgba(216,189,132,0.45); background: var(--wine-dark); color: var(--white); }
.lightbox::backdrop { background: rgba(39,29,30,0.86); }
.lightbox > img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close, .lightbox-control { position: absolute; z-index: 1; display: grid; place-items: center; padding: 0; border: 1px solid rgba(216,189,132,0.62); border-radius: 50%; cursor: pointer; line-height: 1; font-family: Georgia, "Times New Roman", serif; }
.lightbox-close { top: 1.25rem; right: 1.25rem; width: 48px; height: 48px; font-size: 2rem; }
.lightbox-control { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); border-color: rgba(216,189,132,0.62); background: var(--wine-dark); color: var(--gold-light); font-family: var(--sans); font-size: 1.1rem; }
.lightbox-control span { display: block; height: auto; line-height: 1; }
.close-icon { position: relative; display: block; width: 20px; height: 20px; }
.close-icon::before, .close-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 2px; background: currentColor; transform-origin: center; }
.close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-close { background: var(--wine-dark); color: var(--gold-light); }
.lightbox-close:hover, .lightbox-control:hover { background: var(--gold-light); color: var(--wine-dark); }

.founder-panel { position: relative; padding: clamp(2.2rem, 5vw, 4.5rem); border: 1px solid rgba(255,255,255,0.16); }
.founder-panel::before { content: "W"; position: absolute; right: 5%; bottom: -0.24em; color: rgba(255,255,255,0.045); font-family: var(--serif); font-size: clamp(12rem, 30vw, 25rem); line-height: 1; }
.founder-copy { position: relative; z-index: 1; max-width: 720px; }
.founder-copy p { color: rgba(255,253,248,0.75); font-size: 1.08rem; }
.credential-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.credential-list li { padding: 0.55rem 0.8rem; border: 1px solid rgba(216,189,132,0.42); color: var(--gold-light); font-size: 0.78rem; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; }

.partner-band { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 3rem; align-items: end; }
.partner-band .button { justify-self: end; }

.cta-shell { position: relative; overflow: hidden; text-align: center; }
.cta-shell::before, .cta-shell::after { content: ""; position: absolute; top: 50%; width: 22vw; height: 1px; background: rgba(216,189,132,0.4); }
.cta-shell::before { left: 0; }
.cta-shell::after { right: 0; }
.cta-shell .container { position: relative; z-index: 1; }
.cta-shell h2 { margin-right: auto; margin-left: auto; }
.cta-shell .lede { margin-right: auto; margin-left: auto; }
.cta-shell .button { margin-top: 2rem; }

.site-footer { padding: 46px 0; background: #2a0c16; color: rgba(255,253,248,0.66); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.12em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-size: 0.84rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }

/* Partner page */
.partner-hero { min-height: 690px; background: var(--wine-dark); color: var(--white); }
.partner-hero::before { border-color: rgba(216,189,132,0.25); box-shadow: 0 0 0 84px rgba(216,189,132,0.035), 0 0 0 168px rgba(255,255,255,0.02); }
.partner-hero .hero-copy { color: rgba(255,253,248,0.72); }
.partner-hero h1 { max-width: 1020px; font-size: clamp(3rem, 7vw, 6.5rem); }
.partner-hero::after { width: 58%; }
.partner-hero .eyebrow { color: var(--gold-light); }
.partner-proof { background: var(--wine); border-color: rgba(255,255,255,0.12); }
.partner-proof .proof-list { color: var(--white); }
.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.engagement-card { padding: 2rem; border-top: 3px solid var(--gold); background: var(--white); box-shadow: 0 18px 50px rgba(71,19,34,0.07); }
.engagement-card p { color: var(--muted); }
.sprint-shell { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 5rem; align-items: start; }
.sprint-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.15); }
.sprint-list li { display: grid; grid-template-columns: 38px 1fr; gap: 1rem; padding: 1.35rem; background: var(--wine-dark); }
.sprint-list span { color: var(--gold-light); font-family: var(--serif); font-size: 1.15rem; }
.sprint-list strong { display: block; color: var(--white); }
.sprint-list small { display: block; margin-top: 0.25rem; color: rgba(255,253,248,0.63); font-size: 0.88rem; }
.boundary { margin-top: 1.25rem; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: rgba(255,255,255,0.06); color: rgba(255,253,248,0.74); }
.model-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.model-step { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.model-step b { display: block; color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.model-step p { color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.contact-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); box-shadow: var(--shadow); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label { color: var(--wine-dark); font-size: 0.82rem; font-weight: 760; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 0.75rem 0.85rem; border: 1px solid rgba(71,19,34,0.22); border-radius: 0; background: #fffefa; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(183,141,67,0.24); border-color: var(--gold); }
.form-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.82rem; }
.form-status { min-height: 1.4rem; margin-top: 0.8rem; color: var(--wine); font-size: 0.88rem; font-weight: 650; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 86px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 20px 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(71,19,34,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; }
  .nav-links .button { margin-top: 0.6rem; }
  .split, .sprint-shell, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .engagement-grid { grid-template-columns: 1fr; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .project-card { grid-template-columns: 1fr; }
  .project-card-media { min-height: 240px; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .work-card { min-height: auto; }
  .work-tag { margin-bottom: 2.5rem; }
  .partner-band { grid-template-columns: 1fr; }
  .partner-band .button { justify-self: start; }
}

@media (max-width: 640px) {
  .nav-shell, .container { width: min(100% - 28px, 1120px); }
  .brand-note { display: none; }
  .section { padding: 78px 0; }
  .section-tight { padding: 54px 0; }
  .hero { min-height: 650px; padding: 72px 0 66px; }
  .hero::before { width: 410px; height: 410px; right: -270px; top: 80px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .partner-hero h1 { font-size: clamp(2.65rem, 13vw, 4.25rem); }
  .section.screenshot-section { padding-top: 24px; }
  .hero-actions .button { width: 100%; }
  .proof-list { min-height: auto; grid-template-columns: 1fr; padding: 1.25rem 0; gap: 0.6rem; }
  .cards, .capability-grid { grid-template-columns: 1fr; }
  .card, .capability { min-height: auto; }
  .model-steps { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .cta-shell::before, .cta-shell::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}



.project-card { grid-template-columns: 1fr; }
.project-card-media { aspect-ratio: 16 / 9; min-height: 0; }
.project-carousel {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}