@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #191c12;
  --text: #faffb5;
  --brand: #f2ff36;
  --callout-bg: #22261b;
  --space-section: clamp(3rem, 8vw, 5.5rem);
  --space-gutter: clamp(1.25rem, 4vw, 3rem);
  --content-max: 112rem;
  /* Was 1.1rem / 1.5rem — now 5× the divider’s former gap for space under line and under lead */
  --hero-after-divider: calc(1.1rem * 5);
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-ease-line: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-dur-hero: 1.58s;
  --reveal-dur-section: 1.42s;
  --reveal-dur-item: 1.18s;
  --reveal-dur-footer: 1.72s;
  --reveal-dur-rule: 1.55s;
}

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

html {
  scroll-behavior: smooth;
}

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

  .btn-email {
    transition: none;
  }

  .btn-email:hover {
    transform: none;
    box-shadow: none;
    filter: none;
  }

  .hero .anim-in:not(.hero__rule),
  .impact .anim-in,
  .impact .impact-list--animate li,
  .bg-mark.anim-in {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .hero .hero__rule.anim-in {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: scaleX(1) !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "General Sans", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Soft yellow bloom from the top-right — scrolls with the page (under main, z-index 1) */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 90% 68% at 98% -14%,
      rgba(242, 255, 54, 0.14) 0%,
      rgba(242, 255, 54, 0.05) 34%,
      rgba(242, 255, 54, 0.02) 52%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 76% 58% at 96% 3%,
      rgba(250, 255, 181, 0.07) 0%,
      transparent 58%
    );
}

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

.bg-mark {
  position: relative;
  z-index: 0;
  /* 50% larger than min(42rem, 92vw) */
  width: min(63rem, 138vw);
  max-width: 100%;
  margin: clamp(3rem, 10vw, 6rem) auto 0;
  pointer-events: none;
  opacity: 0.85;
}

.bg-mark img {
  display: block;
  width: 100%;
  max-width: 63rem;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.logo-link {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  width: clamp(11rem, 28vw, 14.5rem);
  height: auto;
}

@media (max-width: 959px) {
  .logo-img {
    width: clamp(16.5rem, 42vw, 21.75rem);
  }
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-gutter) 0;
}

.hero {
  position: relative;
  z-index: 1;
  /* No top padding — hero photo stays flush to the top of the layout; space above logo is on .hero__logo */
  padding-top: 0;
}

.hero__shell {
  --hero-col-gap: clamp(2rem, 4vw, 4rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero__track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero__logo {
  /* Was ~1× gutter on the section; now 3× that space above the logo only */
  padding-top: calc(var(--space-gutter) * 3);
  /* Space before the rule */
  margin-bottom: clamp(10px, 1.15vw, 20px);
  line-height: 0;
}

.hero__rule {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  height: 1px;
  margin-bottom: var(--hero-after-divider);
  background-color: var(--brand);
  opacity: 0.95;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__visual {
  width: 100%;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

@media (min-width: 960px) {
  .hero__shell {
    /* 3× prior gap between copy column and image */
    --hero-col-gap: clamp(6rem, 12vw, 12rem);
    display: grid;
    /* ~30% copy / ~70% image */
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    column-gap: var(--hero-col-gap);
    row-gap: 0;
    align-items: start;
    /* Shell has a large min-height for the photo; without this, extra height stretches rows apart */
    align-content: start;
    padding-right: 0;
    container-type: inline-size;
    /* Image column ≈ 70% of row after gap; reserve 4:3 height for overlap fix */
    min-height: calc((100cqi - var(--hero-col-gap)) * 0.7 * 900 / 1200);
  }

  .hero__logo {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__rule {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 3;
  }

  .hero__track {
    max-width: none;
  }

  .hero__visual {
    position: absolute;
    top: 0;
    right: 0;
    width: calc((100% - var(--hero-col-gap)) * 0.7);
    margin-top: 0;
    z-index: 1;
    min-width: 0;
  }
}

.lead {
  margin: 0 0 var(--hero-after-divider);
  max-width: 36ch;
  font-weight: 300;
  /* ~10% larger than prior clamp(1.2rem, 1.35vw + 1.05rem, 1.65rem) */
  font-size: clamp(1.32rem, calc(1.485vw + 1.155rem), 1.815rem);
  line-height: 1.45;
}

.callout {
  border: 1px solid var(--brand);
  border-radius: 0.75rem;
  /* 50% more than prior clamp(1.5rem, 2.5vw, 2rem) */
  padding: clamp(2.25rem, 3.75vw, 3rem) clamp(2.25rem, 3.75vw, 3rem);
  max-width: calc(42ch * 1.3);
  background-color: var(--callout-bg);
  box-shadow:
    0 0 0 1px rgba(242, 255, 54, 0.1),
    0 0 28px rgba(242, 255, 54, 0.12),
    0 0 52px rgba(242, 255, 54, 0.06),
    inset 0 0 22px rgba(242, 255, 54, 0.04);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: clamp(0.85rem, 2vw, 1.25rem);
}

.hero__frame {
  border-radius: 0;
  overflow: hidden;
  line-height: 0;
}

.hero__photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.impact {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--space-section) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "headline"
    "list"
    "contact";
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 960px) {
  .impact__grid {
    /* ~60% headline + contact / ~40% list (list spans both rows) */
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    grid-template-areas:
      "headline list"
      "contact list";
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
}

.impact__list-wrap {
  grid-area: list;
}

.contact-block {
  grid-area: contact;
}

.impact__headline {
  grid-area: headline;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  /* Prior step × 0.9 (~10% smaller than clamp(3.33rem, 5.04vw+1.8rem, 6.03rem)) */
  font-size: clamp(2.997rem, calc(4.536vw + 1.62rem), 5.427rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 22ch;
}

.impact__headline-accent {
  color: var(--brand);
}

/* Mobile: headline ~20% smaller than the fluid scale above */
@media (max-width: 959px) {
  .impact__headline {
    font-size: clamp(
      calc(2.997rem * 0.8),
      calc((4.536vw + 1.62rem) * 0.8),
      calc(5.427rem * 0.8)
    );
  }
}

.contact-block__label {
  margin: 0 0 0.75rem;
  font-weight: 300;
}

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* ~30% larger than 0.65rem / 1.35rem / 0.5rem / 0.95em */
  padding: calc(0.65rem * 1.3) calc(1.35rem * 1.3);
  border-radius: calc(0.5rem * 1.3);
  background-color: var(--brand);
  color: var(--bg);
  font-weight: 400;
  font-size: calc(0.95em * 1.3);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
}

.btn-email:hover {
  transform: translateY(-5px) scale(1.04);
  filter: brightness(1.12) saturate(1.08);
  box-shadow:
    0 0 0 1px rgba(242, 255, 54, 0.65),
    0 0 28px 4px rgba(242, 255, 54, 0.55),
    0 0 56px 14px rgba(242, 255, 54, 0.35),
    0 0 88px 28px rgba(242, 255, 54, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.btn-email:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.impact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.impact-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.85rem;
  font-weight: 300;
}

.impact-list li:last-child {
  margin-bottom: 0;
}

/* Thin stroke arrow — editorial / high-end list marker */
.impact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 1.05rem;
  height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M3.5 10h11.5M11.5 5.5l5 4.5-5 4.5' stroke='%23F2FF36' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat 0 50% / contain;
  opacity: 0.92;
}

/* —— Entrance: fade + blur —— */
@keyframes reveal-hero {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hero-rule-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes reveal-section {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes reveal-footer {
  from {
    opacity: 0;
    filter: blur(20px);
    transform: translate3d(0, 34px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero .anim-in:not(.hero__rule) {
  opacity: 0;
  animation: reveal-hero var(--reveal-dur-hero) var(--reveal-ease) forwards;
  animation-delay: var(--anim-delay, 0ms);
}

/* Horizontal line draw — replaces blur fade on the rule */
.hero .hero__rule.anim-in {
  opacity: 1;
  filter: none;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hero-rule-draw var(--reveal-dur-rule) var(--reveal-ease-line) forwards;
  animation-delay: var(--anim-delay, 0ms);
}

/* Stable pre-animation state (no :not(.is-revealed) — avoids one frame at opacity:1 when the class flips) */
.impact .anim-in {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 20px, 0);
}

.impact.is-revealed .anim-in {
  animation: reveal-section var(--reveal-dur-section) var(--reveal-ease) both;
  animation-delay: var(--anim-delay, 0ms);
}

.impact .impact-list--animate li {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 14px, 0);
}

.impact.is-revealed .impact-list--animate li {
  animation: reveal-section var(--reveal-dur-item) var(--reveal-ease) both;
}

.impact.is-revealed .impact-list--animate li:nth-child(1) {
  animation-delay: 0.52s;
}
.impact.is-revealed .impact-list--animate li:nth-child(2) {
  animation-delay: 0.7s;
}
.impact.is-revealed .impact-list--animate li:nth-child(3) {
  animation-delay: 0.88s;
}
.impact.is-revealed .impact-list--animate li:nth-child(4) {
  animation-delay: 1.06s;
}
.impact.is-revealed .impact-list--animate li:nth-child(5) {
  animation-delay: 1.24s;
}
.impact.is-revealed .impact-list--animate li:nth-child(6) {
  animation-delay: 1.42s;
}
.impact.is-revealed .impact-list--animate li:nth-child(7) {
  animation-delay: 1.6s;
}

.bg-mark.anim-in {
  opacity: 0;
  filter: blur(18px);
  transform: translate3d(0, 28px, 0) scale(0.97);
}

.bg-mark.anim-in.is-revealed {
  animation: reveal-footer var(--reveal-dur-footer) var(--reveal-ease) both;
}

@media (scripting: none) {
  .hero .anim-in:not(.hero__rule) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .hero .hero__rule.anim-in {
    opacity: 1 !important;
    filter: none !important;
    animation: none !important;
    transform: scaleX(1) !important;
  }

  .impact .anim-in,
  .impact .impact-list--animate li,
  .bg-mark.anim-in {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }
}

