/* Teradig | teradig.com
   Palette from the Rwandan flag, as in the Teradig logo: sky blue, sun yellow, hill green. */

/* 1. Tokens */
:root {
  --night: #0B2230;
  --night-line: #234356;
  --hill: #20603D;
  --hill-deep: #184C30;
  --sun: #FAD201;
  --sun-soft: #FFE34D;
  --sky: #00A1DE;
  --sky-ink: #00729E;
  --tera: #7DB8DE;
  --mist: #EEF3F1;
  --ink: #0B2230;
  --muted: #4A6270;
  --muted-light: #A8C0CB;
  --line: #CFDCD8;
  --white: #FFFFFF;

  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
  --focus: var(--sky-ink);
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, canvas { display: block; }
a { color: inherit; transition: color .15s ease; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--sun); color: var(--night); padding: .7rem 1rem; font-weight: 600;
}
.skip:focus { top: 16px; }

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

/* Dark surfaces use the sun for focus rings */
.site-header, .hero, .page-hero, .standards, .faq, .contact, .site-footer { --focus: var(--sun); }

/* 3. Type */

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

/* 4. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75em 1.3em;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.1;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 3px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sun { background: var(--sun); color: var(--night); }
.btn-sun:hover { background: var(--sun-soft); }
.btn-line { border-color: rgba(238, 243, 241, .5); color: var(--mist); background: transparent; }
.btn-line:hover { border-color: var(--mist); background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 44px; padding: .5em 1em; font-size: .9375rem; }

/* 5. Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.brand-mark { width: 36px; height: 34px; flex: none; }
.brand-word { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand-tera { font-weight: 300; color: var(--tera); }
.brand-dig { font-weight: 800; color: var(--sun); }
.brand-trail { width: 30px; height: 13px; margin-left: -6px; margin-top: -6px; flex: none; }

/* 6. Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--mist);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.site-header.is-solid {
  background: rgba(11, 34, 48, .94);
  box-shadow: 0 1px 0 var(--night-line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-solid { background: rgba(11, 34, 48, .82); backdrop-filter: blur(10px); }
}
/* backdrop-filter would trap the fixed mobile menu inside the header box */
body.nav-open .site-header { backdrop-filter: none; background: var(--night); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 8px; }
.header-inner .brand, .nav-toggle, .lang { position: relative; z-index: 2; }

/* Language flags sit in the bar itself, outside the menu, so they stay visible on every screen.
   Small screens show only the other language; wide screens show both, with the current one ringed. */
.lang { display: flex; align-items: center; margin-left: auto; order: 1; }
.lang-flag { display: grid; place-items: center; width: 44px; height: 44px; }
.lang-flag svg {
  width: 27px; height: 18px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(238, 243, 241, .45);
  transition: box-shadow .15s ease, opacity .15s ease;
}
a.lang-flag svg { opacity: .82; }
a.lang-flag:hover svg { opacity: 1; box-shadow: 0 0 0 2px var(--mist); }
.lang-flag.is-current { display: none; }
.lang-flag.is-current svg { box-shadow: 0 0 0 2px var(--sun); }
.nav-toggle { order: 2; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 24px; height: 2px; background: var(--mist);
  transition: transform .2s ease, background-color .2s ease;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -7px; }
.nav-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--night);
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.site-nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s ease; }
.site-nav a:not(.btn) {
  display: block; width: 100%;
  padding: .55rem 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.9rem; line-height: 1.15;
  text-decoration: none;
  border-bottom: 1px solid var(--night-line);
}
.site-nav .btn { margin-top: 28px; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .lang { order: 0; margin-left: 8px; }
  .lang-flag { width: 38px; }
  .lang-flag.is-current { display: grid; }
  .site-nav {
    margin-left: auto;
    position: static; inset: auto;
    flex-direction: row; align-items: center; gap: 28px;
    padding: 0; background: none; overflow: visible;
    visibility: visible; opacity: 1; transition: none;
  }
  .site-nav a:not(.btn) {
    width: auto; padding: .4rem 0; border: 0;
    font-family: var(--font-body); font-weight: 500;
    font-size: .9688rem;
  }
  .site-nav a:not(.btn):hover { color: var(--sun); }
  .site-nav .btn { margin-top: 0; }
}

/* 6b. Services submenu: a list under "Services" in the mobile menu, a dropdown on wide screens */
.nav-group { width: 100%; border-bottom: 1px solid var(--night-line); }
.site-nav .nav-group > a { border-bottom: 0; padding-bottom: .2rem; }
.nav-sub { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-bottom: .5rem; }
.site-nav .nav-sub a {
  display: flex; align-items: center; min-height: 44px; padding: .2rem 0;
  font-family: var(--font-body); font-weight: 500; font-size: .9375rem; line-height: 1.25;
  color: var(--muted-light); border: 0;
}
.site-nav .nav-sub a:hover, .site-nav a[aria-current="page"] { color: var(--sun); }

@media (min-width: 1000px) {
  .nav-group { position: relative; width: auto; border: 0; }
  .site-nav .nav-group > a { display: inline-flex; align-items: center; gap: .45em; padding-bottom: .4rem; }
  .nav-group > a::after {
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .nav-sub {
    position: absolute; top: calc(100% + 14px); left: -20px; z-index: 3;
    display: block; min-width: 248px; padding: 8px 0;
    background: var(--night); border: 1px solid var(--night-line); border-top: 2px solid var(--sun);
    box-shadow: 0 18px 40px rgba(3, 12, 18, .45);
    visibility: hidden; opacity: 0;
    transition: opacity .15s ease, visibility 0s linear .15s;
  }
  /* Invisible bridge so the pointer can travel from the link to the list */
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub { visibility: visible; opacity: 1; transition: opacity .15s ease; }
  .site-nav .nav-sub a { min-height: 42px; padding: .35rem 20px; font-size: .9688rem; color: var(--mist); white-space: nowrap; }
  .site-nav .nav-sub a:hover { background: rgba(255, 255, 255, .06); }
  .site-nav .nav-sub a[aria-current="page"] { color: var(--sun); }
}

/* 7. Hero: pixel hills on a dusk sky. The bottom band is mist so the hills can dissolve into the next section. */
.hero {
  --fade: 44px;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(36px, 9vh, 112px));
  padding-bottom: clamp(230px, 40vh, 440px);
  color: var(--mist);
  background: linear-gradient(180deg,
    #061521 0%,
    #0A2638 38%,
    #0D4058 72%,
    #0E4A64 calc(100% - var(--fade)),
    var(--mist) calc(100% - var(--fade)));
}
@media (max-width: 599px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: clamp(210px, 30vh, 300px); }
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; }
.hero-copy { position: relative; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 12vw, 3.6rem);
  line-height: .95;
  letter-spacing: -.025em;
  margin-bottom: clamp(24px, 3.2vw, 40px);
}
@media (min-width: 600px) {
  .hero-title { font-size: clamp(3.6rem, 7.2vw, 7.25rem); }
}
.hero-title span { display: block; }

.hero-sub { max-width: 35rem; }
.hero-lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: #D9E6EC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: 1rem; color: var(--muted-light); }
.kigali-time { color: var(--mist); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 7b. Page hero: the top of a service page. Title and actions on the left, key facts on the right. */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(20px, 4vw, 56px));
  padding-bottom: clamp(44px, 6vw, 84px);
  color: var(--mist);
  background: linear-gradient(180deg, #061521 0%, #0A2638 55%, #0D4058 100%);
}
/* The five colours of the service line on the home page */
.page-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(90deg, var(--sky) 0 20%, #2BA58F 20% 40%, var(--hill) 40% 60%, #9AAE1C 60% 80%, var(--sun) 80% 100%);
}
.page-hero-grid { display: grid; gap: 40px; }
.page-hero-grid > * { min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-size: .9375rem; color: var(--muted-light); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "/"; margin-inline: .65em; opacity: .55; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--mist); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: .98; letter-spacing: -.025em;
  text-wrap: balance;
  margin: clamp(8px, 1.6vw, 20px) 0 clamp(18px, 2.4vw, 28px);
}
.page-lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5; color: #D9E6EC; max-width: 38rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 32px; border-top: 2px solid var(--sun); }
.facts > div { padding: .85rem 0; border-bottom: 1px solid var(--night-line); }
.facts dt { font-size: .9375rem; color: var(--muted-light); }
.facts dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.25; color: var(--white); }
@media (min-width: 1000px) {
  .page-hero-grid { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 96px); align-items: end; }
}

/* 8. Sections */
.section { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 47rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin-top: 1.1rem; font-size: 1.1875rem; color: var(--muted); max-width: 40rem; }
@media (min-width: 900px) {
  /* Title left, intro right, on the two halves of the page: no empty right side next to a heading */
  .section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; max-width: none; }
  .section-head h2 { padding-right: clamp(32px, 5vw, 72px); }
  .section-head p { margin-top: 0; padding-left: clamp(32px, 5vw, 72px); max-width: none; }
}

/* 8a. Lifecycle: a real sequence, so the numbers and the track carry meaning */
.lifecycle { background: var(--mist); }
.stages { position: relative; display: grid; gap: 44px; }
.stages::before {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, var(--sky), #2BA58F, var(--hill), #9AAE1C, var(--sun));
}
.stage { position: relative; padding-left: 52px; }
.stage::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; background: var(--node);
  box-shadow: 0 0 0 6px var(--mist);
}
.stage-1 { --node: var(--sky); }
.stage-2 { --node: #2BA58F; }
.stage-3 { --node: var(--hill); }
.stage-4 { --node: #9AAE1C; }
.stage-5 { --node: var(--sun); }
.stage-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; line-height: 1.6; color: var(--muted);
}
.stage h3 { font-size: 1.45rem; margin: .15em 0 .55em; }
/* Stage titles lead to the page of the service. Padding gives a 44px target without moving the layout. */
.stage h3 a {
  display: inline-block; padding-block: 8px; margin-block: -8px;
  text-decoration: underline; text-decoration-color: var(--muted-light); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.stage h3 a:hover { text-decoration-color: var(--ink); }
.stage-list a { display: block; padding-block: .6rem; margin-block: -.6rem; text-underline-offset: 3px; }
.stage p { color: var(--muted); font-size: 1rem; max-width: 34rem; }
.stage-list { margin-top: 1.1rem; border-top: 1px solid var(--line); max-width: 34rem; }
.stage-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9688rem; font-weight: 500; }

@media (min-width: 700px) and (max-width: 1179px) {
  .stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 48px; }
  .stage-num, .stage h3, .stage p { grid-column: 1; }
  .stage-list { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: .4rem; }
}
@media (min-width: 1180px) {
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
  .stages::before {
    left: 12px; right: 12px; top: 11px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--sky), #2BA58F, var(--hill), #9AAE1C, var(--sun));
  }
  .stage { padding-left: 0; padding-top: 52px; }
  .stage::before { top: 0; }
  .stage h3 { font-size: 1.3rem; }
}

/* 8a-bis. AI and secure access: a plain capability table, name / what it does / where it is used */
.ai { background: var(--white); }
.caps { border-top: 2px solid var(--ink); }
.cap { display: grid; gap: .7rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.cap h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.01em; }
.cap abbr {
  display: inline-block; margin-left: .35em; padding: .15em .5em; vertical-align: middle;
  font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .03em;
  color: var(--sky-ink); border: 1.5px solid currentColor; border-radius: 3px; text-decoration: none;
}
.cap p { color: var(--muted); max-width: 38rem; }
.cap .cap-uses { color: var(--ink); font-weight: 500; }
.cap-uses span { display: block; font-size: .9375rem; font-weight: 400; color: var(--muted); }
@media (min-width: 900px) {
  .cap { grid-template-columns: 4fr 5fr 3fr; gap: 44px; padding: 2rem 0; align-items: start; }
}

.section-more { margin-top: .6rem; }
.section-more a, .related-head a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--sky-ink); text-underline-offset: 4px;
}
.section-more a::after, .related-head a::after {
  content: ""; width: 7px; height: 7px; margin-left: .6em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* 8a-ter. Service pages: what is included (same table as above), the steps, the questions, the related services */
.included, .related { background: var(--white); }
.process { background: var(--mist); }
.included .cap a, .included .section-head a, .process a { color: var(--sky-ink); text-underline-offset: 3px; }

.steps { display: grid; gap: 32px; }
.step { padding-top: 16px; border-top: 4px solid var(--node); }
.step:nth-child(1) { --node: var(--sky); }
.step:nth-child(2) { --node: #2BA58F; }
.step:nth-child(3) { --node: var(--hill); }
.step:nth-child(4) { --node: var(--sun); }
.step-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.0625rem; line-height: 1.6; color: var(--muted);
}
.step h3 { font-size: 1.35rem; margin: .15em 0 .5em; }
.step p { color: var(--muted); font-size: 1rem; }
@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.faq { background: var(--night); color: var(--mist); }
.faq .section-head p { color: var(--muted-light); }
.faq-list { display: grid; }
.faq-list > div { padding: 1.5rem 0; border-top: 1px solid var(--night-line); }
.faq-list dt {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.2;
  color: var(--white); margin-bottom: .6rem;
}
.faq-list dd { color: var(--muted-light); }
.faq-list a { color: var(--sun); text-underline-offset: 3px; }
@media (min-width: 900px) {
  /* Same two halves as the section heads */
  .faq-list { grid-template-columns: 1fr 1fr; column-gap: clamp(64px, 10vw, 144px); }
}

.related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; }
.related h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.01em; }
.related .portal-links { margin-top: clamp(14px, 2vw, 24px); }

/* 8b. Standards: global on the left, local on the right */
.standards { background: var(--night); color: var(--mist); }
.duo { display: grid; gap: 64px; }
.duo-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .92;
  letter-spacing: -.025em;
  margin-bottom: .45em;
}
.duo-lede { font-size: 1.1875rem; color: #D9E6EC; max-width: 30rem; margin-bottom: 2rem; }
.points li {
  position: relative;
  padding: 1.1rem 0 1.1rem 28px;
  border-top: 1px solid var(--night-line);
  color: var(--muted-light);
  font-size: 1rem;
}
.points li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 10px; height: 10px; background: var(--bullet);
}
.duo-global { --bullet: var(--sky); }
.duo-local { --bullet: var(--sun); }
.points strong { display: block; color: var(--white); font-weight: 600; font-size: 1.0625rem; margin-bottom: .2rem; }
.points a { color: var(--sun); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; gap: 0; }
  .duo-global { padding-right: clamp(32px, 5vw, 72px); }
  .duo-local { padding-left: clamp(32px, 5vw, 72px); border-left: 1px solid var(--night-line); }
}

/* Founder: statement under "Global", bio under "Local", on the same two columns as the duo above */
.founder {
  display: grid; gap: 20px;
  margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--night-line);
}
.founder-head { display: flex; gap: 24px; align-items: flex-start; }
.founder-mark {
  display: grid; place-items: center; flex: none;
  width: 84px; height: 84px;
  background: var(--hill); color: var(--sun);
  font-family: var(--font-display); font-weight: 700; font-size: 1.75rem;
}
.founder-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; text-wrap: balance; }
.founder-bio { color: var(--muted-light); max-width: 38rem; }
@media (max-width: 599px) {
  .founder-head { gap: 16px; }
  .founder-mark { width: 64px; height: 64px; font-size: 1.35rem; }
}
@media (min-width: 900px) {
  .founder { grid-template-columns: 1fr 1fr; gap: 0; }
  .founder-head { padding-right: clamp(32px, 5vw, 72px); }
  .founder-bio { padding-left: clamp(32px, 5vw, 72px); max-width: none; }
}

/* 8c. Domain search: first thing on the home page and on the domain page, inside the dark top band */
.domain-form { margin-top: 26px; max-width: 35rem; }
.domain-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; margin-bottom: .55rem; }
.domain-field { display: flex; background: var(--white); border: 2px solid var(--white); border-radius: 3px; }
.domain-field:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.domain-field input {
  flex: 1; min-width: 0; width: 100%;
  padding: .55em .7em;
  border: 0; background: transparent; outline: 0; color: var(--ink);
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}
.domain-field input::placeholder { color: #5F737D; font-weight: 500; }
.domain-field .btn { border-radius: 0; min-height: 100%; margin: -2px -2px -2px 0; padding-inline: clamp(1em, 2vw, 1.8em); }
.tlds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tlds-label { font-size: .9375rem; color: var(--muted-light); margin-right: 4px; }
.tlds button {
  min-height: 44px; min-width: 52px; padding: .3em .9em;
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  background: transparent; border: 1.5px solid rgba(238, 243, 241, .4); border-radius: 3px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.tlds button:hover { border-color: var(--mist); background: rgba(255, 255, 255, .08); }

/* 8c-bis. Store links: order online, on the home page */
.store { background: var(--mist); }
.portal-links { display: grid; border-top: 2px solid var(--ink); }
.portal-links a {
  display: grid; gap: .2rem;
  padding: 1.2rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.portal-links strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.portal-links span { color: var(--muted); font-size: .9688rem; }
.portal-links a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (min-width: 900px) {
  .portal-links { grid-template-columns: repeat(4, 1fr); }
  .portal-links li + li a { border-left: 1px solid var(--line); }
  .portal-links a { padding: 1.4rem 24px 1.6rem; height: 100%; border-bottom: 0; }
  .portal-links li:first-child a { padding-left: 0; }
}

/* 8d. Contact */
.contact { background: var(--hill); color: var(--white); }
.contact-grid { display: grid; gap: 56px; }
.contact-intro > p { margin-top: 1rem; font-size: 1.1875rem; color: #D6E8DD; max-width: 30rem; }
.contact-list { margin-top: 2.4rem; border-top: 1px solid rgba(255, 255, 255, .22); }
.contact-list > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px;
  padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.contact-list dt { color: #BFD8C8; font-size: .9375rem; padding-top: .1rem; }
/* 44px hit area without changing the row height */
.contact-list dd a { display: inline-block; padding-block: 12px; margin-block: -12px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--white); border: 1px solid rgba(255, 255, 255, .34); border-radius: 3px;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.socials a:hover { color: var(--sun); border-color: var(--sun); background: rgba(11, 34, 48, .28); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

.brief { background: var(--hill-deep); padding: clamp(24px, 4vw, 44px); }
.brief fieldset { border: 0; }
.brief legend, .field > span { display: block; font-weight: 600; font-size: .9688rem; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px; padding: .45em 1em;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 3px;
  font-weight: 500; font-size: .9688rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip span::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; flex: none; }
.chip:hover span { border-color: var(--white); }
.chip input:checked + span { background: var(--sun); border-color: var(--sun); color: var(--night); }
.chip input:checked + span::before { background: var(--night); border-color: var(--night); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.brief-row { display: grid; gap: 18px; }
.brief-services { margin-bottom: 26px; }
.field { display: block; margin-bottom: 18px; }
.field input, .field textarea {
  display: block; width: 100%;
  padding: .75rem .85rem;
  background: var(--white); color: var(--ink);
  border: 2px solid transparent; border-radius: 3px;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 0; }
.field textarea::placeholder { color: #5F737D; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.brief .btn-line { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.brief-status { margin-top: 14px; min-height: 1.5em; font-weight: 600; color: var(--sun); }
.brief-status:empty { margin-top: 0; min-height: 0; }
.brief-note { margin-top: 10px; font-size: 1rem; color: #BFD8C8; }

@media (min-width: 640px) {
  .brief-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
}

/* 9. Footer */
.site-footer { background: var(--night); color: var(--muted-light); padding-block: 64px 32px; font-size: .9688rem; }
.footer-top { display: grid; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--night-line); }
.footer-brand p { margin-top: 14px; color: var(--mist); }
.footer-contact { display: grid; justify-items: start; margin-top: 6px; font-style: normal; }
.footer-brand .socials { margin-top: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.footer-nav h2 { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: var(--mist); margin-bottom: .8rem; }
.footer-nav a, .footer-bottom a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-nav h2 + ul { margin-top: -10px; }
.footer-nav a:hover, .footer-bottom a:hover, .footer-contact a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .875rem; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
