/* CtrlCode site styles. One design, two themes: dark is the default, light is set with
   data-theme="light" on <html> (see the inline script in each page head and js/site.js). */

:root {
  color-scheme: dark;
  --accent: #ff6b00;
  --accent-text: #ff7a1a;
  --on-accent: #14161a;
  --bg: #17191d;
  --bg-soft: #1d2025;
  --surface: #22252b;
  --ink: #ffffff;
  --text: #c5c9d0;
  --muted: #8a909a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --logo-opacity: 0.55;
  --wrap: 1240px;
  --header-h: 4.5rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --accent-text: #c2410c;
  --bg: #f6f4ef;
  --bg-soft: #eeece6;
  --surface: #ffffff;
  --ink: #14161a;
  --text: #41464e;
  --muted: #6c727c;
  --line: rgba(20, 22, 26, 0.12);
  --line-strong: rgba(20, 22, 26, 0.26);
  --shadow: 0 20px 50px rgba(20, 22, 26, 0.14);
  --logo-opacity: 0.6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 107, 0, 0.3);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  color: var(--ink);
  font-family: "Righteous", "Arial Black", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  transition: color 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--accent-text);
}

.nav-sep {
  width: 1px;
  height: 1rem;
  background: var(--line-strong);
}

.site-nav .nav-secondary {
  font-size: 0.64rem;
  opacity: 0.85;
}

.site-nav .lang-link {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

/* Reserve space in the header until the click handler is attached. */
.theme-toggle:not([data-theme-ready]) {
  visibility: hidden;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* The icon shows the theme you switch to: a sun on dark, a moon on light. */
.theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.menu {
  position: relative;
}

.menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(20rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-panel a {
  display: block;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-panel a:last-child {
  border-bottom: 0;
}

.menu-panel a[aria-current="page"] {
  color: var(--accent-text);
}

.menu-panel a.menu-secondary {
  background: var(--bg-soft);
  color: var(--muted);
}

/* ---------------------------------------------------------------------------------------
   Shared pieces
   --------------------------------------------------------------------------------------- */
.section-kicker {
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section-kicker--muted {
  color: var(--muted);
}

.section-title,
.cta-panel h2 {
  margin-top: 0.9rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.section-intro {
  margin-top: 1.2rem;
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.7;
}

.section-head {
  max-width: 46rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.content-section {
  padding: 5.5rem 0;
}

.content-section--soft {
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
}

.content-section--soft + .content-section--soft {
  border-top: 0;
}

/* Quiet text link with an arrow: used for the hero actions and for "more about" links. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0 0.4rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 200ms ease;
}

.arrow-link::after {
  color: var(--accent-text);
  content: "→";
  transition: transform 200ms ease;
}

.arrow-link:hover,
.arrow-link:focus-visible {
  border-bottom-color: var(--accent);
}

.arrow-link:hover::after,
.arrow-link:focus-visible::after {
  transform: translateX(4px);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  margin-top: 1.6rem;
  padding: 0 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.secondary-button {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  color: var(--ink);
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.7rem;
  height: 1px;
  background: var(--accent);
  content: "";
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.tag-list span {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------------------
   Hero (homepage) and page hero (other pages)
   --------------------------------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: #111317 url("/img/hero-abstract-v1.webp") center / cover no-repeat;
  filter: saturate(0.5) contrast(1.1) brightness(0.62);
}

.hero::after,
.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 25, 29, 0.5), rgba(23, 25, 29, 0.84) 62%, var(--bg));
  content: "";
}

.page-hero::after {
  background: linear-gradient(90deg, rgba(23, 25, 29, 0.92), rgba(23, 25, 29, 0.6) 60%, rgba(23, 25, 29, 0.82)),
    linear-gradient(180deg, transparent 40%, var(--bg));
}

/* Light theme: no photo, a soft orange glow and a faint grid instead. */
[data-theme="light"] .hero-media {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 107, 0, 0.16), transparent 42%),
    radial-gradient(circle at 10% 88%, rgba(255, 107, 0, 0.08), transparent 40%),
    var(--bg);
  filter: none;
}

[data-theme="light"] .hero::after,
[data-theme="light"] .page-hero::after {
  background:
    linear-gradient(rgba(20, 22, 26, 0.05) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(20, 22, 26, 0.05) 1px, transparent 1px) 0 0 / 72px 100%;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 78%);
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
}

.hero-main {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-main .wrap {
  max-width: 64rem;
}

.hero-title {
  margin-top: 1.4rem;
  color: var(--ink);
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 40rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.4rem;
  margin-top: 2rem;
}

.hero-logos {
  padding-bottom: 2.6rem;
}

.hero-logos-title {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible,
.breadcrumb span[aria-hidden="true"] {
  color: var(--accent-text);
}

.page-title {
  max-width: 22ch;
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
  hyphens: auto;
}

.page-lead {
  max-width: 44rem;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
}

.page-note {
  max-width: 44rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------------------------------
   Client logos: ticker (homepage hero) and static row (Media & Broadcast)
   --------------------------------------------------------------------------------------- */
.logo-ticker {
  --ticker-gap: 3.25rem;
  --logo-h: 28px;
  display: flex;
  gap: var(--ticker-gap);
  min-width: 0;
  overflow: hidden;
  margin-block: -12px;
  padding-block: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

/* Two identical groups scroll as one seamless loop. */
.logo-ticker-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: var(--ticker-gap);
  min-width: 100%;
  animation: logo-ticker 50s linear infinite;
  will-change: transform;
}

.logo-ticker:hover .logo-ticker-group {
  animation-play-state: paused;
}

.logo-row {
  --logo-h: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.25rem 2.75rem;
  margin-top: 3rem;
}

/* --k balances wide wordmarks against stacked marks; --mark-h is the visible height of the logo. */
.logo-item {
  --k: 1;
  --mark-h: calc(var(--logo-h) * var(--k));
  display: flex;
  flex-shrink: 0;
  align-items: center;
  opacity: var(--logo-opacity);
  transition: opacity 300ms ease;
}

.logo-item:hover {
  opacity: 1;
}

/* Dark theme: every logo as a white mark. Light theme: the same marks in dark ink. */
.logo-item img {
  width: auto;
  max-width: none;
  height: var(--mark-h);
  filter: brightness(0) invert(1);
}

.logo-item--grey img {
  filter: grayscale(1) invert(1) brightness(1.25);
}

.logo-item--on-red img {
  filter: url(#logo-on-red);
}

.logo-item--on-yellow img {
  filter: url(#logo-on-yellow);
}

[data-theme="light"] .logo-item img {
  filter: brightness(0);
}

[data-theme="light"] .logo-item--grey img {
  filter: grayscale(1) contrast(1.15);
}

[data-theme="light"] .logo-item--on-red img {
  filter: url(#logo-on-red-dark);
}

[data-theme="light"] .logo-item--on-yellow img {
  filter: url(#logo-on-yellow-dark);
}

.logo-item--color img {
  transition: filter 180ms ease;
}

.logo-item--color:hover img,
[data-theme="light"] .logo-item--swap-dark:hover img {
  filter: none;
}

/* Alternate artwork fades in over the layout box of the original mark. */
.logo-item--swap {
  position: relative;
}

.logo-item--swap img {
  transition: opacity 180ms ease;
}

.logo-item--swap-dark img {
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-item img.logo-color {
  filter: none;
  opacity: 0;
  pointer-events: none;
}

.logo-item > img.logo-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-theme="light"] .logo-color--dark {
  display: none;
}

.logo-item--swap:not(.logo-item--swap-dark):hover img:not(.logo-color),
:root:not([data-theme="light"]) .logo-item--swap-dark:hover img:not(.logo-color) {
  opacity: 0;
}

.logo-item--swap:hover img.logo-color {
  opacity: 1;
}

/* Logos whose own colours need a light ground (dark blue wordmarks): on hover they show their
   colours, in the dark theme on a soft light backing that fades in behind the mark. */
.logo-item--backed {
  position: relative;
  isolation: isolate;
}

.logo-item--backed img {
  transition: filter 180ms ease;
}

.logo-item--backed::before {
  position: absolute;
  z-index: -1;
  inset: -9px -14px;
  border-radius: 0.6rem;
  background: #f6f4ef;
  box-shadow: 0 0 6px rgba(246, 244, 239, 0.3);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.logo-item--backed:hover img,
[data-theme="light"] .logo-item--backed:hover img {
  filter: none;
}

:root:not([data-theme="light"]) .logo-item--backed:hover::before {
  opacity: 1;
}

/* Logo files with built-in padding: show only the part of the image that holds the mark. */
.logo-crop {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  width: calc(var(--mark-h) * var(--cr));
  height: var(--mark-h);
}

.logo-crop img {
  position: absolute;
  top: calc(-100% * var(--y0) / var(--fy));
  left: calc(-100% * var(--x0) / var(--fx));
  height: calc(100% / var(--fy));
}

@keyframes logo-ticker {
  to {
    transform: translate3d(calc(-100% - var(--ticker-gap)), 0, 0);
  }
}

/* ---------------------------------------------------------------------------------------
   Homepage sections
   --------------------------------------------------------------------------------------- */
.pillar-grid,
.band-grid,
.detail-grid,
.product-grid,
.card-row,
.principles {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.band-grid {
  margin-top: 0;
}

.pillar-card,
.detail-item,
.service-card,
.product-panel {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: radial-gradient(circle at 100% 0%, rgba(255, 107, 0, 0.08), transparent 44%), var(--surface);
}

.pillar-number {
  color: var(--accent-text);
  font-family: "Righteous", sans-serif;
  font-size: 1rem;
}

.pillar-card h3 {
  margin-top: 1rem;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pillar-card p {
  margin-top: 0.8rem;
}

.pillar-card .check-list {
  margin: 1.3rem 0 1.8rem;
}

.pillar-card .arrow-link {
  align-self: flex-start;
  margin-top: auto;
}

.principles {
  gap: 2rem;
}

.principle {
  padding-top: 1.3rem;
  border-top: 2px solid var(--accent);
}

.principle b {
  color: var(--muted);
  font-family: "Righteous", sans-serif;
  font-weight: 400;
}

.principle h3 {
  margin-top: 0.5rem;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.principle p {
  margin-top: 0.6rem;
}

.kite-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.kite-tagline {
  margin-top: 1.1rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.kite-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.8rem;
  margin-top: 1.8rem;
}

/* The Kite Method graphic keeps its own dark panel in both themes. */
.kite-flow {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: radial-gradient(ellipse at 40% 50%, rgba(255, 107, 0, 0.07), transparent 65%), #1a1c20;
}

.kite-flow svg {
  width: 100%;
  height: auto;
}

.band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.band h3 {
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.band .arrow-link {
  margin-top: auto;
}

/* ---------------------------------------------------------------------------------------
   Service and other pages
   --------------------------------------------------------------------------------------- */
.split,
.two-col {
  display: grid;
  gap: 2rem 4rem;
}

.split .section-title,
.two-col .section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.split .section-intro {
  margin-top: 0;
}

.split .check-list {
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.list-label {
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.split .list-label + .check-list {
  margin-top: 0.9rem;
}

.card-row + .page-note {
  margin-top: 1.5rem;
}

.split .page-note {
  margin-top: 1.5rem;
}

.two-col .section-intro {
  max-width: 26rem;
}

/* Two plain sections in a row share one block of white space instead of two. */
.content-section:not(.content-section--soft) + .content-section:not(.content-section--soft) {
  padding-top: 0;
}

.detail-item {
  padding: 1.6rem;
}

.detail-item h3,
.service-card h3,
.process-step h3 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.detail-item p,
.service-card p,
.process-step p {
  margin-top: 0.7rem;
}

.process-step {
  position: relative;
  padding: 1.5rem 0 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: 1px solid var(--line);
}

.process-step strong {
  position: absolute;
  top: 1.55rem;
  left: 0;
  color: var(--accent-text);
  font-family: "Righteous", sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

.card-row {
  gap: 1rem;
}

.service-card {
  padding: 1.5rem;
}

.card-row .service-card h3 {
  font-size: 1.1rem;
}

.link-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.link-panel--accent {
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  background: radial-gradient(circle at 0% 0%, rgba(255, 107, 0, 0.09), transparent 46%);
}

.link-panel > div {
  flex: 1 1 28rem;
}

.link-panel h2 {
  margin-top: 0.6rem;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.link-panel p:not(.section-kicker) {
  max-width: 46rem;
  margin-top: 0.6rem;
}

.link-panel .primary-button,
.link-panel .secondary-button {
  margin-top: 0;
}

.link-panel + .link-panel,
.link-panel + .cta-panel,
.band-grid + .cta-panel {
  margin-top: 1.25rem;
}

.cta-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: radial-gradient(circle at 92% 10%, rgba(255, 107, 0, 0.18), transparent 38%), var(--surface);
}

.cta-panel p:not(.section-kicker) {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.product-panel {
  overflow: hidden;
}

.product-panel-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111317;
}

.product-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-panel-copy {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.product-panel-copy .tag-list {
  margin: 0 0 1.2rem;
}

.product-panel-copy h3 {
  color: var(--ink);
  font-family: "Righteous", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
}

.product-panel-copy p {
  margin-top: 0.9rem;
}

/* ---------------------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------------------- */
.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-tagline {
  max-width: 22rem;
  margin-top: 1rem;
  color: var(--muted);
}

.site-footer h2 {
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  padding: 0.25rem 0;
}

.footer-grid a:not(.brand):hover,
.footer-grid a:not(.brand):focus-visible {
  color: var(--accent-text);
}

.footer-address {
  margin-top: 0.9rem;
}

.footer-address span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--accent-text);
}

/* ---------------------------------------------------------------------------------------
   Breakpoints
   --------------------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pillar-grid,
  .band-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principles,
  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .kite-layout,
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .two-col .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

@media (min-width: 1024px) {
  .wrap {
    padding: 0 3rem;
  }

  .card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  }
}

@media (min-width: 1200px) {
  .site-nav {
    display: flex;
  }

  .header-tools {
    margin-left: 0;
  }

  .menu {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-main {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-links {
    flex-direction: column;
    align-items: center;
  }

  .content-section {
    padding: 4rem 0;
  }

  .logo-ticker {
    --ticker-gap: 2.25rem;
    --logo-h: 22px;
  }

  .logo-ticker-group {
    animation-duration: 36s;
  }

  .logo-row {
    --logo-h: 26px;
    gap: 1.75rem 2.25rem;
  }

  .link-panel .primary-button,
  .link-panel .secondary-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-ticker {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .logo-ticker-group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1.25rem;
    width: 100%;
    min-width: 0;
    padding: 0 1.5rem;
    animation: none;
  }

  .logo-ticker-group[aria-hidden="true"] {
    display: none;
  }

  .logo-item,
  .logo-item img,
  .logo-item--backed::before,
  .arrow-link,
  .arrow-link::after,
  .primary-button,
  .secondary-button,
  .theme-toggle,
  .site-nav a {
    transition: none;
  }

  .arrow-link:hover::after,
  .arrow-link:focus-visible::after {
    transform: none;
  }
}
