/* tokens.css */
/* HAVHEZ brand tokens — brand book pages 10 (colour) and 12–13 (type). */

@font-face { font-family: Roboto; src: url("../fonts/roboto-400.6e73df973b.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url("../fonts/roboto-500.97bb1a0034.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url("../fonts/roboto-700.e0038676c3.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Arabic script (tools/fonts-arabic.py), only for U+0600–06FF so Latin words and figures stay in Roboto.
   Almarai (the brand's Arabic face) has no ێ ۆ ە ڕ ڵ: Kurdish is set in Noto Kufi Arabic alone, never mixed —
   WebKit cannot join a letter taken from a fallback font. The bold file also answers weight 500, so the
   headings (Roboto Medium) come out bold in Arabic script. */
@font-face { font-family: Almarai; src: url("../fonts/almarai-400.8eb2ec54fa.woff2") format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F; }
@font-face { font-family: Almarai; src: url("../fonts/almarai-700.5c4c7b10c4.woff2") format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/kufi-400.84e3da1c43.woff2") format("woff2"); font-weight: 100 450; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F; }
@font-face { font-family: "Noto Kufi Arabic"; src: url("../fonts/kufi-700.09a78a8c47.woff2") format("woff2"); font-weight: 451 900; font-style: normal; font-display: swap; unicode-range: U+0600-06FF, U+200C-200F; }

/* Stand-ins shaped to Roboto's measurements (tools/fonts.py prints them), so text keeps its place while the font loads. */
@font-face { font-family: "Roboto fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); font-weight: 400; size-adjust: 100.32%; ascent-override: 92.48%; descent-override: 24.34%; line-gap-override: 0%; }
@font-face { font-family: "Roboto fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); font-weight: 500; size-adjust: 101.39%; ascent-override: 91.5%; descent-override: 24.08%; line-gap-override: 0%; }
@font-face { font-family: "Roboto fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"); font-weight: 700; size-adjust: 94.46%; ascent-override: 98.22%; descent-override: 25.85%; line-gap-override: 0%; }

:root {
  /* colour */
  --ink: #231c13;
  --ink-2: #2d2212;
  --ink-deep: #1e170e;
  --yellow: #f9ac23;
  --yellow-2: #f7b626;
  --yellow-deep: #f4a60c;
  --cream: #fff6e9;
  --sand: #efe8df;
  --stone: #e5ded6;
  --muted: #655b4e;                     /* ink softened; 6.1:1 on cream, 5.4:1 on sand */
  --line: rgba(35, 28, 19, .16);
  --line-light: rgba(255, 246, 233, .2);

  /* type */
  --font: Roboto, "Roboto fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-ar: Almarai, Roboto, "Roboto fallback", "Geeza Pro", Tahoma, sans-serif;
  --font-ku: "Noto Kufi Arabic", Roboto, "Roboto fallback", Tahoma, sans-serif;
  --t-small: clamp(.8125rem, .79rem + .1vw, .875rem);
  --t-body: clamp(1rem, .97rem + .16vw, 1.125rem);
  --t-lead: clamp(1.125rem, 1.04rem + .42vw, 1.4rem);
  --t-h3: clamp(1.3rem, 1.16rem + .7vw, 1.75rem);
  --t-h2: clamp(2rem, 1.42rem + 2.9vw, 4rem);
  --t-h1: clamp(2.5rem, 1.5rem + 4.9vw, 5.9rem);
  --t-num: clamp(4rem, 2rem + 9.5vw, 9.5rem);

  /* space */
  --wrap: 84rem;
  --gutter: clamp(1.25rem, .6rem + 3.2vw, 3.5rem);
  --gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
  --sec: clamp(4.5rem, 2.8rem + 7.4vw, 9rem);
  --hdr: 4.75rem;

  /* the mark leans 30° from the vertical; every slanted edge on the site uses the same angle */
  --slant: -30deg;
  --tan: .57735;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 47.99em) {
  :root { --hdr: 4rem; }
}

/* The Arabic and Kurdish pages: their own face, no letter-spacing (it breaks the joins), taller lines for the dots
   and marks above and below the letters, and no capitals to fake. */
:root:lang(ar) { --font: var(--font-ar); }
:root:lang(ku) { --font: var(--font-ku); }

/* base.css */
/* Reset and plain elements. Logical properties throughout, so a right-to-left language needs no second sheet. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 1rem);
  background: var(--ink-deep);            /* behind the page when it rubber-bands on a phone */
  overflow-x: clip;                       /* nothing decorative may widen the page */
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
b, strong { font-weight: 500; }
small { font-size: var(--t-small); }

img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
picture > img { width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 2px; }

::selection { background: var(--yellow); color: var(--ink); }

/* visually hidden, still read aloud */
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; inset-block-start: .75rem; inset-inline-start: .75rem; z-index: 100;
  padding: .8rem 1.1rem; background: var(--yellow); color: var(--ink); font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* Arabic words inside an English page: brand Arabic face, their own direction */
.ar { font-family: var(--font-ar); font-weight: 700; letter-spacing: 0; line-height: 1.5; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.pict { width: 3rem; height: 3rem; }

[hidden] { display: none !important; }

/* ── Arabic and Kurdish ─────────────────────────────────────────────────────────────────────────────
   A run in the other script keeps its own face: the language switcher shows «کوردی» on every page and
   «عربي» on the Kurdish one. Letter-spacing would pull the joined letters apart, so it is off throughout;
   headlines get the line height Arabic script needs for its dots and marks. */
[lang="ar"] { font-family: var(--font-ar); }
[lang="ku"] { font-family: var(--font-ku); }
[lang="en"] { font-family: var(--font); }
:root:is(:lang(ar), :lang(ku)) *, [lang="ar"], [lang="ku"] { letter-spacing: 0 !important; }
:root:is(:lang(ar), :lang(ku)) :is(h1, h2, h3, .hero__title, .phero__title, .shero__title, .statement__title, .pnext__title,
  .iso__title, .pcard__title, .menu__list a, .ftr__line, .steps li, .desk__label, .range__title, .dl__body strong,
  .focus__title, .fact dd, .line__list) { line-height: 1.32; }
:root:is(:lang(ar), :lang(ku)) .words .w { padding-block: .1em .22em; margin-block: -.1em -.22em; }
:root:is(:lang(ar), :lang(ku)) :is(.eyebrow, .sub__label, .pcard__place, .ftr__h, .fact dt, .dl__meta, .range__title span) { font-size: .9rem; font-weight: 700; }
.nw { white-space: nowrap; }

/* layout.css */
/* The frame: page width, sections, header and menu, footer, the phone action bar. */

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* --bg names the section's colour for anything that has to match it (the covers that slide off pictures) */
.sec { padding-block: var(--sec); position: relative; --bg: var(--cream); }
.sec--sand { background: var(--sand); --bg: var(--sand); }
.sec--ink { background: var(--ink); color: var(--cream); --bg: var(--ink); }
.sec--flush { padding-block-start: calc(var(--sec) * .55); }
.sec__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; }
.sec__top .head { margin-block-end: 0; }
.sec__top + * { margin-block-start: clamp(2rem, 4vw, 3.5rem); }

.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 60em) { .split { grid-template-columns: 7fr 5fr; } }

/* ───────────── header ───────────── */
.hdr {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50;
  height: var(--hdr);
  color: var(--cream);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
  view-transition-name: hdr;
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.hdr__logo { display: block; flex: none; padding-block: .5rem; }
.logo { height: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); width: auto; }
.logo__m { fill: var(--yellow); transition: fill .35s var(--ease); }
.logo__w { fill: currentColor; transition: fill .35s var(--ease); }

.hdr__nav { margin-inline-start: auto; }
.hdr__nav ul { display: flex; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.hdr__nav a {
  position: relative; display: block; padding: .6rem 0;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
}
.hdr__nav a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: .25rem; height: 3px;
  background: var(--yellow); transform: skewX(var(--slant)) scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
[dir="rtl"] .hdr__nav a::after { transform-origin: 100% 50%; }
.hdr__nav a:hover::after, .hdr__nav a[aria-current="page"]::after { transform: skewX(var(--slant)) scaleX(1); }
.hdr__cta { flex: none; }

/* over a yellow or cream opening block */
body[data-over="ink"] .hdr:not(.is-solid) { color: var(--ink); }
body[data-over="ink"] .hdr:not(.is-solid) .logo__m { fill: var(--ink); }
body[data-over="ink"] .hdr:not(.is-solid) .hdr__cta { --bg: var(--ink); --fg: var(--cream); --hbg: var(--cream); --hfg: var(--ink); }

/* once the opening block has scrolled away */
.hdr.is-solid { background: rgba(255, 246, 233, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hdr.is-solid { background: rgba(255, 246, 233, .82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}

.hdr__burger {
  display: none; position: relative; flex: none; width: 3rem; height: 3rem; margin-inline-end: -.6rem;
  background: none; border: 0; color: inherit;
}
.hdr__burger i {
  position: absolute; inset-inline: .7rem; height: 2.5px; background: currentColor; transform: skewX(var(--slant));
  transition: transform .4s var(--ease-out), inset-block-start .4s var(--ease-out), background-color .3s;
}
.hdr__burger i:nth-of-type(1) { inset-block-start: 1.15rem; }
.hdr__burger i:nth-of-type(2) { inset-block-start: 1.7rem; inset-inline-start: 1.15rem; }
.menu-open .hdr__burger i { inset-inline: .7rem; inset-block-start: 1.42rem; }
.menu-open .hdr__burger i:nth-of-type(1) { transform: rotate(45deg); }
.menu-open .hdr__burger i:nth-of-type(2) { transform: rotate(-45deg); }
.menu-open .hdr { color: var(--cream); background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .hdr .logo__m { fill: var(--yellow); }

@media (max-width: 59.99em) {
  .hdr .hdr__nav, .hdr .hdr__cta { display: none; }
  .hdr__burger { display: block; margin-inline-start: auto; }
  /* without JavaScript the menu button cannot work: show the links in a row instead */
  .no-js .hdr { height: auto; background: var(--ink); position: sticky; }
  .no-js .hdr__in { flex-wrap: wrap; padding-block: .6rem; gap: 0 1rem; }
  .no-js .hdr__burger { display: none; }
  .no-js .hdr .hdr__nav { display: block; flex-basis: 100%; margin: 0; overflow-x: auto; }
}

/* ───────────── menu (phones and tablets) ───────────── */
.menu { position: fixed; inset: 0; z-index: 40; color: var(--cream); pointer-events: none; }
.menu::before, .menu::after {
  content: ""; position: absolute; inset-block: 0; inset-inline: -70vh;   /* wide enough for the slanted edge to clear the screen */
  transform: skewX(var(--slant)) translateX(-130%); transition: transform .7s var(--ease-in-out);
}
.menu::before { background: var(--yellow); }
.menu::after { background: var(--ink); transition-delay: .09s; }
.menu__panel {
  position: absolute; inset: 0; z-index: 1; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--hdr) + clamp(1.5rem, 6vh, 4rem)) var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  opacity: 0; transition: opacity .3s var(--ease);
}
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding-block: .55rem;
  font-size: clamp(2rem, 9.5vw, 3.5rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; text-decoration: none;
}
.menu__list a[aria-current="page"] { color: var(--yellow); }
.menu__n { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--yellow); min-width: 1.6rem; }
.menu__list li { opacity: 0; transform: translateY(1.5rem); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.menu__foot { display: grid; gap: .1rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line-light); }
.menu__foot a { display: flex; align-items: center; gap: .75rem; padding-block: .7rem; text-decoration: none; font-weight: 500; }
.menu__foot .ico { color: var(--yellow); }

.menu.is-open { pointer-events: auto; }
.menu.is-open::before, .menu.is-open::after { transform: skewX(var(--slant)) translateX(0); }
.menu.is-open .menu__panel { opacity: 1; transition-delay: .3s; }
.menu.is-open .menu__list li { opacity: 1; transform: none; transition-delay: calc(.32s + var(--i) * 60ms); }
@media (min-width: 60em) { .menu { display: none; } }

/* ───────────── footer ───────────── */
.ftr { background: var(--ink-deep); color: var(--cream); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.ftr__brand { padding-block-end: clamp(2.5rem, 5vw, 4rem); border-block-end: 1px solid var(--line-light); }
.trio { width: min(100%, 46rem); height: auto; }
.trio__w { fill: var(--cream); }
.trio__m { fill: var(--yellow); }
.ftr__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 48em) { .ftr__grid { grid-template-columns: 5fr 3fr 4fr; gap: 3rem; } }
.ftr__line { font-size: var(--t-lead); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; max-width: 20ch; }
.ftr__region { margin-block-start: 1rem; color: rgba(255, 246, 233, .68); }
.ftr__h { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-block-end: 1rem; line-height: 1.4; }
.ftr__nav li, .ftr__contact li { margin-block-end: .1rem; }
.ftr a { display: inline-block; padding-block: .35rem; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 calc(100% - .2rem) / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s; }
.ftr a:hover { background-size: 100% 1px; color: var(--yellow); }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block-start: 1.5rem; border-block-start: 1px solid var(--line-light); font-size: var(--t-small); color: rgba(255, 246, 233, .62); }
.ftr__legal { max-width: 48ch; }
@media (min-width: 48em) { .ftr__legal { text-align: end; } }

/* ───────────── action bar on phones ───────────── */
.dock {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 30;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 0;
  padding-block-end: env(safe-area-inset-bottom);
  background: var(--ink); color: var(--cream);
  transform: translateY(105%); transition: transform .5s var(--ease-out);
  box-shadow: 0 -1px 0 rgba(255, 246, 233, .12);
}
.dock.is-on { transform: none; }
.dock__a { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem; font-weight: 500; text-decoration: none; }
.dock__a--main { background: var(--yellow); color: var(--ink); }
@media (min-width: 48em) { .dock { display: none; } }
@media (max-width: 47.99em) { .ftr { padding-block-end: calc(2rem + 3.5rem + env(safe-area-inset-bottom)); } }
/* without JavaScript nothing can slide the bar in and out: leave it out (every page ends with the same actions) */
.no-js .dock { display: none; }
.no-js .ftr { padding-block-end: 2rem; }

/* ── language switcher: header (desktop: all three; phone: the other two) and the phone menu ── */
.langs ul { display: flex; align-items: center; gap: .1rem; }
.langs a, .langs span {
  display: block; padding: .4rem .6rem; border: 1px solid transparent; border-radius: 2px;
  font-size: .875rem; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
.langs a { opacity: .78; transition: opacity .2s, border-color .2s; }
.langs a:hover, .langs a:focus-visible { opacity: 1; border-color: currentColor; }
.langs [aria-current] { border-color: color-mix(in srgb, currentColor 35%, transparent); }
.hdr__langs { flex: none; margin-inline-start: -.75rem; }
.menu__langs ul { gap: .5rem; }
.menu__langs a, .menu__langs span { font-size: 1rem; padding: .5rem .9rem; }
.menu__langs [aria-current] { color: var(--yellow); border-color: var(--yellow); }
/* The header holds logo, menu, language links and the contact button; tools/header-fit.mjs measures it.
   The header's language links show the other two languages only; the contact button (also in the menu) gives way
   first, and Kurdish, whose menu words are the longest, keeps the phone menu up to 1088 px. */
.hdr__langs [aria-current] { display: none; }
@media (max-width: 68.74em) { .hdr .hdr__cta { display: none; } }
@media (max-width: 73.74em) { :root:lang(ar) .hdr .hdr__cta { display: none; } }
@media (max-width: 85.37em) { :root:lang(ku) .hdr .hdr__cta { display: none; } }
@media (min-width: 60em) and (max-width: 67.99em) {
  :root:lang(ku) .hdr .hdr__nav { display: none; }
  :root:lang(ku) .hdr__burger { display: block; }
  :root:lang(ku) .hdr__langs { margin-inline-start: auto; }
  :root:lang(ku) .menu { display: block; }
}
@media (max-width: 59.99em) {
  .hdr__langs { margin-inline-start: auto; }
  .hdr__langs + .hdr__cta + .hdr__burger, .hdr__langs ~ .hdr__burger { margin-inline-start: 0; }
  .menu-open .hdr__langs { visibility: hidden; }
}
/* small phones: the language links tighten, and below 410 px they leave the header for the menu (where all three
   are listed) so that the logo and the menu button always fit (tools/header-fit.mjs checks 320–1440 px) */
@media (max-width: 29.99em) {
  .hdr__in { gap: .5rem; }
  .hdr__langs ul { gap: 0; }
  .hdr__langs a { padding: .35rem .45rem; font-size: .8125rem; }
}
@media (max-width: 25.6em) { .hdr__langs { display: none; } .hdr__burger { margin-inline-start: auto !important; } }

/* components.css */
/* Pieces used on more than one page. */

/* ───────────── button ─────────────
   The fill changes with a slanted wipe: a two-colour gradient at 120° (30° off the vertical) slides across. */
.btn {
  --bg: var(--yellow); --fg: var(--ink); --hbg: var(--ink); --hfg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem;
  min-height: 3.375rem; padding: .9rem 1.5rem;
  font-size: 1rem; font-weight: 500; line-height: 1.15; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  color: var(--fg); border: 0; border-radius: 2px;
  background: linear-gradient(120deg, var(--hbg) 0 50%, var(--bg) 50% 100%) 100% 0 / 260% 100% no-repeat;
  transition: background-position .55s var(--ease-out), color .25s var(--ease) .05s;
}
.btn .ico { transition: transform .45s var(--ease-out); }
.btn:hover, .btn:focus-visible { background-position: 0 0; color: var(--hfg); }
.btn:hover .ico:not(.ico--fill) { transform: translateX(.25rem); }
/* right to left: arrows are mirrored, and everything that slides on hover slides the other way */
[dir="rtl"] .ico--dir { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ico:not(.ico--fill) { transform: translateX(-.25rem); }
[dir="rtl"] .btn:hover .ico--dir { transform: translateX(-.25rem) scaleX(-1); }
[dir="rtl"] .more:hover .ico--dir, [dir="rtl"] .divc > a:hover .divc__go .ico--dir { transform: translateX(-.3rem) scaleX(-1); }
[dir="rtl"] .desk__list a:hover .ico { transform: translateX(-.2rem); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.1rem; font-size: .9375rem; gap: .6rem; }
.btn--ink { --bg: var(--ink); --fg: var(--cream); --hbg: var(--cream); --hfg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--cream); --hbg: var(--cream); --hfg: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 233, .7); }
.btn--line { --bg: transparent; --fg: var(--ink); --hbg: var(--ink); --hfg: var(--cream); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* text link with an arrow */
.more { display: inline-flex; align-items: center; gap: .7rem; padding-block: .6rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1.5px no-repeat; }
.more .ico { transition: transform .45s var(--ease-out); }
.more:hover .ico { transform: translateX(.3rem); }
.more--light { background-image: linear-gradient(var(--cream), var(--cream)); }

.back { display: inline-flex; align-items: center; gap: .5rem; margin-block-end: 1.5rem; padding-block: .4rem; font-size: .9375rem; font-weight: 500; text-decoration: none; color: rgba(255, 246, 233, .86); }
.back:hover { color: var(--yellow); }

/* ───────────── small label with the slanted yellow bar ───────────── */
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 1.75rem; height: .5rem; background: var(--yellow); transform: skewX(var(--slant)); }
.eyebrow--light { color: var(--cream); }
.eyebrow .ar { font-size: 1.05rem; letter-spacing: 0; text-transform: none; }

/* ───────────── section heading ───────────── */
.head { margin-block-end: clamp(2.25rem, 4.5vw, 4rem); }
.head .eyebrow { margin-block-end: 1.25rem; }
.head__title { font-size: var(--t-h2); max-width: 17ch; }
.head__text { margin-block-start: 1.25rem; max-width: 46ch; font-size: var(--t-lead); line-height: 1.4; color: var(--muted); }
.head--light .head__text { color: rgba(255, 246, 233, .76); }

/* ───────────── sub-brand label (brand book pages 16–18): wordmark, yellow rule, division ───────────── */
.sub { display: inline-grid; justify-items: start; justify-self: start; width: fit-content; gap: .5rem; color: var(--ink); }
.sub .wordmark { height: 1.7rem; width: auto; fill: currentColor; }
.sub__rule { display: block; width: 100%; height: 4px; background: var(--yellow); transform-origin: 0 50%; }
[dir="rtl"] .sub__rule { transform-origin: 100% 50%; }
.sub__label { font-size: .875rem; font-weight: 400; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; }
.sub--light { color: var(--cream); }

/* ───────────── chips ───────────── */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .42rem .8rem; font-size: .875rem; line-height: 1.3; border: 1px solid var(--line); border-radius: 2px; }

/* ───────────── project cards ───────────── */
.pgrid { display: grid; gap: var(--gap); }
.pcard { position: relative; overflow: hidden; }
.pcard__link { position: absolute; inset: 0; display: block; color: var(--cream); background: var(--ink); text-decoration: none; }
.pcard { aspect-ratio: 4 / 5; }
.pcard__pic { position: absolute; inset: 0; }
.pcard__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.pcard__link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(30, 23, 14, .9) 0%, rgba(30, 23, 14, .5) 30%, rgba(30, 23, 14, 0) 60%), linear-gradient(180deg, rgba(30, 23, 14, .35), rgba(30, 23, 14, 0) 26%);
}
.pcard__num {
  position: absolute; z-index: 1; inset-block-start: 0; inset-inline-start: 0;
  padding: .55rem 1.5rem .5rem 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; color: var(--ink);
  background: var(--yellow); clip-path: polygon(0 0, 100% 0, calc(100% - 1.15rem) 100%, 0 100%);
}
[dir="rtl"] .pcard__num { padding: .55rem 1rem .5rem 1.5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 1.15rem 100%); }
.pcard__body { position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; display: grid; gap: .35rem; padding: clamp(1.1rem, 2.2vw, 2rem); padding-inline-end: 4.5rem; }
.pcard__place { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.pcard__title { font-size: var(--t-h3); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.pcard__meta { font-size: .9375rem; color: rgba(255, 246, 233, .8); }
.pcard__go {
  position: absolute; z-index: 1; inset-inline-end: clamp(1.1rem, 2.2vw, 2rem); inset-block-end: clamp(1.1rem, 2.2vw, 2rem);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink);
  background: var(--yellow); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
  transition: transform .5s var(--ease-out);
}
.pcard__link:hover .pcard__pic img, .pcard__link:focus-visible .pcard__pic img { transform: scale(1.06); }
.pcard__link:hover .pcard__go { transform: translateX(.35rem); }
.pcard__link:focus-visible { outline-offset: -6px; }

@media (min-width: 36em) { .pgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .pgrid--3 { grid-template-columns: repeat(3, 1fr); } }

/* the projects page: cards of three shapes laid as a mosaic */
@media (min-width: 40em) and (max-width: 59.99em) {
  .pgrid--mosaic { grid-template-columns: repeat(2, 1fr); }
  .pgrid--mosaic .pcard--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 60em) {
  .pgrid--mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(22rem, 36vw, 33rem); }
  .pgrid--mosaic .pcard { aspect-ratio: auto; }
  .pgrid--mosaic .pcard--wide { grid-column: span 8; }
  .pgrid--mosaic .pcard--tall { grid-column: span 4; }
  .pgrid--mosaic .pcard--half { grid-column: span 6; }
}

/* ───────────── the closing band ───────────── */
.cta { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); padding-block: clamp(4rem, 8vw, 8rem); }
.cta__mark { position: absolute; inset-inline-end: -9%; inset-block-end: -18%; width: min(62rem, 78%); height: auto; fill: var(--cream); pointer-events: none; }
.cta__in { position: relative; display: grid; gap: 2.25rem; align-items: end; }
.cta__title { font-size: var(--t-h2); max-width: 14ch; }
.cta__text { margin-block-start: 1rem; font-size: var(--t-lead); max-width: 30ch; }
.cta__facts { margin-block-start: 1.5rem; display: grid; gap: .5rem; font-weight: 500; }
.cta__facts li { display: flex; align-items: center; gap: .65rem; }
.cta__facts a { text-decoration: none; }
.cta__facts a:hover { text-decoration: underline; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .btn--line:hover, .cta .btn--line:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (min-width: 60em) {
  .cta__in { grid-template-columns: 1fr auto; gap: 3rem; }
  .cta__actions { flex-direction: column; align-items: stretch; min-width: 19rem; }
}
@media (max-width: 35.99em) { .cta__actions .btn { flex: 1 1 100%; } }

/* ───────────── photo grid and viewer ───────────── */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.gal__item { position: relative; overflow: hidden; aspect-ratio: 1; }
/* phones: the first photo leads at full width, and an odd one out closes the set the same way */
.gal__item:first-child, .gal__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 48em) {
  .gal { grid-template-columns: repeat(6, 1fr); }
  .gal .gal__item { grid-column: span 2; aspect-ratio: 1; }
  .gal--lead .gal__item:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .gal--pair .gal__item:nth-child(-n + 2) { grid-column: span 3; aspect-ratio: 3 / 2; }
}
.gal__item a { position: absolute; inset: 0; display: block; background: var(--stone); cursor: zoom-in; }
.gal__item picture, .gal__item img { width: 100%; height: 100%; }
.gal__item img { object-fit: cover; object-position: 50% 42%; transition: transform 1.1s var(--ease-out); }
.gal__item a:hover img { transform: scale(1.045); }
.gal__item a:focus-visible { outline-offset: -6px; }
/* a single row of upright photos */
.gal--strip { grid-template-columns: repeat(2, 1fr); }
.gal--strip .gal__item, .gal--strip .gal__item:last-child:nth-child(even) { grid-column: auto; aspect-ratio: 4 / 5; }
.gal--strip .gal__item:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
@media (min-width: 40em) { .gal--strip { grid-template-columns: repeat(3, 1fr); } .gal--strip .gal__item:first-child { grid-column: auto; aspect-ratio: 4 / 5; } }
@media (min-width: 64em) { .gal--strip { grid-template-columns: repeat(5, 1fr); } }

.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 18, 11, .97); color: var(--cream); }
.lb::backdrop { background: rgba(24, 18, 11, .6); }
/* one grid cell exactly the size of the stage: without the minmax() the cell would grow to the photo's own size */
.lb__stage { position: absolute; inset: 4rem clamp(.75rem, 6vw, 5.5rem) 4.25rem; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
/* the <picture> wrapper steps aside so the photo itself is sized by the stage (otherwise max-height has nothing to measure against) */
.lb__stage picture { display: contents; }
.lb__stage source { display: none; }           /* or each <source> would take a grid cell of its own */
.lb__stage img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb__bar { position: absolute; inset-inline: 0; inset-block-end: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem) calc(1rem + env(safe-area-inset-bottom)); font-size: var(--t-small); }
.lb__cap { color: rgba(255, 246, 233, .78); }
.lb__count { font-weight: 700; letter-spacing: .12em; color: var(--yellow); white-space: nowrap; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; background: rgba(255, 246, 233, .1); border: 0; color: var(--cream); border-radius: 2px; transition: background-color .2s, color .2s; }
.lb__btn:hover { background: var(--yellow); color: var(--ink); }
.lb__close { inset-block-start: .75rem; inset-inline-end: clamp(.75rem, 3vw, 1.5rem); }
.lb__prev, .lb__next { inset-block-start: 50%; margin-block-start: -1.5rem; }
.lb__prev { inset-inline-start: clamp(.25rem, 1.5vw, 1.25rem); }
.lb__next { inset-inline-end: clamp(.25rem, 1.5vw, 1.25rem); }
/* phones: the photo takes the full width, so the arrows move below it, above the caption */
@media (max-width: 47.99em) { .lb__stage { inset: 3.75rem 0 8.25rem; } .lb__prev, .lb__next { inset-block-start: auto; inset-block-end: 4.5rem; margin: 0; } }

/* ───────────── background clip controls ───────────── */
.vtoggle {
  position: absolute; z-index: 3; inset-inline-end: var(--gutter); inset-block-end: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: var(--cream); background: rgba(30, 23, 14, .45); border: 1px solid rgba(255, 246, 233, .4); border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.vtoggle:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.vtoggle .ico { width: 1.1rem; height: 1.1rem; }
.vtoggle__play { display: none; }
.vtoggle[aria-pressed="true"] .vtoggle__play { display: block; }
.vtoggle[aria-pressed="true"] .vtoggle__pause { display: none; }

/* ───────────── contact desks ───────────── */
.desks { display: grid; gap: clamp(2rem, 4vw, 3rem) var(--gap); }
@media (min-width: 48em) { .desks { grid-template-columns: repeat(3, 1fr); } }
.desks__more { margin-block-start: clamp(2rem, 4vw, 3rem); }
.desk { padding-block-start: 1.5rem; border-block-start: 3px solid var(--ink); }
.desk__label { font-size: var(--t-h3); letter-spacing: -.02em; }
.desk__place { display: flex; gap: .65rem; margin-block: .9rem 1.25rem; color: var(--muted); line-height: 1.35; }
.desk__place .ico { margin-block-start: .1rem; color: var(--ink); }
.desk__place small { display: block; }
.desk__list { display: grid; }
.desk__list a { display: flex; align-items: center; gap: .75rem; padding-block: .8rem; border-block-start: 1px solid var(--line); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.desk__list a .ico { color: var(--muted); transition: color .2s, transform .4s var(--ease-out); }
.desk__list a:hover .ico { color: var(--ink); transform: translateX(.2rem); }
.desk__list a span { background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease-out); }
.desk__list a:hover span { background-size: 100% 3px; }
/* the viewer's previous/next buttons sit on the reading side; their chevrons follow */
[dir="rtl"] .lb__prev .ico, [dir="rtl"] .lb__next .ico { transform: scaleX(-1); }

/* pages.css */
/* Blocks that belong to one page. */

/* ───────────── home: opening film ───────────── */
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; max-height: 68rem; overflow: hidden; background: var(--ink-deep); color: var(--cream); }
.hero__media, .phero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__pic, .phero__pic, .hero__video, .phero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__pic img, .phero__pic img { width: 100%; height: 100%; object-fit: cover; }
.hero__video, .phero__video { object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.is-playing > .hero__video, .is-playing > .phero__video { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 23, 14, .62) 0, rgba(30, 23, 14, 0) 24%),
    linear-gradient(78deg, rgba(30, 23, 14, .88) 0%, rgba(30, 23, 14, .58) 36%, rgba(30, 23, 14, .08) 74%),
    linear-gradient(0deg, rgba(30, 23, 14, .72), rgba(30, 23, 14, 0) 46%);
}
.hero__in { padding-block: calc(var(--hdr) + 2rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__title { margin-block-start: 1.5rem; font-size: var(--t-h1); line-height: .98; letter-spacing: -.035em; max-width: 15ch; }
.hero__text { margin-block-start: clamp(1.25rem, 2.4vw, 2rem); max-width: 30ch; font-size: var(--t-lead); line-height: 1.35; color: rgba(255, 246, 233, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 35.99em) {
  .hero__shade { background: linear-gradient(180deg, rgba(30, 23, 14, .6) 0, rgba(30, 23, 14, 0) 22%), linear-gradient(0deg, rgba(30, 23, 14, .94) 0%, rgba(30, 23, 14, .72) 38%, rgba(30, 23, 14, .1) 72%); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero .vtoggle { inset-block-end: auto; inset-block-start: calc(var(--hdr) + .5rem); }
}

/* ───────────── inner pages: opening picture ───────────── */
/* the mark overhangs the lower edge on purpose, so only the sideways overflow is cut */
.phero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(27rem, 72vh, 46rem); min-height: clamp(27rem, 72svh, 46rem); background: var(--ink-deep); color: var(--cream); overflow-x: clip; }
@supports not (overflow: clip) { .phero { overflow: hidden; } }
.phero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 23, 14, .62) 0, rgba(30, 23, 14, 0) 28%),
    linear-gradient(78deg, rgba(30, 23, 14, .9) 0%, rgba(30, 23, 14, .6) 40%, rgba(30, 23, 14, .12) 80%),
    linear-gradient(0deg, rgba(30, 23, 14, .7), rgba(30, 23, 14, 0) 50%);
}
.phero__in { padding-block: calc(var(--hdr) + 2.5rem) clamp(3rem, 6vw, 5rem); }
.phero__in > .eyebrow { margin-block-end: 1.25rem; }
.phero__title { margin-block-start: 1.75rem; font-size: clamp(2.3rem, 1.5rem + 4vw, 5rem); line-height: 1; letter-spacing: -.03em; max-width: 15ch; }
.phero--project .phero__title { margin-block-start: 0; }
.phero__text { margin-block-start: 1.25rem; max-width: 36ch; font-size: var(--t-lead); line-height: 1.35; color: rgba(255, 246, 233, .88); }
/* the brand's big mark crossing the lower corner of the picture (brand book, page 2) */
.phero__mark { position: absolute; z-index: 1; inset-inline-end: -4%; inset-block-end: clamp(-4.25rem, -5.2vw, -1.75rem); width: clamp(12rem, 38vw, 34rem); height: auto; fill: var(--yellow); pointer-events: none; }
.phero .vtoggle { inset-block-end: auto; inset-block-start: calc(var(--hdr) + .75rem); }
@media (max-width: 47.99em) {
  .phero__shade { background: linear-gradient(180deg, rgba(30, 23, 14, .6) 0, rgba(30, 23, 14, 0) 26%), linear-gradient(0deg, rgba(30, 23, 14, .95) 0%, rgba(30, 23, 14, .7) 42%, rgba(30, 23, 14, .12) 78%); }
  .phero__in { padding-block-end: 4.5rem; }
}
/* room for the mark that overhangs the picture */
.phero + .sec, .phero + .facts { padding-block-start: calc(var(--sec) + clamp(.5rem, 2vw, 2rem)); }

/* ───────────── home: the three divisions ───────────── */
.divs { display: grid; gap: var(--gap); }
@media (min-width: 60em) { .divs { grid-template-columns: repeat(3, 1fr); } }
.divc { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
@media (max-width: 35.99em) { .divc { aspect-ratio: 1 / 1.08; } }
@media (min-width: 36em) and (max-width: 59.99em) { .divc { aspect-ratio: 16 / 10; } }
.divc > a { position: absolute; inset: 0; display: block; background: var(--ink); text-decoration: none; color: var(--ink); }
.divc__pic { position: absolute; inset: 0; }
.divc__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.divc--yellow > a { background: var(--yellow); }
.divc__art { position: absolute; inset-block-start: 13%; inset-inline: -14% -22%; transition: transform 1.2s var(--ease-out); }
.divc__panel {
  position: absolute; inset-inline-start: 0; inset-block-end: 0; width: min(100%, 25rem);
  display: grid; gap: .9rem; padding: clamp(1.25rem, 2.2vw, 1.9rem); padding-inline-end: clamp(4.75rem, 7vw, 6.5rem);
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut, 5.6rem)) 100%, 0 100%);
}
[dir="rtl"] .divc__panel { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--cut, 5.6rem) 100%); }
.divc__panel p { font-size: 1rem; line-height: 1.35; color: var(--muted); max-width: 24ch; }
.divc__go { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 500; }
.divc__go .ico { transition: transform .45s var(--ease-out); }
.divc .sub__rule { transition: transform .6s var(--ease-out); transform: scaleX(.42); }
.divc > a:hover .divc__pic img { transform: scale(1.06); }
.divc > a:hover .divc__art { transform: translateX(3%); }
.divc > a:hover .sub__rule, .divc > a:focus-visible .sub__rule { transform: scaleX(1); }
.divc > a:hover .divc__go .ico { transform: translateX(.3rem); }
.divc > a:focus-visible { outline-offset: -6px; }

/* the mark drawn as solar panels */
.panels { width: 100%; height: auto; overflow: visible; }
.panels__body { fill: var(--ink); }
.panels__grid { fill: none; stroke: var(--yellow); stroke-width: 2.5; opacity: .55; vector-effect: non-scaling-stroke; }

/* ───────────── home: figures ───────────── */
.nums { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); padding-block: clamp(4rem, 8vw, 7.5rem); }
.nums__mark { position: absolute; inset-inline-end: -6%; inset-block-start: 50%; width: min(58rem, 80%); height: auto; fill: var(--cream); opacity: .045; transform: translateY(-50%); pointer-events: none; }
.nums__list { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .nums__list { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.num { display: flex; flex-direction: column-reverse; gap: .5rem; }
@media (min-width: 48em) {
  .num { padding-inline: clamp(1.5rem, 3.4vw, 3.5rem); border-inline-start: 1px solid var(--line-light); }
  .num:first-child { padding-inline-start: 0; border: 0; }
}
.num dd { display: flex; align-items: baseline; gap: .5rem; font-size: var(--t-num); font-weight: 500; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num dd small { font-size: var(--t-h3); font-weight: 500; letter-spacing: 0; color: var(--yellow); }
.num dt { font-size: var(--t-body); color: rgba(255, 246, 233, .76); }

/* ───────────── project page ───────────── */
.facts { background: var(--cream); padding-block: var(--sec) 0; }
.facts__list { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.75rem clamp(2rem, 6vw, 5.5rem); padding-block-end: clamp(2rem, 4vw, 3rem); border-block-end: 1px solid var(--line); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; }
.fact dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fact dd { font-size: var(--t-h3); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.fact--num dd { font-size: clamp(3rem, 2rem + 4.6vw, 5.5rem); line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.fact--num dd small { margin-inline-start: .35rem; font-size: var(--t-h3); letter-spacing: 0; color: var(--muted); }
.fact--scope { justify-content: flex-start; align-self: flex-end; }
.fact--scope dd { font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.fact--scope .chips li { padding: .55rem .95rem; font-size: 1rem; border-color: var(--ink); }

.pnext { position: relative; isolation: isolate; background: var(--ink-deep); color: var(--cream); overflow: hidden; }
.pnext a { display: block; text-decoration: none; padding-block: clamp(4rem, 9vw, 8rem); }
.pnext__pic { position: absolute; inset: 0; z-index: -2; }
.pnext__pic img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform 1.4s var(--ease-out), opacity .6s; }
.pnext a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(78deg, rgba(30, 23, 14, .92), rgba(30, 23, 14, .3)); }
.pnext__in { display: grid; gap: 1rem; }
.pnext__title { font-size: var(--t-h2); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; max-width: 18ch; text-wrap: balance; }
.pnext__go { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-block-start: .75rem; color: var(--ink); background: var(--yellow); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); transition: transform .5s var(--ease-out); }
.pnext a:hover .pnext__pic img { transform: scale(1.05); opacity: .62; }
.pnext a:hover .pnext__go { transform: translateX(.5rem); }

/* ───────────── solar ───────────── */
.shero { position: relative; overflow: hidden; background: var(--yellow); color: var(--ink); }
.shero__in { display: grid; gap: 2.5rem; align-items: end; min-height: clamp(30rem, 78vh, 46rem); min-height: clamp(30rem, 78svh, 46rem); padding-block: calc(var(--hdr) + 3rem) clamp(3rem, 6vw, 5rem); }
.shero .sub__rule { background: var(--ink); }
.shero__title { margin-block-start: 1.75rem; font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem); line-height: .98; letter-spacing: -.035em; max-width: 11ch; }
.shero__text { margin-block-start: 1.25rem; max-width: 30ch; font-size: var(--t-lead); line-height: 1.35; }
.shero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: clamp(1.75rem, 3vw, 2.5rem); }
.shero__art { align-self: center; margin-inline-end: calc(-1 * var(--gutter) - 4vw); }
@media (min-width: 60em) { .shero__in { grid-template-columns: 6fr 7fr; } .shero__art { margin-inline-end: calc(-1 * var(--gutter) - 9vw); } }
@media (max-width: 59.99em) { .shero__art { order: -1; margin-inline: -6% -30%; } .shero__in { align-items: start; } }

.focus { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 52em) { .focus { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }
.focus__item { padding-block-start: 1.75rem; border-block-start: 3px solid var(--ink); }
.focus__pict { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin-block-end: 1.5rem; background: var(--yellow); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); }
.focus__pict .pict { width: 2.75rem; height: 2.75rem; }
.focus__title { font-size: var(--t-h3); letter-spacing: -.02em; }
.focus__text { margin-block: .6rem 1.25rem; color: var(--muted); }

.brands__list { display: flex; flex-wrap: wrap; align-items: center; gap: .25em 0; font-size: clamp(2.75rem, 1.2rem + 7.6vw, 8rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.brands__list li { display: flex; align-items: center; }
.brands__list li + li::before { content: ""; width: .16em; height: .72em; margin-inline: .34em; background: var(--yellow); transform: skewX(var(--slant)); }
.brands__text { margin-block-start: clamp(2rem, 4vw, 3rem); font-size: var(--t-lead); color: rgba(255, 246, 233, .76); }
.brands h2.eyebrow { margin-block-end: clamp(2rem, 4vw, 3rem); letter-spacing: .16em; }
@media (max-width: 35.99em) { .brands__list { flex-direction: column; align-items: flex-start; gap: .12em; } .brands__list li + li::before { display: none; } }

.steps { counter-reset: none; border-block-end: 1px solid var(--line); }
.steps li { display: flex; align-items: baseline; gap: 1.5rem; padding-block: 1.1rem; border-block-start: 1px solid var(--line); font-size: var(--t-h3); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.steps__n { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); min-width: 1.75rem; }

.iso { position: relative; padding: clamp(1.75rem, 3.4vw, 2.75rem); background: var(--yellow); color: var(--ink); clip-path: polygon(0 0, calc(100% - 3.5rem) 0, 100% 6.06rem, 100% 100%, 0 100%); }
.iso .eyebrow::before { background: var(--ink); }
.iso__title { margin-block-start: 1.25rem; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.08; letter-spacing: -.025em; max-width: 13ch; }
.iso__text { margin-block-start: 1rem; line-height: 1.4; }
.iso__small { margin-block-start: 1rem; font-size: var(--t-small); }
.iso__regs { margin-block-start: 1.5rem; border-block-start: 1px solid rgba(35, 28, 19, .3); font-size: var(--t-small); }
.iso__regs li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-block-end: 1px solid rgba(35, 28, 19, .3); }
.iso__regs li span:first-child { font-weight: 700; }
.iso__regs li span:last-child { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ───────────── materials ───────────── */
.prods { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem) var(--gap); }
@media (min-width: 40em) { .prods { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .prods { grid-template-columns: repeat(5, 1fr); } }
.prod { display: grid; gap: .15rem; align-content: start; }
.prod__swatch { display: block; aspect-ratio: 1; margin-block-end: 1rem; overflow: hidden; background: var(--sand); border-radius: 2px; }
.swatch { width: 100%; height: 100%; }
.prod__ar { font-size: 1.4rem; }
[dir="ltr"] .prod__ar { text-align: left; }
.prod__en { color: var(--muted); line-height: 1.3; }

.range { display: grid; gap: 3rem var(--gap); }
@media (min-width: 56em) { .range { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); } }
.range__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); margin-block-end: 1.5rem; }
.range__pic picture, .range__pic img { width: 100%; height: 100%; }
.range__pic img { object-fit: cover; }
.range__title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block-end: 1rem; border-block-end: 3px solid var(--ink); font-size: var(--t-h3); letter-spacing: -.02em; }
.range__title span { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pairs li { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: .7rem; border-block-end: 1px solid var(--line); font-size: .9375rem; line-height: 1.3; }
.pairs b { font-weight: 500; }
.pairs span { color: var(--muted); }
.more-pairs summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; font-size: .9375rem; font-weight: 500; cursor: pointer; list-style: none; border-block-end: 1px solid var(--line); }
.more-pairs summary::-webkit-details-marker { display: none; }
.more-pairs summary .ico { transition: transform .4s var(--ease-out); }
.more-pairs[open] summary .ico { transform: rotate(45deg); }
.more-pairs summary:hover { color: var(--muted); }

.dls { display: grid; border-block-start: 1px solid var(--line-light); }
.dl { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem clamp(1rem, 3vw, 2rem); padding-block: clamp(1.25rem, 2.6vw, 2rem); border-block-end: 1px solid var(--line-light); text-decoration: none; }
.dl__ico { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; color: var(--ink); background: var(--yellow); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); transition: transform .5s var(--ease-out); }
.dl__body { display: grid; gap: .3rem; }
.dl__body strong { font-size: var(--t-h3); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
.dl__body span { color: rgba(255, 246, 233, .72); }
.dl__meta { grid-column: 2; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.dl:hover .dl__ico { transform: translateY(.3rem); }
.dl:hover .dl__body strong { color: var(--yellow); }
@media (min-width: 48em) { .dl { grid-template-columns: auto 1fr auto; } .dl__meta { grid-column: auto; } }
.dls__more { margin-block-start: 2rem; }

/* ───────────── about ───────────── */
.statement { display: grid; gap: 1.5rem clamp(2rem, 6vw, 6rem); }
.statement__title { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; }
.statement__text { max-width: 30ch; font-size: var(--t-lead); line-height: 1.4; color: var(--muted); }
@media (min-width: 60em) { .statement { grid-template-columns: 8fr 4fr; align-items: end; } .statement .eyebrow { grid-column: 1 / -1; } .statement__text { padding-block-end: .6rem; } }

.rows { border-block-end: 1px solid var(--line); }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem clamp(1rem, 3vw, 2.5rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); border-block-start: 1px solid var(--line); text-decoration: none; transition: padding-inline-start .5s var(--ease-out); }
.row__n { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.row__text { grid-column: 2 / -1; color: var(--muted); }
.row__go { grid-row: 1; grid-column: 3; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--ink); background: var(--yellow); clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%); transition: transform .5s var(--ease-out); }
.row .sub__rule { transform: scaleX(.42); transition: transform .6s var(--ease-out); }
.row:hover { padding-inline-start: .75rem; }
.row:hover .sub__rule { transform: scaleX(1); }
.row:hover .row__go { transform: translateX(.35rem); }
@media (min-width: 56em) {
  .row { grid-template-columns: 3rem 16rem 1fr auto; }
  .row__text { grid-column: auto; font-size: var(--t-lead); }
  .row__go { grid-column: 4; }
}

.story { display: grid; gap: 2.5rem var(--gap); }
@media (min-width: 52em) { .story { grid-template-columns: repeat(3, 1fr); } }
.story__fig { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 14%; background: var(--sand); margin-block-end: 1.1rem; }
.story__fig svg { width: 100%; height: auto; }
.story__fig .mark { fill: var(--yellow); }
.story__fig--h .mark path { fill: var(--stone); }
.story__fig .wordmark { fill: var(--ink); }
.story__fig .house { fill: var(--yellow); }
.story__item p { font-size: var(--t-h3); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; max-width: 14ch; }

.company { display: grid; gap: 2rem clamp(2rem, 5vw, 5rem); }
@media (min-width: 52em) { .company { grid-template-columns: 5fr 3fr 4fr; } }
.company > div { padding-block-start: 1.25rem; border-block-start: 1px solid var(--line-light); }
.company dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-block-end: .75rem; }
.company dd { font-size: var(--t-lead); line-height: 1.35; }

/* ───────────── contact ───────────── */
.chero { position: relative; overflow: hidden; background: var(--ink); color: var(--cream); }
.chero__in { display: grid; align-content: end; min-height: clamp(24rem, 58vh, 34rem); min-height: clamp(24rem, 58svh, 34rem); padding-block: calc(var(--hdr) + 3rem) clamp(3rem, 6vw, 4.5rem); }
.chero__title { margin-block-start: 1.75rem; font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
.chero__text { margin-block-start: 1.25rem; font-size: var(--t-lead); color: rgba(255, 246, 233, .82); }
.chero__mark { position: absolute; inset-inline-end: -5%; inset-block-end: -12%; width: min(46rem, 70%); height: auto; fill: var(--yellow); pointer-events: none; }
@media (max-width: 47.99em) { .chero__mark { inset-block: 18% auto; width: 92%; inset-inline-end: -34%; opacity: .9; } }

.office { display: grid; gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 56em) { .office { grid-template-columns: 5fr 7fr; } }
.office .head { margin-block-end: 2rem; }
.office__addr { display: grid; gap: 1.25rem; }
.office__addr p { display: flex; gap: .85rem; font-size: var(--t-lead); line-height: 1.35; font-weight: 500; }
.office__addr .ico { margin-block-start: .15em; color: var(--muted); }
.office__addr small { display: block; font-size: var(--t-body); font-weight: 400; color: var(--muted); }
.office__actions { margin-block-start: 2rem; }

.map { position: relative; aspect-ratio: 7 / 5; overflow: hidden; background-color: var(--stone);
  background-image:
    linear-gradient(120deg, transparent 49.6%, rgba(35, 28, 19, .1) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(35, 28, 19, .08) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 7.5rem 7.5rem, 100% 4.5rem;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.1rem; padding: 1.5rem; text-align: center; }
.map__pin { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 .7rem rgba(249, 172, 35, .28); }
.map__pin .ico { width: 1.6rem; height: 1.6rem; }
.map__note { max-width: 26ch; font-size: var(--t-small); color: var(--muted); }
@media (max-width: 35.99em) { .map { aspect-ratio: 1; } }

.formwrap { max-width: 58rem; margin-inline: auto; }
.form { display: grid; gap: 1.5rem var(--gap); }
@media (min-width: 44em) { .form { grid-template-columns: repeat(3, 1fr); } .field--wide, .form__actions, .form__note { grid-column: 1 / -1; } }
.field { display: grid; gap: .5rem; }
.field > span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 0; font-size: 1.0625rem; line-height: 1.3;
  background: transparent; border: 0; border-block-end: 1.5px solid var(--ink); border-radius: 0;
  transition: border-color .2s, background-color .2s;
}
.field select { -webkit-appearance: none; appearance: none; padding-inline-end: 2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231c13' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 1.25rem; }
[dir="rtl"] .field select { background-position: left center; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 4px; box-shadow: 0 0 0 7px var(--ink); background-color: rgba(249, 172, 35, .12); }
.form__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: .5rem; }
.form__actions .btn { border: 0; }
.form__note { font-size: var(--t-small); color: var(--muted); }

/* ───────────── film band (home and materials): the company film's real work, with its words ───────────── */
.film { position: relative; isolation: isolate; background: var(--ink-deep); color: var(--cream); overflow: hidden; }
.film__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.film__pic, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__pic img { width: 100%; height: 100%; object-fit: cover; }
.film__video { object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.is-playing > .film__video { opacity: 1; }
.film__shade { display: none; }
.film__in { padding-block: clamp(2rem, 6vw, 3rem) clamp(2.75rem, 8vw, 4rem); }
.film__title { margin-block-start: 1.1rem; font-size: var(--t-h2); line-height: 1.02; letter-spacing: -.03em; max-width: 14ch; }
.film__text { margin-block-start: 1rem; max-width: 34ch; font-size: var(--t-lead); line-height: 1.35; color: rgba(255, 246, 233, .86); }
.film .vtoggle { inset-block: .75rem auto; }
@media (min-width: 48em) {
  .film { display: grid; align-items: end; min-height: min(56.25vw, 52rem); }
  .film__media { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
  .film__shade { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(0deg, rgba(30, 23, 14, .9) 0%, rgba(30, 23, 14, .55) 34%, rgba(30, 23, 14, 0) 62%); }
  .film__in { padding-block: 10rem clamp(3rem, 6vw, 5rem); }
  .film .vtoggle { inset-block: auto clamp(1.25rem, 3vw, 2.25rem); }
}
:root:is(:lang(ar), :lang(ku)) .film__title { line-height: 1.3; }

.sec--tight { padding-block: calc(var(--sec) * .5); }

/* solar: "a complete solar line" — three large lines, each led by the mark's slanted bar */
.line__list { display: grid; gap: .2em; margin-block-start: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(2.1rem, 1.2rem + 4.4vw, 5.25rem); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.line__list li { display: flex; align-items: center; gap: .45em; padding-block: .18em; border-block-end: 1px solid var(--line); }
.line__bar { flex: none; width: .9em; height: .28em; background: var(--yellow); transform: skewX(var(--slant)); }

/* solar: the ISO system names under the standard */
.iso__regs li > span:first-child { display: grid; gap: .15rem; }
.iso__regs small { font-size: .8125rem; font-weight: 400; line-height: 1.3; }

/* materials: Çukurova Boya's exterior and interior paints */
.boya__grid { display: grid; gap: var(--gap); margin-block-start: clamp(2rem, 4vw, 3rem); }
@media (min-width: 48em) { .boya__grid { grid-template-columns: 1fr 1fr; } }
.boya__block { position: relative; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--sand); clip-path: polygon(0 0, calc(100% - 2.6rem) 0, 100% 4.5rem, 100% 100%, 0 100%); }
[dir="rtl"] .boya__block { clip-path: polygon(2.6rem 0, 100% 0, 100% 100%, 0 100%, 0 4.5rem); }
.boya__block--exterior { background: var(--yellow); }
.boya__title { font-size: var(--t-h3); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.boya__list { margin-block-start: 1.25rem; display: grid; }
.boya__list li { padding-block: .8rem; border-block-start: 1px solid rgba(35, 28, 19, .22); font-size: var(--t-lead); line-height: 1.3; }

/* motion.css */
/* Motion. Everything here is extra: with no JavaScript, or with "reduce motion" on, the page is simply shown.
   The recurring move is the mark's own: a slanted edge travelling left to right at 30°. */

/* ───────────── things that arrive as they scroll into view (site.js adds .is-in) ───────────── */
.js [data-reveal] {
  opacity: 0; transform: translateY(1.75rem);
  transition: opacity .8s var(--ease), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* pictures: uncovered by a slanted edge, with a yellow bar running along it.
   A cover in the section's own colour (--bg) is clipped away; the picture itself is never clipped, because a
   clipped picture does not count as "in view" and the browser would not start loading it.
   --ar is the box's width ÷ height (site.js measures it); the edge's lean in % of the width is tan(30°) ÷ --ar. */
.js [data-reveal="wipe"] { --lean: calc(57.735% / var(--ar, 1.5)); opacity: 1; transform: none; }
.js [data-reveal="wipe"]::before {
  content: ""; position: absolute; z-index: 4; inset: 0; pointer-events: none;
  background: var(--bg, var(--cream));
  clip-path: polygon(0 0, 101% 0, 101% 100%, calc(-1 * var(--lean)) 100%);
  transition: clip-path 1.15s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal="wipe"].is-in::before { clip-path: polygon(calc(118% + var(--lean)) 0, 119% 0, 119% 100%, 118% 100%); }
.js [data-reveal="wipe"]::after {
  content: ""; position: absolute; z-index: 5; inset-block: 0; inset-inline-start: 0; width: 100%; pointer-events: none;
  background: linear-gradient(90deg, transparent 88%, var(--yellow) 88%);
  transform-origin: 0 100%;
  transform: translateX(calc(-100% - var(--lean))) skewX(var(--slant));
  transition: transform 1.15s var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js [data-reveal="wipe"].is-in::after { transform: translateX(18%) skewX(var(--slant)); }
.js [data-reveal="wipe"].is-done::before, .js [data-reveal="wipe"].is-done::after { display: none; }

/* headlines: each word rises out of its own line */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block-end: .14em; margin-block-end: -.14em; }
.words .w > span { display: inline-block; }
.js .words .w > span { transform: translateY(112%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--w, 0) * 60ms + var(--d, 0ms)); }
.js .words.is-in .w > span { transform: none; }

/* ───────────── the opening block of every page ─────────────
   It moves with CSS alone, from the first paint: nothing on the first screen waits for JavaScript.
   Its words are never faded: they are there at once and only slide into place. */
.hero [data-reveal], .phero [data-reveal], .shero [data-reveal], .chero [data-reveal] {
  opacity: 1; transform: none; transition: none;
  animation: nudge .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + .15s);
}
.hero .words .w > span, .phero .words .w > span, .shero .words .w > span, .chero .words .w > span {
  transform: none; transition: none;
  animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--w, 0) * 60ms + .1s);
}
/* the yellow rule under the sub-brand label draws itself */
.phero .sub__rule, .shero .sub__rule, .chero .sub__rule { animation: draw .9s var(--ease-out) .3s both; }
@keyframes nudge { from { transform: translateY(1.1rem); } }
@keyframes rise { from { transform: translateY(112%); } }
@keyframes draw { from { transform: scaleX(0); } }

/* ───────────── opening pictures settle; long pages drift ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero__pic img, .phero__pic img { animation: settle 2.2s var(--ease-out) both; }
  @keyframes settle { from { transform: scale(1.09); } to { transform: scale(1); } }

  /* the big mark's bars slide in along their own slant
     (percentages are of each drawing's own box; both pairs below give a 30° path) */
  .phero__mark path, .chero__mark path { --from: translate(-3.3%, 20%); animation: bar-in 1.1s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * 120ms); }
  .chero__mark path { --from: translate(-6%, 30%); }
  @keyframes bar-in { from { opacity: 0; transform: var(--from); } }
  /* the same move for the closing band, when it scrolls into view */
  .js .cta__mark path { opacity: 0; transform: translate(-3.3%, 20%); transition: opacity .7s var(--ease), transform 1.1s var(--ease-out); transition-delay: calc(.2s + var(--i) * 120ms); }
  .js .cta.is-in .cta__mark path { opacity: 1; transform: none; }

  /* solar: the panels appear, then light passes over them */
  .shero .panels__body { animation: appear .9s var(--ease) .2s both; }
  .shero .panels__grid { animation: appear .9s var(--ease) .7s both; }
  @keyframes appear { from { opacity: 0; } }
  .panels__sheen { animation: sheen 6.5s var(--ease-in-out) 1.2s infinite; }
  @keyframes sheen { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(1250px); } }

  /* about: the three ideas in the mark */
  .js .mark--seq path { opacity: 0; transform: translate(-6%, 30%); transition: opacity .6s var(--ease), transform .9s var(--ease-out); transition-delay: calc(.2s + var(--i) * 260ms); }
  .js .is-in .mark--seq path { opacity: 1; transform: none; }
  .is-in .mark--double path { animation: hh 4.8s var(--ease-in-out) infinite; }
  .is-in .mark--double path:nth-child(1) { animation-name: hh-a; }
  .is-in .mark--double path:nth-child(2) { animation-name: hh-both; }
  .is-in .mark--double path:nth-child(3) { animation-name: hh-b; }
  @keyframes hh-a { 0%, 42% { fill: var(--ink); } 50%, 92% { fill: var(--stone); } 100% { fill: var(--ink); } }
  @keyframes hh-b { 0%, 42% { fill: var(--stone); } 50%, 92% { fill: var(--ink); } 100% { fill: var(--stone); } }
  @keyframes hh-both { 0%, 100% { fill: var(--ink); } }
  .js .wordmark--house .house { opacity: 0; transition: opacity .9s var(--ease) .5s; }
  .js .is-in .wordmark--house .house { opacity: 1; }

  /* slower-moving opening picture while it scrolls away (browsers with scroll-driven animations) */
  /* (the picture moves inside its frame; "0px" stops the header's scroll-padding from shifting the start) */
  @supports (animation-timeline: view()) {
    .hero__media > *, .phero__media > * { animation: drift linear both; animation-timeline: view(block 0px); animation-range: exit 0% exit 100%; }
    @keyframes drift { to { transform: translateY(14%); } }
  }
}
/* the double-H figure when it is not animating */
.mark--double path:nth-child(-n + 2) { fill: var(--ink); }

/* ───────────── from page to page: the new page arrives behind a slanted edge ───────────── */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  /* (plain blending: by default the two pages are added together, and the old page would show through the new one) */
  ::view-transition-old(root), ::view-transition-new(root) { mix-blend-mode: normal; }
  ::view-transition-image-pair(root) { isolation: auto; }
  ::view-transition-old(root) { animation: vt-out .5s var(--ease-in-out) both; }
  ::view-transition-new(root) { animation: vt-in .62s var(--ease-in-out) both; }
  @keyframes vt-out { to { opacity: .4; } }
  @keyframes vt-in {
    from { clip-path: polygon(0 0, 0 0, calc(-57.735vh) 100%, 0 100%); }
    to { clip-path: polygon(0 0, calc(100% + 57.735vh) 0, 100% 100%, 0 100%); }
  }
  ::view-transition-group(hdr) { animation-duration: .3s; }
}

/* ───────────── reduce motion: show everything, move nothing ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal="wipe"]::before, .js [data-reveal="wipe"]::after { display: none; }
  .js .words .w > span { transform: none; }
  .hero__video, .phero__video, .vtoggle { display: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .hdr, .menu, .dock, .vtoggle, .hero__video, .phero__video { display: none !important; }
  .js [data-reveal], .js .words .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
