/* =====================================================================
   Celomix — site design system (v2)
   Three colours taken from the Celomix range itself:
     ivory  (SILKEN 137)   — the page
     petrol (GEM 188)      — text, dark sections
     ochre  (SILKEN 139)   — accents, one at a time
   Texture tiles: real Celomix swatches laid like ceramic tiles, with a
   fine ivory grout — the only ornament on the page.
   RTL-first; logical properties mirror the layout for English (LTR).
   ===================================================================== */

:root {
  --ivory: #f6f3ee;
  --ivory-2: #ede8e0;
  --paper: #fdfbf8;
  --petrol: #23414a;
  --petrol-2: #2f525b;
  --petrol-ink: #1b2f35;
  --ochre: #b5894b;
  --ochre-soft: #e9dcc6;
  --ochre-light: #d8b886;
  --on-dark: #eef3f2;
  --tex: none;           /* page texture (a real Celomix swatch), set per skin */
  --tex-alpha: .0;
  --ink: #1d2a2e;
  --ink-2: #47585c;
  --muted: #7d8a8c;
  --line: rgba(29, 42, 46, .12);
  --line-light: rgba(255, 255, 255, .16);
  --grout: #f6f3ee;
  --radius: 4px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 76px;
  --sans: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --latin: "Montserrat", "Vazirmatn", sans-serif;
  --display-latin: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(.22, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.9; color: var(--ink);
  background: var(--ivory); -webkit-font-smoothing: antialiased; overflow-x: clip;
  position: relative; isolation: isolate;
}
/* the skin's Celomix texture, laid life size behind everything and veiled to a whisper */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--tex) center / 560px repeat; opacity: var(--tex-alpha); }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -.005em; }
/* large headings are set light, the way the brand speaks: quiet, confident */
h1, h2 { font-weight: 300; line-height: 1.3; }
h1 b, h2 b { font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--petrol); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.latin { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- tiles */
/* a mosaic of real swatches: square tiles, 3px ivory grout */
.tiles { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 3px; background: var(--grout); padding: 3px; }
.tiles > i { aspect-ratio: 1; background-size: cover; background-position: center; display: block; }
.tiles.soft > i { filter: saturate(.85) brightness(1.02); }
/* a single texture laid edge to edge as a quiet surface */
.surface { background-color: var(--ivory-2); background-size: 520px; background-repeat: repeat; }
.surface-veil { position: relative; isolation: isolate; }
.surface-veil::before { content: ""; position: absolute; inset: 0; background: var(--veil, rgba(246, 243, 238, .72)); z-index: -1; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--ivory) 90%, transparent); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease), background .4s, border-color .4s, color .4s;
}
html.hdr-hide .site-header { transform: translateY(-100%); }
/* over a full-bleed photo the header is clear and light, and turns solid once the page scrolls */
html.over-hero .site-header { position: fixed; inset-inline: 0; background: linear-gradient(rgba(10, 16, 18, .45), transparent); backdrop-filter: none; border-color: transparent; }
html.over-hero:not(.scrolled) .site-header .brand { color: #fff; }
html.over-hero:not(.scrolled) .site-header .tm-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; }
html.over-hero:not(.scrolled) .site-header .lang { border-color: rgba(255, 255, 255, .35); }
html.over-hero:not(.scrolled) .site-header .lang button { color: rgba(255, 255, 255, .85); }
html.over-hero:not(.scrolled) .site-header .lang button[aria-pressed="true"] { background: #fff; color: var(--petrol-ink); }
html.over-hero:not(.scrolled) .site-header .header-cta { background: var(--ochre); border-color: var(--ochre); }
html.over-hero.scrolled .site-header { background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
html.over-hero .fam-hero { height: clamp(600px, 100vh, 980px); }
html.over-hero .fp-head, html.over-hero .cp2-card { padding-top: calc(var(--header-h) + 30px); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--petrol); flex: none; }
.brand img { width: 34px; height: auto; }
.brand b { font-family: var(--latin); font-weight: 600; letter-spacing: .32em; font-size: 15px; }
.nav { margin-inline-start: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px; font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: var(--radius); white-space: nowrap;
}
.nav a:hover, .nav button:hover, .nav [aria-current="page"], .nav .is-current > button { color: var(--petrol-2); background: rgba(35, 65, 74, .06); }
.nav [aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ochre); }
.nav button::after { content: ""; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.nav .sub {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(27, 47, 53, .14); border-radius: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .18s var(--ease);
}
.nav li.open > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; align-items: center; padding: 10px; white-space: normal; }
.nav .sub a i { grid-row: span 2; width: 34px; height: 34px; background-size: cover; border-radius: 2px; }
.nav .sub a span { font-weight: 600; }
.nav .sub a small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.lang button { font: 500 12.5px/1 var(--sans); padding: 7px 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--petrol); color: #fff; }
.lang button[data-l="en"], .lang button[data-l="fr"] { font-family: var(--latin); }
@media (max-width: 420px) { .lang button { padding: 7px 8px; } }
@media (max-width: 380px) { .lang button { padding: 6px 5px; font-size: 12px; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 14.5px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: .2s var(--ease);
}
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-2); }
.btn-ochre { background: var(--ochre); color: #fff; }
.btn-ochre:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: none; }
.btn-ghost:hover { background: rgba(35, 65, 74, .06); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.header-cta { flex: none; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: none; border-radius: var(--radius); cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; inset-inline-start: 11px; width: 18px; height: 1.6px; background: var(--ink); content: ""; transition: .2s; }
.burger span { top: 20px; } .burger span::before { top: -6px; inset-inline-start: 0; } .burger span::after { top: 6px; inset-inline-start: 0; }

@media (max-width: 1180px) {
  .nav a, .nav button { padding: 10px 8px; font-size: 14px; }
  .header-cta { display: none; }
}
@media (max-width: 1020px) {
  .burger { display: block; margin-inline-start: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--ivory); overflow-y: auto; padding: 18px var(--gutter) 40px; transform: translateX(var(--nav-off, 100%)); transition: transform .3s var(--ease); margin: 0; }
  .site-header[dir="ltr"] .nav { --nav-off: -100%; }
  html.menu-open .nav { transform: none; }
  html.menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button { width: 100%; padding: 16px 4px; font-size: 17px; justify-content: space-between; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 12px; display: none; }
  .nav li.open > .sub { display: block; }
  .nav .sub a { padding: 10px 4px; font-size: 15px; }
  .lang { order: -1; }
}

/* ---------------------------------------------------------------- page hero */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ochre); letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 52px); color: var(--petrol-ink); }
.page-hero .lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--ink-2); max-width: 60ch; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero .wrap > .tiles { --cols: 4; max-width: 440px; justify-self: end; width: 100%; }
html[dir="ltr"] .page-hero .wrap > .tiles { justify-self: start; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--petrol); }
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .wrap > .tiles { max-width: none; --cols: 6; justify-self: stretch; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.alt { background: color-mix(in srgb, var(--ivory-2) 78%, transparent); }
.sec.dark { background: var(--petrol); color: var(--on-dark); border-top: 0; }
.sec.dark .eyebrow { color: var(--ochre-light); }
.sec.dark .muted, .sec.dark .lead { color: rgba(238, 243, 242, .78); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(25px, 3vw, 38px); color: inherit; }
.sec:not(.dark) .sec-head h2 { color: var(--petrol-ink); }
.sec-head .lead { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.muted { color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); border-inline-start: 2px solid var(--ochre); padding-inline-start: 12px; margin-top: 20px; }
.draft { display: inline-block; font-size: 12px; background: transparent; color: var(--ochre); padding: 1px 10px; border: 1px dashed currentColor; border-radius: 2px; font-weight: 500; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--paper); border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px); min-width: 0; }
.card h3 { font-size: 19px; color: var(--petrol-ink); margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card ul { margin: 12px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 15px; }
.sec.dark .card { background: rgba(255, 255, 255, .05); border-color: var(--line-light); }
.sec.dark .card h3 { color: #fff; } .sec.dark .card p, .sec.dark .card ul { color: rgba(238, 243, 242, .78); }
.card .tile-dot { width: 44px; height: 44px; background-size: cover; margin-bottom: 16px; }

/* figures */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.dark .figures { border-color: var(--line-light); }
.figures > div { padding: 26px 18px; border-inline-end: 1px solid var(--line); }
.sec.dark .figures > div { border-color: var(--line-light); }
.figures > div:last-child { border-inline-end: 0; }
.figures strong { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; color: var(--ochre); line-height: 1.1; font-variant-numeric: tabular-nums; }
.figures span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.sec.dark .figures span { color: rgba(238, 243, 242, .78); }
@media (max-width: 760px) { .figures { grid-template-columns: repeat(2, 1fr); } .figures > div:nth-child(2) { border-inline-end: 0; } .figures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.steps > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); counter-increment: st; }
.sec.dark .steps > li { border-color: var(--line-light); }
.steps > li::before { content: counter(st, persian); font-size: 30px; font-weight: 800; color: var(--ochre); line-height: 1; }
html[lang="en"] .steps > li::before, html[lang="fr"] .steps > li::before { content: counter(st, decimal-leading-zero); font-family: var(--latin); font-weight: 500; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.sec.dark .steps p { color: rgba(238, 243, 242, .78); }
.steps ul { margin: 10px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 15px; columns: 2; column-gap: 28px; }
@media (max-width: 620px) { .steps ul { columns: 1; } .steps > li { grid-template-columns: 44px 1fr; } }

/* split: text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.split img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }

/* room photo cards */
.room { position: relative; overflow: hidden; display: block; text-decoration: none; color: #fff; background: var(--petrol); }
.room img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .8s var(--ease); }
.room:hover img { transform: scale(1.03); }
.room figcaption, .room .cap { position: absolute; inset: auto 0 0 0; padding: 48px 18px 14px; background: linear-gradient(transparent, rgba(20, 28, 30, .78)); display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 2px; font-size: 13px; }
.room .cap > span:last-child, .room figcaption > span:last-child { opacity: .8; }
.room .cap b { font-size: 16px; }
.room .cap .latin { font-size: 12px; letter-spacing: .14em; opacity: .85; }

/* family band */
.family { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.family .tiles { --cols: 4; padding: 0; gap: 2px; background: var(--paper); grid-auto-rows: 1fr; min-width: 0; }
.family .tiles > i { aspect-ratio: auto; min-height: 96px; }
.family .body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.family .name { font-family: var(--display-latin); font-size: clamp(30px, 3.4vw, 44px); letter-spacing: .14em; color: var(--petrol-ink); line-height: 1; }
.family .name small { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--ochre); margin-top: 10px; font-weight: 600; }
@media (max-width: 760px) { .family { grid-template-columns: 1fr; } }

/* swatch grid (catalogue) */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 3px; background: var(--grout); padding: 3px; }
.sw { position: relative; aspect-ratio: 1; background-size: cover; display: block; text-decoration: none; color: #fff; overflow: hidden; }
.sw span { position: absolute; inset: auto 0 0 0; padding: 22px 10px 7px; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); font-family: var(--latin); font-size: 11.5px; letter-spacing: .08em; display: flex; justify-content: space-between; gap: 6px; opacity: .92; transition: .2s; }
.sw:hover span, .sw:focus-visible span { opacity: 1; }
.sw b { font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.chip { font: 500 14px/1 var(--sans); padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.search { flex: 1 1 220px; max-width: 320px; margin-inline-start: auto; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; background: var(--paper); }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form-ok { padding: 14px 16px; background: #e4efe9; color: #1f5137; border-radius: var(--radius); }

/* table */
.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.spec th, table.spec td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
table.spec td:first-child { font-weight: 600; color: var(--petrol-ink); }

/* timeline (oman) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.timeline li { padding: 22px 18px 0 0; border-top: 2px solid var(--line-light); position: relative; }
html[dir="ltr"] .timeline li { padding: 22px 0 0 18px; }
.timeline li::before { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--petrol); border: 2px solid var(--ochre-light); }
.timeline li.done::before { background: var(--ochre-light); }
.timeline li.now::before { background: var(--ochre-light); box-shadow: 0 0 0 6px rgba(216, 184, 134, .25); }
.timeline b { display: block; color: #fff; margin-bottom: 4px; }
.timeline span { font-size: 14px; color: rgba(238, 243, 242, .75); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; gap: 8px; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--petrol-ink); color: rgba(238, 243, 242, .8); }
.site-footer .tiles { --cols: 16; background: var(--petrol-ink); gap: 2px; padding: 0; opacity: .9; }
.site-footer .tiles > i { aspect-ratio: 2 / 1; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 36px; }
.foot-grid h4 { color: #fff; font-size: 14.5px; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot-grid a { text-decoration: none; } .foot-grid a:hover { color: #fff; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand .brand img { filter: brightness(0) invert(1); }
.foot-brand p { font-size: 14.5px; max-width: 36ch; }
.foot-bottom { border-top: 1px solid var(--line-light); padding-block: 18px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .site-footer .tiles { --cols: 8; } }

/* reveal */
.reveal { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }

/* translation notice for ar/en while page copy is Persian */
.tr-note { display: none; background: var(--ochre-soft); color: #5c4320; font-size: 13.5px; text-align: center; padding: 8px 16px; }
html.lang-ar .tr-note, html.lang-en .tr-note, html.lang-fr .tr-note { display: none; }
/* English pages: Latin text set in Montserrat (Persian and Arabic keep Vazirmatn) */
html[lang="en"], html[lang="fr"] { --sans: "Montserrat", "Vazirmatn", system-ui, sans-serif; }
html[lang="en"] body, html[lang="fr"] body { line-height: 1.75; }

/* theme picker shown in the design preview */
.skin-pick { position: fixed; z-index: 60; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.skin-pick button { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background-size: 220px; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--line); }
.skin-pick button i { position: absolute; inset: auto -2px -2px auto; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; }
.skin-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--petrol); }
.skin-pick button b { position: absolute; bottom: calc(100% + 10px); inset-inline-start: 50%; transform: translateX(50%); white-space: nowrap; background: var(--petrol-ink); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 4px; opacity: 0; pointer-events: none; transition: .15s; }
.skin-pick button:hover b, .skin-pick button:focus-visible b { opacity: 1; }
@media (max-width: 520px) { .skin-pick > span { display: none; } .skin-pick button { width: 30px; height: 30px; } }

/* ---------------------------------------------------------------- tile menu (tilemenu.js) */
/* every section is a tile of real Celomix coating, labelled like a sample board */
.tm-btn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 14px/1 var(--sans); color: var(--petrol-ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
html[dir="ltr"] .tm-btn, .site-header[dir="ltr"] .tm-btn { padding: 5px 6px 5px 16px; }
.tm-btn:hover { border-color: var(--ochre); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.tm-btn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
.tm-btn-tiles i { background-size: cover; transition: transform .4s var(--ease); }
.tm-btn:hover .tm-btn-tiles i:nth-child(1) { transform: translate(-1px, -1px); } .tm-btn:hover .tm-btn-tiles i:nth-child(4) { transform: translate(1px, 1px); }

.tm-tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 3px; overflow: hidden; cursor: pointer; background-size: cover; background-position: center; font: inherit; text-align: start; color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 12px 30px rgba(0, 0, 0, .2); transition: transform .6s var(--ease), box-shadow .6s var(--ease), filter .4s; }
.tm-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 42%, rgba(0, 0, 0, .16)); pointer-events: none; }
.tm-tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 30%) var(--my, 25%), rgba(255, 255, 255, .42), transparent 46%); opacity: 0; transition: opacity .4s; pointer-events: none; mix-blend-mode: soft-light; }
.tm-tile:hover, .tm-tile:focus-visible { transform: translateY(-5px) scale(1.012); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 24px 50px rgba(0, 0, 0, .3); }
.tm-tile:hover::after, .tm-tile:focus-visible::after { opacity: 1; }
.tm-code { position: absolute; top: 10px; inset-inline-end: 14px; font-family: var(--display-latin); font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: .04em; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.tm-plate { position: absolute; inset-inline: 10px; bottom: 10px; display: grid; gap: 2px; padding: 9px 13px 10px; background: rgba(251, 249, 245, .9); backdrop-filter: blur(6px); border-radius: 2px; transition: transform .5s var(--ease); }
.tm-plate b { font-size: clamp(14px, 1.3vw, 17px); color: var(--petrol-ink); font-weight: 800; line-height: 1.4; }
.tm-plate small { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tile:hover .tm-plate { transform: translateY(-3px); }
@keyframes tmIn { from { opacity: 0; transform: translateY(30px) rotateX(16deg) scale(.95); } }
.tm-grid, .tm-wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; perspective: 1400px; }
.tm-wall .tm-tile { animation: tmIn 1s var(--ease) both; animation-delay: calc(var(--d) * 80ms + 200ms); }

/* full-screen menu */
html.tm-locked { overflow: hidden; }
.tm-overlay { position: fixed; inset: 0; z-index: 80; overflow-y: auto; padding: 0 var(--gutter) 28px; color: #fff; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(120% 90% at 50% 30%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .45)), linear-gradient(color-mix(in srgb, var(--petrol-ink) 90%, transparent), color-mix(in srgb, var(--petrol-ink) 94%, transparent)), var(--tex) center / 560px; }
.tm-overlay.open { opacity: 1; }
.tm-top { max-width: 1120px; margin: 0 auto; height: 84px; display: flex; align-items: center; gap: 20px; }
.tm-top .brand { color: #fff; } .tm-top .brand img { filter: brightness(0) invert(1); }
.tm-top p { margin-inline-start: auto; font-size: 14px; color: var(--ochre-light); }
.tm-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: none; cursor: pointer; position: relative; }
.tm-close span::before, .tm-close span::after, .tm-x::before, .tm-x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.tm-close span::after, .tm-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.tm-close { color: #fff; } .tm-close:hover { background: rgba(255, 255, 255, .1); }
.tm-grid { max-width: min(1120px, calc((100vh - 130px) * 1.36)); margin: 0 auto; }
.tm-overlay .tm-tile { opacity: 0; }
.tm-overlay.open .tm-tile { animation: tmIn .9s var(--ease) both; animation-delay: calc(var(--d) * 55ms + 80ms); opacity: 1; }

/* the window a tile opens into */
.tm-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 18, .5); backdrop-filter: blur(5px); opacity: 0; transition: opacity .5s var(--ease); }
.tm-scrim.in { opacity: 1; }
.tm-win { position: fixed; z-index: 91; inset: 0; margin: auto; width: min(1100px, 92vw); height: min(640px, 86vh); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .45); color: var(--ink); }
.tm-win-tex { position: relative; background-size: 640px; background-position: center; }
.tm-win-tex::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 40%, rgba(0, 0, 0, .22)); }
.tm-big { position: absolute; top: 18px; inset-inline-start: 26px; font-family: var(--display-latin); font-size: clamp(64px, 9vw, 132px); line-height: 1; color: rgba(255, 255, 255, .88); text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.tm-win-tex .tm-plate { inset-inline: 22px auto; bottom: 22px; padding: 12px 18px; }
.tm-win-tex .tm-plate b { font-size: 20px; }
.tm-win-body { position: relative; padding: clamp(26px, 4vw, 52px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.tm-win-body h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--petrol-ink); }
.tm-win-body .eyebrow { margin: 0; font-size: 11.5px; letter-spacing: .18em; }
.tm-text { color: var(--ink-2); font-size: 16.5px; max-width: 46ch; }
.tm-subs { display: grid; gap: 8px; margin-top: 6px; }
.tm-sub { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; padding-inline-end: 16px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; background: var(--paper); transition: background .25s, border-color .25s, transform .35s var(--ease); }
.tm-sub:hover { background: var(--ivory-2); border-color: var(--ochre); transform: translateX(-4px); }
html[dir="ltr"] .tm-sub:hover, .tm-win[dir="ltr"] .tm-sub:hover { transform: translateX(4px); }
.tm-sub i { width: 54px; height: 54px; background-size: cover; border-radius: 2px; }
.tm-sub b { display: block; color: var(--petrol-ink); font-size: 15.5px; }
.tm-sub small { color: var(--muted); font-size: 13px; }
.tm-sub em { font-style: normal; color: var(--ochre); font-size: 18px; }
.tm-win[dir="ltr"] .tm-sub em { transform: scaleX(-1); }
.tm-go { margin-top: auto; padding-top: 8px; }
.tm-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.tm-x:hover { border-color: var(--ochre); }
.tm-win-body > * { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.tm-win.in .tm-win-body > * { opacity: 1; transform: none; }
.tm-win.in .tm-win-body > :nth-child(2) { transition-delay: .22s; } .tm-win.in .tm-win-body > :nth-child(3) { transition-delay: .28s; }
.tm-win.in .tm-win-body > :nth-child(4) { transition-delay: .34s; } .tm-win.in .tm-win-body > :nth-child(5) { transition-delay: .4s; } .tm-win.in .tm-win-body > :nth-child(6) { transition-delay: .46s; }
.tm-win .tm-win-tex .tm-big, .tm-win .tm-win-tex .tm-plate { opacity: 0; transition: opacity .6s .3s, transform .8s .3s var(--ease); transform: translateY(10px); }
.tm-win.in .tm-win-tex .tm-big, .tm-win.in .tm-win-tex .tm-plate { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .tm-grid, .tm-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tm-grid { max-width: none; }
  .tm-top p { display: none; } .tm-top .tm-close { margin-inline-start: auto; }
  .tm-win { grid-template-columns: 1fr; grid-template-rows: 34% 1fr; width: 94vw; height: 90vh; }
  .tm-win-body { padding-top: 68px; }
  .tm-btn > span:last-child { display: none; } .tm-btn { padding: 5px; }
}
@media (prefers-reduced-motion: reduce) { .tm-wall .tm-tile, .tm-overlay.open .tm-tile { animation: none; } }

/* ---------------------------------------------------------------- the collection (collection.js) */
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }

/* homepage: four families, one opens at a time */
.fam-hero { position: relative; display: flex; gap: 3px; height: clamp(560px, calc(100vh - var(--header-h)), 900px); background: var(--petrol-ink); overflow: hidden; }
.fh-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex 1.2s cubic-bezier(.6, 0, .15, 1); outline-offset: -4px; }
.fh-panel.on { flex: 3.6 1 0; }
.fh-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.9) brightness(.82); transition: transform 9s linear, filter 1.2s; }
.fh-panel.on img { transform: scale(1.0); filter: none; }
.fh-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 18, .25), transparent 20%, transparent 36%, rgba(10, 16, 18, .62) 60%, rgba(10, 16, 18, .9)); transition: background 1s; }
.fh-panel:not(.on) .fh-shade { background: linear-gradient(180deg, rgba(10, 16, 18, .45), rgba(10, 16, 18, .7)); }
.fh-spine { position: absolute; bottom: 36px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .6s; }
html[dir="ltr"] .fh-spine { transform: translateX(-50%); }
.fh-spine b { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display-latin); font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: .32em; }
.fh-spine small { font-size: 14px; color: var(--ochre-light); font-weight: 600; }
.fh-panel.on .fh-spine { opacity: 0; }
.fh-body { position: absolute; inset-inline: clamp(24px, 4vw, 64px); bottom: clamp(30px, 6vh, 64px); display: grid; justify-items: start; gap: 10px; max-width: 560px; opacity: 0; transform: translateY(24px); transition: opacity .7s, transform 1s var(--ease); pointer-events: none; }
.fh-panel.on .fh-body { opacity: 1; transform: none; transition-delay: .55s; pointer-events: auto; }
.fh-count { font-size: 13px; color: var(--ochre-light); font-weight: 600; }
.fh-name { font-family: var(--display-latin); font-weight: 500; font-size: clamp(50px, 6.4vw, 104px); line-height: .92; letter-spacing: .1em; margin-inline-start: -.05em; }
.fh-fa { font-size: clamp(20px, 2vw, 28px); font-weight: 300; margin-top: -4px; }
.fh-mood { font-size: 16px; color: rgba(255, 255, 255, .82); max-width: 42ch; }
.fh-strip { display: flex; gap: 3px; margin-top: 6px; }
.fh-strip i { width: 34px; height: 34px; background-size: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.fh-go { margin-top: 10px; display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; background: rgba(255, 255, 255, .94); color: var(--petrol-ink); font-weight: 700; font-size: 14.5px; border-radius: 2px; transition: background .25s; }
.fh-go em { font-style: normal; color: var(--ochre); transition: transform .3s; }
html[dir="ltr"] .fh-go em { transform: scaleX(-1); }
.fh-panel:hover .fh-go em { transform: translateX(-4px); }
.fh-room { font-size: 10.5px; letter-spacing: .16em; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.fh-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.fh-bar::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--ochre-light); }
.fh-panel.on .fh-bar::after { width: 100%; transition: width 7s linear; }
.fam-hero:hover .fh-bar::after { transition: none; }
@media (max-width: 860px) {
  .fam-hero { flex-direction: column; height: auto; }
  .fh-panel { flex: none; height: 92px; transition: height 1s cubic-bezier(.6, 0, .15, 1); }
  .fh-panel.on { flex: none; height: min(78vh, 600px); }
  .fh-spine { inset-inline-start: 22px; bottom: 50%; transform: translateY(50%); flex-direction: row; }
  html[dir="ltr"] .fh-spine { transform: translateY(50%); }
  .fh-spine b { writing-mode: horizontal-tb; transform: none; font-size: 26px; letter-spacing: .24em; }
  .fh-name { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) { .fh-panel img { transition: none; transform: none; } }

/* family page */
.fp-hero { position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--petrol-ink); }
.fp-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fpZoom 14s ease-out both; }
@keyframes fpZoom { from { transform: scale(1.1); } }
.fp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 18, .3), transparent 30%, rgba(10, 16, 18, .85)); }
.fp-head { position: relative; padding-block: 48px clamp(40px, 7vh, 72px); width: 100%; }
.fp-head .crumbs, .fp-head .crumbs a { color: rgba(255, 255, 255, .7); }
.fp-count { color: var(--ochre-light); font-weight: 600; font-size: 14px; }
.fp-head h1 { display: grid; font-size: clamp(22px, 2.4vw, 32px); color: #fff; gap: 6px; margin-top: 8px; }
.fp-head h1 .latin { font-family: var(--display-latin); font-weight: 500; font-size: clamp(60px, 9vw, 140px); line-height: .9; letter-spacing: .1em; }
.fp-world { margin-top: 14px; font-size: 18px; max-width: 52ch; color: rgba(255, 255, 255, .88); }
.fp-mood { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 6px; }
.fp-head > * { animation: hwIn 1s var(--ease) both; } .fp-head > :nth-child(3) { animation-delay: .12s; } .fp-head > :nth-child(4) { animation-delay: .22s; }
@keyframes hwIn { from { opacity: 0; transform: translateY(18px); } }
.fp-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.fp-bar .filters { margin: 0; }
.fp-bar .muted { font-size: 14px; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 2vw, 26px); }
.fc { display: block; text-decoration: none; color: inherit; }
.fc[hidden] { display: none; }
.fc-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivory-2); }
.fc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s; }
.fc-media .fc-tex { opacity: 0; transform: scale(1.15); }
.fc:hover .fc-media img:first-child { transform: scale(1.04); }
.fc:hover .fc-tex, .fc:focus-visible .fc-tex { opacity: 1; transform: scale(1); }
.fc-cap { display: flex; gap: 14px; align-items: baseline; padding: 14px 2px 0; border-top: 0; }
.fc-cap > b { font-family: var(--display-latin); font-size: 30px; font-weight: 500; color: var(--ochre); line-height: 1; }
.fc-cap strong { display: block; font-size: 12.5px; letter-spacing: .16em; color: var(--petrol-ink); font-weight: 600; }
.fc-cap small { color: var(--ink-2); font-size: 14px; }
.fc-soon { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.fp-other { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; }
.fp-other img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fp-other:hover img { transform: scale(1.05); }
.fp-other span { position: absolute; inset: auto 0 0 0; padding: 50px 20px 18px; background: linear-gradient(transparent, rgba(10, 16, 18, .8)); display: grid; font-size: 14px; }
.fp-other b { font-family: var(--display-latin); font-weight: 500; font-size: 34px; letter-spacing: .14em; line-height: 1.1; }

/* colour page */
.cp2-stage { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--petrol-ink); }
.cp2-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fpZoom 16s ease-out both; }
.cp2-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 18, .25), transparent 35%, rgba(10, 16, 18, .82)); }
.cp2-card { position: relative; width: 100%; padding-block: 40px clamp(36px, 7vh, 64px); }
.cp2-card .crumbs, .cp2-card .crumbs a { color: rgba(255, 255, 255, .72); }
.cp2-card > * { animation: hwIn 1s var(--ease) both; } .cp2-card > :nth-child(3) { animation-delay: .1s; } .cp2-card > :nth-child(4) { animation-delay: .2s; } .cp2-card > :nth-child(5) { animation-delay: .3s; }
.cp2-fam { font-size: 12px; letter-spacing: .2em; color: var(--ochre-light); }
.cp2-card h1 { display: grid; gap: 0; margin-top: 6px; color: #fff; }
.cp2-code { font-family: var(--display-latin); font-weight: 500; font-size: clamp(72px, 11vw, 168px); line-height: .9; }
.cp2-name { font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .3em; font-weight: 500; margin-top: 10px; }
.cp2-desc { margin-top: 14px; font-size: 18px; } .cp2-desc .muted { color: rgba(255, 255, 255, .65); }
.cp2-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cp2-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.cp2-lens { position: relative; margin: 0; aspect-ratio: 1; overflow: hidden; cursor: crosshair; box-shadow: 0 30px 60px rgba(0, 0, 0, .12); }
.cp2-lens img { width: 100%; height: 100%; object-fit: cover; }
.cp2-lens figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 16px 12px; font-size: 12.5px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); }
.cp2-loupe { position: absolute; width: 220px; height: 220px; border-radius: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; background-size: 340%; background-repeat: no-repeat; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: opacity .25s, transform .35s var(--ease); }
.cp2-lens.on .cp2-loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cp2-story { font-size: clamp(18px, 1.7vw, 22px); line-height: 2; color: var(--petrol-ink); font-weight: 500; }
.cp2-spec { margin: 26px 0 0; display: grid; }
.cp2-spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cp2-spec dt { color: var(--muted); } .cp2-spec dd { margin: 0; font-weight: 600; color: var(--petrol-ink); }
.cp2-uses { display: flex; flex-wrap: wrap; gap: 8px; } .cp2-uses .chip { cursor: default; }
.cp2-near { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; background: var(--grout); padding: 3px; }
.cp2-near a { position: relative; aspect-ratio: 1; background-size: cover; color: #fff; text-decoration: none; }
.cp2-near span { position: absolute; inset: auto 0 0 0; padding: 20px 8px 6px; font-size: 10px; letter-spacing: .1em; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); display: grid; }
.cp2-near b { font-size: 14px; }
.cp2-pn { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.cp2-pn a { display: flex; align-items: center; gap: 16px; padding: 22px var(--gutter); text-decoration: none; color: var(--petrol-ink); transition: background .25s; }
.cp2-pn a:hover { background: var(--ivory-2); }
.cp2-pn .cp2-next { justify-content: flex-end; border-inline-start: 1px solid var(--line); text-align: end; }
.cp2-pn i { width: 64px; height: 64px; background-size: cover; flex: none; }
.cp2-pn small { display: block; color: var(--muted); font-size: 12.5px; }
.cp2-pn b { font-size: 13px; letter-spacing: .12em; }
@media (max-width: 860px) {
  .cp2-split { grid-template-columns: 1fr; }
  .cp2-near { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cp2-pn i { width: 44px; height: 44px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fp-head h1 .latin, .cp2-code, .cp2-name, .fh-name { justify-self: start; }

/* ---------------------------------------------------------------- finish */
/* film grain over photographs, so they read as cinema rather than screen */
.fh-shade::after, .fp-shade::after, .cp2-shade::after, .tm-overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.tm-overlay::before { position: fixed; opacity: .1; }

/* page to page: a short dissolve (browsers with cross-document view transitions) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .35s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vtIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.01); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* opening titles, once per visit on the homepage */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--petrol-ink); color: #fff; transition: opacity .8s var(--ease), visibility .8s; }
.intro.out { opacity: 0; visibility: hidden; }
.intro-in { display: grid; justify-items: center; gap: 18px; }
.intro-word { font-family: var(--latin); font-weight: 500; font-size: clamp(22px, 3vw, 34px); letter-spacing: .6em; margin-inline-start: .6em; display: flex; }
.intro-word span { opacity: 0; transform: translateY(14px); animation: introL .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes introL { to { opacity: 1; transform: none; } }
.intro-line { width: min(240px, 50vw); height: 1px; background: rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.intro-line::after { content: ""; position: absolute; inset: 0; background: var(--ochre-light); transform: scaleX(0); transform-origin: right; animation: introBar 1.3s .25s cubic-bezier(.6, 0, .2, 1) forwards; }
html[dir="ltr"] .intro-line::after { transform-origin: left; }
@keyframes introBar { to { transform: scaleX(1); } }
.intro small { font-size: 12.5px; color: rgba(255, 255, 255, .55); letter-spacing: .02em; opacity: 0; animation: introL .8s .7s var(--ease) forwards; }

/* footer: the name, set large and quiet */
.foot-word { font-family: var(--display-latin); font-weight: 500; font-size: clamp(64px, 17vw, 260px); line-height: .8; letter-spacing: .14em; text-align: center; color: rgba(255, 255, 255, .05); padding-top: 10px; overflow: hidden; white-space: nowrap; user-select: none; }

/* theme picker collapses to one swatch until opened */
.skin-pick:not(.open) > span, .skin-pick:not(.open) button:not([aria-pressed="true"]) { display: none; }
.skin-pick:not(.open) { padding: 6px; }

/* the entrance: a soft black with only a breath of Celomix fibre in it, the mark, and the name */
.gate { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; cursor: pointer; color: #ece8e1; }
.gate-half { position: absolute; inset-block: 0; width: 50.5%; overflow: hidden; background: #111315; transition: transform 1.6s cubic-bezier(.76, 0, .24, 1) .25s; }
.gate-half::before { content: ""; position: absolute; inset: 0; width: 200%; background: url(../img/skin/137.jpg) center / 620px; mix-blend-mode: screen; opacity: .045; }
.gate-half::after { content: ""; position: absolute; inset: 0; width: 200%; background: radial-gradient(75% 75% at 50% 50%, rgba(255, 255, 255, .025), rgba(0, 0, 0, .35)); }
.gate-half:first-child { inset-inline-start: 0; }
.gate-half:nth-child(2) { inset-inline-end: 0; }
.gate-half:nth-child(2)::before, .gate-half:nth-child(2)::after { inset-inline-start: -100%; }
.gate.open .gate-half:first-child { transform: translateX(101%); }
.gate.open .gate-half:nth-child(2) { transform: translateX(-101%); }
html[dir="ltr"] .gate.open .gate-half:first-child { transform: translateX(-101%); }
html[dir="ltr"] .gate.open .gate-half:nth-child(2) { transform: translateX(101%); }
.gate-mark { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0; padding: 48px; border: 0; background: none; cursor: pointer; color: inherit;
  transition: opacity .5s ease, transform .9s var(--ease); animation: gateIn 1.8s var(--ease) both; }
.gate-mark img { width: clamp(46px, 4.6vw, 60px); height: auto; margin-bottom: 30px; }
.gate-mark b { font-family: var(--latin); font-weight: 200; font-size: clamp(30px, 4.4vw, 58px); letter-spacing: .5em; margin-inline-start: .5em; line-height: 1; transition: letter-spacing 1.2s var(--ease); }
.gate-mark:hover b, .gate-mark:focus-visible b { letter-spacing: .56em; }
.gate-mark i { position: relative; width: clamp(160px, 22vw, 320px); height: 1px; margin: 28px 0 18px; background: rgba(236, 232, 225, .28); overflow: hidden; }
.gate-mark i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(236, 232, 225, .9), transparent); transform: translateX(-100%); animation: gateLine 3.6s ease-in-out 1.6s infinite; }
.gate-mark small { font-family: var(--latin); font-weight: 300; font-size: clamp(9.5px, .9vw, 11.5px); letter-spacing: .42em; margin-inline-start: .42em; color: rgba(236, 232, 225, .55); text-transform: uppercase; }
.gate-mark:focus-visible { outline: none; }
.gate.open .gate-mark { opacity: 0; transform: scale(.97); }
@keyframes gateIn { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 520px) { .gate-mark small { white-space: nowrap; font-size: 8.5px; letter-spacing: .26em; margin-inline-start: .26em; } }
@keyframes gateLine { to { transform: translateX(100%); } }
/* the house settles in behind the opening doors */
html.entering .fam-hero { animation: settle 2s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes settle { from { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .gate-half, .gate-mark, .gate-mark i::after { transition: none; animation: none; } html.entering .fam-hero { animation: none; } }

/* colour page: the light of the day. A gentle grade over the whole photograph, wall and room together;
   night needs real relit photographs (photo agent), so it is left out until those exist */
.cp2-stage > img { transition: filter 1.6s var(--ease); }
.cp2-stage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.cp2-stage > .cp2-shade, .cp2-stage > .cp2-card, .cp2-stage > .cp2-light { z-index: 1; }
.cp2-stage[data-light="eve"] > img { filter: sepia(.16) saturate(1.06) brightness(.94) contrast(1.02) hue-rotate(-4deg); }
.cp2-stage[data-light="eve"]::before { opacity: 1; mix-blend-mode: soft-light; background: radial-gradient(120% 90% at 15% 35%, rgba(255, 176, 96, .55), rgba(255, 140, 60, .12) 55%, rgba(40, 20, 10, .2)); }
.cp2-light { position: absolute; bottom: clamp(36px, 7vh, 64px); inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(10, 16, 18, .45); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 13px; }
.cp2-light span { padding: 0 10px 0 6px; opacity: .7; }
.cp2-light button { border: 0; background: none; color: #fff; font: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.cp2-light button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: var(--petrol-ink); }
@media (max-width: 760px) { .cp2-light { position: relative; inset: auto; margin: 0 var(--gutter) 20px; align-self: flex-start; } .cp2-stage { flex-direction: column; justify-content: flex-end; align-items: stretch; } }

/* colour page: three companions */
.cp2-palette { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3px; background: var(--grout); padding: 3px; min-height: 320px; }
.cp2-palette a { position: relative; background-size: cover; background-position: center; color: #fff; text-decoration: none; display: flex; align-items: flex-end; overflow: hidden; }
.cp2-palette a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10, 16, 18, .7)); transition: opacity .4s; }
.cp2-palette span { position: relative; z-index: 1; display: grid; gap: 2px; padding: 18px; }
.cp2-palette small { font-size: 12px; color: var(--ochre-light); font-weight: 600; }
.cp2-palette b { font-size: 12.5px; letter-spacing: .14em; font-weight: 600; }
.pal-main b { font-family: var(--display-latin); font-size: 46px; letter-spacing: .02em; font-weight: 500; line-height: 1; display: block; }
.pal-main span { font-size: 12.5px; letter-spacing: .16em; }
.cp2-palette i { font-style: normal; font-size: 12.5px; opacity: .8; line-height: 1.6; }
.cp2-palette em { position: absolute; z-index: 1; top: 14px; inset-inline-end: 16px; font-style: normal; font-size: 12px; opacity: .85; }
.cp2-comp-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin-top: clamp(16px, 2vw, 24px); }
.cp2-comp-rooms a { display: grid; gap: 8px; text-decoration: none; color: var(--petrol-ink); }
.cp2-comp-rooms img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cp2-comp-rooms span { font-size: 12px; letter-spacing: .14em; }
@media (max-width: 760px) { .cp2-palette { grid-template-columns: 1fr 1fr; } .pal-main { grid-column: 1 / -1; min-height: 200px; } .cp2-palette a { min-height: 150px; } .cp2-comp-rooms { grid-template-columns: 1fr; } }

/* colour page: on your own wall (photo agent) */
.cp2-agent h2 { font-size: clamp(24px, 2.8vw, 36px); color: #fff; }
.ag-pick { cursor: pointer; }
.ag-msg { margin-top: 14px; font-size: 14px; color: var(--ochre-light); min-height: 1.6em; }
.ag-stage { position: relative; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; overflow: hidden; }
.ag-empty { display: grid; justify-items: center; gap: 6px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.ag-empty .latin { font-family: var(--display-latin); font-size: 64px; color: rgba(255, 255, 255, .25); line-height: 1; }
.ag-stage > img, .ag-compare img { width: 100%; height: 100%; object-fit: contain; }
.ag-stage.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); animation: agScan 1.6s linear infinite; }
@keyframes agScan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ag-compare { position: relative; width: 100%; height: 100%; }
.ag-compare img { position: absolute; inset: 0; }
.ag-compare .ag-after { clip-path: inset(0 0 0 var(--p)); }
.ag-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ag-compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .4); pointer-events: none; }

/* colour of the year */
.yr-why .cp2-lens { cursor: default; }
.yr-tag { margin-top: 22px; font-weight: 600; color: var(--ochre); }
.yr-pals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.yr-sw { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3px; background: var(--grout); padding: 3px; height: 220px; margin-bottom: 16px; }
.yr-sw a { position: relative; background-size: cover; color: #fff; text-decoration: none; transition: filter .3s; }
.yr-sw a:hover { filter: brightness(1.06); }
.yr-sw span { position: absolute; bottom: 8px; inset-inline-start: 10px; font-size: 13px; letter-spacing: .08em; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.yr-sw .main span { font-family: var(--display-latin); font-size: 32px; }
.yr-pal h3 { font-size: 20px; color: var(--petrol-ink); }
.yr-pal p { color: var(--ink-2); font-size: 14.5px; }
.yr-names { font-size: 11px !important; letter-spacing: .1em; color: var(--muted) !important; margin-top: 6px; }
@media (max-width: 860px) { .yr-pals { grid-template-columns: 1fr; } }
