:root {
  color-scheme: dark;
  --background: #0f0f12;
  --surface: #16161c;
  --text: #e8e8ed;
  --muted: #a4a4b2;
  --border: #2b2b35;
  --accent: #c9b8ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:is(a, button, video):focus-visible, .video-frame:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
a:hover { color: var(--accent); }
p, h1, h2, h3, figure { margin: 0; }
.container { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 8px;
  left: 20px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-180%);
  z-index: 5;
}
.skip-link:focus { transform: translateY(0); }
.skip-link:hover { color: var(--background); }
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: .95rem; font-weight: 750; letter-spacing: -.035em; }
.wordmark-dot { color: var(--accent); padding-left: 3px; }
nav { display: flex; gap: 18px; font-size: .8rem; color: var(--muted); }
.hero { padding-block: 72px 48px; }
@keyframes fadeUp {
  from { transform: translateY(12px); }
  to { transform: none; }
}
.hero > * { animation: fadeUp 600ms ease both; }
.hero > :nth-child(2) { animation-delay: 80ms; }
.hero > :nth-child(3) { animation-delay: 160ms; }
.hero > :nth-child(4) { animation-delay: 240ms; }
.hero > :nth-child(5) { animation-delay: 320ms; }
.eyebrow {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.hero-service {
  max-width: 650px;
  margin-top: 24px;
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -.035em;
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 650;
}
.button-primary { background: var(--accent); color: #181123; }
.button-primary:hover { background: #d7caff; color: #181123; }
.button-secondary { background: transparent; border-color: #595965; }
.button-secondary:hover { border-color: var(--accent); }
.button[aria-disabled="true"] { pointer-events: none; background: #292433; color: #d2c6e6; border-color: #453951; }
.button-note { font-size: .7rem; font-weight: 400; }
.text-link { font-size: .875rem; text-decoration: underline; text-underline-offset: 5px; }
.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 48px;
  color: var(--muted);
  font-size: .75rem;
}
.hero-details span { border-left: 2px solid var(--border); padding-left: 10px; }
.section { padding-block: 48px; border-top: 1px solid var(--border); }
.section-heading { margin-bottom: 28px; }
h2 { margin-top: 10px; font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.25; font-weight: 650; letter-spacing: -.04em; }
.section-intro { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.service-grid, .portfolio-grid, .steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.service-grid { gap: 16px; }
.portfolio-category { display: grid; gap: 24px; }
.portfolio-category + .portfolio-category { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.portfolio-category > h3 { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.02em; }
.portfolio-grid { grid-template-columns: repeat(3, 1fr); justify-content: center; align-items: start; gap: 1.5rem; }
@media (width < 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (width < 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}
.sample-status { margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.portfolio-attribution { max-width: 680px; margin-top: 32px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.sample { width: 100%; max-width: 280px; min-width: 0; transition: transform 200ms ease; }
.sample:is(:hover, :focus-within) { transform: translateY(-2px); }
.sample .video-frame { transition: background-color 200ms ease, border-color 200ms ease; }
.sample:is(:hover, :focus-within) .video-frame { background-color: color-mix(in srgb, var(--surface), white 5%); border-color: var(--accent); }
.steps-grid { list-style: none; margin: 0; padding: 0; }
.step-number { display: block; color: var(--muted); opacity: .65; font-size: 3.5rem; font-weight: 300; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.process-step h3 { margin-top: 20px; font-weight: 700; }
.process-step p { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; border: 1px solid var(--border); border-left: 2px solid #4a9eff; border-radius: 8px; background: var(--surface); transition: background-color 200ms ease, transform 200ms ease; }
.service-card:nth-child(2) { border-left-color: #a855f7; }
.service-card:nth-child(3) { border-left-color: #22c55e; }
.service-card:hover { background-color: color-mix(in srgb, var(--surface), white 5%); transform: translateY(-2px); }
.card-number { color: var(--muted); font-size: .7rem; font-variant-numeric: tabular-nums; }
h3 { margin-top: 25px; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.025em; }
.service-card > p:not(.card-footer) { margin-top: 12px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.card-footer { margin-top: auto; font-size: .8rem; }
.card-footer strong { font-size: 1.5rem; font-weight: 650; letter-spacing: -.04em; }
.card-footer > span { color: var(--muted); }
.video-frame { aspect-ratio: 9 / 16; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #141418; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.sample-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(201 184 255 / 3%) 14px 15px), linear-gradient(155deg, #20202b, #141418); color: var(--muted); font-size: .85rem; }
.placeholder-number { font-size: 1.5rem; font-weight: 300; letter-spacing: -.02em; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.about-copy { max-width: 560px; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.contact > p:not(.eyebrow) { max-width: 520px; margin-top: 16px; color: var(--muted); }
.contact-actions { gap: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; }
@media (min-width: 640px) {
  .site-header { padding-block: 28px; }
  nav { gap: 28px; font-size: .85rem; }
  .hero { padding-block: 92px 56px; }
  .section { padding-block: 56px; }
  .service-grid, .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; }
  .about .section-heading { margin-bottom: 0; }
}
@media (min-width: 800px) {
  .portfolio-category { grid-template-columns: 140px minmax(0, 1fr); gap: 32px; }
  .portfolio-grid { justify-content: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero > * { animation: none; }
  .sample, .sample .video-frame { transition: none; }
  .sample:is(:hover, :focus-within) { transform: none; }
  .service-card { transition: none; }
  .service-card:hover { transform: none; }
}

/* Case study: article layout and technical notes */
.about-case-study-link { margin-top: 20px; }
.case-study { max-width: 720px; padding-top: 64px; overflow-wrap: anywhere; }
.case-study-title { padding-bottom: 56px; }
.case-study h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; }
.case-study-subtitle { margin-top: 24px; color: var(--muted); font-size: clamp(1.1rem, 3vw, 1.3rem); line-height: 1.6; }
.case-study-meta { margin-top: 24px; color: var(--muted); font-size: .8rem; }
.case-study section { padding-bottom: 56px; }
.case-study h2 { margin: 0 0 24px; padding-top: 40px; border-top: 1px solid var(--border); letter-spacing: -.02em; }
.case-study section > p + p { margin-top: 20px; }
.case-study code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .875em; }
.case-study :not(pre) > code { padding: .12em .3em; border-radius: 4px; background: #1a1a20; }
.case-study pre { margin: 24px 0 0; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: #1a1a20; white-space: pre-wrap; overflow-wrap: anywhere; }
.case-study pre code { font-size: .8rem; }
.case-study-stack { width: 100%; margin-bottom: 24px; border-collapse: collapse; text-align: left; font-size: .9rem; }
.case-study-stack caption { padding-bottom: 16px; color: var(--muted); text-align: left; font-size: .8rem; }
.case-study-stack th, .case-study-stack td { padding: 18px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.case-study-stack th:first-child, .case-study-stack td:first-child { padding-left: 0; }
.case-study-stack th:last-child, .case-study-stack td:last-child { padding-right: 0; }
.case-study-stack thead th { color: var(--muted); font-size: .75rem; font-weight: 600; }
.case-study-stack tbody th { width: 23%; font-weight: 650; }
.case-study-stack td { width: 38.5%; }
.case-study-failure { margin-top: 24px; padding: 28px; border: 1px solid var(--border); border-left: 3px solid #ef767a; border-radius: 8px; background: var(--surface); }
.case-study-failure h3 { margin-top: 0; letter-spacing: -.02em; }
.case-study-failure dl { margin: 24px 0 0; }
.case-study-failure dt { margin-top: 20px; color: var(--muted); font-size: .75rem; font-weight: 650; }
.case-study-failure dt:first-child { margin-top: 0; }
.case-study-failure dd { margin: 6px 0 0; font-size: .95rem; }
.case-study-failure .case-study-note { margin-top: 16px; color: var(--muted); font-size: .85rem; }
.case-study-lessons { margin: 0; padding-left: 22px; }
.case-study-lessons li + li { margin-top: 20px; }
.case-study-footer { flex-wrap: wrap; }
@media (max-width: 719px) {
  .case-study { padding-top: 40px; }
  .case-study-title { padding-bottom: 40px; }
  .case-study section { padding-bottom: 40px; }
  .case-study h2 { padding-top: 32px; }
  .case-study-failure { padding: 20px; }
  .case-study-stack thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .case-study-stack tbody, .case-study-stack tr, .case-study-stack tbody th, .case-study-stack td { display: block; width: 100%; }
  .case-study-stack tbody tr { padding-block: 20px; border-bottom: 1px solid var(--border); }
  .case-study-stack tbody th, .case-study-stack td { padding: 0; border: 0; }
  .case-study-stack td { margin-top: 10px; }
}

/* Automation service: reuse the homepage palette, type, and cards. */
.automation-page { line-height: 1.6; }
.automation-page h2, .automation-page h3 { letter-spacing: -.02em; }
.automation-page .hero > * { animation-duration: 300ms; }
.automation-page .hero-service { font-size: clamp(1.05rem, 2.5vw, 1.25rem); line-height: 1.6; color: var(--muted); letter-spacing: normal; }
.automation-page .hero-actions { flex-direction: column; align-items: stretch; }
.automation-page .service-grid { grid-template-columns: minmax(0, 1fr); }
.automation-page .service-card > p:last-child { margin-bottom: 0; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process-grid > li { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.process-duration { color: var(--muted); font-size: .875rem; font-weight: 400; }
.stack-table { width: 100%; border-collapse: collapse; text-align: left; }
.stack-table th, .stack-table td { padding: 20px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.stack-table th { font-size: .875rem; font-weight: 650; }
.stack-table td { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .8rem; }
.stack-table tr:first-child > * { border-top: 1px solid var(--border); }
.stack-table tbody, .stack-table tr, .stack-table th, .stack-table td { display: block; }
.stack-table tr { padding-block: 20px; border-bottom: 1px solid var(--border); }
.stack-table tr:first-child { border-top: 1px solid var(--border); }
.stack-table tr > * { padding: 0; border: 0; }
.stack-table tr:first-child > * { border-top: 0; }
.stack-table td { margin-top: 8px; }
.pricing-card h3 { margin-top: 20px; font-size: 2rem; font-weight: 650; }
.pricing-card > p.pricing-tier { margin: 0; color: var(--accent); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.pricing-period { color: var(--muted); font-size: 1rem; font-weight: 400; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border-radius: inherit; list-style: none; cursor: pointer; font-size: .95rem; font-weight: 650; transition: background-color 200ms ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 8px; height: 8px; flex: 0 0 8px; margin-right: 3px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item summary:hover { background-color: color-mix(in srgb, var(--surface), white 5%); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item > p { padding: 0 24px 24px; color: var(--muted); font-size: .9rem; }
.automation-page .site-footer, .automation-page .site-footer nav { flex-wrap: wrap; }
.automation-page .site-footer nav { gap: 12px 20px; font-size: inherit; }
@media (min-width: 720px) {
  .automation-page .hero-actions { flex-direction: row; align-items: center; }
  .automation-page .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-table tbody { display: table-row-group; }
  .stack-table tr { display: table-row; padding: 0; }
  .stack-table tr > * { display: table-cell; padding: 20px; border-bottom: 1px solid var(--border); }
  .stack-table tr:first-child > * { border-top: 1px solid var(--border); }
  .stack-table th { width: 28%; padding-left: 0; }
  .stack-table td { margin: 0; padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .automation-page .hero > * { animation: none; }
  .faq-item summary { transition: none; }
}

/* Shared navigation and the project process page. */
.site-header nav { flex-wrap: wrap; gap: 12px 18px; }
.site-header nav [aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.process-page { line-height: 1.6; }
.process-page h2, .process-page h3 { letter-spacing: -.02em; }
.process-page .hero > * { animation-duration: 300ms; }
.process-page .hero .section-intro { max-width: 650px; margin-top: 24px; font-size: 1.125rem; }
.step-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step-grid > li { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.step-grid .step-number { font-size: 4rem; }
.step-grid .step-deliverable { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: .8rem; }
.step-deliverable > span { display: block; margin-bottom: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.brief-grid ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.brief-grid li + li { margin-top: 8px; }
.dont-list { margin: 0; padding-left: 20px; }
.dont-list li { padding: 8px 0 8px 18px; border-left: 2px solid #ef767a; }
.dont-list li::marker { color: var(--muted); }
.dont-list li + li { margin-top: 16px; }
.response-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .9rem; }
.response-table th, .response-table td { padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.response-table th { width: 42%; padding-right: 20px; font-weight: 650; }
.response-table td { color: var(--muted); }
.response-table tr:last-child > * { border-bottom: 0; }
.process-page .contact-actions { flex-direction: column; align-items: stretch; }
.process-page .site-footer, .process-page .site-footer nav { flex-wrap: wrap; }
.process-page .site-footer nav { gap: 12px 20px; font-size: inherit; }
@media (min-width: 720px) {
  .step-grid, .brief-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-grid > li { padding: 32px; }
  .process-page .contact-actions { flex-direction: row; align-items: center; }
  .response-table th { width: 36%; }
}
@media (prefers-reduced-motion: reduce) {
  .process-page .hero > * { animation: none; }
}

/* Keep all four budget columns visible on small screens. */
.vram-table { width: 100%; margin-bottom: 24px; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: .9rem; }
.vram-table caption { padding-bottom: 16px; color: var(--muted); text-align: left; font-size: .8rem; }
.vram-table th, .vram-table td { padding: 18px 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.vram-table th:first-child { width: 30%; padding-left: 0; }
.vram-table th:nth-child(2) { width: 32%; }
.vram-table th:nth-child(3) { width: 18%; }
.vram-table th:last-child, .vram-table td:last-child { width: 20%; padding-right: 0; }
.vram-table thead th { color: var(--muted); font-size: .75rem; font-weight: 600; }
.vram-table tbody th { font-weight: 650; }
.vram-table td:nth-child(3), .vram-table th:nth-child(3) { text-align: right; font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .vram-table { font-size: .75rem; }
  .vram-table th, .vram-table td { padding: 14px 5px; }
}
