/* ============================================
   FRAME VENTURES - Exact Design System & Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-bg-light: #FAFAFA;
  --color-dark-bg: #0D0D0D;
  --color-card-dark: #171717;
  --color-gray-50: #F7F7F8;
  --color-gray-100: #EFEFEF;
  --color-gray-200: #E5E5E5;
  --color-gray-300: #D4D4D4;
  --color-gray-400: #A3A3A3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;
  
  --color-lime: #D6F900;
  --color-lime-hover: #C5E600;

  --font-primary: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --container-max: 1320px;
  --container-padding: 48px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Typography & Section Headers --- */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717A;
  margin-bottom: 16px;
}

.section-label-dark {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A1A1AA;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-black);
}

.section-title-dark {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-black);
  text-transform: uppercase;
  transition: gap 0.2s ease;
}

.link-arrow:hover {
  gap: 12px;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

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

.nav-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #18181B;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 0.6;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #18181B;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 22px;
  padding: 11px;
  margin: -11px;
  z-index: 1101;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   HERO SECTION (LEFT ALIGNED WITH CONTAINER, RIGHT FULL BLEED)
   ============================================ */
.hero {
  position: relative;
  min-height: 560px;
  height: calc(100vh - 68px);
  max-height: 640px;
  margin-top: 68px;
  background-color: #FFFFFF;
  display: grid;
  grid-template-columns: minmax(420px, 44%) 1fr;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-right: 40px;
  padding-left: max(var(--container-padding), calc((100vw - var(--container-max)) / 2 + var(--container-padding)));
  background: #FFFFFF;
  z-index: 2;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--color-black);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.8;
  color: #52525B;
  margin-bottom: 32px;
}

.btn-dark-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 13px 28px;
  border-radius: 9999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.btn-dark-hero:hover {
  background: #27272A;
}

/* Hero Full-Bleed Image Wrap (Full uncropped view) */
.hero-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: #FAFAFA;
}

.hero-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: max(16px, calc((100vw - var(--container-max)) / 2 - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #71717A;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 10;
}

.scroll-line {
  display: inline-block;
  width: 1px;
  height: 36px;
  background: #A1A1AA;
}

/* ============================================
   OUR APPROACH SECTION (BLACK SECTION)
   ============================================ */
.approach {
  background: #000000;
  color: #FFFFFF;
  padding: 100px 0;
}

.approach-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 60px;
  align-items: flex-start;
}

.approach-desc-dark {
  font-size: 13px;
  line-height: 1.9;
  color: #A1A1AA;
  margin-top: 24px;
}

.approach-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.approach-card {
  background: #121212;
  border: 1px solid #27272A;
  border-radius: 4px;
  padding: 28px 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.approach-card:hover {
  transform: translateY(-4px);
  border-color: #3F3F46;
}

.approach-card-icon {
  color: #FFFFFF;
  margin-bottom: 24px;
}

.approach-card-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.approach-card-desc {
  font-size: 11px;
  line-height: 1.7;
  color: #A1A1AA;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
  padding: 90px 0;
  background: #FFFFFF;
  border-bottom: 1px solid #F4F4F5;
}

.portfolio-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.portfolio-inner > * {
  min-width: 0;
}

.portfolio-left .section-title {
  margin-bottom: 24px;
}

.portfolio-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portfolio-slider {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.portfolio-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.portfolio-logo-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-logo {
  font-size: 18px;
  font-weight: 700;
  color: #18181B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-moyu span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-heydealer span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-heydealer strong {
  letter-spacing: -0.1em;
  margin: 0 1px;
}

.mly-box {
  border: 2px solid #000000;
  padding: 4px 10px;
  display: flex;
  gap: 4px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.logo-petdoc span {
  font-size: 20px;
  font-weight: 800;
}

.logo-simpler span {
  font-size: 20px;
  font-weight: 700;
}

.portfolio-nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #E4E4E7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  transition: all 0.2s;
}

.portfolio-nav-btn:hover {
  border-color: #000000;
  color: #000000;
}

/* ============================================
   FOCUS AREA SECTION
   ============================================ */
.focus {
  padding: 100px 0;
  background: #FFFFFF;
}

.focus-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.focus-header-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #71717A;
  text-align: right;
}

.focus-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.focus-card {
  display: block;
  position: relative;
  height: 380px;
  border-radius: 4px;
  overflow: hidden;
  background: #18181B;
  cursor: pointer;
}

.focus-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-card:hover .focus-card-bg {
  transform: scale(1.06);
}

.card-bg-tech {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.4) 48%, rgba(5, 5, 6, 0.82) 100%),
              url("images/focus-deeptech.png?v=20240808_02") center bottom / cover no-repeat;
}

.card-bg-ai {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.88) 0%, rgba(5, 5, 6, 0.4) 48%, rgba(5, 5, 6, 0.82) 100%),
              url("images/focus-aidata.png?v=20240808_02") center bottom / cover no-repeat;
}

.card-bg-nature {
  background: linear-gradient(180deg, rgba(4, 10, 6, 0.85) 0%, rgba(4, 10, 6, 0.35) 45%, rgba(4, 10, 6, 0.8) 100%),
              url("images/focus-sustainability.png?v=20240808_02") center center / cover no-repeat;
}

.card-bg-consumer {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.78) 0%, rgba(8, 8, 10, 0.2) 45%, rgba(8, 8, 10, 0.65) 100%),
              url("images/focus-consumer.png?v=20240808_04") center center / cover no-repeat;
}

.focus-card-overlay {
  position: absolute;
  inset: 0;
  padding: 30px 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #FFFFFF;
  background: transparent;
}

.focus-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 8px;
}

.focus-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.focus-card-desc {
  font-size: 12px;
  line-height: 1.7;
  opacity: 0.85;
}

.focus-card-bottom-icon {
  margin-top: auto;
}

/* ============================================
   PROGRAM SECTION (WITH EXACT MATCHED ICONS)
   ============================================ */
.program {
  padding: 100px 0;
  background: #FAFAFA;
}

.program-inner {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: 60px;
  align-items: flex-start;
}

.program-left .section-title {
  margin-bottom: 32px;
}

.program-right {
  display: flex;
  flex-direction: column;
}

.program-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #71717A;
  margin-bottom: 40px;
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card {
  background: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 4px;
  padding: 56px 28px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.program-card-icon {
  color: #18181B;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.program-card-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #18181B;
  margin-bottom: 14px;
}

.program-card-desc {
  font-size: 11px;
  line-height: 1.8;
  color: #71717A;
}

/* ============================================
   INSIGHTS SECTION (4 COLUMNS)
   ============================================ */
.insights {
  padding: 100px 0;
  background: #FFFFFF;
}

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

.insights-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.insight-card {
  display: block;
}

.insight-card-image {
  position: relative;
  height: 150px;
  background: #18181B;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.insight-bg-1 { background: linear-gradient(135deg, #18181B 0%, #27272A 100%); }
.insight-bg-2 { background: linear-gradient(135deg, #09090B 0%, #1E293B 100%); }
.insight-bg-3 { background: linear-gradient(135deg, #27272A 0%, #3F3F46 100%); }
.insight-bg-4 { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%); }

.abstract-graphic-1,
.abstract-graphic-2,
.abstract-graphic-3,
.abstract-graphic-4 {
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-image: radial-gradient(#FFFFFF 1px, transparent 1px);
  background-size: 12px 12px;
}

.insight-card-content {
  padding: 0 2px;
}

.insight-card-tag-text {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #71717A;
  margin-bottom: 8px;
}

.insight-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: #18181B;
  margin-bottom: 12px;
}

.insight-card-date {
  font-size: 11px;
  color: #A1A1AA;
}

/* ============================================
   CTA SECTION (VIBRANT LIME BANNER)
   ============================================ */
.cta {
  background: #D6F900;
  padding: 60px 0;
}

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

.cta-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #000000;
}

.cta-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #18181B;
  font-weight: 500;
}

.btn-dark-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: #000000;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-dark-pill:hover {
  background: #27272A;
}

/* ============================================
   FOOTER (BLACK SECTION)
   ============================================ */
.footer {
  background: #000000;
  color: #FFFFFF;
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 2.4fr;
  gap: 60px;
  padding-bottom: 64px;
  border-bottom: 1px solid #27272A;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  filter: invert(1) brightness(2);
  display: block;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #71717A;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 12px;
  color: #D4D4D8;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border: 1px solid #3F3F46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4D4D8;
  transition: all 0.2s;
}

.footer-social a:hover {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
}

.footer-info {
  padding: 36px 0 28px;
  border-bottom: 1px solid #1C1C1F;
}

.footer-info-details p {
  font-size: 11.5px;
  line-height: 1.9;
  color: #71717A;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.footer-info-details p span {
  display: inline-flex;
  align-items: center;
}

.footer-info-details p span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 9px;
  background: #3F3F46;
  margin-left: 14px;
}

.footer-info-details strong {
  color: #A1A1AA;
  font-weight: 600;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #52525B;
}

/* ============================================
   UNIVERSAL INTERACTIVE MODAL STYLES
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
  background: #0D0D10;
  border: 1px solid #27272A;
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #FFFFFF;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #1F1F23;
  background: #111115;
}

.modal-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #A1A1AA;
  background: #1C1C21;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid #27272A;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1C1C21;
  border: 1px solid #2E2E35;
  color: #A1A1AA;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #FFFFFF;
  color: #000000;
  transform: rotate(90deg);
}

.modal-body {
  padding: 36px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Modal Content Components */
.modal-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.modal-subtitle {
  font-size: 14px;
  color: #A1A1AA;
  line-height: 1.7;
  margin-bottom: 32px;
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.modal-card-item {
  background: #141418;
  border: 1px solid #23232A;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s;
}

.modal-card-item:hover {
  border-color: #3F3F46;
}

.modal-card-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.modal-card-item p {
  font-size: 12px;
  line-height: 1.7;
  color: #9CA3AF;
}

.team-member-role {
  display: inline-block;
  font-size: 11px;
  color: #71717A;
  margin-bottom: 12px;
  font-weight: 600;
}

.team-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.team-tag {
  font-size: 10px;
  padding: 4px 10px;
  background: #1E1E24;
  border-radius: 4px;
  color: #D4D4D8;
}

/* Contact Modal Meta Strip */
.contact-modal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 24px;
  background: #141418;
  border: 1px solid #23232A;
  border-radius: 8px;
}

.contact-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #D4D4D8;
}

.contact-modal-meta-item svg {
  flex: none;
  color: var(--color-lime);
}

/* Modal Form */
.modal-form-group {
  margin-bottom: 20px;
}

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

.modal-form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #D4D4D8;
  margin-bottom: 8px;
}

.modal-form-input,
.modal-form-textarea,
.modal-form-select {
  width: 100%;
  background: #141418;
  border: 1px solid #2A2A32;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 13px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.modal-form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 5L7 9.5L11.5 5' stroke='%23A1A1AA' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.modal-form-input:hover,
.modal-form-textarea:hover,
.modal-form-select:hover {
  background-color: #17171C;
}

.modal-form-input:focus,
.modal-form-textarea:focus,
.modal-form-select:focus {
  border-color: var(--color-lime);
}

.modal-form-input::placeholder,
.modal-form-textarea::placeholder {
  color: #52525B;
}

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

.modal-btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  background: var(--color-lime);
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-btn-submit:hover:not(:disabled) {
  background: var(--color-lime-hover);
  transform: translateY(-1px);
}

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

.modal-btn-submit .btn-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000000;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.form-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  color: #71717A;
  text-align: center;
}

.form-error-note {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #FCA5A5;
  font-size: 12px;
  text-align: center;
}

.form-error-note.visible {
  display: block;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Light variant of modal-card-item, for use on white-background pages */
.modal-card-item.light {
  background: #FAFAFA;
  border-color: #EFEFEF;
}

.modal-card-item.light h4 {
  color: #18181B;
}

.modal-card-item.light p,
.modal-card-item.light .team-member-role {
  color: #52525B;
}

.modal-card-item.light .team-tag {
  background: #EFEFEF;
  color: #3F3F46;
}

/* Stat bar (dark), used on inner pages to echo key figures */
.stat-bar {
  padding: 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.stat-bar-label h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-lime);
  margin-bottom: 6px;
}

.stat-bar-label p {
  font-size: 12.5px;
  color: #A1A1AA;
}

.stat-bar-figures {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-bar-figures strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
}

.stat-bar-figures span {
  font-size: 11px;
  color: #71717A;
}

/* Legal text block */
.legal-box {
  background: #121216;
  border: 1px solid #222228;
  border-radius: 8px;
  padding: 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #9CA3AF;
  max-height: 400px;
  overflow-y: auto;
}

.legal-box h5 {
  font-size: 13px;
  color: #FFFFFF;
  margin: 16px 0 8px;
}

.legal-box h5:first-child {
  margin-top: 0;
}

/* ============================================
   LEGAL PAGES (Terms of Use / Privacy Policy)
   ============================================ */
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #71717A;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
}

.legal-back-link:hover {
  color: #000000;
  gap: 12px;
}

.legal-hero {
  padding: 156px 0 56px;
  background: #FAFAFA;
  border-bottom: 1px solid #EFEFEF;
}

.legal-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #000000;
  margin: 4px 0 18px;
}

.legal-hero-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: #52525B;
  max-width: 680px;
}

.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
}

.legal-hero-meta span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A1A1AA;
}

.legal-body-section {
  padding: 64px 0 140px;
  background: #FFFFFF;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
}

.legal-toc-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #A1A1AA;
  margin-bottom: 14px;
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.legal-toc-chapter {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #18181B;
  margin: 16px 0 4px;
  padding: 0 14px;
}

.legal-toc-chapter:first-child {
  margin-top: 0;
}

.legal-toc-list a {
  display: block;
  padding: 7px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #71717A;
  border-left: 2px solid #EFEFEF;
  transition: all 0.2s;
}

.legal-toc-list a:hover {
  color: #000000;
  border-left-color: #A1A1AA;
  background: #FAFAFA;
}

.legal-toc-related {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #EFEFEF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #000000;
  transition: gap 0.2s;
}

.legal-toc-related:hover {
  gap: 12px;
}

.legal-content {
  max-width: 760px;
}

.legal-article {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #F0F0F0;
  scroll-margin-top: 96px;
}

.legal-article:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-article-num {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A1A1AA;
  margin-bottom: 10px;
}

.legal-article h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 16px;
}

.legal-article p {
  font-size: 13.5px;
  line-height: 1.9;
  color: #3F3F46;
  margin-bottom: 12px;
}

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

.legal-article ul {
  margin: 4px 0 16px;
  padding-left: 4px;
}

.legal-article ul:last-child {
  margin-bottom: 0;
}

.legal-article li {
  position: relative;
  list-style: none;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #3F3F46;
  margin-bottom: 8px;
}

.legal-article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #A1A1AA;
}

.legal-article strong {
  color: #18181B;
  font-weight: 700;
}

.legal-addendum h2 {
  font-size: 1.1rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 4px 0 20px;
  border: 1px solid #ECECEC;
  border-radius: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  border-bottom: 1px solid #F0F0F0;
}

.legal-table th {
  background: #FAFAFA;
  font-weight: 700;
  color: #18181B;
  letter-spacing: 0.02em;
}

.legal-table td {
  color: #52525B;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-contact-card {
  background: #0D0D10;
  border-radius: 10px;
  padding: 28px 32px;
  color: #FFFFFF;
  margin-top: 8px;
}

.legal-contact-card h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: 12px;
}

.legal-contact-card p {
  font-size: 12.5px;
  line-height: 1.8;
  color: #A1A1AA;
  margin-bottom: 14px;
}

.legal-contact-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-contact-card li {
  font-size: 12.5px;
  line-height: 1.7;
  color: #D4D4D8;
  list-style: none;
}

.legal-contact-card li strong {
  display: inline-block;
  min-width: 64px;
  color: #71717A;
  font-weight: 600;
  margin-right: 6px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 880px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    padding: 8px 20px 32px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.mobile-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 16px 4px;
    font-size: 13px;
    border-bottom: 1px solid #F0F0F0;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-content {
    padding: 64px 32px 40px;
  }

  .hero-image-wrap {
    height: 360px;
  }

  .scroll-indicator {
    display: none;
  }

  .approach-inner {
    grid-template-columns: 1fr;
  }

  .approach-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-inner {
    grid-template-columns: 1fr;
  }

  .focus-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-inner {
    grid-template-columns: 1fr;
  }

  .insights-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-toc {
    position: static;
    order: -1;
    padding-bottom: 24px;
    border-bottom: 1px solid #EFEFEF;
  }

  .legal-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    gap: 4px 0;
  }

  .legal-toc-chapter {
    width: 100%;
  }

  .legal-toc-list a {
    border-left: none;
    border: 1px solid #EFEFEF;
    border-radius: 999px;
    padding: 6px 12px;
    margin: 0 6px 6px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 20px;
  }

  .hero-content {
    padding: 56px 20px 32px;
  }

  .hero-image-wrap {
    height: 260px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .section-title,
  .section-title-dark {
    font-size: 1.75rem;
  }

  .legal-hero {
    padding: 128px 0 36px;
  }

  .legal-hero-title {
    font-size: 2rem;
  }

  .approach,
  .portfolio,
  .focus,
  .program,
  .insights,
  .legal-body-section,
  .cta {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .approach-cards,
  .focus-cards,
  .program-cards,
  .insights-cards,
  .modal-grid-2 {
    grid-template-columns: 1fr;
  }

  .focus-card {
    height: 300px;
  }

  .portfolio-carousel-wrapper {
    gap: 8px;
  }

  .portfolio-nav-btn {
    flex: none;
    width: 32px;
    height: 32px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-backdrop {
    padding: 12px;
  }

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

  .modal-body {
    padding: 24px 20px;
  }

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

  .stat-bar,
  .contact-modal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .legal-hero-title {
    font-size: 1.7rem;
  }
}
