/* ==========================================================================
   MEYHAN COMMUNICATIONS  ·  styles.css
   --------------------------------------------------------------------------
   Change colours, fonts, sizes and spacing for the whole site in section 02
   (DESIGN TOKENS). The sections after it follow the page from top to bottom,
   and each one keeps its own phone/tablet rules right underneath it.

   01  Fonts
   02  Design tokens   ← start here
   03  Base
   04  Layout
   05  Shared type, buttons and icons
   06  Image slots (.media)
   07  Header and logo
   08  Menu overlay
   09  Hero
   10  Philosophy
   11  What we do (services)
   12  Advantage (dark band)
   13  Why work with us
   14  Founder
   15  Contact (details panel and form)
   16  Footer
   17  Motion
   18  Editing aids (image slot labels)
   19  Accessibility, reduced motion and print
   ========================================================================== */


/* ==========================================================================
   01  FONTS
   Self-hosted, so the site does not depend on Google Fonts.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   02  DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colours --------------------------------------------------------------- */
  --c-ink:            #171717;   /* headings */
  --c-paper:          #f9f9f7;   /* page background */
  --c-white:          #ffffff;   /* light sections */
  --c-stone:          #e9e9e6;   /* founder section */
  --c-night:          #17191a;   /* dark advantage band, contact panel */
  --c-footer:         #121212;   /* footer and menu */
  --c-text:           #3d3d3a;   /* longer paragraphs */
  --c-muted:          #5f5f5b;   /* supporting copy */
  --c-label:          #71716d;   /* small numbers and labels */
  --c-accent:         #8a8a86;   /* soft emphasis inside big headlines */
  --c-line:           #dededa;   /* hairlines */
  --c-line-strong:    #c6c6c1;   /* list and card dividers */
  --c-on-dark:        #ffffff;
  --c-on-dark-muted:  #b4b4b0;
  --c-line-dark:      rgba(255, 255, 255, 0.2);
  --c-button:         #171717;   /* buttons (try #f4892a for orange) */
  --c-button-hover:   #3d3d3b;
  --c-error:          #b3261e;   /* form error messages */

  /* Images ---------------------------------------------------------------- */
  --img-filter: grayscale(100%);   /* set to: none   to show photos in colour */
  --hero-shade:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 32%, rgba(0, 0, 0, 0.3) 68%, rgba(0, 0, 0, 0.62) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.28), transparent 75%);
  --panel-shade: linear-gradient(160deg, rgba(12, 13, 14, 0.5) 0%, rgba(12, 13, 14, 0.78) 100%);

  /* Fonts ----------------------------------------------------------------- */
  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "DM Sans", "Helvetica Neue", Arial, sans-serif;

  /* Type sizes: clamp(smallest, scales with screen, largest) -------------- */
  --fs-label:   0.75rem;                                          /* 12px labels */
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);         /* 16–17px */
  --fs-lead:    clamp(1.125rem, 1rem + 0.5vw, 1.375rem);          /* 18–22px */
  --fs-h3:      clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);       /* 17–19px */
  --fs-quote:   clamp(1.55rem, 1.05rem + 2.3vw, 2.95rem);         /* 25–47px */
  --fs-title:   clamp(2.1rem, 1.4rem + 3vw, 4rem);                /* 34–64px */
  --fs-display: clamp(2.75rem, min(1rem + 7.6vw, 16vh), 7.8rem);  /* 44–125px hero, shrinks on short screens */
  --fs-cta:     clamp(2.25rem, 0.9rem + 4.4vw, 5rem);             /* 36–80px */

  /* Layout ---------------------------------------------------------------- */
  --container:    1320px;                        /* max content width */
  --gutter:       clamp(20px, 4.6vw, 56px);      /* side padding */
  --section-y:    clamp(56px, 6.5vw, 96px);      /* section top and bottom padding */
  --header-h-top: clamp(80px, 7.5vw, 104px);     /* header height over the hero */
  --header-h:     72px;                          /* header height after scrolling */

  /* Motion ---------------------------------------------------------------- */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-distance: 28px;
  --reveal-duration: 1s;
}


/* ==========================================================================
   03  BASE
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, p, blockquote, figure, address { margin: 0; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: #d6d6d2; color: var(--c-ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }


/* ==========================================================================
   04  LAYOUT
   ========================================================================== */

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

.container--quote { width: min(1120px, 100% - 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }


/* ==========================================================================
   05  SHARED TYPE, BUTTONS AND ICONS
   ========================================================================== */

.eyebrow {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

/* Two-part titles ("Global expertise | Exceptional value"):
   one line on wide screens, one part per line on smaller screens.
   The --k numbers keep each version inside the page width; if you change
   the wording a lot, see README.md > "Two-part titles". */
.split-title > span { display: block; }
.split-title > .split-title__sep { display: none; }

@media (min-width: 1100px) {
  .split-title {
    font-size: min(var(--fs-title), calc(min(var(--container), 100vw - 2 * var(--gutter)) * 0.95 / var(--k-wide, 22)));
    white-space: nowrap;
  }
  .split-title > span { display: inline; }
  .split-title > .split-title__sep {
    display: inline;
    font-weight: 200;
    color: var(--c-accent);
  }
}

@media (max-width: 1099.98px) {
  .split-title { font-size: min(var(--fs-title), calc((100vw - 2 * var(--gutter)) * 0.95 / var(--k-narrow, 11))); }
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 56px;
  padding: 16px 24px;
  border: 0;
  background: var(--c-button);
  color: #fff;
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease-out);
}

.button:hover { background-color: var(--c-button-hover); }
.button:hover svg { transform: translate(3px, -3px); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Icons from the sprite at the top of index.html */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.service__icon svg,
.contact__icon svg,
.contact__link svg,
.button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   06  IMAGE SLOTS (.media)
   Every image sits in a .media box. If the file is missing, the box shows a
   subtle striped placeholder instead of a broken-image icon.
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--slot-bg, #2a2c2e);
  background-image: repeating-linear-gradient(135deg, var(--slot-stripe, rgba(255, 255, 255, 0.045)) 0 1px, transparent 1px 13px);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
}

/* Optional shade over the image (used by the hero and the contact panel) */
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--media-shade, none);
}

.media.is-empty img { visibility: hidden; }

/* With parallax on, images get extra height so their edges never show */
.has-parallax .media img[data-parallax] {
  inset: auto;
  top: -12%;
  left: 0;
  height: 124%;
  will-change: transform;
}


/* ==========================================================================
   07  HEADER AND LOGO
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--c-on-dark);
  transition:
    transform 0.5s var(--ease-out),
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h-top);
  padding-inline: var(--gutter);
  transition: height 0.4s var(--ease-out);
}

.site-header.is-solid {
  color: var(--c-ink);
  background-color: rgba(249, 249, 247, 0.9);
  box-shadow: 0 1px 0 var(--c-line);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
}

.site-header.is-solid .site-header__inner { height: var(--header-h); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

/* Logo: change --brand-size to resize it. The line under the wordmark is
   sized from it, so the two always stay exactly the same width. */
.brand {
  --brand-size: 2rem;
  display: inline-flex;
  flex-direction: column;
  line-height: 0.9;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--brand-size);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand__tag {
  margin-top: calc(var(--brand-size) * 0.24);
  font-size: calc(var(--brand-size) * 0.3111);   /* matches the width of MEYHAN */
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .brand { --brand-size: 1.75rem; }
}

/* "Let's talk" link */
.header-cta {
  position: relative;
  padding-block: 8px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.header-cta:hover::after,
.header-cta:focus-visible::after { transform: scaleX(1); }

/* Menu button */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-toggle__icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.menu-toggle__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out);
}

.menu-toggle__icon i {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}

.menu-toggle__icon i:nth-child(2) { width: 12px; }
.menu-toggle:hover .menu-toggle__icon::before { opacity: 1; transform: scale(1.08); }
.menu-toggle:hover .menu-toggle__icon i:nth-child(2) { width: 19px; }

@media (max-width: 760px) {
  .header-cta { display: none; }
}

@media (max-width: 480px) {
  .menu-toggle__label { display: none; }
}


/* ==========================================================================
   08  MENU OVERLAY
   ========================================================================== */

.menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 56px);
  padding: 96px var(--gutter) 40px;
  overflow-y: auto;
  background: var(--c-footer);
  color: var(--c-on-dark);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s;
}

.menu__close {
  position: absolute;
  top: var(--close-top, calc((var(--header-h-top) - 48px) / 2));
  right: var(--gutter);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.5s var(--ease-out);
}

.menu__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.menu__close:hover { border-color: #fff; transform: rotate(90deg); }

.menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 1vh, 10px);
}

.menu__nav a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 4.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.menu__num {
  margin-top: 1.5em;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

/* Hovering one link softly dims the others */
.menu__nav:hover a { color: rgba(255, 255, 255, 0.38); }
.menu__nav a:hover,
.menu__nav a:focus-visible { color: #fff; }

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.menu__foot a:hover { color: #fff; }


/* ==========================================================================
   09  HERO
   The content sits in the space between the header and the scroll cue, so
   the two can never overlap. On short screens the title shrinks to fit.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: max(560px, min(100vh, 1000px));
  min-height: max(560px, min(100svh, 1000px));
  padding-top: var(--header-h-top);
  overflow: hidden;
  color: var(--c-on-dark);
  background: var(--c-night);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  --media-shade: var(--hero-shade);
}

/* The hero image drifts down as you scroll, so it needs its extra room at the top */
.has-parallax .hero__media img[data-parallax] { top: -24%; height: 130%; }

.hero__ring-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero__ring {
  width: min(max(76vw, 280px), 600px, 82vh);
  aspect-ratio: 1;
  border: clamp(18px, 3.2vw, 44px) solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  max-width: 1240px;
  padding: 16px var(--gutter) 36px;
}

.hero__title {
  padding-left: 0.05em;   /* balances the letter-spacing so lines sit centred */
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18);
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}

.hero__title .line > span { display: inline-block; }

.hero__lede {
  max-width: 820px;
  margin: clamp(20px, 2.4vw, 30px) auto 0;
  font-size: clamp(0.75rem, 0.7rem + 0.22vw, 0.875rem);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding: 0 var(--gutter) clamp(16px, 3vh, 32px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__index { opacity: 0.75; text-align: left; }
.hero__index:last-child { text-align: right; }

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: clamp(28px, 5vh, 44px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: #fff;
  animation: scroll-cue 2.4s var(--ease-in-out) infinite;
}

/* Hero entrance (runs once on load) */
.motion .hero__media { animation: hero-settle 2.2s var(--ease-out) both; }
.motion .hero__ring  { animation: ring-in 1.6s var(--ease-out) 0.2s both, ring-float 9s ease-in-out 1.8s infinite alternate; }
.motion .hero__title .line > span { animation: line-rise 1.2s var(--ease-out) both; }
.motion .hero__title .line:nth-child(1) > span { animation-delay: 0.2s; }
.motion .hero__title .line:nth-child(2) > span { animation-delay: 0.32s; }
.motion .hero__title .line:nth-child(3) > span { animation-delay: 0.44s; }
.motion .hero__title .line:nth-child(4) > span { animation-delay: 0.56s; }
.motion .hero__lede   { animation: fade-up 1s var(--ease-out) 0.7s both; }
.motion .hero__footer { animation: fade-in 1.2s ease 1s both; }

@keyframes hero-settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes ring-in     { from { opacity: 0; transform: scale(0.86); } }
@keyframes ring-float  { from { transform: translateY(-1%) scale(1); } to { transform: translateY(1.5%) scale(1.035); } }
@keyframes line-rise   { from { transform: translateY(110%); } }
@keyframes fade-up     { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade-in     { from { opacity: 0; } }
@keyframes scroll-cue  { 0% { transform: translateY(-100%); } 65%, 100% { transform: translateY(230%); } }

@media (max-width: 900px) {
  .hero__lede { letter-spacing: 0.16em; }
}

@media (max-width: 700px) {
  .br-wide { display: none; }
}

@media (max-width: 600px) {
  .hero { min-height: max(540px, 92vh); min-height: max(540px, 92svh); }
  .hero__lede { letter-spacing: 0.12em; }
  .hero__footer { grid-template-columns: 1fr; justify-items: center; }
  .hero__index { display: none; }
}


/* ==========================================================================
   10  PHILOSOPHY
   ========================================================================== */

.philosophy {
  background: var(--c-white);
  text-align: center;
}

.philosophy .eyebrow { margin-bottom: clamp(20px, 2.5vw, 30px); }

.philosophy__quote p {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.04em;
}

.philosophy__line {
  display: block;
  text-wrap: balance;
}

.philosophy__quote em {
  font-style: normal;
  color: var(--c-accent);
}

/* Word-by-word highlight (main.js wraps each word in .word) */
.is-split .word { opacity: 0.16; transition: opacity 0.45s ease; }
.is-split .word.is-lit { opacity: 1; }


/* ==========================================================================
   11  WHAT WE DO (services)
   ========================================================================== */

.services {
  padding-block: clamp(48px, 5vw, 72px);
  background: var(--c-paper);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
  margin-bottom: clamp(24px, 2.6vw, 32px);
}

.section-head .section-title { margin-bottom: 0; }

.section-head__intro {
  max-width: 40ch;
  padding-bottom: 0.3em;
  color: var(--c-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 2.4vw, 32px);
}

/* Icon on the left, label + title + text on the right */
.service {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  column-gap: 16px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--c-line-strong);
}

.service__num,
.service__title,
.service__text { grid-column: 2; }

/* A dark line draws across the top on hover */
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-out);
}

.service:hover::before { transform: scaleX(1); }

.service__icon {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-ink);
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.service__icon svg { width: 22px; height: 22px; }

.service:hover .service__icon {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.service__num {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-label);
}

.service__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.service__text {
  max-width: 38ch;
  line-height: 1.6;
  color: var(--c-muted);
}

@media (max-width: 960px) {
  .section-head { display: block; }
  .section-head .section-title { margin-bottom: 14px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Smaller screens: icon beside the label and title, text full width below */
  .service__icon { grid-row: 1 / span 2; align-self: center; }
  .service__title { margin-bottom: 0; }
  .service__text { grid-column: 1 / -1; max-width: none; margin-top: 12px; }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .service { padding: 18px 0 20px; }
}


/* ==========================================================================
   12  ADVANTAGE (dark band)
   ========================================================================== */

.advantage {
  position: relative;
  overflow: hidden;
  background: var(--c-night);
  color: var(--c-on-dark);
}

.advantage__rings {
  position: absolute;
  top: -200px;
  right: -180px;
  width: 620px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 110px rgba(255, 255, 255, 0.028),
    0 0 0 225px rgba(255, 255, 255, 0.016);
  pointer-events: none;
}

.advantage .container { position: relative; }

.advantage__title {
  --k-wide: 20.74;    /* width of the one-line title, in font sizes */
  --k-narrow: 10.43;  /* width of the longest half */
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.advantage__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}

.advantage .lead {
  max-width: 30ch;
  color: var(--c-on-dark-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(28px, 3.5vw, 44px);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.8rem + 3.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  max-width: 24ch;
  margin-top: 12px;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.advantage__side {
  padding-left: clamp(24px, 3.5vw, 52px);
  border-left: 1px solid var(--c-line-dark);
}

.advantage__side h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  letter-spacing: -0.03em;
}

.advantage__side p {
  line-height: 1.8;
  color: var(--c-on-dark-muted);
}

.advantage__side p + p { margin-top: 14px; }

.advantage__side strong {
  font-weight: 600;
  color: var(--c-on-dark);
}

@media (max-width: 960px) {
  .advantage__grid { grid-template-columns: 1fr; }
  .advantage .lead { max-width: 40ch; }
  .advantage__rings { width: 460px; top: -220px; right: -220px; }
}

@media (max-width: 600px) {
  .advantage__side { padding-left: 20px; }
}


/* ==========================================================================
   13  WHY WORK WITH US
   ========================================================================== */

.why { background: var(--c-white); }

.why__title {
  --k-wide: 18.54;
  --k-narrow: 9.21;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px clamp(24px, 3vw, 44px);
}

.why-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line-strong);
}

.why-item__num {
  padding-top: 0.2em;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-label);
}

.why-item h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.why-item p {
  max-width: 38ch;
  line-height: 1.6;
  color: var(--c-muted);
}

@media (max-width: 960px) {
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .why__grid { grid-template-columns: 1fr; gap: 20px; }
  .why-item { padding-top: 18px; }
}


/* ==========================================================================
   14  FOUNDER
   ========================================================================== */

.founder { background: var(--c-stone); }

/* Wide screens: portrait on the left, name and story centred beside it.
   Smaller screens: a small portrait beside the name, story full width. */
.founder__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    "photo ."
    "photo head"
    "photo body"
    "photo .";
  column-gap: clamp(32px, 5vw, 76px);
}

.founder__portrait { grid-area: photo; align-self: center; }
.founder__head     { grid-area: head; }
.founder__body     { grid-area: body; }

.founder__media {
  aspect-ratio: 4 / 5;
  --slot-bg: #cfcfca;
  --slot-stripe: rgba(0, 0, 0, 0.05);
}

.founder .section-title { margin-bottom: 14px; }

.founder__role {
  margin-bottom: clamp(18px, 2.4vw, 26px);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.founder__lead {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.founder__text {
  max-width: 68ch;
  line-height: 1.7;
  color: var(--c-text);
}

.founder__text + .founder__text { margin-top: 12px; }

.founder__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(28px, 3.5vw, 48px);
  margin-top: clamp(40px, 5vw, 60px);
}

.founder__subhead { margin-bottom: 12px; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--c-line-strong);
}

.timeline li {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-strong);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-label);
  font-variant-numeric: tabular-nums;
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.timeline small {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-muted);
}

@media (max-width: 1099.98px) {
  .founder__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder__details > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .founder__grid {
    grid-template-columns: clamp(96px, 24vw, 160px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "photo head"
      "body body";
    align-items: center;
    column-gap: clamp(18px, 4vw, 32px);
    row-gap: 24px;
  }

  .founder .section-title { font-size: min(var(--fs-title), 8.6vw); }
  .founder__role { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .founder__details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}


/* ==========================================================================
   15  CONTACT (details panel and form)
   ========================================================================== */

.contact { background: var(--c-paper); }

.contact__head {
  max-width: 1120px;
  margin: 0 auto clamp(32px, 4.5vw, 56px);
  text-align: center;
}

.contact__title {
  --k: 12.84;   /* width of the longest line, in font sizes */
  margin: 12px 0 20px;
  font-family: var(--font-display);
  font-size: var(--fs-cta);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.contact__title span { display: block; }

@media (min-width: 700px) {
  .contact__title { font-size: min(var(--fs-cta), calc(min(1120px, 100vw - 2 * var(--gutter)) * 0.95 / var(--k))); }
}

.contact__intro {
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--c-muted);
}

/* The box: details panel on the left, form on the right */
.contact__box {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--c-white);
  box-shadow: 0 0 0 1px var(--c-line), 0 40px 90px -56px rgba(0, 0, 0, 0.4);
}

.contact__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-on-dark);
  background: var(--c-night);
}

.contact__media {
  position: absolute;
  inset: 0;
  --media-shade: var(--panel-shade);
}

.contact__panel-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 34px);
  height: 100%;
  padding: clamp(28px, 3.8vw, 52px);
}

.contact__panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.contact__list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.contact__icon svg { width: 18px; height: 18px; }

.contact__label {
  margin-bottom: 2px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

.contact__value {
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

a.contact__value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
  transition: color 0.25s ease;
}

.contact__link svg { width: 14px; height: 14px; }
.contact__link:hover { color: #fff; }

/* The form */
.contact__form {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 3.8vw, 52px);
}

.contact__form-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: 0;
  background: var(--c-white);
  font-size: 1rem;   /* 16px stops phones zooming in */
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field textarea {
  min-height: 148px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover { border-color: #a9a9a4; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--c-error); }

.field__error {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--c-error);
}

.field__error:empty { display: none; }

/* Spam trap, kept off-screen */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 4px;
}

.form-status {
  flex: 1 1 240px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--c-error); }
.form-status[data-state="success"] { color: var(--c-ink); font-weight: 600; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .contact__box { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .contact__actions .button { width: 100%; }
}

/* Smallest phones: a little more room so the email address stays on one line */
@media (max-width: 359px) {
  .contact__panel-inner { padding-inline: 24px; }
  .contact__item { gap: 12px; }
}


/* ==========================================================================
   16  FOOTER
   ========================================================================== */

.site-footer {
  padding: clamp(48px, 6vw, 68px) 0 26px;
  background: var(--c-footer);
  color: var(--c-on-dark);
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.brand--large { --brand-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.75rem); }

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__nav a { opacity: 0.8; transition: opacity 0.25s ease; }
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible { opacity: 1; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  border-top: 1px solid #3a3a3a;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #a3a3a0;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer__bottom a:hover { color: #fff; }

@media (max-width: 760px) {
  .site-footer__top,
  .site-footer__bottom { flex-direction: column; }
}


/* ==========================================================================
   17  MOTION
   Reveal on scroll: add data-reveal to any element. Inside a parent with
   data-reveal-group, children appear one after another. data-reveal="clip"
   wipes an image in from the bottom instead of fading.
   ========================================================================== */

.motion:not(.no-reveal) [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition:
    opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.motion:not(.no-reveal) [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* The wipe is applied to the child, so the browser can still "see" the wrapper */
.motion:not(.no-reveal) [data-reveal="clip"] {
  opacity: 1;
  transform: none;
}

.motion:not(.no-reveal) [data-reveal="clip"] > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.motion:not(.no-reveal) [data-reveal="clip"].is-visible > * { clip-path: inset(0 0 0 0); }

.has-parallax [data-parallax]:not(img),
.has-parallax [data-parallax-x] { will-change: transform; }


/* ==========================================================================
   18  EDITING AIDS
   When you open the site on your own computer, each image shows a small
   label with the file that feeds it. Visitors never see these.
   ========================================================================== */

.media::after {
  content: "Image slot · " attr(data-slot) " · " attr(data-slot-size);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: none;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  font: 600 11px/1.3 var(--font-body);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}

.show-slots .media::after { display: block; }
.show-slots .media.is-empty::after { content: "Missing · " attr(data-slot) " · " attr(data-slot-size); background: #a8261d; }
.hero__media::after { top: calc(var(--header-h-top) + 6px); left: var(--gutter); }
.contact__media::after { top: auto; bottom: 14px; }

.slot-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: min(360px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  line-height: 1.55;
}

.slot-toast strong { display: block; margin-bottom: 4px; }

.slot-toast code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.slot-toast button {
  margin-top: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}


/* ==========================================================================
   19  ACCESSIBILITY, REDUCED MOTION AND PRINT
   ========================================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: #fff;
  color: var(--c-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus { transform: none; }

.nowrap { white-space: nowrap; }

.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;
}

/* Visitors who switch on "reduce motion" on their device get a calm page */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .site-header,
  .menu,
  .hero__footer,
  .slot-toast,
  .contact__form { display: none !important; }

  .contact__box { grid-template-columns: 1fr; }
  .motion [data-reveal],
  .motion [data-reveal="clip"] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .is-split .word { opacity: 1 !important; }
}
