/* Brand-preserving studio composition inspired by mckp.live.
   Base file owns accessible components; this layer owns page composition.
   Radius rule: controls 8px, imagery 16px, circular directional affordances. */
:root {
  --bg: #f7f8f5;
  --surface: #eef0ea;
  --surface-2: #e5e8df;
  --text: #20231d;
  --muted: #646b5e;
  --line: #daddd3;
  --accent-soft: #fff0e3;
  --muted-strong: #555c50;
  --nav-height: 72px;
  --radius: 16px;
}
:root[data-theme="dark"] {
  --bg: #10120f;
  --surface: #181b16;
  --surface-2: #242920;
  --text: #f0f2eb;
  --muted: #a6ae9e;
  --line: #30362b;
  --accent-soft: #2b2119;
  --muted-strong: #b0b8a8;
}
h1,
h2,
h3 {
  font-weight: 400;
}
h2 {
  font-size: clamp(42px, 5vw, 72px);
}
.container {
  width: min(1328px, calc(100% - 80px));
}
.section {
  padding-block: 128px;
}
.nav-shell {
  gap: 44px;
}
.main-nav {
  margin-left: 0;
  margin-right: auto;
  gap: 28px;
}
.brand {
  flex: 0 0 auto;
}
.brand-logo {
  display: block;
  width: 178px;
  height: auto;
}
.button {
  border-radius: 8px;
}
.button-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.button-outline img {
  filter: var(--icon-filter);
}
.button-outline:hover {
  background: var(--surface-2);
}
.hero {
  display: block;
  min-height: 0;
  padding-block: 72px 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(66px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.03;
  margin-bottom: 28px;
}
.hero h1 span {
  white-space: nowrap;
}
.hero-description {
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions {
  justify-content: center;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.hero-actions .button {
  padding: 15px 23px;
  gap: 18px;
  font-size: 14px;
  min-height: 52px;
}
.showcase {
  margin-top: 20px;
  padding-bottom: 84px;
}
.showcase-stage {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.stage-fallback {
  position: absolute;
  width: min(570px, 100%);
  height: calc(100% - 48px);
  inset: 24px 0;
  margin-inline: auto;
  object-fit: cover;
  border-radius: 16px;
}
.stage-fallback,
.project-image img,
.project-cover {
  filter: hue-rotate(-50deg) saturate(1.08);
}
#stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.showcase-stage.is-rendered #stage-canvas {
  opacity: 1;
}
.showcase-stage.is-rendered .stage-fallback {
  opacity: 0;
}
.showcase-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  margin: 4px auto 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.scene-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 20px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.scene-choice img {
  filter: var(--icon-filter);
}
.scene-choice:hover {
  color: var(--text);
  background: var(--surface);
}
.scene-choice.active {
  background: var(--surface-2);
  color: var(--text);
}
.scene-choice:active {
  transform: scale(0.98);
}
.scene-caption {
  text-align: center;
  font-size: 13px;
  min-height: 42px;
}
.portfolio-section {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-top: 104px;
}
.section-heading {
  margin: 0 auto 44px;
  text-align: center;
  max-width: 850px;
}
.section-heading h2 {
  margin-bottom: 22px;
}
.section-heading > p:not(.eyebrow) {
  margin-inline: auto;
  font-size: 17px;
  max-width: 480px;
}
.project-filters {
  justify-content: center;
  margin-bottom: 48px;
}
.filter {
  border-color: transparent;
  border-radius: 8px;
  min-height: 44px;
}
.filter.active {
  background: var(--surface-2);
  color: var(--text);
  border-color: transparent;
}
.project-grid {
  grid-template-columns: 1fr;
  gap: 72px;
}
.project-card,
.project-wide,
.is-filtered .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-top: 0;
}
.project-card:nth-child(2) {
  padding-top: 0;
}
.project-wide,
.is-filtered .project-wide {
  grid-template-columns: 1fr;
  gap: 28px;
}
.project-wide .project-caption {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 12px clamp(36px, 5vw, 72px);
  align-items: start;
}
.project-wide .project-meta {
  grid-column: 1 / -1;
}
.project-wide .project-title {
  grid-column: 1;
  grid-row: 2 / span 2;
}
.project-wide .project-caption > p {
  grid-column: 2;
  grid-row: 2;
}
.project-wide .project-caption .tags {
  grid-column: 2;
  grid-row: 3;
}
.project-reverse .project-image {
  order: 2;
}
.project-reverse .project-caption {
  order: 1;
}
.project-image img,
.project-featured .project-image img,
.project-wide .project-image img,
.is-filtered .project-card .project-image img {
  height: clamp(380px, 34vw, 500px);
}
.is-filtered .project-card:not(.project-wide) .project-image {
  grid-row: auto;
}
.project-title h3 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 400;
}
.project-meta {
  margin-top: 0;
  font-size: 12px;
}
.project-caption > p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 420px;
}
.project-access {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 10px;
}
.project-caption .tags {
  margin-top: 24px;
}
.solutions {
  display: block;
  border-top: 1px solid var(--line);
}
.service-list.commercial-services {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
  align-items: stretch;
}
.b2b-services .service {
  grid-column: span 5;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
}
.b2b-services .service:nth-child(1),
.b2b-services .service:nth-child(4) {
  grid-column: span 7;
}
.b2b-services .service:nth-child(2) {
  background: var(--surface-2);
}
.b2b-services .service-primary {
  background: var(--accent-soft);
}
.b2b-services .service-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.b2b-services .service-head h3 {
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.12;
}
.b2b-services .service small {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
  color: var(--muted-strong);
}
.b2b-services .service-body {
  margin-top: auto;
  padding: 44px 0 0 50px;
}
.b2b-services .service-body p {
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted-strong);
}
.b2b-services .tags span {
  color: var(--muted-strong);
}
.technology-section {
  border-top: 1px solid var(--line);
}
.technology-intro {
  max-width: 800px;
  margin-bottom: 52px;
}
.technology-intro h2 {
  margin-bottom: 26px;
}
.technology-intro > p:not(.eyebrow) {
  max-width: 490px;
}
.technology-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin: 0;
}
.technology-list > div {
  border-left: 2px solid var(--line);
  padding-left: 24px;
}
.technology-list dt {
  font-size: 23px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.technology-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 430px;
}
.solutions-intro {
  text-align: center;
  margin-bottom: 64px;
}
.solutions-intro h2 {
  font-size: clamp(42px, 5.1vw, 74px);
  margin-bottom: 26px;
}
.solutions-intro > p {
  max-width: 470px;
  margin: 0 auto 24px;
}
.service-list {
  max-width: 880px;
  margin-inline: auto;
}
.service summary {
  padding-block: 30px;
  gap: 28px;
}
.service summary > span:not(.disclosure-sign) {
  font-size: 25px;
  font-weight: 400;
}
.service-body {
  padding-left: 56px;
  padding-right: 70px;
}
.about {
  grid-template-columns: 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
}
.about h2 {
  font-size: clamp(44px, 5.7vw, 82px);
  max-width: 1050px;
}
.about-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px 100px;
  margin-left: 18%;
}
.about-body > .large-copy {
  font-size: 27px;
  margin: 0;
}
.about-body > p {
  max-width: none;
}
.principles {
  grid-column: 1/-1;
  gap: 70px;
  margin-top: 24px;
}
.principles p {
  font-size: 14px;
  max-width: 320px;
}
.method-section {
  padding-top: 0;
}
.method-section > .container {
  padding-top: 112px;
}
.process {
  margin-top: 72px;
}
.process-marker {
  background: none;
  width: 40px;
  height: 40px;
  place-items: start;
}
.process li:not(:last-child):after {
  top: 14px;
}
.process h3 {
  font-weight: 400;
}
.contact {
  gap: 90px;
  padding-top: 128px;
}
.contact h2 {
  font-size: clamp(56px, 6vw, 86px);
  font-weight: 400;
}
.contact-form {
  background: var(--surface);
  padding: 36px;
}
.field input,
.field textarea,
.field select {
  border-radius: 8px;
}
.site-footer {
  background: var(--bg);
  padding-top: 56px;
}
.project-page h1,
.legal-page h1 {
  font-weight: 400;
}
@media (prefers-reduced-motion: no-preference) {
  #stage-canvas,
  .stage-fallback {
    transition: opacity 0.3s ease;
  }
}
@media (max-width: 1023px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav-shell {
    gap: 24px;
  }
  .main-nav {
    gap: 18px;
  }
  .hero {
    padding-top: 64px;
  }
  .hero h1 {
    font-size: clamp(62px, 8.4vw, 86px);
  }
  .section {
    padding-block: 96px;
  }
  .project-card,
  .is-filtered .project-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
    gap: 32px;
  }
  .project-wide,
  .is-filtered .project-wide {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .project-image img,
  .project-featured .project-image img,
  .project-wide .project-image img,
  .is-filtered .project-card .project-image img {
    height: 360px;
  }
  .project-title h3 {
    font-size: 25px;
  }
  .about-body {
    margin-left: 0;
    gap: 30px 48px;
  }
  .contact {
    gap: 40px;
  }
  .contact-form {
    padding: 26px;
  }
  .contact h2 {
    font-size: 58px;
  }
  .method-section {
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  .service-list.commercial-services,
  .technology-list {
    grid-template-columns: 1fr;
  }
  .commercial-services {
    gap: 16px;
  }
  .b2b-services .service,
  .b2b-services .service:nth-child(1),
  .b2b-services .service:nth-child(4) {
    grid-column: 1;
    min-height: 0;
    padding: 26px;
  }
  .b2b-services .service-head h3 {
    font-size: 24px;
  }
  .b2b-services .service-body {
    padding: 32px 0 0 0;
  }
  .b2b-services .service-body p {
    font-size: 15px;
  }
  .technology-intro h2 {
    font-size: 37px;
  }
  .technology-list {
    gap: 28px;
  }
  .technology-list dt {
    font-size: 21px;
  }
  .technology-intro {
    margin-bottom: 36px;
  }
  :root {
    --nav-height: 68px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .nav-shell {
    gap: 10px;
  }
  .brand {
    flex-shrink: 1;
  }
  .brand-logo {
    width: 148px;
  }
  .hero {
    padding-top: 54px;
    padding-bottom: 0;
  }
  .hero h1 {
    font-size: clamp(38px, 8.5vw, 64px);
    letter-spacing: -0.055em;
    margin-bottom: 24px;
  }
  .hero-description {
    font-size: 16px;
    max-width: 320px;
    margin-bottom: 26px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 13px 16px;
    gap: 12px;
    min-height: 48px;
  }
  .showcase {
    margin-top: 14px;
    padding-bottom: 52px;
  }
  .showcase-stage {
    height: 290px;
  }
  .stage-fallback {
    height: 236px;
    inset-block: 27px;
  }
  .scene-choice {
    padding: 9px 10px;
  }
  .scene-caption {
    font-size: 12px;
    max-width: 285px;
    margin-inline: auto;
  }
  .section {
    padding-block: 76px;
  }
  .section-heading h2,
  .solutions-intro h2 {
    font-size: clamp(36px, 7.4vw, 52px);
  }
  .section-heading > p:not(.eyebrow) {
    font-size: 15px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .project-filters {
    gap: 4px;
    margin-bottom: 32px;
  }
  .filter {
    padding-inline: 12px;
  }
  .project-grid,
  .project-card,
  .project-wide,
  .is-filtered .project-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-grid {
    row-gap: 56px;
  }
  .project-reverse .project-image,
  .project-reverse .project-caption {
    order: initial;
  }
  .project-card .project-image img,
  .project-featured .project-image img,
  .project-wide .project-image img,
  .is-filtered .project-card .project-image img {
    height: auto;
    aspect-ratio: 1.4;
  }
  .project-meta {
    font-size: 10px;
    margin-block: 0 12px;
  }
  .project-wide .project-meta {
    margin-top: 0;
  }
  .project-wide .project-caption {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-wide .project-meta,
  .project-wide .project-title,
  .project-wide .project-caption > p,
  .project-wide .project-caption .tags {
    grid-column: 1;
    grid-row: auto;
  }
  .project-title h3 {
    font-size: 26px;
  }
  .project-caption > p {
    font-size: 15px;
  }
  .solutions-intro {
    margin-bottom: 40px;
  }
  .solutions-intro > p {
    font-size: 15px;
  }
  .about {
    gap: 32px;
  }
  .about h2 {
    font-size: clamp(35px, 7.7vw, 50px);
  }
  .about-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-body > .large-copy {
    font-size: 24px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 8px;
  }
  .principles img {
    margin-bottom: 12px;
  }
  .method-section {
    padding-top: 0;
  }
  .method-section > .container {
    padding-top: 76px;
  }
  .process {
    margin-top: 42px;
  }
  .process-marker {
    place-items: center;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact h2 {
    font-size: clamp(48px, 12vw, 68px);
  }
  .contact-form {
    padding: 24px;
  }
}
@media (max-width: 374px) {
  .brand-logo {
    width: 144px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .scene-choice {
    font-size: 11px;
    padding-inline: 8px;
    gap: 5px;
  }
  .scene-choice img {
    width: 16px;
    height: 16px;
  }
}
