/* ==========================================================================
   Hamerkop Systems — design system v3
   Warm editorial palette, Clash Grotesk display + General Sans text,
   24px cards, pill buttons with arrow pucks, light and dark themes.
   ========================================================================== */

:root {
  /* Palette: Hamerkop Brand Guidelines v1.1 (Ink, Paper, Surface, Muted, Accent) */
  --brand-orange: #ea580c;
  --canvas: #fafafa;
  --paper: #ffffff;
  --sand: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #0a0a0a;
  --ink-2: #27272a;
  --muted: #71717a;
  --faint: #a1a1aa;
  --accent: #ea580c;
  --accent-deep: #c2410c;
  --accent-soft: #ffedd5;
  --band: #0a0a0a;
  --band-2: #18181b;
  --on-band: #ffffff;
  --on-band-muted: #a1a1aa;
  --danger: #ef4444;
  --success-bg: #ecfdf5;
  --success: #059669;
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.1);
  --shadow-soft: 0 10px 30px rgba(10, 10, 10, 0.07);

  /* Arrow glyphs for button pucks (light arrow / dark arrow) */
  --arrow-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --arrow-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --puck-ghost: var(--ink);
  --puck-ghost-arrow: var(--arrow-light);
  /* Text and arrow puck on accent-coloured surfaces */
  --on-accent: #0a0a0a;
  --accent-puck: #0a0a0a;
  --accent-puck-arrow: var(--arrow-light);
  --button-radius: 999px;
  --heading-weight: 400;

  /* Type */
  --font-display: "Clash Grotesk", "General Sans", system-ui, sans-serif;
  --font-body: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape and layout */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --page: min(1320px, calc(100vw - 48px));
  --nav-space: 96px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #0a0a0a;
  --paper: #18181b;
  --sand: #27272a;
  --line: #27272a;
  --line-strong: #3f3f46;
  --ink: #fafafa;
  --ink-2: #e4e4e7;
  --muted: #a1a1aa;
  --faint: #71717a;
  --accent-soft: #3a1a08;
  --band: #000000;
  --band-2: #18181b;
  --success-bg: #052e22;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
  --puck-ghost: var(--ink);
  --puck-ghost-arrow: var(--arrow-dark);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Brand rule: orange pairs with neutral surfaces, never as text colour. Highlights use a marker. */
h1 em,
h2 em {
  font-style: normal;
  color: inherit;
  background: linear-gradient(transparent 68%, var(--brand-orange) 68%, var(--brand-orange) 90%, transparent 90%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

p {
  text-wrap: pretty;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

main {
  width: var(--page);
  margin: 0 auto;
  padding-top: var(--nav-space);
}

.section-pad,
.section-grid {
  padding-top: clamp(80px, 9vw, 128px);
}

.page-band {
  margin-top: 40px;
}

.eyebrow,
.service-kicker,
.footer-title,
.journal-meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 20px 0 0;
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.lede + .lede {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 22px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.button::after {
  content: "";
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--band) var(--arrow-light) center / 18px no-repeat;
  transition: transform 220ms ease;
}

.button:hover::after {
  transform: translateX(3px);
}

.button-dark,
.hero-cta {
  background: var(--accent);
  color: var(--on-accent);
}

.button-dark::after {
  background-color: var(--accent-puck);
  background-image: var(--accent-puck-arrow);
}

.button-dark:hover {
  filter: brightness(1.06);
}

.button-ink {
  background: var(--ink);
  color: var(--canvas);
}

.button-ink::after {
  background-color: var(--accent);
  background-image: var(--arrow-dark);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button-ghost::after {
  background-color: var(--puck-ghost);
  background-image: var(--puck-ghost-arrow);
}

.button-ghost:hover {
  border-color: var(--ink);
}

.button-on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--on-band);
}

.button-on-dark::after {
  background-color: var(--on-band);
  background-image: var(--arrow-dark);
}

.button-on-dark:hover {
  border-color: var(--on-band);
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-weight: 500;
  color: var(--ink);
}

.card-link svg {
  box-sizing: content-box;
  padding: 7px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 200ms ease;
}

a:hover > .card-link svg,
a.card-link:hover svg {
  transform: translateX(3px);
}

.round-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.round-button:hover {
  border-color: var(--ink);
}

.round-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.round-button[data-scroll="-1"] svg {
  transform: rotate(180deg);
}

/* ------------------------------------------------------------------ chips and small labels */

.chip,
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip::before,
.page-hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.page-hero .eyebrow a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
}

.photo-chip,
.premium-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
}

.premium-badge {
  background: var(--accent);
  color: var(--on-accent);
}

.soon-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 500;
}

.pill-list,
.check-list,
.row-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

.check-list li,
.row-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.check-list li:last-child,
.row-list li:last-child {
  border-bottom: 0;
}

.check-list li::before,
.row-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ navigation */

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 500;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* Official Hamerkop lockup (bird mark + wordmark). The light-surface and reverse
   SVGs are swapped by context; the mark itself is never recoloured. */
.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

.logo-on-dark,
.site-footer .logo-on-light,
:root[data-theme="dark"] .topbar .logo-on-light {
  display: none;
}

.site-footer .logo-on-dark,
:root[data-theme="dark"] .topbar .logo-on-dark {
  display: block;
}

.site-footer .brand-logo {
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.95rem;
  color: var(--ink-2);
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active {
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta {
  min-height: 44px;
  padding: 4px 4px 4px 18px;
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--on-accent);
}

.nav-cta::after {
  width: 36px;
  height: 36px;
  background-color: var(--accent-puck);
  background-image: var(--accent-puck-arrow);
  background-size: 16px;
}

.nav-cta-mobile {
  display: none;
}

.theme-toggle,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
  gap: 5px;
  align-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Dropdowns */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.nav-sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-sub-toggle:hover {
  background: var(--sand);
  color: var(--ink);
}

.nav-sub-toggle svg {
  transition: transform 180ms ease;
}

.nav-item.is-open .nav-sub-toggle svg {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -16px;
  z-index: 60;
  display: none;
  min-width: 270px;
  padding: 8px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  height: 22px;
}

.nav-menu a {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: var(--sand);
  color: var(--ink);
}

.nav-menu .nav-menu-all {
  font-weight: 500;
  color: var(--ink);
}

.nav-item.is-open .nav-menu {
  display: grid;
}

@media (min-width: 1101px) and (hover: hover) {
  .nav-item:hover .nav-menu {
    display: grid;
  }
}

/* ------------------------------------------------------------------ homepage hero */

.hero-full {
  position: relative;
  isolation: isolate;
  width: 100vw;
  min-height: clamp(660px, 100vh, 960px);
  margin-top: calc(-1 * var(--nav-space));
  margin-left: calc(50% - 50vw);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 24s ease-in-out infinite;
}

.hero-bg:nth-child(2) {
  animation-delay: -16s;
}

.hero-bg:nth-child(3) {
  animation-delay: -8s;
}

@keyframes hero-fade {
  0% { opacity: 0; transform: scale(1.06); }
  5% { opacity: 1; }
  33% { opacity: 1; }
  38% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--canvas) 0%, color-mix(in srgb, var(--canvas) 88%, transparent) 30%, color-mix(in srgb, var(--canvas) 30%, transparent) 62%, transparent 82%),
    linear-gradient(90deg, color-mix(in srgb, var(--canvas) 55%, transparent), transparent 60%);
}

.hero-full-inner {
  width: var(--page);
  margin: 0 auto;
  padding: 160px 0 56px;
}

.hero-full h1 {
  margin-top: 22px;
  max-width: 13ch;
  font-size: clamp(3rem, 7.6vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 28px;
}

.award-card {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: 300px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 220ms ease;
}

.award-card:hover {
  transform: translateY(-4px);
}

.award-figure {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.award-text {
  color: var(--muted);
  font-size: 0.95rem;
}

.award-card .card-link {
  margin-top: 8px;
}

/* ------------------------------------------------------------------ inner page hero */

.page-hero {
  padding-top: clamp(40px, 6vw, 80px);
}

.page-hero h1 {
  margin-top: 22px;
  max-width: 18ch;
}

.page-hero .lede {
  max-width: 64ch;
}

.product-name {
  margin: 20px 0 0;
  font-weight: 500;
  color: var(--muted);
}

.product-name + h1 {
  margin-top: 8px;
}

.product-hero-premium .premium-badge {
  margin-top: 18px;
}

/* ------------------------------------------------------------------ section headings */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head .section-heading {
  margin-bottom: 0;
}

.section-head > .button {
  flex-shrink: 0;
  white-space: nowrap;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2 {
  max-width: 20ch;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.section-heading .tagline {
  color: var(--ink);
  font-weight: 500;
}

.section-aside {
  max-width: 38ch;
  margin: 0;
  color: var(--on-band-muted);
}

.section-more {
  margin-top: 32px;
}

.sub-heading {
  margin: 32px 0 16px;
  color: var(--muted);
}

.sub-heading a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
}

/* ------------------------------------------------------------------ cards */

.feature-grid,
.detail-grid,
.pillar-grid,
.journal-grid,
.solution-grid,
.mini-grid {
  display: grid;
  gap: 20px;
}

.feature-grid,
.journal-grid,
.solution-grid,
.mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pillar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.detail-card,
.mini-card,
.team-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

a.feature-card:hover,
a.mini-card:hover,
a.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.feature-card h2,
.detail-card h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.02em;
}

.feature-card h3,
.detail-card h3 {
  font-size: 1.45rem;
}

.feature-card p,
.detail-card p,
.mini-card p,
.team-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-card ul,
.detail-card ul {
  margin-top: 14px;
  padding-left: 18px;
  color: var(--muted);
}

.feature-card .service-kicker,
.detail-card .service-kicker {
  margin: 0 0 10px;
}

.detail-card .service-kicker:not(:first-child) {
  margin-top: 26px;
}

.service-visual,
.industry-photo {
  aspect-ratio: 16 / 10;
  margin: -12px -12px 22px;
  border-radius: 18px;
  overflow: hidden;
}

.service-visual img,
.industry-photo img,
.story-media img,
.premium-media img,
.journal-media img,
.trio-media img,
.steps-media img,
.feature-split-media img,
.showcase-media img,
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

a.feature-card:hover .service-visual img,
a.team-card:hover .industry-photo img,
.journal-card:hover .journal-media img,
.feature-premium:hover .premium-media img {
  transform: scale(1.05);
}

.feature-flag {
  border-color: var(--accent);
}

.mini-card {
  padding: 24px;
}

.mini-index {
  display: block;
  margin-bottom: 26px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--faint);
}

.mini-grid {
  margin-top: 20px;
}

.compact-grid {
  margin-top: 0;
}

/* Photo cards with overlaid captions */
.photo-card,
.scroll-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--band);
  color: #ffffff;
}

.photo-card {
  aspect-ratio: 4 / 5;
}

.photo-card > img,
.scroll-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.photo-card::after,
.scroll-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.35) 48%, rgba(10, 10, 10, 0) 72%);
}

.photo-card:hover > img,
.scroll-card:hover > img {
  transform: scale(1.06);
}

.photo-card .photo-chip {
  position: absolute;
  top: 16px;
  left: 16px;
}

.photo-card-body,
.scroll-card-body {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.photo-card-kicker {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.photo-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.photo-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 8px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Journal (Insights) cards */
.journal-card {
  display: block;
}

.journal-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--sand);
}

.journal-meta {
  margin-bottom: 10px;
}

.journal-meta span {
  margin: 0 4px;
}

.journal-card h3 {
  font-size: 1.35rem;
}

.journal-card p:not(.journal-meta) {
  margin: 10px 0 0;
  color: var(--muted);
}

.journal-card:hover h3 {
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------ homepage sections */

.statement {
  margin: 0;
  max-width: 26em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.statement span {
  color: var(--faint);
}

.trio {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1fr;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
}

.trio-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 12px;
}

.trio-copy h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.trio-copy .button {
  align-self: flex-start;
  margin-top: 8px;
}

.pillar-list {
  margin: 0;
}

.pillar-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.pillar-list dt {
  font-weight: 500;
}

.pillar-list dd {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.trio-media {
  margin: 0;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-sheet {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 10px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.spec-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.spec-note {
  margin: auto 0 0;
  padding-top: 22px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}

.feature-split,
.steps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-split-media,
.steps-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-split-media .photo-chip {
  position: absolute;
  top: 18px;
  left: 18px;
}

.feature-split-copy .row-list {
  margin-top: 26px;
}

/* Dark band with the product showcase */
.dark-band {
  margin-top: clamp(80px, 9vw, 128px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--band);
  color: var(--on-band);
}

.dark-band .eyebrow {
  color: var(--on-band-muted);
}

.showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.showcase-media {
  position: sticky;
  top: 110px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--band-2);
}

.showcase-media img {
  transition: opacity 260ms ease;
}

.showcase-media.is-swapping img {
  opacity: 0.2;
}

.showcase-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.showcase-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.42);
  transition: color 220ms ease;
}

.showcase-index {
  font-size: 0.85rem;
}

.showcase-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.showcase-text {
  grid-column: 2;
  max-width: 48ch;
  max-height: 0;
  overflow: hidden;
  color: var(--on-band-muted);
  opacity: 0;
  transition: max-height 320ms ease, opacity 320ms ease, margin 320ms ease;
}

.showcase-row.is-active,
.showcase-row:hover,
.showcase-row:focus-visible {
  color: var(--on-band);
}

.showcase-row.is-active .showcase-text {
  max-height: 6em;
  margin-top: 10px;
  opacity: 1;
}

/* Numbered steps */
.steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps li > span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--faint);
}

.steps h3 {
  font-size: 1.35rem;
}

.steps p {
  margin: 6px 0 0;
  color: var(--muted);
}

/* Industries scroller */
.scroller-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px, 24vw, 330px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.scroller-track::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  aspect-ratio: 3 / 4.2;
  scroll-snap-align: start;
}

.scroll-card-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.scroller-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ------------------------------------------------------------------ Odoo milestone */

.milestone-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 75, 103, 0.35), transparent 45%),
    var(--band);
  color: var(--on-band);
}

.milestone-panel:not(:has(.milestone-gallery)) {
  grid-template-columns: 1fr;
}

.milestone-hero {
  padding-top: 24px;
}

.milestone-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.milestone-badge-row .eyebrow {
  color: var(--on-band-muted);
}

.milestone-badge-row .eyebrow a:hover {
  color: var(--on-band);
}

.milestone-copy h1,
.milestone-copy h2 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.milestone-copy em {
  color: inherit;
}

.milestone-copy > p {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--on-band-muted);
}

.milestone-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.milestone-stats div {
  padding: 20px 20px 0 0;
}

.milestone-stats div + div {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.milestone-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.milestone-stats span {
  font-size: 0.9rem;
  color: var(--on-band-muted);
}

.milestone-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.milestone-gallery .gallery-item:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--band-2);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lightbox {
  width: min(1100px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #0a0a0a;
  color: #ffffff;
}

.lightbox::backdrop {
  background: rgba(10, 10, 10, 0.86);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 14px 20px 18px;
  color: #a1a1aa;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Odoo partner mark: official badge, or the Odoo logo with a Silver Partner label */
.odoo-mark {
  flex: 0 0 auto;
}

img.odoo-mark {
  width: 84px;
  height: 84px;
}

span.odoo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #ffffff;
}

span.odoo-mark img {
  width: auto;
  height: 20px;
}

span.odoo-mark span {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef0f3, #b9bec7);
  color: #3d4149;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.odoo-note {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: border-color 200ms ease, transform 200ms ease;
}

.odoo-note:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.odoo-note > span:not(.odoo-mark):not(.card-link) {
  flex: 1;
  color: var(--muted);
}

.odoo-note strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.odoo-note .card-link {
  margin: 0;
  white-space: nowrap;
}

/* Timeline on the partnership page */
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline-step .step-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--faint);
}

.timeline-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.timeline-date {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------------ split panels and dark panels */

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.panel-dark {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--band);
  color: var(--on-band);
}

.panel-dark .eyebrow,
.panel-dark .service-kicker {
  color: var(--on-band-muted);
}

.panel-dark .service-kicker {
  margin-top: 28px;
}

.panel-dark h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.panel-dark p,
.panel-dark li {
  color: var(--on-band-muted);
}

.panel-dark ul {
  padding-left: 18px;
}

.story-media {
  margin: 0;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Process (services delivery method) */
.process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.step-index {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--faint);
}

.step h3 {
  font-size: 1.4rem;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Products page flagship card */
.feature-premium {
  padding: 18px;
  border-color: var(--accent);
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: center;
  margin-top: 14px;
}

.premium-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.premium-body h2 {
  margin-top: 10px;
}

.feature-premium > .premium-badge {
  margin: 4px 0 0 4px;
}

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.partner-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.partner-card img {
  width: auto;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
}

.partner-card-featured {
  border-color: var(--accent);
}

.partner-tag {
  position: absolute;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef0f3, #b9bec7);
  color: #3d4149;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ call to action */

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-top: clamp(80px, 9vw, 128px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 100%, rgba(234, 88, 12, 0.32), transparent 45%),
    var(--band);
  color: var(--on-band);
}

.cta .eyebrow {
  color: var(--on-band-muted);
}

.cta-content h2 {
  margin-top: 16px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.cta-side {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.cta-side p {
  margin: 0;
  color: var(--on-band-muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------------ forms */

.consult {
  align-items: start;
}

.form-card h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.consult-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--danger);
}

:root[data-theme="dark"] .field-error {
  color: #ff8a7e;
}

.field-error:empty {
  display: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-context {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-left: 3px solid var(--brand-orange);
  color: var(--ink) !important;
  font-weight: 500;
}

.form-success {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--success-bg);
}

.form-success:focus {
  outline: none;
}

.contact-list {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list a,
.contact-list span {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-band);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--on-band);
}

/* ------------------------------------------------------------------ articles and legal pages */

.article-meta {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-image {
  margin: 40px 0 0;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.article-body,
.legal-body {
  max-width: 720px;
  margin-top: 48px;
}

.article-body p,
.article-body li,
.legal-body p,
.legal-body li {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.article-body h2,
.legal-body h2 {
  margin: 44px 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.article-body a,
.legal-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand-orange);
  text-underline-offset: 3px;
}

.pull-quote {
  margin: 40px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.empty-state h2 {
  max-width: 22ch;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  position: relative;
  margin-top: clamp(80px, 9vw, 128px);
  padding-top: clamp(56px, 7vw, 88px);
  overflow: hidden;
  background: var(--band);
  color: var(--on-band);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand > p {
  margin: 0;
  max-width: 40ch;
  color: var(--on-band-muted);
}

.footer-title {
  margin-bottom: 16px;
  color: var(--on-band-muted);
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.86);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--on-band);
}

.footer-cert {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.footer-cert > p {
  margin: 0;
  max-width: 44ch;
  font-size: 0.85rem;
  color: var(--on-band-muted);
}

.cert-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cert-logos > img {
  width: auto;
  height: 48px;
  padding: 7px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.cert-logos a {
  display: inline-flex;
}

.cert-logos span.odoo-mark {
  height: 48px;
  border-radius: 12px;
}

.cert-logos img.odoo-mark {
  height: 48px;
  width: auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
  color: var(--on-band-muted);
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-wordmark {
  margin: 0 0 -0.2em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(4rem, 17vw, 17rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
}

/* ------------------------------------------------------------------ motion and focus */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

main:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .nav-shell {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > .nav-link,
  .nav-item > .nav-link {
    padding: 10px 8px;
    font-size: 1.05rem;
  }

  .nav-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-sub-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-menu {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin: 2px 0 6px;
    border: 0;
    background: var(--sand);
    box-shadow: none;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-cta-mobile {
    display: inline-flex;
    justify-content: space-between;
    margin-top: 10px;
    background: var(--accent);
    color: var(--on-accent);
  }

  .nav-cta-mobile::after {
    background-color: var(--accent-puck);
    background-image: var(--accent-puck-arrow);
  }

  .trio {
    grid-template-columns: 1fr 1fr;
  }

  .trio-copy {
    grid-column: 1 / -1;
  }

  .feature-grid,
  .journal-grid,
  .solution-grid,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Grids with exactly three cards stay in one row instead of leaving an orphan */
  .feature-grid:has(> :nth-child(3):last-child),
  .journal-grid:has(> :nth-child(3):last-child),
  .solution-grid,
  .mini-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .feature-grid:has(> :nth-child(3):last-child),
  .journal-grid:has(> :nth-child(3):last-child),
  .feature-grid,
  .journal-grid,
  .solution-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .photo-card {
    aspect-ratio: 16 / 12;
  }
}

@media (max-width: 900px) {
  .hero-foot,
  .feature-split,
  .steps-split,
  .showcase,
  .milestone-panel,
  .split-panel,
  .process,
  .premium-grid,
  .cta,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .award-card {
    width: 100%;
    max-width: 360px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .showcase-media {
    position: relative;
    top: 0;
    aspect-ratio: 16 / 10;
  }

  .feature-split-media,
  .steps-media {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100vw - 32px);
    --nav-space: 84px;
  }

  .topbar {
    top: 10px;
    padding: 0 10px;
  }

  .brand-logo {
    height: 30px;
  }

  .hero-full {
    min-height: 0;
  }

  .hero-full-inner {
    padding-top: 220px;
  }

  .hero-full h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  .hero-full::before {
    background: linear-gradient(0deg, var(--canvas) 0%, color-mix(in srgb, var(--canvas) 92%, transparent) 55%, color-mix(in srgb, var(--canvas) 30%, transparent) 85%, transparent 100%);
  }

  .trio,
  .feature-grid,
  .journal-grid,
  .solution-grid,
  .mini-grid,
  .pillar-grid,
  .process-list,
  .form-grid,
  .photo-grid,
  .milestone-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .milestone-stats div,
  .milestone-stats div + div {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trio-media {
    min-height: 300px;
  }


  .steps li,
  .timeline-step {
    grid-template-columns: 52px 1fr;
  }

  .odoo-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .dark-band,
  .cta,
  .milestone-panel {
    padding: 26px;
    border-radius: var(--radius-lg);
  }

  .feature-card,
  .detail-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-bg {
    animation: none;
  }

  .hero-bg:first-child {
    opacity: 1;
  }
}

/* Dark theme: dark panels sit on a dark canvas, so give them an edge */
:root[data-theme="dark"] .panel-dark,
:root[data-theme="dark"] .dark-band,
:root[data-theme="dark"] .cta,
:root[data-theme="dark"] .milestone-panel,
:root[data-theme="dark"] .site-footer {
  border: 1px solid var(--line);
}

/* Design-direction preview label: compact, bottom-right, dismissible */
.design-badge {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.9);
  color: #fff;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.design-badge a span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.65);
}

.design-badge a:hover span {
  color: #fff;
}

.design-badge-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Reading progress on articles */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 3px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* Clear keyboard focus on cards and tiles */
a.feature-card:focus-visible,
a.journal-card:focus-visible,
a.photo-card:focus-visible,
a.scroll-card:focus-visible,
a.portrait-card:focus-visible,
a.sv-tile:focus-visible,
a.glass-case:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid var(--brand-orange);
  outline-offset: 4px;
}

/* Collapsed comparison panel: hidden from assistive technology until opened */
.slide-panel:not(.is-open) .slide-body {
  visibility: hidden;
}

/* ==========================================================================
   Motion and shared components used by the design directions
   ========================================================================== */

/* Blur-in words (activated by main.js; static without JS or with reduced motion) */
.motion [data-anim="blur-in"] .w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(0.3em);
  transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 900ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.motion [data-anim="blur-in"].is-in .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.motion [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms ease;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.motion [data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

[data-scrub] .w,
[data-scrub] .c {
  transition: opacity 120ms linear, filter 120ms linear;
}

[data-scrub="blur"] .w {
  display: inline-block;
}

/* Hero image zoom on load */
.motion .hero-zoom {
  animation: hero-zoom 1800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.18);
    filter: blur(6px);
  }
  to {
    transform: scale(1);
    filter: none;
  }
}

/* Infinite marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee var(--marquee-speed, 40s) linear infinite;
}

.marquee-reverse .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 500;
  white-space: nowrap;
}

.marquee-item::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange);
}

.logo-strip .marquee-item {
  padding: 18px 28px;
  border-radius: var(--radius-md);
}

.logo-strip .marquee-item::before {
  display: none;
}

.logo-strip img {
  width: auto;
  height: 26px;
}

/* Stacking cards */
.stack {
  display: grid;
  gap: 24px;
}

.stack-card {
  position: sticky;
  top: calc(var(--nav-space) + 8px);
  transform-origin: 50% 0;
  will-change: transform;
}

.stack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000;
  opacity: var(--dim, 0);
  pointer-events: none;
}

/* Before / after comparison */
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.compare-card h3 {
  margin-top: 6px;
}

.compare-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.compare-card li::before {
  content: "\2013";
  flex: 0 0 auto;
  color: var(--faint);
}

.compare-card.is-ours {
  border: 2px solid var(--brand-orange);
}

.compare-card.is-ours li {
  color: var(--ink-2);
}

.compare-card.is-ours li::before {
  content: "\2713";
  color: var(--brand-orange);
  font-weight: 700;
}

/* Bento grid with counters */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}

.bento-media {
  position: relative;
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.bento-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-media figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: var(--heading-weight);
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-figure small {
  font-size: 0.45em;
  letter-spacing: 0;
  color: var(--muted);
}

.stat-card h3 {
  font-size: 1.1rem;
}

.stat-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Tabs */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--sand);
}

.tab-list [role="tab"] {
  flex: 1 1 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.tab-list [role="tab"][aria-selected="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.tab-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  animation: tab-in 500ms ease both;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.tab-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.tab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Interface mock-ups that float over imagery (illustrative only) */
.ui-mock {
  width: min(340px, 86%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.22);
  color: #0a0a0a;
  font-family: var(--font-body);
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ui-mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.ui-mock-head span {
  font-size: 0.7rem;
  font-weight: 500;
  color: #71717a;
}

.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f4f4f5;
}

.ui-row b {
  font-weight: 500;
}

.ui-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.ui-status.is-warn {
  background: #fff7ed;
  color: #c2410c;
}

.ui-status.is-info {
  background: #f4f4f5;
  color: #27272a;
}

.mock-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.mock-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-stage .ui-mock {
  position: relative;
  z-index: 1;
}

/* Announcement chip with a label */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.announce b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #0a0a0a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.announce:hover {
  border-color: var(--line-strong);
}

@media (max-width: 900px) {
  .compare-cards,
  .bento,
  .tab-panel {
    grid-template-columns: 1fr;
  }

  .bento-media {
    grid-row: auto;
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stack-card {
    position: relative;
    top: 0;
  }
}

/* Inside staggered groups the group handles the entrance, not each card */
.motion [data-stagger] > .reveal {
  transform: translateY(24px);
}

.motion [data-stagger].is-in > .reveal {
  opacity: 1;
  transform: none;
}

.marquee-band {
  display: grid;
  gap: 14px;
}

/* Partner logo strip (Editorial landing page) */
.partners-strip .logo-strip .marquee-item {
  padding: 22px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.partners-strip .logo-strip img {
  height: 30px;
}

/* Performance: looping animations pause while off-screen (class set by main.js) */
.marquee.is-paused .marquee-track,
.is-paused .hero-bg,
.is-paused .nx-cta-bg,
.is-paused .ui-mock {
  animation-play-state: paused;
}
