/* Comsen Systems. The identity of the business card: midnight navy, warm ivory and champagne
   gold. Navy carries the header, the top of every page and the footer; ivory carries the
   reading; gold is a thin line, an icon and the one button that asks for contact. Headlines in
   Mukta (medium), names and small labels in Josefin Sans capitals, as on the card. */
/* The two typefaces, served from this site (SIL Open Font License). */
@font-face { font-family: 'Josefin Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url('/fonts/josefin-sans-italic-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/josefin-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Josefin Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/josefin-sans-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/mukta-normal-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/mukta-normal-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/mukta-normal-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #08172e;
  --navy-2: #0f1f3f;
  --navy-line: #22335a;
  --gold: #c9a24b;
  --gold-light: #f1d58a;
  --gold-deep: #8a651c;
  --on-navy: #f4ecdf;
  --on-navy-soft: #b9c1d3;

  --bg: #fbf7f0;
  --surface: #ffffff;
  --panel: #f7efe5;
  --ink: #0e1a33;
  --muted: #4a5368;
  --line: #e4d8c6;
  --accent: #0b172c;
  --accent-ink: #f4ecdf;
  --label: #8a651c;
  --link: #1d3a78;
  --shadow: 0 1px 2px rgb(11 23 44 / 0.05), 0 16px 34px -20px rgb(11 23 44 / 0.3);
  --ok: #17603c;
  --ok-bg: #e4f2e7;
  --dev: #7a5a12;
  --dev-bg: #f7ecd2;
  --err: #a4281c;
  --err-bg: #fbe9e6;

  --text: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --caps: "Josefin Sans", "Century Gothic", "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.22rem;
  --step-2: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.85rem, 1.35rem + 2vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.4rem + 3.6vw, 3.9rem);

  --radius: 12px;
  --header-h: 76px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1b33;
    --surface: #13223f;
    --panel: #172848;
    --ink: #f4ecdf;
    --muted: #b9c1d3;
    --line: #2a3c62;
    --accent: #f1d58a;
    --accent-ink: #0b172c;
    --label: #f1d58a;
    --link: #f1d58a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 34px -20px rgb(0 0 0 / 0.7);
    --ok: #7fd3a4;
    --ok-bg: #12352a;
    --dev: #f1d58a;
    --dev-bg: #3a2f14;
    --err: #ff9a8f;
    --err-bg: #3d1a17;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1b33;
  --surface: #13223f;
  --panel: #172848;
  --ink: #f4ecdf;
  --muted: #b9c1d3;
  --line: #2a3c62;
  --accent: #f1d58a;
  --accent-ink: #0b172c;
  --label: #f1d58a;
  --link: #f1d58a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 34px -20px rgb(0 0 0 / 0.7);
  --ok: #7fd3a4;
  --ok-bg: #12352a;
  --dev: #f1d58a;
  --dev-bg: #3a2f14;
  --err: #ff9a8f;
  --err-bg: #3d1a17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.62 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--text); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--gold-light); color: var(--navy); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }
.label { font: 600 0.76rem/1.3 var(--caps); letter-spacing: 0.26em; text-transform: uppercase; color: var(--label); }
.rule { width: 72px; height: 2px; border: 0; margin: 0; background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); }
.motto { font: italic 600 0.92rem/1.5 var(--caps); letter-spacing: 0.22em; text-transform: uppercase; }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose a { color: var(--link); text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

/* Header: always navy, as the card's back */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid var(--navy-line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; color: var(--on-navy); font: 400 0.98rem/1 var(--caps); letter-spacing: 0.3em; text-transform: uppercase; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav-links > a, .nav-links .dd > a { text-decoration: none; font-weight: 400; font-size: 1.02rem; color: var(--on-navy); padding: 8px 0 6px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }
.nav-links .chev { width: 13px; height: 13px; }
.dd { position: relative; }
.dd-menu {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 290px;
  display: none; padding: 8px; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.6);
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--on-navy); }
.dd-menu a:hover { background: var(--navy); color: var(--gold-light); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  background: transparent; color: var(--on-navy); border: 1px solid var(--navy-line);
  font: 500 0.98rem var(--text); cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 10px; border: 1.5px solid transparent;
  font: 500 1.05rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-line { border-color: var(--gold); color: var(--ink); background: transparent; }
.btn-line:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.btn-gold { background: linear-gradient(180deg, var(--gold-light), #dcbb78); color: var(--navy); border-radius: 999px; font-weight: 600; }
.btn-gold:hover { background: var(--gold-light); }
.site-header .btn-gold { min-height: 42px; padding: 0 22px; font-size: 0.98rem; }
.on-navy .btn-primary, .hero .btn-primary { background: var(--navy); color: var(--on-navy); }
.on-navy .btn-line, .page-hero .btn-line { color: var(--on-navy); }
.arrow { display: inline-block; transition: transform .15s ease; }
a:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--link); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Home hero: the card's picture with live text on its ivory field */
.hero { background: var(--navy); container-type: inline-size; }
.hero-stage { position: relative; max-width: 1672px; margin-inline: auto; aspect-ratio: 1672 / 590; background: var(--navy) url("/images/brand/hero-2026-12.webp") center / cover no-repeat; }
.hero-copy { position: absolute; left: 35%; top: 13%; width: 47%; display: grid; gap: clamp(8px, 1.4cqw, 22px); justify-items: start; color: #0e1a33; }
.hero-copy h1 { font-size: clamp(1.5rem, 3.75cqw, 3.9rem); line-height: 1.08; }
.hero-copy .rule { width: clamp(48px, 7cqw, 110px); }
.hero-copy .motto { font-size: clamp(0.6rem, 1.02cqw, 1.05rem); color: #0e1a33; }
.hero-copy .lead { font-size: clamp(0.9rem, 1.42cqw, 1.4rem); line-height: 1.45; color: #2a3348; }
.hero-copy .btn { min-height: clamp(40px, 3.4cqw, 56px); padding: 0 clamp(16px, 2cqw, 30px); font-size: clamp(0.9rem, 1.3cqw, 1.15rem); }
.hero-copy .btn-line { color: #0e1a33; background: #fbf7f0; }

/* The five services under the hero */
.svc-row { background: var(--navy); color: var(--on-navy); border-top: 1px solid var(--navy-line); }
.svc-row ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.svc-row a { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 30px 14px; text-decoration: none; font-size: 1.08rem; line-height: 1.25; height: 100%; align-content: start; transition: background-color .15s ease; }
.svc-row li + li a { border-left: 1px solid var(--navy-line); }
.svc-row a:hover { background: var(--navy-2); color: var(--gold-light); }
.svc-row svg { width: 44px; height: 44px; color: var(--gold-light); }

/* Inner page top: navy, with the card's two arcs */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--on-navy); padding-block: clamp(48px, 6vw, 84px); }
.page-hero .arcs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero .arcs svg { position: absolute; right: 0; top: 0; height: 100%; width: min(60%, 760px); }
.page-hero h1 { font-size: var(--step-4); line-height: 1.06; max-width: 20ch; }
.page-hero .lead { font-size: var(--step-1); color: var(--on-navy-soft); max-width: 56ch; margin-top: 18px; line-height: 1.55; }
.page-hero .label { margin-bottom: 16px; color: var(--gold-light); }
.page-hero .rule { margin-top: 22px; }
.page-hero .actions { margin-top: 26px; }
.crumbs { font-size: var(--step--1); color: var(--on-navy-soft); margin-bottom: 14px; }
.crumbs a { text-underline-offset: 3px; }

/* Sections */
.section { padding-block: clamp(56px, 7vw, 100px); position: relative; }
.section-alt { background: var(--panel); border-block: 1px solid var(--line); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy .label { color: var(--gold-light); }
.on-navy p { color: var(--on-navy-soft); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 64ch; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); }
.on-navy .section-head p { color: var(--on-navy-soft); }

/* Cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; gap: 10px; align-content: start; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 1.28rem; font-weight: 600; }
.card p { color: var(--muted); font-size: 1rem; }
a.card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .mark { width: 46px; height: 46px; color: var(--gold-deep); }
:root[data-theme="dark"] .card .mark { color: var(--gold-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .mark { color: var(--gold-light); } }
.card .more { color: var(--link); font-weight: 600; margin-top: 4px; }

/* Deliverables: a plain two-column list with gold dashes */
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 36px; }
.ticks li { position: relative; padding-left: 26px; font-size: 1.08rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 14px; height: 2px; background: var(--gold); }
.ticks small { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--gold); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 0.8rem/1 var(--caps); letter-spacing: .2em; color: var(--label); }
.steps h3 { font-size: 1.2rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: 0.98rem; }
.on-navy .steps p { color: var(--on-navy-soft); }

/* Split: text beside a list */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split h2 { font-size: var(--step-3); }
.split .intro { display: grid; gap: 16px; justify-items: start; }
.split .intro p { color: var(--muted); }
.principles { display: grid; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles strong { font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.principles p { color: var(--muted); }

/* Status pills */
.status { display: inline-flex; align-items: center; gap: 7px; font: 600 0.7rem/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px 5px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--ok); background: var(--ok-bg); }
.status-development { color: var(--dev); background: var(--dev-bg); }

/* Product and portfolio cards with a picture */
.pic-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pic-card .media { aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.pic-card .media img { width: 100%; height: 100%; object-fit: cover; }
.pic-card .media.top img { object-position: top; }
.pic-card .body { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px 22px 24px; }
.pic-card h3, .pic-card h2 { font-size: 1.35rem; font-weight: 600; }
.pic-card p { color: var(--muted); font-size: 0.99rem; }
.pic-card .kind { font: 600 0.7rem/1.3 var(--caps); letter-spacing: .18em; text-transform: uppercase; color: var(--label); }
.pic-card .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 2px; }
a.pic-card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.pic-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filters button { min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 0.98rem var(--text); }
.filters button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Portfolio: the featured project, music and film */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature img, .feature video { border-radius: var(--radius); border: 1px solid var(--navy-line); width: 100%; }
.feature .intro { display: grid; gap: 14px; justify-items: start; }
.feature h2 { font-size: var(--step-3); }
.dashes { display: grid; gap: 8px; }
.dashes li { position: relative; padding-left: 22px; }
.dashes li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 12px; height: 2px; background: var(--gold); }
.on-navy .dashes li { color: var(--on-navy-soft); }
.tracks { display: grid; gap: 14px; }
.track { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.track h3 { font-size: 1.15rem; font-weight: 600; }
.track p { color: var(--muted); font-size: 0.95rem; }
.track audio { width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery figure { display: grid; gap: 8px; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figcaption { font-size: var(--step--1); color: var(--muted); }

/* Service pages: the list of deliverables beside a picture */
.deliver { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.deliver .ticks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.deliver .art img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.hint.after { margin-top: 26px; max-width: 70ch; font-size: 1rem; }
.svc-cards .card h2 { font-size: 1.4rem; font-weight: 600; }
.feature video.tall { max-height: 620px; width: auto; max-width: 100%; justify-self: center; background: #000; }
.motto-block .emblem { width: min(250px, 55vw); height: auto; }
.motto-block p:not(.motto) { max-width: 56ch; }
/* The gold map behind the top of inner pages */
.page-hero::after { content: ""; position: absolute; inset: 0 0 0 auto; width: min(58%, 820px); z-index: -1; opacity: .5;
  background: url("/images/art/map-top.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.page-hero h1 span { color: var(--gold-light); }
@media (max-width: 980px) { .deliver { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .deliver .ticks { grid-template-columns: minmax(0, 1fr); } .page-hero::after { opacity: .28; width: 100%; } }

/* Closing band */
.band { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; isolation: isolate; }
.band .arcs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.band .arcs svg { position: absolute; right: 0; top: 0; height: 100%; width: min(55%, 640px); }
.band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: clamp(48px, 6vw, 80px); }
.band h2 { font-size: var(--step-3); max-width: 22ch; }
.band p { color: var(--on-navy-soft); margin-top: 12px; max-width: 52ch; }

/* About */
.motto-block { text-align: center; display: grid; gap: 18px; justify-items: center; }
.motto-block .motto { font-size: clamp(1.1rem, 0.8rem + 1.6vw, 1.9rem); letter-spacing: 0.2em; color: var(--on-navy); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 22px; }
.form { display: grid; gap: 22px; position: relative; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field label, .field legend { font-weight: 600; font-size: 1rem; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.02rem var(--text); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--gold-deep); }
.field [aria-invalid="true"] { border-color: var(--err); }
.picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 500; }
.pick input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.hint { font-size: var(--step--1); color: var(--muted); }
.error-text { font-size: var(--step--1); color: var(--err); font-weight: 600; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.98rem; font-weight: 400 !important; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--gold-deep); }
.check a { color: var(--link); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 18px; border-radius: 10px; font-size: 1rem; }
.notice a { color: inherit; font-weight: 700; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-err { background: var(--err-bg); color: var(--err); }
.aside { display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.aside h2 { font-size: 1.3rem; font-weight: 600; }
.aside p { color: var(--muted); font-size: 1rem; }
.mail { font-weight: 600; color: var(--link); overflow-wrap: anywhere; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Footer: navy, with the card's line */
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 1px solid var(--navy-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-block: 52px 30px; }
.footer-grid h2 { font: 600 0.74rem/1.3 var(--caps); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; font-size: 1rem; color: var(--on-navy-soft); }
.footer-grid a:hover { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer-brand .motto { color: var(--gold-light); font-size: 0.82rem; }
.footer-brand p:not(.motto) { color: var(--on-navy-soft); font-size: 1rem; max-width: 36ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 26px; border-top: 1px solid var(--navy-line); font-size: var(--step--1); color: var(--on-navy-soft); }
.footer-base a { color: inherit; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-links > a.mobile-only { display: none; }

/* Tablet */
@media (max-width: 1060px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-row li a { border-left: 0 !important; border-top: 1px solid var(--navy-line); }
  .nav-links { gap: 16px; }
  .brand { letter-spacing: 0.2em; font-size: 0.88rem; }
}
@media (max-width: 980px) {
  .split, .contact-grid, .feature { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone and small tablet: the menu folds, the hero stacks */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .nav { flex-wrap: wrap; gap: 6px 12px; padding-block: 8px; }
  .nav-links { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 2px 18px; }
  .js .menu-btn { display: inline-flex; }
  .js .nav-end .btn-gold { display: none; }
  .js .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .js .nav-open .nav-links { display: flex; }
  .js .nav-links > a, .js .nav-links .dd > a { padding: 14px 0; border-bottom: 1px solid var(--navy-line); font-size: 1.08rem; width: 100%; }
  .nav-links .dd-menu { display: none !important; }
  .nav-links .chev { display: none; }
  .js .nav-links > a.mobile-only { display: inline-flex; }
}
@container (max-width: 760px) {
  .hero-stage { aspect-ratio: auto; background-image: url("/images/brand/hero-2026-12-phone.webp"); background-color: #f7efe5; background-position: left top; background-size: auto 48cqw; padding-top: 48cqw; }
  .hero-copy { position: static; width: auto; padding: 26px 20px 34px; gap: 14px; }
  .hero-copy h1 { font-size: 2.05rem; }
  .hero-copy .motto { font-size: 0.7rem; }
  .hero-copy .lead { font-size: 1.05rem; }
  .hero-copy .btn { min-height: 50px; font-size: 1.02rem; padding: 0 22px; }
}
@media (max-width: 700px) {
  .g2, .g3, .g4, .steps, .ticks, .gallery, .track { grid-template-columns: minmax(0, 1fr); }
  .svc-row ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-row a { padding: 22px 10px; font-size: 1rem; }
  .principles li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { font-size: 0.8rem; letter-spacing: 0.16em; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
