/* Starting point: no page margin, pictures never wider than their column, hidden means hidden,
   and room for a phone's notch and home bar. */
:root {
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
body {
  margin: 0;
  padding: 0;
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #fff;
  color: #000;
}
img {
  max-width: 100%;
}
[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

/* Cormorant and Jost, served from this site. */
@font-face {
  font-family: "Cormorant";
  src: url(/assets/fonts/cormorant.woff2) format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url(/assets/fonts/cormorant-italic.woff2) format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url(/assets/fonts/jost.woff2) format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

/* The home page. Layout concept: a five-star hotel washroom. A calm plaster ground, one lit object
   per section, and one dark band for contrast. The page commits to this one palette (no automatic
   light or dark switch). Arabic uses the same rules, with its own typefaces at the end of the file. */
:root {
  /* Rose plaster, oxblood ink, bronze lines */
  --ground: #f5e8e2;
  --raise: #eedad3;
  --raise-2: #e5ccc4;
  --stage: #ddbcb3;
  --line: #d9bdb4;
  --line-soft: #e6d0c8;
  --ink: #3a1620;
  --ink-soft: #6a4650;
  --ink-mute: #7f5964;
  --accent: #8c3f52;
  --accent-line: #b88663;
  --rose-text: #b2485f;
  --btn-bg: #3a1620;
  --btn-ink: #f8eee9;
  --btn-hover: #8c3f52;
  --field: #fbf3ef;
  --band-bg: #3a1620;
  --band-ink: #f8eae4;
  --band-soft: #d2b3b6;
  --band-accent: #f0b5c0;
  --glow: rgba(214, 150, 140, 0.26);
  --shadow: rgba(80, 30, 40, 0.28);
  --error: #a1271b;
  --ok: #2f6b4a;
  color-scheme: light;

  /* The drawn LAYN BOX keeps its own materials */
  --metal: #d6b180;
  --metal-deep: #b88663;
  --on-metal: #1a120b;
  --unit: #f4ede1;
  --unit-shade: #e4d9c8;
  --well: #2b1d13;
  --pad: #e9a9b6;
  --pad-deep: #d98a9b;
  --f-ivory: #efe7da;
  --f-sand: #d5be9e;
  --f-black: #1d1a18;
  --f-blush: #e6c3bf;
  --f-sage: #4c5d50;

  --display: "Cormorant", "Cormorant Garamond", "Hoefler Text", "Baskerville", Georgia, serif;
  --text: "Jost", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --fs-display: clamp(4.4rem, 12.5vw, 8.75rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 4.1rem);
  --fs-h3: clamp(1.55rem, 2.4vw, 1.95rem);
  --fs-lede: clamp(1.15rem, 1.7vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.74rem;

  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --u: clamp(14px, 3.4vw, 18px); /* drawing unit for the box */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
}
img {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 em,
.h3 em {
  font-style: italic;
  color: var(--accent);
}
.h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.12;
  text-wrap: balance;
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  font-weight: 300;
  max-width: 30em;
}
.soft {
  color: var(--ink-soft);
}
.small {
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.measure {
  max-width: 34em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  font: 400 0.8rem/1 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.25em 1.9em;
  border-radius: 2px;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-line:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-small {
  padding: 1em 1.4em;
  font-size: 0.74rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.link {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.45em;
  border-bottom: 1px solid var(--accent-line);
}
.link:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 70% at 76% 40%, var(--glow), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  min-width: 0;
}
.list-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.list-word {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.list-note {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: end;
}
.list-row-new {
  border-bottom-color: var(--accent-line);
}
.list-row-new .list-word {
  font-style: italic;
  color: var(--rose-text);
}
.list-row-new .list-note {
  color: var(--accent);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2rem;
  margin-top: 0.4rem;
}
.hero-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-roots span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background: var(--line);
  margin-inline-end: 1.2rem;
  vertical-align: -0.1em;
}

.arch {
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
  min-width: 0;
}
.arch-frame {
  position: relative;
}
.arch-frame::after {
  content: "";
  position: absolute;
  inset: -0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: 999px 999px 4px 4px;
  opacity: 0.55;
  pointer-events: none;
}
.arch-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 2px 2px;
  box-shadow: 0 2.5rem 5rem -2rem var(--shadow);
}
.arch-cap {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

/* Sections */
.section {
  padding-block: var(--section);
  scroll-margin-top: 4.5rem;
}
.section-raised {
  background: var(--raise);
  border-block: 1px solid var(--line-soft);
}
.head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-width: 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

/* Why: the numbers */
.stats-label {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.8rem clamp(1rem, 2.5vw, 2.2rem) 2rem 0;
  min-width: 0;
}
.stat + .stat {
  padding-inline-start: clamp(1rem, 2.5vw, 2.2rem);
  border-inline-start: 1px solid var(--line);
}
.stat-n {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.6rem, 8.5vw, 6.5rem);
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: lining-nums;
}
.stat-n small {
  font-size: 0.42em;
  margin-inline-start: 0.05em;
}
.stat-t {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: 17em;
}
.source {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.source a {
  color: var(--ink-soft);
  text-underline-offset: 0.3em;
  text-decoration-color: var(--accent-line);
}

/* How: the box you can press */
.how-split {
  align-items: center;
}
.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  min-width: 0;
  position: relative;
  order: -1;
}
.stage {
  width: min(100%, 23rem);
  max-width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 999px 999px 2px 2px;
  background: var(--stage);
  box-shadow: inset 0 0 0 1px var(--line);
}
.box {
  position: relative;
  width: calc(var(--u) * 10.5);
  height: calc(var(--u) * 17);
  border-radius: calc(var(--u) * 1.6);
  background: linear-gradient(165deg, var(--unit), var(--unit-shade));
  box-shadow:
    inset calc(var(--u) * -0.34) 0 0 var(--metal),
    inset 0 0 0 1px var(--unit-shade),
    0 calc(var(--u) * 2.2) calc(var(--u) * 3.5) calc(var(--u) * -1.2) var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--u) * 1.5);
}
.box-logo {
  width: calc(var(--u) * 4.4);
  height: auto;
}
.box-drops {
  display: flex;
  gap: calc(var(--u) * 0.3);
  margin-top: calc(var(--u) * 0.8);
}
.box-drops i {
  width: calc(var(--u) * 0.34);
  height: calc(var(--u) * 0.34);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  background: var(--pad-deep);
}
.press {
  position: relative;
  margin-top: calc(var(--u) * 1.1);
  width: calc(var(--u) * 5.8);
  height: calc(var(--u) * 1.8);
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  color: var(--on-metal);
  font: 500 calc(var(--u) * 0.5)/1 var(--text);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-indent: 0.26em;
  background: linear-gradient(180deg, var(--metal), var(--metal-deep));
  box-shadow:
    0 calc(var(--u) * 0.22) 0 color-mix(in srgb, var(--metal-deep) 55%, #000),
    0 calc(var(--u) * 0.5) calc(var(--u) * 0.7) rgba(58, 43, 32, 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.press::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 999px;
}
.press.is-down,
.press:active {
  transform: translateY(calc(var(--u) * 0.18));
  box-shadow: 0 calc(var(--u) * 0.04) 0 color-mix(in srgb, var(--metal-deep) 55%, #000);
}
.press.is-waiting::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--metal-deep) 65%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 calc(var(--u) * 0.9) transparent;
  }
}
.tray {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 1.7);
  transform: translateX(-50%);
  width: calc(var(--u) * 6.6);
  height: calc(var(--u) * 4.2);
  padding: calc(var(--u) * 0.5);
  border-radius: calc(var(--u) * 1.15);
  background: linear-gradient(180deg, var(--metal), var(--metal-deep));
  box-shadow: 0 calc(var(--u) * 0.5) calc(var(--u) * 0.9) rgba(58, 43, 32, 0.3);
}
.tray-well {
  height: 100%;
  border-radius: calc(var(--u) * 0.75);
  background: var(--well);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: calc(var(--u) * 0.28);
}
.pad {
  width: calc(var(--u) * 4.5);
  height: calc(var(--u) * 2.5);
  border-radius: calc(var(--u) * 0.5);
  background: linear-gradient(140deg, var(--pad), var(--pad-deep));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pad) 60%, #fff);
  transform: translateY(-150%);
  transition:
    transform 0.75s cubic-bezier(0.2, 0.85, 0.25, 1.06),
    opacity 0.3s ease;
}
.pad.is-out {
  transform: translateY(0) rotate(-4deg);
}
.pad.is-taken {
  transform: translateY(30%) rotate(-4deg);
  opacity: 0;
}
.pad.is-reset {
  transition: none;
}
.demo-status {
  position: relative;
  min-height: 3.3em;
  max-width: 24em;
  text-align: center;
  color: var(--ink-soft);
}
.demo-status strong {
  color: var(--ink);
  font-weight: 400;
}

.steps {
  display: flex;
  flex-direction: column;
  margin-top: 2.2rem;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  color: var(--accent);
  padding-top: 0.7em;
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.tag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.55em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* The object: finishes and specification */
.object {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 100%;
  border-radius: 2px;
  overflow: hidden;
  background: var(--raise-2);
  box-shadow: 0 2.5rem 5rem -2rem var(--shadow);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.frame img.is-on {
  opacity: 1;
}
.object-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-width: 0;
}
.finish-name {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--ink-mute);
  font: 400 0.78rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.swatch i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 4px var(--raise),
    0 0 0 5px transparent;
  transition: box-shadow 0.2s ease;
}
.swatch[aria-pressed="true"] {
  color: var(--ink);
}
.swatch[aria-pressed="true"] i {
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 4px var(--raise),
    0 0 0 5px var(--accent);
}
.spec {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}
.spec dt,
.spec dd {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 1.05rem;
}
.spec dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Interlude */
.interlude {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
  background: var(--band-bg);
  color: var(--band-ink);
}
.interlude-inner .soft {
  color: var(--band-soft);
}
.interlude::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 60% at 50% 50%, rgba(184, 134, 99, 0.2), transparent 75%);
  pointer-events: none;
}
.interlude-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}
.statement {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 15em;
  text-wrap: balance;
}
.statement em {
  font-style: italic;
  color: var(--band-accent);
}

/* Spaces */
.spaces {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.space {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.5rem 2.5rem;
  align-items: baseline;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.space-for {
  font-size: 0.92rem;
  color: var(--ink-mute);
}

/* Ways to start */
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 2rem 3rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  background: linear-gradient(120deg, var(--raise-2), var(--raise));
}
.pilot-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 3.5rem);
  margin-top: 2.5rem;
}
.model {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.note {
  margin-top: 2.2rem;
}

/* Questions */
.faq {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.q {
  border-top: 1px solid var(--line);
}
.q:last-child {
  border-bottom: 1px solid var(--line);
}
.q summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: 1.15;
}
.q summary::-webkit-details-marker {
  display: none;
}
.q summary::after {
  content: "+";
  font-family: var(--text);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.q[open] summary::after {
  transform: rotate(45deg);
}
.q p {
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
  max-width: 36em;
}

/* Enquiry */
.chapter {
  margin-top: 1rem;
  padding-inline-start: 1.2rem;
  border-inline-start: 1px solid var(--accent-line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.panel {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  min-width: 0;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.1rem;
  align-items: start;
}
.label {
  min-height: 2.6em;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 0.5em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.label,
.legend {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.opt {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}
.input {
  width: 100%;
  font: 300 1rem/1.4 var(--text);
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 0.9rem;
}
.input::placeholder {
  color: var(--ink-mute);
}
.input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.input[aria-invalid="true"] {
  border-color: var(--error);
}
textarea.input {
  min-height: 6.5rem;
  resize: vertical;
}
.set {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.chip-input:checked + .chip {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 400;
}
.chip-input:focus-visible + .chip {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.err {
  font-size: 0.9rem;
  color: var(--error);
}
.form-foot {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-foot .btn {
  align-self: flex-start;
}
.form-note a {
  color: var(--ink-soft);
  text-underline-offset: 0.3em;
}
.result {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}
.result-tag {
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.result-ok .result-tag {
  color: var(--ok);
}
.result-off .result-tag {
  color: var(--error);
}
.result-copy {
  min-height: 13rem;
  font-size: 0.95rem;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 900px) {
  .hero::before {
    background: radial-gradient(90% 45% at 50% 78%, var(--glow), transparent 70%);
  }
  .hero-grid,
  .split,
  .object {
    grid-template-columns: minmax(0, 1fr);
  }
  .arch {
    width: min(86%, 24rem);
  }
  .demo {
    order: 0;
    margin-top: 1rem;
  }
  .stage {
    width: min(80%, 21rem);
  }
  .models {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .pilot {
    grid-template-columns: minmax(0, 1fr);
  }
  .space {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat + .stat {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .label {
    min-height: 0;
  }
  .spec {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .spec dd {
    padding-top: 0.3rem;
  }
  .list-note {
    letter-spacing: 0.14em;
  }
  .hero-roots {
    flex-direction: column;
  }
  .hero-roots span + span::before {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pad,
  .press,
  .btn,
  .frame img,
  .q summary::after {
    transition: none;
  }
  .press.is-waiting::before {
    animation: none;
  }
}

.quick-contact {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.quick-contact a {
  color: var(--ink);
  text-underline-offset: 0.3em;
  text-decoration-color: var(--accent-line);
}

/* Shown above a page that is still under review (DRAFT_PAGES in src/pages.js). */
.draft-note {
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  background: var(--raise-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* --- The page as laynbox.com's home ------------------------------------------------------- */

/* The main heading says what LAYN makes (the small line) and then makes its case (the list). */
.hero-title {
  display: flex;
  flex-direction: column;
  gap: 1.7rem;
  font: inherit;
}
.hero-title .eyebrow {
  display: block;
}
.list {
  display: flex;
  flex-direction: column;
}

/* Old addresses such as /#contact and /#collection still land on the right section. */
.alias {
  display: block;
  height: 0;
  scroll-margin-top: 5rem;
}

.space .link,
.more .link {
  display: inline-block;
}
.space .link {
  margin-top: 1rem;
}
.more {
  margin-top: 2rem;
}

/* What partners say, when the admin has testimonials to show (Website → Testimonials). */
.testimonials {
  padding-block: var(--section);
}
.testimonials .section-heading {
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.testimonials h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.testimonials-grid {
  max-width: 76rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 0;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.testimonial figcaption strong {
  font-weight: 500;
  color: var(--ink);
}
:lang(ar) .testimonials h2 {
  font-weight: 400;
  line-height: 1.45;
}
:lang(ar) .testimonial blockquote {
  line-height: 1.7;
}

/* --- Arabic ------------------------------------------------------------------------------- */
/* The site's own Noto faces cover Arabic letters only, so Latin words such as LAYN BOX keep
   Cormorant and Jost. Arabic takes no letter-spacing and no italics, and needs taller lines. */

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url(/assets/fonts/noto-naskh-arabic.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url(/assets/fonts/noto-sans-arabic.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41,
    U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root:lang(ar) {
  --display: "Noto Naskh Arabic", "Cormorant", "Traditional Arabic", Georgia, serif;
  --text: "Noto Sans Arabic", "Jost", "Segoe UI", Tahoma, sans-serif;
  --fs-display: clamp(3.3rem, 9.4vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.4rem);
  --fs-label: 0.88rem;
}
:lang(ar) body {
  font-weight: 400;
  line-height: 1.9;
}
:lang(ar) *,
:lang(ar) *::before,
:lang(ar) *::after {
  letter-spacing: 0 !important;
}
:lang(ar) em,
:lang(ar) .list-row-new .list-word {
  font-style: normal;
}
:lang(ar) .list-word {
  line-height: 1.45;
}
:lang(ar) .h2,
:lang(ar) .statement {
  font-weight: 400;
  line-height: 1.45;
}
:lang(ar) .h3,
:lang(ar) .q summary {
  line-height: 1.6;
}
:lang(ar) .lede {
  line-height: 1.85;
}
:lang(ar) .btn,
:lang(ar) .link,
:lang(ar) .nav-link {
  font-size: 0.95rem;
}
:lang(ar) .btn-small {
  font-size: 0.9rem;
}
:lang(ar) .tag,
:lang(ar) .chip {
  font-size: 0.95rem;
}
:lang(ar) .hero::before {
  background: radial-gradient(60% 70% at 24% 40%, var(--glow), transparent 70%);
}
