/* Chic Güzellik
   1 fonts · 2 tokens · 3 base · 4 type · 5 parts (wrap, rule, label, button, links, arch)
   6 header · 7 hero · 7b loader, smooth scroll · 7c services · 8 sections · 8b owner · 8c appointment, form · 9 footer · 10 reduced motion */

/* ------------------------------------------------------------------ 1. fonts
   Self-hosted variable files from Google Fonts (SIL Open Font License, assets/fonts/LICENSE.txt).
   latin holds a-z, ö ü ç and ı; latin-ext holds ğ ş and İ. */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-roman-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;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-roman-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-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;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/jost-roman-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;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/jost-roman-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ 2. tokens */
:root {
  /* Mocha + Rose */
  --espresso: #402E2B;        /* main dark ground; dark text on light */
  --espresso-deep: #2B1F1D;   /* footer, overlays */
  --taupe: #977C70;           /* secondary surfaces; large muted text on dark only (3.3:1) */
  --cream: #EEE3DC;           /* main light text, light surfaces */
  --ivory: #FAF5F0;           /* lightest surface */
  --rose: #C9A39B;            /* accent: links, highlights, active states (on dark) */
  --gold: #C8A97E;            /* hairlines, small ornaments, button borders only */

  /* three tints added so small text passes WCAG AA (4.5:1); see README */
  --taupe-soft: #BBA59A;      /* small muted text on espresso (5.5:1) and espresso-deep (6.8:1) */
  --taupe-deep: #75594E;      /* small muted text on ivory (5.9:1) and cream (5.1:1) */
  --rose-deep: #8F5F56;       /* accent text on ivory (4.9:1) */

  --gold-line: rgb(200 169 126 / .55);
  --gold-line-soft: rgb(200 169 126 / .28);

  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --header-h: 80px;
  --gutter: clamp(20px, 5vw, 80px);
  --wrap: 1520px;
  --section-pad: clamp(96px, 14vh, 176px);

  /* slow and eased; nothing bounces */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-1: .8s;
  --dur-2: 1.1s;
  --dur-3: 1.4s;

  /* what the current ground wants; a light section swaps these */
  --bg: var(--espresso);
  --ink: var(--cream);
  --ink-muted: var(--taupe-soft);
  --accent: var(--rose);
  --focus: var(--rose);
}
@media (max-width: 879px) { :root { --header-h: 64px; } }

/* ------------------------------------------------------------------ 3. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; min-height: 100vh; background: var(--espresso); color: var(--ink);
  font: 300 1.0625rem/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--rose); color: var(--espresso-deep); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ 4. type */
h1, h2, h3, .display { font-family: var(--font-serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.display, h1 { font-size: clamp(3.5rem, 7.4vw, 7.25rem); line-height: .96; }
h2 { font-size: clamp(2.375rem, 4.6vw, 4.25rem); line-height: 1.04; }
h3 { font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.15; font-weight: 500; letter-spacing: 0; }
p { text-wrap: pretty; }
strong { font-weight: 500; }

/* small labels: uppercase through CSS, so lang="tr" turns i into İ */
.label {
  font: 500 .75rem/1.4 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted);
}
.quote { font: italic 400 clamp(1.625rem, 2.7vw, 2.5rem)/1.28 var(--font-serif); }
.lead { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.65; }

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

.rule { height: 0; margin: 0; border: 0; border-top: 1px solid var(--gold-line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 2.5rem;
  border: 1px solid var(--gold); border-radius: 0; background: transparent; color: var(--ink);
  font: 500 .75rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
/* rose fill on hover; the label turns dark, because cream on rose is only 1.8:1 */
.btn:hover, .btn:focus-visible { background: var(--rose); border-color: var(--rose); color: var(--espresso-deep); }
.btn:active { background: var(--cream); border-color: var(--cream); }
.btn--sm { min-height: 44px; padding: 0 1.375rem; font-size: .75rem; letter-spacing: .16em; }

/* a text link: a rose line that draws in from the left */
.text-link, .nav-link {
  text-decoration: none; padding-block: .25em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.text-link { background-size: 100% 1px; }
.text-link:hover, .text-link:focus-visible { color: var(--accent); }
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-current] { background-size: 100% 1px; }

/* the arch: a rounded-top frame, with a thin gold outline set off behind it */
.arch { position: relative; border-radius: 999px 999px 0 0; }
.arch--outline { isolation: isolate; }
.arch > img, .arch > picture, .arch > picture > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.arch--outline::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid var(--gold); border-radius: inherit;
  transform: translate(clamp(10px, 1.4vw, 20px), clamp(10px, 1.4vw, 20px)); pointer-events: none;
}

.skip-link {
  position: absolute; left: var(--gutter); top: 12px; z-index: 5; padding: .75rem 1.25rem;
  background: var(--cream); color: var(--espresso-deep); font: 500 .8125rem/1 var(--font-sans); text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ 6. header
   Without JavaScript it is always the solid bar. With it, the bar is clear over the hero and turns
   to the blurred espresso bar once the hero has passed (main.js sets .is-scrolled) or, in motion mode, as
   soon as the hero's pin ends and its words start to scroll under the bar (scroll.js sets .is-solid). The blur sits on
   ::before, so the header is not the containing block of the mobile overlay. */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--cream); }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(64 46 43 / .78); border-bottom: 1px solid var(--gold-line-soft);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  transition: opacity var(--dur-1) var(--ease);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header::before { background: rgb(64 46 43 / .96); }
}
.js .site-header:not(.is-scrolled, .is-solid)::before { opacity: 0; }
.site-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark { font: 500 1.625rem/1 var(--font-serif); letter-spacing: .01em; color: var(--cream); text-decoration: none; white-space: nowrap; }
a.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark--lg { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 400; letter-spacing: -.01em; }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; font: 400 .75rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); background-position: 0 calc(50% + 1em); }

.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; padding: 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle path { stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; fill: none; transform-box: view-box; transform-origin: 50% 50%; transition: transform var(--dur-1) var(--ease); }

@media (max-width: 879px) {
  /* no JavaScript: the links sit in a second row under the wordmark, and there is no menu button */
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; gap: 0 1.5rem; padding-block: 6px 2px; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav__list { gap: 1.5rem; }
  html:not(.js) .site-nav .btn { display: none; }
  html:not(.js) .nav-link { font-size: .6875rem; letter-spacing: .16em; }

  /* with JavaScript: wordmark and menu button; the links open as a full-screen espresso overlay */
  .js .menu-toggle { display: block; position: relative; z-index: 2; }
  .js .wordmark { position: relative; z-index: 2; }
  .js .site-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) max(3rem, env(safe-area-inset-bottom));
    background: var(--espresso); overflow-y: auto;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
  }
  .js .site-nav__list { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .js .site-nav .nav-link { min-height: 64px; font: 400 clamp(2.25rem, 10vw, 3.25rem)/1.1 var(--font-serif); letter-spacing: -.01em; text-transform: none; background-position: 0 100%; }
  .js .site-nav .btn { display: inline-flex; min-height: 54px; padding: 0 2.5rem; font-size: .75rem; }
  .js .site-nav li, .js .site-nav .btn { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }

  .js .site-header.is-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .js .site-header.is-open .site-nav li, .js .site-header.is-open .site-nav .btn { opacity: 1; transform: none; }
  .js .site-header.is-open .site-nav li:nth-child(1) { transition-delay: .12s; }
  .js .site-header.is-open .site-nav li:nth-child(2) { transition-delay: .2s; }
  .js .site-header.is-open .site-nav li:nth-child(3) { transition-delay: .28s; }
  .js .site-header.is-open .site-nav .btn { transition-delay: .38s; }
  .js .site-header.is-open::before { opacity: 0; }
  .js .site-header.is-open .menu-toggle__a { transform: translateY(4px) rotate(45deg); }
  .js .site-header.is-open .menu-toggle__b { transform: translateY(-4px) rotate(-45deg); }
  html.menu-open { overflow: hidden; }
}
@media (max-width: 419px) { .wordmark { font-size: 1.4375rem; } }

/* ------------------------------------------------------------------ 7. hero
   The words sit in the left 40% of a wide screen. On an upright screen (a phone, a tablet held upright)
   the portrait crop is used and the words move to the lower third.
   is-motion: one screen tall, pinned by scroll.js while the canvas scrubs the film.
   otherwise: a still. The last frame is a CSS background and all three tagline lines are shown. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; background: var(--espresso); overflow: hidden; }
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__canvas, .hero__film { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas { display: none; }
.hero__film { object-fit: cover; object-position: 66% 40%; }

html:not(.is-motion) .hero__media {
  background: var(--espresso) url("../posters/hero-last.jpg") 66% 40% / cover no-repeat;
  background-image: image-set(url("../posters/hero-last.webp") type("image/webp"), url("../posters/hero-last.jpg") type("image/jpeg"));
}
.is-motion .hero { height: 100vh; height: 100lvh; min-height: 0; }
.is-motion .hero__canvas { display: block; }

.hero__shade {
  background:
    linear-gradient(90deg, rgb(43 31 29 / .88) 0%, rgb(43 31 29 / .7) 26%, rgb(43 31 29 / .2) 46%, rgb(43 31 29 / 0) 60%),
    linear-gradient(180deg, rgb(43 31 29 / .55) 0%, rgb(43 31 29 / 0) 24%);
}
/* the foot: a short fade to espresso along the hero's lower edge, where the services section begins with
   the same fade. Always there on the still page; in motion mode scroll.js brings it in as the pin ends. */
.hero__shade::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 20%; opacity: var(--foot, 1);
  background: linear-gradient(180deg, rgb(64 46 43 / 0) 0%, rgb(64 46 43 / .34) 34%, rgb(64 46 43 / .74) 68%, rgb(64 46 43 / .94) 90%, rgb(64 46 43) 100%);
}
.is-motion .hero__shade { --foot: 0; }

.hero__content { position: relative; display: flex; align-items: center; padding-block: calc(var(--header-h) + 2rem) 4rem; }
.is-motion .hero__content { height: 100vh; height: 100svh; }       /* the words stay inside the small viewport */
.hero__text { width: min(100%, 38vw, 560px); display: grid; justify-items: start; gap: 1.5rem; }
.hero__text .label { color: var(--cream); }
.hero .display { font-size: clamp(3.25rem, 6vw, 6rem); white-space: nowrap; }
.hero__tagline { font: 400 clamp(1.375rem, 1.9vw, 1.875rem)/1.3 var(--font-serif); max-width: 21ch; }
.hero__text .btn { margin-top: 1rem; }

/* the tagline: stacked in one place and shown one at a time when the film runs, a short list when it does not */
.hero__taglines { display: grid; gap: .5rem; }
.is-motion .hero__taglines { gap: 0; }
.is-motion .hero__tagline { grid-area: 1 / 1; }
.is-motion .hero__tagline + .hero__tagline { opacity: 0; }
html:not(.is-motion) .hero__tagline + .hero__tagline { font-style: italic; font-size: clamp(1.125rem, 1.4vw, 1.375rem); max-width: 30ch; color: var(--cream); }

/* "Kaydır": a word and a thin line that keeps travelling down; gone on the first scroll */
.scroll-hint { display: none; }
.is-motion .scroll-hint { display: block; position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: none; }
.scroll-hint__in { display: grid; justify-items: center; gap: 12px; font: 500 .6875rem/1 var(--font-sans); letter-spacing: .28em; text-indent: .28em; text-transform: uppercase; color: var(--cream); }
.scroll-hint i { display: block; width: 1px; height: 52px; background: var(--gold-line-soft); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: hint-line 2.6s var(--ease) infinite; }
@keyframes hint-line { 0% { transform: translateY(-101%); } 55% { transform: translateY(0); } 100% { transform: translateY(101%); } }

@media (max-aspect-ratio: 1/1) {
  .hero__film { object-position: 50% 30%; }
  html:not(.is-motion) .hero__media {
    background-image: url("../posters/hero-last-m.jpg"); background-position: 50% 30%;
    background-image: image-set(url("../posters/hero-last-m.webp") type("image/webp"), url("../posters/hero-last-m.jpg") type("image/jpeg"));
  }
  .hero__shade { background: linear-gradient(0deg, rgb(43 31 29 / .96) 0%, rgb(43 31 29 / .84) 28%, rgb(43 31 29 / 0) 62%), linear-gradient(180deg, rgb(43 31 29 / .5) 0%, rgb(43 31 29 / 0) 18%); }
  .hero__content { align-items: flex-end; padding-bottom: max(3rem, env(safe-area-inset-bottom)); }
  .is-motion .hero__content { padding-bottom: max(7.5rem, env(safe-area-inset-bottom)); }   /* room for the scroll hint */
  .hero__text { width: 100%; gap: 1rem; }
  .hero__text .btn { margin-top: .75rem; }
  .hero__tagline { max-width: 24ch; }
  html:not(.is-motion) .hero__taglines { gap: .25rem; }
  html:not(.is-motion) .hero__tagline + .hero__tagline { font-size: 1.0625rem; }
  .scroll-hint i { height: 36px; }
}
@media (min-aspect-ratio: 1001/1000) and (max-width: 1023px) { .hero__text { width: min(100%, 42vw); } .hero .display { font-size: clamp(2.5rem, 5.6vw, 3.5rem); } }
/* a short upright phone (up to 700px tall): a smaller block, set lower, so the words stay under her face */
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .hero__text { gap: .625rem; }
  .hero .display { font-size: 2.75rem; }
  .hero__tagline { font-size: 1.25rem; }
  .hero__text .btn { margin-top: .5rem; min-height: 48px; }
  .is-motion .hero__content { padding-bottom: max(5rem, env(safe-area-inset-bottom)); }
  .is-motion .scroll-hint { bottom: max(14px, env(safe-area-inset-bottom)); }
  .scroll-hint__in { gap: 8px; }
  .scroll-hint i { height: 22px; }
  html:not(.is-motion) .hero__tagline + .hero__tagline { font-size: 1rem; }
  html:not(.is-motion) .hero__content { padding-bottom: 1.5rem; }
}
/* a phone on its side: little height, so smaller words and no scroll hint */
@media (min-aspect-ratio: 1001/1000) and (max-height: 520px) {
  .is-motion .scroll-hint { display: none; }
  .hero__content { padding-block: calc(var(--header-h) + .5rem) 1rem; }
  .hero__text { gap: .625rem; }
  .hero .display { font-size: 2.5rem; }
  .hero__tagline { font-size: 1.125rem; }
  .hero__text .btn { margin-top: .25rem; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .hero__film { display: none; } }

/* ------------------------------------------------------------------ 7b. loader and smooth scroll
   The loader exists in motion mode only: the wordmark and a thin gold line that fills as the hero's frames
   arrive. Should a script fail, the animation lifts it by itself after 15 s. */
.loader { display: none; }
.is-motion .loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 28px;
  background: var(--espresso-deep); color: var(--cream);
  transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
  animation: loader-out .6s linear 15s forwards;
}
.loader__line { display: block; width: min(220px, 52vw); height: 1px; background: var(--gold-line-soft); overflow: hidden; }
.loader__line i { display: block; height: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
html.is-loading { overflow: hidden; }

/* the curtain: covers the page while an in-page link jumps to a far section, so the films in between are
   not seen racing past. scroll.js fades it in, moves, and fades it out. */
.curtain { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; background: var(--espresso-deep); color: var(--cream); opacity: 0; visibility: hidden; pointer-events: none; }
.curtain .wordmark { opacity: .9; }

/* Lenis (assets/vendor/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ------------------------------------------------------------------ 7c. services
   Base (no JavaScript, or still mode): the last frame as a darkened background, then the heading and the
   five groups in a row, in normal flow, as plain text columns.
   is-motion, wide screen: the section is 360vh tall; the stage (film) and the body (words) both stay
   on screen with position: sticky for 260vh while scroll.js scrubs the film and brings the groups in.
   is-motion, compact screen (upright, narrow or short): the film plays over the first 120vh with the
   heading held in the lower third, then the groups scroll up over the blurred last frame. */
.services { --film: 120lvh; --pin: 260lvh; position: relative; background: var(--espresso); color: var(--cream); }
/* the stage is one screen tall and stays put (sticky) while the body scrolls over it, in every mode. The body
   is pulled up over the stage with a negative margin of its own; a negative margin on the stage instead would
   let the stage stay stuck for one screen past the end of the section. */
.services__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--espresso) 50% 50% / cover no-repeat; }
.services__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-1) var(--ease); }
.services__canvas.is-drawn { opacity: 1; }
.services__shade, .services__veil { position: absolute; inset: 0; }
.services__shade {
  background:
    linear-gradient(90deg, rgb(43 31 29 / .86) 0%, rgb(43 31 29 / .66) 24%, rgb(43 31 29 / .16) 44%, rgb(43 31 29 / 0) 56%),
    linear-gradient(180deg, rgb(43 31 29 / .55) 0%, rgb(43 31 29 / 0) 22%);
}
.services__veil { background: rgb(43 31 29 / .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* the seam: a short fade from espresso along the section's upper edge, the mirror of the one at the hero's
   foot, so the line where the two meet is soft. It belongs to the section's top, not to the stage, so it
   scrolls away with that line. */
.services__seam {
  position: absolute; inset: 0 0 auto 0; height: 22vh; height: 22lvh; pointer-events: none;
  background: linear-gradient(180deg, rgb(64 46 43) 0%, rgb(64 46 43 / .94) 10%, rgb(64 46 43 / .74) 32%, rgb(64 46 43 / .34) 66%, rgb(64 46 43 / 0) 100%);
}
.services__body { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100lvh; min-height: 100vh; min-height: 100lvh; padding-block: calc(var(--header-h) + clamp(40px, 8vh, 96px)) var(--section-pad); }
.services__intro { display: grid; gap: 1.25rem; }
.services__intro .label { color: var(--cream); }
.services__intro h2 { max-width: min(40vw, 8em); }
.services__lead { margin-bottom: clamp(48px, 8vh, 96px); }
.services__panels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 48px); align-items: start; }

/* a service group: plain text on the film, under a thin gold rule. No box. What keeps it readable is the
   floor (below), a dark gradient behind the whole row, and a soft shadow as a second line of defence. */
.svc {
  display: grid; align-content: start; gap: .875rem; padding-top: clamp(16px, 2vh, 22px);
  border-top: 1px solid var(--gold-line);
  text-shadow: 0 1px 2px rgb(43 31 29 / .45), 0 2px 22px rgb(43 31 29 / .6);
}
.svc h3 { font-size: clamp(1.375rem, 1.9vw, 1.875rem); line-height: 1.1; }
.svc ul { display: grid; gap: .3125rem; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); line-height: 1.45; }

/* the floor: espresso rising from the foot of the stage and thinning out upwards, so the groups stand on a
   darkened part of the film with no visible edge. scroll.js brings it in as the first group arrives. */
.services__floor {
  position: absolute; inset: auto 0 0 0; height: 64%; opacity: 0; pointer-events: none;
  background: linear-gradient(0deg, rgb(43 31 29 / .95) 0%, rgb(43 31 29 / .88) 28%, rgb(43 31 29 / .68) 50%, rgb(43 31 29 / .32) 74%, rgb(43 31 29 / 0) 100%);
}

/* the last frame as the background: at once without JavaScript, when the section is near with it */
html:not(.js) .services__stage, .is-static .services__stage.is-near {
  background-image: url("../posters/services-last.jpg");
  background-image: image-set(url("../posters/services-last.webp") type("image/webp"), url("../posters/services-last.jpg") type("image/jpeg"));
}
.is-motion .services__stage.is-near {
  background-image: url("../posters/services-first.jpg");
  background-image: image-set(url("../posters/services-first.webp") type("image/webp"), url("../posters/services-first.jpg") type("image/jpeg"));
}

/* ---- motion, wide screen */
.is-motion .services { height: 360vh; height: calc(100lvh + var(--pin)); }
.is-motion .services__canvas { display: block; }
.is-motion .services__veil { opacity: 0; background: rgb(43 31 29 / .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-motion .services__body { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding-block: 0; }
.is-motion .services__lead { position: absolute; inset: calc(var(--header-h) + 7vh) 0 auto 0; margin: 0; }
.is-motion .services__panels { position: absolute; inset: auto 0 clamp(24px, 5vh, 56px) 0; }
.is-motion .svc { opacity: 0; }

/* ---- compact screens */
@media (max-aspect-ratio: 1/1), (max-width: 899px), (max-height: 659px) {
  .services__panels { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .services__floor { display: none; }
  .services__intro h2 { max-width: 8em; }
  .svc { padding-top: 20px; }
  .svc h3 { font-size: 1.75rem; }
  .svc ul { font-size: 1.0625rem; gap: .375rem; }

  .is-motion .services { height: auto; }
  .is-motion .services__veil { background: rgb(43 31 29 / .68); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .is-motion .services__body { position: relative; height: auto; }
  .services__lead { margin-bottom: 2.5rem; }
  /* the heading waits in the lower third while the film runs, then leaves with the groups under it */
  .is-motion .services__lead { position: relative; inset: auto; }
  /* room to stay in: a sticky box cannot travel into its parent's padding, so the room is an element */
  .is-motion .services__lead::after { content: ""; display: block; height: calc(220vh - 13rem); height: calc(var(--film) + 100svh - 13rem); }
  .is-motion .services__intro { position: sticky; top: calc(100vh - 13rem); top: calc(100svh - 13rem); padding-bottom: 2.5rem; }
  .is-motion .services__panels { position: relative; inset: auto; padding-bottom: 22vh; }
}
/* a tablet held upright, a phone on its side: the stack is two across */
@media (min-width: 600px) and (max-aspect-ratio: 1/1), (min-width: 600px) and (max-width: 899px), (min-width: 600px) and (max-height: 659px) {
  .services__panels { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 56px); }
}
@media (max-aspect-ratio: 1/1) {
  .services__shade { background: linear-gradient(0deg, rgb(43 31 29 / .92) 0%, rgb(43 31 29 / .74) 20%, rgb(43 31 29 / 0) 44%), linear-gradient(180deg, rgb(43 31 29 / .5) 0%, rgb(43 31 29 / 0) 16%); }
  html:not(.is-motion) .services__shade { background: none; }
  html:not(.js) .services__stage, .is-static .services__stage.is-near {
    background-image: url("../posters/services-last-m.jpg");
    background-image: image-set(url("../posters/services-last-m.webp") type("image/webp"), url("../posters/services-last-m.jpg") type("image/jpeg"));
  }
  .is-motion .services__stage.is-near {
    background-image: url("../posters/services-first-m.jpg");
    background-image: image-set(url("../posters/services-first-m.webp") type("image/webp"), url("../posters/services-first-m.jpg") type("image/jpeg"));
  }
}
@media (min-aspect-ratio: 1001/1000) and (max-height: 659px) {
  .is-motion .services__lead::after { height: calc(var(--film) + 100svh - 9rem); }
  .is-motion .services__intro { top: calc(100svh - 9rem); }
}
/* still mode on a middling width: three and two */
@media (min-width: 900px) and (max-width: 1199px) and (min-aspect-ratio: 1001/1000) and (min-height: 660px) {
  html:not(.is-motion) .services__panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------------ 8. sections */
.section { position: relative; padding-block: var(--section-pad); background: var(--bg); color: var(--ink); }
.section--light {
  --bg: var(--ivory); --ink: var(--espresso); --ink-muted: var(--taupe-deep); --accent: var(--rose-deep); --focus: var(--espresso);
}
.section--light .btn:not(:hover, :focus-visible) { color: var(--espresso); }
.section .label + h2 { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ 8b. owner
   The light section: the portrait in a tall arch with a gold outline set off behind it, beside the name,
   the quote and the story. One column on a narrow screen, the portrait first. */
.owner { overflow: hidden; }                                  /* the outline's offset never causes a sideways scroll */
.owner__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 136px); align-items: center; }
.owner__figure { justify-self: end; width: min(100%, 480px); padding: 0 clamp(10px, 1.4vw, 20px) clamp(10px, 1.4vw, 20px) 0; }

/* The crop. The photograph is wider than the arch and placed by three numbers, all fractions of the photograph:
   --w how much of its width shows, --x0 and --y0 where the visible part starts. --ar is the arch's own shape.
   (Other framings are on preview-owner.html: A .58/.20/.10 at .75 · B .53/.085/.10 at .75 · C and D .62/.17/.115 at .667) */
.owner__frame { --ar: .667; --w: .62; --x0: .17; --y0: .115; aspect-ratio: var(--ar); isolation: isolate; }
.owner__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--cream); }
.owner__clip img {
  position: absolute; top: 0; left: 0; max-width: none; width: calc(100% / var(--w)); height: auto;
  /* --drift runs from -1 to 1 as the section crosses the screen (scroll.js): the picture lags a little */
  transform: translate(calc(var(--x0) * -100%), calc(var(--y0) * -100% + var(--drift, 0) * 2.2%));
}

.owner__text { display: grid; justify-items: start; max-width: 620px; }
.owner__text h2 { margin-top: 1.25rem; }
.owner__text h2::after { content: ""; display: block; width: 56px; height: 1px; margin-top: clamp(24px, 3.4vh, 36px); background: var(--gold); }
.owner__quote { position: relative; margin-top: clamp(40px, 6vh, 64px); padding-top: clamp(40px, 4.6vw, 64px); color: var(--espresso); max-width: 22em; }
/* the oversized opening mark, in rose: an ornament, so its low contrast on ivory is not a reading problem */
.owner__quote::before {
  content: "\201C"; position: absolute; top: 0; left: -.04em; font: 400 clamp(6rem, 9vw, 9rem)/.8 var(--font-serif); font-style: normal; color: var(--rose);
  height: .5em; overflow: visible; pointer-events: none;
}
.owner__body { margin-top: clamp(28px, 4vh, 40px); max-width: 54ch; color: var(--espresso); }

@media (max-width: 899px) {
  .owner__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .owner__figure { justify-self: start; width: min(100%, 400px); }
  .owner__text { max-width: 560px; }
}

/* parts that rise in as they arrive: hidden only while the scroll engine is running (scroll.js shows them) */
.is-motion [data-reveal] { opacity: 0; }

/* ------------------------------------------------------------------ 8c. appointment
   Base (no JavaScript, or still mode): the chair facing you as the background, the booking panel on the left.
   is-motion, wide screen: the stage and the body stay on screen (position: sticky) for --pin of scrolling
   while scroll.js scrubs the chair's turn; the panel comes in during the first third of a screen.
   Compact screen (upright, narrow or short): the film is a band over the top 45% and the form sits under it;
   in motion mode scroll.js holds the section while the chair turns, then lets it scroll. */
.appt { --pin: 150lvh; position: relative; background: var(--espresso); color: var(--cream); }
.appt__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; background: var(--espresso); }
/* the still: the last frame, kept to the left edge like the film; on a low, wide window its upper part shows */
.appt__stage::before { content: ""; position: absolute; inset: 0; background: 0 40% / cover no-repeat; }
html:not(.js) .appt__stage::before, .is-static .appt__stage.is-near::before {
  background-image: url("../posters/chair-last.jpg");
  background-image: image-set(url("../posters/chair-last.webp") type("image/webp"), url("../posters/chair-last.jpg") type("image/jpeg"));
}
.is-motion .appt__stage.is-near::before {
  background-image: url("../posters/chair-first.jpg");
  background-image: image-set(url("../posters/chair-first.webp") type("image/webp"), url("../posters/chair-first.jpg") type("image/jpeg"));
}
.appt__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-1) var(--ease); }
.appt__canvas.is-drawn { opacity: 1; }
.is-motion .appt__canvas { display: block; }
.appt__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(43 31 29 / .78) 0%, rgb(43 31 29 / .52) 22%, rgb(43 31 29 / .12) 40%, rgb(43 31 29 / 0) 52%),
    linear-gradient(180deg, rgb(43 31 29 / .6) 0%, rgb(43 31 29 / 0) 20%),
    rgb(43 31 29 / .1);
}
.appt__body { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100lvh; min-height: 100vh; min-height: 100lvh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 20px) 32px; }
.appt__body > .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); }

/* the booking panel: dark glass with a gold hairline */
.appt__panel {
  width: clamp(340px, 30vw, 440px); padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid var(--gold-line); background: rgb(43 31 29 / .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
}
.appt__panel h2 { margin-top: .875rem; font-size: clamp(2rem, 3vw, 2.875rem); }
.appt__line { margin-top: .75rem; font-size: 1rem; line-height: 1.5; color: var(--cream); }
.appt__call { margin-top: 1.125rem; font-size: .9375rem; color: var(--taupe-soft); }
.appt__call a { color: var(--cream); display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; background-position: 0 calc(50% + .8em); }
.appt__noscript { margin-top: 1.5rem; }
html:not(.js) .form { display: none; }

/* ---- the form */
.form { --field-line: var(--taupe); --error: #F4AFA3; display: grid; gap: 14px; margin-top: clamp(20px, 3vh, 32px); color-scheme: dark; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font: 400 .8125rem/1.4 var(--font-sans); letter-spacing: .04em; color: var(--taupe-soft); }
.field__optional { letter-spacing: 0; }
.field :is(input, select, textarea) {
  width: 100%; min-width: 0; height: 48px; padding: 0 14px; margin: 0;
  border: 1px solid var(--field-line); border-radius: 0; background: rgb(43 31 29 / .45); color: var(--cream);
  font: 300 1rem/1.4 var(--font-sans); -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.field textarea { height: auto; min-height: 72px; padding-block: 12px; resize: vertical; }
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23EEE3DC' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field select:invalid, .field select.is-empty { color: var(--taupe-soft); }
.field option { background: var(--espresso-deep); color: var(--cream); }
.field ::placeholder { color: var(--taupe-soft); opacity: 1; }
.field :is(input, select, textarea):hover { border-color: var(--taupe-soft); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose); background-color: rgb(43 31 29 / .7); }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { font-size: .8125rem; line-height: 1.35; color: var(--error); }
.field__error::before { content: "! "; font-weight: 500; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { min-height: 1.4em; font-size: .875rem; line-height: 1.5; color: var(--cream); }
.form__status:empty { min-height: 0; }
.form__status.is-error { color: var(--error); }
.form__status a { color: var(--rose); }
.form__notice { font-size: .75rem; line-height: 1.5; color: var(--taupe-soft); }
.form__notice a { color: var(--cream); text-underline-offset: .25em; }
.form__notice-ads { display: none; }
.consent-marketing .form__notice-ads { display: inline; }

/* ---- motion, wide screen */
.is-motion .appt { height: 250vh; height: calc(100lvh + var(--pin)); }
.is-motion .appt__body { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.is-motion .appt__panel { opacity: 0; }

/* ---- a wide screen under 940px tall: the panel is tighter, so that it fits between the header and the
   foot of the screen with every message showing */
@media (min-aspect-ratio: 1001/1000) and (min-width: 900px) and (max-height: 939px) {
  .appt__body { padding-block: calc(var(--header-h) + 14px) 14px; }
  .appt__panel { padding: 20px 24px; }
  .appt__panel h2 { margin-top: .5rem; font-size: 2rem; }
  .appt__line { margin-top: .375rem; font-size: .9375rem; }
  .appt__call { margin-top: .5rem; }
  .appt__call a { min-height: 40px; }
  .form { gap: 10px; margin-top: 14px; }
  .field { gap: 4px; }
  .field label { font-size: .75rem; }
  .field :is(input, select) { height: 42px; }
  .field textarea { min-height: 52px; padding-block: 8px; }
  .form__submit { min-height: 48px; margin-top: 2px; }
  .form { gap: 6px; }
  .field__error { line-height: 1.25; }
  .form__notice { line-height: 1.4; }
  .field textarea { min-height: 44px; padding-block: 6px; }
}

/* ---- compact screens: the film as a band, the form under it (this section's own threshold: 740px of height) */
@media (max-aspect-ratio: 1/1), (max-width: 899px), (max-height: 739px) {
  .appt__stage { position: relative; height: 45vh; height: 45svh; }
  .appt__stage::before { background-position: 50% 30%; }
  .appt__shade { background: linear-gradient(180deg, rgb(43 31 29 / .55) 0%, rgb(43 31 29 / 0) 26%, rgb(64 46 43 / 0) 62%, rgb(64 46 43 / .7) 88%, rgb(64 46 43) 100%); }
  .appt__body { display: block; margin-top: 0; min-height: 0; padding-block: 8px var(--section-pad); }
  .appt__panel { width: 100%; max-width: 560px; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .appt__panel h2 { font-size: clamp(2.125rem, 8vw, 2.75rem); }
  .is-motion .appt { height: auto; }
  .is-motion .appt__body { position: relative; height: auto; }
  .is-motion .appt__panel { opacity: 1; }
}
@media (max-width: 419px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
/* a phone on its side: the band is shorter, so the form's heading is on the first screen too */
@media (min-aspect-ratio: 1001/1000) and (max-height: 739px) { .appt__stage { height: 62vh; height: 62svh; } }

/* ------------------------------------------------------------------ 9. footer */
.site-footer { --bg: var(--espresso-deep); position: relative; z-index: 2; background: var(--bg); color: var(--cream); padding-block: clamp(72px, 10vh, 128px) 40px; }
.site-footer__top { display: grid; gap: 1rem; padding-bottom: clamp(48px, 7vh, 88px); }
.site-footer__phrase { font: italic 400 clamp(1.25rem, 1.8vw, 1.625rem)/1.3 var(--font-serif); color: var(--cream); }
.site-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.05fr); gap: 2.5rem clamp(2rem, 5vw, 6rem); padding-bottom: clamp(48px, 7vh, 88px); }
.site-footer__col { display: grid; align-content: start; gap: 1.25rem; }
.site-footer__col .label { color: var(--taupe-soft); }
.site-footer address, .hours, .contact { font-size: 1.0625rem; line-height: 1.7; }
.site-footer address { max-width: 19em; text-wrap: balance; }
/* hours and contact are the same two-column list: a muted name, then its value right beside it. Every
   column of the footer therefore starts its text on the same line and keeps the same line spacing. */
.hours, .contact { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content); justify-content: start; gap: .375rem clamp(1.25rem, 2vw, 2rem); font-variant-numeric: tabular-nums; }
.hours > div, .contact > div { display: contents; }
.hours dt, .contact dt { color: var(--taupe-soft); }
.contact a { padding-block: 0; background-position: 0 calc(100% - .2em); overflow-wrap: anywhere; }
@media (pointer: coarse) { .contact { row-gap: 0; align-items: center; } .contact a { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(50% + .8em); } .contact dt { line-height: 44px; } }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: 22px; font-size: .8125rem; line-height: 1.6; color: var(--taupe-soft); }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.site-footer__links a, .site-footer__links .link-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); }
.site-footer__links a { padding-block: 0; background-position: 0 calc(50% + .8em); }
.site-footer__links a[aria-current] { color: var(--taupe-soft); }
@media (max-width: 767px) { .site-footer__cols { grid-template-columns: minmax(0, 1fr); } }
/* a very narrow phone: the hours a size smaller so each stays on one line, and each contact under its name */
@media (max-width: 379px) {
  .hours { font-size: .9375rem; column-gap: 1rem; }
  .contact { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .contact dt { line-height: 1.4; margin-top: .75rem; font-size: .8125rem; }
  .contact a { overflow-wrap: normal; }
}

/* ------------------------------------------------------------------ 9b. consent banner
   Built by assets/js/consent.js and shown only when a tracking tag is set in site.config.json. A card in the
   lower right corner (a sheet across the foot of a phone); it does not block the page. "Reddet" and "Tümünü
   Kabul Et" are the same button on purpose: refusing must be as easy as agreeing. */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .35em; transition: color var(--dur-1) var(--ease); }
.link-button:hover, .link-button:focus-visible { color: var(--accent); }
.consent {
  position: fixed; z-index: 80; right: 24px; bottom: 24px; width: min(460px, calc(100% - 48px)); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); overflow-y: auto;
  display: grid; gap: 14px; padding: 24px 24px 20px; color: var(--cream);
  border: 1px solid var(--gold-line); background: rgb(43 31 29 / .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgb(0 0 0 / .35);
}
.consent[hidden] { display: none; }
.consent__title { font: 500 1.375rem/1.2 var(--font-serif); letter-spacing: 0; }
.consent__title:focus { outline: none; }
.consent__text { font-size: .875rem; line-height: 1.55; font-weight: 400; }
.consent__text a { color: var(--rose); text-underline-offset: .25em; }
.consent__options { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--gold-line-soft); }
.consent__options[hidden] { display: none; }
.consent__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.consent__name { display: block; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.consent__row p { font-size: .8125rem; line-height: 1.45; color: var(--taupe-soft); }
.consent__switch { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 2px 0 0; border: 1px solid var(--taupe); border-radius: 999px; background: rgb(43 31 29 / .6); cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.consent__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .3s var(--ease), background-color .3s var(--ease); }
.consent__switch:checked { background: var(--rose); border-color: var(--rose); }
.consent__switch:checked::after { transform: translateX(18px); background: var(--espresso-deep); }
.consent__switch:disabled { opacity: .55; cursor: not-allowed; }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 4px; }
.consent__actions .btn { flex: 1 1 auto; padding-inline: 1rem; white-space: nowrap; }
.consent__actions .btn[hidden] { display: none; }
.consent__actions .link-button { flex: 1 0 100%; min-height: 44px; font-size: .8125rem; text-align: left; }
@media (max-width: 599px) { .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px 18px 14px; gap: 12px; } .consent__text { font-size: .8125rem; } }

/* ------------------------------------------------------------------ 9c. policy pages
   gizlilik-politikasi.html and cerez-politikasi.html: long text on the light ground, in a narrow column. */
.legal { --ink-muted: var(--taupe-deep); --accent: var(--rose-deep); --focus: var(--espresso); background: var(--ivory); color: var(--espresso); padding: calc(var(--header-h) + clamp(48px, 9vh, 96px)) 0 var(--section-pad); }
.legal__body { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; font-weight: 400; }
.legal h1 { margin-top: 1rem; font-size: clamp(2.125rem, 4.6vw, 3.5rem); line-height: 1.08; }
.legal h2 { margin-top: 3rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; }
.legal__meta { margin-top: 1rem; font-size: .875rem; color: var(--taupe-deep); }
.legal__meta + p { margin-top: 2.5rem; }
.legal p, .legal ul, .legal dl, .legal__table { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; list-style: disc; }
.legal li + li { margin-top: .5rem; }
.legal a { color: var(--rose-deep); text-underline-offset: .22em; overflow-wrap: anywhere; }
.legal .link-button { color: var(--rose-deep); }
.legal__id { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .375rem 1.5rem; }
.legal__id dt { color: var(--taupe-deep); }
.legal__table { overflow-x: auto; }
.legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.legal th, .legal td { padding: .75rem 1.25rem .75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(64 46 43 / .16); }
.legal th { font: 500 .75rem/1.4 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--taupe-deep); }
/* a phone: each row of a table becomes a small card, every value under its column's name */
@media (max-width: 639px) {
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal tr { display: block; padding: .875rem 0; border-bottom: 1px solid rgb(64 46 43 / .16); }
  .legal td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .25rem 0; border: 0; }
  .legal td::before { content: attr(data-label); font: 500 .6875rem/1.9 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--taupe-deep); }
}

/* ------------------------------------------------------------------ 10. reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
