/* ==========================================================================
   Hassan Houry — Software Studio
   Design system + components. Shared by every page, EN and AR.
   Direction-agnostic: use logical properties (margin-inline, inset-inline,
   border-inline) so the Arabic RTL pages need no separate stylesheet.
   ========================================================================== */

:root {
  /* Palette */
  --paper:      #F3EEE5;
  --paper-2:    #ECE5D8;
  --cream:      #FBF8F1;
  --ink:        #191510;
  --ink-2:      #574E42;
  --ink-3:      #8A8275;
  --ink-4:      #C9C0B2;
  --rust:       #BE4A2C;
  --rust-deep:  #9C3A1F;
  --rust-light: #E89A7E;
  --green:      #3F9D52;

  --line:        rgba(25, 21, 16, .14);
  --line-strong: rgba(25, 21, 16, .28);
  --line-inv:    rgba(243, 238, 229, .22);
  --line-inv-2:  rgba(243, 238, 229, .12);

  /* Type */
  --f-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 80px);
  --header-h: 76px;
  --section-y: clamp(70px, 9vh, 104px);
  --section-y-end: clamp(28px, 4.5vh, 50px);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rust); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rust); color: var(--cream); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: var(--gutter); top: -100px;
  z-index: 300; background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 100px; font-size: 14px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

/* --- Shared primitives -------------------------------------------------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

.section {
  scroll-margin-top: var(--header-h);
  padding-block: var(--section-y) var(--section-y-end);
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rust-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--rust);
  flex-shrink: 0;
}
.eyebrow .num { opacity: .65; }

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin-block-end: clamp(28px, 4vh, 48px);
}
.section-head > p {
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  max-width: 46ch;
}

h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.03em; line-height: 1.08; }
h2 {
  font-size: clamp(1.7rem, 3.7vw, 3rem);
  font-weight: 700;
  margin-block-start: 14px;
  text-wrap: balance;
}
em { font-style: italic; font-weight: inherit; color: var(--rust); }
h1 em { color: inherit; font-weight: 600; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  background: var(--cream);
}

.tag {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  background: var(--cream);
  white-space: nowrap;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: 15px; font-weight: 600;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: background .35s var(--ease), transform .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover {
  background: var(--rust); border-color: var(--rust);
  color: var(--cream); transform: translateY(-2px);
}
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.btn--sm { font-size: 14px; padding: 13px 22px; }
.btn--block { width: 100%; justify-content: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  z-index: 120;
  background: rgba(243, 238, 229, .86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid var(--line);
}
.site-header .wrap {
  padding-block: 15px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 12px; line-height: 1; }
.brand__name {
  font-family: var(--f-display); font-weight: 700;
  font-size: 21px; letter-spacing: -.022em;
}
.brand__tag {
  font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  border-inline-start: 1px solid var(--line-strong);
  padding-inline-start: 12px;
}
.site-nav {
  display: flex; align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  flex-wrap: wrap; justify-content: flex-end;
}
.site-nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding-block: 4px;
  border-block-end: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink); border-block-end-color: var(--rust);
}
.site-nav .btn { border-block-end: 0; }
.site-nav .btn:hover { color: var(--cream); }

.lang-switch {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 12px;
}
.lang-switch:hover { color: var(--ink); border-color: var(--line-strong); }

@media (max-width: 860px) {
  .brand__tag { display: none; }
  .site-nav a:not(.btn):not(.lang-switch) { display: none; }
}

/* --- Scroll progress + grain -------------------------------------------- */
.progress {
  position: fixed; inset-block-start: 0; inset-inline-start: 0;
  height: 2px; width: 0;
  background: var(--rust); z-index: 200;
  transition: width .1s linear;
}
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(96px, 12vh, 128px) clamp(22px, 4vh, 46px);
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2rem, 4.9vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-block-start: 16px;
  text-wrap: balance;
}
.hero__lede {
  margin-block-start: 18px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
}
.hero__cta {
  margin-block-start: clamp(20px, 2.6vh, 34px);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero__stats {
  margin-block-start: clamp(28px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(16px, 2.6vw, 40px);
  border-block-start: 1px solid var(--line);
  padding-block-start: clamp(18px, 2.4vh, 28px);
}
.stat__n {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1;
}
.stat__n span { color: var(--rust); }
.stat__l {
  margin-block-start: 6px;
  font-size: 13.5px; color: var(--ink-2); max-width: 22ch;
}

/* Hand-drawn underline under the accent phrase */
.mark {
  position: relative; white-space: nowrap; color: var(--rust);
}
.mark svg {
  position: absolute;
  inset-inline-start: -2%; inset-block-end: -.12em;
  width: 104%; height: .4em; overflow: visible;
}
.mark path {
  fill: none; stroke: var(--rust);
  stroke-width: 3.4; stroke-linecap: round;
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); position: relative;
  display: inline-block; flex-shrink: 0;
}
.dot::after {
  content: ""; position: absolute; inset: -5px;
  border-radius: 50%; border: 1px solid var(--green);
  opacity: .5; animation: hhPulse 2.4s var(--ease) infinite;
}

/* --- Tech marquee ------------------------------------------------------- */
.marquee {
  --marquee-duration: 38s;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 13px;
}
.marquee__track {
  display: flex; width: max-content;
  gap: 0;
  animation: hhScroll var(--marquee-duration) linear infinite;
}
.marquee__track > span {
  font-family: var(--f-mono); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee__track > span::after {
  content: "\00B7"; color: var(--rust); margin-inline: 22px;
}

/* --- Services ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(20px, 2vw, 30px);
  background: var(--paper);
  transition: background .35s var(--ease);
}
.card:hover { background: var(--cream); }
.card__icon {
  color: var(--rust);
  margin-block-end: 14px;
}
.card h3 {
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
  font-weight: 700;
  margin-block-end: 8px;
}
.card p {
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  margin-block-end: 16px;
}
.card__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: auto;
}

/* --- Pipeline banner (dark inset card) ---------------------------------- */
.pipeline-band {
  padding-block: clamp(34px, 6vh, 64px);
  border-top: 1px solid var(--line);
}
.pipeline {
  background: var(--ink); color: var(--paper);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 48px);
  position: relative; overflow: hidden;
}
.pipeline::before {
  content: ""; position: absolute;
  inset-inline-end: -10%; inset-block-start: -40%;
  width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(190, 74, 44, .42), transparent);
  pointer-events: none;
}
.pipeline > * { position: relative; }
.pipeline h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 700; color: var(--paper);
  letter-spacing: -.025em; max-width: 26ch; line-height: 1.12;
  margin-block-start: 0; text-wrap: balance;
}
.pipeline h2 em { color: var(--rust-light); }
.pipeline p {
  color: var(--ink-4); margin-block-start: 12px; max-width: 52ch;
}
.pipeline__flow {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-block-start: 22px;
}
.pipeline__flow span:not(.arrow) {
  font-family: var(--f-mono); font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-inv); border-radius: 100px;
  padding: 7px 15px; background: rgba(243, 238, 229, .04);
}
.pipeline__flow .arrow { color: var(--rust-light); }

/* --- Work list ---------------------------------------------------------- */
.work-list { border-block-start: 1px solid var(--line); }
.work-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: clamp(12px, 2.5vw, 36px);
  align-items: center;
  padding-block: clamp(14px, 1.6vh, 22px);
  border-block-end: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.work-item:hover { background: var(--paper-2); }
.work-item__n {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
}
.work-item h3 {
  font-size: clamp(1.02rem, 1.9vw, 1.42rem);
  font-weight: 700; line-height: 1.2;
}
.work-item h3 span {
  display: block;
  font-family: var(--f-mono); font-size: 11px; font-weight: 400;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-block-end: 6px; letter-spacing: .1em;
}
.work-item__meta { color: var(--ink-2); font-size: 14px; }
.work-item__arrow { color: var(--ink-3); transition: transform .4s var(--ease), color .4s var(--ease); }
.work-item:hover .work-item__arrow { color: var(--rust); transform: translateX(4px); }

@media (max-width: 760px) {
  .work-item { grid-template-columns: 34px minmax(0, 1fr); }
  .work-item__meta { grid-column: 2; }
  .work-item__arrow { display: none; }
}

/* --- Process ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
/* 6 steps + a 2-wide CTA = an exactly full 4-col grid; needs fixed tracks,
   because auto-fit would let the column count drift away from the span. */
.steps--closed { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { background: var(--paper); padding: clamp(20px, 2vw, 30px); }
.step__k {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rust-deep); margin-block-end: 12px;
}
.step h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 700; margin-block-end: 8px;
}
.step p { color: var(--ink-2); font-size: 15px; }

/* Closing CTA fills the two cells the 6 steps leave over on the 4-col grid */
.step--cta {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper);
  text-decoration: none;
  transition: background .25s ease;
}
.step--cta .step__k { color: var(--rust-light); transition: color .25s ease; }
.step--cta h3 {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  letter-spacing: -.02em; color: var(--paper);
}
.step--cta p { color: var(--ink-4); max-width: 44ch; }
.step__go {
  margin-block-start: auto; padding-block-start: clamp(18px, 2.5vh, 28px);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper);
}
.step__go span { transition: transform .25s ease; }
.step--cta:hover { background: var(--rust); }
.step--cta:hover .step__k { color: var(--cream); }
.step--cta:hover .step__go span { transform: translate(3px, -3px); }
[dir="rtl"] .step--cta:hover .step__go span { transform: translate(-3px, -3px); }

@media (max-width: 1040px) {
  .steps--closed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step--cta { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .steps--closed { grid-template-columns: minmax(0, 1fr); }
}

/* --- About -------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-block-start: clamp(20px, 3vh, 36px);
}
.about-lede {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  text-wrap: balance;
  margin-block-end: clamp(20px, 3vh, 32px);
}
.cv {
  border-block-start: 1px solid var(--line);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: clamp(10px, 2vw, 24px);
}
.cv__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  column-gap: clamp(10px, 2vw, 24px);
  align-items: baseline;
  padding-block: 13px;
  border-block-end: 1px solid var(--line);
  font-size: 14.5px;
}
.cv__org { font-weight: 600; }
.cv__what { color: var(--ink-2); }
.cv__when { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; text-align: end; }
@supports not (grid-template-columns: subgrid) {
  .cv { display: block; }
  .cv__row { grid-template-columns: minmax(9.5em, max-content) minmax(0, 1fr) max-content; }
}
@media (max-width: 620px) {
  .cv { grid-template-columns: minmax(0, 1fr) max-content; }
  .cv__org { grid-column: 1; grid-row: 1; }
  .cv__when { grid-column: 2; grid-row: 1; }
  .cv__what { grid-column: 1 / -1; grid-row: 2; margin-block-start: 4px; }
  @supports not (grid-template-columns: subgrid) {
    .cv__row { grid-template-columns: minmax(0, 1fr) max-content; }
  }
}

.prose p { color: var(--ink-2); margin-block-end: 16px; }
.prose p b { color: var(--ink); font-weight: 600; }
.prose__links { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 8px; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-block-start: 1px solid var(--line); }
.faq__item { border-block-end: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; text-align: start;
  background: none; border: 0; cursor: pointer;
  padding-block: clamp(16px, 2vh, 22px);
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  font-weight: 600; letter-spacing: -.02em; color: var(--ink);
  transition: color .3s var(--ease);
}
.faq__q:hover { color: var(--rust); }
.faq__sign {
  position: relative; width: 16px; height: 16px; flex-shrink: 0;
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; background: var(--rust);
  inset-block-start: 50%; inset-inline-start: 0;
  width: 16px; height: 1.5px; margin-block-start: -.75px;
}
.faq__sign::after {
  transform: rotate(90deg);
  transition: transform .35s var(--ease);
}
.faq__q[aria-expanded="true"] .faq__sign::after { transform: rotate(90deg) scaleX(0); }
.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .38s var(--ease);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  color: var(--ink-2); max-width: 74ch;
  padding-block-end: clamp(16px, 2vh, 24px);
}

/* --- Contact (inverted) ------------------------------------------------- */
.contact {
  scroll-margin-top: var(--header-h);
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
  padding-block: var(--section-y) clamp(40px, 6vh, 64px);
}
.contact .eyebrow { color: var(--rust-light); }
.contact .eyebrow::before { background: var(--rust-light); }
.contact h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.contact h2 em { color: var(--rust-light); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__lede {
  color: var(--ink-4); margin-block-start: 16px; max-width: 46ch;
}
.contact__methods {
  margin-block-start: clamp(24px, 3.5vh, 40px);
  display: flex; flex-direction: column; gap: 10px;
}
.method {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line-inv);
  border-radius: 8px;
  background: rgba(243, 238, 229, .04);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.method:hover {
  background: rgba(243, 238, 229, .07);
  border-color: var(--rust-light);
  color: var(--paper);
  transform: translateY(-2px);
}
.method__icon { color: var(--rust-light); flex-shrink: 0; }
.method__text { display: flex; flex-direction: column; min-width: 0; }
.method__label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.method__value { font-weight: 600; }
.method__arrow { margin-inline-start: auto; color: var(--ink-4); }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(243, 238, 229, .04);
  border: 1px solid var(--line-inv);
  border-radius: 6px;
  padding: 13px 15px;
  color: var(--paper);
  font-size: 15px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20d%3D%22M1%201l5%205%205-5%22%20fill%3D%22none%22%20stroke%3D%22%23C9C0B2%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-inline-end: 38px;
}
[dir="rtl"] .field select { background-position: left 15px center; }
.field select option { background: var(--ink); color: var(--paper); }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust-light);
  background: rgba(243, 238, 229, .07);
}
.form .btn {
  background: var(--rust); border-color: var(--rust); color: var(--cream);
  padding-block: 16px;
}
.form .btn:hover { background: var(--rust-light); border-color: var(--rust-light); color: var(--ink); }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form__note { font-size: 12.5px; color: var(--ink-3); }
.form__hp {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.form__status { font-size: 14px; min-height: 1.2em; }
.form__status[data-state="error"] { color: var(--rust-light); }
.form__status[data-state="ok"] { color: #7FC98F; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink); color: var(--ink-4);
  padding-block: clamp(40px, 5vh, 60px) 28px;
  border-block-start: 1px solid var(--line-inv-2);
}
.site-footer a:hover { color: var(--rust-light); }
.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block-end: 28px;
  border-block-end: 1px solid var(--line-inv-2);
}
.footer__claim {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700; color: var(--paper); letter-spacing: -.025em;
  max-width: 20ch;
}
.footer__col h2 {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 12px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer__col a { font-size: 14.5px; }
.footer__bottom {
  padding-block-start: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  justify-content: space-between;
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .04em; color: var(--ink-3);
}

/* --- Consent banner ----------------------------------------------------- */
.consent {
  position: fixed; z-index: 400;
  inset-inline: 12px; inset-block-end: 12px;
  max-width: 560px; margin-inline: auto;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--line-inv);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(25, 21, 16, .3);
  display: none;
}
.consent[data-visible="true"] { display: block; }
.consent p { font-size: 14px; color: var(--ink-4); margin-block-end: 14px; }
.consent p a { color: var(--rust-light); text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn {
  background: var(--paper); border-color: var(--paper); color: var(--ink);
  padding: 11px 20px; font-size: 14px;
}
.consent .btn:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.consent .btn--ghost {
  background: transparent; color: var(--paper); border-color: var(--line-inv);
}
.consent .btn--ghost:hover { background: rgba(243, 238, 229, .1); border-color: var(--paper); color: var(--paper); }

/* --- Sub-page bits ------------------------------------------------------ */
.breadcrumb {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb a:hover { color: var(--rust); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.breadcrumb li { display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }

.page-hero {
  padding-block: clamp(120px, 16vh, 172px) clamp(36px, 5vh, 56px);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700; letter-spacing: -.035em;
  margin-block-start: 14px; max-width: 20ch; text-wrap: balance;
}
.page-hero__lede {
  margin-block-start: 18px;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--ink-2); max-width: 60ch;
}

.checklist { list-style: none; display: grid; gap: 12px; margin-block-start: 8px; }
.checklist li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start; color: var(--ink-2);
}
.checklist li::before {
  content: "\2192"; color: var(--rust); font-weight: 600;
}

/* --- Animation ---------------------------------------------------------- */
@keyframes hhPulse { 0% { transform: scale(.6); opacity: .7 } 100% { transform: scale(1.7); opacity: 0 } }
@keyframes hhScroll { to { transform: translateX(-50%) } }
[dir="rtl"] .marquee__track { animation-name: hhScrollRtl; }
@keyframes hhScrollRtl { to { transform: translateX(50%) } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee__track { animation: none; }
}
