/* ==========================================================================
   ÍNDICE STUDIO (indicestudio.cl)
   Aesthetic: Apple Minimalism × SearchSystem Technical Archive
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F7;
  --surface-hover: #ECECF0;
  --ink: #0A0A0A;
  --ink-muted: #5A5A62;
  --ink-subtle: #86868F;
  --border: #E5E5EA;
  --border-strong: #1D1D1F;
  --dark-bg: #0A0A0A;
  --dark-surface: #141416;
  --dark-border: #26262A;
  --cobalt: #0052FF;
  --cobalt-hover: #0041CC;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

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

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 22px 48px rgba(0, 0, 0, 0.11);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.22);

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container & Registration Frame */
.page-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.reg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  pointer-events: none;
}

.reg-corner {
  width: 12px;
  height: 12px;
  border-color: #B8B8C0;
  border-style: solid;
  border-width: 0;
}

.reg-corner--tl { border-top-width: 1.5px; border-left-width: 1.5px; }
.reg-corner--tr { border-top-width: 1.5px; border-right-width: 1.5px; }
.reg-corner--bl { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reg-corner--br { border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: opacity 0.25s ease;
}

.brand-lockup:hover {
  opacity: 0.78;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link .slash {
  color: var(--ink-subtle);
  margin-right: 3px;
  transition: color 0.2s ease;
}

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

.nav-link:hover .slash {
  color: var(--cobalt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-apple);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 18px 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav__link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface);
}

.mobile-nav__cta {
  margin-top: 6px;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.28s var(--ease-apple), background-color 0.22s ease, box-shadow 0.28s var(--ease-apple), border-color 0.22s ease, color 0.22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  font-size: 0.72rem;
  padding: 10px 18px;
}

.btn--lg {
  font-size: 0.84rem;
  padding: 16px 30px;
}

.btn--black {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.14);
}

.btn--black:hover {
  background: #202024;
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.22);
}

.btn--outline {
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #FFFFFF;
}

.btn--white {
  background: #FFFFFF;
  color: var(--ink);
}

.btn--white:hover {
  background: #F0F0F4;
  box-shadow: 0 10px 26px rgba(255, 255, 255, 0.16);
}

.btn--cobalt {
  background: var(--cobalt);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
}

.btn--cobalt:hover {
  background: var(--cobalt-hover);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.35);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  flex-shrink: 0;
}

.dot--dark {
  background: var(--ink);
}

.btn--outline:hover .dot--dark {
  background: #FFFFFF;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 58px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 36px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.tech-tag .bracket,
.tech-tag .slash {
  color: var(--ink);
  font-weight: 700;
}

.hero-title {
  font-size: clamp(2.45rem, 4.9vw, 4.15rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 500px;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Floating Graphic */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-float-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  animation: heroFloat 5.6s ease-in-out infinite;
  will-change: transform;
  transition: transform 0.35s var(--ease-apple);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: brightness(1.035) contrast(1.03);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 92% 90% at 50% 50%, #000 72%, transparent 100%);
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   // ÍNDICE AI CONSOLE
   ========================================================================== */
.ai-section {
  padding: 20px 0 42px;
}

.ai-console {
  max-width: 860px;
  margin: 0 auto;
  background: var(--dark-bg);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px 30px 30px;
  box-shadow: var(--shadow-dark);
  border: 1px solid #1F1F24;
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.ai-console:hover {
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.28);
}

.ai-console__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--dark-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  gap: 10px;
}

.ai-console__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.7);
  animation: pulseBlue 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulseBlue {
  0% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(0, 82, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
}

.ai-console__code {
  color: #6E6E78;
  flex-shrink: 0;
}

.ai-form {
  display: flex;
  gap: 10px;
  background: #141418;
  border: 1px solid #2A2A32;
  border-radius: 14px;
  padding: 7px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ai-form:focus-within {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.18);
}

.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  min-width: 0;
}

.ai-input::placeholder {
  color: #787885;
}

.ai-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.ai-presets__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #787885;
  letter-spacing: 0.06em;
}

.ai-chip {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: #C7C7D1;
  background: #17171C;
  border: 1px solid #2A2A32;
  padding: 5px 10px;
  border-radius: 7px;
  transition: all 0.2s ease;
}

.ai-chip:hover {
  color: #FFFFFF;
  border-color: var(--cobalt);
  background: rgba(0, 82, 255, 0.14);
}

.ai-output {
  margin-top: 20px;
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  background: #111114;
  overflow: hidden;
}

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

.ai-col {
  padding: 18px 20px;
  border-right: 1px solid var(--dark-border);
  min-width: 0;
}

.ai-col:last-child {
  border-right: none;
}

.ai-col__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #888894;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.ai-col__value {
  font-size: 0.94rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.4;
  min-height: 2.8em;
}

.ai-output__meta {
  border-top: 1px solid var(--dark-border);
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A0A0AD;
  background: #0D0D10;
}

.ai-whatsapp-btn {
  width: 100%;
  margin-top: 18px;
  padding: 15px 24px;
}

.ai-typing-cursor::after {
  content: '▋';
  color: var(--cobalt);
  margin-left: 2px;
  animation: blink 0.75s infinite;
}

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

/* ==========================================================================
   BENTO WORK GRID & INTERACTIVE HOVER LIFT
   ========================================================================== */
.work-section {
  padding: 14px 0 54px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid transparent;
  min-width: 0;
  transition: transform 0.38s var(--ease-apple), box-shadow 0.38s var(--ease-apple), border-color 0.3s ease, background-color 0.3s ease;
}

.bento-card--light {
  background: var(--surface);
  border-color: #E8E8ED;
}

.bento-card--dark {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-color: #202026;
}

.bento-card--wide {
  grid-column: 1 / -1;
}

/* Clickable Cards Micro-Interactions */
.bento-card--interactive {
  cursor: pointer;
  position: relative;
}

.bento-card--interactive:hover,
.bento-card--interactive:focus-visible {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lift);
  outline: none;
}

.bento-card--light.bento-card--interactive:hover {
  border-color: var(--ink);
  background: #F1F1F5;
}

.bento-card--dark.bento-card--interactive:hover {
  border-color: var(--cobalt);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.bento-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.bento-title {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.bento-title .slash {
  color: var(--cobalt);
}

.bento-indicator {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #D6D6DF;
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.25s var(--ease-apple);
}

.bento-card--interactive:hover .bento-indicator {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.bento-indicator--dark {
  color: #A8A8B3;
  border-color: #2C2C34;
  background: #141418;
}

.bento-card--dark.bento-card--interactive:hover .bento-indicator--dark {
  background: var(--cobalt);
  color: #FFFFFF;
  border-color: var(--cobalt);
}

.bento-media {
  border-radius: 16px;
  overflow: hidden;
  background: #E9E9EE;
  aspect-ratio: 16 / 10;
}

.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-apple);
}

.bento-card--interactive:hover .bento-media img {
  transform: scale(1.045);
}

.bento-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #C8C8D2;
  background: #FFFFFF;
  color: var(--ink);
}

.click-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease-apple), color 0.25s ease;
}

.click-hint--dark {
  color: #9A9AA6;
}

.bento-card--interactive:hover .click-hint {
  transform: translateX(4px);
  color: var(--cobalt);
}

.bento-card--dark.bento-card--interactive:hover .click-hint--dark {
  color: #FFFFFF;
}

.mono-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8A8A96;
  letter-spacing: 0.05em;
}

.mono-caption-dark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* Metrics inside // 02 DATA & PAID MEDIA */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
  padding: 12px 4px;
  align-items: end;
}

.metric-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-value {
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #FFFFFF;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #9A9AA8;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

.metric-chart {
  width: 100%;
  max-width: 220px;
  justify-self: end;
}

/* Split 2-Column Showcase inside // 03 BRANDING, INDUSTRIA & VIDEO */
.split-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-tile {
  border-radius: 16px;
  overflow: hidden;
  background: var(--dark-bg);
  border: 1.5px solid #DCDCE3;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.36s var(--ease-apple), box-shadow 0.36s var(--ease-apple), border-color 0.25s ease;
}

.showcase-tile:hover,
.showcase-tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--ink);
  outline: none;
}

.showcase-tile__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #141416;
}

.showcase-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-apple), filter 0.35s ease;
}

.showcase-tile:hover .showcase-tile__media img {
  transform: scale(1.055);
}

.tile-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(10, 10, 10, 0.76);
  backdrop-filter: blur(8px);
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.showcase-tile:hover .tile-badge {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.68);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.32s var(--ease-apple), background-color 0.25s ease, border-color 0.25s ease;
}

.play-triangle {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #FFFFFF;
}

.showcase-tile:hover .play-badge {
  transform: scale(1.12);
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.showcase-tile__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: var(--dark-bg);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.tile-arrow {
  transition: transform 0.25s var(--ease-apple);
  flex-shrink: 0;
}

.showcase-tile:hover .tile-arrow {
  transform: translate(3px, -2px);
  color: var(--cobalt);
}

.bento-card__bottom--wide {
  padding-top: 4px;
}

/* ==========================================================================
   TRAYECTORIA STRIP
   ========================================================================== */
.trajectory-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: #FAFAFC;
}

.trajectory-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.trajectory-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}

.traj-role {
  color: var(--ink-muted);
}

.traj-stack {
  color: var(--ink-muted);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding-top: 52px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}

.footer-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.footer-meta a:hover {
  color: var(--cobalt);
}

.footer-meta .sep {
  color: #C4C4CC;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-subtle);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   MODALS (GLASSMORPHISM BACKDROP + SWISS ARCHITECTURE)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.28s var(--ease-apple);
}

.modal-overlay.is-visible {
  opacity: 1;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  max-height: 90dvh;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 84px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.34s var(--ease-apple);
}

.modal-dialog--xl {
  max-width: 1040px;
}

.modal-overlay.is-visible .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
  flex-shrink: 0;
}

.modal-header--dark {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-bottom-color: var(--dark-border);
}

.modal-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-kicker--dark {
  color: #5C93FF;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
}

.modal-close--dark {
  color: #FFFFFF;
  border-color: #2E2E36;
}

.modal-close--dark:hover {
  background: #FFFFFF;
  color: var(--ink);
}

.modal-body {
  padding: 26px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-lead {
  color: var(--ink-muted);
  margin-bottom: 22px;
  font-size: 0.96rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: #FAFAFC;
  flex-shrink: 0;
}

.modal-footer__note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* Modal 01: Browser Frames & Live Cases */
.web-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.web-case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.web-case-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: #FFFFFF;
  border: 1.5px solid var(--ink);
}

.browser-frame {
  background: #E9E9EE;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #F4F4F7;
  border-bottom: 1px solid #E0E0E6;
  min-width: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D0D0D8;
}

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  background: #FFFFFF;
  border: 1px solid #E2E2E8;
  padding: 3px 12px;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-visit {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cobalt);
  white-space: nowrap;
  flex-shrink: 0;
}

.browser-visit:hover {
  text-decoration: underline;
}

.browser-viewport {
  aspect-ratio: 16 / 10;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #FFFFFF;
  position: relative;
}

.web-case-card--featured .browser-viewport {
  height: 100%;
  min-height: 280px;
}

.browser-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s var(--ease-apple), object-position 2.2s ease;
}

.browser-frame:hover .browser-viewport img {
  transform: scale(1.03);
  object-position: bottom center;
}

.case-details {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.case-head h4 {
  font-size: 1.08rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-cobalt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: var(--cobalt);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.05em;
}

.case-sector {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-subtle);
  margin-top: 3px;
}

.case-details p {
  font-size: 0.89rem;
  color: var(--ink-muted);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink);
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Modal 02: Data Cases */
.data-cases-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.data-case-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  min-width: 0;
}

.data-case-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.data-case-box__top h4 {
  font-size: 1.08rem;
  font-weight: 800;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-chip {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 0;
}

.kpi-chip strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kpi-chip span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #A2A2B0;
  margin-top: 4px;
}

.data-case-box p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Modal 03A: Branding */
.branding-banner {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  max-height: 260px;
}

.branding-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-cases-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-case-row {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  min-width: 0;
}

.brand-case-row__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.mono-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cobalt);
  flex-shrink: 0;
}

.brand-case-row h4 {
  font-size: 1rem;
  font-weight: 800;
}

.brand-case-row p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Modal 03B: 4-Video Showcase */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.video-shell {
  background: #0A0A0A;
  aspect-ratio: 16 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0A0A0A;
}

.video-meta {
  padding: 16px 18px;
}

.video-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--cobalt);
}

.video-meta h4 {
  font-size: 1rem;
  font-weight: 800;
  margin: 4px 0 6px;
}

.video-meta p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease-apple), transform 0.72s var(--ease-apple);
}

.reveal--delay {
  transition-delay: 0.12s;
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-float-stage {
    max-width: 430px;
  }

  .bento-grid,
  .split-showcase,
  .web-cases-grid,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Fix iOS Safari aspect-ratio + min-height overflow on featured card */
  .web-case-card--featured {
    display: flex;
    flex-direction: column;
  }

  .web-case-card--featured .browser-viewport {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .ai-output__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-col {
    border-right: none;
    border-bottom: 1px solid var(--dark-border);
  }

  .ai-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .main-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 32px 0 28px;
  }

  .ai-console {
    padding: 20px 18px;
  }

  .ai-form {
    flex-direction: column;
  }

  .ai-submit {
    width: 100%;
  }

  .bento-card {
    padding: 20px;
  }

  .modal-overlay {
    padding: 12px;
  }

  .modal-dialog {
    max-height: 92vh;
    max-height: 92dvh;
    border-radius: 20px;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-title {
    font-size: 1.12rem;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-footer {
    padding: 14px 18px;
    gap: 10px;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .case-details {
    padding: 16px;
  }

  .case-links .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-stage,
  .pulse-dot {
    animation: none;
  }

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