/* ==========================================================================
   STAFF Media — one-page site
   1. Fonts   2. Tokens   3. Base   4. Layout primitives   5. Components
   6. Sections   7. Motion
   ========================================================================== */

/* 1. Fonts — Trenda and Dharma Gothic are the fonts used on the current site.
   ------------------------------------------------------------------------- */
@font-face {
  font-family: 'Trenda';
  src: url('../fonts/trenda-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trenda';
  src: url('../fonts/trenda-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Dharma Gothic E';
  src: url('../fonts/dharma-gothic-e.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep the layout still while the web fonts load. */
@font-face {
  font-family: 'Trenda Fallback';
  src: local('Arial'), local('ArialMT'), local('Helvetica');
  font-weight: 400;
  size-adjust: 102.4%;
  ascent-override: 89.8%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Trenda Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold');
  font-weight: 700;
  size-adjust: 96.8%;
  ascent-override: 99.3%;
  descent-override: 26.9%;
  line-gap-override: 0%;
}

/* 2. Tokens
   ------------------------------------------------------------------------- */
:root {
  /* Logo colours, left to right: S, T, A, F, F */
  --b1: #39308e;
  --b2: #6e2c80;
  --b3: #932a72;
  --b4: #c02462;
  --b5: #e21c53;

  /* The same scale in eight steps — one per section, in page order */
  --step-1: #39308e;
  --step-2: #572d86;
  --step-3: #712c7e;
  --step-4: #882a76;
  --step-5: #a0286d;
  --step-6: #b82564;
  --step-7: #ce205c;
  --step-8: #e21c53;

  /* Card tones (icons, accents): first, middle and last logo colour */
  --tone-1: var(--b1);
  --tone-2: var(--b3);
  --tone-3: var(--b5);
  --brand-gradient: linear-gradient(120deg, var(--b1), var(--b3) 55%, var(--b5));

  --ink: #16141b;
  --ink-2: #3a3741;
  --muted: #66626e;
  --line: #e7e4eb;
  --line-2: #d4d0da;
  --paper: #ffffff;
  --paper-tint: #f8f7f5;

  --dark: #15121b;
  --dark-2: #1e1a26;
  --on-dark: #f5f3f8;
  --on-dark-muted: #aaa5b4;
  --dark-line: rgba(255, 255, 255, 0.14);

  --accent: var(--b1);
  --accent-strong: #2a2370;
  --focus: #c02462;
  --focus-dark: #ff86a6;
  --danger-dark: #ff9aae;
  --success-dark: #8fdcb0;

  --font-sans: 'Trenda', 'Trenda Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Dharma Gothic E', 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;

  --fs-display: clamp(2.5rem, 1.15rem + 4.5vw, 5.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2vw, 3.125rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.78125rem;

  --max: 1320px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --section-y: clamp(4.5rem, 2.75rem + 5.5vw, 8.5rem);
  --header-h: 84px;
  --header-h-compact: 64px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1179px) {
  :root {
    --header-h: 72px;
    --header-h-compact: 60px;
  }
}

/* 3. Base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h-compact) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

[tabindex='-1']:focus {
  outline: none;
}

::selection {
  background: var(--b1);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.icon--sm {
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.3em;
}

/* 4. Layout primitives
   ------------------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  /* Anchor jumps land with the heading just under the header, not a full section padding below it */
  scroll-margin-top: calc(2.25rem - var(--section-y));
}

.section--tint {
  background: var(--paper-tint);
}

.hero + .section,
.section + .section:not(.section--tint):not(.section--dark),
.section--tint + .section {
  border-top: 1px solid var(--line);
}

/* Heading on the left, supporting text on the right — shared by most sections */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2.75rem, 1.75rem + 3vw, 4.75rem);
}

.split__head {
  grid-column: 1 / span 7;
}

.split__aside {
  grid-column: 9 / -1;
  margin: 0;
  max-width: 36ch;
  color: var(--ink-2);
}

.split__aside.lead {
  grid-column: 8 / -1;
  max-width: 30ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink);
}

@media (max-width: 899px) {
  .split__head,
  .split__aside,
  .split__aside.lead {
    grid-column: 1 / -1;
    max-width: 40ch;
  }
}

/* 5. Components
   ------------------------------------------------------------------------- */

/* Section heading: colour step · index · label, then the title */
.eyebrow {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 0.5rem + 0.4vw, 0.875rem);
  margin: 0 0 clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-size: clamp(0.9375rem, 0.82rem + 0.45vw, 1.1875rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-feature-settings: 'case';
  color: var(--muted);
}

.eyebrow__mark {
  flex: none;
  width: clamp(12px, 0.6rem + 0.45vw, 16px);
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--step);
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, background-size 0.3s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  translate: 0 1px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--quiet {
  min-height: 0;
  padding: 0.375rem 0;
  border-radius: 0;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.btn--quiet:hover {
  background-size: 100% 2px;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: #e9e6ef;
}

.btn--light:disabled {
  cursor: progress;
  opacity: 0.85;
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--on-dark);
  background: transparent;
}

.btn--outline-light:hover {
  border-color: #fff;
}

/* Language switch: one flag per language, the current one in full colour */
.lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 32px;
  border-radius: 6px;
  text-decoration: none;
  opacity: 0.55;
  filter: saturate(0.35);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s var(--ease);
}

.lang__link:hover {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.lang__link[aria-current='page'] {
  opacity: 1;
  filter: none;
}

.flag {
  display: block;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12), 0 1px 3px rgb(0 0 0 / 0.12);
  overflow: hidden;
}

.lang__link[aria-current='page'] .flag {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink);
}

.lang--large .flag {
  width: 32px;
  height: 22px;
}

/* Over the hero video the ring around the current flag turns white */
body:not(.menu-open) .site-header--over-video.site-header--tint-dark:not(.is-compact) .lang__link[aria-current='page'] .flag,
body:not(.menu-open) .site-header--over-video.site-header--tint-brand:not(.is-compact) .lang__link[aria-current='page'] .flag {
  box-shadow: 0 0 0 2px transparent, 0 0 0 3.5px #fff;
}

/* 6. Sections
   ------------------------------------------------------------------------- */

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--paper);
  transition: box-shadow 0.3s;
}

.site-header.is-compact {
  box-shadow: 0 1px 0 var(--line);
}

/* Optional (admin): at the top of the page the header is see-through and the hero video runs behind it.
   It turns white again once the page scrolls or the mobile menu opens. */
.site-header--over-video {
  transition: box-shadow 0.3s, background-color 0.3s;
}

body:not(.menu-open) .site-header--over-video:not(.is-compact) {
  background: transparent;
}

body:not(.menu-open) .site-header--over-video.site-header--tint-dark:not(.is-compact),
body:not(.menu-open) .site-header--over-video.site-header--tint-brand:not(.is-compact) {
  --ink: #ffffff;
  --ink-2: rgb(255 255 255 / 0.86);
  --muted: rgb(255 255 255 / 0.7);
  --line: rgb(255 255 255 / 0.25);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}

.is-compact .site-header__bar {
  height: var(--header-h-compact);
}

.site-header__logo {
  display: block;
  flex: none;
  margin-right: auto;
  line-height: 0;
  border-radius: 2px;
}

.site-header__logo-img {
  width: 148px;
  height: auto;
  transition: width 0.35s var(--ease);
}

.is-compact .site-header__logo-img {
  width: 126px;
}

.site-nav {
  position: relative;
}

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 1.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav__link:hover,
.site-nav__link[aria-current] {
  color: var(--ink);
}

.site-nav__indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--indicator, var(--ink));
  opacity: 0;
}

.site-nav__indicator.is-ready {
  opacity: 1;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), background-color 0.45s;
}

.site-header__lang {
  padding-left: clamp(0.75rem, 1.2vw, 1.25rem);
  border-left: 1px solid var(--line);
}

@media (min-width: 1180px) and (max-width: 1365px) {
  .site-header__bar {
    gap: 1.25rem;
  }

  .site-nav__list {
    gap: 1.125rem;
  }

  .site-nav__link {
    font-size: 0.875rem;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 10px;
}

.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle__bars span:first-child {
  top: 0;
}

.menu-toggle__bars span:last-child {
  top: 8px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars span {
  top: 4px;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:first-child {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bars span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}

.is-compact .mobile-menu {
  top: var(--header-h-compact);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-block: 0.75rem 2rem;
}

.mobile-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu__link::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background-color 0.2s;
}

.mobile-menu__link[aria-current]::before {
  background: var(--step);
}

.mobile-menu__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 1.75rem;
}

/* Language switch right under the links, with comfortable tap targets */
.mobile-menu__foot .lang {
  margin-left: -0.5rem;
}

.mobile-menu__foot .lang__link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  font-size: var(--fs-small);
}

.mobile-menu__contact a {
  color: var(--ink-2);
  text-decoration: none;
}

@media (max-width: 1179px) {
  .site-nav,
  .site-header__lang {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-header__logo-img {
    width: 128px;
  }

  .is-compact .site-header__logo-img {
    width: 112px;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 0.75rem + 5.5vw, 6.5rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 7rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  align-items: end;
}

.hero__tagline {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__tagline strong {
  font-weight: 700;
  font-synthesis: weight;
  color: var(--ink);
}

.hero__title {
  grid-column: 1 / span 8;
  grid-row: 2;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.hero__dot {
  color: var(--b4);
}

.hero__body {
  grid-column: 1 / span 6;
  grid-row: 3;
}

.hero__lead {
  max-width: 22.8em;
  margin: 0 0 2.25rem;
  font-size: var(--fs-lead);
  line-height: 1.3;
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.channels {
  grid-column: 9 / -1;
  grid-row: 2 / span 2;
}

/* Height chosen in the admin panel (% of the screen); the content is centred in the extra space */
.hero.hero--sized {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(var(--hero-h) * 1vh);
  min-height: calc(var(--hero-h) * 1svh);
}

/* A text hidden in the admin panel keeps its place, so the banner height does not change.
   With a height chosen in the panel that height rules instead, and hidden texts take no space. */
.hero__ghost {
  visibility: hidden;
}

.hero--sized .hero__ghost {
  display: none;
}

/* Grid rows only for what is shown, so hidden texts leave no empty rows behind */
.hero--sized .hero__grid {
  grid-auto-flow: row dense;
}

.hero--sized .hero__title,
.hero--sized .hero__body {
  grid-row: auto;
}

.hero--sized .channels {
  grid-row: span 2;
}

@media (max-width: 1023px) {
  .hero--sized .channels {
    grid-row: auto;
  }
}

.channels__label {
  margin: 0 0 0.625rem;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-feature-settings: 'case';
  color: var(--muted);
}

.channels__title {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.channels__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.channels__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.channels__num {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.channels__mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--step);
}

@media (max-width: 1023px) {
  .hero__title {
    grid-column: 1 / -1;
  }

  .hero__body {
    grid-column: 1 / span 7;
    align-self: start;
  }

  .channels {
    grid-column: 9 / -1;
    grid-row: 3;
    align-self: start;
  }
}

/* Logo layout (admin: Giriş → Düzen): a large centred logo with the texts below it */
.hero--logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  --hero-logo-w: clamp(220px, 46vw, 560px);
  --hero-logo-h: clamp(110px, 30vh, 320px);
}

.hero--logo-small {
  --hero-logo-w: clamp(160px, 30vw, 340px);
  --hero-logo-h: clamp(80px, 20vh, 200px);
}

.hero--logo-large {
  --hero-logo-w: clamp(260px, 72vw, 880px);
  --hero-logo-h: clamp(140px, 40vh, 440px);
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 0.75rem + 1.5vw, 2rem);
  text-align: center;
}

.hero__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--hero-logo-w));
  max-height: var(--hero-logo-h);
  margin-bottom: clamp(0.25rem, 1vw, 1rem);
}

.hero--logo .hero__tagline {
  margin-top: clamp(-1.5rem, -1.25vw, -0.75rem);
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2.125rem);
}

.hero--logo-white .hero__logo {
  filter: brightness(0) invert(1);
}

/* Shadows chosen in the admin panel (Giriş → Gölge); --hero-*-shadow is the strength, 0–1 */
.hero--text-shadow :is(.hero__tagline, .hero__title, .hero__lead, .channels__label, .channels__title, .channels__item) {
  text-shadow:
    0 1px 2px rgb(0 0 0 / calc(var(--hero-text-shadow) * 0.6)),
    0 2px 18px rgb(0 0 0 / var(--hero-text-shadow));
}

.hero--logo-shadow .hero__logo {
  filter: drop-shadow(0 4px 20px rgb(0 0 0 / var(--hero-logo-shadow)));
}

.hero--logo-shadow.hero--logo-white .hero__logo {
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgb(0 0 0 / var(--hero-logo-shadow)));
}

.hero--logo .hero__title {
  max-width: 22ch;
  font-size: clamp(2rem, 1.25rem + 3vw, 4rem);
}

.hero--logo .hero__lead {
  margin-inline: auto;
}

.hero__lead:last-child {
  margin-bottom: 0;
}

.hero--logo .hero__actions {
  justify-content: center;
}

/* Phones: the hero fills the screen, the channel list is hidden and the text sits at the bottom */
@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__grid {
    flex: 1;
    align-content: end;
  }

  .hero__body {
    grid-column: 1 / -1;
  }

  .channels {
    display: none;
  }

  .hero__tagline {
    letter-spacing: 0.3em;
  }
}

/* About ------------------------------------------------------------------- */
.split--flush {
  margin-bottom: 0;
}

/* Approach ---------------------------------------------------------------- */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3rem;
  align-items: start;
}

.approach__intro {
  grid-column: 1 / span 5;
  position: sticky;
  top: calc(var(--header-h-compact) + 2.5rem);
}

.approach__text {
  max-width: 40ch;
  margin: 1.5rem 0 0;
  color: var(--ink-2);
}

.motto {
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
}

.motto__quote {
  margin: 0;
}

.motto__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  font-synthesis: none;
  line-height: 0.95;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.motto__cite {
  margin-top: 0.875rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.principles {
  grid-column: 7 / -1;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(1.125rem, 0.8rem + 1vw, 1.75rem);
  align-items: start;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: translate 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.principle:hover {
  translate: 0 -4px;
  border-color: transparent;
  box-shadow: 0 18px 40px -18px rgb(57 48 142 / 0.35);
}

.principle__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(140deg, var(--tone), color-mix(in srgb, var(--tone) 55%, var(--b5)));
  box-shadow: 0 10px 22px -10px var(--tone);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.principle:hover .principle__icon {
  transform: rotate(-6deg) scale(1.06);
}

.principle__icon .line-icon {
  width: 30px;
  height: 30px;
}

.principle__title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.125rem 0 0.625rem;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.016em;
}

.principle__num {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tone);
  font-variant-numeric: tabular-nums;
}

.principle__text {
  max-width: 48ch;
  margin: 0;
  color: var(--ink-2);
}

@media (max-width: 1023px) {
  .approach__intro {
    grid-column: 1 / -1;
    position: static;
    max-width: 44rem;
  }

  .principles {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .principle {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.125rem;
  }

  .principle__icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .principle__icon .line-icon {
    width: 26px;
    height: 26px;
  }
}

/* Services ---------------------------------------------------------------- */
.services__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  overflow: hidden;
  transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

/* A brand-coloured bar draws across the top on hover */
.service::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.service:hover {
  translate: 0 -6px;
  border-color: transparent;
  box-shadow: 0 24px 50px -24px rgb(57 48 142 / 0.4);
}

.service:hover::before {
  transform: none;
}

.service__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 9%, var(--paper));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent);
  transition: background-color 0.45s, color 0.45s, transform 0.6s cubic-bezier(0.34, 1.4, 0.5, 1);
}

.service:hover .service__icon {
  color: #fff;
  background: var(--tone);
  transform: scale(1.06);
}

.service__icon .line-icon {
  width: 32px;
  height: 32px;
}

.service__num {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-synthesis: none;
  line-height: 0.8;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  transition: -webkit-text-stroke-color 0.45s;
}

.service:hover .service__num {
  -webkit-text-stroke-color: var(--tone);
}

.service__title {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.016em;
}

.service__text {
  margin: 0.875rem 0 0;
  color: var(--ink-2);
}

.service__points {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-2);
}

.service__points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
}

.service__check {
  width: 20px;
  height: 20px;
  padding: 2px;
  border-radius: 50%;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, var(--paper));
}

@media (max-width: 1023px) {
  .services__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 40rem;
  }
}

/* Partners ---------------------------------------------------------------- */
/* Space above / below set in the admin panel (Boşluklar), as a share of the normal padding */
.partners.section {
  padding-top: calc(var(--section-y) * var(--space-top, 1));
  padding-bottom: calc(var(--section-y) * var(--space-bottom, 1));
  scroll-margin-top: calc(2.25rem - var(--section-y) * var(--space-top, 1));
}

.logo-wall {
  --logo-scale: 1;
  --cell-h: 128px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
}

.logo-wall__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0 -1px -1px 0;
  padding: 0;
  list-style: none;
}

.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--cell-h);
  padding: 0.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-wall__item img {
  display: block;
  width: min(calc(var(--w) * var(--logo-scale) * 1px), 86%);
  height: auto;
}

@media (max-width: 1179px) {
  .logo-wall {
    --logo-scale: 0.9;
    --cell-h: 116px;
  }

  .logo-wall__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .logo-wall {
    --logo-scale: 0.82;
    --cell-h: 104px;
  }

  .logo-wall__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .logo-wall {
    --logo-scale: 0.78;
    --cell-h: 92px;
  }

  .logo-wall__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-wall__item:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* Logo marquee: two rows, full width, scrolls left and can be dragged (main.js) */
.logo-marquee {
  --cell-h: 176px;
  --cell-w: 300px;
  --logo-scale: 1.45;
  margin-inline: calc(50% - 50vw);
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  user-select: none;
  -webkit-user-select: none;
}

.logo-marquee.is-live {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-marquee.is-dragging {
  cursor: grabbing;
}

.logo-marquee__track {
  display: flex;
  width: max-content;
}

.logo-marquee.is-live .logo-marquee__track {
  will-change: transform;
}

.logo-marquee__list {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, var(--cell-h));
  grid-auto-columns: var(--cell-w);
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-marquee__item img {
  display: block;
  width: min(calc(var(--w) * var(--logo-scale) * 1px), 80%);
  height: auto;
  pointer-events: none;
}

@media (max-width: 899px) {
  .logo-marquee {
    --cell-h: 132px;
    --cell-w: 220px;
    --logo-scale: 1.1;
  }
}

@media (max-width: 559px) {
  .logo-marquee {
    --cell-h: 108px;
    --cell-w: 172px;
    --logo-scale: 0.9;
  }
}

/* Testimonials ------------------------------------------------------------ */
.testimonials {
  overflow: hidden;
}

/* A tighter section than the others, so the heading and the cards fit on one screen (the cards keep their size) */
.testimonials.section {
  padding-block: calc(var(--section-y) * 0.6);
}

.testimonials .section-title {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.375rem);
}

/* Soft brand-coloured light behind the cards, like the swirl on the brand artwork */
.testimonials__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.testimonials__glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.testimonials__glow span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  left: 18%;
  top: 30%;
  background: radial-gradient(circle, var(--b1), transparent 68%);
}

.testimonials__glow span:nth-child(2) {
  width: 38vw;
  height: 38vw;
  left: 42%;
  top: 45%;
  background: radial-gradient(circle, var(--b3), transparent 68%);
}

.testimonials__glow span:nth-child(3) {
  width: 30vw;
  height: 30vw;
  right: 4%;
  bottom: -6%;
  background: radial-gradient(circle, var(--b5), transparent 68%);
  opacity: 0.4;
}

.testimonials__head {
  max-width: 54rem;
  margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem);
}

.testimonials__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-card,
.quote-card__figure {
  display: flex;
  flex-direction: column;
}

.quote-card__figure {
  flex: 1;
  margin: 0;
}

/* Round black-and-white portrait inside a thin brand-gradient ring */
.quote-card__photo {
  width: clamp(168px, 14vw + 60px, 236px);
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--b1), var(--b3), var(--b5), var(--b1));
  transition: transform 0.6s var(--ease);
}

.quote-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 4px solid var(--dark);
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.quote-card:hover .quote-card__photo {
  transform: scale(1.03) rotate(-2deg);
}

/* Logo | name and role, as on the original slide */
.quote-card__who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4rem;
  margin-bottom: 2.25rem;
}

.quote-card__brand {
  flex: none;
  display: flex;
  align-items: center;
  padding-right: 1rem;
  border-right: 1px solid var(--dark-line);
  align-self: stretch;
}

.quote-card__logo {
  display: block;
  width: min(calc(var(--w) * 0.78px), 128px);
  height: auto;
  /* Every logo in white so they read on the dark background */
  filter: brightness(0) invert(1);
}

/* Admin: "Logoların rengi" — original colours, optionally on a white chip */
.testimonials--logos-color .quote-card__logo,
.testimonials--logos-chip .quote-card__logo {
  filter: none;
}

.testimonials--logos-chip .quote-card__logo {
  box-sizing: content-box;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #ffffff;
}

.quote-card__company {
  font-weight: 700;
  font-size: 1.125rem;
}

.quote-card__person {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quote-card__name {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
}

.quote-card__role {
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--on-dark-muted);
}

.quote-card__quote {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 2.25rem clamp(1.25rem, 1rem + 0.8vw, 1.75rem) clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background-color 0.4s, border-color 0.4s;
}

.quote-card:hover .quote-card__quote {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(255 255 255 / 0.18);
}

.quote-card__mark {
  position: absolute;
  top: -0.35em;
  left: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quote-card__quote p {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: rgb(245 243 248 / 0.88);
}

@media (max-width: 1023px) {
  .testimonials__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 38rem;
    margin-inline: auto;
    gap: 3.5rem;
  }

  .testimonials__glow span {
    width: 90vw !important;
    height: 90vw !important;
  }
}

/* Team -------------------------------------------------------------------- */
/* Heading on top, then four people per row (more rows as people are added in the panel) */
.team__grid {
  display: grid;
  row-gap: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.team__head {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.team__intro {
  max-width: 44ch;
  margin: 1.5rem 0 0;
  color: var(--ink-2);
}

.team__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.25rem, 1.8rem + 1.5vw, 3.25rem) var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.person__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-tint);
}

.person__name {
  margin-top: 1.125rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

.person__role {
  margin: 0.25rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .team__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .team__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }

  .person__name {
    margin-top: 0.875rem;
    font-size: 1.0625rem;
  }

  .person__role {
    font-size: 0.875rem;
  }
}

/* Contact ----------------------------------------------------------------- */
.section--dark {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
}

.section--dark :focus-visible {
  outline-color: var(--focus-dark);
}

.section--dark .eyebrow {
  color: var(--on-dark-muted);
}

.brand-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 4px;
}

.brand-bar span {
  flex: 1;
}

.brand-bar span:nth-child(1) { background: var(--b1); }
.brand-bar span:nth-child(2) { background: var(--b2); }
.brand-bar span:nth-child(3) { background: var(--b3); }
.brand-bar span:nth-child(4) { background: var(--b4); }
.brand-bar span:nth-child(5) { background: var(--b5); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3.5rem;
}

.contact__intro {
  grid-column: 1 / span 5;
}

.contact__text {
  max-width: 40ch;
  margin: 1.5rem 0 0;
  color: var(--on-dark-muted);
}

.contact-list {
  margin-top: 2.75rem;
  font-style: normal;
}

.contact-list dl {
  margin: 0;
  border-top: 1px solid var(--dark-line);
}

.contact-list__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--dark-line);
}

.contact-list dt {
  padding-top: 0.4em;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-feature-settings: 'case';
  color: var(--on-dark-muted);
}

.contact-list dd {
  margin: 0;
}

.contact-list__link {
  color: var(--on-dark);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}

.contact-list__link:hover {
  background-size: 100% 1px;
}

.contact-list__row:nth-child(-n + 2) .contact-list__link {
  font-size: var(--fs-lead);
  line-height: 1.35;
}

.contact-list__link--address {
  display: inline-flex;
  flex-direction: column;
  background: none;
}

.contact-list__hint {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
  transition: color 0.2s;
}

.contact-list__link--address:hover .contact-list__hint {
  color: var(--on-dark);
}

.contact-list__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.contact__form {
  grid-column: 7 / -1;
  padding-top: 0.25rem;
}

.form-title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.016em;
}

.form__note {
  margin: 0 0 2rem;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.field {
  margin-bottom: 1.5rem;
}

.field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 700;
}

.field__control {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0.8125rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark);
  line-height: 1.4;
  transition: border-color 0.2s, background-color 0.2s;
}

.field__control:hover {
  border-color: rgba(255, 255, 255, 0.42);
}

.field__control:focus {
  outline: 2px solid var(--focus-dark);
  outline-offset: 2px;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.field__control--area {
  min-height: 10rem;
  line-height: 1.55;
  resize: vertical;
}

.field__control[readonly] {
  opacity: 0.7;
}

.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--danger-dark);
}

.field__error::before {
  content: '!';
  flex: none;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.05em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.field.is-invalid .field__control {
  border-color: var(--danger-dark);
}

.field.is-invalid .field__error {
  display: flex;
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__alert {
  margin-bottom: 1.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(255, 154, 174, 0.55);
  border-left: 3px solid var(--danger-dark);
  border-radius: var(--radius);
  background: rgba(255, 154, 174, 0.07);
}

.form__alert-title {
  margin: 0;
  font-weight: 700;
}

.form__alert-text {
  margin: 0.25rem 0 0;
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}

.form__alert-text a {
  color: var(--on-dark);
}

.form__submit {
  min-width: 11rem;
  margin-top: 0.5rem;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form.is-loading .spinner {
  display: inline-block;
}

.form.is-loading .form__submit .icon {
  display: none;
}

.form-success {
  padding: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-2);
}

.form-success__mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  border: 1.5px solid var(--success-dark);
  border-radius: 50%;
}

.form-success__mark::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 16px;
  width: 9px;
  height: 15px;
  border: solid var(--success-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-success__title {
  margin: 0 0 0.5rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.016em;
}

.form-success__text {
  margin: 0 0 1.75rem;
  color: var(--on-dark-muted);
}

@media (max-width: 1023px) {
  .contact__intro,
  .contact__form {
    grid-column: 1 / -1;
  }

  .contact__form {
    max-width: 40rem;
  }
}

/* Phones: the whole contact section fits on one screen */
@media (max-width: 767px) {
  .contact.section {
    padding-block: 2rem;
  }

  .contact__grid {
    row-gap: 1.5rem;
  }

  .contact__text {
    margin-top: 0.75rem;
  }

  .contact-list {
    margin-top: 1.25rem;
  }

  /* E-mail and phone side by side, address and social full width */
  .contact-list dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .contact-list__row {
    padding: 0.625rem 0;
  }

  .contact-list__row:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .contact-list__row:nth-child(-n + 2) .contact-list__link {
    font-size: 1rem;
  }

  .contact-list__hint {
    margin-top: 0.25rem;
  }

  .form-title {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
  }

  /* "All fields are required" — the fields are marked required and show their own errors */
  .form__note {
    display: none;
  }

  .form-title {
    margin-bottom: 0.875rem;
  }

  /* Name and e-mail side by side */
  .form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.75rem;
  }

  .form > * {
    grid-column: 1 / -1;
  }

  .form > [data-field='name'],
  .form > [data-field='email'] {
    grid-column: auto;
  }

  .field {
    margin-bottom: 0.875rem;
  }

  .field__label {
    margin-bottom: 0.375rem;
  }

  .field__control {
    min-height: 46px;
    padding: 0.625rem 0.875rem;
  }

  .field__control--area {
    height: 6.5rem;
    min-height: 6rem;
  }

  .form__submit {
    margin-top: 0.25rem;
  }
}

@media (max-width: 559px) {
  .contact-list__row {
    grid-template-columns: 1fr;
    row-gap: 0.375rem;
  }

  .contact-list dt {
    padding-top: 0;
  }

  .form__submit {
    width: 100%;
  }
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.75rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.site-footer__brand {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}

.site-footer__brand > a {
  display: inline-block;
  line-height: 0;
}

.site-footer__logo {
  width: clamp(156px, 14vw, 204px);
  height: auto;
}

/* The tagline is centred under the logo; the left padding offsets the letter-spacing trailing the last letter */
.site-footer__tagline {
  align-self: stretch;
  margin: 1.25rem 0 0;
  padding-left: 0.34em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer__tagline strong {
  font-weight: 700;
  font-synthesis: weight;
  color: var(--ink);
}

.site-footer__nav {
  grid-column: 6 / span 4;
}

.site-footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--gap);
}

.site-footer__nav li {
  margin-bottom: 0.625rem;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__nav a {
  color: var(--ink-2);
}

.site-footer__nav a:hover,
.site-footer__social a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__contact {
  grid-column: 10 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.site-footer__contact > a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.5rem;
}

.site-footer__social a {
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.site-footer__top-link:hover .icon {
  translate: 0 -2px;
}

.site-footer__top-link .icon {
  transition: translate 0.25s var(--ease);
}

@media (max-width: 1023px) {
  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__nav {
    grid-column: 1 / span 7;
  }

  .site-footer__contact {
    grid-column: 8 / -1;
  }
}

@media (max-width: 559px) {
  .site-footer__nav,
  .site-footer__contact {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom .lang {
    margin-left: -0.5rem;
  }
}

/* Hero background video ---------------------------------------------------------
   Blur, tint colour and tint strength come from the admin panel (inline --video-* vars). */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--dark);
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--video-blur, 0px));
  transform: scale(1.08); /* hides the soft edges a blur leaves */
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(var(--video-tint) / var(--video-tint-alpha, 0.6));
}

.hero--tint-dark { --video-tint: 14 12 20; }
.hero--tint-brand { --video-tint: 40 32 110; }
.hero--tint-light { --video-tint: 255 255 255; }

/* On the dark and brand tints the hero text turns light */
.hero--tint-dark,
.hero--tint-brand {
  --ink: #ffffff;
  --ink-2: rgb(255 255 255 / 0.86);
  --muted: rgb(255 255 255 / 0.7);
  --line: rgb(255 255 255 / 0.22);
  --line-2: rgb(255 255 255 / 0.34);
  color: var(--ink);
}

/* The purple button would disappear into the purple tint */
.hero--tint-brand .btn--primary {
  background: #ffffff;
  color: var(--b1);
}

.hero--tint-brand .btn--primary:hover {
  background: rgb(255 255 255 / 0.88);
}

/* Background shapes ---------------------------------------------------------
   A gradient ring and thin ripples from the brand artwork, half off the edge of
   each section. They sit behind the content (z-index -1 inside an isolated section). */
.hero,
.section {
  position: relative;
  isolation: isolate;
  /* Content sliding in from the side must not widen the page on phones
     (clip, unlike hidden, keeps the sticky Approach intro working) */
  overflow-x: clip;
}

/* About sits closer to its neighbours */
.about.section {
  padding-block: calc(var(--section-y) * 0.6);
}

.decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.decor__item {
  position: absolute;
  display: block;
  width: var(--size, 320px);
  height: auto;
}

.decor__ring g {
  opacity: 0.92;
}

.decor__ripples {
  color: var(--b5);
}

.decor__ripples g {
  opacity: 0.32;
}

.section--dark .decor__ring g {
  opacity: 0.75;
}

.section--dark .decor__ripples g {
  opacity: 0.22;
}

.decor--hero .decor__ring { --size: clamp(180px, 22vw, 340px); left: 36%; bottom: calc(var(--size) * -0.5); }
.decor--hero .decor__ripples { --size: clamp(160px, 18vw, 280px); right: -5%; top: 4%; }

.decor--about .decor__ripples { --size: clamp(200px, 24vw, 360px); left: -8%; top: calc(var(--size) * -0.72); }

.decor--approach .decor__ring { --size: clamp(160px, 18vw, 260px); right: -4%; bottom: calc(var(--size) * -0.6); }
.decor--approach .decor__ripples { --size: clamp(200px, 24vw, 360px); left: calc(var(--size) * -0.45); top: calc(var(--size) * -0.45); }

.decor--services .decor__ripples { --size: clamp(200px, 24vw, 360px); left: calc(var(--size) * -0.45); bottom: calc(var(--size) * -0.35); }

.decor--partners .decor__ripples { --size: clamp(200px, 24vw, 360px); right: calc(var(--size) * -0.4); top: calc(var(--size) * -0.4); }

.decor--team .decor__ripples { --size: clamp(220px, 26vw, 400px); left: 30%; top: -14%; }
.decor--team .decor__ring { --size: clamp(160px, 20vw, 300px); right: -8%; bottom: -12%; }


@media (max-width: 767px) {
  /* No thick ring on phones; the ripples stay in the corners so they never sit under text */
  .decor__ring {
    display: none;
  }

  .decor--hero .decor__ripples,
  .decor--team .decor__ripples {
    display: none;
  }

  .decor--hero .decor__ring { left: auto; right: -22%; bottom: -10%; }
  .decor--about .decor__ripples { left: calc(var(--size) * -0.45); top: calc(var(--size) * -0.5); }
  .decor--approach .decor__ring { right: -24%; bottom: calc(var(--size) * -0.5); }
  .decor--approach .decor__ripples { left: calc(var(--size) * -0.45); top: calc(var(--size) * -0.5); }
  .decor--partners .decor__ripples { right: calc(var(--size) * -0.45); top: calc(var(--size) * -0.4); }
  .decor--services .decor__ripples { left: calc(var(--size) * -0.5); bottom: calc(var(--size) * -0.4); }
  .decor--team .decor__ring { right: -24%; bottom: -4%; }
}

/* 7. Motion — hero entrance, scroll reveals (a different move per section) and hover states.
   ------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Logo hero: the tagline starts small and far below the logo, then moves up towards it while growing */
@keyframes approach {
  from {
    opacity: 0;
    transform: translateY(clamp(48px, 9vh, 110px)) scale(0.45);
  }

  55% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  [data-hero-item] {
    animation: rise 0.9s var(--ease) both;
  }

  .hero--logo .hero__tagline[data-hero-item] {
    transform-origin: 50% 0;
    animation: approach 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
  }

  .hero__title[data-hero-item] { animation-delay: 0.06s; }
  .hero__body[data-hero-item] { animation-delay: 0.14s; }
  .channels[data-hero-item] { animation-delay: 0.2s; }
  .hero--logo .hero__title[data-hero-item] { animation-delay: 0.16s; }
  .hero--logo .hero__body[data-hero-item] { animation-delay: 0.22s; }

  .channels__item {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(0.32s + var(--i, 0) * 55ms);
  }

  /* Scroll reveals ---------------------------------------------------------
     main.js adds .reveal-ready to <html> and .is-visible to each [data-reveal]
     as it scrolls into view, and sets --i to stagger siblings that enter together.
     Without JS (or with reduced motion) nothing is hidden. */
  .reveal-ready [data-reveal] {
    --delay: calc(var(--i, 0) * 90ms);
  }

  /* Simple moves: fade, up, left (from the left), right (from the right) */
  .reveal-ready [data-reveal='fade'],
  .reveal-ready [data-reveal='up'],
  .reveal-ready [data-reveal='left'],
  .reveal-ready [data-reveal='right'] {
    opacity: 0;
    transition: opacity 0.9s var(--ease) var(--delay), transform 1s var(--ease) var(--delay);
  }

  .reveal-ready [data-reveal='up'] { transform: translateY(28px); }
  .reveal-ready [data-reveal='left'] { transform: translateX(-56px); }
  .reveal-ready [data-reveal='right'] { transform: translateX(56px); }

  .reveal-ready [data-reveal='fade'].is-visible,
  .reveal-ready [data-reveal='up'].is-visible,
  .reveal-ready [data-reveal='left'].is-visible,
  .reveal-ready [data-reveal='right'].is-visible {
    opacity: 1;
    transform: none;
  }

  /* Section heads: the colour mark pops, then the title enters.
     data-motion picks how the title moves, one per section. */
  .reveal-ready [data-reveal='head'] .eyebrow__mark {
    transform: scale(0) rotate(-90deg);
    transition: transform 0.7s var(--ease);
  }

  .reveal-ready [data-reveal='head'] .eyebrow__label {
    opacity: 0;
    transition: opacity 0.6s var(--ease) 0.1s;
  }

  .reveal-ready [data-reveal='head'] .eyebrow__label {
    transition-delay: 0.3s;
  }

  .reveal-ready [data-reveal='head'] .section-title {
    opacity: 0;
    transition: opacity 0.9s var(--ease) 0.2s, transform 1.1s var(--ease) 0.2s, clip-path 1.1s var(--ease) 0.2s, filter 1.1s var(--ease) 0.2s;
  }

  .reveal-ready [data-motion='rise'] .section-title { transform: translateY(32px); }
  .reveal-ready [data-motion='left'] .section-title { transform: translateX(-80px); }
  .reveal-ready [data-motion='right'] .section-title { transform: translateX(80px); }

  .reveal-ready [data-motion='mask'] .section-title {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.6em);
  }

  .reveal-ready [data-motion='wipe'] .section-title {
    clip-path: inset(0 100% 0 0);
  }

  .reveal-ready [data-motion='blur'] .section-title {
    filter: blur(12px);
    transform: scale(1.06);
    transform-origin: left center;
  }

  .reveal-ready [data-reveal='head'].is-visible .eyebrow__mark {
    transform: none;
  }

  .reveal-ready [data-reveal='head'].is-visible .eyebrow__label {
    opacity: 1;
  }

  .reveal-ready [data-reveal='head'].is-visible .section-title {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
    filter: none;
  }

  /* Cards keep their hover lift (translate) next to the reveal move (transform) */
  .reveal-ready .principle[data-reveal],
  .reveal-ready .service[data-reveal] {
    transition: opacity 0.9s var(--ease) var(--delay), transform 1s var(--ease) var(--delay), translate 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
  }

  /* Business model: the icon tile pops in after the card */
  .reveal-ready .principle[data-reveal] .principle__icon {
    transform: scale(0.4) rotate(-30deg);
    transition: transform 0.9s cubic-bezier(0.34, 1.4, 0.5, 1) calc(var(--delay) + 0.3s);
  }

  .reveal-ready .principle.is-visible .principle__icon {
    transform: none;
  }

  .reveal-ready .principle.is-visible:hover .principle__icon {
    transform: rotate(-6deg) scale(1.06);
    transition-delay: 0s;
  }

  /* Services: cards rise one after another, the check marks follow */
  .reveal-ready .service[data-reveal] .service__points li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .reveal-ready .service.is-visible .service__points li {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .service.is-visible .service__points li:nth-child(1) { transition-delay: calc(var(--delay) + 0.45s); }
  .reveal-ready .service.is-visible .service__points li:nth-child(2) { transition-delay: calc(var(--delay) + 0.53s); }
  .reveal-ready .service.is-visible .service__points li:nth-child(3) { transition-delay: calc(var(--delay) + 0.61s); }
  .reveal-ready .service.is-visible .service__points li:nth-child(4) { transition-delay: calc(var(--delay) + 0.69s); }
  .reveal-ready .service.is-visible .service__points li:nth-child(5) { transition-delay: calc(var(--delay) + 0.77s); }
  .reveal-ready .service.is-visible .service__points li:nth-child(n + 6) { transition-delay: calc(var(--delay) + 0.85s); }

  /* Testimonials: the portrait grows in, the quote panel rises after it */
  .reveal-ready .quote-card[data-reveal] .quote-card__photo {
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.8s var(--ease) var(--delay), transform 1s cubic-bezier(0.34, 1.3, 0.5, 1) var(--delay);
  }

  .reveal-ready .quote-card[data-reveal] .quote-card__who,
  .reveal-ready .quote-card[data-reveal] .quote-card__quote {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease) calc(var(--delay) + 0.3s), transform 0.9s var(--ease) calc(var(--delay) + 0.3s), background-color 0.4s, border-color 0.4s;
  }

  .reveal-ready .quote-card[data-reveal] .quote-card__quote {
    transition-delay: calc(var(--delay) + 0.45s), calc(var(--delay) + 0.45s), 0s, 0s;
  }

  .reveal-ready .quote-card.is-visible .quote-card__photo,
  .reveal-ready .quote-card.is-visible .quote-card__who,
  .reveal-ready .quote-card.is-visible .quote-card__quote {
    opacity: 1;
    transform: none;
  }

  .reveal-ready .quote-card.is-visible:hover .quote-card__photo {
    transform: scale(1.03) rotate(-2deg);
    transition-delay: 0s;
  }

  /* Approach: the motto is wiped in from the left */
  .reveal-ready .motto[data-reveal='wipe'] .motto__quote {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.3s var(--ease) 0.15s;
  }

  .reveal-ready .motto[data-reveal='wipe'] .motto__cite {
    opacity: 0;
    transition: opacity 0.8s var(--ease) 0.9s;
  }

  .reveal-ready .motto.is-visible .motto__quote {
    clip-path: inset(0);
  }

  .reveal-ready .motto.is-visible .motto__cite {
    opacity: 1;
  }

  /* Background shapes: grow in, the ring keeps turning slowly (main.js adds a little parallax) */
  .reveal-ready [data-reveal='decor'] {
    opacity: 0;
    transform: scale(0.6) rotate(-40deg);
    transition: opacity 1.4s var(--ease), transform 1.8s var(--ease);
  }

  .reveal-ready [data-reveal='decor'].is-visible {
    opacity: 1;
    transform: none;
  }

  .decor__spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 60s linear infinite;
  }

  /* Partners: logos pop in one after another */
  .reveal-ready .logo-wall__item[data-reveal='pop'] img {
    opacity: 0;
    transform: scale(0.7) translateY(12px);
    transition: opacity 0.6s var(--ease), transform 0.8s cubic-bezier(0.34, 1.4, 0.5, 1);
    transition-delay: calc(var(--i, 0) * 45ms);
  }

  .reveal-ready .logo-wall__item.is-visible img {
    opacity: 1;
    transform: none;
  }

  /* Team: a curtain lifts off each portrait, then the name follows */
  .reveal-ready .person[data-reveal] .person__photo {
    clip-path: inset(100% 0 0 0 round var(--radius));
    transform: scale(1.12);
    transition: clip-path 1.1s var(--ease) var(--delay), transform 1.4s var(--ease) var(--delay);
  }

  .reveal-ready .person[data-reveal] .person__name,
  .reveal-ready .person[data-reveal] .person__role {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s var(--ease) calc(var(--delay) + 0.45s), transform 0.7s var(--ease) calc(var(--delay) + 0.45s);
  }

  .reveal-ready .person[data-reveal] .person__role {
    transition-delay: calc(var(--delay) + 0.55s);
  }

  .reveal-ready .person.is-visible .person__photo {
    clip-path: inset(0 round var(--radius));
    transform: none;
  }

  .reveal-ready .person.is-visible .person__name,
  .reveal-ready .person.is-visible .person__role {
    opacity: 1;
    transform: none;
  }

  /* Contact: the brand bar fills in colour by colour */
  .reveal-ready .brand-bar[data-reveal] span {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease);
  }

  .reveal-ready .brand-bar[data-reveal] span:nth-child(2) { transition-delay: 0.1s; }
  .reveal-ready .brand-bar[data-reveal] span:nth-child(3) { transition-delay: 0.2s; }
  .reveal-ready .brand-bar[data-reveal] span:nth-child(4) { transition-delay: 0.3s; }
  .reveal-ready .brand-bar[data-reveal] span:nth-child(5) { transition-delay: 0.4s; }

  .reveal-ready .brand-bar.is-visible span {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .spinner {
    animation-duration: 2.4s;
  }
}
