@import url("fonts.css");

/* ==========================================================================
   إلتزام — Eltezam Contract Management
   Design tokens. Palette is fixed by the brand identity:
   #0F3D5E navy · #00B8A9 teal · #F2F6F9 paper · #1F2937 ink
   Every neutral below is biased toward the navy so nothing reads as
   an inherited default grey.
   ========================================================================== */

:root {
  /* Brand */
  --navy:        #0F3D5E;
  --navy-900:    #0A2B42;
  --navy-700:    #164E75;
  --teal:        #00B8A9;
  --teal-bright: #12C9B4;
  --teal-deep:   #0A8579;
  --paper:       #F2F6F9;
  --ink:         #1F2937;
  --white:       #FFFFFF;

  /* Navy-biased neutrals */
  --muted:       #5A7183;
  --muted-soft:  #8496A5;
  --hair:        rgba(15, 61, 94, 0.13);
  --hair-strong: rgba(15, 61, 94, 0.26);
  --hair-light:  rgba(255, 255, 255, 0.16);
  --wash:        rgba(15, 61, 94, 0.035);

  /* Type */
  --display: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  --body:    "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --latin:   "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --fs-hero: clamp(2.35rem, 5.1vw, 4rem);
  --fs-h1:   clamp(2rem, 3.9vw, 3rem);
  --fs-h2:   clamp(1.55rem, 2.7vw, 2.15rem);
  --fs-h3:   1.22rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  /* Layout */
  --shell: 1200px;
  --read:  68ch;
  --pad:   clamp(20px, 5vw, 48px);
  --sec-y: clamp(64px, 9vw, 120px);
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.28;
  color: var(--navy);
  text-wrap: balance;
  letter-spacing: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

::selection { background: var(--teal); color: var(--white); }

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  font-size: var(--fs-sm);
}
.skip:focus { inset-inline-start: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Shell & section rhythm
   Sections carry padding; modifiers change ground only — never spacing.
   ========================================================================== */

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

.sec {
  padding-block: var(--sec-y);
  position: relative;
}

.sec--paper { background: var(--paper); }
.sec--navy  { background: var(--navy-900); color: rgba(255, 255, 255, 0.82); }
.sec--navy h1, .sec--navy h2, .sec--navy h3 { color: var(--white); }
.sec--rule  { border-top: 1px solid var(--hair); }
.sec--tight { padding-block: clamp(44px, 6vw, 72px); }

/* ==========================================================================
   Type utilities
   Arabic is cursive — letter-spacing is applied to Latin runs only,
   never to Arabic text, which would break the joins.
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.sec--navy .eyebrow { color: var(--teal); }

.eyebrow::before {
  content: "";
  width: 11px; height: 12px;
  flex: none;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.latin {
  font-family: var(--latin);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 500;
  direction: ltr;
  unicode-bidi: isolate;
}

.lede {
  font-size: clamp(1.09rem, 1.7vw, 1.28rem);
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
  max-width: var(--read);
}
.sec--navy .lede { color: rgba(255, 255, 255, 0.76); }

.prose { max-width: var(--read); }
.prose p + p { margin-top: 1.15em; }

.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head .lede { margin-top: 18px; }

/* ==========================================================================
   Logo lockup
   ========================================================================== */

.lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}

.lockup .mark { width: 40px; height: 40px; flex: none; }

.lockup-text { display: flex; flex-direction: column; gap: 3px; }

.lockup-name {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.lockup-rule {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lockup-rule::before {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--teal);
  opacity: 0.75;
}
.lockup-rule::after {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

.lockup-sub {
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
}

.lockup--light .lockup-name { color: var(--white); }
.lockup--light .lockup-sub  { color: rgba(255, 255, 255, 0.62); }
.lockup--lg .mark { width: 56px; height: 56px; }
.lockup--lg .lockup-name { font-size: 1.7rem; }

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hair);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.nav a {
  font-size: var(--fs-sm);
  color: var(--muted);
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--navy); }

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.nav a[aria-current="page"] { color: var(--navy); font-weight: 500; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.hdr-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  display: none;
  border-top: 1px solid var(--hair);
  background: var(--white);
}
.drawer.is-open { display: block; }
.drawer ul { display: flex; flex-direction: column; }
.drawer a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
  font-size: var(--fs-body);
  color: var(--navy);
}
.drawer li:last-child a { border-bottom: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: "";
  width: 6px; height: 7px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.65;
}

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); }

.btn--teal { background: var(--teal); color: #04302C; }
.btn--teal:hover { background: var(--teal-bright); }

.btn--ghost { border-color: var(--hair-strong); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

.btn--light { border-color: var(--hair-light); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Hero — navy field, drifting hexagonal lattice, right-aligned display type
   ========================================================================== */

/* The gradient lives on the element's own background, not a pseudo-element:
   generated content paints after in-flow children at the same z-index, which
   would bury the lattice canvas beneath it. */
.hero {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(0, 184, 169, 0.2), transparent 58%),
    linear-gradient(200deg, var(--navy) 0%, var(--navy-900) 62%),
    var(--navy-900);
}

#lattice {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-in {
  padding-block: clamp(80px, 13vw, 168px);
  position: relative;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  color: var(--white);
  line-height: 1.22;
  max-width: 17ch;
}

.hero .lede {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
}

.hero .btn-row { margin-top: 40px; }

.hero-note {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--hair-light);
  max-width: 62ch;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
}
.hero-note strong { color: var(--teal); font-weight: 500; }

/* Compact hero for interior pages */
.hero--page .hero-in { padding-block: clamp(60px, 8vw, 104px); }
.hero--page h1 { max-width: 22ch; font-size: var(--fs-h1); }

.crumb {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}
.crumb a:hover { color: var(--teal); }
.crumb span { opacity: 0.5; margin-inline: 8px; }

/* ==========================================================================
   Register rows — the recurring structural device.
   A hairline-ruled row with a hex glyph in the margin. Used wherever the
   content is a set of peers (services, values, reasons) rather than a
   sequence, so nothing is falsely numbered.
   ========================================================================== */

.reg { border-top: 1px solid var(--hair); }
.sec--navy .reg { border-color: var(--hair-light); }

.reg-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(26px, 3.4vw, 38px);
  border-bottom: 1px solid var(--hair);
  transition: background 0.3s var(--ease);
}
.sec--navy .reg-row { border-color: var(--hair-light); }

.reg-row:hover { background: var(--wash); }
.sec--navy .reg-row:hover { background: rgba(255, 255, 255, 0.035); }

.reg-glyph {
  width: 13px; height: 15px;
  margin-top: 7px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}

.reg-body h3 {
  font-size: var(--fs-h3);
  margin-bottom: 9px;
}
.reg-body p {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 300;
  max-width: 62ch;
}
.sec--navy .reg-body p { color: rgba(255, 255, 255, 0.7); }

/* Two-column register on wide screens */
.reg--split { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 72px); }
.reg--split .reg-row:nth-last-child(-n + 2) { border-bottom: 0; }

/* ==========================================================================
   Sector grid — hairline cells, no floating cards
   ========================================================================== */

.grid-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--hair);
  border-inline-start: 1px solid var(--hair);
}
.sec--navy .grid-cells,
.sec--navy .grid-cells .cell { border-color: var(--hair-light); }

.cell {
  border-bottom: 1px solid var(--hair);
  border-inline-end: 1px solid var(--hair);
  padding: clamp(26px, 3vw, 36px);
  transition: background 0.3s var(--ease);
}
.cell:hover { background: var(--wash); }
.sec--navy .cell:hover { background: rgba(255, 255, 255, 0.04); }

.cell h3 { font-size: 1.08rem; margin-bottom: 8px; }
.cell p {
  font-size: var(--fs-sm);
  color: var(--muted);
  font-weight: 300;
}
.sec--navy .cell p { color: rgba(255, 255, 255, 0.68); }

.cell-mark {
  width: 16px; height: 18px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  margin-bottom: 18px;
  opacity: 0.9;
}

/* ==========================================================================
   Contract register illustration
   A labelled, illustrative sample of what Eltezam maintains for a client.
   ========================================================================== */

.ledger {
  border: 1px solid var(--hair);
  background: var(--white);
}

.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--hair);
  background: var(--paper);
}

.ledger-title {
  font-family: var(--display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy);
}

.ledger-tag {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 300;
}

.ledger-scroll { overflow-x: auto; }

.ledger table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}

.ledger th {
  text-align: start;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 14px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}

.ledger td {
  padding: 15px clamp(14px, 2vw, 24px);
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
  font-weight: 300;
}
.ledger tr:last-child td { border-bottom: 0; }
.ledger tbody tr { transition: background 0.3s var(--ease); }
.ledger tbody tr:hover { background: var(--wash); }

.ledger .num { direction: ltr; unicode-bidi: isolate; font-family: var(--latin); font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 400;
  white-space: nowrap;
  border: 1px solid;
}
.pill::before {
  content: "";
  width: 5px; height: 6px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pill--ok    { color: var(--teal-deep); border-color: rgba(0, 184, 169, 0.4);  background: rgba(0, 184, 169, 0.07); }
.pill--due   { color: #8A6100;         border-color: rgba(138, 97, 0, 0.32);   background: rgba(196, 138, 0, 0.09); }
.pill--filed { color: var(--navy);     border-color: var(--hair-strong);       background: var(--wash); }

/* ==========================================================================
   Split feature block
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.split--narrow { grid-template-columns: 0.85fr 1.15fr; }

/* Stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.sec--navy .stats { background: var(--hair-light); border-color: var(--hair-light); }

.stat { background: var(--white); padding: clamp(24px, 3vw, 34px); }
.sec--navy .stat { background: var(--navy-900); }

.stat dt {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 10px;
}
.sec--navy .stat dt { color: rgba(255, 255, 255, 0.6); }

.stat dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.45;
}
.sec--navy .stat dd { color: var(--white); }

/* ==========================================================================
   Positioning band — the single sharpest differentiator on the site
   ========================================================================== */

.band {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(48px, 6vw, 76px);
}
.band-in {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.band-mark { width: 62px; height: 62px; flex: none; }
.band p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.6;
  max-width: 46ch;
}
.band strong { font-weight: 600; color: var(--teal); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--hair); max-width: 82ch; }

.faq details {
  border-bottom: 1px solid var(--hair);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 24px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-deep); }

.faq summary::after {
  content: "";
  margin-inline-start: auto;
  width: 11px; height: 11px;
  flex: none;
  border-inline-start: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }

.faq-body {
  padding-bottom: 26px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 300;
  max-width: 66ch;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }

.field label {
  font-size: var(--fs-xs);
  color: var(--navy);
  font-weight: 500;
}
.field label span { color: var(--teal-deep); }

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hair-strong);
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.7; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.13);
}

.hp { position: absolute; inset-inline-start: -9999px; }

.form-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: 300;
  margin-top: 14px;
}

.form-msg {
  display: none;
  padding: 14px 18px;
  font-size: var(--fs-sm);
  margin-bottom: 20px;
  border: 1px solid;
}
.form-msg.is-on { display: block; }
.form-msg--ok  { color: var(--teal-deep); border-color: rgba(0, 184, 169, 0.4); background: rgba(0, 184, 169, 0.07); }
.form-msg--err { color: #97341F; border-color: rgba(151, 52, 31, 0.3); background: rgba(151, 52, 31, 0.06); }

.contact-list { border-top: 1px solid var(--hair); }
.contact-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.contact-item dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 300; }
.contact-item dd { margin: 0; font-size: var(--fs-sm); color: var(--navy); font-weight: 400; }
.contact-item dd a:hover { color: var(--teal-deep); }
.contact-item .num { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ==========================================================================
   CTA closer
   ========================================================================== */

.closer { text-align: start; }
.closer h2 { font-size: var(--fs-h2); max-width: 20ch; }
.closer .lede { margin-top: 18px; }
.closer .btn-row { margin-top: 34px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.66);
  padding-block: clamp(56px, 7vw, 84px) 34px;
  font-size: var(--fs-sm);
  font-weight: 300;
}

.ftr-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--hair-light);
}

.ftr-blurb { margin-top: 22px; max-width: 42ch; color: rgba(255, 255, 255, 0.6); }

.ftr h4 {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 18px;
}

.ftr-links { display: flex; flex-direction: column; gap: 11px; }
.ftr-links a { color: rgba(255, 255, 255, 0.66); }
.ftr-links a:hover { color: var(--teal); }

.ftr-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.46);
}
.ftr-bottom a:hover { color: var(--teal); }

/* ==========================================================================
   Motion — page-load sequence and scroll reveal
   ========================================================================== */

.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }

.hero .rise { transition-delay: var(--d, 0ms); }

@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;
  }
  .rise { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .split, .split--narrow, .contact-grid { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .reg--split { grid-template-columns: 1fr; }
  .reg--split .reg-row:nth-last-child(-n + 2) { border-bottom: 1px solid var(--hair); }
  .reg--split .reg-row:last-child { border-bottom: 0; }
}

@media (max-width: 840px) {
  .nav, .hdr-cta .btn { display: none; }
  .burger { display: flex; }
  .hdr-in { height: 68px; }
}

@media (max-width: 620px) {
  :root { --fs-body: 1rem; }
  .ftr-top { grid-template-columns: 1fr; }
  .band-in { grid-template-columns: 1fr; }
  .band-mark { width: 48px; height: 48px; }
  .contact-item { grid-template-columns: 1fr; gap: 6px; }
  .hero h1 { max-width: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .hdr, .ftr, .burger, .drawer, #lattice, .btn-row { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .sec { padding-block: 18pt; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lede { color: #000; }
  .rise { opacity: 1; transform: none; }
}

/* ==========================================================================
   Inline "includes" line — typographic rather than chip clutter, so the
   services page keeps the register's formal texture.
   ========================================================================== */

.incl {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--muted-soft);
  line-height: 1.9;
}
.incl b { color: var(--navy); font-weight: 500; }
.sec--navy .incl b { color: var(--teal); }

/* Statement pair — vision & mission */
.statement {
  border-top: 2px solid var(--navy);
  padding-top: 26px;
}
.statement .eyebrow { margin-bottom: 14px; }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--navy);
}
.sec--navy .statement { border-color: var(--teal); }
.sec--navy .statement p { color: var(--white); }

/* Legal / policy prose */
.legal { max-width: 74ch; }
.legal h2 {
  font-size: 1.28rem;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal p { margin-top: 14px; color: var(--muted); font-weight: 300; font-size: var(--fs-sm); }
.legal ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.legal li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--muted);
  font-weight: 300;
  font-size: var(--fs-sm);
}
.legal li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.75em;
  width: 8px; height: 9px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.legal .updated {
  font-size: var(--fs-xs);
  color: var(--muted-soft);
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--hair);
}

/* ==========================================================================
   Utilities
   These exist so no element needs an inline style attribute — the site's
   Content-Security-Policy sets style-src 'self', which blocks them.
   ========================================================================== */

.sprite { position: absolute; }

.u-mt-sm      { margin-top: 14px; }
.u-mt         { margin-top: 30px; }
.u-mt-lg      { margin-top: 40px; }
.u-mt-xl      { margin-top: 44px; }
.u-mb-lg      { margin-bottom: 34px; }
.u-mt-section { margin-top: clamp(44px, 6vw, 72px); }

.tlink { text-decoration: underline; text-underline-offset: 3px; }
.tlink:hover { color: var(--teal-deep); }

.tlink-accent {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.tlink-accent:hover { color: var(--navy); }
