/* Cognara site styles */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  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: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #0b1526;
  --navy-900: #101e35;
  --navy-800: #182a47;
  --navy-700: #24395c;
  --navy-600: #3b5378;
  --navy-300: #9fb0c8;
  --navy-200: #c9d3e3;
  --paper: #faf8f4;
  --paper-2: #f3f0e9;
  --white: #ffffff;
  --ink: #14203a;
  --ink-2: #364259;
  --muted: #5a6478;
  --line: #ddd8cd;
  --line-soft: #e9e5dc;
  --teal: #087573;
  --teal-strong: #065a58;
  --teal-bright: #3cc9c2;
  --teal-tint: #e2f1ef;
  --amber: #e3a341;
  --amber-ink: #7d500c;
  --amber-tint: #fbf0dc;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --success: #1d7a46;

  --font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', ui-serif, Georgia, Cambria, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.2vw, 3.25rem);
  --step-5: clamp(2.75rem, 1.4rem + 4.8vw, 5.75rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 76rem;
  --radius: 10px;
  --radius-sm: 6px;
  --section-pad: clamp(4.5rem, 9vw, 8rem);
  --header-h: 4.25rem;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--teal);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
}
img {
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--teal-strong);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}
main:focus {
  outline: none;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-950);
  --btn-fg: var(--white);
  --btn-border: var(--navy-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover {
  --btn-bg: var(--navy-800);
  --btn-border: var(--navy-800);
  color: var(--btn-fg);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line);
}
.btn--secondary:hover {
  --btn-bg: var(--white);
  --btn-border: var(--ink-2);
  --btn-fg: var(--ink);
}
.btn--small {
  min-height: 2.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}
.btn--large {
  min-height: 3.4rem;
  padding: 0.8rem 1.75rem;
  font-size: 1.0625rem;
}
.btn--danger {
  --btn-bg: var(--danger);
  --btn-border: var(--danger);
}
.btn--danger:hover {
  --btn-bg: #8f1c13;
  --btn-border: #8f1c13;
}

/* On dark surfaces the primary action carries the teal accent. */
.on-dark .btn--primary,
.site-header .btn--primary,
.hero .btn--primary,
.section--contact .btn--primary,
.article-cta .btn--primary {
  --btn-bg: var(--teal-bright);
  --btn-fg: var(--navy-950);
  --btn-border: var(--teal-bright);
}
.on-dark .btn--primary:hover,
.site-header .btn--primary:hover,
.hero .btn--primary:hover,
.section--contact .btn--primary:hover,
.article-cta .btn--primary:hover {
  --btn-bg: #7ddcd6;
  --btn-border: #7ddcd6;
  --btn-fg: var(--navy-950);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.7);
  --btn-fg: var(--white);
}
.on-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.section--approach :focus-visible,
.section--contact :focus-visible,
.site-footer :focus-visible,
.article-cta :focus-visible {
  outline-color: var(--teal-bright);
}
.hero .btn:focus-visible,
.site-header .btn:focus-visible,
.section--contact .btn:focus-visible,
.article-cta .btn:focus-visible {
  box-shadow: 0 0 0 3px var(--navy-950), 0 0 0 5px var(--teal-bright);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-arrow::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.link-arrow:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--white);
}
.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
.wordmark:hover {
  color: var(--white);
}
.wordmark .mark {
  color: var(--white);
  flex: none;
}
.mark__accent {
  fill: var(--teal-bright);
}
.wordmark__text {
  line-height: 1;
  padding-bottom: 0.08em;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav__list a:not(.btn) {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--navy-200);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
  border-radius: var(--radius-sm);
}
.site-nav__list a:not(.btn):hover,
.site-nav__list a[aria-current='page'] {
  color: var(--white);
}
.site-nav__list a[aria-current='page'] {
  box-shadow: inset 0 -2px 0 var(--teal-bright);
  border-radius: 0;
}
.site-nav__cta {
  margin-left: 0.75rem;
}
.site-nav__toggle {
  display: none;
}

@media (max-width: 960px) {
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--white);
    cursor: pointer;
  }
  .site-nav__toggle-bars,
  .site-nav__toggle-bars::before,
  .site-nav__toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s, opacity 0.2s;
  }
  .site-nav__toggle-bars::before,
  .site-nav__toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .site-nav__toggle-bars::before {
    top: -6px;
  }
  .site-nav__toggle-bars::after {
    top: 6px;
  }
  .site-nav__toggle[aria-expanded='true'] .site-nav__toggle-bars {
    background: transparent;
  }
  .site-nav__toggle[aria-expanded='true'] .site-nav__toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }
  .site-nav__toggle[aria-expanded='true'] .site-nav__toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }
  .site-nav__list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--navy-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav__list.is-open {
    display: flex;
  }
  .site-nav__list a:not(.btn) {
    padding: 0.9rem 0.25rem;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav__list a[aria-current='page'] {
    box-shadow: none;
    color: var(--teal-bright);
  }
  .site-nav__cta {
    margin: 1.25rem 0 0;
  }
  .site-nav__cta .btn {
    width: 100%;
    min-height: 3rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(159, 176, 200, 0.16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
}
.hero__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter) clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__title {
  font-size: var(--step-5);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero__title span {
  display: block;
}
.hero__lede {
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  color: var(--navy-200);
  max-width: 36rem;
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__flow {
  margin: 0;
}
.hero__flow-caption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--navy-300);
  text-align: right;
}

.flow {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.flow text {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  fill: var(--navy-200);
  transition: fill 0.4s;
}
.flow .flow__kicker {
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--navy-300);
  letter-spacing: 0.01em;
}
.flow .flow__kicker--sys {
  fill: var(--navy-300);
}
.flow .flow__side {
  font-size: 13.5px;
}
.flow__wires path {
  stroke: var(--navy-600);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  transition: stroke 0.5s;
}
.flow__wires path.is-active {
  stroke: var(--teal-bright);
  stroke-dasharray: none;
  opacity: 0.85;
}
.flow__node rect,
.flow__node circle:not(.flow__human-icon) {
  fill: var(--navy-900);
  stroke: var(--navy-600);
  stroke-width: 1.5;
  transition: stroke 0.4s, fill 0.4s;
}
.flow__node .flow__core {
  fill: var(--navy-600);
  stroke: none;
}
.flow__node .flow__port {
  fill: var(--navy-600);
  stroke: none;
}
.flow__node.is-active rect,
.flow__node.is-active circle:not(.flow__human-icon) {
  stroke: var(--teal-bright);
}
.flow__node.is-active .flow__core,
.flow__node.is-active .flow__port {
  fill: var(--teal-bright);
}
.flow__node.is-active text {
  fill: var(--white);
}
.flow__human rect {
  stroke: color-mix(in srgb, var(--amber) 55%, var(--navy-600));
}
.flow .flow__human-icon {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
}
.flow .flow__side--human {
  fill: #f0cf98;
}
.flow__human.is-active rect {
  stroke: var(--amber);
  fill: #2a2a2e;
}
.flow__human.is-active text {
  fill: #f6dcae;
}
.flow__human.is-waiting rect {
  animation: approval-pulse 1.1s ease-in-out infinite;
}
@keyframes approval-pulse {
  50% {
    stroke-width: 4;
  }
}
.flow__check {
  stroke: var(--navy-600);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}
.flow__outcome.is-active .flow__check {
  stroke: var(--teal-bright);
}
.flow__outcome.is-done rect {
  fill: color-mix(in srgb, var(--teal-bright) 14%, var(--navy-900));
}
.flow__tokens circle {
  fill: var(--teal-bright);
}
.flow__tokens .token-halo {
  fill: var(--teal-bright);
  opacity: 0.25;
}
.flow [data-label] {
  transition: opacity 0.35s, fill 0.4s;
}
.flow.is-swapping [data-label] {
  opacity: 0;
}
[data-label='industry'] {
  transition: opacity 0.35s;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__flow {
    max-width: 34rem;
  }
  .hero__flow-caption {
    text-align: left;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section-pad);
}
.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}
.section-lede {
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
}
.section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Thesis */
.section--thesis {
  border-bottom: 1px solid var(--line);
}
.thesis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.thesis__title {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}
.thesis__body {
  display: grid;
  gap: 1.25rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-2);
  padding-top: 0.5rem;
}
@media (max-width: 860px) {
  .thesis {
    grid-template-columns: 1fr;
  }
}

/* Solutions */
.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: clamp(2.5rem, 5vw, 4rem);
}
.capability {
  border-top: 1px solid var(--ink);
  padding-top: 1.75rem;
  display: grid;
  align-content: start;
  gap: 0.9rem;
}
.capability:first-child {
  border-top-width: 3px;
  border-top-color: var(--teal);
  padding-top: calc(1.75rem - 2px);
}
.capability__icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.capability h3 {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
}
.capability__body {
  font-size: 1.125rem;
  color: var(--ink-2);
}
.capability__example {
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  color: var(--ink-2);
}
.capability__label {
  font-weight: 650;
  color: var(--teal);
  font-size: var(--step--1);
  margin-bottom: 0.3rem;
}
@media (max-width: 760px) {
  .capabilities {
    grid-template-columns: 1fr;
  }
}

/* Industries */
.section--industries {
  background: var(--paper-2);
}
.notice {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.975rem;
  color: var(--ink-2);
}
.notice svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.industry {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.industry:last-child {
  padding-bottom: 0;
}
.industry__head {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.industry__head h3 {
  font-size: var(--step-3);
  letter-spacing: -0.025em;
}
.industry__intro {
  margin-top: 1rem;
  color: var(--ink-2);
}
.industry__emphasis {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.industry__emphasis li {
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-strong);
}
.industry__apps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.app:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.app {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
}
.app h4 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.app p {
  color: var(--ink-2);
  font-size: 0.99rem;
}
.app .app__human {
  margin-top: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--amber-ink);
  font-size: 0.94rem;
}
.app__human svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  fill: var(--amber-tint);
  stroke: var(--amber);
  stroke-width: 1.4;
}
@media (max-width: 1000px) {
  .industry {
    grid-template-columns: 1fr;
  }
  .industry__head {
    position: static;
  }
}
@media (max-width: 640px) {
  .industry__apps {
    grid-template-columns: 1fr;
  }
}

/* Approach */
.section--approach {
  background: var(--navy-950);
  color: var(--white);
}
.section--approach .section-lede {
  color: var(--navy-200);
}
.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.stages::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal-bright), var(--navy-600) 85%);
}
.stage {
  position: relative;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  align-content: start;
  row-gap: 0.75rem;
}
.stage__num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-950);
  border: 1.5px solid var(--teal-bright);
  color: var(--teal-bright);
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}
.stage h3 {
  font-size: var(--step-2);
}
.stage p {
  color: var(--navy-200);
}
.stage .stage__result {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--navy-700);
  font-size: 0.95rem;
  color: var(--navy-200);
}
.stage__result-label {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: 0.2rem;
}
@media (max-width: 900px) {
  .stages {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-left: 3.75rem;
  }
  .stages::before {
    top: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    right: auto;
    width: 1.5px;
    height: auto;
    background: linear-gradient(180deg, var(--teal-bright), var(--navy-600) 85%);
  }
  .stage {
    grid-row: auto;
    grid-template-rows: none;
  }
  .stage__num {
    position: absolute;
    left: -3.75rem;
    top: -0.35rem;
    margin: 0;
  }
}

/* Article cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.card-grid--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
}
.card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .card-grid,
  .card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .card-grid,
  .card-grid--2 {
    grid-template-columns: 1fr;
  }
}
.card {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  position: relative;
}
.card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-950);
}
.card__media img,
.card__media picture,
.card__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card__media img,
.card:hover .card__media svg {
  transform: scale(1.025);
}
.card__title {
  font-size: 1.3125rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s;
}
.card__title a:hover {
  background-size: 100% 1px;
}
.card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card__summary {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.99rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__body .meta {
  margin-bottom: 0.6rem;
}
.card .meta__cat {
  position: relative;
  z-index: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--step--1);
  color: var(--muted);
  row-gap: 0.25rem;
}
.meta__item + .meta__item::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.8em;
  background: var(--line);
  margin: 0 0.65rem;
  vertical-align: -0.05em;
}
.meta__cat {
  font-weight: 650;
  text-decoration: none;
  color: var(--teal);
}

.pattern-cover {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy-950);
}
.pc__lines line {
  stroke: var(--navy-600);
  stroke-width: 1.6;
}
.pc__dots circle {
  fill: var(--navy-200);
}
.pc__dots .pc__accent {
  fill: var(--teal-bright);
}

/* Latest articles */
.section--articles {
  border-top: 1px solid var(--line);
}

/* About */
.section--about {
  background: var(--paper-2);
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}
.about__mission h2 {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}
.mission {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-left: 1.5rem;
  border-left: 3px solid var(--teal);
}
.mission__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--teal);
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}
.about__lede {
  margin-top: 2rem;
  font-size: var(--step-1);
  color: var(--ink-2);
  line-height: 1.6;
}
.principles {
  list-style: none;
  display: grid;
  gap: 0;
  align-content: start;
}
.principles li {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child {
  border-bottom: 1px solid var(--line);
}
.principles h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.4rem;
}
.principles p {
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* Contact */
.section--contact {
  background: var(--navy-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro h2 {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
}
.contact__intro p {
  margin-top: 1.25rem;
  color: var(--navy-200);
  font-size: var(--step-1);
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Forms (shared) */
.field {
  display: grid;
  gap: 0.4rem;
}
.field label,
.label {
  font-weight: 600;
  font-size: 0.95rem;
}
.field__hint {
  font-size: var(--step--1);
  color: var(--muted);
}
.field__error {
  font-size: var(--step--1);
  color: var(--danger);
  font-weight: 600;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
}
.form-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--danger-tint);
  color: #7a1810;
  font-weight: 500;
  border: 1px solid #f3c2bc;
}
.form-alert--info {
  background: var(--teal-tint);
  color: var(--teal-strong);
  border-color: #bfe1dd;
}
.form-alert:focus {
  outline: none;
}

.inquiry {
  display: grid;
  gap: 1.5rem;
}
.inquiry__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.25rem;
}
.inquiry .field:nth-child(3) {
  grid-column: 1 / -1;
}
.field--wide {
  grid-column: 1 / -1;
}
.section--contact .field label {
  color: var(--white);
}
.section--contact .field__hint {
  color: var(--navy-300);
}
.section--contact .field input,
.section--contact .field textarea {
  background: var(--navy-900);
  border-color: var(--navy-700);
  color: var(--white);
}
.section--contact .field input:focus,
.section--contact .field textarea:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-bright) 25%, transparent);
}
.section--contact .field__error {
  color: #ffb4a8;
}
.section--contact .field.has-error input,
.section--contact .field.has-error textarea {
  border-color: #ff8a78;
}
.section--contact .form-alert {
  background: #3a1915;
  color: #ffd2cb;
  border-color: #6b2a22;
}
.inquiry__foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.inquiry__note {
  font-size: var(--step--1);
  color: var(--navy-300);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn.is-loading {
  position: relative;
  color: transparent;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2px solid var(--navy-950);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.inquiry-result {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
}
.inquiry-result:focus {
  outline: none;
}
.inquiry-result__title {
  font-size: var(--step-2);
  font-weight: 650;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.inquiry-result__title::before {
  content: '';
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--teal-bright)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230b1526' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat;
}
.inquiry-result p:not(.inquiry-result__title) {
  color: var(--navy-200);
}
@media (max-width: 620px) {
  .inquiry__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article library ---------- */
.library-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}
.library-hero h1 {
  font-size: var(--step-5);
  letter-spacing: -0.04em;
  line-height: 1;
}
.library-hero .section-lede {
  max-width: 44rem;
}
.library {
  padding-bottom: var(--section-pad);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.filters__search {
  position: relative;
  flex: 1 1 18rem;
  max-width: 24rem;
}
.filters__search svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  pointer-events: none;
}
.filters__search input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 1rem 0.55rem 2.6rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.filters__search input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent);
}
.filters__cats {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 2 1 30rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.94rem;
  background: transparent;
}
.chip:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}
.chip.is-active {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: var(--white);
}
.filters__submit {
  display: none;
}
.no-js .filters__submit {
  display: inline-flex;
}
.tag-cloud {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.tag-cloud__label {
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--muted);
  flex: none;
}
.tag-cloud ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: var(--step--1);
  color: var(--ink-2);
  text-decoration: none;
}
.tag:hover {
  color: var(--ink);
  border-color: var(--line);
}
.tag.is-active {
  background: var(--teal-tint);
  border-color: var(--teal);
  color: var(--teal-strong);
  font-weight: 600;
}
.results-status {
  margin: 0 0 2rem;
  color: var(--muted);
}
.featured {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.featured__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.featured__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card--feature .card__title {
  font-size: var(--step-3);
  letter-spacing: -0.025em;
}
.card--feature .card__summary {
  font-size: 1.0625rem;
}
.featured__grid--1 .card--feature {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 800px) {
  .featured__grid--2,
  .featured__grid--1 .card--feature {
    grid-template-columns: 1fr;
  }
}
.library__subhead {
  font-size: var(--step-2);
  margin-bottom: 1.75rem;
}
.pager {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.pager__count {
  font-size: var(--step--1);
  color: var(--muted);
}
.empty-state {
  padding: 3rem 0;
  max-width: 34rem;
}
.empty-state__title {
  font-size: var(--step-2);
  font-weight: 650;
  margin-bottom: 0.5rem;
}
.empty-state p:not(.empty-state__title) {
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--navy-200);
  border-top: 1px solid var(--navy-800);
}
.site-footer__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 3.5rem var(--gutter) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.site-footer__brand {
  max-width: 24rem;
  display: grid;
  gap: 1rem;
}
.site-footer__brand p {
  font-size: 0.95rem;
}
.site-footer__nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.4rem 3rem;
}
.site-footer__nav a {
  color: var(--navy-200);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-footer__nav a:hover {
  color: var(--white);
}
.site-footer__base {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.25rem var(--gutter) 2rem;
  box-shadow: inset 0 1px 0 var(--navy-800);
  background-clip: content-box;
  font-size: var(--step--1);
  color: var(--navy-300);
}

/* Error pages */
.error-page {
  padding: clamp(5rem, 12vw, 9rem) 0;
}
.error-page h1 {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  max-width: 30rem;
}
.error-page p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--step-1);
}
.error-page__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem !important;
}

/* Toast (shared by copy-link and studio) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--navy-950);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(11, 21, 38, 0.25);
}

@media print {
  .site-header,
  .site-footer,
  .share,
  .article-cta,
  .section--related,
  .toc {
    display: none !important;
  }
  body {
    background: #fff;
  }
}
