/* ═══════════════════════════════════════════════════════════════
   Prisma Akatsuki — Editorial Studio Design
   Tagline: "Where Vision Meets Dawn"
   Human-crafted. Clean. Alive.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #F5F4F0;
  --bg-alt: #ECEAE3;
  --bg-dark: #111110;
  --bg-dark-2: #1A1918;
  --text: #111110;
  --text-muted: #6B6963;
  --text-faint: #A8A49E;
  --accent: #C8440A;
  --accent-warm: #E07B3B;
  --white: #FAFAF8;
  --border: rgba(17, 17, 16, 0.1);
  --border-dark: rgba(255, 255, 255, 0.08);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  overflow-x: clip;
  /* clip is stronger than hidden — prevents iOS scroll bounce sidescroll */
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ── Reset links / buttons ──────────────────────────────────── */
a,
button {
  color: inherit;
  text-decoration: none;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Custom cursor default hide native cursor */
@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button {
    cursor: none;
  }
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  pointer-events: none;
  z-index: 9998;
  /* initial pos to avoid top-left flicker before mouse move */
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), opacity 0.3s;
}

.cursor-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  /* inverted to white over dark by mix-blend-mode */
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cursor-hover {
  width: 56px !important;
  height: 56px !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.cursor-has-text {
  width: 72px !important;
  height: 32px !important;
  background: var(--white);
  border-color: var(--white) !important;
  border-radius: 20px;
}

.cursor-has-text .cursor-text {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  body,
  a,
  button {
    cursor: auto;
  }
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.body-lg {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
}

.label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.on-dark {
  color: var(--white);
}

.on-dark .body-lg,
.on-dark .label-text {
  color: rgba(250, 250, 248, 0.55);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL — every .reveal starts hidden, JS adds .is-visible
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.is-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;
}

.reveal-delay-4 {
  transition-delay: 0.45s;
}

.reveal-delay-5 {
  transition-delay: 0.6s;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 32px;
  /* never let container bleed past viewport */
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Desktop floating pill + Mobile drawer
   ═══════════════════════════════════════════════════════════════ */
.nav-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  /* prevent nav pill from touching screen edges */
  pointer-events: none;
  box-sizing: border-box;
}

.desktop-nav {
  pointer-events: all;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 10px 16px;
  background: rgba(245, 244, 240, 0.88);
  border: 1px solid rgba(17, 17, 16, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(17, 17, 16, 0.07), 0 1px 4px rgba(17, 17, 16, 0.06);
  transition: all 0.3s var(--ease-out);
  /* safety clamp so nav never exceeds viewport */
  max-width: calc(100vw - 32px);
  overflow: hidden;
}

.desktop-nav.scrolled {
  background: rgba(245, 244, 240, 0.97);
  box-shadow: 0 8px 40px rgba(17, 17, 16, 0.12);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  margin-right: 36px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-logo-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-logo-sub {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -2px;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(17, 17, 16, 0.06);
}

.nav-cta {
  margin-left: 16px;
  padding: 9px 20px;
  background: var(--text);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
}

/* ── Mobile bar ────────────────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  padding: 0 20px;
  background: rgba(245, 244, 240, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  z-index: 500;
}

.hamburger {
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: all 0.35s var(--ease-out);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-wrap {
    display: none !important;
  }

  .mobile-bar {
    display: flex !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO — Immersive Full-Screen 3D Background Layout
   ═══════════════════════════════════════════════════════════════ */
.hero.hero--immersive {
  min-height: 100vh;
  padding: 140px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Full-Screen 3D Interactive Canvas Backdrop */
.hero-bg-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Vignette overlay over 3D background for crisp text legibility */
.hero.hero--immersive::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 244, 240, 0.45) 0%, rgba(245, 244, 240, 0.88) 75%, var(--bg) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Foreground Content */
.hero-container-front {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-center-content {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 6.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  hyphens: manual;
  -webkit-hyphens: manual;
  word-break: normal;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--accent), #f43f5e, var(--accent));
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: textShine 4s linear infinite;
  display: inline-block;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

.hero-desc {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  background: var(--text);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: background 0.25s var(--ease-out), transform 0.2s;
}

.btn-solid:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease-out);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero.hero--immersive {
    padding: 120px 0 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-dark .body-lg {
  color: rgba(250, 250, 248, 0.5);
}

.section-header {
  margin-bottom: 72px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 80px 0;
  }
}

.section-num {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 60px;
}

.section-dark .section-divider {
  background: var(--border-dark);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES — Editorial list style (not generic cards)
   ═══════════════════════════════════════════════════════════════ */
.services-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  width: 100%;
}

.service-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  z-index: 1;
  min-width: 0;
}

/* Staggered Grid Sizes for Bento Box */
.service-item:nth-child(1) { grid-column: span 8; min-height: 440px; }
.service-item:nth-child(2) { grid-column: span 4; min-height: 440px; }
.service-item:nth-child(3) { grid-column: span 5; min-height: 440px; }
.service-item:nth-child(4) { grid-column: span 7; min-height: 440px; }

@media (max-width: 1024px) {
  .service-item:nth-child(1), .service-item:nth-child(2),
  .service-item:nth-child(3), .service-item:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .service-item:nth-child(1), .service-item:nth-child(2),
  .service-item:nth-child(3), .service-item:nth-child(4) {
    grid-column: span 12;
    min-height: 380px;
    padding: 36px 24px;
  }
}

/* Floating shadow on hover */
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(17, 17, 16, 0.08);
  border-color: rgba(200, 68, 10, 0.2);
}

/* Premium cursor-following spotlight glow */
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 600px at var(--mouse-x, 100%) var(--mouse-y, 100%), rgba(200, 68, 10, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}

.service-item:hover::before {
  opacity: 1;
}

/* Giant Number Watermark (God Leveled Aesthetic) */
.service-num {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-display);
  font-size: clamp(8rem, 12vw, 14rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  opacity: 0.03;
  z-index: -1;
  transition: all 0.6s var(--ease-out);
  pointer-events: none;
}

.service-item:hover .service-num {
  transform: scale(1.05) translate(-10px, -10px);
  opacity: 0.06;
  color: var(--accent);
}

.service-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  transition: all 0.5s var(--ease-out);
}

.service-item:hover .service-name {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-desc-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  transition: color 0.5s var(--ease-out);
  flex-grow: 1;
}

.service-item:hover .service-desc-text {
  color: var(--text);
}

.service-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.pill {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  background: rgba(17, 17, 16, 0.05);
  color: var(--text-muted);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}

.service-item:hover .pill {
  background: rgba(200, 68, 10, 0.08);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(200, 68, 10, 0.1);
}

.service-item:hover .pill:nth-child(1) { transition-delay: 0.05s; }
.service-item:hover .pill:nth-child(2) { transition-delay: 0.1s; }
.service-item:hover .pill:nth-child(3) { transition-delay: 0.15s; }
.service-item:hover .pill:nth-child(4) { transition-delay: 0.2s; }

/* Elegant Arrow placement for Bento */
.service-arrow {
  position: absolute;
  top: 48px;
  right: 48px;
  transition: transform 0.5s var(--ease-out);
}

@media (max-width: 768px) {
  .service-arrow {
    top: 36px;
    right: 24px;
  }
}

.service-item:hover .service-arrow {
  transform: translate(6px, -6px);
}

.arrow-circle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: all 0.5s var(--ease-out);
  background: rgba(255,255,255,0.01);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.arrow-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.service-item:hover .arrow-circle {
  border-color: transparent;
  color: #fff;
  transform: rotate(-45deg) scale(1.1);
  box-shadow: 0 12px 24px rgba(200, 68, 10, 0.25);
}

.service-item:hover .arrow-circle::before {
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — Horizontal rule style editorial grid
   ═══════════════════════════════════════════════════════════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  min-width: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  min-width: 0;
  box-sizing: border-box;
  z-index: 1;
}

@media (max-width: 480px) {
  .portfolio-item {
    padding: 32px 24px;
    min-height: 340px;
  }
}

/* Premium cursor-following spotlight glow */
.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200, 68, 10, 0.06), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 32px 64px rgba(17, 17, 16, 0.08);
  border-color: rgba(200, 68, 10, 0.2);
}

.portfolio-item:hover::before {
  opacity: 1;
}

/* Subtle gradient line on bottom */
.portfolio-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  border-radius: 4px;
}

.portfolio-item:hover::after {
  transform: scaleX(1);
}

.portfolio-cat {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s var(--ease-out);
}

.portfolio-item:hover .portfolio-cat {
  color: var(--accent);
}

.portfolio-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 16px 0 8px;
  transition: all 0.4s var(--ease-out);
}

.portfolio-item:hover .portfolio-name {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transform: translateX(4px);
}

.portfolio-desc-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color 0.4s var(--ease-out);
}

.portfolio-item:hover .portfolio-desc-text {
  color: var(--text);
}

.portfolio-arrow {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.4s var(--ease-out);
}

.portfolio-item:hover .portfolio-arrow {
  color: var(--accent);
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   MOTTO — Full width dark section with scroll parallax
   ═══════════════════════════════════════════════════════════════ */
.motto-section {
  background: var(--bg-dark);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.motto-canvas {
  position: absolute;
  /* Centered vertical portal — not full bleed */
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  /* Let height fill the section naturally */
  z-index: 0;
  pointer-events: none;
  /* Soft edge fade so it blends into dark bg */
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 40%, transparent 100%);
}

#motto-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.motto-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.motto-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 32px;
}

.motto-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 32px;
}

.motto-headline span {
  color: var(--accent);
}

.motto-subtext {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250, 250, 248, 0.5);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ═══════════════════════════════════════════════════════════════
   TEAM — Hierarchical Org Chart
   ═══════════════════════════════════════════════════════════════ */

/* ── God-Leveled Bento Grid ──────────────────────────────── */
.team-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  max-width: 1140px;
  margin: 40px auto 0;
  box-shadow: none;
}

.team-tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  grid-column: span 2;
  aspect-ratio: 3/4;
}

.team-tile:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(200, 68, 10, 0.4);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(200, 68, 10, 0.2);
  z-index: 10;
}

.team-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(200, 68, 10, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.team-tile:hover::after {
  opacity: 1;
}

.team-tile--half {
  grid-column: span 3;
  aspect-ratio: 1/1;
}

.team-tile--third {
  grid-column: span 2;
  aspect-ratio: 3/4;
}

@media (max-width: 900px) {
  .team-bento { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-tile--half, .team-tile--third { grid-column: span 1; aspect-ratio: 1/1; }
}

@media (max-width: 500px) {
  .team-bento { grid-template-columns: 1fr; }
  .team-tile--half, .team-tile--third { grid-column: span 1; aspect-ratio: 4/5; }
}

.team-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(40%) contrast(1.1) brightness(0.8);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .team-tile:hover .team-tile-img {
    filter: grayscale(0%) contrast(1.05) brightness(1);
    transform: scale(1.08);
  }
}

.team-tile.is-active .team-tile-img {
  filter: grayscale(0%) contrast(1.05) brightness(1);
}

.team-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(17,17,16,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .team-tile:hover .team-tile-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.team-tile.is-active .team-tile-overlay {
  opacity: 1;
  pointer-events: auto;
}

.team-tile-info {
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  .team-tile:hover .team-tile-info {
    transform: translateY(0);
  }
}

.team-tile.is-active .team-tile-info {
  transform: translateY(0);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-top: 8px;
}

.team-card-role {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
  margin-top: 4px;
}

.team-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.team-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.team-socials a:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .team-tile-img { transition: filter 0.1s linear; }
  .team-tile-overlay { transition: opacity 0.1s linear; }
  .team-tile-info { transform: none !important; transition: none; }
  .team-socials a { transition: background 0.1s linear; }
  .team-socials a:hover { transform: none; }
}

/* ── Badge variants ─────────────────────────── */
.team-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.team-badge-v2 {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.team-tile:hover .team-badge-v2 {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
}

.team-badge-v2--ceo { border-color: #fbbf24; color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.team-badge-v2--president { border-color: #60a5fa; color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.team-badge-v2--founder { border-color: #f87171; color: #f87171; background: rgba(248, 113, 113, 0.1); }
.team-badge-v2--cto { border-color: #34d399; color: #34d399; background: rgba(52, 211, 153, 0.1); }
.team-badge-v2--vp { border-color: #a78bfa; color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.team-badge-v2--exec { border-color: #f472b6; color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.team-badge-v2--security { border-color: #38bdf8; color: #38bdf8; background: rgba(56, 189, 248, 0.1); }
.team-badge-v2--hr { border-color: #fb923c; color: #fb923c; background: rgba(251, 146, 60, 0.1); }
.team-badge-v2--pm { border-color: #a3e635; color: #a3e635; background: rgba(163, 230, 53, 0.1); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT — Reimagined
   ═══════════════════════════════════════════════════════════════ */
.contact-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(200, 68, 10, 0.4);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(96, 165, 250, 0.2);
  bottom: -50px;
  left: 10%;
}

.contact-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-width: 0;
}

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-lede {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  color: rgba(250, 250, 248, 0.6);
  line-height: 1.8;
  margin-top: 16px;
  margin-bottom: 40px;
  max-width: 460px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-detail-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,250,248,0.4);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.detail-value:hover {
  color: var(--accent);
}

/* Glassmorphic Form Card */
.glass-card-form {
  background: rgba(17, 17, 16, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

@media (max-width: 500px) {
  .glass-card-form {
    padding: 24px;
  }
}

.form-row {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.6);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(200, 68, 10, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(250, 250, 248, 0.25);
}

.btn-glow {
  transition: all 0.4s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 24px rgba(200, 68, 10, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
footer {
  background: var(--bg-dark-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer-left {
    align-items: center;
  }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 68, 10, 0.2);
}

.footer-logo em {
  font-style: normal;
  color: var(--accent);
}

.footer-collab-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 250, 248, 0.5);
  line-height: 1.5;
  max-width: 320px;
}

.footer-center, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 800px) {
  .footer-center, .footer-right {
    align-items: center;
  }
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 250, 248, 0.5);
}

.footer-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-socials a {
  color: rgba(250, 250, 248, 0.5);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.footer-socials a:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(250, 250, 248, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   FORM SELECT & LIVE FEEDBACK NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(250,250,248,0.4)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-select option {
  background: #181716;
  color: #FAFAF8;
}

.form-feedback-toast {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 14px;
  animation: fadeIn 0.3s var(--ease-out);
}

.form-feedback--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-feedback--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON PRELOADER (Ultra-fast perceived rendering)
   ═══════════════════════════════════════════════════════════════ */
.skeleton-preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s var(--ease-out);
  pointer-events: none;
}

.skeleton-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.skeleton-shimmer-wrap {
  width: 90%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.skeleton-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-logo-bar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e4e2dc 25%, #f2f0ea 50%, #e4e2dc 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
}

.skeleton-text-pill {
  width: 140px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e4e2dc 25%, #f2f0ea 50%, #e4e2dc 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
}

.skeleton-hero-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.skeleton-line {
  background: linear-gradient(90deg, #e4e2dc 25%, #f2f0ea 50%, #e4e2dc 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite;
  border-radius: 8px;
}

.skeleton-line--title {
  width: 80%;
  height: 48px;
}

.skeleton-line--subtitle {
  width: 60%;
  height: 36px;
}

.skeleton-line--desc {
  width: 70%;
  height: 16px;
  margin-top: 8px;
}

.skeleton-line--btn {
  width: 180px;
  height: 48px;
  border-radius: 12px;
  margin-top: 12px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}