/* Source Technology, option D: black, Geist, big left headlines, thin-line figures, a dot-matrix ocean behind the hero. */
:root {
  --bg: #000;
  --panel: #0a0a0a;
  --line: #242424;
  --line-soft: #1a1a1a;
  --ink: #ededed;
  --muted: #a1a1a1;
  --faint: #6e6e6e;
  --eng: #3b82f6;
  --prod: #f5a524;
  --com: #22c55e;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --max: 1400px;
  --h1: clamp(2.75rem, 1.2rem + 5vw, 4.5rem);
  --h2: clamp(2.1rem, 1.1rem + 3.4vw, 3.5rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
code { font-family: var(--mono); font-size: .8125rem; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

/* buttons: pills, like the reference */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; border: 1px solid transparent; cursor: pointer; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }
.btn-solid { background: #ededed; color: #0a0a0a; }
.btn-solid:hover { background: #fff; }
.btn-ghost { background: #0a0a0a; color: var(--ink); border-color: #2e2e2e; }
.btn-ghost:hover { background: #1a1a1a; border-color: #3d3d3d; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.72); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 22px; font-size: .9375rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.bar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 34px; height: 34px; border: 1px solid #2e2e2e; border-radius: 8px; background: #0a0a0a; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-btn span:first-child { top: 13px; } .menu-btn span:last-child { top: 19px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line-soft); padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.125rem; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
  .menu-btn { display: block; }
  .bar-actions .btn-ghost { display: none; }
}

/* hero with the dot ocean behind it */
.hero { position: relative; isolation: isolate; padding-block: clamp(220px, 26vw, 300px) clamp(72px, 9vw, 140px); margin-top: -64px; }
.ocean { position: absolute; left: 0; right: 0; top: 64px; height: clamp(320px, 29.2vw, 460px); z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 86%, transparent 100%), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 86%, transparent 100%), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-composite: intersect; }
.ocean canvas { width: 100%; height: 100%; display: block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px var(--gutter); align-items: start; }
.hero h1 { max-width: 11ch; }
.hero-side { display: grid; gap: 28px; padding-top: 10px; }
.hero-side p { font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.6; color: var(--muted); max-width: 34ch; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero { padding-top: 200px; } }

/* sections */
.section { padding-block: clamp(72px, 9vw, 140px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px var(--gutter); align-items: start; }
.split-copy { display: grid; gap: 18px; position: sticky; top: 96px; }
.split-copy p { color: var(--muted); font-size: 1.125rem; max-width: 30ch; }
.split-figs { display: grid; gap: 48px; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .split-copy { position: static; } }
.fig { margin: 0; display: grid; gap: 14px; }
.fig figcaption { color: var(--faint); font-size: 1.0625rem; line-height: 1.55; }
.fig figcaption strong { color: var(--ink); font-weight: 400; }
.panel { border: 1px solid var(--line); border-radius: 2px; background: var(--panel); padding: clamp(28px, 4vw, 56px) clamp(20px, 4.5vw, 64px); }

/* about: type only */
.about-text { display: grid; gap: clamp(40px, 6vw, 72px); }
.about-text .big { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; color: var(--faint); max-width: 28ch; text-wrap: pretty; }
.about-text .big strong { color: var(--ink); font-weight: 500; }
.senses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.senses li { display: grid; gap: 10px; align-content: start; padding: 24px 24px 8px 0; }
.senses li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.senses code { color: var(--faint); font-size: .8125rem; }
.senses strong { font-weight: 500; font-size: 1.125rem; }
.senses p { color: var(--muted); }
@media (max-width: 640px) { .senses { grid-template-columns: minmax(0, 1fr); } .senses li, .senses li + li { padding: 20px 0; border-left: 0; } .senses li + li { border-top: 1px solid var(--line); } }

/* mission */
.mission { display: grid; gap: 28px; border-top: 1px solid var(--line-soft); }
.mission h2 { font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem); line-height: 1.02; letter-spacing: -.055em; max-width: 15ch; }
.mission h2 span { color: var(--faint); }
.mission p { color: var(--muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); max-width: 46ch; }

/* statement */
.statement { display: grid; justify-items: center; gap: 28px; text-align: center; padding-block: clamp(48px, 7vw, 110px); }
.statement img { height: 20px; width: auto; opacity: .9; }
.statement p { font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); line-height: 1.12; letter-spacing: -.045em; max-width: 26ch; text-wrap: balance; }

/* section heads */
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px var(--gutter); }
.sec-head.row .sec-lede { justify-self: end; }
@media (max-width: 820px) { .sec-head.row { grid-template-columns: minmax(0, 1fr); } .sec-head.row .sec-lede { justify-self: start; } }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink); margin-bottom: 4px; }
.tag svg, .ft svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sec-lede { color: var(--muted); font-size: 1.125rem; max-width: 40ch; }
h2.wide { margin-bottom: clamp(32px, 4vw, 56px); }

/* product cells: a bordered row of figures with captions below, like the reference's workload grid */
.cells { display: grid; border: 1px solid var(--line); }
.cells.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { display: grid; grid-template-rows: auto auto 1fr; text-decoration: none; min-width: 0; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell-fig { aspect-ratio: 16 / 9; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); background: #050505; }
.cell-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9) brightness(.92); }
.cell:hover .cell-fig img { transform: scale(1.03); filter: none; }
.pa img { object-position: 50% 45%; }
.sb .earth { position: absolute; inset: 0; opacity: .85; }
.sb-lockup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.sb-lockup img { width: clamp(36px, 4vw, 52px); height: auto; border-radius: 22%; transform: none !important; }
.sb-lockup svg { width: clamp(120px, 15vw, 190px); height: auto; fill: currentColor; }
.cell-meta { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; color: var(--muted); }
.cell-meta img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.cell-meta .out { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted); transition: color .15s; }
.cell-meta .out svg { width: 11px; height: 11px; }
.cell:hover .out { color: var(--ink); }
.cell p { padding: 10px 20px 22px; color: var(--faint); font-size: 1.0625rem; }
.cell p strong { color: var(--ink); font-weight: 400; }
@media (max-width: 760px) { .cells.two { grid-template-columns: minmax(0, 1fr); } .cell + .cell { border-left: 0; border-top: 1px solid var(--line); } }

/* careers table */
.table { display: grid; margin-bottom: 32px; }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .8fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: center; font-size: .9375rem; }
.tr span:first-child { color: var(--ink); }
.tr span:nth-child(2) { color: var(--muted); }
.tr span:last-child { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.th { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border-bottom-color: var(--line); padding-bottom: 14px; }
.th span { color: var(--faint) !important; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.eng { background: var(--eng); } .dot.prod { background: var(--prod); } .dot.com { background: var(--com); }
@media (max-width: 680px) { .tr { grid-template-columns: minmax(0, 1fr) auto; } .tr span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } .th span:nth-child(2) { display: none; } }

/* services: icon label + sentence, in a quiet grid */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gutter); }
.feats li { display: grid; gap: 10px; align-content: start; }
.ft { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--ink); }
.feats p { color: var(--muted); font-size: 1.0625rem; max-width: 30ch; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* closing call to action */
.cta { position: relative; isolation: isolate; padding-block: clamp(96px, 12vw, 180px); border-top: 1px solid var(--line-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { font-size: clamp(2.25rem, 1.2rem + 3vw, 3rem); }
.details { display: grid; grid-template-columns: 1.3fr 1.3fr .9fr 1fr; gap: 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; border-top: 1px solid var(--line-soft); }
.details div { margin: 0; }
.details dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.details dd { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.details address { font-style: normal; }
.details a { text-decoration: none; transition: color .15s; }
.details a:hover { color: var(--ink); }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
@media (max-width: 480px) { .details { grid-template-columns: minmax(0, 1fr); } }

.site-footer { border-top: 1px solid var(--line-soft); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot img { height: 18px; width: auto; opacity: .85; }
.foot small { color: var(--faint); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* careers: big title, filterable role list */
.careers { display: grid; gap: clamp(32px, 5vw, 56px); }
.careers-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.careers-head h2 { font-size: clamp(3rem, 1rem + 5vw, 5.5rem); line-height: .95; letter-spacing: -.055em; }
.careers-side { display: grid; gap: 16px; justify-items: end; padding-bottom: 4px; }
.careers-side p { color: var(--muted); font-size: 1.125rem; }
.careers-side .count { color: var(--ink); font-family: var(--mono, 'Geist Mono', monospace); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { font: inherit; font-size: .875rem; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: color .2s, border-color .2s, background .2s; }
.chip i { font-style: normal; color: var(--faint); font-family: 'Geist Mono', monospace; font-size: .75rem; }
.chip:hover { color: var(--ink); border-color: #3a3a3a; }
.chip.on { color: #000; background: var(--ink); border-color: var(--ink); }
.chip.on i { color: #555; }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { border-bottom: 1px solid var(--line); }
.roles li[hidden] { display: none; }
.role { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.3fr) minmax(0, .6fr) auto; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 30px) 12px; margin: 0 -12px; color: inherit; text-decoration: none; position: relative; transition: background .25s; }
.role-name { font-size: clamp(1.375rem, 1rem + 1.2vw, 2.25rem); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.role-desc { color: var(--muted); }
.role-team { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; }
.role-go { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px 7px 14px; opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s; }
.role-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.role:hover, .role:focus-visible { background: var(--panel); }
.role:hover .role-name, .role:focus-visible .role-name { transform: translateX(10px); }
.role:hover .role-go, .role:focus-visible .role-go { opacity: 1; transform: none; background: var(--ink); color: #000; border-color: var(--ink); }
.role:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dot.biz { background: #a78bfa; }
.careers-foot { color: var(--faint); }
.careers-foot a { color: var(--ink); }
@media (hover: none) { .role-go { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .careers-head { grid-template-columns: minmax(0, 1fr); }
  .careers-side { justify-items: start; } .chips { justify-content: flex-start; }
  .role { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .role-desc { grid-column: 1 / -1; grid-row: 2; }
  .role-team { grid-column: 1; grid-row: 3; }
  .role-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .role-name, .role-go { transition: none; } }

/* job detail drawer */
.job { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(640px, 100%); max-width: 100%; padding: 0; border: 0; border-left: 1px solid var(--line); background: #0a0a0a; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.job[open] { animation: job-in .4s cubic-bezier(.2,.7,.2,1); }
.job::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes job-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.job-inner { display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); padding-bottom: calc(clamp(24px, 4vw, 48px) + env(safe-area-inset-bottom, 0px)); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.job-meta { color: var(--muted); font-family: 'Geist Mono', monospace; font-size: .8125rem; white-space: pre-wrap; }
.job-close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.job-close:hover { background: #161616; }
.job-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.job h3 { margin: 0; font-weight: 500; font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -.05em; line-height: 1.02; }
.job-about { color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.job-sec { display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.job-sec[hidden] { display: none; }
.job-sec h4 { margin: 0; font-weight: 500; font-size: 1rem; }
.job-sec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.job-sec li { color: var(--muted); padding-left: 20px; position: relative; line-height: 1.55; }
.job-sec li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 1px; background: var(--faint); }
.job-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
html.job-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .job[open] { animation: none; } }
