/* Haultech institutional site — prototype V01 */

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --charcoal: #0b1622;
  --charcoal-2: #12202e;
  --charcoal-3: #1b2b3b;
  --orange: #ff5a00;
  --orange-text: #ff7a33;
  --grey: #6b7280;
  --grey-light: #f3f4f6;
  --white: #ffffff;
  --ink: #0b1622;
  --muted-on-dark: #b8c0cc;
  --muted-on-light: #4b5563;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: #d9dde3;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --header-h: 4.25rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Prototype banner */
.proto-banner {
  background: var(--orange);
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.4rem var(--gutter);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 34, 0.96);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(11, 22, 34, 0.86);
    backdrop-filter: blur(8px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  padding-block: 0.25rem;
  text-decoration: none;
}

/* Lockup aspect is fixed by the official SVG viewBox (738 x 163); only height is set. */
.wordmark__logo {
  display: block;
  height: 1.75rem;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
  padding: 0.5rem var(--gutter) 1.5rem;
}

.js .site-nav[data-open="false"] {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 0.8rem 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted-on-dark);
  border-bottom: 1px solid var(--line-dark);
}

.nav-list a:hover {
  color: var(--white);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  text-decoration: none;
  color: var(--muted-on-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.lang-switch abbr {
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--charcoal);
  background: var(--white);
  border-color: var(--white);
}

.lang-switch a:not([aria-current="true"]):hover {
  color: var(--white);
  border-color: var(--white);
}

@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav[data-open="false"] {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-list {
    display: flex;
    gap: 1.6rem;
  }

  .nav-list a {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border: 0;
    position: relative;
  }

  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }

  .nav-list a:hover::after,
  .nav-list a:focus-visible::after {
    transform: scaleX(1);
  }

  .lang-switch {
    margin-top: 0;
  }

  .lang-switch a {
    min-height: 2.25rem;
    min-width: 2.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--charcoal);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 22, 34, 0.35) 0%, rgba(11, 22, 34, 0.55) 45%, rgba(11, 22, 34, 0.96) 100%),
    linear-gradient(90deg, rgba(11, 22, 34, 0.85) 0%, rgba(11, 22, 34, 0.2) 70%);
}

.hero__content {
  padding-block: clamp(6rem, 18vh, 10rem) clamp(3rem, 8vh, 5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--orange);
}

.hero h1 {
  margin-top: 1.25rem;
  max-width: 18ch;
  font-size: clamp(2.25rem, 6.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: var(--orange-text);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #d6dbe2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--orange);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: var(--white);
}

.btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: var(--white);
}

.media-note {
  margin-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #9aa4b2;
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

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

.section--tint {
  background: var(--grey-light);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head h2 {
  margin-top: 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

.section__head p {
  margin-top: 1.25rem;
  font-size: 1.075rem;
  color: var(--muted-on-light);
}

.section--dark .section__head p {
  color: var(--muted-on-dark);
}

.section--dark .section__head .eyebrow {
  color: var(--orange-text);
}

.section--light .eyebrow,
.section--tint .eyebrow {
  color: #c2410c;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose p {
  color: var(--muted-on-light);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

.about-statement {
  margin-top: 1.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
}

@media (min-width: 52rem) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Strategy flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  counter-reset: step;
}

.flow li {
  position: relative;
  background: var(--charcoal);
  padding: 1.75rem 1.5rem;
  counter-increment: step;
}

.flow li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-text);
}

.flow h3 {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}

.flow-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted-on-dark);
}

@media (min-width: 40rem) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .flow {
    grid-template-columns: repeat(5, 1fr);
  }

  .flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.1rem;
    right: -0.45rem;
    z-index: 1;
    width: 0.8rem;
    height: 0.8rem;
    background: var(--orange);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }
}

/* Capabilities */
.cap-layout {
  display: grid;
  gap: 2.5rem;
}

.cap-figure {
  margin: 0;
}

.cap-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.cap-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--grey);
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.cap-list li {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-light);
}

.cap-list li:last-child {
  border-bottom: 1px solid var(--line-light);
}

.cap-list h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.cap-list h3::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--orange);
  transform: translateY(-0.1rem);
}

.cap-list p {
  margin-top: 0.4rem;
  padding-left: 1.3rem;
  color: var(--muted-on-light);
  font-size: 0.97rem;
}

@media (min-width: 60rem) {
  .cap-layout {
    grid-template-columns: 5fr 6fr;
    gap: 4.5rem;
    align-items: start;
  }

  .cap-figure {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .cap-figure img {
    aspect-ratio: 4 / 5;
  }
}

/* Approach */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.principles li {
  background: var(--white);
  padding: 1.75rem;
  border-top: 3px solid var(--charcoal);
}

.principles h3 {
  font-size: 1.1rem;
}

.principles p {
  margin-top: 0.6rem;
  color: var(--muted-on-light);
  font-size: 0.97rem;
}

@media (min-width: 44rem) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Partnerships */
.partner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.partner__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.partner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 22, 34, 0.97) 0%, rgba(11, 22, 34, 0.9) 55%, rgba(11, 22, 34, 0.7) 100%);
}

.partner-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.partner-points li {
  padding-left: 1.5rem;
  position: relative;
  color: #d6dbe2;
}

.partner-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.8rem;
  height: 2px;
  background: var(--orange);
}

/* Contact */
.contact-box {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--charcoal);
  color: var(--white);
  border-left: 4px solid var(--orange);
}

.contact-box .eyebrow {
  color: var(--orange-text);
}

.contact-box h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.contact-box p {
  color: var(--muted-on-dark);
  max-width: 40rem;
}

.contact-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.contact-lines li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 0.95rem);
  font-weight: 600;
  color: var(--white);
}

.contact-lines li::before {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--orange);
}

.contact-lines__label {
  min-width: 5.5rem;
  font-weight: 500;
  color: var(--muted-on-dark);
}

.contact-lines a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
  /* Narrow screens: value on its own full-width line so the email never breaks mid-word. */
  flex: 0 0 100%;
}

.contact-lines a:hover {
  color: var(--orange-text);
}

@media (min-width: 40rem) {
  .contact-lines a {
    flex: 0 1 auto;
  }
}

/* Footer */
.site-footer {
  background: #070f17;
  color: var(--muted-on-dark);
  font-size: 0.85rem;
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-grid .wordmark {
  justify-self: start;
}

.footer-grid .wordmark__logo {
  height: 1.5rem;
}

.footer-contact a {
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-note {
  font-size: 0.75rem;
  color: #8a94a3;
  max-width: 46rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Reveal on scroll (only when JS is active and motion is allowed) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

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