/* ------------------------------------------------------------------
   Future Factory London – site styles
   Brand tokens come from the InDesign brief (FFLDN Website V2).
   Headline face: Acumin Pro Condensed in the brief. Roboto Condensed
   stands in until an Adobe Fonts kit is available; swap --font-head.
   ------------------------------------------------------------------ */

:root {
  --navy: #003866;
  --navy-deep: #0b2340;
  --navy-light: #0f5288;
  --orange: #f39325;
  --cream: #fef3e6;
  --cream-bg: #fef6ec;
  --blue-tint: #e8eef3;
  --ink: #1d2a36;
  --ink-soft: #2b3a48;
  --rule: #e3e9ef;
  --white: #ffffff;

  --font-head: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --radius: 18px;
  --tile: 164px;
  --header-h: 96px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--orange); }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { top: 8px; color: #fff; }

main:focus { outline: none; }

/* Typography ------------------------------------------------------- */

.h, h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0;
}
.h b, h1 b, h2 b, h3 b { font-weight: 700; }

.h--xl { font-size: clamp(34px, 4.2vw, 48px); }
.h--lg { font-size: clamp(28px, 3vw, 34px); }
.h--md { font-size: clamp(24px, 2.4vw, 30px); }
.h--sm { font-size: clamp(20px, 1.9vw, 24px); }
.h--label { font-size: 18px; color: var(--orange); }

.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-white { color: #fff; }

.lede { font-size: 17px; line-height: 1.55; }
.copy { font-size: 15px; line-height: 1.8; color: var(--ink-soft); }
.copy--sm { font-size: 14px; }

.rule { width: 72px; height: 3px; background: var(--orange); border: 0; margin: 0; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--navy-light), var(--navy-deep));
  color: #fff;
  font: 500 17px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 56, 102, .28);
  transition: filter .2s ease, transform .2s ease;
}
.btn:hover { color: #fff; filter: brightness(1.12); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

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

.site-header { background: #fff; position: relative; z-index: 100; }

.site-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 22px;
}

.logo img { height: var(--header-h); width: auto; }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
}
.nav__list a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
  padding: 4px 0;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--orange); }
.nav__list li + li::before {
  content: "|";
  color: var(--orange);
  font-weight: 700;
  margin: 0 14px;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 60;
}
.burger:hover { background: var(--blue-tint); }
.burger:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.burger__icon--close { display: none; }
.burger[aria-expanded="true"] .burger__icon--open { display: none; }
.burger[aria-expanded="true"] .burger__icon--close { display: block; }

.backdrop { display: none; }

.header-rule { height: 3px; background: var(--navy); }
.page-contact .header-rule { height: 10px; background: linear-gradient(100deg, var(--navy-light), var(--navy) 60%, var(--navy-deep)); }

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

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(105deg, var(--navy-light) 0%, var(--navy) 42%, var(--navy-deep) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 56%, rgba(0, 0, 0, .16) 56%, rgba(0, 0, 0, .16) 74%, transparent 74%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: -10%;
  width: 26%;
  aspect-ratio: 0.73;
  background: url("../assets/img/mark.svg") no-repeat center / contain;
  opacity: .06;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero--centered { text-align: center; padding: 48px 0 56px; }
.hero--centered .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 960px;
}
.hero--centered .lede { max-width: 760px; }
.hero--centered .strap { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 17px; }

.hero--split { padding: 56px 0 64px; }
.hero--split .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.hero--split .hero__media {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 24px 60px rgba(0, 0, 0, .45);
  justify-self: end;
}
.hero--split .hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero--split .hero__text .copy { color: #fff; font-size: 16px; line-height: 1.6; max-width: 520px; }

.hero--photo .container {
  max-width: 1280px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
}
.hero--photo .hero__photo {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 98%);
  mask-image: linear-gradient(to right, #000 50%, transparent 98%);
}
.hero--photo .hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 56px var(--gutter) 56px 0;
}
.hero--photo .hero__text .lede { max-width: 560px; }

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

.section { padding: 64px 0 56px; }
.section--tight { padding-top: 48px; }
.section--cream { background: var(--cream-bg); }
.section--tint { background: var(--blue-tint); }
.section__intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section__cta { display: flex; justify-content: center; margin-top: 40px; }

.tile { width: var(--tile); height: var(--tile); flex: none; }

/* Home pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 48px;
}
.pillar { display: flex; flex-direction: column; gap: 18px; }

/* Partnering band */
.band { text-align: center; padding: 48px 0 56px; }
.band .container { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.band__title { font-weight: 700; font-size: 15px; }
.band__list { font-size: 15px; color: var(--ink-soft); }

/* How we work: stages */
.stages { display: flex; flex-direction: column; gap: 64px; }
.stage {
  display: grid;
  grid-template-columns: var(--tile) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.stage__body { display: flex; flex-direction: column; gap: 18px; }
.output {
  background: linear-gradient(100deg, var(--navy-light), var(--navy-deep));
  color: #fff;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 14px;
  line-height: 1.5;
}
.output b {
  text-transform: uppercase;
  display: block;
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 2px;
}

/* How we work: AI approach */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 40px;
}
.ai-card { display: flex; flex-direction: column; gap: 14px; }

/* How we work: engage timeline */
.engage {
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
  position: relative;
}
.engage::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  border-left: 2px dashed var(--navy);
}
.engage li { position: relative; margin: 0 0 28px; }
.engage li:last-child { margin-bottom: 0; }
.engage li::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--navy);
}
.engage p { margin-top: 6px; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.about__text { display: flex; flex-direction: column; gap: 22px; }
.about__text p { margin: 0; }
.about__imgs { display: flex; flex-direction: column; gap: 28px; }
.about__imgs img { width: 100%; max-width: 340px; object-fit: cover; border-radius: var(--radius); }
.about__imgs img:first-child { aspect-ratio: 1 / 1; }
.about__imgs img:last-child { aspect-ratio: 3 / 4; }

/* Speaking */
.talks { display: flex; flex-direction: column; gap: 48px; max-width: 1100px; margin: 0 auto; }
.talk {
  display: grid;
  grid-template-columns: var(--tile) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.talk__body { display: flex; flex-direction: column; gap: 14px; }

/* Breakfast club */
.club {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.club__img { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.club__text { display: flex; flex-direction: column; gap: 20px; }
.club__text p { margin: 0; }

/* Contact */
.contact-intro { text-align: center; padding: 64px 0 0; }
.contact-intro .container { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 900px; }
.contact-intro .lede { max-width: 760px; color: var(--ink-soft); }

.contact-form {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0 44px;
  align-items: start;
}
.contact-form__fields { display: flex; flex-direction: column; gap: 18px; }
.contact-form__rule { background: var(--orange); align-self: stretch; margin-top: 30px; }
.contact-form__details { padding-top: 50px; }
.contact-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 36px;
}
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin: 0 0 6px 8px; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--cream);
  padding: 15px 18px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  display: block;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { outline: 2px solid #c0392b; }
.field__error { display: none; font-size: 13px; color: #c0392b; margin: 6px 0 0 8px; }
.field__error.is-visible { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; text-align: center; min-height: 1.5em; margin: 0; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: var(--navy); font-weight: 600; }

.contact-details { font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 14px; }
.contact-details a { text-decoration: none; }
.contact-details__linkedin { display: flex; align-items: center; gap: 10px; }
.contact-details__linkedin a { display: inline-flex; }
.contact-details__linkedin svg { width: 26px; height: 26px; }

/* Policy pages */
.policy { max-width: 820px; margin: 0 auto; padding: 56px 0 72px; }
.policy header { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.policy h2 { font-size: 24px; color: var(--navy); margin: 36px 0 12px; }
.policy .copy { font-size: 16px; }
.policy .placeholder {
  background: var(--cream);
  border-left: 4px solid var(--orange);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

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

.site-footer { background: var(--orange); color: #fff; padding: 48px 0 28px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 0;
  align-items: flex-start;
  max-width: 1000px;
}
.site-footer__brand { flex: 1 1 180px; padding-right: 24px; }
.site-footer__brand img { height: 72px; width: auto; }
.site-footer__col {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, .55);
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.9;
}
.site-footer__col.contact-details { flex-basis: 240px; gap: 0; }
.site-footer__col.contact-details .contact-details__linkedin svg { width: 20px; height: 20px; }
.site-footer__legal { margin-top: 36px; text-align: center; font-size: 11px; }

/* Responsive -------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav__list a { font-size: 15px; }
  .nav__list li + li::before { margin: 0 10px; }
  .logo img { height: 80px; }
}

@media (max-width: 900px) {
  :root { --tile: 140px; }

  .site-header__inner { align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 14px; }
  .logo img { height: 64px; }

  .burger { display: inline-flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 84vw);
    padding: 96px 28px 32px;
    background: #fff;
    box-shadow: -16px 0 48px rgba(0, 20, 40, .28);
    transform: translateX(105%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    z-index: 50;
    overflow-y: auto;
    visibility: hidden;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-top: 1px solid var(--rule); }
  .nav__list li + li::before { content: none; }
  .nav__list a {
    display: block;
    padding: 18px 4px;
    border-bottom: 1px solid var(--rule);
    font-size: 20px;
    white-space: normal;
  }

  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 40, .45);
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s ease;
    z-index: 40;
    cursor: pointer;
  }
  .backdrop.is-open { opacity: 1; pointer-events: auto; }

  .hero--split .container { grid-template-columns: 1fr; gap: 32px; }
  .hero--split .hero__media { justify-self: center; }
  .hero--split .hero__text { align-items: center; text-align: center; }

  .hero--photo .container { grid-template-columns: 1fr; }
  .hero--photo .hero__photo {
    max-height: 320px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero--photo .hero__text { padding: 0 var(--gutter) 48px; align-items: center; text-align: center; }

  .pillar, .ai-card, .stage__body, .talk__body { align-items: center; text-align: center; }
  .stage, .talk { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .section__intro { text-align: center; align-items: center; }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__imgs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .about__imgs img { flex: 1 1 200px; }

  .club { grid-template-columns: 1fr; }
  .club__img { margin: 0 auto; }

  .contact-form { grid-template-columns: 1fr; gap: 32px 0; }
  .contact-form__rule { display: none; }
  .contact-form__details { padding-top: 0; align-items: center; text-align: center; }

  .site-footer__grid { flex-direction: column; align-items: center; gap: 0; }
  .site-footer__brand { flex: none; width: 100%; display: flex; justify-content: center; padding-right: 0; }
  .site-footer__col { flex: none; width: 100%; border-left: 0; padding-left: 0; align-items: center; text-align: center; }
  .site-footer__col::before {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    margin: 28px auto;
    background: rgba(255, 255, 255, .55);
  }
  .site-footer__col.contact-details > div { justify-content: center; }
}


/* Finesse: motion and hover feedback ------------------------------- */

.tile { transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
.pillar:hover .tile, .stage:hover .tile, .ai-card:hover .tile, .talk:hover .tile {
  transform: translateY(-4px);
  filter: drop-shadow(0 12px 18px rgba(243, 147, 37, .28));
}

.nav__list a { position: relative; transition: color .2s ease; }
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-footer a { text-underline-offset: 3px; transition: text-underline-offset .2s ease, opacity .2s ease; }
.site-footer a:hover { text-underline-offset: 5px; }

.field input, .field textarea { transition: box-shadow .2s ease, background-color .2s ease; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(243, 147, 37, .18); background: #fff8f0; }

.hero__media, .about__imgs img, .club__img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.about__imgs img:hover, .club__img:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0, 56, 102, .18); }

/* Scroll reveal: only when JS is running, so content is never hidden without it */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ff-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes ff-settle { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
  .hero__text > * { animation: ff-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > *:nth-child(2) { animation-delay: .12s; }
  .hero__text > *:nth-child(3) { animation-delay: .24s; }
  .hero--split .hero__media, .hero--photo .hero__photo { animation: ff-settle .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero--centered .container > * { animation: ff-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero--centered .container > *:nth-child(2) { animation-delay: .1s; }
  .hero--centered .container > *:nth-child(3) { animation-delay: .2s; }
  .hero--centered .container > *:nth-child(4) { animation-delay: .3s; }
  .hero--centered .container > *:nth-child(5) { animation-delay: .4s; }
}

@media (max-width: 900px) {
  .nav__list a::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .backdrop, .btn, .tile, .reveal, .nav__list a::after { transition: none; }
  html.js .reveal { opacity: 1; transform: none; }
}
