/* ==========================================================================
   Luxury Rent — landing page
   Brand values come from "13 Brand Guide/Luxury Rent Brand Guide.pdf".
   ========================================================================== */

/* ---------- Brand tokens ---------- */
:root {
  /* Colours (brand guide p.5) */
  --ruby: #b3102f;
  --ruby-bright: #e8254b; /* lines, dots and large headlines only */
  --ruby-deep: #6f0a20;
  --ruby-light: #ff7a91;
  --ink: #17090c;
  --ink-muted: #5e4b50;
  --mist: #f8f4f5;
  --line: #ebe3e5;
  --white: #ffffff;

  /* Type (brand guide p.6) */
  --font-en: "Sora", system-ui, sans-serif;
  --font-ar: "Alexandria", "Sora", system-ui, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 0.95rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --text-h2: clamp(2rem, 1.3rem + 2vw, 3rem);
  --text-display: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem);

  --section-y: clamp(4rem, 2rem + 6vw, 7.5rem);

  /* Layout */
  --container: 77rem; /* 1232px, matches the header mock */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --header-h: 5rem;

  /* The slant borrowed from the logo's crossing (brand guide p.9) */
  --slant: 12%;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ar) {
  font-family: var(--font-ar);
}

:lang(en) {
  font-family: var(--font-en);
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ruby-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Buttons ---------- */
/* Sharp corners everywhere, matching the logo and icon grid. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0.75rem 2rem;
  border: 0;
  border-radius: 0;
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn--primary {
  background: var(--ruby);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--ruby-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-mark img {
  width: 66px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link,
.lang-toggle {
  position: relative;
  padding-block: 0.25rem;
  font-size: var(--text-base);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ruby-bright);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.lang-toggle {
  border: 0;
  background: none;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--ruby);
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2rem, 1rem + 4vw, 2.5rem) clamp(4rem, 2rem + 6vw, 7.5rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* Latin runs wider than Arabic at the same size. */
:lang(en) .hero__title {
  font-size: calc(var(--text-display) * 0.9);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero__title > span {
  display: block;
}

.hero__title-accent {
  color: var(--ruby);
}

.hero__alt {
  margin-top: 1.5rem;
  font-size: var(--text-lg);
  line-height: 1.4;
}

.hero__lede {
  margin-top: 1.25rem;
  max-width: 34ch;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}

.hero__cta {
  margin-top: 2rem;
}

/* The ruby panel: name pattern, white logo, slanted inner edge. */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 592 / 420;
  background-color: var(--ruby);
  background-image: url("../assets/brand/pattern-kufic-ruby.svg");
  background-size: 640px auto;
  background-position: center;
}

[dir="rtl"] .hero__visual {
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

[dir="ltr"] .hero__visual {
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

/* Nudge the logo toward the panel's wide side so it looks centred. */
.hero__logo {
  width: min(78%, 460px);
  height: auto;
  margin-inline-start: calc(var(--slant) * 0.5);
}

/* ---------- Section heading (shared) ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem);
  margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--ruby);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* A short stretch of the brand line. */
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--ruby-bright);
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

:lang(en) .section-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lede {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}

/* ---------- Services ---------- */
.services {
  padding-block: var(--section-y);
  background: var(--mist);
}

/* Cards share hairline borders so the row reads as one piece. */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  padding: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--white);
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 3px;
  background: var(--ruby-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

[dir="rtl"] .service-card::before {
  transform-origin: right;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.75rem;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

:lang(en) .service-card__title {
  font-weight: 600;
}

.service-card__alt {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.service-card__text {
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

/* Ruby strip: white icons on ruby, per the brand guide. */
.included {
  display: flex;
  align-items: center;
  gap: 1.5rem clamp(2rem, 1rem + 3vw, 4rem);
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  background: var(--ruby);
  color: var(--white);
}

.included__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1rem;
}

.included__head img {
  width: 40px;
  height: 40px;
}

.included__title {
  font-size: var(--text-lg);
  font-weight: 600;
  white-space: nowrap;
}

.included__list {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding-inline-start: clamp(2rem, 1rem + 3vw, 4rem);
  border-inline-start: 1px solid rgb(255 255 255 / 0.25);
}

.included__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.35;
}

.included__item img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.services__group-title {
  margin-bottom: 1.25rem;
  font-size: var(--text-lg);
  font-weight: 600;
}

/* Design, growth and add-ons: three short lists under the strip. */
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 1rem + 3vw, 4rem);
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.extras__group {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ruby);
}

.extras__title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

:lang(en) .extras__title {
  font-weight: 600;
}

.extras__list {
  margin-top: 1rem;
}

.extras__list li {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.5rem;
  line-height: 1.5;
}

/* Square dot, like the dots in the Kufic lettering. */
.extras__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6em;
  background: var(--ruby-bright);
}

/* ---------- Our work ---------- */
.work {
  padding-block: var(--section-y);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 1.5rem + 3vw, 4rem) clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

/* Frames borrow the slant of the logo's crossing. Neighbouring frames lean
   the same way ("/"), so the gap between them reads like one stroke of the X. */
.work-card__frame {
  --browser-left: 11%;
  --browser-right: 11%;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 11;
  padding-top: 9%;
  overflow: hidden;
  background-color: var(--mist);
  background-image: url("../assets/brand/pattern-loop-mist.svg");
  background-size: 800px auto;
}

.work-card--ruby .work-card__frame {
  background-color: var(--ruby);
  background-image: url("../assets/brand/pattern-loop-ruby.svg");
}

[dir="ltr"] .work-card:nth-child(odd) .work-card__frame,
[dir="rtl"] .work-card:nth-child(even) .work-card__frame {
  --browser-left: 7%;
  --browser-right: 16%;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

[dir="ltr"] .work-card:nth-child(even) .work-card__frame,
[dir="rtl"] .work-card:nth-child(odd) .work-card__frame {
  --browser-left: 16%;
  --browser-right: 7%;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

.browser {
  flex: 1;
  margin-left: var(--browser-left);
  margin-right: var(--browser-right);
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  container-type: inline-size;
}

.browser__bar {
  display: flex;
  gap: 5px;
  padding: 2.2cqi 2.6cqi;
  border-bottom: 1px solid var(--line);
}

.browser__bar span {
  width: 1.6cqi;
  height: 1.6cqi;
  background: var(--line);
}

.browser__shot {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.work-card__meta {
  margin-top: 1.25rem;
}

.work-card__tag {
  color: var(--ruby);
  font-size: var(--text-sm);
  font-weight: 500;
}

.work-card__name {
  margin-top: 0.25rem;
  font-family: var(--font-en);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
}

.work-card__text {
  max-width: 52ch;
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

.work-card__link,
.work-card__private {
  display: inline-flex;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
}

.work-card__link {
  color: var(--ruby);
  border-bottom: 1px solid currentColor;
}

.work-card__link:hover {
  color: var(--ruby-deep);
}

[dir="rtl"] .work-card__link [aria-hidden="true"] {
  transform: scaleX(-1);
}

.work-card__private {
  color: var(--ink-muted);
}

.work-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.work-cta p {
  max-width: 40ch;
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.4;
}

/* Drawn placeholder screens. Sized in container units so they scale with the frame. */
.mock {
  --mock-fill: #f1eaec;
  --mock-line: #ddd2d5;
  display: grid;
  gap: 3.5cqi;
  aspect-ratio: 16 / 9;
  padding: 4cqi 5cqi;
  overflow: hidden;
}

.mock :where(span) {
  display: block;
}

.m-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  padding-bottom: 2.5cqi;
  border-bottom: 1px solid var(--line);
}

.m-nav::after {
  content: "";
  width: 34%;
  height: 1.4cqi;
  margin-inline-start: auto;
  background: var(--mock-line);
}

.m-dot {
  width: 4cqi;
  height: 4cqi;
  background: var(--ruby);
}

.m-line {
  width: 80%;
  height: 1.6cqi;
  background: var(--mock-line);
}

.m-line--lg {
  width: 92%;
  height: 3.4cqi;
  background: var(--ink);
}

.m-line--short {
  width: 55%;
}

.m-btn {
  width: 20cqi;
  height: 5cqi;
  margin-top: 1cqi;
  background: var(--ruby);
}

.m-img {
  background: var(--mock-fill);
}

/* Company website: headline and image */
.mock--site {
  grid-template: "nav nav" auto "copy img" 1fr / 1fr 1fr;
}

.m-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.4cqi;
}

.mock--site .m-img {
  grid-area: img;
}

/* Online store: product tiles */
.mock--store {
  grid-template: "nav" auto "grid" 1fr / 1fr;
}

.m-grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3cqi;
}

.m-tile {
  display: flex;
  flex-direction: column;
  gap: 1.8cqi;
}

.m-tile .m-img {
  flex: 1;
}

.m-price {
  width: 30%;
  height: 1.6cqi;
  background: var(--ruby-bright);
}

/* Booking website: calendar and booking panel */
.mock--booking {
  grid-template: "nav nav" auto "cal side" 1fr / 1.5fr 1fr;
}

.m-cal {
  grid-area: cal;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-content: start;
  gap: 1.6cqi;
}

.m-cal span {
  aspect-ratio: 1;
  background: var(--mock-fill);
}

.m-cal .is-on {
  background: var(--ruby);
}

.m-side {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 2.2cqi;
  padding: 3cqi;
  background: var(--mock-fill);
}

/* Quiz game: two teams and a points board */
.mock--board {
  grid-template-rows: auto 1fr;
}

.m-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-team {
  width: 22cqi;
  height: 4.5cqi;
  background: var(--ruby);
}

.m-team--b {
  background: var(--ink);
}

.m-score {
  width: 12cqi;
  height: 1.6cqi;
  background: var(--mock-line);
}

.m-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.4cqi;
}

.m-board span {
  background: var(--mock-fill);
}

.m-board .is-head {
  background: var(--ink);
}

.m-board .is-used {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mock-line);
}

.m-board .is-on {
  background: var(--ruby);
}

/* Web app: sidebar, stats and chart */
.mock--dash {
  grid-template-columns: 22% 1fr;
  gap: 0;
  padding: 0;
}

.m-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.6cqi;
  padding: 4cqi 3cqi;
  background: var(--ink);
}

.m-sidebar .m-line {
  background: rgb(255 255 255 / 0.22);
}

.m-sidebar .m-dot {
  margin-bottom: 1.5cqi;
  background: var(--ruby-bright);
}

.m-main {
  display: flex;
  flex-direction: column;
  gap: 4cqi;
  padding: 4cqi;
}

.m-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5cqi;
}

.m-stats span {
  height: 9cqi;
  background: var(--mock-fill);
  border-top: 0.6cqi solid var(--ruby-bright);
}

.m-chart {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 2.4cqi;
  border-bottom: 1px solid var(--line);
}

.m-chart span {
  flex: 1;
  height: var(--h);
  background: var(--mock-line);
}

.m-chart .is-on {
  background: var(--ruby);
}

/* ---------- Contact ---------- */
.contact {
  padding-top: var(--section-y);
  padding-bottom: 1.5rem;
  background: var(--ruby);
  color: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
  padding-bottom: var(--section-y);
}

.contact .eyebrow {
  color: var(--white);
}

.contact .eyebrow::before {
  background: var(--ruby-light);
}

.contact__lede {
  max-width: 38ch;
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 0.85);
  font-size: var(--text-lg);
}

.contact__methods {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact__methods li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(255 255 255 / 0.35);
}

.contact__label {
  display: block;
  color: rgb(255 255 255 / 0.75);
  font-size: var(--text-sm);
}

.contact__value {
  font-family: var(--font-en);
  font-size: var(--text-lg);
  font-weight: 500;
}

[dir="rtl"] .contact__value {
  text-align: right;
}

.contact__value[href]:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* White form card on ruby. */
.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--white);
  color: var(--ink);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  font-size: var(--text-sm);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d8ccd0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ruby);
  outline: 1px solid var(--ruby);
  outline-offset: 0;
}

.field ::placeholder {
  color: #9c8a8f;
}

.field select {
  appearance: none;
  padding-inline-end: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317090C' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 1.125rem;
  background-position: right 1rem center;
  cursor: pointer;
}

[dir="rtl"] .field select {
  background-position: left 1rem center;
}

.was-submitted .field :invalid {
  border-color: var(--ruby);
  background-color: #fdf3f5;
}

.contact-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status {
  color: var(--ruby);
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-form__note {
  color: var(--ink-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* The loop band runs unbroken along the bottom edge (brand guide p.7). */
.loop-band {
  height: 22px;
  background-image: url("../assets/brand/band-white-tile.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  background: var(--ink);
  color: rgb(255 255 255 / 0.72);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 1rem + 4vw, 5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.site-footer__logo {
  width: 200px;
  height: auto;
  margin-bottom: 1.25rem;
}

.site-footer__brand p {
  max-width: 36ch;
}

.site-footer__heading {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
}

.site-footer__links {
  display: grid;
  gap: 0.625rem;
}

.site-footer__links a {
  overflow-wrap: anywhere;
}

.site-footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--text-sm);
}

/* ---------- Legal pages (privacy) ---------- */
.legal {
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) var(--section-y);
}

.legal__inner {
  max-width: calc(46rem + var(--gutter) * 2);
}

.legal__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--ruby);
  font-size: var(--text-sm);
  font-weight: 500;
}

.legal__back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal__updated {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.legal__intro {
  margin-top: 1.5rem;
  font-size: var(--text-lg);
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
}

:lang(en) .legal h2 {
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ul {
  display: grid;
  gap: 0.75rem;
}

.legal li {
  display: flex;
  gap: 0.75rem;
}

.legal li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.7em;
  background: var(--ruby-bright);
}

/* ---------- 404 page ---------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: 3rem;
  text-align: center;
}

.notfound__code {
  color: var(--ruby-bright);
  font-family: var(--font-en);
  font-size: clamp(5rem, 3rem + 8vw, 9rem);
  font-weight: 600;
  line-height: 1;
}

.notfound__title {
  margin-top: 1.5rem;
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.25;
}

.notfound__alt {
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: var(--text-lg);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn--ghost {
  border: 1px solid var(--ruby);
  background: transparent;
  color: var(--ruby);
}

.btn--ghost:hover {
  background: var(--ruby);
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .included {
    flex-direction: column;
    align-items: stretch;
  }

  .included__list {
    padding-inline-start: 0;
    padding-top: 1.5rem;
    border-inline-start: 0;
    border-top: 1px solid rgb(255 255 255 / 0.25);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 4.25rem;
  }

  .brand-mark img {
    width: 56px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-inline-end: -0.5rem;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
  }

  .nav-toggle__bars::before {
    top: -7px;
  }

  .nav-toggle__bars::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__link,
  .site-nav .lang-toggle {
    display: block;
    width: 100%;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--line);
    text-align: start;
    font-size: 1.0625rem;
  }

  .site-nav .lang-toggle {
    border-bottom: 0;
    color: var(--ruby);
  }

  .site-nav__link::after {
    display: none;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Text first, panel second; the panel keeps a slant on its bottom edge. */
  .hero__visual,
  [dir="rtl"] .hero__visual,
  [dir="ltr"] .hero__visual {
    aspect-ratio: 4 / 3;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 8%));
  }

  .hero__logo {
    margin: 0 0 4% 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .included__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extras {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .service-list,
  .work-list,
  .contact-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .included__list,
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
