:root {
  --bg: #f7f5f0;
  --surface: #fcfbf8;
  --text: #171718;
  --muted: #706d67;
  --line: #ddd8cf;
  --gold: #b78332;
  --gold-dark: #8f5c1b;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: auto; padding: 18px 56px; }
.brand, .footer-brand { display: flex; align-items: center; }
.brand-lockup { display: block; position: relative; flex: none; width: 260px; height: 104px; overflow: hidden; }
.brand-lockup img { display: block; width: 260px; height: auto; max-width: none; object-fit: contain; object-position: left top; }
.brand-mark-only { display: none; }
.desktop-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav a, .footer-links a { transition: color .25s ease; }
.desktop-nav a:hover, .footer-links a:hover, .desktop-nav a.active { color: var(--gold-dark); }
.desktop-nav a.active { padding-bottom: 4px; border-bottom: 1px solid var(--gold); }
.home-link { color: var(--muted); }
.menu-button, .mobile-nav { display: none; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: center; max-width: 1280px; min-height: 490px; margin: auto; padding: 104px 56px 86px; }
.hero-copy { max-width: 760px; }
.eyebrow, .section-label, .product-kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.hero h1 { margin: 34px 0 24px; font-family: var(--serif); font-size: clamp(48px, 6.2vw, 78px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 em, .principle em, .closing em { font-style: italic; }
.hero p { max-width: 450px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero-sigil { position: relative; width: 280px; height: 190px; overflow: visible; opacity: .96; }
.hero-sigil img { width: 100%; height: 100%; object-fit: contain; }

.marker { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; max-width: 760px; margin: 0 auto; padding: 26px 24px 116px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.marker-line { position: relative; height: 1px; background: var(--gold); }
.marker-line i { position: absolute; top: -3.5px; left: calc(var(--marker-progress, 0) * (100% - 8px)); width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.principle { padding: 104px 24px 120px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: clamp(32px, 4.4vw, 58px); letter-spacing: -.03em; line-height: 1.12; text-align: center; }
.principle p, .closing p { margin: 0; }
.studio-work { max-width: 1392px; margin: auto; padding: 0 56px 136px; }
.section-label { margin-bottom: 30px; font-size: 15px; letter-spacing: .18em; }

.product-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: 560px; padding: clamp(36px, 6vw, 88px); overflow: hidden; background: #0e1014; color: #e0d7c9; }
.product-copy { max-width: 510px; }
.product-kicker { color: #9b9892; }
.product-logo { display: block; width: min(100%, 420px); height: auto; max-height: 110px; margin: 20px 0 28px; object-fit: contain; object-position: left center; }
.product-stage h2 { margin: 24px 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 58px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.product-stage p { max-width: 450px; color: #aaa6a0; }
.product-actions { display: flex; gap: 26px; align-items: center; margin-top: 34px; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.product-primary { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 18px; border: 1px solid rgba(183, 131, 50, .86); background: rgba(183, 131, 50, .1); color: var(--surface); transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.product-primary:hover { border-color: #d2a45c; background: rgba(183, 131, 50, .22); transform: translateY(-1px); }
.product-primary span { margin-left: 10px; color: var(--gold); font-size: 16px; }
.product-secondary { color: #c5c0b7; }
.product-art { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; height: 430px; }
.product-art picture, .product-art img { width: 100%; height: 100%; }
.product-art img { object-fit: contain; }
.closing { padding: 124px 24px 126px; font-family: var(--serif); font-size: clamp(32px, 4vw, 54px); letter-spacing: -.03em; line-height: 1.1; text-align: center; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; max-width: 1280px; margin: auto; padding: 38px 56px 30px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-lockup { width: 260px; height: 104px; }
.footer-lockup img { width: 260px; }
.footer-links { display: flex; gap: 64px; align-self: start; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; font-size: 12px; }

.page-intro { max-width: 1280px; margin: auto; padding: 110px 56px 90px; }
.page-intro h1 { margin: 40px 0; font-family: var(--serif); font-size: clamp(52px, 7vw, 88px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.intro-copy { max-width: 680px; color: var(--muted); font-size: 18px; }
.work-list { max-width: 1280px; margin: auto; padding: 0 56px 160px; }
.work-list .product-stage { margin-bottom: 24px; }
.studio-body, .journal-body { max-width: 900px; margin: auto; padding: 20px 56px 160px; }
.studio-body h2, .journal-body h2 { margin: 82px 0 20px; font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1.1; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.values span { font-family: var(--serif); font-size: 24px; }
.journal-entry { display: grid; grid-template-columns: 1fr 140px; padding: 24px 0; border-top: 1px solid var(--line); }
.journal-entry h2 { margin: 0; font-size: 26px; }
.journal-entry p { margin: 8px 0; color: var(--muted); }
.journal-entry time { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.legal-copy { max-width: 680px; color: var(--muted); }
.text-link { padding-bottom: 3px; border-bottom: 1px solid var(--gold); color: var(--text); }
.contact-copy p + p { margin-top: 28px; }
.contact-copy h2, .legal-content h2 { margin: 46px 0 16px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.1; }
.legal-content { max-width: 760px; margin: auto; padding: 0 56px 160px; color: var(--muted); }
.legal-content h2 { color: var(--text); }
.legal-content p { max-width: 680px; }
.legal-content address { margin: 20px 0 24px; color: var(--text); font-style: normal; }
.legal-content ul { max-width: 680px; padding-left: 22px; }
.legal-content li + li { margin-top: 4px; }
.legal-kicker { color: var(--text); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.legal-content code { color: var(--text); font: .92em var(--sans); }

.sekalum-hero { min-height: 0; margin: 0 56px; padding: 56px 72px 60px; }
.sekalum-breadcrumb { margin-bottom: 28px; color: #9b9892; }
.sekalum-hero h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sekalum-hero .product-logo { margin-top: 14px; }
.sekalum-hero .product-actions { margin-top: 26px; }
.sekalum-hero-mark { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 230px; opacity: .8; }
.sekalum-hero-mark img { width: min(228px, 60%); height: auto; filter: drop-shadow(0 0 36px rgba(184,145,92,.14)); }
.product-actions-wrap { flex-wrap: wrap; }
.sekalum-section, .sekalum-model-section, .sekalum-video-section { padding: 72px 56px; }
.sekalum-section-copy { max-width: 760px; margin: auto; }
.sekalum-section-copy h2 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(40px, 5vw, 66px); font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
.sekalum-section-copy p { max-width: 680px; color: var(--muted); font-size: 18px; }
.sekalum-why { border-top: 1px solid var(--line); }
.sekalum-model-section { background: var(--surface); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.why-grid article { padding-top: 16px; border-top: 1px solid var(--line); }
.why-grid h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.why-grid p { margin: 0; font-size: 16px; }
.credential-flow { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(100px, .7fr) auto minmax(240px, 1.5fr) auto minmax(180px, 1.2fr); gap: 12px; align-items: center; margin: 42px auto 22px; font-family: var(--serif); font-size: 18px; text-align: center; }
.credential-flow > span { color: var(--gold); font: 22px/1 var(--sans); }
.flow-step { padding: 12px 24px; border: 1px solid var(--line); background: var(--bg); }
.flow-sekalum { border-color: var(--gold); color: var(--gold-dark); }
.credential-flow ol { display: flex; gap: 10px; padding: 0; margin: 8px 0; list-style: none; }
.credential-flow li { padding: 8px 14px; background: var(--bg); border-bottom: 1px solid var(--gold); }
.authorization-note { max-width: none !important; margin: 0; font-size: 15px !important; }
.authorization-note strong { color: var(--text); }
.model-notes, .integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; }
.model-notes div, .integration-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.model-notes h3, .integration-grid h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.model-notes p, .integration-grid p { margin: 0; color: var(--muted); }
.sekalum-video-section { background: #0e1014; color: #e0d7c9; }
.sekalum-video-section .section-label { color: #9b9892; }
.sekalum-video-section .sekalum-section-copy p { color: #c5c0b7; }
.video-frame { position: relative; width: 100%; margin-top: 50px; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #151922, #0e1014); border: 1px solid rgba(224, 215, 201, .2); }
.video-frame iframe { position: absolute; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding: clamp(28px, 6vw, 80px); }
.video-placeholder p { max-width: 360px; }
.video-load-button { margin-top: 18px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--gold); background: none; color: var(--surface); font: 700 12px var(--sans); letter-spacing: .04em; cursor: pointer; }
.video-fallback { margin-top: 18px; color: #c5c0b7; font-size: 13px; }
.video-disclosure { max-width: 380px; margin: 14px 0 0; color: #c5c0b7 !important; font-size: 13px !important; line-height: 1.5; }
.video-disclosure a { padding-bottom: 1px; border-bottom: 1px solid var(--gold); color: var(--surface); }
.integrations-section { background: var(--surface); }
.integration-grid { grid-template-columns: repeat(2, 1fr); margin-top: 62px; }
.integration-kicker { color: var(--gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.integration-grid p { margin-top: 18px; }
.open-source-section { background: #0e1014; color: #e0d7c9; }
.open-source-section .section-label { color: #9b9892; }
.open-source-section .sekalum-section-copy p { color: #c5c0b7; }
.dark-cta { display: inline-flex; min-height: 48px; align-items: center; margin-top: 22px; padding: 12px 18px; border: 1px solid rgba(183, 131, 50, .86); background: rgba(183, 131, 50, .1); color: var(--surface); font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.dark-cta:hover { border-color: #d2a45c; background: rgba(183, 131, 50, .22); transform: translateY(-1px); }
.dark-cta span { color: var(--gold); }

@media (max-width: 1199px) and (min-width: 768px) {
  .hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
  .hero-sigil { width: 230px; height: 180px; }
  .product-art { height: 390px; }
  .sekalum-hero { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 46px 56px 50px; }
  .sekalum-hero .product-copy { max-width: 560px; }
  .sekalum-hero-mark { display: none; }
}

@media (max-width: 767px) {
  .site-header { padding: 10px 22px; }
  .brand-lockup { display: none; }
  .brand-mark-only { display: block; width: 126px; height: 48px; object-fit: contain; }
  .desktop-nav { display: none; }
  .menu-button { display: flex; gap: 10px; align-items: center; padding: 8px 0; border: 0; background: none; color: var(--text); font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  .menu-button i { position: relative; display: block; width: 20px; height: 1px; background: currentColor; }
  .menu-button i::after { position: absolute; top: 6px; width: 20px; height: 1px; background: currentColor; content: ""; }
  .mobile-nav { position: absolute; top: 68px; right: 0; left: 0; z-index: 3; display: flex; flex-direction: column; gap: 18px; padding: 28px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  .mobile-nav[hidden] { display: none; }
  .no-js .menu-button { display: none; }
  .no-js .mobile-nav { display: flex; position: static; margin: 52px -22px -10px; }
  .hero { display: block; min-height: 0; padding: 82px 22px 62px; }
  .hero-sigil { display: none; }
  .hero h1 { margin: 30px 0 22px; font-size: clamp(44px, 13vw, 58px); }
  .marker { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px 78px; font-size: 13px; text-align: center; }
  .marker-line { width: 1px; height: 48px; margin: auto; }
  .marker-line i { top: calc(var(--marker-progress, 0) * (100% - 8px)); left: -3.5px; }
  .principle { padding: 78px 22px 88px; }
  .studio-work { padding: 0 22px 88px; }
  .section-label { font-size: 14px; }
  .product-stage, .product-stage.no-artwork { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding: 40px 24px 44px; }
  .product-logo { width: min(100%, 360px); max-height: 90px; margin: 16px 0 24px; }
  .product-stage h2 { margin: 20px 0; font-size: 39px; }
  .product-art { width: 100%; height: 330px; margin-top: 12px; }
  .closing { padding: 96px 22px 104px; }
  .site-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 30px 22px 28px; }
  .footer-lockup { display: block; width: 200px; height: 80px; }
  .footer-lockup img { width: 200px; }
  .footer-brand .brand-mark-only { display: none; }
  .footer-links { gap: 50px; }
  .page-intro { padding: 84px 22px 65px; }
  .page-intro h1 { margin: 32px 0; font-size: 58px; }
  .work-list { padding: 0 22px 100px; }
  .work-list .product-stage { margin-bottom: 16px; }
  .studio-body, .journal-body { padding: 10px 22px 100px; }
  .legal-content { padding: 0 22px 100px; }
  .contact-copy h2, .legal-content h2 { margin-top: 38px; font-size: 30px; }
  .studio-body h2, .journal-body h2 { margin: 60px 0 18px; font-size: 36px; }
  .values { grid-template-columns: 1fr 1fr; }
  .journal-entry { grid-template-columns: 1fr; }
  .journal-entry time { margin-top: 12px; text-align: left; }
  .sekalum-hero { margin: 0 22px; padding: 36px 24px 40px; }
  .sekalum-breadcrumb { margin-bottom: 22px; }
  .sekalum-hero-mark { display: none; }
  .sekalum-section, .sekalum-model-section, .sekalum-video-section { padding: 58px 22px; }
  .sekalum-section-copy h2 { font-size: 42px; }
  .why-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
  .credential-flow { display: flex; flex-direction: column; margin: 34px auto 18px; font-size: 18px; }
  .credential-flow ol { flex-direction: row; width: auto; gap: 6px; }
  .credential-flow li { padding: 7px 10px; }
  .model-notes, .integration-grid { grid-template-columns: 1fr; gap: 24px; }
  .integration-grid { margin-top: 42px; }
  .video-frame { margin-top: 36px; }
}

@media (max-width: 380px) {
  .product-art { height: 280px; }
  .brand-mark-only { width: 116px; }
}

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