/* xCoefficient site: monochrome system shared with xCoefficient Labs.
   Layout: alternating full-bleed black / white / mist bands, 1200px column, 12-col grid. */
:root {
  --black: #000000;
  --white: #FFFFFF;
  --ink: #1D1D1F;
  --mist: #F5F5F7;
  --on-black: #AEAEB2;
  --label-black: #8E8E93;
  --rule-black: #2C2C2E;
  --line-black: #48484A;
  --on-white: #48484A;
  --label-white: #6E6E73;
  --rule-white: #D2D2D7;
  --font-sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --col: 1200px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p, ul { margin: 0; }
.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; }

/* Bands and column */
.band { position: relative; }
.band--white { background: var(--white); color: var(--ink); }
.band--mist { background: var(--mist); color: var(--ink); }
.wrap { max-width: calc(var(--col) + 64px); margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); } }
.section { padding-block: 120px; }
@media (max-width: 760px) { .section { padding-block: 72px; } }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 56px; }
@media (max-width: 760px) { .stack--lg { gap: 40px; } }

/* Type */
.label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label-black); }
.band--white .label, .band--mist .label { color: var(--label-white); }
.display { font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 640px; color: var(--on-black); }
.band--white .lead, .band--mist .lead { color: var(--on-white); }
.body { font-size: 17px; color: var(--on-black); max-width: 620px; }
.band--white .body, .band--mist .body { color: var(--on-white); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--solid { background: var(--white); color: var(--black); border: 0; }
.btn--solid:hover { background: var(--mist); }
.btn--ghost { border: 1px solid var(--line-black); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }
.band--white .btn--solid, .band--mist .btn--solid { background: var(--ink); color: var(--white); }
.band--white .btn--solid:hover, .band--mist .btn--solid:hover { background: #3A3A3C; }
.band--white .btn--ghost, .band--mist .btn--ghost { border-color: #C7C7CC; color: var(--ink); }
.band--white .btn--ghost:hover, .band--mist .btn--ghost:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.more { font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start; }
.more::after { content: " \2192"; }
@media (max-width: 640px) { .actions .btn { flex: 1 1 100%; } }

/* Header */
.site-header { position: relative; z-index: 5; }
.site-header--overlay { position: absolute; inset: 0 0 auto; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { width: 196px; height: auto; fill: var(--white); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--white); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-black); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-black); border-radius: 999px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu__panel { position: absolute; right: 0; top: 56px; min-width: 220px; display: flex; flex-direction: column; padding: 8px; background: #111113; border: 1px solid var(--rule-black); border-radius: 16px; }
  .menu__panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; color: var(--white); }
  .menu__panel a:hover { background: #1C1C1E; }
  .brand svg { width: 150px; }
}

/* Home hero */
.hero { position: relative; overflow: hidden; min-height: 680px; display: flex; align-items: flex-end; background: var(--black) url("/videos/xco-landing-slowed-poster-00001.jpg") center / cover no-repeat; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.85) 100%); }
.hero .wrap { position: relative; width: 100%; padding-block: 180px 96px; }
.hero__copy { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.rotator { min-height: 2em; }
.rotator__text { display: inline-block; transition: opacity .45s ease, transform .45s ease; }
.rotator__text.is-out { opacity: 0; transform: translateY(12px); }
.hero__sub { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.hero__tag { font-size: clamp(20px, 2vw, 24px); font-weight: 500; letter-spacing: -0.01em; }
@media (prefers-reduced-motion: reduce) { .rotator__text { transition: none; } }
@media (max-width: 640px) { .hero { min-height: 0; } .hero .wrap { padding-block: 132px 64px; } .rotator { min-height: 3em; } }

/* Page head (inner pages) */
.page-head .wrap { padding-block: 72px 96px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 760px) { .page-head .wrap { padding-block: 40px 64px; } }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: end; }
.split > :first-child { grid-column: 1 / span 7; }
.split > :last-child { grid-column: 8 / span 5; }
@media (max-width: 900px) { .split > :first-child, .split > :last-child { grid-column: 1 / -1; } }

/* Ruled items */
.item { border-top: 1px solid currentColor; padding-top: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.item p { font-size: 16px; color: var(--on-white); }
.band:not(.band--white):not(.band--mist) .item { border-top-color: var(--line-black); }
.band:not(.band--white):not(.band--mist) .item p { color: var(--on-black); }
.item h3 { font-size: 22px; letter-spacing: -0.015em; }
.item--link { text-decoration: none; }
.item--link:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.meta { font-family: var(--font-mono); font-size: 13px; color: var(--label-white); }

/* From the lab */
.lab-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lab-screens img { width: 100%; aspect-ratio: 560 / 1214; object-fit: cover; border-radius: 14px; }
.lab-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: center; }
.lab-split > .lab-screens { grid-column: 1 / span 6; }
.lab-split > .stack { grid-column: 8 / span 5; }
@media (max-width: 900px) { .lab-split > .lab-screens, .lab-split > .stack { grid-column: 1 / -1; } .lab-split > .stack { order: -1; } }

/* Logo strips */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; align-items: center; }
.logos img { width: 120px; max-width: 140px; max-height: 56px; object-fit: contain; margin: 0 auto; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .72; }

/* Offerings (What we do) */
.offering { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; }
.offering__head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 16px; }
.offering__body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 28px; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule-white); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--rule-white); font-size: 17px; }
.for { font-size: 16px; color: var(--on-white); }
.for strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) { .offering__head, .offering__body { grid-column: 1 / -1; } }

/* Formats (How we work) */
.format { border: 1px solid var(--rule-white); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--white); min-width: 0; }
.format h3 { font-size: 30px; letter-spacing: -0.03em; }
.format dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--rule-white); font-size: 15px; }
.format dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--label-white); padding-top: 2px; }
.format dd { margin: 0; color: var(--ink); }

/* Work */
.case { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: 40px; border-top: 1px solid var(--rule-white); }
.case:first-child { border-top: 1px solid var(--ink); }
.case__head { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 10px; }
.case__body { grid-column: 6 / span 7; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; margin: 0; }
.case__body dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--label-white); padding-top: 4px; }
.case__body dd { margin: 0; font-size: 17px; color: var(--on-white); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; border: 1px solid var(--rule-white); border-radius: 999px; padding: 4px 12px; color: var(--on-white); }
@media (max-width: 900px) { .case__head, .case__body { grid-column: 1 / -1; } }

/* Team */
.person { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--mist); }
.person h3 { font-size: 26px; letter-spacing: -0.02em; }
.person p { font-size: 16px; color: var(--on-white); }

/* Contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 500; color: var(--ink); padding: 0; }
.field .opt { color: var(--label-white); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid #C7C7CC; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(29,29,31,.12); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #C7C7CC; border-radius: 999px; font-size: 15px; cursor: pointer; user-select: none; }
.check input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__status { font-size: 15px; color: var(--on-white); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { border: 1px solid var(--rule-white); border-radius: 18px; padding: 32px; }
@media (max-width: 760px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* Legal */
.legal { max-width: 760px; font-size: 16px; color: var(--on-white); }
.legal h1, .legal h2 { font-size: 34px; color: var(--ink); letter-spacing: -0.03em; margin: 0 0 12px; }
.legal h3, .legal h4 { font-size: 20px; color: var(--ink); margin: 40px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); overflow-wrap: anywhere; }
.legal strong { color: var(--ink); font-weight: 500; }

/* CTA band */
.cta .wrap { padding-block: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 760px) { .cta .wrap { padding-block: 72px; } }

/* Footer */
.site-footer .wrap { padding-block: 64px 40px; display: flex; flex-direction: column; gap: 48px; border-top: 1px solid var(--rule-black); }
.footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand svg { width: 36px; height: 36px; fill: var(--white); }
.footer__brand p { font-size: 18px; font-weight: 500; }
.footer__col h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--label-black); font-weight: 400; margin-bottom: 14px; }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col { min-width: 0; }
.footer__col a { text-decoration: none; color: var(--on-black); overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { font-size: 14px; color: var(--label-black); }
@media (max-width: 860px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }

.logos img[src*="studio-2133"] { filter: grayscale(1) contrast(3) invert(1); }
@media (max-width: 640px) { .logos { gap: 20px 28px; } .logos img { width: 96px; } }
