/* ==========================================================================
   Ören Hukuk Bürosu — public site
   Design tokens per docs/DESIGN_SYSTEM.md.
   Phase 9: locked typography scale + cinematic motion (see the "Phase 9"
   section near the end of this file, and public/assets/js/motion/).
   ========================================================================== */

:root {
  --color-dark: #101010;
  --color-charcoal: #181818;
  --color-bg: #f3f1ec;
  --color-surface: #faf9f6;
  --color-text: #141414;
  --color-muted: #74716b;
  --color-border: #d8d5ce;

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1680px;
  --gutter: clamp(20px, 5vw, 96px);
  --space-section: clamp(80px, 12vw, 160px);
  --space-section-lg: clamp(96px, 16vw, 220px);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --header-h: 76px;

  /* Phase 9 — locked fluid type scale (clamp: min @360px, ideal, max @1680px) */
  --step-eyebrow: 0.75rem;
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-lead: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
  --step-h3: clamp(1.35rem, 1.2rem + 0.9vw, 2rem);
  --step-h2: clamp(2rem, 1.5rem + 2.4vw, 3.75rem);
  --step-h1: clamp(2.6rem, 1.6rem + 4.6vw, 6rem);
  --step-display: clamp(3rem, 1.4rem + 7.4vw, 8.25rem);

  --measure: 66ch;      /* body copy max line length */
  --measure-tight: 46ch;

  /* Motion timings — DESIGN_SYSTEM.md */
  --dur-hero: 1.4s;
  --dur-reveal: 1s;
  --dur-micro: 0.3s;
}

* { box-sizing: border-box; }

html {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.65;
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--color-dark);
  color: var(--color-bg);
  padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }

/* --- Typography -------------------------------------------------------- */
.display-serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }

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

.eyebrow {
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 20px;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section__title--lg { font-size: var(--step-display); line-height: 0.98; letter-spacing: -0.025em; }

.rich-text { font-size: var(--step-lead); line-height: 1.7; color: #2c2a26; max-width: var(--measure); overflow-wrap: break-word; }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text h2, .rich-text h3, .rich-text h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; margin: 1.6em 0 0.5em; }
.rich-text h2 { font-size: 1.7em; }
.rich-text h3 { font-size: 1.35em; }
.rich-text h4 { font-size: 1.1em; }
.rich-text p { margin: 0 0 1em; }
.rich-text ul, .rich-text ol { margin: 0 0 1em; padding-left: 1.3em; }
.rich-text li { margin: 0.3em 0; }
.rich-text blockquote {
  margin: 1.4em 0;
  padding-left: 1.1em;
  border-left: 2px solid var(--color-text);
  font-family: var(--font-serif);
  font-size: 1.25em;
  line-height: 1.35;
}
.rich-text a { text-decoration: underline; text-underline-offset: 3px; }

/* --- Buttons + links ------------------------------------------------ */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  padding: 12px 22px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--color-text); color: var(--color-bg); }
.btn--pill { border-radius: 999px; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Site header --------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.site-header__brand {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { border-bottom-color: currentColor; }
/* `.site-nav__list a` (two classes) outranks `.btn` (one), so without this the
   CTA pill loses its horizontal padding and the label spills over its border. */
.site-nav__cta a { border-bottom: 0 !important; padding: 12px 22px; }

.site-header__toggle {
  display: none;
  width: 44px; height: 40px;
  border: 1px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.site-header__toggle span { display: block; height: 2px; background: var(--color-text); }
.site-header__toggle span + span { margin-top: 5px; }

/* --- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  background: var(--color-dark);
  color: var(--color-bg);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media video,
.hero__media img,
.hero__picture { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; }
.hero--overlay-light .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35)); }
.hero--overlay-medium .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.55)); }
.hero--overlay-dark .hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.72)); }
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 12vh, 120px);
}
.hero__title {
  max-width: 15ch;
  margin: 0;
  font-size: var(--step-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: var(--step-lead);
  line-height: 1.5;
  color: rgba(243, 241, 236, 0.82);
  text-wrap: pretty;
}

/* --- Generic section ------------------------------------------ */
.section { padding-block: var(--space-section); }
.section--approach, .section--cta { padding-block: var(--space-section-lg); }
.section--intro { background: var(--color-surface); }
.section--approach { background: var(--color-dark); color: var(--color-bg); }
.section--approach .rich-text { color: rgba(243, 241, 236, 0.8); }
.section--approach .eyebrow { color: rgba(243, 241, 236, 0.6); }

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
/* The sticky head is a deliberate effect of the TWO-COLUMN layout only: the
   heading holds while the body column scrolls beside it. Scoped to the grid —
   unscoped it also caught .section--practice, whose head sits in a plain
   container, so that heading pinned itself to the viewport and rode down the
   page over the cards before snapping away. */
.section__grid > .section__head { position: sticky; top: 100px; }
.section__body { max-width: 62ch; }
.section__cta { margin-top: 32px; }

/* --- Manifesto media ---------------------------------------- */
.section--manifesto { padding-block: 0; }
.manifesto { margin: 0; }
.manifesto__media {
  aspect-ratio: 16 / 8;
  background: var(--color-charcoal);
  overflow: hidden;
}
.manifesto__media img, .manifesto__media video { width: 100%; height: 100%; object-fit: cover; }
.manifesto__caption {
  max-width: var(--container);
  margin: 16px auto 0;
  padding-inline: var(--gutter);
  font-size: 14px;
  color: var(--color-muted);
}

/* --- Practice / team ------------------------------------- */
.section--practice { border-top: 1px solid var(--color-border); }
.practice-cards[hidden] { display: none; }

/* --- Ticker (static in Phase 5) ------------------------- */
.ticker {
  background: var(--color-charcoal);
  color: var(--color-bg);
  padding-block: 22px;
  overflow: hidden;
}
.ticker__track { display: flex; justify-content: center; }
.ticker__item {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-inline: var(--gutter);
}

/* --- Appointment CTA band -------------------------------- */
.section--cta { background: var(--color-dark); color: var(--color-bg); }
.section--cta .eyebrow { color: rgba(243, 241, 236, 0.6); }
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.cta-band .section__title { max-width: 20ch; }

/* --- Contact preview ----------------------------------- */
.contact-details__address { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.3; margin: 0 0 24px; }
.contact-details__list { list-style: none; margin: 0 0 24px; padding: 0; font-size: 1.1rem; }
.contact-details__list li { margin: 6px 0; }
.contact-details__list a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* --- Placeholder page --------------------------------- */
.section--placeholder { padding-block: clamp(120px, 20vh, 240px); }
.section--placeholder .section__body { margin-top: 24px; color: var(--color-muted); max-width: 48ch; }

/* --- Footer ----------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(243, 241, 236, 0.72);
  padding-block: clamp(56px, 9vw, 96px) 32px;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-bg); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.14);
}
.site-footer__name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-bg);
  text-decoration: none;
  margin: 0 0 16px;
}
.site-footer__name:hover { color: var(--color-bg); opacity: 0.8; }
.site-footer__address { font-style: normal; line-height: 1.6; }
.site-footer__nav ul, .site-footer__legal { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin: 6px 0; }
.site-footer__contact p { margin: 4px 0; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
}
.site-footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* --- Practice areas: image cards (homepage + full index) ---------- */
.practice-cards {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.practice-card { position: relative; }
.practice-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.practice-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-border); }
.practice-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.practice-card__link:hover .practice-card__media img { transform: scale(1.05); }
.practice-card__link:hover {
  transform: translateY(-4px);
  border-color: var(--color-text);
  box-shadow: 0 18px 40px rgba(16, 16, 16, 0.08);
}
.practice-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: clamp(20px, 2.4vw, 28px);
}
.practice-card__title { font-family: var(--font-serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; }
.practice-card__desc { color: var(--color-muted); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.practice-card__cta {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
}
.practice-card__cta span { transition: transform 0.25s var(--ease); }
.practice-card__link:hover .practice-card__cta span { transform: translateX(5px); }

/* --- Public practice index ---------------------------------------- */
.section--practice-index { padding-block: var(--space-section); }
.practice-hero { max-width: 46ch; margin-bottom: clamp(48px, 8vw, 96px); }
.practice-hero__title { font-size: clamp(44px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.035em; margin: 0.2em 0 0; }
.practice-hero__intro { margin-top: 28px; }
.practice-empty { color: var(--color-muted); font-size: 1.1rem; }

/* --- Public practice detail ------------------------------------- */
.practice-detail__hero { padding-block: clamp(56px, 10vw, 120px) clamp(24px, 4vw, 48px); }
.practice-detail__num { font-size: 0.9rem; color: var(--color-muted); font-variant-numeric: tabular-nums; margin: 0 0 12px; }
.practice-detail__title { font-size: clamp(40px, 8vw, 112px); line-height: 0.96; letter-spacing: -0.03em; margin: 0; }
.practice-detail__cover { margin-block: clamp(24px, 4vw, 56px); }
.practice-detail__cover img { width: 100%; max-height: 70vh; object-fit: cover; }
.practice-detail__body { max-width: 68ch; padding-bottom: var(--space-section); }
.practice-detail__lead { font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.35; margin: 0 0 1.4em; }

/* --- FAQ accordion --------------------------------------------- */
.faq { margin-top: clamp(48px, 8vw, 96px); }
.faq__heading { font-size: clamp(24px, 3vw, 40px); margin: 0 0 24px; }
.faq__list { margin: 0; }
.faq__item { border-top: 1px solid var(--color-border); }
.faq__item:last-child { border-bottom: 1px solid var(--color-border); }
.faq__q { margin: 0; }
.faq__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.faq__icon { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.faq__icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq__icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq__toggle[aria-expanded="true"] .faq__icon::after { opacity: 0; transform: scaleY(0); }
.faq__a { margin: 0; padding: 0 0 24px; max-width: 62ch; color: #2c2a26; }
.faq__a p { margin: 0; }

/* --- Prev / next -------------------------------------------- */
.practice-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.practice-nav a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; max-width: 45%; }
.practice-nav__next { text-align: right; margin-left: auto; }
.practice-nav__label { display: block; font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }

/* --- Homepage team list ---------------------------------------- */
.team-list { list-style: none; margin: 40px 0 0; padding: 0; }
.team-list__item { border-top: 1px solid var(--color-border); }
.team-list__item:last-child { border-bottom: 1px solid var(--color-border); }
.team-list__link,
.team-list__static {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.4rem 0;
  text-decoration: none;
}
.team-list__name { font-family: var(--font-sans); font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.2; }
.team-list__title { color: var(--color-muted); font-size: 0.9rem; }
.team-list__arrow { transition: transform 0.25s var(--ease); }
.team-list__link:hover .team-list__arrow { transform: translateX(6px); }

/* --- Public team index --------------------------------------- */
.section--team-index { padding-block: var(--space-section); }
.team-hero { max-width: 46ch; margin-bottom: clamp(48px, 8vw, 96px); }
.team-hero__title { font-size: clamp(44px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.035em; margin: 0.2em 0 0; }
.team-hero__intro { margin-top: 28px; }
.team-empty { color: var(--color-muted); font-size: 1.1rem; }

.team-index { list-style: none; margin: 0; padding: 0; }
.team-index__row { border-top: 1px solid var(--color-border); }
.team-index__row:last-child { border-bottom: 1px solid var(--color-border); }
.team-index__link,
.team-index__static {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0;
  text-decoration: none;
}
.team-index__name { display: block; font-family: var(--font-sans); font-weight: 600; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.team-index__title { display: block; margin-top: 8px; color: var(--color-muted); font-size: 0.95rem; }
.team-index__more {
  align-self: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.team-index__link:hover .team-index__more { color: var(--color-text); }

/* --- Public team detail -------------------------------------- */
.team-detail__hero { padding-block: clamp(56px, 10vw, 120px) clamp(24px, 4vw, 48px); }
.team-detail__eyebrow { margin: 0 0 12px; }
.team-detail__name { font-size: clamp(40px, 8vw, 104px); line-height: 0.98; letter-spacing: -0.03em; margin: 0; }
.team-detail__title { margin: 16px 0 0; color: var(--color-muted); font-size: 1.1rem; }
.team-detail__body { max-width: 68ch; padding-bottom: var(--space-section); }
.team-detail__section { margin-top: clamp(32px, 5vw, 56px); }
.team-detail__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 14px;
}
.team-detail__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.team-detail__contact a { text-decoration: none; border-bottom: 1px solid var(--color-border); padding-bottom: 2px; }
.team-detail__contact a:hover { border-color: var(--color-text); }
.team-detail__back { margin-top: clamp(40px, 7vw, 72px); }

/* --- Public contact page ------------------------------------- */
.section--contact-page { padding-block: var(--space-section); }
/* Wide enough that the firm name sits on one line on a laptop and wraps
   naturally below that — a `ch` measure is sized by the sans-serif body
   font, which is far too narrow for this serif display heading. */
.contact-hero { max-width: 44rem; margin-bottom: clamp(40px, 7vw, 80px); }
.contact-hero__title { font-size: clamp(32px, 5vw, 64px); line-height: 1.08; letter-spacing: -0.02em; margin: 0.2em 0 0; }
.contact-block { max-width: 60ch; border-top: 1px solid var(--color-border); }
.contact-block__row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem 2rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-block__label {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}
.contact-block__value { margin: 0; font-size: 1.05rem; font-style: normal; line-height: 1.6; }
.contact-block__value a { text-decoration: none; border-bottom: 1px solid var(--color-border); padding-bottom: 2px; }
.contact-block__value a:hover { border-color: var(--color-text); }
.contact-cta { margin-top: clamp(40px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.contact-cta__text { margin: 0; color: var(--color-muted); max-width: 40ch; }

/* --- Public appointment form -------------------------------- */
.section--appointment { padding-block: var(--space-section); }
.appointment { max-width: 720px; }
.appointment__head { margin-bottom: clamp(32px, 6vw, 64px); }
.appointment__title { font-size: clamp(38px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.03em; margin: 0.2em 0 0; }
.appointment__lead { margin: 24px 0 0; color: var(--color-muted); max-width: 54ch; }
.appointment__success {
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-text);
  padding: clamp(20px, 4vw, 32px);
  background: var(--color-surface);
}
.appointment__success p { margin: 0 0 12px; }
.appointment__success p:last-child { margin-bottom: 0; }
.appointment__errors {
  border: 1px solid #b23b3b;
  color: #7c2222;
  padding: 16px 20px;
  margin-bottom: 32px;
  background: #fdf3f2;
}
.appointment__errors p { margin: 0 0 8px; font-weight: 600; }
.appointment__errors ul { margin: 0; padding-left: 1.2em; }

.appointment-form__hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.appointment-form .field { margin-bottom: clamp(20px, 3.5vw, 32px); }
.appointment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.appointment-form__row .field { margin-bottom: 0; }
.appointment-form__row + .field { margin-top: clamp(20px, 3.5vw, 32px); }

.field__label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.field__req { color: #b23b3b; }
.field__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  padding: 10px 2px;
  font: inherit;
  color: var(--color-text);
  border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.field__input:focus { outline: none; border-bottom-color: var(--color-text); }
.field__input:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }
.field__select { -webkit-appearance: none; appearance: none; padding-right: 1.5rem; }
.field__textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field--error .field__input { border-bottom-color: #b23b3b; }
.field__error { margin: 8px 0 0; color: #7c2222; font-size: 0.9rem; }

.field--check { margin-top: 8px; }
.field__check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.field__check input { margin-top: 0.35em; width: 1.05rem; height: 1.05rem; }
.field__check a { text-decoration: underline; }

.appointment-form__actions { margin-top: clamp(28px, 5vw, 44px); }

/* --- Responsive ---------------------------------- */
@media (max-width: 960px) {
  .practice-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .section__grid { grid-template-columns: 1fr; }
  .section__grid > .section__head { position: static; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .team-index__more, .team-list__arrow { display: none; }
  .contact-block__row { grid-template-columns: 1fr; gap: 4px; }
  .appointment-form__row { grid-template-columns: 1fr; }
  .appointment-form__row .field { margin-bottom: clamp(20px, 3.5vw, 32px); }
  .appointment-form__row .field:last-child { margin-bottom: 0; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header__toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    visibility: hidden;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
  }
  .site-header.is-nav-open .site-nav {
    visibility: visible;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 20px var(--gutter) 28px;
  }
  .site-nav__list a { font-size: clamp(24px, 6vw, 32px); padding: 14px 0; }
  .site-nav__cta { margin-top: 20px; }
  /* The CTA is a button, not another menu line: keep it at body size so the
     pill does not grow past the gutter on a narrow phone. */
  .site-nav__cta a { display: inline-flex; font-size: 1rem; padding: 14px 30px; }
  .manifesto__media { aspect-ratio: 4 / 3; }
  .practice-nav { flex-direction: column; }
  .practice-nav a { max-width: 100%; }
  .practice-nav__next { text-align: left; margin-left: 0; }
  .practice-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PHASE 9 — cinematic motion + interaction polish
   Everything here that hides content is scoped to `html.motion`, which the
   inline bootstrap in the layout sets ONLY when JS is enabled AND the visitor
   has not requested reduced motion (and which a watchdog strips again if the
   deferred bundle fails to load). No-JS and reduced-motion visitors therefore
   see every element in its final, fully visible state.
   ========================================================================== */

/* --- Pre-animation state (opt-in via data-* attributes) ---------------- */
html.motion [data-reveal],
html.motion [data-reveal-stagger] > [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
html.motion [data-reveal-media] { opacity: 0; will-change: opacity, transform, clip-path; }
html.motion [data-reveal-lines],
html.motion [data-statement] { opacity: 0; }
html.motion [data-hero] .hero__content .eyebrow,
html.motion [data-hero] .hero__title,
html.motion [data-hero] .hero__lead,
html.motion [data-hero] .hero__cue { opacity: 0; }

/* Line-mask wrappers built by SplitType. */
/* overflow:hidden is what makes the line-by-line reveal read as a mask. With a
   line-height below 1 it also crops what sits outside the line box — the dots
   of Ö/Ü and the tails of ş/ç/ğ. The padding gives the clip box that room back
   and the matching negative margin keeps the layout identical. */
.reveal-line-mask { display: block; overflow: hidden; padding-block: 0.14em; margin-block: -0.14em; }
.reveal-line { display: block; will-change: transform; }
[data-reveal-lines].is-split { white-space: normal; }

/* Clear the hints once the work is done (keep the compositor lean). */
html.motion [data-reveal].is-in,
html.motion [data-reveal-media].is-in { will-change: auto; }

/* --- Hero scroll cue -------------------------------------------------- */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px);
  width: 1px;
  height: clamp(36px, 6vh, 64px);
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 1;
}
.hero__cue-line {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(243, 241, 236, 0.5);
  animation: hero-cue 2.6s var(--ease) infinite;
}
@keyframes hero-cue {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --- Header: hide on scroll-down, reveal on scroll-up, solidify ------- */
.site-header { transform: translateY(0); transition: transform 0.4s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid {
  background: color-mix(in srgb, var(--color-surface) 94%, transparent);
  border-bottom-color: var(--color-border);
}
.site-header.is-nav-open {
  /* `transform: none`, never `translateY(0)`: any transform (like the
     backdrop-filter below) turns the header into the containing block for the
     position:fixed mobile overlay, which then cannot cover the viewport. */
  transform: none;
  backdrop-filter: none;
}

/* Homepage: let the dark hero rise under the sticky header so the header can
   sit over it, transparent. The hero content is bottom-aligned, so nothing is
   obscured; works with or without JS. */
.page--home .hero { margin-top: calc(var(--header-h) * -1); }

/* Dark hero (homepage): a transparent, light-on-dark header until the hero
   scrolls away, then back to the normal warm-white/dark treatment. Gated on
   `html.js` so a no-JS visitor keeps the always-legible default bar. */
html.js .page--home .site-header:not(.is-past-hero) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--color-bg);
}
html.js .page--home .site-header:not(.is-past-hero) .site-header__toggle { border-color: rgba(243, 241, 236, 0.45); }
html.js .page--home .site-header:not(.is-past-hero) .site-header__toggle span { background: var(--color-bg); }
html.js .page--home .site-header:not(.is-past-hero) .btn {
  border-color: rgba(243, 241, 236, 0.6);
  color: var(--color-bg);
}
html.js .page--home .site-header:not(.is-past-hero) .btn:hover {
  background: var(--color-bg);
  color: var(--color-dark);
}
@media (max-width: 820px) {
  /* Never hide the header while the mobile menu can be open. */
  .site-header.is-hidden { transform: translateY(0); }
}
/* Lock page scroll behind the full-screen mobile menu while it is open. */
html.has-nav-open { overflow: hidden; }
html.has-nav-open body { overflow: hidden; }

/* --- Ticker: seamless marquee (JS adds .is-marquee) ------------------ */
.ticker.is-marquee .ticker__track { justify-content: flex-start; flex-wrap: nowrap; will-change: transform; }
.ticker.is-marquee .ticker__item { flex: 0 0 auto; max-width: none; overflow: visible; padding-inline: 0; margin-right: clamp(2.5rem, 6vw, 5rem); }

/* --- FAQ: subtle height/opacity transition (JS present only) --------- */
html.js .faq__a:not([hidden]) {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding: 0;
  transition: grid-template-rows 0.32s var(--ease), opacity 0.32s var(--ease);
}
html.js .faq__a > * { overflow: hidden; min-height: 0; }
html.js .faq__a:not([hidden]) p { padding-bottom: 24px; }
html.js .faq__a:not([hidden]).is-open { grid-template-rows: 1fr; opacity: 1; }

/* --- Micro-interactions: one consistent system --------------------- */
.link-arrow { transition: color var(--dur-micro) var(--ease); }
.field__input { transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.field__input:focus { background: color-mix(in srgb, var(--color-surface) 60%, transparent); }
.field__error { animation: field-error-in 0.3s var(--ease) both; }
@keyframes field-error-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.appointment-form button[type="submit"] { transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.2s var(--ease); }
.appointment-form button[disabled] { opacity: 0.55; cursor: progress; }

/* --- Responsive motion: quieten large continuous effects on small vw - */
@media (max-width: 640px) {
  .ticker.is-marquee .ticker__item { margin-right: 2.5rem; }
  html.motion [data-reveal] { transform: translateY(18px); }
}

/* --- Reduced motion: the hard stop -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__cue { display: none; }
  /* Belt-and-braces: even if `html.motion` were ever set, show everything. */
  html.motion [data-reveal],
  html.motion [data-reveal-stagger] > [data-reveal],
  html.motion [data-reveal-media],
  html.motion [data-reveal-lines],
  html.motion [data-statement],
  html.motion [data-hero] .hero__content .eyebrow,
  html.motion [data-hero] .hero__title,
  html.motion [data-hero] .hero__lead,
  html.motion [data-hero] .hero__cue {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js .faq__a:not([hidden]) { grid-template-rows: 1fr; opacity: 1; }
}

/* ==========================================================================
   REVISION — mobile menu, content pages, legal pages, map, 404
   ========================================================================== */

/* --- Mobile menu: legibility + a real full-screen overlay -------------- */
@media (max-width: 820px) {
  /* The homepage header is light-on-dark while it floats over the hero. The
     open menu paints a light background behind it, so the same rule would
     leave white links on a cream sheet — invisible. Force the normal
     dark-on-light treatment for as long as the menu is open. */
  html.js .page--home .site-header.is-nav-open,
  html.js .page--home .site-header.is-nav-open:not(.is-past-hero) {
    background: var(--color-bg);
    backdrop-filter: none;
    color: var(--color-text);
    border-bottom-color: transparent;
  }
  html.js .page--home .site-header.is-nav-open:not(.is-past-hero) .site-header__toggle { border-color: var(--color-border); }
  html.js .page--home .site-header.is-nav-open:not(.is-past-hero) .site-header__toggle span { background: var(--color-text); }
  html.js .page--home .site-header.is-nav-open:not(.is-past-hero) .btn { border-color: var(--color-text); color: var(--color-text); }
  html.js .page--home .site-header.is-nav-open:not(.is-past-hero) .btn:hover { background: var(--color-text); color: var(--color-bg); }

  /* The overlay itself: opaque (never see-through onto the page behind it)
     and its own scroll container. */
  .site-nav {
    background: var(--color-bg);
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  .site-header.is-nav-open .site-nav { box-shadow: 0 24px 60px rgba(16, 16, 16, 0.12); }
  .site-nav__list a { color: var(--color-text); }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--color-text); }
  .site-nav__cta a { color: var(--color-text); border-color: var(--color-text); }
  .site-nav__cta a:hover { background: var(--color-text); color: var(--color-bg); }

  /* Hamburger turns into a close (×) while the menu is open. */
  .site-header__toggle span { transition: transform 0.25s var(--ease), opacity 0.2s var(--ease); }
  .site-header.is-nav-open .site-header__toggle span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-nav-open .site-header__toggle span:nth-child(3) { opacity: 0; }
  .site-header.is-nav-open .site-header__toggle span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* Scroll lock. The body is NOT pinned with position:fixed — the header is
   position:sticky inside it, and pinning drops the header (and the close
   button) off the top of the screen. `touch-action` stops the iOS rubber-band
   scroll behind the overlay, while the overlay itself stays pannable. */
html.has-nav-open, html.has-nav-open body { overflow: hidden; }
html.has-nav-open body { touch-action: none; }
html.has-nav-open .site-nav { touch-action: pan-y; }

/* --- Editorial content page (Hakkımızda) ------------------------------ */
.section--page { padding-block: clamp(64px, 11vw, 140px); }
.page-hero { max-width: 52ch; margin-bottom: clamp(40px, 7vw, 88px); }
.page-hero__title {
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0.2em 0 0;
}
.page-hero__lead {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  color: #2c2a26;
}
.page-body { max-width: 68ch; }

/* Value / highlight cards */
.page-values {
  list-style: none;
  margin: clamp(48px, 8vw, 96px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}
.page-value {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}
.page-value__title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.2;
  margin: 0 0 8px;
}
.page-value__text { margin: 0; color: var(--color-muted); font-size: 0.98rem; line-height: 1.6; }

.page-cta {
  margin-top: clamp(48px, 8vw, 96px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.page-cta__text { margin: 0; color: var(--color-muted); max-width: 44ch; }

/* --- Legal documents (KVKK, çerez, aydınlatma) ------------------------ */
.section--legal { padding-block: clamp(56px, 9vw, 120px); }
.legal-hero { max-width: 46ch; margin-bottom: clamp(32px, 5vw, 56px); }
.legal-hero__title { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.025em; margin: 0.2em 0 0; }
.legal-meta { margin: 20px 0 0; font-size: 0.85rem; color: var(--color-muted); }
.legal-body { max-width: 72ch; font-size: var(--step-body); }
.legal-body h2 { font-size: 1.5em; margin-top: 2em; }
.legal-body h3 { font-size: 1.2em; }
.legal-nav {
  margin-top: clamp(40px, 7vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.95rem;
}
.legal-nav a { text-decoration: none; border-bottom: 1px solid var(--color-border); padding-bottom: 2px; }
.legal-nav a:hover { border-color: var(--color-text); }

/* --- 404 --------------------------------------------------------------- */
.section--error { padding-block: clamp(96px, 18vh, 200px); }
.error-page { max-width: 54ch; }
.error-page__code {
  font-family: var(--font-serif);
  font-size: clamp(88px, 22vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
  color: var(--color-text);
}
.error-page__title { font-size: clamp(26px, 4vw, 44px); line-height: 1.1; margin: 0.4em 0 0; }
.error-page__text { margin: 24px 0 0; color: var(--color-muted); max-width: 44ch; }
.error-page__actions { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.error-page__links { margin: clamp(40px, 7vw, 72px) 0 0; padding-top: 28px; border-top: 1px solid var(--color-border); }
.error-page__links p { margin: 0 0 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); }
.error-page__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.error-page__links a { text-decoration: none; border-bottom: 1px solid var(--color-border); padding-bottom: 2px; }
.error-page__links a:hover { border-color: var(--color-text); }

/* --- Footer: social links + optional note ------------------------------ */
.site-footer__social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__social a { border-bottom: 1px solid rgba(243, 241, 236, 0.28); padding-bottom: 2px; }
.site-footer__social a:hover { border-bottom-color: var(--color-bg); }
.site-footer__note { display: block; margin-top: 6px; opacity: 0.75; }
