/* ===================================================================
   AIIZATION BOARD
   Built against STYLEGUIDE.md. Inter self hosted, nothing external.

   The structural idea is the wordmark's own geometry. In the mark, BOARD
   steps down and starts under the O of AIIZATION, held by a shared axis.
   That axis is repeated here as --axis: the second line of the hero
   headline indents to it, and every section's content begins on it. One
   idea, used consistently, carried by alignment rather than by a marker.

   Colour proportion, per the styleguide:
     Dark Grey  #1F2933  body, 70 to 80 percent
     Board Blue #0F1E3A  headings, the dark bands, the footer
     Board Red  #8A2444  twice on the page, both times a short rule
     Light Grey #F4F6F8  the alternating contrast bands
   =================================================================== */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue:  #0F1E3A;
  --ink:   #1F2933;
  --red:   #8A2444;
  --grey:  #F4F6F8;
  --rule:  #DDE2E8;
  --muted: rgba(31, 41, 51, 0.60);

  --on-dark:       rgba(255, 255, 255, 0.82);
  --on-dark-quiet: rgba(255, 255, 255, 0.55);
  --on-dark-rule:  rgba(255, 255, 255, 0.16);

  --font: 'Inter', Calibri, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* The shared axis. Taken from the mark, softened for a page: deep enough
     to read as deliberate, shallow enough to keep a sane measure. */
  --axis: 30%;

  --measure: 34rem;
  --page:    74rem;
  --gap:     clamp(5.5rem, 12vw, 10rem);
}

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

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

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- type ---------- */

h1, h2, h3 { color: var(--blue); margin: 0; text-wrap: balance; }

h1 {
  font-weight: 500;                       /* Medium, not Bold */
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
}

h3 { font-weight: 600; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.005em; }

p { margin: 0 0 1.35rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--blue); }
a { color: inherit; }

/* ---------- layout and the axis ---------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

section { padding: var(--gap) 0; }

.band-grey { background: var(--grey); }

/* The one dark statement band in the middle of the page. */
.band-dark { background: var(--blue); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #FFFFFF; }

/* Every section sits on the axis. The left column stays empty. */
.axis { display: grid; grid-template-columns: 1fr; }

@media (min-width: 52rem) {
  .axis { grid-template-columns: var(--axis) 1fr; gap: 0; }
}

/* The left column is deliberately empty. The axis reads through the
   alignment itself rather than through a marker. */
.axis__marker { display: none; }
.axis__body   { min-width: 0; }

@media (min-width: 52rem) { .axis__marker { display: block; } }


/* The two permitted instances of Board Red. Both short rules, which is
   the use the styleguide sanctions. Do not add a third. */
.rule-red { width: 3.5rem; height: 2px; background: var(--red); border: 0; margin: 2.25rem 0 0; }

/* ---------- header ---------- */
/* Not sticky. It sits over the hero so the full bleed image is
   uninterrupted, and simply scrolls away. */

.site-header { background: #FFFFFF; border-bottom: 1px solid var(--rule); }

.site-header--over-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 6rem;
}

.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { width: 200px; }

@media (max-width: 26rem) {
  .site-header__logo img { width: 180px; }   /* the styleguide floor */
}

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

.nav a {
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: currentColor; }

.site-header--over-hero .nav a { color: var(--on-dark); }
.site-header--over-hero .nav a:hover,
.site-header--over-hero .nav a:focus-visible { color: #FFFFFF; }

.nav-toggle {
  display: block;
  background: none; border: 0;
  padding: 0.5rem; margin-right: -0.5rem;
  cursor: pointer;
  color: var(--blue);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.site-header--over-hero .nav-toggle { color: #FFFFFF; }

.nav-mobile {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding-top: 0.5rem; padding-bottom: 1.75rem;
  border-top: 1px solid var(--rule);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { font-size: 1rem; color: var(--ink); text-decoration: none; padding: 0.6rem 0; }

.site-header--over-hero .nav-mobile {
  background: var(--blue);
  border-top-color: var(--on-dark-rule);
  padding-left: clamp(1.5rem, 5vw, 3rem);
  padding-right: clamp(1.5rem, 5vw, 3rem);
  margin: 0 calc(-1 * clamp(1.5rem, 5vw, 3rem));
}
.site-header--over-hero .nav-mobile a { color: var(--on-dark); }

@media (min-width: 62rem) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- hero ---------- */
/* Full bleed, fills the viewport, type in the right half where the
   supplied scrim is deepest. No second overlay is added: the image is
   already graded. */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  background: var(--blue);
  overflow: hidden;
}

.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
}

/* The hero wrap is not capped at --page. The headline has to hold two lines
   at this size, and a capped container forces it to four. */
.hero .wrap { position: relative; z-index: 1; width: 100%; max-width: none; }

/* Type sits in the right half on wide screens, full width on narrow. */
.hero__text { max-width: 40rem; }

@media (min-width: 62rem) {
  .hero__text { margin-left: 38%; max-width: none; width: 62%; }
}

.hero h1 {
  color: #FFFFFF;
  font-size: clamp(2.3rem, 4.2vw, 4.6rem);
}

/* The mark's move: the second line steps down to the axis. */
.hero h1 .line2 { display: block; margin-left: var(--axis); }

.hero__lede {
  margin-top: 2.5rem;
  margin-left: var(--axis);
  max-width: 30rem;
  color: var(--on-dark);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero__link { margin-top: 2.75rem; margin-left: var(--axis); }


@media (max-width: 51.99rem) {
  .hero h1 .line2,
  .hero__lede,
  .hero__link { margin-left: 0; }
  .hero { min-height: 88svh; }
}

/* One CTA wording, used everywhere, quietly styled. */
.cta {
  display: inline-block;
  font-size: 1rem;
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.cta:hover, .cta:focus-visible { border-bottom-color: #FFFFFF; }

.cta--ink { color: var(--blue); border-bottom-color: var(--blue); }
.cta--ink:hover, .cta--ink:focus-visible { opacity: 0.6; }

/* ---------- person ---------- */

.person { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: start; margin-top: 3rem; }

@media (min-width: 46rem) {
  .person { grid-template-columns: 14rem 1fr; }
}

/* PLACEHOLDER PORTRAIT. Derived from a LinkedIn screenshot, so the source
   resolution is low. Replace assets/img/thomas.jpg with the original,
   square, at least 720px. No rule here needs changing. */
.person picture { display: contents; }

.person__portrait {
  width: 14rem; max-width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
  background: #FFFFFF;
}

.person__name { margin: 1.25rem 0 0.35rem; font-size: 1.25rem; font-weight: 600; color: var(--blue); line-height: 1.3; }
.person__role { font-size: 0.9375rem; color: var(--muted); margin: 0; max-width: none; }

/* Four points, set in type. */
.points { margin: 0; padding: 0; list-style: none; }
.points li { max-width: var(--measure); padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.points h3 { margin-bottom: 0.4rem; }
.points p { margin: 0; }


/* ---------- two fields, on the dark band ---------- */
/* The only cards on the page, because two things genuinely sit in
   parallel here. Identical treatment, outlined, no red. */

.fields { display: grid; gap: 1.5rem; margin-top: 3rem; }

@media (min-width: 46rem) { .fields { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.field {
  border: 1px solid var(--on-dark-rule);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.02);
}
.field h3 { margin-bottom: 0.75rem; }
.field p { margin: 0; max-width: none; color: var(--on-dark); }

/* ---------- contact ---------- */

.form { max-width: 30rem; margin-top: 2.75rem; }
.field-row { margin-bottom: 1.35rem; }

.field-row label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--blue); margin-bottom: 0.45rem;
}

/* The contact section sits on the Light Grey band, so the fields are white
   and carry a slightly stronger border than the site's hairline rule. On
   white they were effectively invisible. */
.field-row input, .field-row textarea {
  width: 100%; font-family: inherit; font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: #FFFFFF;
  border: 1px solid #C9D1DA; border-radius: 0;
  padding: 0.75rem 0.9rem; transition: border-color 0.2s ease;
}
.field-row input:focus, .field-row textarea:focus { outline: none; border-color: var(--blue); }
.field-row textarea { resize: vertical; min-height: 8rem; }

.req { color: var(--muted); font-weight: 400; }

.consent {
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin: 1.75rem 0; font-size: 0.875rem; line-height: 1.6; color: var(--muted);
}
.consent input { margin: 0.3rem 0 0; width: 0.95rem; height: 0.95rem; flex: 0 0 auto; accent-color: var(--blue); }
.consent a { color: var(--ink); }

.btn {
  font-family: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.03em;
  color: #FFFFFF; background: var(--blue); border: 1px solid var(--blue); border-radius: 0;
  padding: 0.8rem 1.75rem; cursor: pointer; transition: opacity 0.2s ease;
}
.btn:hover:not(:disabled), .btn:focus-visible { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-status {
  margin: 1.25rem 0 0; padding: 0.85rem 1rem;
  font-size: 0.875rem; line-height: 1.6;
  background: #FFFFFF; border-left: 2px solid var(--blue); max-width: none;
}
.form-status[hidden] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--blue); color: var(--on-dark-quiet);
  padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.875rem;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { width: 160px; }

.site-footer__row {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem;
  align-items: baseline; justify-content: space-between;
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--on-dark-rule);
}
.site-footer a { color: var(--on-dark-quiet); text-decoration: none; border-bottom: 1px solid transparent; }
.site-footer a:hover, .site-footer a:focus-visible { color: #FFFFFF; border-bottom-color: rgba(255,255,255,0.5); }
.site-footer__links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-footer p { margin: 0; max-width: none; }

/* ---------- legal pages ---------- */

.legal { padding: clamp(4rem, 9vw, 7rem) 0 var(--gap); }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.legal h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.01em; margin: 3rem 0 0.9rem; }
.legal p { max-width: none; }
.legal a { color: var(--ink); }

.legal__dateline {
  font-size: 0.8125rem; color: var(--muted);
  margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule);
}

.legal table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; margin: 1.25rem 0 1.75rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.7rem 0.85rem 0.7rem 0; border-bottom: 1px solid var(--rule); }
.legal th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.legal__foot { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }

/* ---------- the one motion ---------- */
/* A slow fade and rise as a section enters. Nothing else on the page
   moves: no parallax, no counters, no hover animation on the cards. */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* If scripting is unavailable, nothing may be left invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- accessibility ---------- */

.skip { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #FFFFFF; padding: 0.75rem 1.25rem; z-index: 50; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hero :focus-visible, .band-dark :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
