/* ==========================================================================
   elol.ir — foundations
   Chromatic Modernism: paper, ink, four brand colours and hard edges.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------ */
/* Peyda is a single family with full Persian, Arabic and Latin coverage.
   All weights are self-hosted; the browser only downloads the ones in use. */
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Peyda";
  src: url("../fonts/peyda/peyda-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Tokens ----------------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --bg-raised: #fbfaf7;
  --bg-sink: #ebe8e0;
  --ink: #111014;
  --ink-soft: #33302b;
  --muted: #6b665c;
  --line: #d8d3c8;
  --line-soft: #e7e3da;
  --line-strong: #111014;

  --orange: #e67817;
  --orange-text: #c9650f;
  --orange-label: #a94e06;
  --purple-label: #5f5590;
  --blue-label: #465a92;
  --green-label: #4f7a0d;
  --purple: #8e84b8;
  --green: #85c226;
  --blue: #667bb4;

  /* Fixed colours for bright brand surfaces and inverted sections. These do
     not flip with the theme, so dark text stays dark on orange/green/purple,
     and inverted sections stay dark with light text in both themes. */
  --on-brand: #111014;
  --inverse-bg: #111014;
  --inverse-fg: #f5f4f0;
  --inverse-muted: rgb(245 244 240 / 0.68);
  --inverse-subtle: rgb(245 244 240 / 0.55);
  --inverse-faint: rgb(245 244 240 / 0.5);
  --inverse-line: rgb(245 244 240 / 0.2);
  --inverse-line-strong: rgb(245 244 240 / 0.28);
  --inverse-line-soft: rgb(245 244 240 / 0.15);
  --inverse-wash: rgb(245 244 240 / 0.035);
  --inverse-grid: rgb(245 244 240 / 0.07);
  --inverse-ghost: rgb(245 244 240 / 0.09);
  --orange-tint: #f8e6d4;
  --purple-tint: #e9e5f1;
  --green-tint: #edf5dc;
  --blue-tint: #e4e9f3;

  --display: "Peyda", ui-sans-serif, sans-serif;
  --body: "Peyda", ui-sans-serif, sans-serif;
  --mono: "Peyda", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;

  --header-h: 78px;
  --gutter: clamp(1.125rem, 4.2vw, 4.5rem);
  --max: 1440px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.75, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 70px rgb(17 16 20 / 0.14);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111014;
  --bg-raised: #18171c;
  --bg-sink: #0b0a0d;
  --ink: #f5f4f0;
  --ink-soft: #d8d4ca;
  --muted: #a7a29a;
  --line: #302e36;
  --line-soft: #232128;
  --line-strong: #f5f4f0;

  --inverse-bg: #18171c;

  --orange-tint: #2d1d0e;
  --orange-text: #f08a2e;
  --orange-label: #f0a05a;
  --purple-label: #c0b6e6;
  --blue-label: #9db2e8;
  --green-label: #b7e56f;
  --purple-tint: #211e2d;
  --green-tint: #1d260f;
  --blue-tint: #1a1f2c;
  --shadow: 0 24px 70px rgb(0 0 0 / 0.45);
}

/* Peyda covers Persian, Arabic and Latin in one family, so RTL locales use
   the same type stack as LTR ones. */

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  /* Peyda's word space is narrow, especially in heavy weights. */
  word-spacing: 0.055em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll {
  overflow: hidden;
}
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
fieldset {
  border: 0;
  padding: 0;
}
dialog {
  color: inherit;
}
::selection {
  background: var(--orange);
  color: var(--on-brand);
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}

/* Typography ------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  word-spacing: 0.1em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
  line-height: 1.18;
  letter-spacing: 0;
}
html[dir="rtl"] body {
  letter-spacing: 0;
}
.display {
  font-size: clamp(3.25rem, 8.4vw, 8.75rem);
  line-height: 0.86;
}
.h1 {
  font-size: clamp(2.8rem, 6.4vw, 6.25rem);
}
.h2 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 0.94;
}
.h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  line-height: 1.02;
}
.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.small {
  font-size: 0.875rem;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
html[dir="rtl"] .mono {
  letter-spacing: 0;
  text-transform: none;
}
em {
  font-style: normal;
}
strong {
  font-weight: 600;
}
.balance {
  text-wrap: balance;
}

/* Layout ----------------------------------------------------------------- */
.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}
.wrap--wide {
  width: min(calc(100% - (var(--gutter) * 1.25)), 1600px);
}
.section {
  padding-block: clamp(4.5rem, 9vw, 9rem);
}
.section--tight {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.section--flush-top {
  padding-top: 0;
}
.stack {
  display: grid;
  gap: 1.5rem;
}
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.split--wide-start {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.split--wide-end {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}
.noscript-note {
  padding: 1rem var(--gutter);
  background: var(--orange);
  color: var(--on-brand);
  text-align: center;
}

/* Section furniture ------------------------------------------------------ */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-tag::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent, var(--orange));
  transform: rotate(45deg);
}
html[dir="rtl"] .section-tag {
  letter-spacing: 0;
  text-transform: none;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: clamp(2rem, 4vw, 4rem);
}
.section-head h2 {
  max-width: 14ch;
}
.section-head p {
  max-width: 44ch;
  color: var(--muted);
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
}
.color-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}
.color-strip span:nth-child(1) {
  background: var(--orange);
}
.color-strip span:nth-child(2) {
  background: var(--purple);
}
.color-strip span:nth-child(3) {
  background: var(--green);
}
.color-strip span:nth-child(4) {
  background: var(--blue);
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.availability::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent);
}
html[dir="rtl"] .availability {
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons & links -------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .btn__arrow {
  transition: transform 0.3s var(--ease);
}
html[dir="rtl"] .btn .btn__arrow {
  transform: scaleX(-1);
}
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-brand);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}
html[dir="rtl"] .btn:hover .btn__arrow {
  transform: scaleX(-1) translateX(4px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn--light {
  --btn-bg: var(--inverse-fg);
  --btn-fg: var(--inverse-bg);
  border-color: var(--inverse-fg);
}
.btn--light:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-brand);
}
.btn--small {
  min-height: 2.55rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow svg {
  transition: transform 0.25s var(--ease);
}
html[dir="rtl"] .link-arrow svg {
  transform: scaleX(-1);
}
.link-arrow:hover {
  color: var(--orange-label);
  gap: 0.8rem;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}
html[dir="rtl"] .link-arrow:hover svg {
  transform: scaleX(-1) translateX(3px);
}
.link-plain {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s;
}
.link-plain:hover {
  text-decoration-color: var(--orange);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag--ink {
  border-color: var(--ink);
  color: var(--ink);
}
.tag--concept {
  border-color: var(--purple);
  background: var(--purple-tint);
  color: var(--ink);
}
.tag--client {
  border-color: var(--green);
  background: var(--green-tint);
  color: var(--ink);
}
.tag--archive {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--ink);
}
html[dir="rtl"] .tag {
  letter-spacing: 0;
  text-transform: none;
}

/* Header ----------------------------------------------------------------- */
site-header {
  display: block;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(90deg);
}
.brand__word {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.brand__tld {
  color: var(--muted);
  font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
}
.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.1rem;
  height: 2px;
  background: var(--accent, var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
html[dir="rtl"] .site-nav a::after {
  transform-origin: right;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.header-cta {
  margin-inline-start: 0.5rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover {
  background: var(--bg-sink);
  border-color: var(--line);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}
.lang {
  position: relative;
}
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.lang__btn:hover,
.lang__btn[aria-expanded="true"] {
  border-color: var(--line);
}
.lang__btn svg {
  width: 0.7rem;
  height: 0.7rem;
  transition: transform 0.25s var(--ease);
}
.lang__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.lang__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.5rem);
  inset-inline-end: 0;
  z-index: 90;
  min-width: 11rem;
  max-height: min(70vh, 26rem);
  overflow-y: auto;
  padding: 0.4rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.lang__panel button,
.lang__panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 1px;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: start;
}
.lang__panel button:hover,
.lang__panel a:hover {
  background: var(--bg-sink);
}
.lang__panel [aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
}
.lang__panel .lang__native {
  font-size: 0.75rem;
  color: var(--muted);
}
.lang__panel [aria-current="true"] .lang__native {
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}
.menu-btn {
  display: none;
}
.menu-btn__lines {
  position: relative;
  width: 1.35rem;
  height: 0.7rem;
}
.menu-btn__lines::before,
.menu-btn__lines::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-btn__lines::before {
  top: 0;
}
.menu-btn__lines::after {
  top: 100%;
}
.menu-btn[aria-expanded="true"] .menu-btn__lines::before {
  top: 50%;
  transform: rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__lines::after {
  top: 50%;
  transform: rotate(-45deg);
}

/* Mobile menu ------------------------------------------------------------ */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 70;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  padding: 2rem var(--gutter);
}
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
html[dir="rtl"] .mobile-menu__nav a {
  letter-spacing: 0;
}
.mobile-menu__nav a .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.mobile-menu__nav a[aria-current="page"] {
  color: var(--orange-text);
}
.mobile-menu__foot {
  display: grid;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 1px solid var(--line);
  background: var(--bg-sink);
}
.mobile-menu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mobile-menu__langs button {
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}
.mobile-menu__langs .lang__native {
  display: none;
}
.mobile-menu__langs button[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Footer ----------------------------------------------------------------- */
site-footer {
  display: block;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sink);
  overflow: hidden;
}
.footer__stripe {
  height: 10px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 6vw, 5.5rem) 3rem;
}
.footer__brand {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  max-width: 34rem;
}
.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.footer__brand-mark {
  width: 3.2rem;
  height: 3.2rem;
}
.footer__brand-name {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.footer__brand p {
  color: var(--muted);
  max-width: 32ch;
}
.footer__email {
  width: fit-content;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.1rem;
}
.footer__email:hover {
  color: var(--orange-text);
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
  text-decoration: none;
}
.footer__social a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.footer__cols h3 {
  margin-block-end: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
html[dir="rtl"] .footer__cols h3 {
  letter-spacing: 0;
  text-transform: none;
}
.footer__cols ul {
  display: grid;
  gap: 0.45rem;
}
.footer__cols a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer__cols a:hover {
  color: var(--orange-label);
}
.footer__word {
  font-family: var(--display);
  font-size: clamp(9rem, 30vw, 28rem);
  font-weight: 800;
  line-height: 0.7;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  padding-inline: 1.5rem;
  margin-block: 0.5rem -0.06em;
  white-space: nowrap;
}
html[dir="rtl"] .footer__word {
  letter-spacing: 0;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom a {
  text-decoration: none;
}
.footer__bottom a:hover {
  color: var(--ink);
}
.footer__old {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 2.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.footer__old svg {
  width: 0.8rem;
  height: 0.8rem;
}
.footer__old:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
html[dir="rtl"] .footer__old {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] .footer__old svg {
  transform: scaleX(-1);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  color: var(--ink);
  font-weight: 500;
}
.to-top svg {
  width: 0.85rem;
  transition: transform 0.2s;
}
.to-top:hover svg {
  transform: translateY(-3px);
}

/* Reveal & motion -------------------------------------------------------- */
/* Keep the hidden state clip-free: IntersectionObserver treats a fully
   clipped target as non-intersecting, so it would never reveal. */
.reveal {
  transition: transform 0.9s var(--ease-out), opacity 0.5s var(--ease);
}
.js .reveal {
  transform: translateY(18px);
  opacity: 0;
}
.js .reveal.is-visible {
  transform: none;
  opacity: 1;
}
.reveal--delay {
  transition-delay: 0.12s;
}
.reveal--delay-2 {
  transition-delay: 0.24s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .js .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* Forms ------------------------------------------------------------------ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label,
.field-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
html[dir="rtl"] .field label,
html[dir="rtl"] .field-label {
  letter-spacing: 0;
  text-transform: none;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.1rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea {
  min-height: 8rem;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-inline-end: 1.8rem;
}
html[dir="rtl"] .field select {
  background-position: 14px 52%, 9px 52%;
  padding-inline-end: 0.1rem;
  padding-inline-start: 1.8rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: 0 2px 0 currentColor;
  background: color-mix(in srgb, var(--orange) 7%, transparent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-bottom-color: #b3261e;
}
[data-theme="dark"] .field input[aria-invalid="true"],
[data-theme="dark"] .field textarea[aria-invalid="true"],
[data-theme="dark"] .field select[aria-invalid="true"] {
  border-bottom-color: #ff9d97;
}
.field-error {
  font-size: 0.78rem;
  color: #b3261e;
}
[data-theme="dark"] .field-error {
  color: #ff9d97;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.checkbox input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--orange);
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.form-status {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 0.9rem;
}
.form-status--ok {
  border-color: var(--green);
  background: var(--green-tint);
}
.form-status--error {
  border-color: #b3261e;
}
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Accordion -------------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--line);
}
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0;
  text-align: start;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
html[dir="rtl"] .accordion__btn {
  letter-spacing: 0;
}
.accordion__icon {
  position: relative;
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.accordion__icon::after {
  transform: rotate(90deg);
}
.accordion__btn[aria-expanded="true"] .accordion__icon::after {
  transform: rotate(0);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.accordion__panel.is-open {
  grid-template-rows: 1fr;
}
.accordion__panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0;
  max-width: 62ch;
  color: var(--ink-soft);
}
.accordion__panel-inner > * {
  margin-block-end: 1.5rem;
}

/* Dialog ----------------------------------------------------------------- */
.case-dialog {
  width: min(92vw, 62rem);
  max-height: calc(100vh - 3rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: auto;
}
.case-dialog::backdrop {
  background: rgb(17 16 20 / 0.68);
  backdrop-filter: blur(5px);
}
.case-dialog__bar {
  height: 8px;
  background: var(--dialog-accent, var(--orange));
}
.case-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem;
}
.case-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.case-dialog__close:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.case-dialog__body {
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(1.6rem, 4vw, 3.5rem);
}
.case-dialog__summary {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  max-width: 48ch;
  color: var(--ink-soft);
}
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 2rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
}
.case-meta dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
html[dir="rtl"] .case-meta dt {
  letter-spacing: 0;
  text-transform: none;
}
.case-meta dd {
  margin-top: 0.25rem;
  font-size: 0.93rem;
}
.case-sections {
  display: grid;
  gap: 1.8rem;
}
.case-sections h3 {
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
html[dir="rtl"] .case-sections h3 {
  letter-spacing: 0;
  text-transform: none;
}
.case-sections p {
  max-width: 66ch;
  color: var(--ink-soft);
}
.case-dialog__cover {
  margin-block-end: 2rem;
}

/* Page hero shared ------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(3rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  overflow: clip;
}
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
}
.page-hero__title {
  font-size: clamp(3rem, 7.6vw, 7.25rem);
  line-height: 0.9;
  max-width: 15ch;
}
.page-hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-block-start: clamp(2rem, 5vw, 4rem);
  padding-block-start: 1.5rem;
  border-top: 1px solid var(--line);
}
.page-hero__foot p {
  max-width: 46ch;
  color: var(--ink-soft);
}

/* CTA band --------------------------------------------------------------- */
.cta-band {
  background: var(--inverse-bg);
  color: var(--inverse-fg);
  padding-block: clamp(4rem, 9vw, 8rem);
  position: relative;
  overflow: clip;
}
.cta-band h2 {
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 0.9;
  max-width: 13ch;
}
.cta-band p {
  color: var(--inverse-muted);
}
.cta-band .section-tag {
  color: var(--inverse-subtle);
  --accent: var(--green);
}
.cta-band .btn {
  --btn-bg: var(--inverse-fg);
  --btn-fg: var(--inverse-bg);
  border-color: var(--inverse-fg);
}
.cta-band .btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-brand);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.cta-band__aside {
  display: grid;
  gap: 1.5rem;
  max-width: 30rem;
}
.cta-band__email {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  width: fit-content;
  padding-bottom: 0.15rem;
}
.cta-band__email:hover {
  color: var(--green);
}
.cta-band .color-strip {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-nav {
    gap: 1.2rem;
  }
  .header-cta {
    display: none;
  }
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
}
@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .site-nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .lang {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }
  .header-tools {
    gap: 0.25rem;
  }
  .split,
  .split--wide-start,
  .split--wide-end,
  .page-hero__foot,
  .cta-band__inner {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer__word {
    font-size: clamp(8rem, 38vw, 14rem);
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .section-head {
    display: grid;
    gap: 1.25rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .case-meta {
    grid-template-columns: 1fr 1fr;
  }
  .case-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }
}

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .page-hero {
    padding-block: 1rem;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
