/* ==========================================================================
   AEC Nexus: one stylesheet for every page.
   Order: tokens, base, layout, header and menus, shared components, pages.
   Mobile first. Breakpoints: 760px (tablet), 900px (desktop layout),
   1080px (full desktop menu).

   Idea: the renderings are the brand. Heroes, page headers, product tiles,
   gallery rooms and closing panels are full-bleed photographs with the text
   on them, with only a soft neutral shade behind the text. Sections are
   separated by full-screen photographs (.divider), not by coloured bands.
   Navy is kept to small buttons and the active chip.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-2: #F5F5F7;
  --surface: #FFFFFF;
  --stage: #141B2D;          /* brand navy: image rooms and page headers */
  --stage-2: #1D2539;
  --ink: #1A2236;
  --ink-2: #4A5365;
  --ink-inv: #F5F5F2;
  --line: #E2E2E6;
  --brass: #8F6A3A;
  --brass-soft: #C9A66B;
  --logo-red: #C62828;

  /* Roles that change inside a stage section */
  --btn-bg: #141B2D;
  --btn-fg: #F5F5F2;
  --btn-bg-hover: #26304A;
  --ghost-line: rgba(26, 34, 54, 0.32);
  --link-hover: #8F6A3A;
  --img-bg: #EDEDF0;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --gutter: 20px;
  --wide: 1240px;
  --header-h: 64px;
  --section-y: 72px;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }
@media (min-width: 900px) { :root { --header-h: 72px; --section-y: 112px; } }

/* On a photograph (or the rare dark section): light text. Components read
   these roles, so they need no dark variants. */
.stage, .section--dark, .pagehead--image, .hero, .tile, .statement, .cta--image, .xhead, .room__cover {
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.84);
  --ink-inv: #141B2D;
  --line: rgba(255, 255, 255, 0.28);
  --btn-bg: #FFFFFF;
  --btn-fg: #141B2D;
  --btn-bg-hover: #F0F0F2;
  --ghost-line: rgba(255, 255, 255, 0.7);
  --link-hover: #E9D3A8;
  --img-bg: #1D2539;
  background-color: var(--stage);
  color: var(--ink);
}
/* Shade behind text on photographs: neutral, soft, only where the text is */
.shade-text { text-shadow: 0 1px 2px rgba(10, 14, 26, 0.25), 0 4px 28px rgba(10, 14, 26, 0.3); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { color: inherit; line-height: 1.1; text-wrap: balance; }
h1, h2 { font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
p + p { margin-top: var(--s2); }
::selection { background: var(--stage); color: #F5F5F2; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.stage :focus-visible, .pagehead :focus-visible, .hero :focus-visible, .section--dark :focus-visible { outline-color: var(--brass-soft); }

.container { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 16px; z-index: 100; padding: 12px 16px; background: var(--stage); color: #F5F5F2; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }
@media (max-width: 759px) { .hide-phone { display: none !important; } }

/* Type helpers */
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.eyebrow { margin: 0 0 var(--s2); font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--ghost, .btn--secondary { background: transparent; color: var(--ink); border-color: var(--ghost-line); }
.btn--ghost:hover, .btn--secondary:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn[aria-disabled="true"], [data-plan][aria-disabled="true"] { opacity: .6; pointer-events: none; }

.textlink {
  position: relative; display: inline-block;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s var(--ease);
}
.textlink:hover { color: var(--link-hover); }
.textlink::before { content: ""; position: absolute; inset: -12px -8px; }  /* larger touch area */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (max-width: 599px) {
  .actions--stack .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Header, main menu, sign-in menu
   ========================================================================== */
.header { position: sticky; top: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid var(--line); }
/* The blur sits on a layer behind the header. On the header itself, backdrop-filter
   would make it the containing block of the fixed phone menu and collapse that menu. */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.4) blur(14px); }
.header__inner { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: auto; height: 40px; }
@media (min-width: 900px) { .brand img { height: 46px; } }
/* Logo: the "AI" letters are red. A mask of the logo, clipped to those letters. */
.logo-ai-accent { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.logo-ai-accent img { display: block; }
.logo-ai-accent::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--logo-red); -webkit-mask: url('/assets/logo.png') center / 100% 100% no-repeat; mask: url('/assets/logo.png') center / 100% 100% no-repeat; clip-path: polygon(90.4% 24%, 98.5% 24%, 98.5% 35%, 90.4% 35%); }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 44px; height: 44px; margin: 0 -10px 0 auto; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav { display: none; }
.nav__list a { text-decoration: none; color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: var(--s2); }

.signin { position: relative; }
.signin__toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px;
  background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 500; color: var(--ink); cursor: pointer;
}
.signin__toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.signin__toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.signin__menu {
  display: none; position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(20, 27, 45, 0.14);
}
.signin__toggle[aria-expanded="true"] + .signin__menu { display: block; }
.signin__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.9375rem; text-decoration: none; color: var(--ink); }
.signin__menu a:hover { background: var(--paper-2); }
.signin__menu small { display: block; font-size: 0.8125rem; color: var(--ink-2); }

@media (min-width: 1080px) {
  .nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: var(--s4); }
  .nav__list { display: flex; gap: 26px; }
  .nav__list a { display: block; padding-block: 8px; font-size: 0.875rem; font-weight: 500; transition: color .2s var(--ease); }
  .nav__list a:hover { color: var(--brass); }
  .nav__list a[aria-current] { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .menu-toggle { display: none; }
}
@media (max-width: 1079px) {
  .nav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    overflow-y: auto; padding: var(--s2) var(--gutter) var(--s8); background: var(--paper);
  }
  .nav.is-open .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
  .nav.is-open .nav__list a[aria-current] { color: var(--brass); }
  .nav.is-open .nav__actions { flex-direction: column; align-items: stretch; gap: var(--s3); margin-top: var(--s4); }
  .nav.is-open .nav__actions > .btn { order: -1; min-height: 52px; font-size: 1rem; }
  .nav.is-open .signin__toggle { padding: 0; min-height: 0; color: var(--ink-2); pointer-events: none; }
  .nav.is-open .signin__toggle::after { display: none; }
  .nav.is-open .signin__menu { display: block; position: static; min-width: 0; margin-top: 4px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav.is-open .signin__menu a { padding: 10px 0; font-size: 1.0625rem; }
  .nav.is-open .signin__menu a:hover { background: none; color: var(--brass); }
  html.menu-open { overflow: hidden; }
}

/* Product sub-menu: product name, its pages, one action */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.subnav__inner { display: flex; align-items: center; gap: var(--s3); min-height: 52px; }
.subnav__name { margin-right: auto; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.subnav__list { display: flex; gap: 22px; }
.subnav__list a { display: block; padding: 14px 0; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.subnav__list a:hover { color: var(--ink); }
.subnav__list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.subnav__cta { min-height: 32px; padding: 0 14px; font-size: 0.8125rem; white-space: nowrap; }
@media (max-width: 759px) {
  .subnav__inner { gap: var(--s2); }
  .subnav__name { font-size: 0.9375rem; }
  .subnav__list { gap: 12px; }
  .subnav__cta--keep { padding: 0 10px; font-size: 0.75rem; }
  .subnav__list a { font-size: 0.8125rem; }
  .subnav__cta:not(.subnav__cta--keep) { display: none; }
}

/* ==========================================================================
   Sections and page headers
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 46rem; margin-bottom: var(--s5); }
.section__head .lead { margin-top: var(--s2); }
.section > .container > h2 + p,
.section > .container > h2 + .lead,
.section > .container > h1 + p { margin-top: var(--s2); }
.section > .container > p + .tiers,
.section > .container > .lead + .tiers { margin-top: var(--s5); }
.section > .container > p + .btn,
.section > .container > .btn + p { margin-top: var(--s3); }
@media (min-width: 900px) { .section__head { margin-bottom: var(--s6); } }

/* Page header. Task pages (pricing, contact, legal): plain and light. */
.pagehead { padding-block: var(--s8) var(--s6); }
.pagehead__copy { max-width: 50rem; }
.pagehead h1 { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5rem); letter-spacing: -0.035em; }
.pagehead .lead { margin-top: var(--s3); }
.pagehead__actions { margin-top: var(--s4); }
.pagehead__meta { margin-top: var(--s3); font-size: 0.9375rem; color: var(--ink-2); }
.pagehead--plain > .container { padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .pagehead { padding-block: var(--s12) var(--s8); } }

/* Page header with a rendering: the photo fills the header, the text sits on it */
.pagehead--image { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(84svh, 720px); padding-block: 160px var(--s6); }
.pagehead__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pagehead--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,16,0) 12%, rgba(10,12,16,0.5) 42%, rgba(10,12,16,0.74) 100%); }
.pagehead--image h1, .pagehead--image .lead { text-shadow: 0 1px 2px rgba(10,14,26,.25), 0 4px 28px rgba(10,14,26,.3); }
@media (min-width: 900px) {
  .pagehead--image { min-height: min(88vh, 860px); padding-block: 200px var(--s10); }
  .pagehead--image::before { background: linear-gradient(90deg, rgba(10,12,16,0.58) 0%, rgba(10,12,16,0.28) 38%, rgba(10,12,16,0.0) 66%), linear-gradient(0deg, rgba(10,12,16,0.44) 0%, rgba(10,12,16,0.0) 42%); }
}

/* Full-screen photograph between sections: the separator */
.divider { position: relative; margin: 0; height: 78svh; min-height: 420px; max-height: 1080px; overflow: hidden; background: var(--img-bg); }
.divider img { width: 100%; height: 100%; object-fit: cover; }
.divider::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(10,12,16,0.4) 0%, rgba(10,12,16,0) 28%); }
.divider__caption { position: absolute; left: 0; right: 0; bottom: var(--s3); z-index: 1; font-size: 0.875rem; color: #fff; text-shadow: 0 1px 8px rgba(10,12,16,.5); }
@media (min-width: 900px) { .divider { height: 100vh; } .divider__caption { bottom: var(--s4); } }
/* Two white sections in a row: a quiet rule between them */
.section--rule { padding-top: 0; }
.section--rule > .container { border-top: 1px solid var(--line); padding-top: var(--section-y); }

/* Full-width rendering between sections */
.band { margin: 0; }
.band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-height: 86vh; background: var(--img-bg); }
.band__caption { display: flex; justify-content: space-between; gap: var(--s2); padding-block: 14px var(--s8); font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 900px) { .band__caption { padding-bottom: var(--s12); } }
@media (max-width: 759px) { .band__caption { padding-bottom: var(--s4); } .band__caption span + span { display: none; } }

/* Closing panel: a full rendering with the call to action on it */
.cta--image { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(80svh, 680px); padding-block: 180px var(--s8); }
.cta--image > .cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,16,0.0) 30%, rgba(10,12,16,0.63) 100%); }
.cta--image h2 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem); text-shadow: 0 4px 28px rgba(10,14,26,.3); }
.cta__inner { display: grid; gap: var(--s4); align-items: end; }
.cta p { margin-top: var(--s2); color: var(--ink-2); }
@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1fr auto; gap: var(--s8); }
  .cta--image::before { background: linear-gradient(90deg, rgba(10,12,16,0.48) 0%, rgba(10,12,16,0.0) 60%), linear-gradient(0deg, rgba(10,12,16,0.53) 0%, rgba(10,12,16,0.0) 55%); }
}

/* Two columns of prose */
.prose-grid { display: grid; gap: var(--s3); }
.prose-grid h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); }
.prose p { color: var(--ink-2); max-width: 36em; }
.prose .textlink { color: var(--ink); }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s8); } }

/* ==========================================================================
   Home
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: calc(100svh - var(--header-h)); max-height: 1000px; padding-block: 140px var(--s6); }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,16,0.25) 0%, rgba(10,12,16,0.38) 22%, rgba(10,12,16,0.66) 48%, rgba(10,12,16,0.86) 100%); }
.hero__kicker { margin-bottom: var(--s2); font-size: 1rem; font-weight: 600; color: #E9D3A8; }
.hero h1 { max-width: 17ch; font-size: clamp(2.5rem, 1.2rem + 4.8vw, 5.5rem); line-height: 1.0; letter-spacing: -0.04em; }
.hero__sub { margin-top: var(--s3); max-width: 32em; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); }
.hero h1, .hero__sub { text-shadow: 0 1px 3px rgba(10,12,16,.45), 0 4px 32px rgba(10,12,16,.4); }
.hero__kicker { text-shadow: 0 1px 3px rgba(10,12,16,.5); }
.hero .actions { margin-top: var(--s4); }
@media (min-width: 900px) {
  .hero { padding-block: 200px var(--s10); }
  .hero::before { background: linear-gradient(90deg, rgba(10,12,16,0.55) 0%, rgba(10,12,16,0.26) 40%, rgba(10,12,16,0.0) 68%), linear-gradient(0deg, rgba(10,12,16,0.48) 0%, rgba(10,12,16,0.0) 45%); }
}
@media (max-width: 599px) { .hero .actions .btn { flex: 1 1 100%; } }
/* The one moment of motion on the home page: the photograph settles into place */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: settle 2.4s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Product tiles: one photograph per live agent, the name large on top of it */
.tiles { display: grid; gap: 12px; padding-inline: 12px; }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; min-height: 600px; padding: var(--s6) var(--s3) var(--s4); text-align: center; }
.tile__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile__bg { transform: scale(1.03); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,16,0.65) 0%, rgba(10,12,16,0.37) 32%, rgba(10,12,16,0.0) 58%); }
.tile__name { font-size: clamp(2.125rem, 1.4rem + 2.4vw, 3.25rem); letter-spacing: -0.035em; }
.tile__for { margin-top: 8px; font-size: 1.1875rem; font-weight: 600; }
.tile__line { margin: 6px auto 0; max-width: 26em; color: var(--ink-2); }
.tile__name, .tile__for, .tile__line { text-shadow: 0 1px 2px rgba(10,14,26,.25), 0 4px 24px rgba(10,14,26,.35); }
.tile .actions { justify-content: center; margin-top: var(--s3); }
.tile__inset { position: absolute; left: 16px; bottom: 16px; z-index: 1; width: min(38%, 220px); border: 3px solid #fff; box-shadow: 0 10px 28px rgba(10, 14, 26, 0.35); }
.tile__inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__inset span { position: absolute; left: -3px; bottom: 100%; margin-bottom: 6px; padding: 3px 8px; background: #fff; font-size: 0.75rem; font-weight: 600; color: #1A2236; white-space: nowrap; }
.tiles__note { margin-top: var(--s5); color: var(--ink-2); }
.tiles__note a { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { min-height: min(84vh, 760px); padding-top: var(--s8); } }

/* Feature: a full rendering with the words written on its quiet side */
.feature { position: relative; isolation: isolate; overflow: hidden; }
.feature__bg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature__copy { padding-block: var(--s6) var(--s3); }
.feature__copy h2 { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem); letter-spacing: -0.035em; max-width: 10ch; }
.feature__copy p { margin-top: var(--s2); max-width: 22em; font-size: 1.125rem; color: var(--ink-2); }
.feature__copy .textlink { margin-top: var(--s3); }
@media (min-width: 900px) {
  .feature__bg { aspect-ratio: 16 / 9; max-height: none; }
  .feature__copy { position: absolute; top: 0; left: 0; right: 0; padding-top: var(--s10); }
  .feature__copy p { max-width: 19em; }
  /* A white veil over the drawing side only, so the words read cleanly */
  .feature::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.5) 24%, rgba(255,255,255,0) 42%); }
  .feature__copy { z-index: 1; }
}

/* Before and after: the SketchUp model and the rendering side by side, the same height */
.pair { display: grid; gap: 12px; }
.shot { position: relative; margin: 0; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--img-bg); }
.pair .shot:last-child img { aspect-ratio: 3 / 2; }
.shot figcaption { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font-size: 0.8125rem; font-weight: 600; color: #1A2236; box-shadow: 0 1px 3px rgba(10, 12, 16, 0.18); }
@media (min-width: 760px) { .pair { grid-template-columns: 8fr 9fr; gap: var(--s3); align-items: start; } }  /* 4:3 beside 3:2: equal heights */

/* Example tabs (choose which model to compare) */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s3); }
.tab {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 18px 6px 6px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.tab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tab:hover { border-color: var(--ink-2); }
.tab[aria-selected="true"] { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.stage .tab[aria-selected="true"] { background: var(--stage-2); }
@media (max-width: 759px) {
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tab { flex-direction: column; gap: 6px; padding: 8px 6px 10px; border-radius: 14px; font-size: 0.8125rem; line-height: 1.25; }
  .tab img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; }
}

/* Steps in a sequence */
.how { display: grid; gap: 0; counter-reset: how; }
.how li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.how__n { display: block; margin-bottom: var(--s2); font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--brass); font-variant-numeric: tabular-nums; }
.how h3 { font-size: 1.375rem; }
.how p { margin-top: 6px; color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } .how li { padding-top: var(--s4); border-top-color: var(--ink); } }

/* Gallery wall on the home page */
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.wall a { position: relative; display: block; overflow: hidden; background: var(--img-bg); cursor: zoom-in; }
.wall img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.wall a:hover img { transform: scale(1.03); }
.wall > :first-child { grid-column: 1 / -1; }
.wall > :first-child img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .wall { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: 8px; }
  .wall img, .wall > :first-child img { aspect-ratio: auto; }
  .wall > :nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
  .wall > :nth-child(2) { grid-column: 8 / 13; }
  .wall > :nth-child(3) { grid-column: 8 / 13; }
  .wall > :nth-child(4) { grid-column: 1 / 5; }
  .wall > :nth-child(5) { grid-column: 5 / 9; }
  .wall > :nth-child(6) { grid-column: 9 / 13; }
}
.wall__head { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.wall__foot { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 900px) {
  .wall__head { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; column-gap: var(--s8); }
  .wall__foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* Use-case links (home and gallery index) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; text-decoration: none; color: var(--ink); white-space: nowrap; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current="true"] { background: var(--ink); color: var(--ink-inv); border-color: var(--ink); }

/* Agents in development: drawings, because they are still being drawn */
.nexts { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(2, 1fr); }
.next__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; border: 1px solid var(--line); }
.next__tool { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.next__name { margin: 2px 0 4px; font-size: 1.0625rem; line-height: 1.3; }
.next__desc { font-size: 0.9375rem; color: var(--ink-2); }
.agents__more { margin-top: var(--s5); }
@media (min-width: 760px) { .nexts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .nexts { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 759px) {
  .wall > :nth-child(6) { display: none; }
  /* Coming next: one swipeable row */
  .nexts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .nexts::-webkit-scrollbar { display: none; }
  .next { scroll-snap-align: start; }
  .next__desc { display: none; }
}

/* About: the two people */
.team__grid { display: grid; gap: var(--s5); align-items: center; }
.team__copy h2 { margin-bottom: var(--s3); }
.team__copy p { color: var(--ink-2); font-size: 1.125rem; max-width: 34em; }
.team__more { margin-top: var(--s4); }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); max-width: 520px; }
.crew__person a { display: block; text-decoration: none; color: var(--ink); }
.crew__person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; background: var(--img-bg); transition: transform .6s var(--ease); }
.crew__person a:hover img { transform: scale(1.015); }
.crew__name { display: block; margin-top: 12px; font-weight: 600; }
.crew__role { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
@media (min-width: 900px) { .team__grid { grid-template-columns: 1fr auto; gap: var(--s8); } .crew { width: 460px; } .crew__person img { aspect-ratio: 3 / 4; } }
@media (max-width: 759px) { .crew { gap: var(--s2); } }

/* Closing statement: full rendering, the call to action and contact on it */
.statement { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(96svh, 940px); }
.statement__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,12,16,0.0) 35%, rgba(10,12,16,0.44) 65%, rgba(10,12,16,0.75) 100%); }
.statement__band { display: grid; gap: var(--s5); padding-block: 200px var(--s8); }
.statement__band h2 { max-width: 12em; font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5rem); letter-spacing: -0.035em; text-shadow: 0 4px 32px rgba(10,14,26,.35); }
.statement__band .actions { margin-top: var(--s4); }
.statement__caption { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.contact__details { line-height: 1.9; }
.contact__details a { text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.contact__details a:hover { color: var(--link-hover); border-color: currentColor; }
@media (min-width: 900px) {
  .statement__band { grid-template-columns: 1fr auto; align-items: end; padding-bottom: var(--s10); }
  .statement__band .contact__details { text-align: right; font-size: 1.0625rem; }
}

/* ==========================================================================
   Agents page
   ========================================================================== */
.sols { display: grid; }
.sol { display: grid; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line); }
.sol:first-child { border-top: 0; padding-top: 0; }
.sol > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--img-bg); }
.sol__copy h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); margin-bottom: var(--s1); }
.sol__copy p { color: var(--ink-2); max-width: 32em; }
.sol__status { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin-bottom: var(--s2); }
.sol__status--live { color: var(--ink); }
.sol__links { margin-top: var(--s3); display: flex; gap: var(--s3); flex-wrap: wrap; }
.sol--draft > img { background: #fff; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; border: 1px solid var(--line); }
.sol img.sol__img--low { object-position: center 85%; }
.sols__label { margin: var(--s8) 0 var(--s3); padding-top: var(--s2); border-top: 1px solid var(--ink); font-size: 1rem; font-weight: 700; }
.sols__label:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .sol { grid-template-columns: 480px 1fr; gap: var(--s8); align-items: center; padding-block: var(--s6); }
  .sol--draft { grid-template-columns: 240px 1fr; padding-block: var(--s4); }
}
@media (max-width: 759px) {
  .sol--draft { grid-template-columns: 104px 1fr; align-items: start; gap: var(--s2); padding-block: var(--s3); }
  .sol--draft > img { aspect-ratio: 1; }
  .sol--draft .sol__copy h2 { font-size: 1.1875rem; margin-bottom: 4px; }
  .sol--draft .sol__status { margin-bottom: 4px; }
  .sol--draft .sol__copy p { font-size: 0.9375rem; }
}

/* ==========================================================================
   Render and Web Studio pages
   ========================================================================== */
.why { display: grid; gap: var(--s5); align-items: center; }
.why__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0B0F1A; }
.why__caption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.points { margin-top: var(--s4); }
.points li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.points h3 { margin-bottom: 4px; }
.points p { color: var(--ink-2); max-width: 32em; }
@media (min-width: 900px) { .why { grid-template-columns: 1.1fr 0.9fr; gap: var(--s8); } }
@media (max-width: 759px) { #why .why__caption, #why .points p { display: none; } }

/* Lighting study: one model in several lights */
.study + .study { margin-top: var(--s6); }
.study__title { margin-bottom: var(--s2); font-size: 1rem; font-weight: 700; }
.study__row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.study__row::-webkit-scrollbar { display: none; }
.study__row > * { scroll-snap-align: start; }
.study__row > .work { grid-column: auto; }
@media (min-width: 760px) { .study__row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(var(--n, 3), 1fr); overflow: visible; margin: 0; padding: 0; } }

/* Software list on the Web Studio page */
.apps { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: clamp(1.375rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.apps li:last-child { color: var(--brass); }
.modes { display: grid; gap: 0; }
.modes li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.modes h3 { font-size: 1.375rem; }
.modes p { margin-top: 6px; color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) { .modes { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } .modes li { padding-top: var(--s4); border-top-color: var(--ink); } }

/* ==========================================================================
   Pricing
   ========================================================================== */
.tiers { border-top: 1px solid var(--ink); }
.tier { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.tier > * { grid-column: 1 / -1; }
.tier > .tier__name, .tier > h3:first-child { grid-column: 1; grid-row: 1; }
.tier > .tier__price { grid-column: 2; grid-row: 1; text-align: right; }
.tier .btn { margin-top: 1.25rem; width: 100%; }
.tier .textlink { justify-self: start; margin-top: 1.25rem; }
.tier p { color: var(--ink-2); }
.tier__name { font-size: 1.125rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; }
.price { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.per { display: block; margin-top: 4px; white-space: nowrap; font-size: 0.8125rem; color: var(--ink-2); }
.included { display: grid; margin-top: var(--s5); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.included li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.included__k { font-weight: 700; }
.pricing__foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-top: var(--s4); }
.pricing__foot p { color: var(--ink-2); max-width: 34em; }
.pricing__foot .textlink { white-space: nowrap; }
@media (min-width: 900px) {
  .tiers { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tier { display: block; padding: var(--s4) var(--s4) var(--s4) 0; }
  .tier + .tier { padding-left: var(--s4); border-left: 1px solid var(--line); }
  .tier__price { text-align: left; margin-top: var(--s3); }
  .tier .btn { width: auto; }
  .tiers .tier__name + p { min-height: 3.2em; }
  .price { font-size: 3.25rem; }
  .included { grid-template-columns: auto repeat(3, 1fr); }
  .included li { border-bottom: 0; padding: var(--s3) var(--s3) var(--s3) 0; }
  .included li + li { padding-left: var(--s3); border-left: 1px solid var(--line); }
  .pricing__foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: var(--s5); }
}
@media (max-width: 759px) { .included { display: none; } }

/* Free-trial chooser */
.trial-help { margin-top: var(--s2); color: var(--ink); }
.trial-products { display: grid; gap: var(--s3); margin-top: var(--s4); }
.trial-products .tier, .trial-products .tier + .tier { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.trial-products .tier h3 { font-size: 1.375rem; }
.trial-products ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 6px; color: var(--ink-2); }
.trial-products .trial-for { color: var(--ink); font-weight: 600; }
.trial-products .trial-price { color: var(--ink-2); font-size: 0.875rem; margin-top: auto; }
.trial-products .btn { margin-top: 0; width: 100%; }
.trial-products .textlink { align-self: flex-start; margin-top: 0; }
@media (min-width: 760px) { .trial-products { grid-template-columns: 1fr 1fr; } .trial-products .btn { width: auto; align-self: flex-start; } }
@media (max-width: 759px) { .trial-products ul li:nth-child(n+2) { display: none; } }
#free-trial { scroll-margin-top: 0; }
.plan-status { max-width: 40rem; margin: 1rem auto 0; padding: 0 1rem; color: var(--ink-2); }

/* Team licenses: folded on phones */
.team-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-top: var(--s2); padding: 0 var(--s2); border: 1px solid var(--line); border-radius: 12px; font-size: 0.875rem; font-weight: 600; }
.team-fold > summary::-webkit-details-marker { display: none; }
.team-fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.team-fold[open] > summary::after { transform: rotate(-135deg); }
.team-fold[open] > summary { margin-bottom: var(--s2); }
@media (min-width: 760px) { .team-fold > summary { display: none; } }

/* ==========================================================================
   Download
   ========================================================================== */
.dl { display: grid; gap: var(--s6); align-items: start; }
.steps { margin-top: var(--s4); counter-reset: step; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; padding: var(--s2) 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(step); color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps strong { color: var(--ink); font-weight: 600; }
.dl__video, .guide { margin: 0; }
.dl__video video, .guide video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--stage); }
.dl__video figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-2); }
.guides { display: grid; gap: var(--s5); }
.guide figcaption { margin-top: var(--s2); display: grid; gap: 4px; }
.guide figcaption span { font-size: 0.9375rem; color: var(--ink-2); }
.credits { width: 100%; max-width: 32rem; margin-bottom: var(--s3); border-collapse: collapse; border-top: 1px solid var(--ink); }
.credits th, .credits td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.credits td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .dl { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .dl__video { position: sticky; top: calc(var(--header-h) + 84px); margin-top: 72px; }
  .guides { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}
@media (max-width: 759px) {
  .guides { display: flex; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .guides::-webkit-scrollbar { display: none; }
  .guide { flex: 0 0 84%; scroll-snap-align: start; }
  .dl__video figcaption, .guide figcaption span { display: none; }
}

/* ==========================================================================
   Contact, team, legal, status pages
   ========================================================================== */
.contact { display: grid; gap: var(--s6); }
.contact__copy .lead { margin-top: var(--s2); }
.contact__copy .contact__details { margin-top: var(--s4); }
.form { display: grid; gap: var(--s3); padding: var(--s4) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #C9C7BF; border-radius: 10px;
  transition: border-color .2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.form .btn { justify-self: start; }
.form__status { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: var(--s8); align-items: start; } .form { padding: var(--s5); } }
@media (max-width: 759px) { .field textarea { min-height: 110px; } }
#inquiry-sent { max-width: min(480px, 90vw); padding: 32px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); }
#inquiry-sent::backdrop { background: rgba(0, 0, 0, .45); }
#inquiry-sent p { margin: 12px 0 24px; color: var(--ink-2); }

/* Team page */
.team-intro h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem); }
.team-intro nav { margin-top: var(--s3); display: flex; gap: var(--s3); }
.team-intro nav + h2 { margin-top: var(--s8); }
.team-intro h2 + .lead { margin-top: var(--s2); }
.people-grid { display: grid; gap: var(--s6); margin-block: var(--s5) var(--s6); }
.person-card { margin: 0; }
.person-image { display: grid; gap: 4px; background: var(--img-bg); }
.person-image img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.person-image--pair { grid-template-columns: 1fr 1fr; }
.person-image--pair img + img { object-fit: contain; background: #0E1322; }
.person-card figcaption { margin-top: var(--s3); }
.person-card figcaption h2 { font-size: 1.625rem; margin-bottom: 4px; }
.person-card figcaption p { margin: 0; color: var(--ink-2); max-width: 36em; }
.person-card figcaption p + p { margin-top: 8px; }
.person-card figcaption strong { color: var(--ink); }
@media (min-width: 900px) {
  .people-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}
@media (max-width: 759px) { .person-image--pair img { aspect-ratio: 3 / 4; } }

/* Customers */
.customers-intro h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
.customers-grid { display: grid; gap: var(--s3); margin-top: var(--s5); }
.customer-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.customer-logo { display: flex; align-items: center; justify-content: center; min-height: 200px; padding: var(--s4); background: var(--paper-2); }
.customer-logo img { display: block; max-width: 85%; object-fit: contain; }
.customer-logo--bamo img { box-sizing: content-box; width: 176px; height: auto; padding: 12px 16px; background: #242C2B; }
.customer-logo:focus-visible { outline: 3px solid var(--brass); outline-offset: -5px; }
.customer-info { padding: var(--s3); }
.customer-info h2 { margin: 0 0 6px; font-size: 1.5rem; }
.customer-info p { margin-bottom: var(--s3); color: var(--ink-2); }
@media (min-width: 760px) { .customers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Team licenses: number of licenses and totals (pricing) */
.team-price { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.team-quantity { margin-top: 20px; }
.team-quantity label { display: block; font-weight: 700; margin-bottom: 8px; }
.quantity-controls { display: flex; align-items: center; gap: 8px; }
.quantity-controls button { width: 44px; height: 44px; border: 1px solid #C9C7BF; border-radius: 10px; background: #fff; color: var(--ink); font-size: 24px; cursor: pointer; }
.quantity-controls input { width: 92px; min-width: 0; height: 44px; text-align: center; border: 1px solid #C9C7BF; border-radius: 10px; font-size: 18px; color: var(--ink); background: #fff; }
.quantity-controls button:disabled { opacity: .45; cursor: default; }
.team-total { margin: 14px 0; }
.team-note { font-size: 0.8125rem; line-height: 1.5; margin-top: 12px; }
.team-request[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.team-price:focus-visible, .quantity-controls :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Legal pages */
.legal { max-width: 46rem; margin-inline: auto; }
.legal section + section { margin-top: var(--s5); }
.legal h2 { font-size: 1.5rem; margin-bottom: var(--s2); }
.legal p { color: var(--ink-2); }
.legal p + p, .legal__list + p, p + .legal__list { margin-top: var(--s2); }
.legal__list { list-style: disc; padding-left: 1.25rem; color: var(--ink-2); }
.legal__list li + li { margin-top: 6px; }
.legal__note { padding-left: var(--s3); border-left: 2px solid var(--line); color: var(--ink) !important; }
.legal a { color: var(--ink); }
.legal__contact { padding-top: var(--s4); border-top: 1px solid var(--line); }

/* Status pages (Web Studio launcher, Render login) */
.status-page { min-height: 45vh; max-width: 760px; }
.status-page h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
.status-page .lead { margin-top: var(--s3); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding-top: var(--s8); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { height: 64px; width: auto; }
.footer__line { margin-top: var(--s3); max-width: 24em; line-height: 1.5; color: var(--ink-2); }
.footer__kicker { display: block; margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.footer__line .ai-red { color: var(--logo-red); font-weight: 700; }
.footer__title { margin-bottom: var(--s2); font-size: 0.9375rem; letter-spacing: 0; }
.footer nav li + li { margin-top: 10px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--brass); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--s8); padding-block: var(--s3); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.footer__legal ul { display: flex; gap: var(--s3); }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
  .footer__brand { grid-column: auto; }
}
@media (max-width: 759px) {
  .footer nav li a, .footer__legal a { display: inline-block; padding: 9px 0; }
  .footer nav li + li { margin-top: 0; }
}

/* ==========================================================================
   Gallery: an exhibition, in rooms by use case
   ========================================================================== */
/* Gallery head: the opening wall of works is the background. The wall is taller
   than the screen, so the title sits at the top, on the first (dark) photograph,
   with a light shade only behind the words; the rest of the wall stays bright. */
.xhead { position: relative; background: #fff; }
.xhead::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,16,0.5) 0%, rgba(10,12,16,0.22) 14%, rgba(10,12,16,0) 24%); }
.xhead__copy { position: absolute; left: 0; right: 0; top: var(--s4); z-index: 1; pointer-events: none; }
.xhead__copy > * { pointer-events: auto; }
.xhead h1 { font-size: clamp(2.5rem, 1.4rem + 6vw, 7rem); letter-spacing: -0.045em; line-height: 0.95; text-shadow: 0 1px 3px rgba(10,12,16,.5), 0 4px 32px rgba(10,12,16,.45); }
.xhead .lead { margin-top: var(--s2); max-width: 26em; text-shadow: 0 1px 3px rgba(10,12,16,.6), 0 2px 18px rgba(10,12,16,.5); }
@media (max-width: 759px) {
  .salon > :nth-child(1) img { aspect-ratio: 4 / 3; }
  .xhead .lead { font-size: 1rem; max-width: 22em; }
}
@media (min-width: 900px) {
  .xhead__copy { top: var(--s6); }
  .xhead::after { background: linear-gradient(180deg, rgba(10,12,16,0.42) 0%, rgba(10,12,16,0.16) 18%, rgba(10,12,16,0) 30%); }
}

.salon { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 3px; }
.salon a { display: block; overflow: hidden; background: var(--img-bg); cursor: zoom-in; }
.salon img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.salon a:hover img { transform: scale(1.04); }
.salon > :nth-child(1) { grid-column: 1 / -1; }
.salon > :nth-child(1) img { aspect-ratio: 16 / 9; }
.salon > :nth-child(5), .salon > :nth-child(9) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 759px) { .salon > :nth-child(n+11) { display: none; } }  /* 1 wide + 2 large + 7 small = 5 full rows */
@media (min-width: 760px) {
  .salon { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, clamp(120px, 13vw, 250px)); gap: 4px; }
  .salon img, .salon > :nth-child(1) img { aspect-ratio: auto; }
  /* Fixed hanging plan for the twelve works: no holes at any width */
  .salon > :nth-child(1) { grid-area: 1 / 1 / 3 / 4; }
  .salon > :nth-child(2) { grid-area: 1 / 4 / 2 / 6; }
  .salon > :nth-child(3) { grid-area: 1 / 6 / 3 / 7; }
  .salon > :nth-child(4) { grid-area: 2 / 4 / 3 / 6; }
  .salon > :nth-child(5) { grid-area: 3 / 1 / 5 / 3; }
  .salon > :nth-child(6) { grid-area: 3 / 3 / 4 / 5; }
  .salon > :nth-child(7) { grid-area: 3 / 5 / 5 / 7; }
  .salon > :nth-child(8) { grid-area: 4 / 3 / 5 / 5; }
  .salon > :nth-child(9) { grid-area: 5 / 1 / 6 / 3; }
  .salon > :nth-child(10) { grid-area: 5 / 3 / 6 / 5; }
  .salon > :nth-child(11) { grid-area: 5 / 5 / 6 / 6; }
  .salon > :nth-child(12) { grid-area: 5 / 6 / 6 / 7; }
}

/* Room index: stays in view, marks the room you are in */
.xindex { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.xindex .chips { flex-wrap: nowrap; overflow-x: auto; padding-block: 12px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.xindex .chips::-webkit-scrollbar { display: none; }
.xindex .chips a { min-height: 36px; }

/* A room: its cover photograph carries the room name, then the works hang below */
.room { padding-top: var(--s10); }
.room:last-of-type { padding-bottom: var(--s10); }
.room__cover { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(78svh, 720px); margin-bottom: var(--s5); }
.room__bg, .room__bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
a.room__bg { display: block; cursor: zoom-in; }
.room__cover::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,16,0.0) 35%, rgba(10,12,16,0.4) 65%, rgba(10,12,16,0.7) 100%); }
.room__head { display: grid; gap: var(--s2); padding-block: 160px var(--s5); pointer-events: none; }
.room__head h2 { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.5rem); letter-spacing: -0.04em; line-height: 1; }
.room__intro { color: var(--ink-2); max-width: 32em; font-size: 1.125rem; line-height: 1.5; }
.room__head h2, .room__intro { text-shadow: 0 1px 2px rgba(10,14,26,.25), 0 4px 28px rgba(10,14,26,.35); }
/* Linework room: the drawing side of the picture is white, so the words sit on
   the white page directly above it and the drawing continues below them */
.room__cover.room__cover--light { --ink: #1A2236; --ink-2: #4A5365; flex-direction: column-reverse; align-items: stretch; min-height: 0; background: #fff; }
.room__cover--light::before { display: none; }
.room__cover--light .room__bg { position: relative; inset: auto; z-index: auto; }
.room__cover--light .room__bg img { position: static; height: auto; aspect-ratio: 16 / 9; }
.room__cover--light .room__head { padding-block: 0 var(--s4); width: min(100% - 2 * var(--gutter), var(--wide)); }
.room__cover--light .room__head h2, .room__cover--light .room__intro { text-shadow: none; }
@media (min-width: 900px) {
  .room { padding-top: var(--s12); }
  .room__cover { min-height: min(86vh, 860px); margin-bottom: var(--s6); }
  .room__head { grid-template-columns: 1fr minmax(0, 26rem); align-items: end; column-gap: var(--s8); padding-bottom: var(--s8); }
    .room__head h2 { grid-column: 1; }
  .room__intro { grid-column: 2; }
}

/* Hanging plan: a 12-column wall. Each work sets --span (columns wide) and,
   when it should not follow on, --start. On phones: full width or half (.work--half). */
.hang { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4) 8px; align-items: start; }
.hang + .hang { margin-top: var(--s4); }
.work { margin: 0; grid-column: 1 / -1; min-width: 0; }
.work--half { grid-column: span 1; }
.work__link { display: block; overflow: hidden; background: var(--img-bg); cursor: zoom-in; }
.work__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.4s var(--ease); }
.work__link:hover img { transform: scale(1.02); }
.work--portrait .work__link img { aspect-ratio: 4 / 5; }
.work--square .work__link img { aspect-ratio: 1; }
.work figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: 10px; font-size: 0.9375rem; line-height: 1.4; }
.work__tag { flex: none; font-size: 0.8125rem; color: var(--ink-2); }
.work__desc { margin-top: 6px; font-size: 0.875rem; color: var(--ink-2); max-width: 40em; }
.work video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--img-bg); }
.work--bleed { grid-column: 1 / -1; width: 100vw; margin-left: calc(50% - 50vw); }
.work--bleed figcaption { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.work--bleed .work__link img { aspect-ratio: 16 / 9; max-height: 90vh; }
@media (max-width: 759px) {
  .work--half figcaption { font-size: 0.8125rem; }
  .work--half .work__tag { display: none; }
}
@media (min-width: 760px) {
  .hang { grid-template-columns: repeat(12, 1fr); gap: var(--s5) var(--s3); }
  .hang > .work { grid-column: var(--start, auto) / span var(--span, 12); }
  .hang > .work--bleed { grid-column: 1 / -1; }
  .drop { margin-top: var(--s12); }
  .work--bleed .work__link img { aspect-ratio: 21 / 9; }
}

/* Full-screen viewer */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(11, 15, 26, 0.97); color: #F5F5F2; }
.viewer::backdrop { background: rgba(11, 15, 26, 0.97); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer__figure { display: flex; flex-direction: column; align-items: center; gap: var(--s2); padding: 64px 16px; }
.viewer__img { max-width: min(94vw, 1800px); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; }
.viewer__caption { font-size: 0.9375rem; color: rgba(245, 245, 242, 0.85); text-align: center; }
.viewer__count { display: block; margin-top: 4px; font-size: 0.8125rem; color: rgba(245, 245, 242, 0.55); font-variant-numeric: tabular-nums; }
.viewer__btn { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(245, 245, 242, 0.3); border-radius: 50%; background: rgba(11, 15, 26, 0.4); color: #F5F5F2; font: inherit; font-size: 1.25rem; cursor: pointer; transition: background-color .2s var(--ease); }
.viewer__btn:hover { background: rgba(245, 245, 242, 0.15); }
.viewer__close { top: 16px; right: 16px; }
.viewer__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 759px) { .viewer__prev, .viewer__next { top: auto; bottom: 16px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
