/* =========================================================
   GiftDevInnovation — "Blueprint" design system
   ========================================================= */

/* Fonts are loaded via <link> in partials/head.php */

:root {
  --ink: #0E2A47;
  --ink-deep: #081A2C;
  --line: #3A6EA5;
  --line-soft: rgba(58, 110, 165, 0.35);
  --amber: #FF8A3D;
  --amber-2: #FFB577;
  --paper: #F5F7FA;
  --paper-2: #E7ECF1;
  --graphite: #16222E;
  --mist: #A9BCCF;
  --mist-2: #5B7086;
  --success: #4FD1A5;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 2px;
  --dur: .5s;
  --ease: cubic-bezier(.22, .68, 0, 1.01);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 .5em;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
  color: var(--mist-2);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--amber);
}

/* ---------- Blueprint grid backdrop ---------- */
.grid-bg {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
}

.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 138, 61, .10), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(58, 110, 165, .25), transparent 50%);
  pointer-events: none;
}

.grid-bg-light {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(58, 110, 165, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 110, 165, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Corner-bracket component ----------
   Blueprint annotation mark used on cards/frames */
.bracket {
  position: relative;
  padding: 34px 28px;
}

.bracket::before,
.bracket::after,
.bracket .bk-tl,
.bracket .bk-br {
  content: '';
}

.bracket::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.bracket::after {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .04em;
  padding: 14px 26px;
  border: 1px solid transparent;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink-deep);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--amber-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(255, 138, 61, .55);
}

.btn-outline {
  border-color: var(--line-soft);
  color: var(--paper);
}

.btn-outline:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline-dark {
  border-color: rgba(22, 34, 46, .25);
  color: var(--ink);
}

.btn-outline-dark:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn-arrow {
  transition: transform .3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 26, 44, .92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--paper);
}

.logo .logo-mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  transform: rotate(0deg);
  position: relative;
}

.logo .logo-mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--mist);
  position: relative;
  padding: 4px 0;
  transition: color .25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width .3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 24px;
}

/* ---------- Nav dropdown (About / What We Do / CEO Message) ---------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .03em;
  color: var(--mist);
  transition: color .25s;
}

.nav-dropdown-toggle .caret {
  font-size: 10px;
  line-height: 1;
  transition: transform .3s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown.has-active .nav-dropdown-toggle {
  color: var(--paper);
}

.nav-dropdown.open .nav-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--ink-deep);
  border: 1px solid var(--line-soft);
  min-width: 190px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 120;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  transition: color .2s, background .2s;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--paper);
  background: rgba(255, 255, 255, .05);
}

@media (max-width:920px) {
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    padding: 0;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    border: none;
    padding: 0;
    background: transparent;
    transition: max-height .35s var(--ease);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 220px;
    padding: 10px 0 4px 14px;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    font-size: 15px;
  }
}

@media (max-width:920px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--ink-deep);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 28px;
    gap: 28px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 90;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta .btn-outline {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 170px 0 110px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  color: var(--paper);
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-lede {
  color: var(--mist);
  font-size: 17px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-phone::before {
  content: '●';
  color: var(--success);
  font-size: 9px;
}

/* Blueprint viewport / rotating image showcase */
.viewport {
  position: relative;
  aspect-ratio: 4/4.6;
  border: 1px solid var(--line-soft);
  background: var(--ink-deep);
  overflow: hidden;
}

.viewport::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.viewport-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 4px 9px;
  letter-spacing: .08em;
  background: rgba(8, 26, 44, .6);
}

.viewport-coord {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist);
  letter-spacing: .05em;
}

.viewport-frame {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.slide svg {
  width: 78%;
  height: 78%;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 5;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0;
  top: 0;
}

.scan.run {
  animation: scanSweep 1.1s var(--ease);
}

@keyframes scanSweep {
  0% {
    top: 0;
    opacity: 0;
  }

  8% {
    opacity: .9;
  }

  92% {
    opacity: .7;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

.viewport-dots {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.viewport-dots span {
  width: 14px;
  height: 2px;
  background: var(--line-soft);
  transition: background .3s, width .3s;
}

.viewport-dots span.active {
  background: var(--amber);
  width: 22px;
}

.hero-strip {
  border-top: 1px solid var(--line-soft);
  margin-top: 90px;
  padding-top: 26px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  color: var(--mist);
  font-size: 12.5px;
  letter-spacing: .06em;
}

/* ---------- Section basics ---------- */
section {
  padding: 110px 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.on-dark h2,
.on-dark .eyebrow,
.on-dark p {
  color: var(--paper);
}

.on-dark p {
  color: var(--mist);
}

/* ---------- Cards: services ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-2);
}

.card {
  background: var(--ink);
  padding: 38px 32px;
  position: relative;
  transition: background .35s ease;
}

.card:hover {
  background: #123a5f;
}

.card .num {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 13px;
  letter-spacing: .08em;
}

.card h3 {
  color: var(--paper);
  font-size: 21px;
  margin-top: 14px;
}

.card p {
  color: var(--mist);
  font-size: 14.5px;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber-2);
  display: inline-flex;
  gap: 8px;
  margin-top: 6px;
}

.card-light {
  background: var(--paper);
}

.card-light:hover {
  background: var(--paper-2);
}

.card-light h3 {
  color: var(--ink);
}

.card-light p {
  color: var(--mist-2);
}

.card-light .num {
  color: var(--line);
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-2);
  margin-top: 60px;
}

.stat {
  background: var(--paper);
  padding: 36px 24px;
  text-align: left;
}

.stat .stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
}

.stat .stat-num .amt {
  color: var(--amber);
}

.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-2);
  margin-top: 6px;
  letter-spacing: .02em;
}

/* ---------- Process (timeline) ---------- */
.process-list {
  display: flex;
  flex-direction: column;
}

.process-item {
  display: grid;
  grid-template-columns: 110px 1fr 200px;
  gap: 32px;
  align-items: start;
  padding: 34px 0;
  border-top: 1px solid var(--paper-2);
}

.process-item:last-child {
  border-bottom: 1px solid var(--paper-2);
}

.process-tag {
  font-family: var(--font-mono);
  color: var(--line);
  font-size: 13px;
  letter-spacing: .05em;
  padding-top: 4px;
}

.process-item h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.process-item p {
  margin-bottom: 0;
  max-width: 520px;
}

.process-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  align-self: start;
  justify-self: start;
  padding-bottom: 2px;
}

/* ---------- Testimonial / quote block ---------- */
.quote-block {
  border-left: 2px solid var(--amber);
  padding-left: 28px;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--paper);
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--mist);
  padding: 80px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-grid h4 {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul li {
  margin-bottom: 11px;
}

.footer-grid a {
  font-size: 14px;
  color: var(--mist);
  transition: color .2s;
}

.footer-grid a:hover {
  color: var(--amber);
}

.footer-brand p {
  color: var(--mist);
  font-size: 14px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .25s;
}

.footer-social a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 12px;
}

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

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

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 160px 0 90px;
}

.page-hero .eyebrow {
  margin-bottom: 20px;
}

.page-hero h1 {
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 52px);
  max-width: 760px;
}

.page-hero p {
  color: var(--mist);
  max-width: 560px;
  font-size: 16.5px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-2);
  margin-bottom: 18px;
}

.breadcrumb span {
  color: var(--amber);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

/* ---------- Misc components used on inner pages ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink);
  border: 1px solid var(--paper-2);
  padding: 7px 12px;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
}

.value-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--paper-2);
}

.value-list li:last-child {
  border-bottom: 1px solid var(--paper-2);
}

.value-list .v-ico {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 13px;
}

.value-list h4 {
  margin-bottom: 6px;
  font-size: 17px;
}

.value-list p {
  margin: 0;
  font-size: 14px;
}

.avatar-frame {
  width: 100%;
  aspect-ratio: 3/3.6;
  border: 1px solid var(--paper-2);
  position: relative;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-frame svg {
  width: 80%;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(35%) contrast(1.08) saturate(1.05);
  transition: transform .8s var(--ease), filter .5s ease;
}

.avatar-frame:hover img {
  transform: scale(1.04);
  filter: grayscale(10%) contrast(1.1) saturate(1.1);
}

.avatar-frame::before,
.avatar-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--amber);
  z-index: 2;
}

.avatar-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.avatar-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.signature {
  font-family: 'Space Grotesk', cursive;
  font-size: 30px;
  color: var(--ink);
  margin-top: 6px;
  font-style: italic;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

.info-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--paper-2);
}

.info-row:last-child {
  border-bottom: 1px solid var(--paper-2);
}

.info-row .ico {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 12px;
  border: 1px solid var(--paper-2);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row h4 {
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}

.info-row p {
  margin: 0;
  font-size: 14px;
}

/* Right-hand contact form panel */
.form-panel {
  background: var(--paper-2);
  padding: 44px 40px;
  position: relative;
}

.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.form-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mist-2);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--paper-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--graphite);
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: var(--line-soft);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .18);
  background: var(--paper);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 16px;
  min-height: 20px;
  color: var(--line);
}

.map-strip {
  border: 1px solid var(--paper-2);
  padding: 26px;
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* CEO page pull-quote */
.pull {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  line-height: 1.45;
  margin: 34px 0;
}

.pull::before {
  content: '“';
  color: var(--amber);
}

.pull::after {
  content: '”';
  color: var(--amber);
}

/* Portfolio */
.work-item {
  position: relative;
  overflow: hidden;
}

.work-thumb {
  aspect-ratio: 16/11;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.work-thumb svg {
  width: 60%;
  transition: transform .6s var(--ease);
}

.work-item:hover .work-thumb svg {
  transform: scale(1.08) rotate(1deg);
}

.work-meta {
  padding: 22px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.work-meta h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.work-meta span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist-2);
}

/* back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  background: var(--amber);
  color: var(--ink-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  transform: translateY(-4px);
}

@media (max-width:960px) {

  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 32px 24px;
  }

  section {
    padding: 76px 0;
  }

  .hero {
    padding-top: 140px;
  }
}

/* ---------- Footer goes full width on small screens ---------- */
@media (max-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 36px;
  }

  .footer-grid>div {
    width: 100%;
  }

  .footer-social {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
  }

  .footer-bottom>div {
    width: 100%;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 60px 0 24px;
  }

  .site-footer .container {
    width: 100%;
    padding: 0 20px;
  }
}

/* =========================================================
   Motion system — scroll reveal, entrance sequence, signature flourishes
   ========================================================= */

/* Bidirectional scroll reveal — fades IN on entry, fades OUT on exit,
   direction-aware so it reverses naturally with scroll direction */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  filter: blur(2px);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal.out-up {
  opacity: 0;
  transform: translateY(-26px) scale(.985);
  filter: blur(2px);
}

.reveal.out-down {
  opacity: 0;
  transform: translateY(34px) scale(.985);
  filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.in,
  .reveal.out-up,
  .reveal.out-down {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Hero + page-hero entrance sequence — plays once on load, independent of scroll */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .eyebrow {
  animation: riseIn .7s var(--ease) both;
}

.hero h1 {
  animation: riseIn .8s var(--ease) .08s both;
}

.hero-lede {
  animation: riseIn .8s var(--ease) .16s both;
}

.hero-actions {
  animation: riseIn .8s var(--ease) .24s both;
}

.hero-phone {
  animation: riseIn .8s var(--ease) .3s both;
}

.hero-strip {
  animation: riseIn .8s var(--ease) .36s both;
}

.hero .viewport {
  animation: riseIn .9s var(--ease) .2s both;
}

.page-hero .breadcrumb {
  animation: riseIn .6s var(--ease) both;
}

.page-hero .eyebrow {
  animation: riseIn .7s var(--ease) .06s both;
}

.page-hero h1 {
  animation: riseIn .8s var(--ease) .12s both;
}

.page-hero p {
  animation: riseIn .8s var(--ease) .2s both;
}

@media (prefers-reduced-motion: reduce) {

  .hero .eyebrow,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .hero-phone,
  .hero-strip,
  .hero .viewport,
  .page-hero .breadcrumb,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p {
    animation: none;
  }
}

/* Parallax-feel grid backgrounds (skip on touch/small screens for performance) */
@media (min-width:900px) {

  .grid-bg,
  .grid-bg-light {
    background-attachment: fixed;
  }
}

/* Section corner ticks — a small blueprint crosshair mark reused as a signature motif */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  opacity: .65;
}

.page-hero::before {
  top: 120px;
  right: 6%;
  width: 26px;
  height: 26px;
  border-top: 1.5px solid var(--amber);
  border-right: 1.5px solid var(--amber);
}

.page-hero::after {
  top: 130px;
  right: calc(6% + 10px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

@media (max-width:700px) {

  .page-hero::before,
  .page-hero::after {
    display: none;
  }
}

/* Card and project hover lift, layered on the existing background shift */
.card {
  transition: background .35s ease, transform .4s var(--ease), box-shadow .4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .45);
}

.card-light:hover {
  box-shadow: 0 26px 50px -28px rgba(14, 42, 71, .18);
}

.work-item {
  transition: transform .4s var(--ease);
}

.work-item:hover {
  transform: translateY(-4px);
}

/* Process items — left rule draws in as it enters view */
.process-item {
  position: relative;
}

.process-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--ease);
}

.process-item.in::before {
  transform: scaleY(1);
}

/* Capability marquee ticker */
.marquee {
  overflow: hidden;
  background: var(--ink-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 14px;
}

.marquee-track span::before {
  content: '◆';
  color: var(--amber);
  font-size: 8px;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Logo mark gives a quiet nod on hover */
.logo-mark {
  transition: transform .5s var(--ease), border-color .3s;
}

.logo:hover .logo-mark {
  transform: rotate(45deg);
  border-color: var(--amber-2);
}

/* Primary CTAs inside dark strips get a slow breathing glow */
.grid-bg .btn-primary,
.on-dark .btn-primary {
  box-shadow: 0 0 0 0 rgba(255, 138, 61, .5);
  animation: ctaGlow 2.6s ease-in-out infinite;
}

@keyframes ctaGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, .35);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 138, 61, 0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .grid-bg .btn-primary,
  .on-dark .btn-primary {
    animation: none;
  }
}

/* Stat numbers get a quiet baseline underline that draws in on reveal */
.stat {
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}

.stat.in::after {
  transform: scaleX(1);
}

/* Hero viewport gets a slow ambient float so the "live preview" never feels static */
@keyframes ambientFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero .viewport {
  animation: riseIn .9s var(--ease) .2s both, ambientFloat 7s ease-in-out 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero .viewport {
    animation: none;
  }
}

/* Quote block gets a soft left-rule draw-in tied to reveal */
.quote-block {
  position: relative;
}

.quote-block::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .8s var(--ease) .1s;
}

.quote-block.in::before {
  transform: scaleY(1);
}

.quote-block {
  border-left: 2px solid transparent;
}

/* =========================================================
   Photography — added with the GiftDevInnovation rebuild
   Photos carry the page now, so they get a consistent treatment:
   a blueprint-toned frame, an amber corner tick, and a slow
   settle on hover. Nothing moves on its own.
   ========================================================= */

.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--paper-2);
  aspect-ratio: 4/3;
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(28%) contrast(1.06) saturate(1.04);
  transition: transform .9s var(--ease), filter .5s ease;
}

.photo-frame:hover img {
  transform: scale(1.035);
  filter: grayscale(0%) contrast(1.08) saturate(1.08);
}

.photo-frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  z-index: 2;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.photo-frame::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  z-index: 2;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.photo-frame-tall {
  aspect-ratio: 3/3.6;
}

.photo-credit {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--mist);
  background: rgba(8, 26, 44, .72);
  padding: 5px 10px;
}

.photo-frame figcaption,
figure.photo-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  font-size: 13px;
  line-height: 1.45;
  color: var(--paper);
  background: linear-gradient(to top, rgba(8, 26, 44, .92), rgba(8, 26, 44, 0));
  padding: 34px 16px 14px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.photo-strip .photo-frame {
  aspect-ratio: 4/4.4;
}

/* ---------- Hero viewport, now holding photographs ---------- */
.viewport-photo .slide {
  padding: 0;
}

.viewport-photo .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(22%) contrast(1.05);
}

.viewport-photo .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 26, 44, .78) 0%, rgba(8, 26, 44, .10) 45%, transparent 100%);
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  left: 16px;
  bottom: 38px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--paper);
}

.viewport-dots span {
  cursor: pointer;
}

.viewport-dots span:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* =========================================================
   The two service arms
   ========================================================= */

.arm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--paper-2);
}

.arm {
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.arm-photo {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ink);
}

.arm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(26%) contrast(1.06);
  transition: transform .9s var(--ease), filter .5s ease;
}

.arm:hover .arm-photo img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.arm-photo .photo-credit {
  bottom: 0;
}

.arm-body {
  padding: 34px 32px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.arm-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 10px;
}

.arm-body h3 {
  font-size: 27px;
  margin-bottom: 12px;
}

.arm-body>p {
  font-size: 15px;
}

.arm-body .btn {
  margin-top: auto;
}

.check-list {
  margin: 6px 0 26px;
  width: 100%;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--graphite);
  border-top: 1px dashed var(--paper-2);
}

.check-list li:first-child {
  border-top: none;
}

.check-list li::before {
  content: '✓';
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

/* =========================================================
   Small refinements
   ========================================================= */

.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.logo-word em {
  font-style: normal;
  color: var(--amber);
}

/* Dropdown entries now carry a description, so they need room */
.nav-dropdown-menu {
  min-width: 270px;
}

.nav-dropdown-menu a {
  display: block;
  line-height: 1.35;
  padding: 12px 16px;
}

.nav-dropdown-menu a strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--paper);
}

.nav-dropdown-menu a small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--mist);
}

.work-note {
  font-size: 13.5px;
  margin: 10px 4px 0;
  max-width: 34ch;
}

.work-grid {
  background: var(--paper-2);
  gap: 24px;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: transform .6s var(--ease), filter .5s ease;
}

.work-item:hover .work-thumb img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Select styled to match the text inputs it sits beside */
.form-field select {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--paper-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--graphite);
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mist-2) 50%),
    linear-gradient(135deg, var(--mist-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-field select:hover {
  border-color: var(--line-soft);
}

.form-field select:focus {
  outline: 2px solid transparent;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .18);
}

/* Honeypot: present for bots, gone for everyone else */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status.is-error {
  color: #B4442A;
}

.form-status.is-ok {
  color: #1E7A5C;
}

.footer-social-light a {
  border-color: var(--paper-2);
  color: var(--ink);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   Accessibility floor
   ========================================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: var(--ink-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 20px;
}

.skip-link:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */

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

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .arm-body {
    padding: 28px 24px 32px;
  }

  .photo-frame-tall {
    aspect-ratio: 4/3.4;
  }
}

@media (max-width:640px) {
  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip .btn {
    width: 100%;
    justify-content: center;
  }

  .slide-caption {
    font-size: 10px;
    left: 12px;
  }
}

/* Motion already respects prefers-reduced-motion above; the photo
   treatments are hover-only, so they need no separate opt-out. */

/* =========================================================
   Training — course catalogue, filters and enrolment
   ========================================================= */

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--paper-2);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--mist-2);
  background: transparent;
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: color .25s var(--ease), border-color .25s var(--ease),
    background .25s var(--ease), transform .25s var(--ease);
}

.filter-pill:hover {
  color: var(--ink);
  border-color: var(--line-soft);
  transform: translateY(-2px);
}

.filter-pill.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.pill-count {
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--mist-2);
  transition: background .25s, color .25s;
}

.filter-pill.is-active .pill-count {
  background: var(--amber);
  color: var(--ink-deep);
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-2);
  min-height: 18px;
  margin: 0 0 26px;
}

/* ---------- Homepage training band ---------- */
.teach-band {
  padding: 96px 0;
}

.teach-head {
  max-width: 620px;
  margin-bottom: 40px;
}

.teach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

.teach-chips a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
  border: 1px solid var(--line-soft);
  padding: 11px 18px;
  transition: color .3s var(--ease), border-color .3s var(--ease),
    background .3s var(--ease), transform .3s var(--ease);
}

.teach-chips a:hover {
  color: var(--ink-deep);
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-3px);
}

.teach-chips a:nth-child(n) {
  animation: chipIn .5s var(--ease) both;
}

.teach-chips a:nth-child(1) {
  animation-delay: .02s
}

.teach-chips a:nth-child(2) {
  animation-delay: .06s
}

.teach-chips a:nth-child(3) {
  animation-delay: .10s
}

.teach-chips a:nth-child(4) {
  animation-delay: .14s
}

.teach-chips a:nth-child(5) {
  animation-delay: .18s
}

.teach-chips a:nth-child(6) {
  animation-delay: .22s
}

.teach-chips a:nth-child(7) {
  animation-delay: .26s
}

.teach-chips a:nth-child(8) {
  animation-delay: .30s
}

.teach-chips a:nth-child(9) {
  animation-delay: .34s
}

.teach-chips a:nth-child(10) {
  animation-delay: .38s
}

.teach-chips a:nth-child(11) {
  animation-delay: .42s
}

.teach-chips a:nth-child(12) {
  animation-delay: .46s
}

.teach-chips a:nth-child(13) {
  animation-delay: .50s
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teach-chips a {
    animation: none;
  }
}

/* ---------- Enrolment page ---------- */
.page-hero-short {
  padding: 150px 0 70px;
}

.page-hero .breadcrumb a:hover {
  color: var(--amber);
}

.enrol-section {
  padding-top: 70px;
}

.enrol-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.enrol-summary {
  background: var(--paper);
  border: 1px solid var(--paper-2);
  padding: 32px 30px;
  position: relative;
  position: sticky;
  top: 110px;
}

.enrol-summary::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.enrol-summary h2 {
  font-size: 26px;
  margin: 12px 0 10px;
}

.enrol-summary>p {
  font-size: 14.5px;
}

.enrol-summary h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-2);
  margin: 26px 0 12px;
}

.enrol-summary .syllabus li {
  animation: lineIn .45s var(--ease) both;
  animation-delay: calc(var(--n) * 50ms + 200ms);
}

.enrol-summary .course-outcome {
  margin-bottom: 24px;
}

.enrol-change {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
  transition: color .25s;
}

.enrol-change:hover {
  color: var(--amber);
}

.enrol-summary-empty .quick-picks li {
  padding: 9px 0;
  border-top: 1px dashed var(--paper-2);
}

.enrol-summary-empty .quick-picks a {
  font-size: 14.5px;
  color: var(--ink);
  transition: color .25s, padding-left .25s var(--ease);
}

.enrol-summary-empty .quick-picks a:hover {
  color: var(--amber);
  padding-left: 6px;
}

.form-footnote {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist-2);
  margin: 14px 0 0;
  line-height: 1.6;
}

/* A field the browser autofilled from the URL gets a moment of attention */
.field-prefilled select,
.field-prefilled input {
  border-color: var(--amber);
  animation: prefillGlow 1.6s var(--ease) .3s;
}

@keyframes prefillGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0);
  }

  35% {
    box-shadow: 0 0 0 4px rgba(255, 138, 61, .22);
  }
}

@media (prefers-reduced-motion: reduce) {

  .field-prefilled select,
  .field-prefilled input {
    animation: none;
  }

  .enrol-summary .syllabus li {
    animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width:1080px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .enrol-summary {
    position: static;
  }
}

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

  .course-top {
    padding: 26px 22px 0;
  }

  .course-toggle {
    padding: 15px 22px;
  }

  .course-detail-inner {
    padding: 22px 22px 26px;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-pill {
    padding: 9px 13px;
    font-size: 12px;
  }

  .teach-band {
    padding: 70px 0;
  }
}

/* Footer gained a Training column */
.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

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

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

/* =========================================================
   Scroll reveal — directional, staggered, bidirectional
   Elements arrive from the side given by data-reveal and leave
   in whichever direction the visitor is scrolling.
   ========================================================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 150;
  background: linear-gradient(90deg, var(--line), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
  filter: blur(3px);
  will-change: opacity, transform;
}

[data-reveal="up"] {
  transform: translateY(38px);
}

[data-reveal="down"] {
  transform: translateY(-38px);
}

[data-reveal="left"] {
  transform: translateX(46px);
}

[data-reveal="right"] {
  transform: translateX(-46px);
}

[data-reveal="scale"] {
  transform: scale(.94);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Leaving the viewport — always with the direction of travel */
[data-reveal].out-up {
  opacity: 0;
  transform: translateY(-30px) scale(.99);
  filter: blur(3px);
}

[data-reveal].out-down {
  opacity: 0;
  transform: translateY(30px) scale(.99);
  filter: blur(3px);
}

[data-reveal="left"].out-up,
[data-reveal="left"].out-down {
  transform: translateX(40px);
}

[data-reveal="right"].out-up,
[data-reveal="right"].out-down {
  transform: translateX(-40px);
}

@media (prefers-reduced-motion: reduce) {

  [data-reveal],
  [data-reveal].in,
  [data-reveal].out-up,
  [data-reveal].out-down {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  .scroll-progress {
    display: none;
  }
}

/* =========================================================
   Course cards — photograph cover, course colour, monogram
   ========================================================= */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-2);
  border: 1px solid var(--paper-2);
}

.course-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease),
    opacity .35s var(--ease);
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -30px rgba(14, 42, 71, .4);
  z-index: 2;
}

.course-card.is-hidden {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* ---------- Cover ---------- */
.course-cover {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink);
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15) brightness(.72);
  transition: transform .9s var(--ease), filter .6s ease;
}

.course-card:hover .course-cover img {
  transform: scale(1.06);
  filter: grayscale(70%) contrast(1.1) brightness(.8);
}

/* The course colour washes over the photo, so every card in the grid
   is instantly distinguishable even where two share a photograph. */
.cover-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--c) 0%, transparent 78%);
  opacity: .72;
  mix-blend-mode: screen;
  transition: opacity .6s var(--ease);
}

.course-card:hover .cover-wash {
  opacity: .52;
}

.cover-mark {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  opacity: .92;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease);
}

.course-card:hover .cover-mark {
  transform: translateY(-3px);
}

.cover-code {
  position: absolute;
  left: 16px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: #fff;
  background: rgba(8, 26, 44, .5);
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}

/* ---------- Body ---------- */
.course-body {
  padding: 24px 26px 0;
  flex: 1;
}

.course-body h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.course-body h3 a {
  transition: color .25s;
}

.course-body h3 a:hover {
  color: var(--amber);
}

.course-blurb {
  font-size: 14.5px;
  margin-bottom: 20px;
}

.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  margin-bottom: 22px;
}

.course-facts li {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.course-facts li span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist-2);
  font-weight: 400;
}

/* ---------- Actions ---------- */
.course-actions {
  display: flex;
  align-items: stretch;
  margin-top: auto;
  border-top: 1px solid var(--paper-2);
}

.course-details,
.course-start {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .28s var(--ease), color .28s var(--ease);
}

.course-details {
  flex: 1;
  color: var(--ink);
}

.course-details:hover {
  background: var(--paper-2);
}

.course-start {
  color: var(--ink-deep);
  background: var(--amber);
  border-left: 1px solid var(--paper-2);
  white-space: nowrap;
}

.course-start:hover {
  background: var(--amber-2);
}

/* =========================================================
   Course detail page
   ========================================================= */

.course-hero {
  position: relative;
  overflow: hidden;
  padding: 170px 0 80px;
  background: var(--ink-deep);
}

.course-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.course-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(.42);
}

.course-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 26, 44, .94) 30%, rgba(8, 26, 44, .55) 100%),
    linear-gradient(200deg, var(--c) 0%, transparent 62%);
  opacity: .95;
}

.course-hero-inner {
  position: relative;
  z-index: 1;
}

.course-hero .breadcrumb {
  color: var(--mist);
}

.course-hero .breadcrumb a {
  transition: color .25s;
}

.course-hero .breadcrumb a:hover {
  color: var(--amber);
}

.course-hero .eyebrow {
  color: var(--amber);
}

.course-hero h1 {
  color: var(--paper);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.course-hero-lede {
  color: var(--mist);
  font-size: 17.5px;
  max-width: 540px;
}

.course-hero-mark {
  position: absolute;
  right: -10px;
  top: -40px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(120px, 20vw, 240px);
  line-height: 1;
  color: var(--c);
  opacity: .16;
  pointer-events: none;
  user-select: none;
}

.course-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 46px;
  margin: 34px 0 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.course-hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--paper);
  font-size: 15px;
}

.course-hero-facts li span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.prereq-box {
  border-left: 2px solid var(--amber);
  padding: 2px 0 2px 20px;
  margin-top: 26px;
}

.prereq-box h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-2);
  margin-bottom: 8px;
}

.prereq-box p {
  margin: 0;
  font-size: 14.5px;
}

.kit-panel {
  background: var(--paper-2);
  padding: 34px 32px;
  position: relative;
}

.kit-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.kit-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist-2);
  margin-bottom: 16px;
}

.kit-panel .check-list li {
  border-color: rgba(14, 42, 71, .10);
}

/* ---------- Modules ---------- */
.module-list {
  counter-reset: none;
  display: grid;
  gap: 1px;
  background: var(--paper-2);
  border: 1px solid var(--paper-2);
}

.module-list li {
  background: var(--paper);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 20px 26px;
  align-items: baseline;
  transition: background .3s var(--ease);
}

.module-list li:hover {
  background: #FBFCFD;
}

.module-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: .06em;
}

.module-list p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite);
}

.outcome-panel {
  margin-top: 44px;
  padding: 38px 36px;
  background: var(--paper);
  border: 1px solid var(--paper-2);
  border-left: 3px solid var(--c);
  position: relative;
}

.outcome-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 60ch;
}

/* ---------- Related ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-2);
  border: 1px solid var(--paper-2);
}

.related-card {
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  transition: background .3s var(--ease), transform .35s var(--ease);
}

.related-card:hover {
  background: #FBFCFD;
  transform: translateY(-3px);
}

.related-mark {
  flex: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  background: var(--c);
}

.related-card h3 {
  font-size: 18px;
  margin: 8px 0 4px;
}

.related-card p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--mist-2);
}

.related-go {
  margin-left: auto;
  color: var(--amber);
  font-size: 18px;
  transition: transform .3s var(--ease);
}

.related-card:hover .related-go {
  transform: translateX(4px);
}

/* =========================================================
   Data security
   ========================================================= */

.promise-list {
  margin-top: 30px;
}

.promise {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--paper-2);
}

.promise:last-child {
  border-bottom: 1px solid var(--paper-2);
}

.promise-n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}

.promise h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.promise p {
  margin: 0;
  font-size: 14.5px;
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.sec-card {
  background: var(--ink);
  padding: 34px 30px 36px;
  transition: background .35s var(--ease), transform .4s var(--ease);
}

.sec-card:hover {
  background: #123a5f;
  transform: translateY(-4px);
}

.sec-ico {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--amber);
  margin-bottom: 20px;
}

.sec-ico svg {
  width: 100%;
  height: 100%;
}

.sec-card h3 {
  color: var(--paper);
  font-size: 19px;
  margin-bottom: 12px;
}

.sec-card p {
  color: var(--mist);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.68;
}

/* Homepage security band */
.sec-band {
  padding: 96px 0;
}

.sec-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
}

.sec-fact {
  background: var(--ink);
  padding: 26px 22px;
}

.sec-fact span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--amber);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.sec-fact p {
  margin: 0;
  color: var(--mist);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width:1080px) {

  .course-grid,
  .sec-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:860px) {
  .course-hero {
    padding: 150px 0 66px;
  }

  .course-hero-facts {
    gap: 0 30px;
  }
}

@media (max-width:700px) {

  .course-grid,
  .sec-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .sec-facts {
    grid-template-columns: 1fr 1fr;
  }

  .course-body {
    padding: 22px 20px 0;
  }

  .course-details,
  .course-start {
    padding: 14px 18px;
    font-size: 12px;
  }

  .module-list li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .outcome-panel {
    padding: 30px 24px;
  }

  .kit-panel {
    padding: 28px 22px;
  }

  .sec-card {
    padding: 28px 24px 30px;
  }

  .cover-mark {
    font-size: 38px;
  }

  .course-hero-mark {
    display: none;
  }
}