/* ============================================
   DESIGN NERDZ STUDIOS — STYLES
   ============================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  /* BASE PALETTE */
  --carbon-black: #1F1F1F;
  --blue-spruce: #136F63;
  --white-smoke: #F5F5F5;
  --silver: #BDBDBD;
  --light-sea-green: #00A9A5;
  --dark-slate-grey: #3A5A5A;

  /* NEUTRAL TONAL SCALE */
  --white: #FFFFFF;
  --light-grey: #EAEAEA;
  --soft-grey: #D6D6D6;

  /* BLUE SPRUCE TONAL SCALE */
  --light-spruce: #E6F2F0;
  --mid-spruce: #2A8C7F;
  --dark-spruce: #0F5A50;

  /* ACCENT TONAL SCALE */
  --soft-aqua: #D9F5F3;
  --deep-aqua: #008C88;

  /* STRUCTURAL DARK SCALE */
  --charcoal: #2A2A2A;

  /* TYPOGRAPHY */
  --font-heading: 'Neufile', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  /* SPACING */
  --section-padding: 120px;
  --section-padding-mobile: 80px;
  --container-max: 1200px;
  --container-padding: 80px;
  --container-padding-mobile: 24px;

  /* BODY TEXT MAX WIDTH */
  --body-max-width: 660px;

  /* MOTION TOKENS */
  --motion-duration-fast: 120ms;
  --motion-duration-base: 180ms;
  --motion-duration-slow: 220ms;
  --motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-shift-sm: 4px;
  --motion-shift-md: 8px;
  --motion-shift-lg: 12px;
  --motion-scale-rest: 1;
  --motion-scale-hover: 1.02;
  --motion-scale-press: 0.98;
}

/* --- FONT FACES --- */
@font-face {
  font-family: 'Neufile';
  src: url('../fonts/NeufileGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neufile';
  src: url('../fonts/NeufileGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neufile';
  src: url('../fonts/NeufileGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: #333;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-ready .hero-nav,
body.is-ready .section-cue,
body.is-ready .h1-display,
body.is-ready .hero-description,
body.is-ready .hero-ctas,
body.is-ready .block-2-frame-line {
  opacity: 0;
}

body.is-ready .hero-nav,
body.is-ready .section-cue {
  transform: translateY(var(--motion-shift-md));
}

body.is-ready .h1-display,
body.is-ready .hero-description,
body.is-ready .hero-ctas {
  transform: translateY(var(--motion-shift-lg));
}

body.is-ready .hero-nav,
body.is-ready .section-cue,
body.is-ready .h1-display,
body.is-ready .hero-description,
body.is-ready .hero-ctas {
  transition:
    opacity var(--motion-duration-slow) var(--motion-ease-standard),
    transform var(--motion-duration-slow) var(--motion-ease-standard);
}

body.is-loaded .hero-nav,
body.is-loaded .section-cue,
body.is-loaded .h1-display,
body.is-loaded .hero-description,
body.is-loaded .hero-ctas {
  opacity: 1;
  transform: translateY(0);
}

body.is-loaded .hero-nav,
body.is-loaded .section-cue {
  transition-delay: 0ms;
}

body.is-loaded .h1-display {
  transition-delay: 60ms;
}

body.is-loaded .hero-description {
  transition-delay: 120ms;
}

body.is-loaded .hero-ctas {
  transition-delay: 180ms;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--motion-duration-base) var(--motion-ease-standard),
    transform var(--motion-duration-slow) var(--motion-ease-standard);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

a {
  color: var(--light-sea-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-aqua);
}

/* --- LAYOUT --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.body-max-width {
  max-width: var(--body-max-width);
}

/* --- TYPOGRAPHY --- */
.h1-display {
  font-family: var(--font-heading);
  font-size: 96px;
  line-height: 104px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -1px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 72px;
  line-height: 80px;
  font-weight: 700;
  color: var(--carbon-black);
}

h2 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: var(--carbon-black);
  margin-bottom: 32px;
}

h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  color: var(--carbon-black);
  margin-bottom: 16px;
}

.body-l {
  font-size: 18px;
  line-height: 30px;
}

.body-m {
  font-size: 16px;
  line-height: 28px;
}

.body-s {
  font-size: 14px;
  line-height: 24px;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--dark-slate-grey);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background-color: var(--blue-spruce);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(0) scale(var(--motion-scale-rest));
  transition:
    background-color var(--motion-duration-base) var(--motion-ease-standard),
    transform var(--motion-duration-fast) var(--motion-ease-standard);
}

.btn-primary:hover {
  background-color: var(--mid-spruce);
  transform: translateY(-2px) scale(var(--motion-scale-hover));
}

.btn-primary:active {
  transform: translateY(0) scale(var(--motion-scale-press));
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 0;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--carbon-black);
}

/* ============================================
   BLOCK 1 — HERO
   ============================================ */
.block-hero {
  background-color: var(--carbon-black);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 24px;
}

.hero-content {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.h1-display {
  font-size: 96px;
  line-height: 104px;
  text-align: left;
}

.hero-description {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  text-align: left;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
  justify-content: flex-start;
}

.btn-primary--hero {
  padding: 14px 32px;
  border-radius: 0;
  background-color: var(--blue-spruce);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.btn-primary--hero:hover {
  background-color: var(--mid-spruce);
  color: var(--white);
}

.btn-outline--hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: transparent;
  transition: color var(--motion-duration-base) var(--motion-ease-standard);
}

.btn-outline--hero::after {
  content: '›';
  font-size: 26px;
  line-height: 1;
  transform: translateX(0);
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.btn-outline--hero:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline--hero:hover::after {
  transform: translateX(var(--motion-shift-sm));
}

.hero-logo {
  position: absolute;
  top: 26px;
  left: 26px;
  margin-bottom: 0;
  z-index: 6;
}

.hero-menu-toggle {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 7;
}

.hero-menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  margin-left: auto;
  background-color: var(--white);
  transition:
    transform var(--motion-duration-base) var(--motion-ease-standard),
    opacity var(--motion-duration-base) var(--motion-ease-standard);
}

.hero-menu-toggle span + span {
  margin-top: 6px;
}

body.mobile-nav-open .hero-menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-nav-open .hero-menu-toggle span:nth-child(2) {
  opacity: 0;
}

body.mobile-nav-open .hero-menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero-nav {
  position: absolute;
  top: 32px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 19px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--silver);
  transition: color var(--motion-duration-base) var(--motion-ease-standard);
}

.hero-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

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

.hero-nav a:hover::after {
  transform: scaleX(1);
}

.section-nav {
  position: absolute;
  top: 32px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 5;
}

.section-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  transition:
    opacity var(--motion-duration-base) var(--motion-ease-standard),
    color var(--motion-duration-base) var(--motion-ease-standard);
}

.section-nav a:not(.btn-primary--nav):not(.btn-outline--nav)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.section-nav a:hover {
  opacity: 1;
}

.section-nav a[href="#what-were-building"] {
  margin-right: 84px;
}

#what-were-building .section-nav a[href="#how-we-work"] {
  margin-right: 84px;
}

.section-nav a:not(.btn-primary--nav):not(.btn-outline--nav):hover::after {
  transform: scaleX(1);
}

.section-nav--light {
  color: rgba(255, 255, 255, 0.82);
}

.section-nav--dark {
  color: rgba(31, 31, 31, 0.78);
}

.hero-nav a.btn-outline--nav:hover {
  color: #000000;
}

.hero-nav a.btn-primary--nav::after,
.hero-nav a.btn-outline--nav::after,
.section-nav a.btn-primary--nav::after {
  display: none;
}

.btn-primary--nav {
  padding: 7px 14px;
  border-radius: 0;
  background-color: var(--blue-spruce);
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary--nav:hover {
  background-color: var(--mid-spruce);
  color: var(--white);
}

.section-nav--dark .btn-primary--nav {
  color: var(--white);
}

.section-nav--dark .btn-primary--nav:hover {
  background-color: var(--carbon-black);
  color: var(--white);
}

.section-nav--light .btn-primary--nav {
  color: var(--white);
}

.section-nav--light .btn-primary--nav:hover {
  background-color: var(--white);
  color: var(--carbon-black);
}

.btn-outline--nav {
  padding: 7px 14px;
  border-radius: 0;
  border: 1px solid var(--silver);
  color: var(--silver);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline--nav:hover {
  background-color: var(--white);
  color: #000000;
  border-color: var(--white);
}

.section-nav .btn-outline--nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  transition: color var(--motion-duration-base) var(--motion-ease-standard);
}

.section-nav .btn-outline--nav::after {
  display: inline-block;
  content: '›';
  font-size: 22px;
  line-height: 1;
  transform: translateX(0) translateY(-1px);
  vertical-align: middle;
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.section-nav .btn-outline--nav:hover {
  background: transparent;
  color: inherit;
}

.section-nav .btn-outline--nav:hover::after {
  transform: translateX(var(--motion-shift-sm)) translateY(-1px);
}

.hero-logo img {
  width: 150px;
  height: auto;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.hero-logo img:hover {
  filter: brightness(0) saturate(100%) invert(56%) sepia(70%) saturate(793%) hue-rotate(130deg) brightness(92%) contrast(101%);
  transform: scale(1.03);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--silver);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ============================================
   BLOCK 2 — WHO WE ARE (Slideshow)
   ============================================ */
.block-whoweare {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  inset: 0;
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.block-whoweare .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.slideshow-indicators {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.indicator {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.indicator.active {
  width: 48px;
  background-color: var(--white);
}

.section-cue {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 4;
}

.section-cue-dash {
  width: 1px;
  height: 18px;
  background: currentColor;
  opacity: 0.3;
}

.section-cue-label {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 1.2px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.section-cue-label:hover {
  color: inherit;
  opacity: 0.6;
}

.section-cue-slash {
  font-size: 22px;
  line-height: 0;
  vertical-align: -2px;
  font-weight: 700;
  position: relative;
  left: 4px;
}

.section-cue--light {
  color: rgba(255, 255, 255, 0.78);
}

.section-cue--dark {
  color: rgba(31, 31, 31, 0.7);
}

.back-to-top {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.back-to-top:hover {
  opacity: 0.6;
}

.block-2-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--container-padding);
}

.block-2 .eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.block-2-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.block-2-frame-svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -72px;
  width: calc(100% + 72px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.block-2-frame-svg--mobile {
  display: none;
}

.block-2-frame-line {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 0.85;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition:
    opacity var(--motion-duration-slow, 0.3s) var(--motion-ease-standard, ease),
    stroke-dashoffset 900ms var(--motion-ease-standard, ease);
}

body.is-loaded .block-2-frame-line {
  opacity: 1;
  stroke-dashoffset: 0;
}

.block-2-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  fill: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.block-2-dot--tl {
  top: 0;
  left: -72px;
  transform: translate(-50%, -50%);
}

.block-2-dot--bl {
  bottom: 0;
  left: -72px;
  transform: translate(-50%, 50%);
}

.block-2-dot--tr {
  top: 0;
  left: calc(50% - 36px);
  transform: translate(-50%, -50%);
}

.block-2-dot--br {
  bottom: 0;
  left: calc(50% - 36px);
  transform: translate(-50%, 50%);
}

.block-2-left,
.block-2-right {
  position: relative;
  z-index: 2;
}

.block-2-left {
  padding: 40px 48px 40px 0;
}

.block-2-right {
  padding: 40px 48px;
  display: flex;
  align-items: center;
}

.block-2-headline {
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 52px;
  font-weight: 700;
  color: #FFFFFF;
}

.block-2-description {
  max-width: 400px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   BLOCK 3 — WHAT WE DO
   ============================================ */
.block-whatwedo {
  background-color: var(--white-smoke);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.block-whatwedo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/core-areas-pattern.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  opacity: 1;
  pointer-events: none;
}

.block-whatwedo .container {
  position: relative;
  z-index: 1;
}

.block-whatwedo .body-l {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  background-color: var(--white);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-card h3 {
  margin-bottom: 12px;
  transition: color 0.25s ease;
}

.service-card .body-m {
  color: #444;
  transition: color 0.25s ease;
}

.service-card:hover {
  background-color: var(--blue-spruce);
  border-color: var(--blue-spruce);
  transform: translateY(-4px);
}

.service-card:hover h3,
.service-card:hover .body-m {
  color: var(--white);
}

.closing-line {
  color: #444;
}

/* ============================================
   BLOCK 4 — HOW WE WORK
   ============================================ */
.block-howwework {
  background-color: var(--light-spruce);
  padding: var(--section-padding) 0;
  position: relative;
}

.block-howwework .body-l {
  max-width: var(--body-max-width);
  margin-bottom: 32px;
}

.block-howwework .body-m {
  max-width: var(--body-max-width);
  margin-bottom: 24px;
}

.block-howwework .body-max-width {
  max-width: none;
}

.methodology-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 72px;
  row-gap: 32px;
  margin-bottom: 32px;
  list-style: none;
  padding-left: 0;
}

.methodology-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 21px;
  line-height: 25px;
  font-weight: 700;
  color: var(--carbon-black);
  padding: 0;
  min-height: 84px;
}

.methodology-number {
  flex: 0 0 auto;
  align-self: flex-start;
  color: #BDBDBD;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.methodology-text {
  display: block;
  max-width: 340px;
}

.methodology-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: -36px;
  width: 1px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.12);
}

/* ============================================
   BLOCK 5 — WHAT WE'RE BUILDING
   ============================================ */
.block-building {
  background-color: var(--white);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.block-building::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/the-system-pattern.svg');
  background-repeat: no-repeat;
  background-size: 120% auto;
  background-position: calc(50% + 100px) calc(100% + 100px);
  opacity: 1;
  pointer-events: none;
}

.block-building .container {
  position: relative;
  z-index: 1;
}

.manifesto p {
  margin-bottom: 24px;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

/* ============================================
   BLOCK 6 — START A PROJECT FORM
   ============================================ */
.block-form {
  background-color: var(--light-grey);
  padding: var(--section-padding) 0;
  position: relative;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label,
.form-group legend {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--carbon-black);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--carbon-black);
  background-color: var(--white);
  border: none;
  border-radius: 4px;
  transition: box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue-spruce);
}

.form-group textarea {
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.block-form .eyebrow {
  letter-spacing: 2px;
  color: #666;
}

.block-form .section-title {
  font-size: 72px;
  line-height: 80px;
  margin-bottom: 16px;
}

.block-form .section-subtitle {
  font-size: 16px;
  line-height: 28px;
  color: #555;
  max-width: 400px;
  margin-bottom: 64px;
}

.accordion-form {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.form-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.form-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  user-select: none;
  transition: opacity var(--motion-duration-base) var(--motion-ease-standard);
}

.form-row-header:hover {
  opacity: 0.6;
}

.form-row-label {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: var(--carbon-black);
}

.optional-tag {
  font-size: 12px;
  color: #999;
  margin-left: 8px;
}

.form-row-toggle {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: var(--blue-spruce);
  transition: transform var(--motion-duration-base) var(--motion-ease-standard);
}

.form-row.active .form-row-toggle {
  transform: rotate(45deg);
}

.form-row-content {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition:
    max-height var(--motion-duration-slow) var(--motion-ease-standard),
    padding var(--motion-duration-slow) var(--motion-ease-standard);
}

.form-row.active .form-row-content {
  max-height: 320px;
  padding: 0 0 24px;
}

.form-row-content input[type="text"],
.form-row-content input[type="email"],
.form-row-content input[type="tel"],
.form-row-content select,
.form-row-content textarea {
  width: 100%;
  padding: 14px 0 10px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  color: var(--carbon-black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--silver);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-row-content input:focus,
.form-row-content select:focus,
.form-row-content textarea:focus {
  border-color: var(--blue-spruce);
  box-shadow: inset 0 -1px 0 var(--blue-spruce);
}

.form-row-content textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row-content input::placeholder,
.form-row-content textarea::placeholder {
  color: var(--silver);
}

.form-row-content select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23BDBDBD' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 28px;
}

.location-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-content select:disabled {
  color: #888;
  cursor: not-allowed;
  border-bottom-color: #cfcfcf;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 24px;
  color: var(--carbon-black);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-spruce);
  cursor: pointer;
}

.upload-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.form-row-content input[type="file"] {
  padding: 12px 0;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: #666;
}

.form-submit-row {
  padding-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.form-submit-btn {
  padding: 16px 40px;
  letter-spacing: 1px;
}

.form-success {
  text-align: center;
  padding: 48px 0;
  opacity: 0;
  transform: translateY(16px);
  animation: formSuccessIn var(--motion-duration-slow) var(--motion-ease-standard) forwards;
}

.form-success h3 {
  color: var(--blue-spruce);
  margin-bottom: 8px;
}

.form-success p {
  color: #444;
}

@keyframes formSuccessIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

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

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

/* ============================================
   BLOCK 7 — FOOTER
   ============================================ */
.block-footer {
  background-color: var(--carbon-black);
  padding: var(--section-padding) 0 48px;
  position: relative;
  overflow: hidden;
}

.block-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/Nerdz Pattern-2.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center calc(50% - 100px);
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}

.block-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 31, 31, 0.82) 0%, rgba(31, 31, 31, 0.92) 100%);
  pointer-events: none;
}

.block-footer .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 188px;
}

.footer-contact h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  margin-bottom: 32px;
}

.footer-contact .form-group label {
  color: var(--silver);
  margin-bottom: 4px;
}

.footer-contact .form-group input,
.footer-contact .form-group textarea {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--dark-slate-grey);
  border-radius: 0;
  color: var(--white);
  padding: 10px 0 8px;
}

.footer-contact #contactEmail {
  font-size: 18px;
  line-height: 28px;
}

.footer-contact .form-group input:focus,
.footer-contact .form-group textarea:focus {
  box-shadow: none;
  border-bottom-color: var(--light-sea-green);
}

.footer-contact .form-group {
  margin-bottom: 10px;
}

.footer-contact .btn-outline {
  margin-top: 4px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-brand {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  margin-bottom: 0;
  text-align: left;
  width: max-content;
}

.footer-logo {
  width: 100px;
  height: auto;
  flex: 0 0 auto;
}

.footer-divider {
  width: 1px;
  height: 20px;
  background-color: var(--dark-slate-grey);
}

.footer-descriptor {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  color: var(--silver);
}

.footer-details {
  margin-bottom: 24px;
  text-align: right;
}

.footer-details p {
  font-size: 18px;
  line-height: 30px;
  color: var(--silver);
  margin-bottom: 8px;
}

.footer-details a {
  color: var(--light-sea-green);
}

.footer-details a:hover {
  color: var(--deep-aqua);
}

.footer-email {
  margin-bottom: 12px;
}

.footer-email a {
  color: var(--white);
  font-size: 18px;
  line-height: 34px;
  font-weight: 700;
}

.footer-email a:hover {
  color: var(--light-sea-green);
}

.footer-phone {
  margin-bottom: 6px;
}

.footer-phone,
.footer-phone a {
  color: var(--silver);
  font-size: 12px;
  line-height: 28px;
  font-weight: 500;
}

.footer-locations {
  margin-top: 10px;
  color: #8F8F8F;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
}

.footer-details .footer-locations {
  font-size: 12px;
  line-height: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  transition: color 0.2s ease;
  margin-bottom: 28px;
  transform: scale(1.2);
  transform-origin: center right;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
}

.social-link:hover {
  color: var(--white);
}

.footer-keyword-line {
  font-size: 11px;
  line-height: 18px;
  color: var(--dark-slate-grey);
  text-align: right;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-copyright {
  font-size: 14px;
  line-height: 22px;
  color: var(--dark-slate-grey);
  text-align: right;
  margin-bottom: 32px;
}

/* SEO CONTENT BLOCK */
.seo-block {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: none;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.seo-block-heading {
  font-size: 16px;
  margin-bottom: 8px;
}

.seo-block-list {
  font-size: 14px;
  padding-left: 20px;
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* --- Mobile (default) --- */
@media (max-width: 767px) {
  .hero-logo {
    top: 24px;
    left: 24px;
  }

  .hero-menu-toggle {
    display: block;
  }

  .hero-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 120px 24px 48px;
    background: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition:
      opacity var(--motion-duration-base) var(--motion-ease-standard),
      visibility var(--motion-duration-base) var(--motion-ease-standard);
    visibility: hidden;
    z-index: 5;
  }

  .section-nav {
    display: none;
  }

  .hero-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: url('../images/icon.svg') center / contain no-repeat;
    opacity: 0.96;
  }

  body.is-loaded .hero-nav {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  body.is-loaded.mobile-nav-open .hero-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .hero-nav a {
    display: block;
    width: auto;
    padding: 0;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 0;
  }

  .hero-logo img {
    width: 128px;
  }

  body.mobile-nav-open .hero-logo {
    opacity: 0;
    pointer-events: none;
  }

  .hero-nav a:hover {
    color: var(--white);
    background: transparent;
  }

  .hero-content {
    gap: 20px;
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  .h1-display {
    font-size: 48px;
    line-height: 52px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 26px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-primary--hero,
  .btn-outline--hero {
    width: 100%;
    text-align: center;
  }

  .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }

  .h1-display {
    font-size: 44px;
    line-height: 42px;
  }

  h1 {
    font-size: 44px;
    line-height: 52px;
  }

  h2 {
    font-size: 32px;
    line-height: 40px;
  }

  h3 {
    font-size: 22px;
    line-height: 30px;
  }

  .footer-contact h3 {
    font-size: 32px;
    line-height: 40px;
  }

  .body-l {
    font-size: 16px;
    line-height: 28px;
  }

  .body-m {
    font-size: 15px;
    line-height: 26px;
  }

  .body-s {
    font-size: 14px;
    line-height: 22px;
  }

  .block-whatwedo,
  .block-howwework,
  .block-building,
  .block-form,
  .block-footer {
    padding: var(--section-padding-mobile) 0;
  }

  .block-2-content {
    padding: 80px var(--container-padding-mobile);
  }

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

  .section-cue {
    display: none;
  }

  .block-2-frame-svg--desktop {
    display: none;
  }

  .block-2-frame-svg--mobile {
    display: block;
    left: -16px;
    width: calc(100% - 8px);
  }

  .block-2-dot {
    display: block;
  }

  .block-2-dot--tl {
    left: -16px;
    top: 0;
    transform: translate(-50%, -50%);
  }

  .block-2-dot--bl {
    left: -16px;
    bottom: 0;
    transform: translate(-50%, 50%);
  }

  .block-2-dot--tr {
    right: 24px;
    left: auto;
    top: 0;
    transform: translate(50%, -50%);
  }

  .block-2-dot--br {
    right: 24px;
    left: auto;
    bottom: 0;
    transform: translate(50%, 50%);
  }

  .block-2-headline {
    font-size: 28px;
    line-height: 36px;
  }

  .block-2-left {
    padding: 24px 0 16px 0;
  }

  .block-2-right {
    padding: 0 0 24px 0;
  }

  .block-2-description {
    font-size: 15px;
    line-height: 26px;
  }

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

  .methodology-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 20px;
  }

  .methodology-list li {
    font-size: 18px;
    line-height: 24px;
    min-height: 0;
  }

  .methodology-list li:not(:last-child)::after {
    display: none;
  }

  .block-form .section-title {
    font-size: 44px;
    line-height: 52px;
  }

  .block-form .section-subtitle {
    margin-bottom: 48px;
  }

  .block-footer .container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 204px;
  }

  .footer-brand {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
  }

  .footer-divider {
    width: 1px;
    height: 20px;
  }

  .body-max-width {
    max-width: none;
  }

  .checkbox-group {
    flex-direction: column;
  }

  .form-row-header {
    padding: 16px 0;
  }

  .form-row-label {
    font-size: 14px;
  }

  .location-selects {
    grid-template-columns: 1fr;
  }

  .footer-details,
  .footer-social,
  .footer-keyword-line,
  .footer-copyright {
    text-align: left;
    justify-content: flex-start;
  }

  .form-submit-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .h1-display {
    font-size: 72px;
    line-height: 80px;
  }

  h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .block-2-content {
    padding: 100px 40px;
  }

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

  .block-2-frame-svg {
    left: -32px;
    width: calc(100% + 32px);
  }

  .block-2-left {
    padding: 32px 24px 24px 0;
  }

  .block-2-right {
    padding: 0 24px 32px 0;
  }

  .block-2-frame-line--vertical-right {
    display: none;
  }

  .block-2-dot--tl,
  .block-2-dot--bl {
    left: -32px;
  }

  .block-2-dot--tr,
  .block-2-dot--br {
    display: none;
  }

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

  .section-nav {
    top: 28px;
    right: 40px;
    gap: 12px;
  }

  .section-nav a {
    font-size: 9px;
    line-height: 12px;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  /* Default styles apply */
}
.section-cue-stack,
.section-cue-dashes {
  gap: 4px;
}
