/* ==========================================================================
   Hyperspeed Ventures — modern theme
   Dark, cinematic redesign. Brand: crimson #9d1207 · gold #f6bf01
   ========================================================================== */

:root {
  --bg: #06070b;
  --bg-elev: #0a0c13;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f2f4f8;
  --text-dim: #b9c0cd;
  --muted: #8d95a5;
  --accent-core: #9d1207;
  --accent: #e5322d;
  --accent-soft: #ff8d84;
  --gold: #f6bf01;
  --radius: 18px;
  --radius-lg: 26px;
  /* SF Pro on Apple devices; Mulish (Proxima Nova-style) elsewhere */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Mulish", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Mulish", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 74px;
}

/* Base ------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Arrow cursor over text instead of the I-beam */
  cursor: default;
}

a,
button {
  cursor: pointer;
}

input,
textarea {
  cursor: text;
}

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(157, 18, 7, 0.14), transparent 62%),
    radial-gradient(1000px 600px at -10% 42%, rgba(38, 66, 138, 0.10), transparent 60%),
    radial-gradient(800px 520px at 70% 110%, rgba(157, 18, 7, 0.08), transparent 60%);
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: #ffffff;
}

::selection {
  background: var(--accent-core);
  color: #ffffff;
  text-shadow: none;
}

/* Hide scrollbars entirely (scrolling still works) */
html {
  scrollbar-width: none;
}

body {
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 12px 18px;
  background: var(--accent-core);
  color: #fff;
  border-radius: 10px;
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

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

/* Sections ---------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(88px, 11vw, 148px) 0;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.012));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-sub {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.7;
}

.section-sub strong {
  color: var(--text-dim);
}

/* Navigation --------------------------------------------------------------- */

#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  background: rgba(6, 7, 11, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}

/* Brand stays hidden over the hero (the hero carries the logo),
   then fades in as the nav turns to glass on scroll */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

#mainNav.scrolled .brand {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s;
}

.brand-mark {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.brand-mark img {
  width: 32px;
  height: auto;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-word {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: var(--surface-2);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(157, 18, 7, 0.38);
  box-shadow: inset 0 0 0 1px rgba(230, 57, 43, 0.35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle .bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }

#mainNav.open .nav-toggle .bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

#mainNav.open .nav-toggle .bars span:nth-child(2) {
  opacity: 0;
}

#mainNav.open .nav-toggle .bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--nav-h) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(9, 11, 17, 0.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
  }

  #mainNav.open .nav-links {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    padding: 15px 18px;
    font-size: 14px;
    text-align: center;
    border-radius: 14px;
  }
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: calc(var(--nav-h) + 32px) 0 96px;
  background:
    radial-gradient(1200px 700px at 50% -12%, rgba(157, 18, 7, 0.22), transparent 62%),
    radial-gradient(900px 620px at 88% 92%, rgba(38, 66, 138, 0.16), transparent 60%),
    var(--bg);
}

/* Full-bleed brand collage, graded for the dark theme.
   Oversized vertically so the scroll parallax never reveals an edge. */
.hero-bg {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  background: url("../img/header-bg-illustrated-clean.jpg") center / cover no-repeat;
  filter: saturate(1.08) contrast(1.04) brightness(0.94);
  will-change: transform;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 7, 11, 0.88) 0%, rgba(6, 7, 11, 0.42) 24%, rgba(6, 7, 11, 0.38) 52%, rgba(6, 7, 11, 0.97) 86%, var(--bg) 96%),
    radial-gradient(120% 85% at 50% 42%, transparent 38%, rgba(6, 7, 11, 0.6) 100%),
    rgba(9, 11, 17, 0.30);
}

/* Narrow screens crop the collage hard — bias the framing toward
   the VR figure instead of the empty clouds at dead center */
@media (max-width: 760px) {
  .hero-bg {
    background-position: 66% center;
  }
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-inline: 24px;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #ffffff;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.65);
}

.hero-title .accent {
  background: linear-gradient(100deg, #ff8a75, var(--accent) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  margin: 0;
  max-width: 680px;
  color: #c6cdd9;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.75;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

/* Brand lockup, separated from the collage */
.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.hero-mark {
  width: 112px;
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.55));
  opacity: 0.9;
}

.hero-word {
  width: min(614px, 76vw);
  height: auto;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.6));
  opacity: 0.9;
}

/* Hero entrance — logo rises first, then the tagline, then the lede */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js .hero-logo { animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s backwards; }
html.js .hero-title { animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.28s backwards; }
html.js .hero-lede { animation: hero-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.46s backwards; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 2;
  color: rgba(255, 255, 255, 0.72);
  animation: cue-bob 2.4s ease-in-out infinite;
}

.scroll-cue:hover {
  color: #ffffff;
}

.scroll-cue svg {
  width: 28px;
  height: 28px;
}

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}

@keyframes cue-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.js .scroll-cue {
  animation:
    cue-bob 2.4s ease-in-out infinite,
    cue-fade 1s ease 1s backwards;
}

/* Buttons -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, filter 0.25s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, #d21f10, #8c0f05 78%);
  box-shadow:
    0 12px 34px -8px rgba(157, 18, 7, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow:
    0 18px 44px -8px rgba(157, 18, 7, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(230, 57, 43, 0.55);
  color: #ffffff;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* Mission ---------------------------------------------------------------------- */

.mission-lede {
  max-width: 860px;
  margin: 30px auto 0;
  display: grid;
  gap: 14px;
  text-align: center;
}

.mission-lede p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.75vw, 18px);
  line-height: 1.8;
}

/*
.mission-lede p:first-child {
  color: var(--text-dim);
  font-size: clamp(17px, 2vw, 21px);
}
*/

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: 38px 30px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 50, 45, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pillar:hover {
  transform: translateY(-5px);
  background: var(--surface-2);
  border-color: var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
}

.pillar:hover::before {
  opacity: 1;
}

.pillar img {
  width: 86px;
  height: 86px;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 9px rgba(157, 18, 7, 0.12),
    0 16px 38px -10px rgba(157, 18, 7, 0.55);
}

.pillar h3 {
  margin: 24px 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Portfolio ------------------------------------------------------------------ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease,
    background 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
  border-color: rgba(229, 50, 45, 0.5);
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(229, 50, 45, 0.16);
}

.card-link {
  display: block;
  color: inherit;
}

.card-media {
  position: relative;
  aspect-ratio: 400 / 289;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.011);
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.portfolio-card:hover .card-media img {
  transform: scale(1.07);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 11, 0.06) 45%, rgba(6, 7, 11, 0.58));
  pointer-events: none;
}

.ipo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  background: rgba(6, 7, 11, 0.62);
  border: 1px solid rgba(246, 191, 1, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 20px 22px 22px;
  border-top: 1px solid var(--border);
}

.card-body h3 {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1020px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* Timeline --------------------------------------------------------------------- */

.timeline {
  list-style: none;
  position: relative;
  max-width: 1020px;
  margin: 72px auto 0;
  padding: 12px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(229, 50, 45, 0.55) 6%,
    rgba(229, 50, 45, 0.55) 94%,
    transparent
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 132px 1fr;
  align-items: center;
  margin-bottom: 64px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(229, 50, 45, 0.65);
  background: var(--bg-elev);
  box-shadow:
    0 0 0 9px rgba(157, 18, 7, 0.12),
    0 18px 40px -12px rgba(0, 0, 0, 0.7);
}

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

.timeline-card {
  grid-row: 1;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.timeline-item:hover .timeline-card {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  text-align: left;
}

.timeline-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
}

.timeline-card h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.timeline-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
  }

  .timeline-marker {
    grid-column: 1;
    width: 60px;
    height: 60px;
    border-width: 2px;
    box-shadow: 0 0 0 6px rgba(157, 18, 7, 0.12);
    margin-top: 4px;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    text-align: left;
    padding: 24px;
  }
}

/* Founder ---------------------------------------------------------------------- */

.founder-card {
  position: relative;
  overflow: hidden;
  max-width: 430px;
  margin: 64px auto 0;
  padding: 44px 34px 38px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(229, 50, 45, 0.9), transparent);
}

.founder-card .avatar {
  display: inline-block;
  border-radius: 50%;
}

.founder-card .avatar img {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(229, 50, 45, 0.65);
  box-shadow:
    0 0 0 10px rgba(157, 18, 7, 0.12),
    0 22px 50px -18px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s ease;
}

.founder-card .avatar:hover img {
  transform: scale(1.04);
}

.founder-card h3 {
  margin: 22px 0 4px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
}

.founder-card h3 a {
  color: #ffffff;
}

.founder-card h3 a:hover {
  color: var(--accent-soft);
}

.founder-role {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.social-buttons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: background 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.social-buttons a:hover {
  background: var(--accent-core);
  border-color: transparent;
  transform: translateY(-3px);
}

.social-buttons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.founder-bio {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.85;
}

.founder-bio a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 141, 132, 0.35);
}

.founder-bio a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* Contact ---------------------------------------------------------------------- */

#contact {
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/map-image.png") center / min(1100px, 94%) no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

#contact .container {
  position: relative;
}

.contact-form {
  max-width: 920px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-col {
  display: grid;
  gap: 18px;
  align-content: start;
}

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

.form-col .field-message {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.field-message textarea {
  flex: 1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 17px 19px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 15px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #78808f;
  letter-spacing: 0.02em;
}

.field input:focus,
.field textarea:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(229, 50, 45, 0.65);
  box-shadow: 0 0 0 4px rgba(157, 18, 7, 0.18);
}

.field textarea {
  height: 100%;
  min-height: 196px;
  resize: vertical;
}

.field-error {
  display: none;
  margin: 7px 4px 0;
  font-size: 13px;
  color: var(--accent-soft);
}

.field.invalid .field-error {
  display: block;
}

.field.invalid input,
.field.invalid textarea {
  border-color: rgba(255, 90, 80, 0.65);
}

.form-footer {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 10px;
}

#success {
  margin-bottom: 18px;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto 6px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14.5px;
  text-align: left;
}

.alert-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #86e3ae;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.45);
  color: #ff9d94;
}

.alert .close {
  flex: none;
  padding: 0;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.alert .close:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 760px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Footer ----------------------------------------------------------------------- */

.site-footer {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.copyright {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.02em;
}

.site-footer .social-buttons {
  margin: 0;
}

.site-footer .social-buttons a {
  width: 40px;
  height: 40px;
}

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    justify-content: center;
  }
}

/* Reveal animations ------------------------------------------------------------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

html.js .pillar-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
html.js .pillar-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
html.js .portfolio-grid .reveal:nth-child(3n + 2) { transition-delay: 0.07s; }
html.js .portfolio-grid .reveal:nth-child(3n) { transition-delay: 0.14s; }

/* Responsive misc ------------------------------------------------------------------ */

@media (max-width: 920px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 20px;
  }

  .brand-mark img {
    width: 27px;
  }

  .brand-word {
    height: 25px;
  }

  .btn {
    padding: 15px 26px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
}

/* Reduced motion ------------------------------------------------------------------- */

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

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

  html.js .reveal {
    opacity: 1;
    transform: none;
  }

  html.js .hero-logo,
  html.js .hero-title,
  html.js .hero-lede,
  html.js .scroll-cue,
  .scroll-cue {
    animation: none;
  }
}
