/* Fonts */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --bg: #202020;
  --bg-deep: #181818;
  --bg-deeper: #141414;
  --accent: #f08932;
  --accent-dim: rgba(240, 137, 50, 0.15);
  --accent-glow: rgba(240, 137, 50, 0.25);
  --text: #ffffff;
  --text-secondary: #8e8e8e;
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
}

html.lenis, html.lenis body {
  height: auto;
}
html {
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text);
}

/* Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  clip-path: path('M 10 0 C 15.52 0 20 4.48 20 10 C 20 15.52 15.52 20 10 20 C 4.48 20 0 15.52 0 10 C 0 4.48 4.48 0 10 0 Z');
  transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.3s ease,
              clip-path 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  opacity: 0.9;
}

.cursor.hovering {
  width: 50px;
  height: 50px;
  clip-path: path('M 25 0 C 38.81 0 50 11.19 50 25 C 50 38.81 38.81 50 25 50 C 11.19 50 0 38.81 0 25 C 0 11.19 11.19 0 25 0 Z');
  opacity: 0.5;
}

.cursor.on-logo {
  width: 36px;
  height: 36px;
  clip-path: path('M 18 10 C 28 5, 36 8, 35 17 C 36 28, 18 35, 18 35 C 18 35, 0 28, 1 17 C 0 8, 8 5, 18 10 Z');
  opacity: 0.72;
}

.cursor.on-logo.hovering {
  opacity: 0.58;
}

.cursor.on-accent {
  background: #ffffff;
  opacity: 0.85;
}

.cursor.on-accent.hovering {
  background: #ffffff;
  opacity: 0.5;
}

.cursor.has-action {
  background: radial-gradient(circle, #ffffff 4px, var(--accent) 4px);
}

/* Force cursor: none on all interactive elements so native cursor never shows */
a, button, input, textarea, select, label,
[role="button"], .hoverable {
  cursor: none;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* --- Hero background canvases --- */
#dot-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #202020;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent 0%, var(--bg) 45%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, var(--bg) 45%);
  opacity: 1;
}

#fluid-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  mix-blend-mode: lighten;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

@keyframes fadeToPartial {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.6s ease;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.nav-logo-center::before {
  content: '';
  position: absolute;
  inset: -60px -100px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0.24) 20%, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.04) 60%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.nav-logo-center img {
  height: 29px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  cursor: none;
  transition: background 0.3s ease;
}

.nav-menu-btn:hover {
  background: rgba(255,255,255,0.14);
}

.nav-menu-btn .hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-menu-btn .hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Menu overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #111111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay .menu-close {
  position: absolute;
  top: 24px;
  right: 48px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: background 0.3s ease;
}

.menu-overlay .menu-close:hover {
  background: rgba(255,255,255,0.14);
}

.menu-nav {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-nav li {
  overflow: hidden;
}

.menu-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 5vw, 54px);
  color: var(--text);
  text-decoration: none;
  letter-spacing: 2px;
  display: block;
  transition: color 0.3s ease;
}

.menu-nav a:hover {
  color: var(--accent);
}

.menu-overlay.open .menu-nav a {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-overlay.open .menu-nav li:nth-child(1) a { animation-delay: 0.05s; }
.menu-overlay.open .menu-nav li:nth-child(2) a { animation-delay: 0.10s; }
.menu-overlay.open .menu-nav li:nth-child(3) a { animation-delay: 0.15s; }
.menu-overlay.open .menu-nav li:nth-child(4) a { animation-delay: 0.20s; }
.menu-overlay.open .menu-nav li:nth-child(5) a { animation-delay: 0.25s; }

.menu-overlay .menu-footer {
  position: absolute;
  bottom: 48px;
  color: var(--text-secondary);
  font-size: 16px;
  letter-spacing: 1px;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 48px;
}

#rays-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  animation: fadeToRays 2s ease 3s forwards;
}

@keyframes fadeToRays {
  from { opacity: 0; }
  to   { opacity: 0.35; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 36%;
  background: linear-gradient(to bottom, #111111, transparent);
  pointer-events: none;
  z-index: -1;
}

.hero-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(42px, 7vw, 98px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-heading .line {
  display: block;
}

.hero-heading .outline {
  -webkit-text-stroke: 1.5px var(--text);
  -webkit-text-fill-color: transparent;
}

.hero-heading .accent-dot {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 40px;
  min-height: 3.6em;
}

.hero-sub .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

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

.hero-heading .line:nth-child(1) {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-heading .line:nth-child(2) {
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.5s forwards,
             ctaFlash 0.5s ease 4s both;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(240, 137, 50, 0.4);
}

.hero-cta svg {
  width: 14px;
  height: 14px;
  stroke: var(--bg);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: scrollFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

.hero-scroll-label {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
  width: 56px;
  text-align: center;
}

.hero-scroll-ring {
  width: 56px;
  height: 56px;
  border: 1px solid var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceY 2s ease 3.7s infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section defaults */
.section-label {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3.5vw, 48px);
  letter-spacing: 1px;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* --- Statements --- */
.statements {
  position: relative;
  z-index: 2;
  background: var(--bg-deep);
  padding: 110px 48px 100px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.statements-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.statements-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(100%);
}

.statements-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(24,24,24,0.75);
}

.statements-stage,
.statements-cta,
.statements-sub {
  position: relative;
  z-index: 1;
}

.statements-lead {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.statements-stage {
  position: relative;
  height: 18vw;
  min-height: 140px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 48px;
}

.statement-item {
  position: absolute;
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3.8vw, 63px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text);
  opacity: 0;
  transform: translateY(100%);
  transition: none;
  pointer-events: none;
}

.statement-item.enter {
  animation: stmtEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.statement-item.hold {
  opacity: 1;
  transform: translateY(0);
}

.statement-item.exit {
  animation: stmtExit 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.stmt-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.1em 0.2em 0.15em;
  line-height: 1.1;
  border-radius: 6px;
  margin: 0 2px;
}

.statements-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.35s ease;
}

.statements-cta .cta-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.statements-cta:hover {
  border-color: var(--accent);
  background: rgba(240, 137, 50, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(240, 137, 50, 0.15);
}

.statements-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.statements-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

/* --- Services --- */
.services {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 120px 48px;
}

.services-inner {
  max-width: 1500px;
  margin: 0 auto;
}

.services-header {
  max-width: 720px;
  margin-bottom: 72px;
}

.services-header p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 560px;
}

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

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease,
              transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.service-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover .service-bg-canvas {
  opacity: 1;
}

.service-card > *:not(.service-bg-canvas) {
  position: relative;
  z-index: 1;
}

.service-card.dragging {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(2deg) scale(1.03);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 8px 24px rgba(240, 137, 50, 0.2);
  cursor: grabbing;
  transition: none;
}

.service-card-placeholder {
  border: 2px dashed rgba(240, 137, 50, 0.3);
  border-radius: var(--radius);
  background: rgba(240, 137, 50, 0.03);
}

.service-card:hover {
  border-color: rgba(240, 137, 50, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(240, 137, 50, 0.15), 0 4px 20px rgba(240, 137, 50, 0.08);
}

.service-number {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  color: rgba(240, 137, 50, 0.18);
  letter-spacing: 2px;
  margin-bottom: 24px;
  line-height: 1;
}

.service-icon {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  text-wrap: balance;
  margin-bottom: 14px;
  color: var(--text);
}

.service-card p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.service-tag {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* Quote */
.quote-section {
  position: relative;
  z-index: 2;
  background: var(--bg-deeper);
  padding: 130px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.quote-section::before {
  content: '\201C';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 400px;
  color: rgba(240, 137, 50, 0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.quote-mark {
  font-family: 'Outfit', sans-serif;
  font-size: 56px;
  color: var(--accent);
  line-height: 0.5;
  margin-bottom: 32px;
  opacity: 0.7;
}

.quote-text {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3.2vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.5px;
  max-width: 900px;
  min-height: clamp(80px, 13vw, 165px);
  margin: 0 auto 32px;
  color: var(--text);
  transition: opacity 0.7s ease;
}

.quote-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  white-space: pre;
}

.quote-text .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.quote-attribution {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quote-attribution span {
  color: var(--accent);
}

/* --- Portfolio / bento grid --- */
.portfolio {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 120px 48px;
}

.portfolio-header {
  margin-bottom: 60px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 14px;
}

/* Ultrawide: more columns, no wide spanning needed */
@media (min-width: 1800px) {
  .bento-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  .bento-wide { grid-column: span 1; }
}

.bento-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.bento-item:hover {
  border-color: rgba(240, 137, 50, 0.2);
}

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* Image items */
.bento-img {
  cursor: none;
  background: var(--bg-deep);
}

.bento-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  mix-blend-mode: multiply;
  z-index: 1;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.bento-img:hover::after {
  opacity: 0;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.55);
  filter: brightness(0.78) saturate(0.85);
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-img:hover img {
  transform: scale(1.35);
  filter: brightness(1) saturate(1);
}

.bento-img:hover {
  box-shadow: 0 12px 40px rgba(240, 137, 50, 0.12);
}

/* View-full indicator */
.bento-view {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 3;
}

.bento-view svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

.bento-img:hover .bento-view {
  opacity: 1;
  transform: scale(1);
}

.bento-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(15,15,15,0.9) 0%, transparent 100%);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bento-img:hover .bento-label {
  opacity: 1;
  transform: translateY(0);
}

.bento-label span {
  display: block;
  width: fit-content;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Text items */
.bento-text {
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  text-align: center;
}

.bento-phrase {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.bento-phrase em {
  font-style: italic;
  color: var(--accent);
}

.bento-accent {
  background: linear-gradient(135deg, rgba(240, 137, 50, 0.12) 0%, rgba(240, 137, 50, 0.04) 100%);
  border: 1px solid rgba(240, 137, 50, 0.2);
}

.bento-accent .bento-phrase {
  color: var(--accent);
  font-weight: 700;
}

.bento-quote {
  position: relative;
  overflow: hidden;
}

.bento-quote .bento-phrase {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.5px;
  line-height: 1.45;
}

.bento-quote-mark {
  position: absolute;
  top: -10px;
  left: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 120px;
  line-height: 1;
  color: rgba(240, 137, 50, 0.08);
  pointer-events: none;
}

.bento-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.bento-stat {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -1px;
}

.bento-stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bento-item.reveal {
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.portfolio-footer {
  margin-top: 48px;
  text-align: center;
}

.portfolio-footer p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
}

.portfolio-footer a {
  color: #c8c8c8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-footer a:hover {
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(10,10,10,0.95);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox.open .lightbox-inner {
  cursor: grab;
}

.lightbox-inner {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 60px 24px 40px;
  display: flex;
  justify-content: center;
}

.lightbox img {
  display: block;
  max-width: min(90vw, 900px);
  width: auto;
  -webkit-user-drag: none;
  user-select: none;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
  flex-shrink: 0;
  align-self: flex-start;
}

/* Lightbox navigation arrows */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9002;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.2s ease;
}

.lightbox.open .lightbox-nav {
  opacity: 1;
}

.lightbox-nav:hover {
  background: rgba(240, 137, 50, 0.25);
  border-color: rgba(240, 137, 50, 0.4);
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-nav svg { width: 20px; height: 20px; }
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    top: auto;
    bottom: 24px;
    transform: none;
  }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-nav svg { width: 18px; height: 18px; }
}

/* Thin scrollbar styling */
.lightbox-inner::-webkit-scrollbar { width: 6px; }
.lightbox-inner::-webkit-scrollbar-track { background: transparent; }
.lightbox-inner::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
.lightbox-inner::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  z-index: 9001;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Scroll hint */
.lightbox-scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(240, 137, 50, 0.85);
  padding: 14px 20px 10px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-scroll-hint.visible {
  opacity: 1;
}

.lightbox-scroll-hint svg {
  width: 32px;
  height: 52px;
  stroke: #fff;
}

.lightbox-scroll-hint .scroll-dot {
  animation: scrollDotMove 1.5s ease-in-out infinite;
}

@keyframes scrollDotMove {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(5px); opacity: 0.3; }
}

.lightbox-scroll-hint span {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

/* --- About --- */
.about {
  position: relative;
  z-index: 2;
  background: var(--bg-deep);
  padding: 120px 48px;
  border-top: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
}

.about-stats {
  position: sticky;
  top: 120px;
}

.about-stats .section-label {
  margin-bottom: 40px;
}

.stat-item {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(42px, 5.6vw, 70px);
  color: var(--text);
  line-height: 1;
  letter-spacing: -2px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

.about-content .section-label {
  margin-bottom: 24px;
}

.about-content .section-title {
  margin-bottom: 28px;
}

.about-photo {
  float: left;
  width: 173px;
  height: 173px;
  border-radius: 50%;
  overflow: hidden;
  shape-outside: circle(50%);
  margin: 4px 28px 12px 0;
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.about-photo:hover img {
  transform: scale(1.15);
}

.about-bio {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
}

.about-bio p {
  margin-bottom: 20px;
}

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

.about-bio::after {
  content: '';
  display: block;
  clear: both;
}

.about-name-link {
  color: #c8c8c8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-name-link:hover {
  color: var(--accent);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.highlight-tag {
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--text);
  border: 1px solid rgba(240, 137, 50, 0.3);
  background: rgba(240, 137, 50, 0.06);
  padding: 7px 14px;
  border-radius: 6px;
  text-transform: uppercase;
}

/* --- Contact --- */
.contact {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px;
  overflow: hidden;
}

.contact-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(100%);
}

.contact-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.8) 0%, rgba(20,14,8,0.7) 100%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.contact-left .section-label {
  margin-bottom: 20px;
}

.contact-left .section-title {
  color: var(--text);
  margin-bottom: 20px;
}

.contact-left p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail:hover {
  color: var(--accent);
}

.contact-detail svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  flex-shrink: 0;
}

/* Form Card */
.form-card {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  color: #ffffff;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.form-card:hover {
  border-color: rgba(240, 137, 50, 0.5);
  background: rgba(30, 30, 30, 0.6);
}

.form-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 17px;
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease,
              box-shadow 0.35s ease,
              transform 0.35s ease,
              background 0.3s ease;
}

.form-group input,
.form-group textarea {
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(240, 137, 50, 0.4);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 137, 50, 0.12);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(240, 137, 50, 0.12), 0 8px 24px rgba(240, 137, 50, 0.15);
  transform: translateY(-2px);
}

.form-group input.field-error,
.form-group textarea.field-error {
  border-color: #e05252;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.12);
}

/* Custom dropdown — replaces native <select> for Chromium compatibility */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 22px;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  transition: transform 0.2s ease;
  z-index: 1;
}

.select-wrap.is-open::after {
  transform: rotate(180deg);
}

.custom-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 17px;
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
  transition: border-color 0.3s ease,
              box-shadow 0.35s ease,
              transform 0.35s ease,
              background 0.3s ease;
}

.custom-select.has-value {
  color: #ffffff;
}

.custom-select:hover {
  border-color: rgba(240, 137, 50, 0.4);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 137, 50, 0.12);
}

.custom-select:focus,
.custom-select.is-open {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(240, 137, 50, 0.12), 0 8px 24px rgba(240, 137, 50, 0.15);
  transform: translateY(-2px);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #222222;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.select-wrap.is-open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 10px 16px;
  font-size: 16px;
  font-family: 'Outfit', sans-serif;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  list-style: none;
}

.custom-select-option:first-child {
  color: rgba(255,255,255,0.35);
}

.custom-select-option:hover,
.custom-select-option.is-highlighted {
  background: rgba(240, 137, 50, 0.15);
  color: #ffffff;
}

.custom-select-option.is-selected {
  color: var(--accent);
}

.form-group textarea {
  min-height: 200px;
  resize: vertical;
}

/* Honeypot — hidden from humans, bots fill it */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: none;
  margin-top: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-submit:hover {
  background: #e07820;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240, 137, 50, 0.4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.grecaptcha-badge { visibility: hidden; }

.recaptcha-notice {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 10px;
  margin-bottom: 0;
}

.recaptcha-notice a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  max-width: 360px;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: #ffffff;
  background: #2e2e2e;
  border-left: 4px solid transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateX(calc(100% + 32px));
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

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

.toast.toast--success { border-left-color: var(--accent); }
.toast.toast--error   { border-left-color: #e05252; }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background: #111111;
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.footer-logo img {
  height: 20px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover img {
  filter: contrast(0) sepia(1) saturate(3) hue-rotate(-10deg) brightness(1.15);
  opacity: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer-nav a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  line-height: 0;
}

.footer-social a:hover {
  color: var(--accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}

.footer-bottom a {
  font-size: 14px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-divider {
  color: #ffffff;
  opacity: 0.12;
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

@keyframes brandFlash {
  0%   { color: rgba(255,255,255,0.25); }
  40%  { color: var(--accent); }
  100% { color: rgba(255,255,255,0.25); }
}

.brand-guidelines-link.flashed {
  animation: brandFlash 2s ease forwards;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Service card stagger */
.services-grid .service-card:nth-child(2) { transition-delay: 0.12s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.24s; }

/* Bento grid stagger */
.bento-grid .bento-item:nth-child(2) { transition-delay: 0.15s; }
.bento-grid .bento-item:nth-child(3) { transition-delay: 0.25s; }
.bento-grid .bento-item:nth-child(4) { transition-delay: 0.35s; }
.bento-grid .bento-item:nth-child(5) { transition-delay: 0.45s; }
.bento-grid .bento-item:nth-child(6) { transition-delay: 0.55s; }
.bento-grid .bento-item:nth-child(7) { transition-delay: 0.65s; }
.bento-grid .bento-item:nth-child(8) { transition-delay: 0.75s; }
.bento-grid .bento-item:nth-child(9) { transition-delay: 0.85s; }
.bento-grid .bento-item:nth-child(10) { transition-delay: 0.95s; }
.bento-grid .bento-item:nth-child(11) { transition-delay: 1.05s; }
.bento-grid .bento-item:nth-child(12) { transition-delay: 1.15s; }
.bento-grid .bento-item:nth-child(13) { transition-delay: 1.25s; }
.bento-grid .bento-item:nth-child(14) { transition-delay: 1.35s; }
.bento-grid .bento-item:nth-child(15) { transition-delay: 1.45s; }
.bento-grid .bento-item:nth-child(16) { transition-delay: 1.55s; }

/* Legal header stagger */
.legal-header h1.reveal { transition-delay: 0.1s; }
.legal-header p.reveal  { transition-delay: 0.2s; }

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ctaFlash {
  0%   { background: var(--accent); color: var(--bg); }
  20%  { background: #ffffff; color: #333333; }
  80%  { background: #ffffff; color: #333333; }
  100% { background: var(--accent); color: var(--bg); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollFadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-15px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

@keyframes stmtEnter {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes stmtExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-80px); }
}

/* --- Responsive --- */

/* 1280px: subtle bio text reduction */
@media (max-width: 1280px) {
  .about-bio { font-size: 15px; line-height: 1.6; }
}

@media (max-width: 600px) {
  .about-photo {
    float: none;
    shape-outside: none;
    display: block;
    margin: 0 auto 24px;
  }
}

/* 1024px: tablet + phone landscape */
@media (max-width: 1024px) {
  /* Layout */
  .services-grid { grid-template-columns: 1fr; max-width: 100%; }
  .service-card { padding: 44px 36px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { position: static; display: flex; gap: 40px; flex-wrap: wrap; }
  .about-stats .section-label { width: 100%; margin-bottom: 0; }
  .stat-item { margin-bottom: 0; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }

  /* Typography — applies to tablet portrait, tablet landscape, and phone landscape */
  .about-bio { font-size: 16px; line-height: 1.7; max-width: 640px; }
  .hero-sub { font-size: 12px; letter-spacing: 1.4px; }
  .hero-cta { font-size: 13px; padding: 11px 26px; gap: 8px; letter-spacing: 1.5px; }
  .hero-cta svg { width: 11px; height: 11px; }
  .statements-lead { font-size: 15px; margin-bottom: 24px; }
  .statement-item { font-size: 29px; }
  .statements-cta { font-size: 13px; padding: 11px 26px; gap: 8px; letter-spacing: 1.5px; }
  .quote-text { font-size: 29px; min-height: 210px; }
  .quote-attribution { font-size: 10px; letter-spacing: 1.5px; }
  .section-title { line-height: 1.3; }
  .service-card p { font-size: 16px; }
  .services-header p { font-size: 16px; }
  .contact-left p { font-size: 16px; line-height: 1.7; }
  .portfolio-footer p { font-size: 13px; }
  .bento-phrase { font-size: 15px; }
  .bento-stat { font-size: 28px; }
  .bento-stat-label { font-size: 13px; }
}

/* 768px: phone portrait */
@media (max-width: 768px) {
  /* Navigation */
  .nav { padding: 22px 24px 16px; }
  .nav-logo img { height: 29px; }
  .nav-menu-btn { font-size: 13px; padding: 6px 11px; gap: 6px; margin-top: -4px; }
  .nav-menu-btn .hamburger { gap: 2px; }
  .nav-menu-btn .hamburger span { width: 10px; }
  .menu-overlay .menu-close { right: 24px; }

  /* Cursor (also covered by pointer: coarse below) */
  .cursor { display: none; }
  body { cursor: auto; }

  /* Hero */
  .hero { padding: 0 24px; min-height: 100svh; }
  .hero-heading { line-height: 1.08; }
  .hero-scroll-ring { width: 39px; height: 39px; }
  .hero-scroll svg { width: 14px; height: 14px; }
  .hero-scroll-label { font-size: 6px; width: 39px; }
  .hero-scroll { gap: 6px; }

  /* Toast — bottom full-width on mobile */
  .toast {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
    border-left: none;
    border-top: 4px solid transparent;
    font-size: 17px;
    padding: 20px 24px;
    transform: translateY(100%);
  }
  .toast.toast--visible { transform: translateY(0); }
  .toast.toast--success { border-top-color: var(--accent); }
  .toast.toast--error   { border-top-color: #e05252; }

  /* Statements */
  .statements { padding: 80px 24px; }
  .statements-stage { height: 30vw; min-height: 140px; max-height: 220px; }
  .stmt-badge { padding: 0.02em 0.18em; border-radius: 4px; }

  /* Services */
  .services { padding: 80px 24px; }
  .service-card { padding: 36px 24px; touch-action: pan-y; }

  /* Quote */
  .quote-section { padding: 80px 24px; }

  /* Portfolio */
  .portfolio { padding: 80px 24px; }
  .bento-grid { grid-auto-rows: 160px; }
  .bento-tall { grid-row: span 1; }
  .bento-wide { grid-column: span 1; }
  .bento-label { opacity: 1; transform: translateY(0); font-size: 14px; }
  .bento-label span { font-size: 11px; margin-bottom: 2px; }
  .bento-view { opacity: 1; transform: scale(1); }

  /* About */
  .about { padding: 80px 24px; }
  .about-inner { gap: 40px; }
  .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .about-stats .section-label { grid-column: 1 / -1; margin-bottom: 8px; }

  /* Contact */
  .contact { padding: 80px 24px; }
  .form-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-right { flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* Legal */
  .legal-header { padding: 130px 24px 60px; }
  .legal-inner { padding: 60px 24px 100px; }
  .info-card { grid-template-columns: 1fr; }
}

/* Legal page */
.legal-header {
  position: relative;
  z-index: 1;
  padding: 160px 48px 80px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-header .section-label {
  margin-bottom: 20px;
}

.legal-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 4.9vw, 67px);
  letter-spacing: -1px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}

.legal-header p {
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.legal-body {
  position: relative;
  z-index: 2;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.legal-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 48px 72px;
}

.legal-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section .section-label {
  margin-bottom: 12px;
}

.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1;
}

.legal-section h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 36px 0 14px;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 680px;
}

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

.legal-section a {
  color: #c8c8c8;
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}

.legal-section a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-section ul {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.85;
  font-weight: 300;
  padding-left: 20px;
  margin-bottom: 16px;
  max-width: 680px;
}

.legal-section ul li {
  margin-bottom: 6px;
  padding-left: 4px;
}

.legal-section ul li::marker {
  color: var(--accent);
}

.info-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 24px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.info-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-card-label {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-card-value {
  font-size: 17px;
  color: var(--text);
  font-weight: 400;
}

.info-card-value a {
  color: #c8c8c8;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.info-card-value a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 16px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}

/* Legal page responsive — must come AFTER base legal styles to win by source order */
@media (max-width: 1024px) {
  .legal-inner { padding: 60px 24px 80px; }
  .legal-section p,
  .legal-section ul { font-size: 15px; line-height: 1.6; }
  .legal-section h3 { font-size: 18px; }
  .info-card-value { font-size: 15px; }
}

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

  html { scroll-behavior: auto; }

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

  #fluid-canvas,
  #rays-canvas,
  #dot-pattern { display: none; }

  .statements-video-bg,
  .contact-video-bg { display: none; }

  .hero-heading .line,
  .hero-sub,
  .hero-cta {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* Hide custom cursor on any touch device, regardless of screen size or orientation */
@media (pointer: coarse) {
  .cursor { display: none !important; }
  body { cursor: auto !important; }
}

/* Phone landscape — scale down key elements */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-cta { font-size: 11px; padding: 10px 22px; gap: 7px; letter-spacing: 1.5px; }
  .hero-cta svg { width: 10px; height: 10px; }

  .statements-lead { font-size: 13px; margin-bottom: 22px; }
  .statements-stage { height: 15vw; min-height: 100px; max-height: 168px; margin-bottom: 32px; }
  .statement-item { font-size: 22px; }
  .statements-cta { font-size: 11px; padding: 10px 22px; }

  .quote-attribution { font-size: 8px; letter-spacing: 1.5px; }
  .portfolio-footer p { font-size: 10px; }
}

/* 404 */
.e404-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.e404-bg-number {
  position: absolute;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(280px, 40vw, 560px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.e404-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.e404-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.2s forwards;
}

.e404-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.35s forwards;
}

.e404-heading span { color: var(--accent); }

.e404-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.5s forwards;
}

.e404-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.65s forwards;
}

.e404-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.e404-btn-primary svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.e404-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(240, 137, 50, 0.4);
  color: #fff;
}

.e404-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.35s ease;
}

.e404-btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(240, 137, 50, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(240, 137, 50, 0.15);
  color: var(--text);
}

.e404-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 56px auto 0;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.8s forwards;
}

.e404-nav-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.25,1,0.5,1) 0.9s forwards;
}

.e404-nav-links a {
  font-size: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.e404-nav-links a:hover { color: var(--accent); }
