/* Site styles, made with hoopFolio.
   1. Colours (the document's swatches)   2. Fonts   3. Base   4. Text styles (one per paragraph style)
   5. Layout   6. Navigation and buttons   7. Motion and section media   8. Phones */

/* 1. Colours */
:root {
  --c-midnight: #000b26;
  --c-deep-navy: #0b1e42;
  --c-hoopis-navy: #00366a;
  --c-hpn-cyan: #16c8ed;
  --c-hpn-gold: #ffc327;
  --c-steel: #97b1cf;
  --c-mist: #c9d6e6;
  --c-white: #ffffff;
  --c-text: #34485f;
  --c-tint: #f2f5f9;
  --c-panel: #0a1d45;
  --page: 1440px;   /* the design width */
  --bleed: 0px;
  --pad-phone: 20px;
}

/* 2. Fonts (bundled with the site; swap to woff2 for the smallest files) */
@font-face { font-family: 'Roboto Mono'; src: url("/fonts/RobotoMono-400i.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url("/fonts/RobotoMono-700i.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url("/fonts/RobotoMono-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Mono'; src: url("/fonts/RobotoMono-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Display'; src: url("/fonts/WixMadeforDisplay-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Display'; src: url("/fonts/WixMadeforDisplay-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Display ExtraBold'; src: url("/fonts/WixMadeforDisplayExtraBold-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Text'; src: url("/fonts/WixMadeforText-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Text'; src: url("/fonts/WixMadeforText-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Wix Madefor Text'; src: url("/fonts/WixMadeforText-400i.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif; }
img, svg { display: block; max-width: 100%; }
.layers > *, .col > * { max-width: 100%; }
a { color: inherit; }
[class$="__link"] { text-decoration: none; }  /* a whole frame that is a link (a card, a picture, a line of text) */
[class$="__link"]:hover { text-decoration: underline; }
:is(h1, h2, h3, h4, h5, h6) a { text-decoration: none; }
:is(h1, h2, h3, h4, h5, h6) a:hover { text-decoration: underline; }
hr { border: 0; margin: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4. Text styles */
/* Body */
.t-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0px 0 0px;
}

/* Kicker */
.t-kicker {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.429;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-hpn-gold);
  margin: 0px 0 0px;
}

/* Label */
.t-label {
  font-family: 'Roboto Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6F8BB0;
  margin: 0px 0 0px;
}

/* Hero title */
.t-hero-title {
  font-family: 'Wix Madefor Display ExtraBold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(53.8px, 6.667000000000001vw, 96px);
  line-height: 1.042;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin: 0px 0 0px;
}

/* Title */
.t-title {
  font-family: 'Wix Madefor Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(24.6px, 3.056vw, 44px);
  line-height: 1.182;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--c-deep-navy);
  margin: 0px 0 0px;
}

/* Lead */
.t-lead {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--c-mist);
  margin: 0px 0 0px;
}

/* Heading */
.t-heading {
  font-family: 'Wix Madefor Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--c-deep-navy);
  margin: 0px 0 0px;
}

/* Text */
.t-text {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.588;
  font-weight: 400;
  color: var(--c-text);
  margin: 0px 0 0px;
}

/* Small */
.t-small {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--c-steel);
  margin: 0px 0 0px;
}

/* Big number */
.t-big-number {
  font-family: 'Wix Madefor Display ExtraBold', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(35.8px, 4.444vw, 64px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--c-hpn-cyan);
  margin: 0px 0 0px;
}

/* Button */
.t-button {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.294;
  font-weight: 700;
  color: var(--c-midnight);
  text-align: center;
  margin: 0px 0 0px;
}

/* Button light */
.t-button-light {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.294;
  font-weight: 700;
  color: var(--c-white);
  text-align: center;
  margin: 0px 0 0px;
}

/* Button ink */
.t-button-ink {
  font-family: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.294;
  font-weight: 700;
  color: var(--c-deep-navy);
  text-align: center;
  margin: 0px 0 0px;
}

/* Name */
.t-name {
  font-family: 'Wix Madefor Display', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(20px, 2.222vw, 32px);
  line-height: 1.188;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin: 0px 0 0px;
}

/* 5. Layout: a section is full width; its rows are at most the design width, centred */
.section { position: relative; display: flow-root; overflow-x: clip; }  /* frames that run past the page edge are cut there, as in folio */
.row { display: grid; align-items: start; max-width: var(--page); margin-inline: auto; }
.row > * { grid-row: 1; min-width: 0; }
.col { min-width: 0; }               /* a column of frames inside a row */
.layers { min-width: 0; grid-template-columns: minmax(0, 1fr); }  /* frames that sit on top of each other */
.embed > iframe, .embed > video { width: 100%; height: 100%; border: 0; }
.video-lite { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-lite img { width: 100%; height: 100%; object-fit: cover; }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.6); }
.video-play::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.video-lite:hover .video-play { background: #e00; }
.search-form { display: flex; align-items: center; height: 100%; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 14px; font: inherit; font-size: 15px; }
.search-form button { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; cursor: pointer; }
.search-form button svg { width: 16px; height: 16px; }
.form { display: grid; gap: 12px; }
.form .hp { position: absolute; left: -9999px; }  /* the spam trap: people never see it */
.form label { display: grid; gap: 4px; font-size: 14px; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #c7c7c7; border-radius: 6px; }
.form button { justify-self: start; font: inherit; font-weight: 700; padding: 10px 22px; border: 0; border-radius: 22px; background: #ff8300; color: #fff; cursor: pointer; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th, .table-wrap td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
.table-wrap table.word { table-layout: fixed; }
.table-wrap table.word th, .table-wrap table.word td { font-weight: inherit; border-bottom: none; }
.table-wrap table.word p { margin: 0; }

/* 6. Navigation and buttons */
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }  /* the dropdown arrow */
.nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; gap: 0; padding: 8px 0; background: var(--nav-sub-bg, #fff); box-shadow: 0 6px 24px rgba(0,0,0,.15); z-index: 20; }
.nav .sub a { display: block; padding: 8px 16px; color: var(--nav-sub-color, #1a1c1e); }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; }
.nav-toggle { display: none; }
.btn { cursor: pointer; transition: filter .15s; }
.form-sent { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; padding: 14px 22px; border-radius: 10px; background: #1a1c1e; color: #fff; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.btn:hover { filter: brightness(1.08); }

/* 7. Motion and section media (set in folio: On the web > Motion, Section > As it scrolls). site.js adds .in when a
      frame comes into view; people who ask their device for less motion see everything in place at once. */
body { transition: background-color .9s ease; }
.section[data-bg] { background: transparent; }
.section.sticky { position: sticky; top: 0; z-index: 50; }
.section.full { min-height: 100svh; }
.section.cut { overflow: clip; }
.section.has-media > .row { position: relative; z-index: 1; }
.section-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.section-media video { width: 100%; height: 100%; object-fit: cover; }
.section-media .veil { position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-in] { opacity: 0; transition: opacity 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
  .js [data-in="rise"] { transform: translateY(28px); }
  .js [data-in="zoom"] { transform: scale(1.035); }
  .js [data-in="draw"] { opacity: 1; transform: scaleX(0); transform-origin: left center; }
  .js svg[data-in="draw"] { transform: none; }
  .js svg[data-in="draw"] :is(path, line) { transition: stroke-dashoffset 1.6s cubic-bezier(.3,.6,.2,1) var(--d, 0ms); }
  .js [data-in="letters"], .js [data-in="count"] { opacity: 1; transform: none; }
  .js [data-in="letters"] .wd { display: inline-block; white-space: nowrap; }
  .js [data-in="letters"] .ch { display: inline-block; opacity: 0; transform: translateY(.22em); transition: opacity .9s ease calc(var(--d, 0ms) + var(--i) * 55ms), transform 1s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0ms) + var(--i) * 55ms); }
  .js [data-in].in { opacity: 1; transform: none; }
  .js [data-in="letters"].in .ch { opacity: 1; transform: none; }
  [data-parallax] { will-change: transform; }
}

/* 8. Phones: rows stack, frames take the full width */
@media (max-width: 760px) {
  .section { min-height: 0 !important; padding: 32px 0; }
  .row { display: flex; flex-direction: column; gap: 14px; padding-inline: var(--pad-phone); margin-top: 16px !important; }
  .row > * { margin-top: 0 !important; width: 100% !important; max-width: 100%; justify-self: auto; }
  .col { display: flex; flex-direction: column; gap: 14px; }
  .col > * { margin: 0 !important; width: 100% !important; }
  .col .row { padding-inline: 0; }
  .row > img, .row > a > img { height: auto; }
  .btn { align-self: flex-start; width: auto !important; padding-inline: 20px; }
  .nav-toggle { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid currentColor; border-radius: 20px; background: none; color: inherit; font: inherit; }
  .nav { flex-wrap: wrap; justify-content: flex-start !important; min-height: 0 !important; order: 99999; }
  .card { min-height: 0 !important; }
  .col.card { padding: 24px !important; }  /* a card keeps room around its text on a phone (its desktop margins are gone) */
  .nav ul { width: 100%; display: none; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0; }
  .nav.open ul { display: flex; }
  .nav .sub { position: static; display: flex; box-shadow: none; padding: 4px 0 0 12px; background: none; }
  .nav .sub a { color: inherit; padding: 4px 0; }
  .section.full { min-height: 100svh !important; }
  .row [class*="__text"] { columns: auto !important; }  /* text set in columns reads as one column on a phone */
  /* the site header stays one slim line: name or logo on the left, Menu on the right, the menu opening below */
  header.section { padding: 10px 0 !important; }
  header.section .row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 0 !important; }
  header.section .row > * { width: auto !important; }
  header.section .row > .nav { width: auto !important; order: 99999; }
  header.section .row > .nav.open { width: 100% !important; }
}
