/* ==========================================================================
   Inna's House — landing page
   Theme colours are registered custom properties so they can animate when
   the active section changes (see js/main.js → html[data-theme]).
   ========================================================================== */

/* ── Fonts (self-hosted) ─────────────────────────────────────────────────
   Gilroy (display): supplied by the client. The free Gilroy release is
   licensed for personal use only — a commercial web licence is needed
   before this site goes live. No italic is available, so emphasis uses
   the bold weight + accent colour instead.
   Manrope (body): SIL Open Font License; variable font, one file 400–600. */
@font-face {
  font-family: "Gilroy"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../assets/fonts/gilroy-regular.woff2) format("woff2");
}
@font-face {
  font-family: "Gilroy"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/gilroy-bold.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --bg    { syntax: "<color>"; inherits: true; initial-value: #dfe5e8; }
@property --fg     { syntax: "<color>"; inherits: true; initial-value: #11161a; }
@property --muted  { syntax: "<color>"; inherits: true; initial-value: #4a5660; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #3d5a6c; }
@property --line   { syntax: "<color>"; inherits: true; initial-value: #11161a33; }

:root {
  --font-display: "Gilroy", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --theme-speed: 900ms;

  /* each section's palette is lifted from its photograph */
  --bg: #dfe5e8; --fg: #11161a; --muted: #4a5660; --accent: #3d5a6c; --line: #11161a33;

  transition:
    --bg var(--theme-speed) var(--ease),
    --fg var(--theme-speed) var(--ease),
    --muted var(--theme-speed) var(--ease),
    --accent var(--theme-speed) var(--ease),
    --line var(--theme-speed) var(--ease);
}

/* sea — pale winter sky over the breakwater */
html[data-theme="sea"]     { --bg: #dfe5e8; --fg: #11161a; --muted: #4a5660; --accent: #3d5a6c; --line: #11161a2e; }
/* rust — autumn curls, burnt orange lips */
html[data-theme="rust"]    { --bg: #2b1c17; --fg: #f3e6da; --muted: #c4a898; --accent: #e07a55; --line: #f3e6da2a; }
/* cobalt — the blue tweed blazer and gold chain */
html[data-theme="cobalt"]  { --bg: #1a46c4; --fg: #f6f0e6; --muted: #c7d3f5; --accent: #e6be55; --line: #f6f0e633; }
/* powder — the AI moodboard */
html[data-theme="powder"]  { --bg: #e8ecf0; --fg: #1d2a38; --muted: #57687a; --accent: #5b7a98; --line: #1d2a382b; }
/* golden — sunset in the garden */
html[data-theme="golden"]  { --bg: #19170f; --fg: #f6ead0; --muted: #b7a983; --accent: #f1b53e; --line: #f6ead026; }
/* crimson — red beret, red dress */
html[data-theme="crimson"] { --bg: #9d1f1b; --fg: #fbf1ea; --muted: #f2c3b4; --accent: #ffd9c9; --line: #fbf1ea33; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
em { font-style: normal; color: var(--accent); }
h1 em, h2 em, h3 em, blockquote em { font-weight: 700; }
html { font-synthesis: none; }  /* never fake italic/bold for missing faces */

::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6em 1em;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

h1, h2, h3, blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1.05em 1.9em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn--small { padding: .75em 1.35em; font-size: .7rem; min-height: 44px; }
.btn--light { background: var(--fg); color: var(--bg); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .45em;
  transition: text-decoration-color .3s;
}

/* hover styles only for real pointers, so they don't "stick" after a tap */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--bg); }
  .btn--light:hover { background: var(--accent); color: #5e0f0c; }
  .link-arrow:hover { text-decoration-color: var(--fg); }
  .nav__links a:hover { opacity: 1; }
  .lang a:hover { opacity: 1; }
  .card:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); border-color: var(--accent); }
}

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

/* ── Navigation ───────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-100%); }

/* House mark: the PNG is used as a mask so the logo takes the current
   text colour and follows every section theme (dark on light, light on dark). */
.logo-mark {
  display: inline-block;
  flex: none;
  width: var(--mark-w, 28px);
  aspect-ratio: 357 / 407;
  background-color: currentColor;
  -webkit-mask: url(../assets/img/logo-mark-black.png) center / contain no-repeat;
          mask: url(../assets/img/logo-mark-black.png) center / contain no-repeat;
}

.nav__logo {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__logo .logo-mark { --mark-w: 1.45em; margin-top: -.15em; }
.nav__house { margin-left: -.2em; font-weight: 700; color: var(--accent); letter-spacing: .14em; }

.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav__links a {
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; opacity: .75; transition: opacity .3s;
}

.nav__actions { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); }

/* language switcher: BG / EN — each link is a 44×44 tap target */
.lang { display: flex; align-items: center; font-size: .72rem; font-weight: 600; letter-spacing: .14em; }
.lang a {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px;
  text-decoration: none;
  opacity: .7;
  transition: opacity .3s;
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a[aria-current="page"] { opacity: 1; pointer-events: none; text-decoration: underline; text-underline-offset: .5em; }

/* ── Section indicator ────────────────────────────────────────────────── */
.indicator {
  position: fixed; left: var(--gutter); bottom: 28px; z-index: 40;
  display: flex; align-items: center; gap: .9rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  pointer-events: none;
  transition: opacity .4s;
}
.indicator.is-hidden { opacity: 0; }
.indicator__num { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .05em; }
.indicator__bar { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.indicator__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--page, 0)); }
.indicator__label { color: var(--muted); }

/* ── Reveal helpers ───────────────────────────────────────────────────── */
/* only hidden when JS is running — without JS the content stays visible */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

h1, h2, h3, blockquote { text-wrap: balance; }
p { text-wrap: pretty; }

/* split headings: each word slides up from a mask */
/* The mask only needs to clip vertically (that hides the word before it
   slides up). Italic glyphs like "?" or "f" overhang their box to the right,
   so horizontal clipping would cut them off. Padding + negative margin gives
   ascenders/descenders room without changing the layout. */
[data-split] .w {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;            /* fallback for browsers without overflow: clip */
  overflow: visible clip;      /* x: visible, y: clip */
  padding: .1em .2em .12em 0;
  margin: -.1em -.2em -.12em 0;
}
[data-split] .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
[data-split].is-in .w > span { transform: none; }

/* Elements with [data-scroll] receive --p (0 → 1) while crossing the viewport */
[data-scroll] { --p: 0; }

/* ── 01 · Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(24px, 5vw, 80px);
  padding: 120px var(--gutter) clamp(40px, 7vh, 80px);
  max-width: var(--max);
  margin: 0 auto;
}
/* logo mark in its own column to the left of the hero text */
.hero__text {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(20px, 2.5vw, 40px);
}
.hero__text > * { grid-column: 2; }
.hero__text > .hero__mark {
  grid-column: 1; grid-row: 1 / span 3;
  align-self: start;
  --mark-w: clamp(72px, 7.5vw, 128px);
  margin-top: .2rem;
}
/* Capped at the size reached when .hero hits --max (1440px): past that the
   text column stops growing, so a larger font pushes "Интелигентна" under
   the photo. */
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; }
.hero__title em { display: inline; }
.hero__lead {
  margin: 2rem 0 .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.25;
}
.hero__sub { max-width: 34ch; margin: 0; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2.5rem; }

.hero__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;          /* arch frame */
  animation: archIn 1.6s var(--ease) both .2s;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  /* --q: 0 at load, grows only as the hero scrolls up out of view, so the
     photo always covers the top of the arch while it is visible */
  transform: translateY(calc(var(--q, 0) * 10%)) scale(1.15);
}
/* The photo's pale sky is almost the same colour as the page, which made the
   top of the arch disappear. A soft shade at the top plus a hairline stroke
   keep the arch shape readable. */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgb(17 22 26 / .2), transparent 40%);
  box-shadow: inset 0 0 0 1px rgb(17 22 26 / .14);
  pointer-events: none;
}
@keyframes archIn {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); }
  to   { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); }
}

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  white-space: nowrap;
  padding-inline: 1.6rem;
}
.marquee span::after { content: "✦"; font-family: var(--font-body); font-size: .55em; margin-left: 3.2rem; color: var(--accent); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 02 · Question ────────────────────────────────────────────────────── */
.question {
  padding: clamp(100px, 18vh, 200px) var(--gutter) clamp(80px, 14vh, 160px);
  max-width: var(--max);
  margin: 0 auto;
}
.question__head { text-align: center; }
.question__title { font-size: clamp(2.4rem, 8vw, 8rem); line-height: .98; }

.question__media {
  --open: 21%;   /* how much each side starts clipped */
  --r0: 200px;   /* starting corner radius */
  margin: clamp(48px, 9vh, 100px) auto 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* the frame "widens" to full width as it scrolls in. clip-path needs no
     layout per frame (animating width did) */
  clip-path: inset(0 calc((1 - var(--p)) * var(--open)) round calc(var(--r0) - var(--p) * (var(--r0) - 4px)));
}
.question__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.25 - var(--p) * .25));
}
.question__body {
  max-width: 30ch;
  margin: clamp(40px, 8vh, 80px) 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
}

/* ── 03 · About ───────────────────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
  padding: clamp(100px, 16vh, 180px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100svh;
}
.about__media { overflow: hidden; aspect-ratio: 2 / 3; border-radius: 4px; }
.about__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translateY(calc((var(--p) - .5) * -10%)) scale(1.14);
}
.about__quote { font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.08; }
.about__body {
  max-width: 38ch;
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.08em;
}

/* ── 04 · Value ───────────────────────────────────────────────────────── */
.value { padding: clamp(100px, 16vh, 180px) 0; }
.value__intro { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.value__title { font-size: clamp(2.6rem, 6vw, 6rem); max-width: 16ch; }
.value__cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(48px, 8vh, 96px);
}
.value__cols p { max-width: 60ch; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.value__cols strong { color: var(--fg); font-weight: 600; letter-spacing: .04em; }
.value__cols p:nth-child(2) { --d: 120ms; }
.value__cols p:nth-child(3) { --d: 240ms; }

/* Looks slider: a native horizontal scroller with snap points, so swipe,
   trackpad and keyboard all work; the arrow buttons and bar are extras. */
.looks { margin: clamp(64px, 12vh, 140px) 0; }
.looks__track {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}
.looks__track::-webkit-scrollbar { display: none; }
.looks__track:focus-visible { outline-offset: -2px; }
.looks__item {
  flex: 0 0 clamp(260px, 28vw, 400px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  scroll-snap-align: start;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.looks__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  transition: transform 1.2s var(--ease);
}
@media (hover: hover) {
  .looks__item:hover img { transform: scale(1.04); }
}
.looks__controls {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
}
.looks__bar { flex: 1; height: 1px; background: var(--line); }
.looks__bar i {
  display: block; height: 100%;
  background: var(--fg);
  transform-origin: left;
  transform: scaleX(var(--lp, 0));
  transition: transform .2s linear;
}
.looks__btn {
  flex: none;
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  font: inherit; font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, opacity .3s;
}
.looks__btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) {
  .looks__btn:not(:disabled):hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.value__statement {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.6rem);
  line-height: 1.15;
}

/* ── 05 · Services — pinned horizontal track ──────────────────────────── */
.services { position: relative; height: var(--pin-h, auto); }
.services__sticky {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.services__track {
  display: flex; align-items: stretch;
  gap: clamp(20px, 2.5vw, 40px);
  padding: 90px var(--gutter) 40px;
  width: max-content;
  transform: translate3d(var(--tx, 0px), 0, 0);
  will-change: transform;
}
.services__intro {
  width: min(78vw, 640px);
  display: flex; flex-direction: column;
}
.services__title { font-size: clamp(2.6rem, 5vw, 5rem); max-width: 12ch; }
.services__media { margin-top: auto; padding-top: 2rem; overflow: hidden; }
.services__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }

.card {
  width: min(78vw, 400px);
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: background-color .5s var(--ease), border-color .5s;
}
.card__num {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--accent);
}
.card__title { margin-top: auto; padding-top: 3rem; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; }
.card p { margin: 1.25rem 0 0; color: var(--muted); }

.services__progress { margin: 0 var(--gutter) 32px; height: 1px; background: var(--line); }
.services__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--sp, 0)); }

/* ── 06 · Closing ─────────────────────────────────────────────────────── */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
  min-height: 100svh;
  padding: clamp(100px, 14vh, 160px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.closing__media { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 4px 4px 999px 999px; }
.closing__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.2 - var(--p) * .2));
}
.closing__title { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.closing__sub {
  margin: 2rem 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.9rem);
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { padding: clamp(60px, 10vh, 120px) var(--gutter) 32px; overflow: hidden; }
.footer__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10.5vw, 12rem);
  line-height: .9;
  letter-spacing: -.04em;
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding-block: 10px; }
  /* backdrop blur is expensive on low-end phones while scrolling over photos */
  .nav {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
  }
  .nav__links { display: none; }
  .indicator { display: none; }

  /* first screen: image + headline + lead + CTA */
  .hero { grid-template-columns: 1fr; align-items: start; gap: 20px; padding-top: 80px; padding-bottom: 48px; }
  .hero__media { order: -1; aspect-ratio: auto; height: clamp(200px, 36svh, 400px); animation-name: archInShort; animation-duration: .9s; animation-delay: 0s; }
  .hero__media img { object-position: 50% 25%; }
  .hero .eyebrow { margin-bottom: .75rem; font-size: .64rem; letter-spacing: .14em; }
  /* phone: small mark next to the eyebrow line, text below spans full width */
  .hero__text { column-gap: 14px; }
  .hero__text > * { grid-column: 1 / -1; }
  .hero__text > .hero__mark { grid-column: 1; grid-row: 1; --mark-w: 34px; margin: 0 0 .75rem; align-self: center; }
  .hero__text > .eyebrow { grid-column: 2; grid-row: 1; align-self: center; }
  .nav { gap: .5rem; }
  .nav__logo { font-size: 1rem; letter-spacing: .1em; gap: .45em; }
  .nav__house { letter-spacing: .1em; }
  .nav__actions { gap: .4rem; }
}

/* very narrow phones (≤ 400px): tighten the nav so logo, BG/EN and the
   button fit on one line */
@media (max-width: 400px) {
  .nav__logo { font-size: .92rem; letter-spacing: .08em; }
  .nav__house { letter-spacing: .08em; }
  .lang a { min-width: 40px; }
  .nav .btn--small { padding-inline: 1em; letter-spacing: .08em; }
  .hero__title { font-size: clamp(2.7rem, 12vw, 4.5rem); }
  .hero__lead { margin-top: 1rem; }
  .hero__cta { margin-top: 1.25rem; gap: .5rem 1.25rem; }
  .hero__cta .btn { padding: 1em 1.4em; }

  .question__media { --open: 10%; --r0: 80px; aspect-ratio: 4 / 5; }
  .question__media img { object-position: 50% 30%; }
  .question__body { margin-left: 0; }

  .about { grid-template-columns: 1fr; min-height: 0; }
  .about__media { max-height: 70svh; width: 100%; }

  .value__cols { grid-template-columns: 1fr; }
  .looks__item { flex-basis: 78vw; }

  .closing { grid-template-columns: 1fr; min-height: 0; }

  .card { padding: 20px 22px 24px; }
  .card__num { font-size: 3rem; }
}

/* tablet: keep photos portrait-sized and centred, two text columns */
@media (min-width: 600px) and (max-width: 900px) {
  .hero__media, .about__media, .closing__media { width: 100%; max-width: 480px; margin-inline: auto; }
  .hero__media { aspect-ratio: 3 / 4; height: auto; max-height: 60svh; }
  .value__cols { grid-template-columns: 1fr 1fr; }
}

@keyframes archInShort {
  from { clip-path: inset(30% 0 0 0 round 999px 999px 4px 4px); opacity: .4; }
  to   { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); opacity: 1; }
}

/* Vertical layout for services on narrow screens (JS skips the pin there) */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .services { height: auto !important; padding: clamp(80px, 12vh, 140px) 0; }
  .services__sticky { position: static; height: auto; overflow: visible; }
  .services__track {
    width: auto; flex-direction: column; transform: none !important;
    padding-top: 0; padding-bottom: 0;
  }
  .services__intro, .card { width: 100%; }
  .services__intro { margin-bottom: 1rem; }
  .card__title { padding-top: 1.5rem; }
  .services__progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --theme-speed: 0ms; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal], [data-split] .w > span { opacity: 1; transform: none; transition: none; }
  [data-scroll] { --p: 1 !important; }
  .hero__media img, .about__media img { transform: none; }
  .looks__item img, .looks__bar i { transition: none; }
}

/* ── Contact page (contact/, en/contact/) ─────────────────────────────── */
/* full-bleed garden photo with a glass panel of contact options */
.ct-nav-home { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; white-space: nowrap; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; opacity: .75; transition: opacity .3s; }
@media (hover: hover) { .ct-nav-home:hover { opacity: 1; } }
@media (max-width: 400px) {
  .ct-nav-home { font-size: 1.1rem; opacity: 1; }
  .ct-nav-home__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.ct-icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ct-c {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(32px, 6vh, 64px);
  isolation: isolate;
  overflow: hidden;
}
.ct-c__bg { position: absolute; inset: 0; z-index: -1; }
.ct-c__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 10% 35%; animation: kenburns 18s var(--ease) both; }
.ct-c__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, #19170f 0%, rgb(25 23 15 / .75) 30%, rgb(25 23 15 / .1) 65%, rgb(25 23 15 / .45) 100%);
}
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }

.ct-c__inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.ct-c__title { font-size: clamp(3rem, 5.6vw, 6.4rem); line-height: .95; max-width: 11ch; }
@media (min-width: 901px) { .ct-c__head { max-width: 40%; } }
.ct-c__lead { max-width: 42ch; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08em; }

.ct-c__panel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 6vh, 64px);
  border: 1px solid rgb(246 234 208 / .22);
  border-radius: 24px;
  background: rgb(25 23 15 / .35);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  overflow: hidden;
}
.ct-c__item {
  display: flex; flex-direction: column; gap: .5rem;
  padding: clamp(20px, 2.6vw, 36px);
  text-decoration: none;
  transition: background-color .4s;
}
.ct-c__item + .ct-c__item { border-left: 1px solid rgb(246 234 208 / .18); }
.ct-c__icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem;
  border-radius: 50%; background: var(--accent); color: #19170f;
  transition: transform .5s var(--ease);
}
.ct-c__label { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ct-c__value { font-family: var(--font-display); font-size: clamp(1.2rem, 1.7vw, 1.65rem); line-height: 1.15; overflow-wrap: anywhere; }
.ct-c__action { margin-top: auto; padding-top: 1rem; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
@media (hover: hover) {
  .ct-c__item:hover { background: rgb(241 181 62 / .12); }
  .ct-c__item:hover .ct-c__icon { transform: scale(1.1) rotate(-8deg); }
}

@media (max-width: 900px) {
  .ct-c { padding-top: 50svh; min-height: 0; justify-content: flex-start; }
  .ct-c__bg { bottom: auto; height: 62svh; }
  .ct-c__bg::after { background: linear-gradient(to bottom, rgb(25 23 15 / .35), transparent 30%, rgb(25 23 15 / .6) 70%, #19170f); }
  .ct-c__bg img { object-position: 40% 30%; }
  .ct-c__panel { grid-template-columns: 1fr; }
  .ct-c__item { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1rem; }
  .ct-c__item + .ct-c__item { border-left: 0; border-top: 1px solid rgb(246 234 208 / .18); }
  .ct-c__icon { margin: 0; width: 44px; height: 44px; }
  .ct-c__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .ct-c__action { display: none; }
  .ct-c__item::after { content: "→"; flex: none; font-size: 1.2rem; color: var(--accent); }
}
@media (min-width: 901px) { .ct-c__text { display: contents; } }
@media (max-width: 400px) {
  .ct-c__item { column-gap: .75rem; padding-inline: 16px; }
  .ct-c__icon { width: 38px; height: 38px; }
  .ct-c__value { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .ct-c__bg img { animation: none; } }
