/* ==========================================================================
   Launch Your Business
   Black & white system. Cormorant Garamond for headings, Jost for everything
   else. The only accent is the grey from the logo arrow.
   ========================================================================== */

:root {
  --black: #111111;
  --black-2: #1a1a1a;
  --white: #ffffff;
  --paper: #f6f6f4;
  --grey: #8c8c8c;
  --muted: #5c5c5c;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --line-dark: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  overscroll-behavior: none;
}

/* no browser scrollbar: the line under the navbar shows scroll progress */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* iPhone Safari colours the strip behind the notch / status bar from the page
   background and any fixed header touching the top, so both must be dark.
   The white only lives on <main>. */
html {
  background: var(--black);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  background: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: 1.6rem;
}

h1 em,
h2 em {
  font-style: italic;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--black);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.dark .eyebrow,
.hero .eyebrow {
  color: var(--grey);
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  font-weight: 300;
  color: var(--muted);
  max-width: 36rem;
}

.dark .lead,
.hero .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 0.82rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: #333;
}

.btn-ghost {
  border-color: var(--black);
  color: var(--black);
}

.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: #e8e8e8;
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-ghost-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-sm {
  min-height: 2.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.74rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(17, 17, 17, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}

body.nav-open .site-header {
  background: var(--black);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* full-width bar: logo and links sit near the screen edges, not the content column */
.site-header .nav-wrap {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.25rem, 2.5vw, 2.5rem);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 5.75rem;
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .nav-wrap {
  height: 4.75rem;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 3.1rem;
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .logo img {
  height: 2.7rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s;
}

/* underline that draws in from the left, like the logo's line */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  background: var(--grey);
  transform: scaleX(1);
}

.nav-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--line-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav-cta svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform 0.35s var(--ease);
}

.nav-cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.nav-cta:hover svg {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.2s, width 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle span:nth-child(1) {
  top: 34%;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  width: 1rem;
}

.menu-toggle span:nth-child(3) {
  top: 66%;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 50%;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 50%;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 4.75rem;
  }

  /* compact menu that drops down on the right, under the menu button */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: clamp(1rem, 2.5vw, 2.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: max-content;
    min-width: 12rem;
    max-width: calc(100vw - 2rem);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: var(--black);
    box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.28s var(--ease), visibility 0.22s;
  }

  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    transition: background 0.2s, color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active::before {
    content: "";
    order: 2;
    flex-shrink: 0;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--white);
  }

  .nav-divider {
    display: block;
    width: auto;
    height: 1px;
    margin: 0.4rem 0.4rem;
  }

  .nav-cta {
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
    font-size: 0.74rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 10.5vw, 8.75rem) 0 clamp(5rem, 9vw, 7.5rem);
  background: var(--black);
  color: var(--white);
}

/* the logo's rising line, drawn large behind the hero */
.hero-line {
  position: absolute;
  right: clamp(1.5rem, 4vw, 5rem);
  top: 6rem;
  width: min(66vw, 1150px);
  height: auto;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-inner > * {
  max-width: 50rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 em {
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin: 3rem 0 0;
  padding: 1.6rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.fact-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Page hero (inner pages) */
.hero--page {
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
}

.hero--page h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--tight {
  padding-top: 0;
}

.section--paper {
  background: var(--paper);
}

.dark {
  background: var(--black);
  color: var(--white);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head p {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--muted);
}

.dark .section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem 2rem;
  max-width: none;
}

.section-head--split > div {
  max-width: 44rem;
}

/* ---------- Intro / statement ---------- */

.statement {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.statement h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.statement-body {
  display: grid;
  gap: 1.25rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
}

.statement-body strong {
  font-weight: 500;
  color: var(--black);
}

/* ---------- Area cards (what we work on) ---------- */

.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  padding: 2rem 1.85rem 2.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.area:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.area-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--grey);
}

.area-icon {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--black);
}

.area h3 {
  font-size: 1.7rem;
}

.area p {
  font-weight: 300;
  color: var(--muted);
}

.area--cta {
  justify-content: space-between;
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.area--cta h3 {
  font-size: 1.9rem;
}

.area--cta p {
  color: rgba(255, 255, 255, 0.7);
}

.area--cta .text-link {
  align-self: flex-start;
}

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

/* ---------- Who it's for ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.person {
  padding: 2.1rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: var(--black-2);
}

.person-tag {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

.person h3 {
  margin-bottom: 0.8rem;
  font-size: 1.75rem;
}

.person p {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process li {
  position: relative;
  padding-top: 3.6rem;
  counter-increment: step;
}

.process li::before {
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
}

.process li::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 3.4rem;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.process li:last-child::after {
  right: auto;
  width: 2.2rem;
}

.process h3 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
}

.process p {
  font-weight: 300;
  color: var(--muted);
}

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

/* ---------- Quote band ---------- */

.quote {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}

.quote p {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
}

.quote p em {
  color: var(--muted);
}

.quote-rule {
  width: 4rem;
  height: 1px;
  margin: 2rem auto 0;
  background: var(--grey);
}

/* ---------- Detail rows (programme page) ---------- */

.details {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail {
  display: grid;
  grid-template-columns: 5rem minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.5rem 2.5rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--grey);
}

.detail h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.detail-copy {
  display: grid;
  gap: 1rem;
  font-weight: 300;
  color: var(--muted);
}

.detail-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--black);
  font-weight: 400;
}

.detail-list li {
  position: relative;
  padding-left: 1.9rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- CTA band ---------- */

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 3rem;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--black);
  color: var(--white);
}

.cta h2 {
  margin-bottom: 0.9rem;
}

.cta p {
  max-width: 34rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dark .cta {
  background: var(--white);
  color: var(--black);
}

.dark .cta p {
  color: var(--muted);
}

@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.req {
  color: var(--grey);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  font: 400 1rem/1.4 var(--sans);
  color: var(--black);
  transition: border-color 0.2s;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #b3261e;
}

.checkbox-label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem !important;
  font-weight: 300 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.checkbox-label input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--black);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.status {
  font-size: 0.95rem;
}

.status.error {
  color: #b3261e;
}

.status.success {
  color: var(--black);
}

.contact-card {
  display: grid;
  gap: 1.4rem;
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
}

.contact-card h3 {
  font-size: 1.9rem;
}

.contact-card p {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.contact-row {
  display: grid;
  gap: 0.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}

.contact-row span {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

.contact-row a {
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--white);
  word-break: break-word;
}

.contact-row a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-note h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.contact-note p {
  font-weight: 300;
  color: var(--muted);
}

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

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 2.5rem;
}

.footer-brand .logo img {
  height: 4rem;
  margin: -0.75rem 0 1rem -0.4rem;
}

.footer-brand p {
  max-width: 22rem;
  font-weight: 300;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  text-decoration: none;
  font-weight: 300;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--white);
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 80;
  width: min(92vw, 28rem);
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ==========================================================================
   Compact phone layout
   Less vertical scrolling: tighter rhythm, swipe rows instead of tall
   stacks of big cards (same approach as Build Your Web and Rejuvenate).
   ========================================================================== */

.swipe-hint {
  display: none;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2rem;
  }

  .eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.7rem;
  }

  .nav-wrap,
  .site-header.is-scrolled .nav-wrap {
    height: 4.5rem;
  }

  .logo img,
  .site-header.is-scrolled .logo img {
    height: 2.5rem;
  }


  .section {
    padding-block: 3.25rem;
  }

  .section--tight {
    padding-top: 0;
  }

  .section-head {
    margin-bottom: 1.6rem;
  }

  .section-head p {
    margin-top: 0.7rem;
    font-size: 1rem;
  }

  .section-head--split {
    grid-template-columns: 1fr;
  }

  .section-head--split .text-link {
    justify-self: start;
  }

  /* Hero */
  .hero {
    padding: 6.75rem 0 3.5rem;
  }

  .hero h1 {
    margin-bottom: 1.1rem;
  }



  .hero-actions {
    margin-top: 1.8rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    gap: 0.45rem;
    flex-direction: column;
    font-size: 0.85rem;
  }

  .hero--page {
    padding-bottom: 3rem;
  }

  .hero--page h1 {
    font-size: 2.4rem;
  }

  /* Statement */
  .statement {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .statement h2 {
    font-size: 1.9rem;
  }

  .statement-body {
    gap: 0.9rem;
    font-size: 1rem;
  }

  /* Swipe rows: area cards + people cards */
  .swipe-row {
    display: flex;
    gap: 0.8rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .swipe-row::-webkit-scrollbar {
    display: none;
  }

  .swipe-row > * {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }

  .js .swipe-row .reveal {
    opacity: 1;
    transform: none;
  }

  .swipe-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey);
  }

  .area {
    gap: 0.6rem;
    padding: 1.4rem 1.3rem 1.5rem;
  }

  .area:hover {
    transform: none;
  }

  .area-icon {
    width: 2.1rem;
    height: 2.1rem;
  }

  .area h3,
  .area--cta h3 {
    font-size: 1.45rem;
  }

  .area p {
    font-size: 0.95rem;
  }

  .person {
    padding: 1.5rem 1.35rem;
  }

  .person h3 {
    font-size: 1.45rem;
  }

  .person p {
    font-size: 0.95rem;
  }

  /* Process: compact numbered list */
  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process li {
    display: grid;
    grid-template-columns: 2.6rem 1fr;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .process li:first-child {
    border-top: 1px solid var(--line);
  }

  .process li::before {
    position: static;
    grid-row: span 2;
    font-size: 1.4rem;
  }

  .process li::after {
    display: none;
  }

  .process h3 {
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
  }

  .process p {
    font-size: 0.95rem;
  }

  /* Quote */
  .quote p {
    font-size: 1.65rem;
  }

  .quote-rule {
    margin-top: 1.3rem;
  }

  /* Programme detail rows */
  .detail {
    grid-template-columns: 2.6rem 1fr;
    gap: 0.6rem 0.4rem;
    padding: 1.6rem 0;
  }

  .detail-num {
    font-size: 1.5rem;
  }

  .detail h3 {
    font-size: 1.6rem;
  }

  .detail-copy {
    grid-column: 2;
    gap: 0.7rem;
    font-size: 0.97rem;
  }

  /* CTA */
  .cta {
    gap: 1.4rem;
    padding: 2rem 1.4rem;
  }

  .cta h2 {
    font-size: 1.85rem;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }

  /* Contact */
  .form {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions .btn {
    width: 100%;
  }

  .contact-card {
    padding: 1.6rem 1.4rem;
    gap: 1.1rem;
  }

  /* Footer */
  .site-footer {
    padding-top: 2.75rem;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-bottom {
    margin-top: 2.25rem;
    flex-direction: column;
  }
}

/* ---------- Dark variants & anchors ---------- */

.dark .process p {
  color: rgba(255, 255, 255, 0.7);
}

.dark .process li::after {
  background: var(--line-dark);
}

#contact-form {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 640px) {
  .dark .process li {
    border-color: var(--line-dark);
  }
}

/* ---------- About page ---------- */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background: var(--black);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--white);
  background:
    radial-gradient(420px circle at 70% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    var(--black);
}

.portrait-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35);
}

.portrait-note {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

.about-copy h2 {
  margin-bottom: 1.5rem;
}

.about-body {
  display: grid;
  gap: 1.1rem;
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--muted);
}

.values {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dark .quote p em {
  color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 760px) {
  .about-intro {
    grid-template-columns: 1fr;
  }

  .portrait {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 640px) {
  .about-intro {
    gap: 1.5rem;
  }

  .about-body {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Motion & effects
   Everything here has a no-JS / reduced-motion fallback: content is always
   visible if scripts fail, and nothing moves for people who ask it not to.
   ========================================================================== */

@keyframes failsafe-show {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Scroll progress line under the navbar ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), var(--white));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.site-header.is-scrolled .scroll-progress {
  opacity: 1;
}

/* ---------- Words rising out of a mask ---------- */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.08em 0.14em;
  margin: 0 -0.08em -0.14em;
}

.wi {
  display: inline-block;
  will-change: transform;
}

.js [data-split] .wi {
  transform: translate3d(0, 108%, 0);
  transition: transform 0.85s cubic-bezier(0.2, 0.85, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 40ms);
}

.js [data-split].is-in .wi {
  transform: none;
}

/* keep headings hidden for the split, but never leave them invisible */
.js [data-split]:not(.is-split) {
  opacity: 0;
  animation: failsafe-show 0.01s 2.5s forwards;
}

/* ---------- Intro (home, once per visit) ---------- */

.intro {
  display: none;
}

.show-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--white);
  pointer-events: none;
  animation: intro-out 0.8s cubic-bezier(0.76, 0, 0.24, 1) 1.15s forwards;
}

.intro-inner {
  position: relative;
  display: grid;
  justify-items: start;
}

.intro-word {
  display: block;
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 1.05;
  padding-right: 0.1em;
}

.intro-word span {
  display: block;
  transform: translateY(105%);
  animation: intro-rise 0.7s cubic-bezier(0.2, 0.85, 0.2, 1) 0.05s forwards;
}

.intro-line {
  width: 100%;
  margin-top: -0.2rem;
  overflow: visible;
}

.intro-line path {
  fill: none;
  stroke: var(--grey);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards;
}

.intro-line path + path {
  animation-delay: 0.85s;
  animation-duration: 0.25s;
}

.intro-sub {
  margin-top: 0.6rem;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 0.5s ease 0.55s forwards;
}

@keyframes intro-rise {
  to {
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes intro-out {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

/* ---------- Hero: grain, spotlight, drawn line ---------- */

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero::after {
  background: radial-gradient(640px circle at var(--mx, 78%) var(--my, 30%), rgba(255, 255, 255, 0.075), transparent 62%);
  transition: background 0.2s;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .hero-line {
  position: absolute;
  z-index: 0;
  color: rgba(255, 255, 255, 0.16);
}

.js .hero-line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.js .hero-line path + path {
  transition-duration: 0.3s;
  transition-delay: 1.05s;
}

.js .hero.is-in .hero-line path {
  stroke-dashoffset: 0;
}

.hero-dot {
  fill: var(--white);
  opacity: 0;
  transition: opacity 0.5s 1.3s;
}

.hero.is-in .hero-dot {
  opacity: 0.9;
}

/* hero copy fades up in sequence after the headline */
.js .hero-anim {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.25s + var(--i, 0) * 0.09s);
  animation: failsafe-show 0.01s 3s forwards;
}

.js .hero.is-in .hero-anim {
  opacity: 1;
  transform: none;
}

.hero .eyebrow.hero-anim {
  transition-delay: 0s;
}

/* rotating circular badge */
.badge {
  position: absolute;
  right: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(3rem, 8vw, 6rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  color: var(--white);
  text-decoration: none;
}

.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}

.badge-ring text {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 2.3px;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.75);
}

.badge-core {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.5s var(--ease);
}

.badge-core svg {
  width: 1.2rem;
  height: 1.2rem;
}

.badge:hover .badge-core {
  background: var(--white);
  color: var(--black);
  transform: rotate(-45deg) scale(1.06);
}

.js .badge {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s var(--ease) 0.8s, transform 0.9s var(--ease) 0.8s;
  animation: failsafe-show 0.01s 3.2s forwards;
}

.js .hero.is-in .badge {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .badge {
    width: 7.5rem;
    height: 7.5rem;
    right: clamp(1rem, 3vw, 2rem);
  }

  .badge-core {
    width: 2.9rem;
    height: 2.9rem;
  }
}

@media (max-width: 960px) {
  .badge {
    display: none;
  }
}

@media (max-width: 350px) {
  .badge {
    display: none !important;
  }
}

/* phones: smaller wheel beside the bullet points (they stack into a column here) */
@media (max-width: 640px) {
  .badge {
    display: grid;
    width: 5.75rem;
    height: 5.75rem;
    right: var(--gutter);
    bottom: 3.1rem;
  }

  .badge-ring text {
    font-size: 9.6px;
    letter-spacing: 2.6px;
  }

  .badge-core {
    width: 2.3rem;
    height: 2.3rem;
  }

  .badge-core svg {
    width: 0.95rem;
    height: 0.95rem;
  }
}

/* ---------- Marquee band ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-group span {
  padding: 0 clamp(1rem, 2.4vw, 2rem);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.marquee-group span:nth-child(4n + 3) {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--black);
}

.marquee-group i {
  font-style: normal;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: var(--grey);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Text that lights up while scrolling ---------- */

.is-scrub .sw {
  opacity: 0.16;
  transition: opacity 0.3s ease;
}

.is-scrub .sw.lit {
  opacity: 1;
}

/* ---------- Card spotlight + drawn icons ---------- */

.area,
.person {
  isolation: isolate;
  overflow: hidden;
}

.area::before,
.person::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(17, 17, 17, 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.area--cta::before,
.person::before {
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, 0.11), transparent 55%);
}

.person {
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.area:hover::before,
.person:hover::before {
  opacity: 1;
}

.person:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.area-icon.draw > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

.area.is-visible .area-icon.draw > * {
  stroke-dashoffset: 0;
}

/* ---------- Process steps light up ---------- */

.process li::before {
  color: #c9c9c9;
  transition: color 0.5s var(--ease);
}

.process li.is-active::before {
  color: var(--black);
}

.process li::after {
  background:
    linear-gradient(var(--black), var(--black)) no-repeat left / 0% 100%,
    var(--line-strong);
  transition: background-size 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}

.process li.is-active::after {
  background-size: 100% 100%, auto;
}

.dark .process li::before {
  color: rgba(255, 255, 255, 0.25);
}

.dark .process li.is-active::before {
  color: var(--white);
}

.dark .process li::after {
  background:
    linear-gradient(var(--white), var(--white)) no-repeat left / 0% 100%,
    var(--line-dark);
}

.dark .process li.is-active::after {
  background-size: 100% 100%, auto;
}

/* ---------- Phones ---------- */



@media (max-width: 640px) {
  .marquee {
    padding: 1.1rem 0;
  }

  .marquee-track {
    animation-duration: 21s;
  }

  .process li:first-child {
    border-top-color: var(--line);
  }
}

/* ---------- Reduced motion: everything still, everything visible ---------- */

@media (prefers-reduced-motion: reduce) {
  .show-intro .intro {
    display: none;
  }

  .badge-ring,
  .marquee-track {
    animation: none;
  }

  .js .hero-anim,
  .js .badge {
    opacity: 1;
    transform: none;
  }

  .js .hero-line path {
    stroke-dashoffset: 0;
  }
}

/* notched iPhones: push hero content down by the status-bar height too */
@supports (padding: max(0px)) {
  .hero {
    padding-top: calc(clamp(7rem, 10.5vw, 8.75rem) + env(safe-area-inset-top, 0px));
  }

  @media (max-width: 640px) {
    .hero {
      padding-top: calc(6.75rem + env(safe-area-inset-top, 0px));
    }
  }
}
