/* =========================================================
   GIDORAH — Deep Tech Investment & Research Studio
   ========================================================= */

/* ---------------------------------------------------------
   Custom Properties
   --------------------------------------------------------- */
:root {
  /* Brand */
  --color-black: #000000;
  --color-orange: #FE4901;

  /* Surfaces */
  --color-surface: #000000;
  --color-surface-raised: #0a0a0a;
  --color-surface-card: #111111;
  --color-surface-card-border: #1a1a1a;

  /* Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #999999;
  --color-text-muted: #666666;

  /* Interactive */
  --color-link: #FE4901;
  --color-link-hover: #ff6a2e;

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-section: 10rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 640px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 800ms;
  --duration-reveal: 1000ms;
}

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

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

body {
  min-height: 100svh;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.wrapper {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---------------------------------------------------------
   Scroll Reveal
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal[data-reveal-delay="100"] { transition-delay: 100ms; }
.reveal[data-reveal-delay="150"] { transition-delay: 150ms; }
.reveal[data-reveal-delay="200"] { transition-delay: 200ms; }
.reveal[data-reveal-delay="300"] { transition-delay: 300ms; }
.reveal[data-reveal-delay="350"] { transition-delay: 350ms; }
.reveal[data-reveal-delay="400"] { transition-delay: 400ms; }

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition:
    opacity 600ms var(--ease-out-expo),
    transform 600ms var(--ease-out-expo),
    background-color var(--duration-base) ease;
}

.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav--scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) ease;
}

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

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  width: 80px;
  height: auto;
}

/* Mobile menu button */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__burger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-primary);
  transition: transform var(--duration-base) var(--ease-out-expo);
}

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--color-black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 99;
}

.nav--open .nav__overlay {
  display: flex;
}

.nav__overlay-link {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  transition: color var(--duration-fast) ease;
}

.nav__overlay-link:hover {
  color: var(--color-orange);
}

/* Burger animation when open */
.nav--open .nav__burger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav--open .nav__burger-line:nth-child(2) {
  opacity: 0;
}

.nav--open .nav__burger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------
   Hero — Art Carousel
   --------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.hero__carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1500ms var(--ease-out-expo);
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Craft 6 — Ken Burns: slow drift on active slide */
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.04) translate(-0.5%, -0.3%); }
}

.hero__slide--active img {
  animation: ken-burns 6s ease-out forwards;
}

/* Bottom gradient for soft edge */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--color-black), transparent);
  z-index: 2;
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(
    to bottom,
    var(--color-text-muted),
    transparent
  );
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ---------------------------------------------------------
   Identity
   --------------------------------------------------------- */
.identity {
  padding: var(--space-section) 0;
  text-align: center;
}

.identity__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.identity__logo {
  width: 280px;
  height: auto;
}

.identity__tagline {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.identity__description {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: var(--max-width-narrow);
}

/* ---------------------------------------------------------
   Pillars
   --------------------------------------------------------- */
.pillars {
  padding: var(--space-2xl) 0 var(--space-section);
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  background-color: var(--color-surface-card);
  border: 1px solid var(--color-surface-card-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-base) ease;
}

.pillar:hover {
  border-color: #333;
}

.pillar__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.pillar__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pillar__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.pillar__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.pillar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-link);
  transition: color var(--duration-fast) ease;
}

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

.pillar__cta-arrow {
  display: inline-block;
  transition:
    transform 200ms ease,
    color 200ms ease;
}

.pillar__cta:hover .pillar__cta-arrow {
  transform: translate(3px, -3px);
}

/* ---------------------------------------------------------
   Edge Statement
   --------------------------------------------------------- */
.edge {
  padding: var(--space-section) 0;
  text-align: center;
}

.edge__text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.edge__cursor {
  display: inline-block;
  color: var(--color-orange);
  font-weight: 300;
  animation: cursor-blink 600ms steps(1) infinite;
  opacity: 0;
}

.edge__cursor--visible {
  opacity: 1;
}

.edge__cursor--hidden {
  opacity: 0;
  animation: none;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------------------------------------------------------
   Testimonials — Marquee
   --------------------------------------------------------- */
.testimonials {
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 0;
  animation: marquee-scroll 60s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:hover .marquee__track--reverse {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__title-card {
  flex-shrink: 0;
  width: 340px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-surface-card-border);
  border-radius: 10px;
}

.marquee--reverse {
  margin-top: 0;
}

@keyframes marquee-scroll-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee__track--reverse {
  animation: marquee-scroll-reverse 60s linear infinite;
}

.work-card {
  flex-shrink: 0;
  width: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background:
    radial-gradient(
      200px circle at var(--glow-x, -200px) var(--glow-y, -200px),
      rgba(254, 73, 1, 0.07) 0%,
      transparent 100%
    ),
    var(--color-surface-card);
  border: 1px solid var(--color-surface-card-border);
  border-radius: 10px;
  transition:
    transform var(--duration-base) ease,
    border-color var(--duration-base) ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: #333;
}

.work-card__text {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.work-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work-card__category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.work-card__arrow {
  color: var(--color-text-muted);
  transition:
    transform 200ms ease,
    color 200ms ease;
}

.work-card:hover .work-card__arrow {
  transform: translate(3px, -3px);
  color: var(--color-orange);
}

/* Craft 9 — Testimonial cursor glow */
.testimonial {
  position: relative;
  flex-shrink: 0;
  width: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      200px circle at var(--glow-x, -200px) var(--glow-y, -200px),
      rgba(254, 73, 1, 0.07) 0%,
      transparent 100%
    ),
    var(--color-surface-card);
  border: 1px solid var(--color-surface-card-border);
  border-radius: 10px;
  transition:
    transform var(--duration-base) ease,
    border-color var(--duration-base) ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  border-color: #333;
}

.testimonial__quote {
  flex: 1;
  font-size: var(--text-sm);
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.testimonial__cite {
  display: block;
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.testimonial__logo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: contain;
  opacity: 0.7;
}

.testimonial__cite a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) ease;
}

.testimonial__cite a:hover {
  color: var(--color-link-hover);
}

/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */
.team {
  padding: var(--space-section) 0;
}

.team__header {
  margin-bottom: var(--space-2xl);
}

.team__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.team__subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
}

.team__grid {
  display: flex;
  gap: var(--space-xl);
}

.member {
  max-width: 320px;
}

.member__photo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.member__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--duration-base) ease;
}

.member__photo-wrap:hover .member__photo {
  filter: brightness(0.6);
}

.member__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: var(--space-md);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
}

.member__photo-wrap:hover .member__overlay {
  opacity: 1;
}

.member__social {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.member__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition:
    opacity var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.member__social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.member__social-link img,
.member__social-link svg {
  width: 24px;
  height: auto;
  filter: brightness(0) invert(1);
}

.member__social-link svg {
  filter: none;
  color: #fff;
}

.member__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.member__bio {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
}


/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact {
  padding: var(--space-section) 0 var(--space-3xl);
  text-align: center;
}

.contact__inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.contact__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.contact__text {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Craft 8 — Magnetic button (transform driven by JS) */
.contact__button {
  display: inline-block;
  padding: 16px 48px;
  background-color: var(--color-orange);
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition:
    background-color var(--duration-fast) ease,
    transform var(--duration-base) var(--ease-out-expo);
}

.contact__button:hover {
  background-color: var(--color-link-hover);
  transform: translateY(-2px);
}

.contact__dm {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) ease;
}

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

.contact__dm span {
  display: inline-block;
  transition: transform var(--duration-fast) ease;
}

.contact__dm:hover span {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  background-color: #ffffff;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer__logo {
  width: 80px;
  height: auto;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer__social-link {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity var(--duration-fast) ease;
}

.footer__social-link:hover {
  opacity: 1;
}

.footer__social-link img {
  height: 24px;
  width: auto;
  filter: brightness(0);
}

/* ---------------------------------------------------------
   Marquee Speed Slider
   --------------------------------------------------------- */
.marquee__speed {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.marquee__speed-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.marquee__speed-icon {
  font-size: var(--text-sm);
  user-select: none;
  opacity: 0.6;
  transition: opacity var(--duration-fast) ease;
}

.marquee__speed-label:hover .marquee__speed-icon {
  opacity: 1;
}

.marquee__speed-input {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 2px;
  background: var(--color-surface-card-border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.marquee__speed-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--color-orange);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) ease;
}

.marquee__speed-input::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.marquee__speed-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--color-orange);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------
   Craft 1 — Tagline text reveal (clip-path)
   Parent h1 has .reveal so the IntersectionObserver fires,
   but the h1 itself stays visible. Children animate via
   .is-revealed > .text-reveal — no specificity conflicts.
   --------------------------------------------------------- */
.identity__tagline.reveal {
  opacity: 1;
  transform: none;
}

.text-reveal {
  display: block;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition:
    clip-path var(--duration-reveal) var(--ease-out-expo),
    opacity var(--duration-reveal) var(--ease-out-expo);
}

.text-reveal[data-reveal-delay="200"] { transition-delay: 200ms; }
.text-reveal[data-reveal-delay="350"] { transition-delay: 350ms; }

.is-revealed > .text-reveal {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* ---------------------------------------------------------
   Craft 2 — Custom cursor dot
   --------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    width 300ms var(--ease-out-expo),
    height 300ms var(--ease-out-expo),
    background-color 300ms ease,
    opacity 300ms ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor--active {
  width: 40px;
  height: 40px;
  background-color: rgba(254, 73, 1, 0.15);
  border: 1.5px solid var(--color-orange);
}

.cursor--visible {
  opacity: 1;
}

/* ---------------------------------------------------------
   Craft 3 — Pillar card 3D tilt
   --------------------------------------------------------- */
.pillar {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------------------------------------------------------
   Craft 4 — Scroll progress bar
   --------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background-color: var(--color-orange);
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Craft 5 — Footer logo & icons hover color
   --------------------------------------------------------- */
.footer__logo {
  transition: filter var(--duration-base) var(--ease-out-expo);
}

.footer__logo:hover {
  filter:
    brightness(0)
    saturate(100%)
    invert(27%)
    sepia(95%)
    saturate(3000%)
    hue-rotate(11deg)
    brightness(101%)
    contrast(105%);
}

.footer__social-link img {
  transition: filter var(--duration-base) ease;
}

.footer__social-link:hover img {
  filter:
    brightness(0)
    saturate(100%)
    invert(27%)
    sepia(95%)
    saturate(3000%)
    hue-rotate(11deg)
    brightness(101%)
    contrast(105%);
}

/* ---------------------------------------------------------
   Craft 7 — Background noise grain
   --------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  transform: translateZ(0);
}

/* ---------------------------------------------------------
   Craft 10 — Identity logo parallax (driven by JS)
   --------------------------------------------------------- */
.identity__logo {
  will-change: transform;
}

/* ---------------------------------------------------------
   Responsive — Tablet (991px)
   --------------------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --space-section: 6rem;
  }

  .identity__logo {
    width: 220px;
  }

  .pillars__grid {
    gap: 16px;
  }

  .member__photo-wrap {
    width: 120px;
    height: 120px;
  }
}

/* ---------------------------------------------------------
   Responsive — Mobile Large (767px)
   --------------------------------------------------------- */
@media (max-width: 767px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --space-section: 5rem;
  }

  .nav__link {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__inner {
    padding: 0 var(--space-md);
  }

  .wrapper {
    padding: 0 var(--space-md);
  }

  .identity__logo {
    width: 180px;
  }

  .pillars__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team__grid {
    flex-direction: row;
    gap: var(--space-lg);
  }

  .member__photo-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .member {
    max-width: 100%;
  }

  .testimonial,
  .work-card {
    width: 280px;
  }
}

/* ---------------------------------------------------------
   Responsive — Mobile Small (479px)
   --------------------------------------------------------- */
@media (max-width: 479px) {
  :root {
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-lg: 1rem;
    --space-section: 4rem;
    --space-lg: 2rem;
  }

  .hero__scroll {
    display: none;
  }

  .identity__inner {
    gap: var(--space-md);
  }

  /* Edge statement — breathing room */
  .edge__text {
    padding: 0 var(--space-md);
  }

  /* Pillars — tighter on small screens */
  .pillar__image-wrap {
    max-height: 200px;
  }

  /* Marquee cards — shrink for narrow screens */
  .marquee {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 4%,
      black 96%,
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 4%,
      black 96%,
      transparent 100%
    );
  }

  .testimonial,
  .work-card {
    width: 240px;
    padding: 20px;
  }

  .marquee__title-card {
    width: 240px;
    padding: 20px;
  }

  .testimonial__logo {
    width: 40px;
    height: 40px;
  }

  .marquee__speed-input {
    width: 100px;
  }

  /* Team — single column, constrained photos */
  .team__grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }

  .member__photo-wrap {
    width: 120px;
    height: 120px;
  }

  /* Contact — full-width button */
  .contact__inner {
    padding: 0 var(--space-md);
  }

  .contact__button {
    width: 100%;
    padding: 14px 24px;
  }

  /* Footer — compact */
  .footer {
    padding: var(--space-xl) 0;
  }

  .footer__logo {
    width: 60px;
  }

  .footer__social {
    gap: var(--space-md);
  }
}

/* ---------------------------------------------------------
   Reduced Motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .text-reveal {
    clip-path: none !important;
    opacity: 1 !important;
  }

  .nav {
    opacity: 1;
    transform: none;
  }

  .hero__slide {
    transition: none;
  }

  .cursor {
    display: none;
  }

  .grain {
    display: none;
  }
}

/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor {
    display: none;
  }
}
