/* ==========================================================================
   Awtad Al-Akaria — site styles
   Mobile-first. Direction-agnostic: layout uses CSS logical properties so the
   same rules serve both the English (LTR) and Arabic (RTL) versions.
   ========================================================================== */

:root {
  --navy-900: #081a2e;
  --navy-800: #0b1f35;
  --navy-700: #12304f;
  --navy-600: #1b4368;

  --gold:      #d0b483;
  --gold-deep: #b8975f;
  --gold-soft: #e6d4b0;

  --ink:       #16202e;
  --body:      #4c5666;
  --muted:     #7c8698;
  --line:      #e3e7ec;
  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --bg-tint:   #f0f2f5;

  --wrap: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(8, 26, 46, .06), 0 2px 8px rgba(8, 26, 46, .05);
  --shadow-md: 0 10px 30px rgba(8, 26, 46, .10);
  --shadow-lg: 0 24px 60px rgba(8, 26, 46, .16);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
}

html[dir="rtl"] {
  --font-body: 'Almarai', system-ui, 'Segoe UI', sans-serif;
  --font-head: 'Almarai', system-ui, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ base -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-deep); }

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

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
}
.skip-link:focus { inset-block-start: 1rem; color: #fff; }

/* --------------------------------------------------------------- section -- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
.eyebrow::before {
  content: "";
  inline-size: 28px;
  block-size: 1px;
  background: var(--gold);
}

.lead { font-size: 1.06rem; color: var(--body); }

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--navy-800);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-transparent { background: transparent; }
.site-header.is-stuck {
  background: var(--navy-800);
  box-shadow: 0 2px 20px rgba(8, 26, 46, .28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  block-size: var(--header-h);
}

.brand { display: inline-flex; align-items: center; }
/* The source logo carries a lot of transparent padding, so it needs a taller
   box than its ink suggests to read at a normal header size. */
.brand-logo { block-size: 58px; inline-size: auto; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: rgba(255, 255, 255, .86);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding-block: .4rem;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 0;
  block-size: 1.5px;
  background: var(--gold);
  transition: inline-size .25s var(--ease);
}
.nav-list a:hover { color: #fff; }
.nav-list a:hover::after { inline-size: 100%; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--gold-soft);
  border: 1px solid rgba(208, 180, 131, .45);
  border-radius: 999px;
  padding: .38rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.lang-switch:hover {
  color: var(--navy-800);
  background: var(--gold);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  block-size: 2px;
  inline-size: 24px;
  margin-inline: auto;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  min-block-size: min(100svh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 3rem) 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--navy-900) url("../img/hero.jpg") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 26, 46, .72) 0%, rgba(8, 26, 46, .55) 45%, rgba(8, 26, 46, .88) 100%);
}

.hero-inner { max-width: 720px; }

.hero h1 {
  color: #fff;
  margin-bottom: .1em;
  letter-spacing: -.01em;
}
.hero-sub {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(.9rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
html[dir="rtl"] .hero-sub { letter-spacing: .1em; }

.hero-lead {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255, 255, 255, .84);
  max-width: 34em;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .18s var(--ease);
}
html[dir="rtl"] .btn { letter-spacing: 0; text-transform: none; font-size: .95rem; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold  { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--navy-900); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn--navy  { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn--navy:hover { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }

/* ----------------------------------------------------------------- about -- */

.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.pillar + .pillar { margin-top: 2.4rem; }
.pillar h3 {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
html[dir="rtl"] .pillar h3 { letter-spacing: 0; font-size: 1rem; }
.pillar h3::before {
  content: "";
  inline-size: 22px;
  block-size: 2px;
  background: var(--gold);
  flex: none;
}

/* ----------------------------------------------------------------- stats -- */

.stats {
  background: var(--navy-800);
  background-image: linear-gradient(135deg, rgba(8, 26, 46, .96), rgba(18, 48, 79, .92));
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: .5rem;
}
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
html[dir="rtl"] .stat-label { letter-spacing: 0; font-size: .95rem; text-transform: none; }

/* -------------------------------------------------------------- services -- */

.service {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.service + .service { margin-top: clamp(3rem, 7vw, 5.5rem); }

@media (min-width: 900px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service--flip .service-media { order: 2; }
}

.service-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.service-media img {
  inline-size: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.service-media:hover img { transform: scale(1.05); }

.service-index {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: .5rem;
}

/* -------------------------------------------------------------- projects -- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-tint);
}
.project-media img {
  inline-size: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.06); }

/* placeholder used when an original photograph is missing */
.project-media--empty {
  aspect-ratio: 7 / 5;
  display: grid;
  place-items: center;
  gap: .6rem;
  background:
    repeating-linear-gradient(45deg, #eef0f4 0 12px, #e7eaf0 12px 24px);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
html[dir="rtl"] .project-media--empty { letter-spacing: 0; text-transform: none; }
.project-media--empty svg { opacity: .5; }

.project-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: .35rem; }
.project-sub {
  font-size: .87rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

.spec-list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
  font-size: .87rem;
  border-bottom: 1px dashed var(--line);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-label { color: var(--body); }
.spec-value {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1rem;
  white-space: nowrap;
}

.project-count {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .88rem;
  color: var(--muted);
}
.project-count strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--gold-deep);
}

/* --------------------------------------------------------------- gallery -- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: .9rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tint);
}
.gallery-item img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 26, 46, .45));
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(1) img,
  .gallery-item:nth-child(6) img { block-size: 100%; aspect-ratio: auto; }
}

/* --------------------------------------------------------------- contact -- */

.contact {
  background: var(--navy-800);
  color: rgba(255, 255, 255, .82);
}
.contact h2, .contact h3 { color: #fff; }
.contact .lead { color: rgba(255, 255, 255, .78); }

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail svg { flex: none; color: var(--gold); margin-top: .25rem; }
.contact-detail dt {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: .15rem;
}
html[dir="rtl"] .contact-detail dt { letter-spacing: 0; font-size: .9rem; text-transform: none; }
.contact-detail dd { margin: 0; font-size: 1.08rem; color: #fff; }
.contact-detail dd a { color: #fff; }
.contact-detail dd a:hover { color: var(--gold); }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: .5rem;
}
html[dir="rtl"] .field label { letter-spacing: 0; font-size: .92rem; text-transform: none; }
.field .req { color: var(--gold); }

.field input,
.field textarea {
  inline-size: 100%;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-block-size: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .1);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #e06666; }

.field-error { display: block; margin-top: .35rem; font-size: .8rem; color: #f0a3a3; }

.form-note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .95rem 1.15rem;
  border-radius: var(--radius);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.form-note--ok    { background: rgba(120, 190, 140, .14); border: 1px solid rgba(120, 190, 140, .4); color: #cdeed6; }
.form-note--error { background: rgba(224, 102, 102, .12); border: 1px solid rgba(224, 102, 102, .4); color: #f5c8c8; }

/* honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }

/* ----------------------------------------------------------- page header -- */

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 5.5rem)) clamp(3rem, 7vw, 4.5rem);
  background: var(--navy-800) url("../img/hero.jpg") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 26, 46, .86), rgba(8, 26, 46, .74));
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255, 255, 255, .8); max-width: 46em; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: #fff; }

/* ------------------------------------------------------------ legal copy -- */

.prose { max-width: 60rem; }
.prose h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-inline-start: 1.25rem; margin-block: 0 1.1em; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--gold-deep); }

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.25rem;
  padding-bottom: 2.75rem;
}
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-brand { grid-column: span 2; max-width: 32rem; } }
.footer-brand img { margin-bottom: 1.25rem; block-size: 64px; inline-size: auto; }

.site-footer h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
html[dir="rtl"] .site-footer h3 { letter-spacing: 0; font-size: .98rem; text-transform: none; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: rgba(255, 255, 255, .62); }
.site-footer a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.5rem;
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 90;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-deep); color: var(--navy-900); }

/* ------------------------------------------------------------- reveal fx -- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- mobile nav */

@media (max-width: 979px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    inline-size: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    background: var(--navy-800);
    box-shadow: -18px 0 44px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  html[dir="rtl"] .nav {
    box-shadow: 18px 0 44px rgba(0, 0, 0, .35);
    transform: translateX(-100%);
  }
  .nav.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .nav-list a { display: block; padding-block: .95rem; font-size: 1.02rem; }
  .nav-list a::after { display: none; }

  .lang-switch { margin-top: 1.75rem; align-self: flex-start; }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(8, 26, 46, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  body.nav-open { overflow: hidden; }
}

@media (min-width: 980px) {
  .nav-backdrop { display: none; }
}

/* --------------------------------------------------------- small screens -- */

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand-logo { block-size: 46px; }
  .hero-actions .btn { inline-size: 100%; }
  .spec-list li { font-size: .84rem; }
}

/* ------------------------------------------------------------ preferences */

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

@media print {
  .site-header, .nav, .to-top, .contact form { display: none; }
  body { color: #000; }
}
