/* ==========================================================================
   Ingenieurbüro Wilfrid-Ngouffo — stylesheet
   Palette, type and rhythm follow the approved home-page mock-up.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f1ea;
  --bg-alt: #e9e7db;
  --surface: #ffffff;
  --ink: #0f201f;
  --ink-2: #465452;
  --ink-3: #66726f;
  --line: #dcd8cc;
  --line-2: #cbc6b8;
  --brand: #0e6b63;
  --brand-600: #0a5852;
  --tint: #d3e6e0;
  --deep: #102a29;
  --deep-2: #0e2b29;
  --on-deep: #f4f1ea;
  --on-deep-2: #a9bab6;
  --line-deep: rgba(244, 241, 234, 0.16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body:has(dialog[open]) {
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--brand);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}
.deep :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--on-deep);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--deep);
  color: var(--on-deep);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- type helpers ---------- */
.eyebrow,
.mono-label,
.mono-tag {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--brand);
  margin-bottom: 18px;
}
.deep .eyebrow {
  color: var(--on-deep-2);
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h2 {
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  line-height: 1.1;
  text-wrap: balance;
}
.deep h2,
.deep h3 {
  color: var(--on-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-600);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  padding: 11px 20px;
  font-size: 15px;
}
.btn:active {
  transform: translateY(1px);
}
.arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow,
.link-btn:hover .arrow,
.contact-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 42, 41, 0.35);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
  margin-right: auto;
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}
.nav ul {
  display: flex;
  gap: 30px;
}
.nav a,
.mobile-nav a:not(.btn) {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}
.nav a.is-active {
  color: var(--brand);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lang a {
  text-decoration: none;
  color: var(--ink-3);
  padding: 4px 1px;
}
.lang a:hover {
  color: var(--ink);
}
.lang a[aria-current] {
  color: var(--ink);
  font-weight: 500;
}
.lang .sep {
  color: var(--line-2);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.menu-toggle svg path {
  transition: transform 0.3s var(--ease);
  transform-origin: center;
  transform-box: fill-box;
}
.menu-toggle[aria-expanded="true"] .l1 {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .l2 {
  transform: translateY(-4px) rotate(-45deg);
}
.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px 0 24px;
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav li a {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--line);
}
.mobile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.h1-line {
  display: block;
  text-wrap: balance;
}
.h1-line:last-child {
  color: var(--brand);
  font-style: italic;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep-2);
  box-shadow: 0 40px 70px -40px rgba(16, 42, 41, 0.55), 0 0 0 1px rgba(16, 42, 41, 0.06);
}
.hero-photo {
  position: relative;
  aspect-ratio: 10 / 11.6;
  background: #111;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

/* ---------- sectors band ---------- */
.sectors {
  border-block: 1px solid var(--line);
}
.sectors-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 26px;
}
.mono-label {
  color: var(--ink-3);
  font-size: 11.5px;
  flex: none;
}
.sectors ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.sectors li {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  color: var(--ink);
  white-space: nowrap;
}
.sectors li + li::before {
  content: "/";
  color: var(--line-2);
  margin-inline: clamp(8px, 1.1vw, 16px);
  font-family: var(--sans);
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head.single {
  grid-template-columns: 1fr;
}
.section-intro {
  color: var(--ink-2);
  max-width: 30em;
  padding-bottom: 6px;
}
.narrow {
  max-width: 21em;
}

/* services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 24px 40px -30px rgba(16, 42, 41, 0.35);
}
.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 26px;
}
.card h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  margin-bottom: 14px;
}
.card p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin-bottom: 22px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.tags li {
  font-size: 13.5px;
  line-height: 1;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  background: var(--bg);
}
.card-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--brand);
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover {
  color: var(--brand-600);
}

/* method */
.deep {
  background: var(--deep);
  color: var(--on-deep);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: clamp(40px, 6vw, 72px);
  counter-reset: s;
}
.step {
  border-top: 1px solid rgba(244, 241, 234, 0.4);
  padding-top: 22px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--on-deep);
}
.step-n {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-deep-2);
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.step p {
  color: var(--on-deep-2);
  font-size: 15.5px;
  line-height: 1.6;
}

/* missions */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.mission {
  display: flex;
  flex-direction: column;
}
.art {
  border-radius: var(--radius);
  aspect-ratio: 420 / 240;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #ece9de;
  background-image: linear-gradient(rgba(16, 42, 41, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 41, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
  margin-bottom: 20px;
  transition: border-color 0.25s;
}
.mission:hover .art {
  border-color: var(--line-2);
}
.art svg {
  width: 100%;
  height: 100%;
}
.a-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.a-fill {
  fill: var(--tint);
}
.a-soft {
  fill: #fbfaf6;
}
.a-solid {
  fill: var(--brand);
  stroke: none;
}
.a-dim {
  fill: none;
  stroke: #8d9a96;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
circle.a-dim[r="2"],
circle.a-dim[r="2.5"] {
  fill: #8d9a96;
  stroke: none;
}
.a-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.a-txt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--brand);
}
.pipe-out {
  fill: none;
  stroke: var(--brand);
  stroke-width: 22;
  stroke-linejoin: round;
}
.pipe-in {
  fill: none;
  stroke: #e3f0ec;
  stroke-width: 18;
  stroke-linejoin: round;
}
.a-fill.a-line,
.a-soft.a-line {
  stroke: var(--brand);
}
.mono-tag {
  color: var(--ink-3);
  font-size: 11.5px;
  margin-bottom: 10px;
}
.mission h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 20px;
  text-wrap: balance;
}
.result {
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}
.result-label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.result strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
  color: var(--brand);
  margin-bottom: 6px;
}
.result p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* commitments */
.band {
  background: var(--bg-alt);
  padding-block: clamp(56px, 7vw, 88px);
}
.commitments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
}
.icon-circle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  margin-bottom: 20px;
}
.icon-circle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.commitments h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.commitments p {
  color: var(--ink-2);
  font-size: 16px;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 70px -45px rgba(16, 42, 41, 0.55);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: 50% 12%;
}
.about-copy h2 {
  margin-bottom: 26px;
  max-width: 17em;
}
.about-copy > p {
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 36em;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 36px;
  border-top: 1px solid var(--line-2);
}
.facts > div {
  padding: 16px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts > div.wide {
  grid-column: 1 / -1;
  padding-right: 0;
}
.facts > div.right {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.fact-line {
  display: block;
}
.fact-line + .fact-line {
  margin-top: 6px;
}
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.facts dd {
  font-size: 15.5px;
  line-height: 1.45;
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 104px);
  align-items: center;
}
.contact h2 {
  max-width: 14em;
  margin-bottom: 22px;
}
.contact-text {
  color: var(--on-deep-2);
  font-size: 1.15rem;
  max-width: 26em;
}
.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 15.5px;
  color: var(--on-deep);
}
.location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--on-deep-2);
}
.pin {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  margin-left: -1px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4fd1a5;
  box-shadow: 0 0 0 0 rgba(79, 209, 165, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(79, 209, 165, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 209, 165, 0);
  }
}
.contact-links {
  display: grid;
  gap: 14px;
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border: 1px solid var(--line-deep);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 17px;
  color: var(--on-deep);
  overflow-wrap: anywhere;
  transition: background 0.25s, border-color 0.25s;
}
.contact-link:hover {
  background: rgba(244, 241, 234, 0.06);
  border-color: rgba(244, 241, 234, 0.4);
}
.contact-link.is-primary {
  background: var(--bg);
  color: var(--deep);
  border-color: var(--bg);
  font-weight: 500;
}
.contact-link.is-primary:hover {
  background: #fff;
}

/* footer */
.site-footer {
  background: var(--deep);
  color: var(--on-deep-2);
  border-top: 1px solid var(--line-deep);
  font-size: 14.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links a {
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--on-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- dialog (service details) ---------- */
.dialog {
  width: min(780px, calc(100vw - 24px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 100px -20px rgba(6, 20, 19, 0.6);
  overflow: hidden;
}
.dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.35s var(--ease);
}
.dialog::backdrop {
  background: rgba(10, 26, 25, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 0.3s;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin-bottom: 10px;
}
.dialog-head .eyebrow {
  margin-bottom: 12px;
}
.dialog-intro {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 40em;
}
.dialog-close {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.dialog-close:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.dialog-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.dialog-body {
  overflow-y: auto;
  padding: 8px 36px 12px;
  overscroll-behavior: contain;
}
.dgroup {
  padding-top: 24px;
}
.dgroup h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}
.dlist li {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 8px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dlist li:last-child {
  border-bottom: 0;
}
.dlist strong {
  font-weight: 500;
  font-size: 16px;
}
.dlist span {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.dialog-foot {
  padding: 18px 36px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* ---------- legal pages ---------- */
.legal {
  padding-block: clamp(48px, 7vw, 96px);
}
.prose {
  max-width: 820px;
}
.prose h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 28px;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 36px 0 10px;
}
.prose p {
  color: var(--ink-2);
  margin-bottom: 12px;
}
.note {
  background: #fff8d6;
  border: 1px solid #ecd97a;
  border-radius: var(--radius);
  padding: 14px 18px;
  color: #4d4310 !important;
  font-size: 15px;
}
mark.todo {
  background: #ffe97a;
  color: #3d3500;
  padding: 0 4px;
  border-radius: 3px;
}

/* ---------- motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.25s, box-shadow 0.35s var(--ease);
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .card.reveal.in:hover {
  transform: translateY(-3px);
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .dialog[open],
  .dialog::backdrop,
  .dot {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav ul {
    gap: 22px;
  }
  .header-actions {
    gap: 16px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }
  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-grid .mission:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
    align-items: start;
  }
  .mission-grid .mission:last-child .art {
    grid-row: span 3;
    margin-bottom: 0;
  }
  .mission-grid .mission:last-child .result {
    margin-top: 0;
  }
}
@media (max-width: 940px) {
  :root {
    --header-h: 68px;
  }
  .nav,
  .header-actions > .btn,
  .header-actions > .lang {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 560px;
  }
  .about-photo {
    max-width: 440px;
  }
  .commitments {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sectors-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .sectors li {
    white-space: normal;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }
  .sectors ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    width: 100%;
  }
  .sectors li + li::before {
    display: none;
  }
  .sectors li {
    font-size: 1.08rem;
    padding-left: 12px;
    border-left: 2px solid var(--line-2);
    line-height: 1.3;
  }
  .service-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission-grid .mission:last-child {
    display: flex;
    grid-column: auto;
  }
  .mission-grid .mission:last-child .art {
    margin-bottom: 20px;
  }
  .mission-grid .mission:last-child .result {
    margin-top: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .facts > div.right {
    padding-left: 0;
    border-left: 0;
  }
  .dialog-head {
    padding: 22px 20px 18px;
  }
  .dialog-body {
    padding: 4px 20px 8px;
  }
  .dialog-foot {
    padding: 14px 20px 20px;
  }
  .dialog-foot .btn {
    width: 100%;
  }
  .dlist li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 380px) {
  .brand-name {
    font-size: 19px;
  }
  .brand-tag {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
}
