@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;
  --glow-primary: rgba(242, 255, 54, 0.14);
  --glow-secondary: rgba(250, 255, 181, 0.07);
  --space-section: clamp(3rem, 8vw, 5.5rem);
  --space-gutter: clamp(1.25rem, 4vw, 3rem);
  --content-max: 112rem;
  --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):not(.callout--hero-overlay),
  .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 .callout.callout--hero-overlay.anim-in {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: translate(-50%, -50%) !important;
  }

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

  .callout__shine,
  .impact__headline-accent {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--text);
    color: var(--text);
  }

  .callout__scroll-icon {
    animation: none !important;
    transform: none !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%,
      var(--glow-primary) 0%,
      color-mix(in srgb, var(--glow-primary), transparent 64%) 34%,
      color-mix(in srgb, var(--glow-primary), transparent 84%) 52%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 76% 58% at 96% 3%,
      var(--glow-secondary) 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;
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.hero__shell {
  position: relative;
  width: 100%;
}

.hero__top {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.hero__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.hero .logo-img {
  width: clamp(9.5rem, 20vw, 12.5rem);
}

.hero__visual {
  width: 100%;
}

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

/* Fade photo into page background / next section */
.hero__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: clamp(4.5rem, 28vw, 14rem);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--bg), transparent 72%) 38%,
    color-mix(in srgb, var(--bg), transparent 18%) 72%,
    var(--bg) 100%
  );
}

.hero__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  height: 1px;
  margin: 0;
  background-color: var(--brand);
  opacity: 0.95;
  transform-origin: left center;
}

.lead {
  flex: 1 1 14rem;
  margin: 0;
  max-width: min(58ch, 100%);
  font-weight: 300;
  font-size: clamp(0.9375rem, 0.28vw + 0.82rem, 1.0625rem);
  line-height: 1.5;
  text-align: right;
  text-wrap: balance;
}

@media (max-width: 719px) {
  .hero__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .lead {
    max-width: 100%;
    text-align: left;
  }
}

.callout {
  border: 1px solid var(--brand);
  border-radius: 0.75rem;
  /* Normal line-height so text inside .hero__frame (line-height: 0) does not collapse */
  line-height: 1.45;
  /* 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;
  line-height: inherit;
}

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

.callout--hero-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  width: min(calc(100% - clamp(1rem, 4vw, 2rem)), calc(34rem * 1.15));
  max-width: none;
  max-height: min(90%, 32rem);
  overflow: auto;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  font-size: 1.5em;
  padding: clamp(2.15rem, 4.25vw, 3.1rem) clamp(2.15rem, 4.25vw, 3.1rem) clamp(1.55rem, 3.1vw, 2.15rem);
  background-color: color-mix(in srgb, var(--callout-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(242, 255, 54, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

.callout--hero-overlay .callout__body {
  width: 100%;
  text-align: left;
}

.callout--hero-overlay p + p {
  margin-top: clamp(1rem, 2.2vw, 1.6rem);
}

.callout__shine,
.impact__headline-accent {
  font-weight: 600;
  background-image: linear-gradient(
    105deg,
    var(--text) 0%,
    color-mix(in srgb, var(--brand), var(--text) 30%) 38%,
    var(--text) 50%,
    color-mix(in srgb, var(--brand), var(--text) 28%) 62%,
    var(--text) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: text-shine-drift 14s ease-in-out infinite alternate;
}

@keyframes text-shine-drift {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.callout__scroll {
  display: flex;
  margin-top: clamp(1.1rem, 2.5vw, 1.65rem);
  color: color-mix(in srgb, var(--text), transparent 18%);
  text-decoration: none;
  line-height: 0;
  transition: color 0.2s ease;
}

.callout__scroll:hover {
  color: var(--text);
}

.callout__scroll:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 999px;
}

.callout__scroll-icon {
  display: block;
  animation: callout-scroll-nudge 3.2s ease-in-out infinite;
}

@keyframes callout-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(3px);
  }
}

@media (max-width: 959px) {
  .callout--hero-overlay {
    width: min(calc(100% - 1.5rem), calc(32rem * 1.15));
    font-size: 1.2em;
    padding: clamp(1.55rem, 4.6vw, 2.1rem) clamp(1.55rem, 4.6vw, 2.1rem) clamp(1.2rem, 3.5vw, 1.65rem);
  }
}

.hero__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

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

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

.impact__columns {
  grid-area: columns;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: start;
}

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

.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);
  width: 100%;
  max-width: none;
}

/* 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-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  padding: clamp(1.85rem, 4.25vw, 2.85rem) clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--text);
  border-radius: 0.75rem;
  background-color: rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.contact-block__label {
  margin: 0 0 0.75rem;
  font-weight: 300;
  max-width: 18ch;
}

.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 {
  min-width: 0;
  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);
  }
}

/* Same entrance but keeps translate(-50%,-50%) so the overlay stays visually centered */
@keyframes reveal-hero-callout {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(-50%, calc(-50% + 28px), 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(-50%, -50%, 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);
}

.hero .callout.callout--hero-overlay.anim-in {
  animation: reveal-hero-callout 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;
}

/* Stagger in reading order (row pairs across the two columns) */
.impact.is-revealed .impact__columns .impact-list:first-child li:nth-child(1) {
  animation-delay: 0.52s;
}

.impact.is-revealed .impact__columns .impact-list:last-of-type li:nth-child(1) {
  animation-delay: 0.7s;
}

.impact.is-revealed .impact__columns .impact-list:first-child li:nth-child(2) {
  animation-delay: 0.88s;
}

.impact.is-revealed .impact__columns .impact-list:last-of-type li:nth-child(2) {
  animation-delay: 1.06s;
}

.impact.is-revealed .impact__columns .impact-list:first-child li:nth-child(3) {
  animation-delay: 1.24s;
}

.impact.is-revealed .impact__columns .impact-list:last-of-type li:nth-child(3) {
  animation-delay: 1.42s;
}

.impact.is-revealed .impact__columns .impact-list:first-child li:nth-child(4) {
  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):not(.callout--hero-overlay) {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }

  .hero .callout.callout--hero-overlay.anim-in {
    opacity: 1 !important;
    filter: none !important;
    transform: translate(-50%, -50%) !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;
  }
}

