/* Blue Nile Consulting — landing page. Colours and type follow the BNC design system tokens. */
:root {
  --navy: #000f46;
  --deep-navy: #061a35;
  --slate-navy: #1c2b3a;
  --steel-blue: #2a4a65;
  --corporate-blue: #01468b;
  --periwinkle-muted: #abbde3;
  --periwinkle: #d3dcff;
  --sky: #a2d8e7;
  --pale-blue: #ddeaf8;
  --pale-blue-2: #e9effe;
  --off-white: #f9fbfc;
  --white: #ffffff;
  --gray: #595959;
  --alert: #ec0024;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Montserrat, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --gutter: 20px;
  --section-space: clamp(64px, 9vw, 128px);
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate-navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--corporate-blue);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--corporate-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.hero :focus-visible,
.header :focus-visible,
.footer :focus-visible,
.consent :focus-visible {
  outline-color: var(--periwinkle);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  transform: translateY(-200%);
}

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

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

/* Type */
h1,
h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
}

h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.label {
  margin-bottom: 16px;
  color: var(--steel-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button--large {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 15px;
}

.button--primary {
  background: var(--navy);
  color: var(--white);
}

.button--primary:hover {
  background: var(--corporate-blue);
}

.button--on-dark {
  border-color: var(--periwinkle);
  background: var(--periwinkle);
  color: var(--navy);
}

.button--on-dark:hover {
  border-color: var(--white);
  background: var(--white);
}

.button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

/* Header */
.header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  background: transparent;
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.header.is-solid {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(211, 220, 255, 0.18);
}

.header__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2 * var(--gutter), 1200px);
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  color: var(--periwinkle);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: auto;
}

.brand__name span {
  display: block;
}

.header__nav {
  display: none;
}

.header__nav a,
.footer__nav a,
.footer__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header__nav a:hover,
.footer__nav a:hover,
.footer__bottom a:hover {
  text-decoration: underline;
}

.header__cta {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}

/* Phones and small tablets: once the page scrolls, the logo and button give way to the menu. */
@media (max-width: 859px) {
  .header__cta {
    display: none;
  }

  .header--menu.is-solid .brand {
    display: none;
  }

  .header--menu.is-solid .header__nav {
    display: flex;
    flex: 1;
    gap: 8px;
    justify-content: space-between;
  }

  .header--menu.is-solid .header__inner {
    min-height: 52px;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-height) + 48px) 0 clamp(88px, 16vh, 168px);
  overflow: hidden;
  background: var(--deep-navy);
}

/* The waves fade into the navy of the sections below. */
.hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(200px, 34vh, 380px);
  background: linear-gradient(
    180deg,
    rgba(6, 26, 53, 0) 0%,
    rgba(6, 26, 53, 0.22) 30%,
    rgba(6, 26, 53, 0.62) 62%,
    rgba(6, 26, 53, 0.9) 86%,
    var(--deep-navy) 100%
  );
  content: "";
  pointer-events: none;
}

.hero__video,
.hero__wash,
.hero__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -4;
  object-fit: cover;
}

.hero__wash {
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(0, 8, 25, 0.5) 0%, rgba(0, 13, 45, 0.5) 45%, rgba(0, 8, 29, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 8, 25, 0.6) 0%, rgba(0, 13, 45, 0.4) 100%);
}

.hero__grain {
  z-index: -2;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(42px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: 0.1em;
  color: var(--periwinkle);
  font-weight: 400;
}

.hero__lead {
  max-width: 48ch;
  margin: 28px 0 32px;
  color: var(--white);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.flow {
  background:
    radial-gradient(circle at 50% 30%, rgba(125, 153, 255, 0.2), transparent 38%),
    linear-gradient(170deg, var(--deep-navy) 0%, var(--navy) 55%, #0b2350 100%);
}

.flow .section--dark {
  background: transparent;
}

.flow .section--dark + .section--dark {
  padding-top: 0;
}

@media (min-width: 860px) {
  .hero__wash {
    background:
      linear-gradient(90deg, rgba(0, 8, 25, 0.92) 0%, rgba(0, 13, 45, 0.68) 48%, rgba(0, 15, 70, 0.28) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, transparent 35%, rgba(0, 8, 29, 0.7) 100%);
  }
}

/* Sections */
.section {
  padding: var(--section-space) 0;
}

/* Light sections are set tighter than the navy ones. */
.section:not(.section--dark) {
  padding-block: clamp(44px, 5vw, 72px);
}

.section:not(.section--dark) .section__head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section--tint {
  background: var(--off-white);
}

.section--card {
  background: var(--pale-blue-2);
}

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

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--dark .label {
  color: var(--periwinkle);
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head .lead {
  margin-top: 20px;
}

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
}

.split__lead .lead {
  margin-top: 20px;
}

.split__body .lead + .lead {
  margin-top: 16px;
}

/* Problem */
.points {
  display: grid;
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--periwinkle-muted);
}

.points p {
  margin-top: 6px;
}

/* Journey: a vertical line on small screens, horizontal from 860px. */
.journey {
  position: relative;
  display: grid;
  gap: 40px;
}

.journey::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 1px;
  background: var(--periwinkle-muted);
  content: "";
}

.journey__step {
  position: relative;
  padding-left: 40px;
}

.journey__node {
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--periwinkle);
  border-radius: 50%;
  background: var(--navy);
}

.journey__stage {
  color: var(--periwinkle);
  font-size: 14px;
  font-weight: 600;
}

.journey__step h3 {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.journey__scope {
  margin-top: 16px;
  color: var(--periwinkle);
  font-size: 14px;
  font-weight: 600;
}

/* Cards: flat, ruled, no shadow. */
.cards {
  display: grid;
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--pale-blue);
  border-radius: var(--radius);
  background: var(--white);
}

.card--fill {
  background: var(--pale-blue-2);
}

.card h3 + p {
  margin-top: 10px;
}

/* Mandate cards */
.mandate__client {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pale-blue);
}

.mandate__logo {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
}

.mandate {
  padding: 20px;
}

.mandate__sector {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.mandate__meta {
  margin-top: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.mandate__summary {
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pale-blue-2);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.pill--status {
  background: var(--navy);
  color: var(--white);
}

/* Outcomes */
.outcomes li {
  padding-top: 20px;
  border-top: 1px solid var(--periwinkle-muted);
}

.outcomes h3 + p {
  margin-top: 8px;
}

.stats {
  display: grid;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 64px);
}

.stat {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--pale-blue);
  border-radius: var(--radius);
  background: var(--pale-blue-2);
}

.stat__figure {
  margin-bottom: 8px;
  color: var(--steel-blue);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.stat a {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.section--dark .stat {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

/* About without a profile: mission and vision side by side on wider screens. */
.about.about--statements {
  display: block;
}

@media (min-width: 860px) {
  .about--statements .statements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

.section--dark .stat__figure,
.section--dark .stat a {
  color: var(--periwinkle);
}

.founder p + p {
  margin-top: 12px;
}

/* About */
.about {
  display: grid;
  gap: 40px;
}

.founder {
  display: grid;
  gap: 24px;
  align-content: start;
}

.founder__photo {
  width: 160px;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
}

.founder__photo--placeholder {
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--steel-blue);
  background: var(--pale-blue-2);
  color: var(--steel-blue);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.founder h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}

.founder__role {
  margin: 2px 0 14px;
  color: var(--steel-blue);
  font-weight: 600;
}

.statements {
  display: grid;
  gap: 24px;
  align-content: start;
}

.statements > div {
  padding-top: 20px;
  border-top: 1px solid var(--periwinkle-muted);
}

.statements dt {
  margin-bottom: 6px;
  color: var(--steel-blue);
  font-size: 14px;
  font-weight: 700;
}

/* Insights */
.insight__source {
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
}

.insight h3 {
  margin: 8px 0 24px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}

.insight__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

span.insight__link {
  color: var(--gray);
}

/* Contact */
.contact {
  display: grid;
  gap: 32px;
}

.contact .lead {
  max-width: 52ch;
  margin-top: 20px;
}

.contact__action {
  display: grid;
  gap: 16px;
  justify-items: start;
  align-content: center;
}

.contact__direct {
  margin-top: 20px;
}

.contact__direct a {
  font-weight: 600;
}

.form {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--pale-blue);
  border-radius: var(--radius);
  background: var(--white);
}

.form__note {
  margin-bottom: 20px;
  color: var(--gray);
  font-size: 14px;
}

.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form__grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-blue);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-navy);
  font: inherit;
  font-size: 16px;
}

.field input {
  min-height: 48px;
}

.field textarea {
  min-height: 132px;
  line-height: 1.5;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--alert);
  border-width: 2px;
}

.field__error,
.form__status .is-error {
  padding-left: 10px;
  border-left: 3px solid var(--alert);
  color: var(--slate-navy);
  font-size: 14px;
  font-weight: 600;
}

.form__footer {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form__privacy {
  color: var(--gray);
  font-size: 14px;
}

.form__status:not(:empty) {
  margin-top: 20px;
}

.form__status .is-success {
  padding: 16px;
  border-radius: 8px;
  background: var(--pale-blue-2);
  color: var(--navy);
  font-weight: 600;
}

[data-draft] {
  color: var(--steel-blue);
}

/* Footer */
.footer {
  padding: 56px 0 24px;
  background: var(--navy);
  color: var(--white);
}

.footer__inner {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}

.footer__licence {
  max-width: 46ch;
  margin-top: 16px;
  color: var(--periwinkle);
  font-size: 14px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  align-content: start;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(211, 220, 255, 0.24);
  color: var(--periwinkle);
  font-size: 13px;
}

/* Cookie notice */
.consent {
  position: fixed;
  z-index: 60;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 560px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--periwinkle-muted);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
}

.consent[hidden] {
  display: none;
}

.consent a {
  color: var(--periwinkle);
}

/* Privacy page */
.prose {
  max-width: 720px;
  padding-top: calc(var(--header-height) + 56px);
}

.prose h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 26px;
}

.prose p + p,
.prose ul {
  margin-top: 12px;
}

.prose ul {
  padding-left: 20px;
  list-style: disc;
}

/* Wider screens */
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .brand {
    font-size: 18px;
  }

  .brand__name span {
    display: inline;
  }

  .header__cta {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
  }

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

  .cards--three,
  .cards--four,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .form__footer {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .consent {
    left: auto;
  }
}

@media (min-width: 860px) {
  :root {
    --header-height: 76px;
  }

  .header__nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
  }

  .header__nav-contact {
    display: none !important;
  }

  .split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .cards--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .journey::before {
    top: 7px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .journey__step {
    padding: 40px 0 0;
  }

  .journey__node {
    top: 0;
  }

  .contact {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }

  .about {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 72px;
  }

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
