/* ==========================================================================
   ENDARS 3D — DARK LUXURY / CYBER-NOIR PORTFOLIO DESIGN SYSTEM
   Obsidian surfaces, frosted glass, electric cobalt & antique gold accents
   ========================================================================== */

:root {
  --bg-void: #07060a;
  --bg-deep: #0d0b12;
  --bg-card: rgba(18, 15, 23, 0.76);
  --bg-card-solid: #120f17;
  --bg-elevated: rgba(28, 22, 34, 0.84);

  --border-hairline: rgba(245, 236, 228, 0.085);
  --border-cobalt: rgba(204, 53, 67, 0.44);
  --border-gold: rgba(229, 154, 70, 0.42);

  --accent-cobalt: #cc3543;
  --accent-cobalt-soft: rgba(204, 53, 67, 0.15);
  --accent-gold: #e59a46;
  --accent-gold-soft: rgba(229, 154, 70, 0.14);
  --accent-emerald: #34d399;

  --text-main: #f6f2ee;
  --text-muted: #a99fa8;
  --text-dim: #706571;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-luxury: 0 24px 64px rgba(0, 0, 0, 0.72);
  --shadow-glow-blue: 0 0 42px rgba(204, 53, 67, 0.20);
  --shadow-glow-gold: 0 0 42px rgba(229, 154, 70, 0.16);

  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1280px;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(circle at 14% 8%, rgba(204, 53, 67, 0.13), transparent 38%),
    radial-gradient(circle at 86% 22%, rgba(229, 154, 70, 0.10), transparent 36%),
    radial-gradient(circle at 50% 92%, rgba(168, 38, 52, 0.09), transparent 44%);
  overflow-x: hidden;
  position: relative;
}

/* Subtle architectural grid & film atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 25%, transparent 80%);
}

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

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

.container {
  width: min(var(--container-max), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(5, 7, 12, 0.76);
  border-bottom: 1px solid var(--border-hairline);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.25), rgba(217, 174, 95, 0.25));
  border: 1px solid rgba(217, 174, 95, 0.45);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-gold);
  box-shadow: var(--shadow-glow-blue);
}

.brand span.sub {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 5px;
  border-radius: var(--radius-pill);
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s var(--transition-smooth);
}

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

.nav-links a.active {
  background: linear-gradient(135deg, rgba(204, 53, 67, 0.26), rgba(204, 53, 67, 0.08));
  color: var(--text-main);
  border: 1px solid var(--border-cobalt);
  box-shadow: 0 4px 18px rgba(204, 53, 67, 0.22);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.26);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #a7f3d0;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.28s var(--transition-smooth);
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

.btn-primary {
  background: linear-gradient(135deg, #c63341 0%, #8f1d28 100%);
  color: #fff;
  border-color: rgba(242, 133, 143, 0.38);
  box-shadow: 0 10px 28px rgba(180, 38, 52, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(204, 53, 67, 0.52);
}

.btn-gold {
  background: linear-gradient(135deg, rgba(217, 174, 95, 0.2), rgba(217, 174, 95, 0.06));
  color: #f5deb0;
  border-color: var(--border-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, rgba(217, 174, 95, 0.32), rgba(217, 174, 95, 0.14));
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--border-hairline);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  border: 1px solid rgba(217, 174, 95, 0.28);
  margin-bottom: 18px;
}

.eyebrow.cobalt {
  color: #f4959e;
  background: var(--accent-cobalt-soft);
  border-color: rgba(204, 53, 67, 0.32);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
}

.tech-tag.gold {
  color: #f0d290;
  border-color: rgba(217, 174, 95, 0.32);
  background: rgba(217, 174, 95, 0.09);
}

.tech-tag.blue {
  color: #f49da5;
  border-color: rgba(204, 53, 67, 0.34);
  background: rgba(204, 53, 67, 0.10);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: linear-gradient(95deg, #ffffff 0%, #f2949d 48%, #f0ad5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-hairline);
}

.metric-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-main);
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Hero Featured Showreel Frame */
.hero-Stage {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  padding: 14px;
  box-shadow: var(--shadow-luxury), var(--shadow-glow-blue);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-dim);
}

.stage-dots {
  display: flex;
  gap: 6px;
}

.stage-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.stage-dots i:first-child { background: #d9ae5f; }
.stage-dots i:nth-child(2) { background: #4d8dff; }

.hero-reel-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9 / 13.5;
  max-height: 540px;
  margin-inline: auto;
  background: #030508;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-reel-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-hud-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(6, 9, 16, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-hud-title strong {
  display: block;
  font-size: 0.88rem;
}

.video-hud-title span {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--accent-gold);
}

.sound-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-main);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.2s;
}

.sound-btn:hover {
  background: rgba(77, 141, 255, 0.28);
  border-color: var(--border-cobalt);
}

/* ==========================================================================
   SECTIONS & BENTO PORTFOLIO GRID
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 54ch;
  margin-top: 10px;
}

/* Bespoke Bento Showcase (handles 9:16 vertical + 16:9 horizontal naturally) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--transition-smooth), border-color 0.35s, box-shadow 0.35s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 141, 255, 0.35);
  box-shadow: var(--shadow-luxury), var(--shadow-glow-blue);
}

.bento-card.gold-accent:hover {
  border-color: rgba(217, 174, 95, 0.42);
  box-shadow: var(--shadow-luxury), var(--shadow-glow-gold);
}

.col-5-tall { grid-column: span 5; grid-row: span 2; }
.col-7 { grid-column: span 7; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.card-media {
  position: relative;
  overflow: hidden;
  background: #04060a;
  flex: 1;
  min-height: 250px;
}

.col-5-tall .card-media {
  min-height: 520px;
}

.card-media video,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--transition-smooth);
}

.bento-card:hover .card-media video,
.bento-card:hover .card-media img {
  transform: scale(1.025);
}

.card-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.card-sound-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.card-body {
  padding: 22px 24px 24px;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.88), rgba(9, 13, 22, 0.98));
  border-top: 1px solid var(--border-hairline);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CASE STUDY BLOCKS (PROJECTS PAGE)
   ========================================================================== */
.case-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  align-items: center;
  box-shadow: var(--shadow-luxury);
}

.case-block.portrait-layout {
  grid-template-columns: 0.72fr 1.28fr;
}

.case-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: #04060b;
}

.case-media.portrait {
  max-width: 360px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
}

.case-media.landscape {
  aspect-ratio: 16 / 9;
}

.case-media video,
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-details h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 8px 0 12px;
}

.case-details .lead {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-hairline);
}

.spec-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.spec-item strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text-main);
  border-color: var(--border-cobalt);
  background: var(--accent-cobalt-soft);
}

/* ==========================================================================
   3D INTERACTIVE VIEWPORT LAB (lab3d.html)
   ========================================================================== */
.viewport-shell {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, #111a2e 0%, #060911 72%);
  border: 1px solid var(--border-cobalt);
  box-shadow: var(--shadow-luxury), var(--shadow-glow-blue);
  overflow: hidden;
  height: min(72vh, 660px);
  min-height: 480px;
}

#yamato-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#yamato-canvas:active {
  cursor: grabbing;
}

.vp-hud-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
  flex-wrap: wrap;
}

.vp-stats-box {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(6, 9, 16, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.vp-stats-box strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.vp-controls-dock {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(6, 9, 16, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.vp-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vp-group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}

.vp-btn {
  padding: 7px 13px;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.vp-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.09);
}

.vp-btn.active {
  color: #fff;
  background: rgba(77, 141, 255, 0.25);
  border-color: var(--border-cobalt);
}

.vp-btn.gold-active.active {
  color: #f8e2b2;
  background: rgba(217, 174, 95, 0.24);
  border-color: var(--border-gold);
}

.vp-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, 0.86);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-cobalt);
  transition: opacity 0.35s;
}

.vp-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   SERVICES, WORKFLOW & BRIEF CALCULATOR (contact.html & index.html)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cobalt);
}

.service-card.featured {
  border-color: var(--border-gold);
  background: linear-gradient(165deg, rgba(25, 24, 22, 0.85), rgba(11, 15, 26, 0.92));
  box-shadow: var(--shadow-glow-gold);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-cobalt-soft);
  border: 1px solid var(--border-cobalt);
  color: var(--accent-cobalt);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 18px;
}

.service-card.featured .service-icon {
  background: var(--accent-gold-soft);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "✦ ";
  color: var(--accent-gold);
  margin-right: 6px;
}

.price-line {
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price-line strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--accent-gold);
}

.price-line span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Interactive Brief Generator */
.brief-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.glass-panel {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
}

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

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 11px;
  border: 1px solid var(--border-hairline);
  background: rgba(5, 8, 15, 0.85);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cobalt);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-option {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chip-option.selected {
  color: #fff;
  background: rgba(77, 141, 255, 0.24);
  border-color: var(--border-cobalt);
}

.brief-preview-box {
  padding: 18px;
  border-radius: 12px;
  background: #050810;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #c8d4ec;
  white-space: pre-wrap;
  margin: 16px 0 20px;
  line-height: 1.55;
}

/* ==========================================================================
   FOOTER & REVEAL ANIMATION
   ========================================================================== */
.site-footer {
  margin-top: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--border-hairline);
  background: rgba(4, 6, 10, 0.85);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  transition: all 0.2s;
}

.social-links a:hover {
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

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

/* ==========================================================================
   ORIGIN OS 7 — INTERACTIVE FROSTED LIQUID GLASS & AMBER-CRIMSON EDGE REFRACTION
   Applied only to appropriate elevated cards, stage frames, and glass panels
   ========================================================================== */
.bento-card,
.service-card,
.case-block,
.glass-panel,
.hero-Stage,
.viewport-shell {
  --mx: 50%;
  --my: 50%;
  --glass-alpha: 0;
  position: relative;
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  background: linear-gradient(
    155deg,
    rgba(26, 20, 30, 0.72) 0%,
    rgba(14, 11, 18, 0.82) 100%
  );
}

/* Soft internal OriginOS frosted sheen following cursor */
.bento-card::before,
.service-card::before,
.case-block::before,
.glass-panel::before,
.hero-Stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: var(--glass-alpha);
  transition: opacity 0.38s ease;
  background: radial-gradient(
    460px circle at var(--mx) var(--my),
    rgba(229, 154, 70, 0.13) 0%,
    rgba(204, 53, 67, 0.085) 38%,
    transparent 72%
  );
  mix-blend-mode: screen;
}

/* Razor-thin 1.2px iridescent crimson-amber specular border rim following cursor */
.bento-card::after,
.service-card::after,
.case-block::after,
.glass-panel::after,
.hero-Stage::after,
.viewport-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.25px;
  pointer-events: none;
  z-index: 4;
  opacity: calc(0.22 + var(--glass-alpha) * 0.78);
  transition: opacity 0.32s ease;
  background: radial-gradient(
    320px circle at var(--mx) var(--my),
    rgba(255, 192, 112, 0.92) 0%,
    rgba(214, 54, 70, 0.78) 42%,
    rgba(255, 255, 255, 0.06) 76%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* Ambient cursor halo on dark background (subtle atmospheric OriginOS light) */
.ambient-cursor-glow {
  position: fixed;
  width: 560px;
  height: 560px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(229, 154, 70, 0.055) 0%,
    rgba(204, 53, 67, 0.045) 36%,
    transparent 70%
  );
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .case-block,
  .case-block.portrait-layout,
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .col-5-tall, .col-7, .col-6 {
    grid-column: span 12;
  }
  .col-5-tall .card-media {
    min-height: 440px;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .nav-links a {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
  .status-pill {
    display: none;
  }
}
