:root {
  color-scheme: dark;
  --ink: #030305;
  --ink-soft: #0d0d10;
  --carbon: #14100d;
  --paper: #f8f3e7;
  --muted: rgba(248, 243, 231, 0.72);
  --line: rgba(248, 243, 231, 0.18);
  --gold: #d9b867;
  --cyan: #29e6ff;
  --magenta: #f05acb;
  --ember: #ff6a3d;
  --violet: #7965ff;
  --panel: rgba(13, 13, 16, 0.7);
  --glass: rgba(248, 243, 231, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
  --font-body: Manrope, "Segoe UI", Arial, sans-serif;
  --font-display: Cinzel, Georgia, serif;
  --font-tech: "Space Grotesk", Manrope, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

body.intro-active {
  overflow: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.debug-canvas .site-header,
body.debug-canvas .intro-sequence,
body.debug-canvas .hero-video,
body.debug-canvas .hero-overlay,
body.debug-canvas .beam,
body.debug-canvas .hero-inner,
body.debug-canvas .hero-photo {
  display: none !important;
}

body.debug-canvas .hero {
  min-height: 100svh;
  padding: 0;
  display: block;
  background: #000;
}

body.debug-canvas .three-scene {
  position: fixed;
  z-index: 10;
  opacity: 1;
}

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

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(41, 230, 255, 0.28);
  color: #fff;
}

.intro-sequence {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-sequence.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: saturate(1.25) contrast(1.16);
}

.intro-grid {
  position: absolute;
  inset: auto -20% -20% -20%;
  height: 58%;
  background:
    linear-gradient(rgba(41, 230, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 184, 103, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(760px) rotateX(64deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 16%, transparent 80%);
  animation: gridDrift 2.8s linear infinite;
}

.intro-lasers span,
.beam {
  position: absolute;
  height: 2px;
  width: 52vw;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--gold), transparent);
  box-shadow: 0 0 22px rgba(41, 230, 255, 0.55), 0 0 42px rgba(217, 184, 103, 0.34);
  transform-origin: left center;
  opacity: 0.72;
}

.intro-lasers span:nth-child(1) {
  top: 18%;
  left: -8%;
  transform: rotate(18deg);
  animation: laserSweep 2.2s ease-in-out infinite;
}

.intro-lasers span:nth-child(2) {
  top: 28%;
  right: -18%;
  transform: rotate(152deg);
  animation: laserSweep 2.8s ease-in-out infinite 0.3s;
}

.intro-lasers span:nth-child(3) {
  bottom: 24%;
  left: -10%;
  transform: rotate(-14deg);
  animation: laserSweep 2.5s ease-in-out infinite 0.1s;
}

.intro-lasers span:nth-child(4) {
  bottom: 14%;
  right: -12%;
  transform: rotate(196deg);
  animation: laserSweep 3s ease-in-out infinite 0.6s;
}

.intro-panel {
  position: relative;
  width: min(620px, calc(100% - 40px));
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 243, 231, 0.12), rgba(248, 243, 231, 0.035)),
    rgba(3, 3, 5, 0.64);
  box-shadow: var(--shadow), inset 0 0 48px rgba(41, 230, 255, 0.1);
  backdrop-filter: blur(20px);
  text-align: center;
  overflow: hidden;
  contain: paint;
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, rgba(41, 230, 255, 0.42), transparent);
  transform: translateX(-100%);
  animation: scanPanel 2.4s ease-in-out infinite;
}

.intro-panel > * {
  position: relative;
}

.intro-logo {
  width: min(330px, 82%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 24px rgba(41, 230, 255, 0.28));
}

.intro-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.intro-panel h2 {
  position: relative;
  margin: 0 0 24px;
  font-size: 2.6rem;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.boot-lines {
  display: grid;
  gap: 8px;
  margin: 0 auto 22px;
  color: var(--muted);
  text-align: left;
  max-width: 430px;
}

.boot-lines span {
  opacity: 0;
  transform: translateY(10px);
  animation: bootLine 3.2s ease forwards;
}

.boot-lines span:nth-child(2) {
  animation-delay: 0.35s;
}

.boot-lines span:nth-child(3) {
  animation-delay: 0.7s;
}

.boot-lines span:nth-child(4) {
  animation-delay: 1.05s;
}

.progress-track {
  height: 8px;
  background: rgba(248, 243, 231, 0.12);
  border: 1px solid rgba(248, 243, 231, 0.2);
  overflow: hidden;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), #fff, var(--gold), var(--magenta));
  box-shadow: 0 0 28px rgba(41, 230, 255, 0.55);
  animation: bootProgress 3.4s ease forwards;
}

.skip-intro {
  position: absolute;
  right: 22px;
  bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(3, 3, 5, 0.55);
  padding: 10px 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--max), calc(100% - 36px));
  margin: 14px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(248, 243, 231, 0.14);
  border-radius: 8px;
  background: rgba(3, 3, 5, 0.58);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 3, 5, 0.84);
  border-color: rgba(217, 184, 103, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
}

.brand img {
  width: 174px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(217, 184, 103, 0.24));
}

.brand-text {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: rgba(248, 243, 231, 0.76);
  font-size: 0.92rem;
  font-family: var(--font-tech);
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 231, 0.06);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 42px;
  padding: 92px max(24px, calc((100% - var(--max)) / 2)) 24px;
  border-bottom: 1px solid rgba(248, 243, 231, 0.12);
  isolation: isolate;
}

.hero-video,
.three-scene,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.25) contrast(1.1);
  z-index: -5;
}

.three-scene {
  z-index: -4;
  opacity: 0.9;
}

.hero-overlay {
  z-index: -2;
  background:
    radial-gradient(circle at 18% 18%, rgba(41, 230, 255, 0.28), transparent 28%),
    radial-gradient(circle at 74% 30%, rgba(240, 90, 203, 0.18), transparent 28%),
    radial-gradient(circle at 58% 82%, rgba(217, 184, 103, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(3, 3, 5, 0.94), rgba(3, 3, 5, 0.7) 46%, rgba(3, 3, 5, 0.32));
}

.beam {
  z-index: -1;
  pointer-events: none;
}

.beam-one {
  top: 24%;
  left: -8%;
  transform: rotate(13deg);
  animation: laserSweep 4.5s ease-in-out infinite;
}

.beam-two {
  top: 62%;
  right: -18%;
  transform: rotate(166deg);
  animation: laserSweep 5.4s ease-in-out infinite 0.5s;
}

.beam-three {
  bottom: 18%;
  left: 8%;
  transform: rotate(-8deg);
  animation: laserSweep 6s ease-in-out infinite 1s;
}

.hero-inner {
  width: min(730px, 100%);
  padding-top: 16px;
  overflow: hidden;
}

.hero h1 {
  position: relative;
  margin: 0;
  font-size: 6.6rem;
  line-height: 0.94;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 0 42px rgba(41, 230, 255, 0.24);
}

.draw-title {
  isolation: isolate;
  max-width: 100%;
  contain: layout paint;
  overflow-wrap: normal;
  word-break: keep-all;
}

.draw-title::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 184, 103, 0.22);
  text-shadow: 0.055em 0.055em 0 rgba(217, 184, 103, 0.18);
  filter: blur(0.4px);
  opacity: 0.82;
}

.draw-title::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.05em;
  bottom: -0.12em;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--gold), transparent);
  box-shadow: 0 0 28px rgba(41, 230, 255, 0.58);
  transform-origin: left;
  animation: titleUnderline 2.4s cubic-bezier(.19, 1, .22, 1) both 0.25s;
}

[data-draw-text].is-split .glyph {
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, #ffffff 0%, var(--cyan) 24%, #fff5cf 48%, var(--gold) 66%, var(--magenta) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(248, 243, 231, 0.48);
  opacity: 0;
  transform: translate3d(0, 0.55em, 0) rotateX(78deg) skewX(-7deg);
  transform-origin: center bottom;
  animation:
    glyphIgnite 0.9s cubic-bezier(.19, 1, .22, 1) forwards,
    prismText 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 48ms), calc(1.1s + (var(--i) * 36ms));
}

[data-draw-text].is-split .glyph-word {
  display: inline-block;
  white-space: nowrap;
}

[data-draw-text].is-split .glyph-space {
  display: inline-block;
  width: 0.28em;
}

.kinetic-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kinetic-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 18px rgba(41, 230, 255, 0.65);
  animation: pulseLine 1.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 500;
}

.magnetic-copy {
  border-left: 1px solid rgba(217, 184, 103, 0.44);
  padding: 14px 0 14px 18px;
  overflow: hidden;
}

.magnetic-copy::before {
  content: "";
  position: absolute;
  inset: -10px 0 -10px 0;
  z-index: -1;
  border-radius: 8px;
  background:
    radial-gradient(circle at var(--mx, 12%) var(--my, 46%), rgba(41, 230, 255, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(248, 243, 231, 0.055), transparent 70%);
  opacity: 0.95;
}

.signature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
  margin-top: 18px;
}

.signature-strip span {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  padding: 8px 11px;
  border: 1px solid rgba(248, 243, 231, 0.18);
  border-radius: 8px;
  color: rgba(248, 243, 231, 0.82);
  background: rgba(248, 243, 231, 0.06);
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.signature-strip span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, transparent 34%, rgba(255, 255, 255, 0.34) 50%, transparent 66%, transparent 100%);
  background-size: 230% 100%;
  background-position: -160% 0;
  animation: tagShimmer 3.2s ease-in-out infinite;
  animation-delay: calc(var(--tag-delay, 0) * 1s);
}

.signature-strip span:nth-child(2) {
  --tag-delay: 0.28;
}

.signature-strip span:nth-child(3) {
  --tag-delay: 0.56;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 24px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(248, 243, 231, 0.22);
  border-radius: 8px;
  overflow: hidden;
  font-weight: 800;
  font-family: var(--font-tech);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -120% -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: translateX(-105%) rotate(18deg);
  transition: transform 0.7s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(105%) rotate(18deg);
}

.button-primary {
  color: #050505;
  background: linear-gradient(135deg, var(--cyan), #fff, var(--gold));
  box-shadow: 0 18px 60px rgba(41, 230, 255, 0.24);
}

.button-ghost {
  color: var(--paper);
  background: rgba(248, 243, 231, 0.07);
  backdrop-filter: blur(16px);
}

.button-icon {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
}

.hero-metrics {
  margin-top: 24px;
}

.hero-metrics div {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(248, 243, 231, 0.07);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: var(--font-tech);
}

.hero-photo {
  position: relative;
  min-height: 460px;
  align-self: stretch;
  display: grid;
  align-items: end;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 12% -8% 4%;
  border: 1px solid rgba(217, 184, 103, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 243, 231, 0.11), rgba(248, 243, 231, 0.03)),
    radial-gradient(circle at 25% 18%, rgba(41, 230, 255, 0.18), transparent 34%);
  transform: perspective(900px) rotateY(-9deg) rotateX(4deg);
  box-shadow: var(--shadow), inset 0 0 42px rgba(248, 243, 231, 0.08);
}

.hero-photo img {
  position: relative;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(248, 243, 231, 0.18);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateY(-5deg);
}

.photo-hud {
  position: absolute;
  left: -24px;
  right: 18px;
  bottom: 28px;
  display: grid;
  gap: 8px;
}

.photo-hud span {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(3, 3, 5, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.36);
}

.section {
  position: relative;
  padding: 104px max(24px, calc((100% - var(--max)) / 2));
  overflow: hidden;
  contain: paint;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-heading h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  contain: layout paint;
  margin: 0;
  font-size: 3.3rem;
  line-height: 1.06;
  font-family: var(--heading-font, var(--font-display));
  font-weight: var(--heading-weight, 800);
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: transparent;
  background: var(--heading-gradient, linear-gradient(100deg, #fff 0%, var(--cyan) 28%, #fff2bf 50%, var(--gold) 70%, var(--magenta) 100%));
  background-size: 190% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: headingSheen 7s ease-in-out infinite;
  text-shadow: var(--heading-shadow, none);
}

.section-heading h2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 243, 231, 0.16);
  text-shadow: 0.045em 0.06em 0 rgba(248, 243, 231, 0.12);
  filter: blur(0.2px);
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.split-section {
  --heading-font: var(--font-display);
  --heading-gradient: linear-gradient(104deg, #fff7df 0%, #d9b867 36%, #ff6a3d 72%, #ffffff 100%);
  --heading-shadow: 0 0 34px rgba(217, 184, 103, 0.12);
  background:
    linear-gradient(180deg, #0a0806, #130d0c),
    radial-gradient(circle at 12% 10%, rgba(255, 106, 61, 0.12), transparent 28%);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.glass-panel,
.signal-stack article,
.venture-card,
.timeline-item,
.blog-feature,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(248, 243, 231, 0.1), rgba(248, 243, 231, 0.035)),
    rgba(3, 3, 5, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-panel {
  padding: 32px;
}

.large-copy {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.45;
}

.glass-panel p:not(.large-copy) {
  color: var(--muted);
}

.signal-stack {
  display: grid;
  gap: 14px;
}

.signal-stack article {
  padding: 24px;
  min-height: 154px;
  transform-style: preserve-3d;
}

.signal-stack span,
.card-index,
.timeline-item span,
.blog-copy span {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.84rem;
  font-family: var(--font-tech);
  text-transform: uppercase;
}

.signal-stack h3,
.venture-card h3,
.timeline-item h3,
.blog-copy h3 {
  position: relative;
  margin: 8px 0;
  font-size: 1.45rem;
  font-family: var(--font-tech);
  font-weight: 700;
  color: #fff;
}

.timeline-item h3 {
  color: #14100d;
}

.signal-stack p,
.venture-card p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.dark-band {
  --heading-font: var(--font-tech);
  --heading-weight: 700;
  --heading-gradient: linear-gradient(104deg, #29e6ff 0%, #ffffff 34%, #f05acb 70%, #d9b867 100%);
  --heading-shadow: 0 0 34px rgba(41, 230, 255, 0.16);
  background:
    radial-gradient(circle at 80% 12%, rgba(240, 90, 203, 0.16), transparent 30%),
    radial-gradient(circle at 18% 90%, rgba(41, 230, 255, 0.12), transparent 28%),
    #060608;
}

.dark-band::before,
.gallery-section::before {
  content: "";
  position: absolute;
  inset: auto 0 -16% 0;
  height: 42%;
  background:
    linear-gradient(rgba(248, 243, 231, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 243, 231, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(760px) rotateX(66deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.venture-card {
  position: relative;
  min-height: 300px;
  padding: 26px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.venture-card::after {
  content: "";
  position: absolute;
  inset: auto 0 -25% 18%;
  height: 180px;
  background: radial-gradient(circle, rgba(217, 184, 103, 0.24), transparent 62%);
  pointer-events: none;
}

.venture-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 184, 103, 0.38);
}

.venture-card .role {
  margin-bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.experience-section {
  --heading-font: var(--font-display);
  --heading-gradient: linear-gradient(104deg, #1b1207 0%, #6f4300 42%, #b26a00 72%, #120d08 100%);
  --heading-shadow: none;
  background: linear-gradient(180deg, #f8f3e7, #ded3bf);
  color: #111;
}

.experience-section .eyebrow,
.experience-section .timeline-item span {
  color: #6f4300;
}

.experience-section .section-heading p:last-child,
.experience-section .timeline-item p {
  color: rgba(17, 17, 17, 0.68);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline-item {
  color: #111;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 60px rgba(25, 17, 8, 0.12);
  padding: 24px;
}

.gallery-section {
  --heading-font: var(--font-display);
  --heading-gradient: linear-gradient(104deg, #ffffff 0%, #29e6ff 28%, #d9b867 54%, #ffffff 76%, #7965ff 100%);
  --heading-shadow: 0 0 36px rgba(121, 101, 255, 0.18);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 106, 61, 0.12), transparent 28%),
    radial-gradient(circle at 80% 35%, rgba(41, 230, 255, 0.12), transparent 28%),
    #090909;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid rgba(248, 243, 231, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.42));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.06);
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.blog-section {
  --heading-font: var(--font-display);
  --heading-gradient: linear-gradient(104deg, #ffffff 0%, #f8f3e7 28%, #f05acb 64%, #7965ff 100%);
  --heading-shadow: 0 0 32px rgba(240, 90, 203, 0.16);
  background:
    linear-gradient(180deg, #120d12, #040405),
    radial-gradient(circle at 72% 20%, rgba(121, 101, 255, 0.18), transparent 30%);
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
}

.blog-image {
  min-height: 420px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08);
}

.blog-copy {
  padding: 44px;
  align-self: center;
}

.blog-copy h3 {
  font-size: 2.5rem;
  line-height: 1.06;
}

.blog-copy p {
  color: var(--muted);
}

blockquote {
  margin: 28px 0 12px;
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.55;
}

cite {
  color: var(--gold);
  font-style: normal;
  font-weight: 800;
}

.contact-section {
  --heading-font: var(--font-tech);
  --heading-weight: 700;
  --heading-gradient: linear-gradient(104deg, #29e6ff 0%, #ffffff 34%, #d9b867 68%, #ff6a3d 100%);
  --heading-shadow: 0 0 36px rgba(41, 230, 255, 0.18);
  min-height: 780px;
  background: #030305;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 3, 5, 0.82), rgba(3, 3, 5, 0.56)),
    url("../media/secrettunnel.jpg") center / cover no-repeat;
  opacity: 0.9;
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 42px;
  align-items: start;
}

.call-button {
  margin-top: 16px;
}

.contact-form {
  padding: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(248, 243, 231, 0.82);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(248, 243, 231, 0.22);
  border-radius: 8px;
  color: #101010;
  background: rgba(255, 255, 255, 0.92);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 230, 255, 0.18);
}

.honeypot {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--gold);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px max(24px, calc((100% - var(--max)) / 2));
  border-top: 1px solid rgba(248, 243, 231, 0.12);
  background: #030305;
  color: var(--muted);
}

.site-footer img {
  width: 210px;
  max-width: 44vw;
  filter: drop-shadow(0 0 18px rgba(217, 184, 103, 0.18));
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 52px 24px 24px;
  background: rgba(3, 3, 5, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: calc(100svh - 120px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(248, 243, 231, 0.08);
  padding: 10px 14px;
}

.message-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(41, 230, 255, 0.18), transparent 30%),
    #030305;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}

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

@keyframes bootProgress {
  100% {
    width: 100%;
  }
}

@keyframes bootLine {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanPanel {
  50%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes gridDrift {
  100% {
    background-position: 0 72px, 72px 0;
  }
}

@keyframes laserSweep {
  0%,
  100% {
    opacity: 0.12;
    filter: blur(1px);
  }
  42% {
    opacity: 0.84;
    filter: blur(0);
  }
}

@keyframes glyphIgnite {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 0.55em, 0) rotateX(78deg) skewX(-7deg);
  }

  62% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -0.08em, 0) rotateX(0) skewX(0);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(41, 230, 255, 0.2));
    transform: translate3d(0, 0, 0) rotateX(0) skewX(0);
  }
}

@keyframes prismText {
  50% {
    background-position: 100% 0;
    -webkit-text-stroke-color: rgba(217, 184, 103, 0.58);
  }
}

@keyframes titleUnderline {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes pulseLine {
  50% {
    width: 54px;
    opacity: 0.58;
  }
}

@keyframes tagShimmer {
  0%,
  45% {
    opacity: 0;
    background-position: -160% 0;
  }

  60% {
    opacity: 1;
  }

  72% {
    opacity: 0.7;
    background-position: 120% 0;
  }

  100% {
    opacity: 0;
    background-position: 120% 0;
  }
}

@keyframes headingSheen {
  50% {
    background-position: 100% 0;
    filter: drop-shadow(0 0 18px rgba(217, 184, 103, 0.1));
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 5.2rem;
  }

  .hero-photo {
    display: none;
  }

  .portfolio-layout,
  .blog-feature,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .brand img {
    width: 156px;
  }

  .brand-text {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 3, 5, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 88svh;
    padding: 94px 20px 28px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-copy {
    margin-top: 14px;
    font-size: 1rem;
  }

  .signature-strip {
    gap: 6px;
  }

  .signature-strip span {
    padding: 7px 9px;
    font-size: 0.68rem;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-metrics div {
    min-width: 0;
    padding: 10px;
  }

  .hero-metrics strong {
    font-size: 1.35rem;
  }

  .hero-metrics span {
    margin-top: 5px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .section {
    padding: 78px 20px;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .intro-panel {
    padding: 24px;
  }

  .intro-panel h2 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2.55rem, 12.5vw, 2.82rem);
  }

  .brand img {
    width: 138px;
  }

  .signature-strip {
    width: 100%;
  }

  .signature-strip span {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero-photo img {
    transform: none;
  }

  .hero-photo::before {
    inset: 8% 0 0;
    transform: none;
  }

  .photo-hud {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .blog-copy,
  .glass-panel,
  .contact-form {
    padding: 22px;
  }

  .blog-copy h3 {
    font-size: 2rem;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .intro-sequence {
    display: none;
  }

  body {
    overflow: auto;
  }
}
