@import url("https://cdn.jsdelivr.net/npm/@fontsource/pretendard@5.0.3/variable.css");
@import url("https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap");

:root {
  --bg: #f1f4f8;
  --bg-alt: #ffffff;
  --ink: #0f141a;
  --muted: #5a6470;
  --primary: #cf1f2c;
  --primary-strong: #f55136;
  --accent: #141922;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --border: rgba(15, 20, 26, 0.08);
  --shadow: 0 24px 60px rgba(15, 20, 26, 0.12);
  --soft-shadow: 0 16px 36px rgba(15, 20, 26, 0.08);
  --header-height: 72px;

  /* ✅ 버튼(회색) 토큰: 추천안 A+B+C 통합 */
  --btn-bg: #2b313a;
  --btn-bg-hover: #343c47;
  --btn-bg-active: #242a32;

  /* 버튼 그림자(살짝 부드럽게) */
  --btn-shadow: 0 16px 32px rgba(15, 20, 26, 0.28);
  --btn-shadow-hover: 0 22px 42px rgba(15, 20, 26, 0.32);

  /* 다크 배경에서도 또렷하게 보이도록 얇은 테두리 */
  --btn-border: 1px solid rgba(255, 255, 255, 0.10);
  --btn-border-hover: 1px solid rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(245, 81, 54, 0.12), transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(15, 20, 26, 0.06), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 45%, #eef1f5 100%);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(245, 81, 54, 0.18), transparent 70%);
}

body::after {
  right: -220px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(15, 20, 26, 0.14), transparent 70%);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.services .container {
  width: min(1500px, 96%);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 21, 27, 0.12), transparent);
}

.section:nth-child(even) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 251, 0.9));
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(207, 31, 44, 0.1);
  border: 1px solid rgba(207, 31, 44, 0.2);
}

.section-header h2 {
  font-family: "Play", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.section-title {
  text-transform: uppercase;
  font-weight: 700;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
}

#about-body {
  white-space: pre-line;
}

.logo-marquee {
  margin: 28px 0 40px;
  padding: 6px 0 10px;
  overflow: hidden;
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  user-select: none;
}

.logo-marquee::-webkit-scrollbar {
  display: none;
}

.logo-marquee:active {
  cursor: grabbing;
}

.logo-marquee.is-dragging {
  cursor: grabbing;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.logo-item {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.15);
  pointer-events: none;
  user-select: none;
}

.logo-item:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(17, 21, 27, 0.12);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 16px;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 2px rgba(255, 255, 255, 0.6);
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a {
  text-decoration: none;
  color: #f8fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 2px rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  padding: 6px 10px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(245, 81, 54, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(20, 25, 34, 0.7);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 5%;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.hero {
  background: linear-gradient(160deg, rgba(245, 81, 54, 0.08), rgba(255, 255, 255, 0.9));
  position: relative;
  padding: 0 0 110px;
  overflow: visible;
}

.hero-stage {
  position: relative;
  height: calc(min(92vh, 900px) + var(--header-height));
  min-height: calc(620px + var(--header-height));
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
}


.admin-mode .media-slot,
.admin-mode .hero-stage {
  position: relative;
}

.media-edit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(17, 21, 27, 0.85);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.hero-stage > .media-edit {
  top: calc(12px + (var(--header-height) * 2));
}

.media-input {
  display: none;
}

.hero-slide-editors {
  position: absolute;
  top: calc(12px + (var(--header-height) * 2));
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-slide-editors .media-edit {
  position: static;
  padding: 6px 10px;
  font-size: 11px;
}

.admin-toolbar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #11151b;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  row-gap: 8px;
  flex-wrap: wrap;
  max-width: min(92vw, 520px);
  z-index: 999;
}

.admin-toolbar button,
.admin-panel button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-toolbar .admin-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-toolbar.saved {
  box-shadow: 0 0 0 2px rgba(192, 24, 32, 0.6);
}

.admin-panel {
  position: fixed;
  right: 16px;
  bottom: 78px;
  width: min(380px, 92vw);
  background: #11151b;
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  display: none;
  box-shadow: var(--soft-shadow);
  z-index: 1000;
}

.admin-panel.open {
  display: block;
}

.admin-panel-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.admin-panel-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-panel-section:last-child {
  margin-bottom: 0;
}

.admin-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  cursor: pointer;
}

.admin-panel-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-panel-item {
  display: grid;
  gap: 6px;
}

.admin-panel-help {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.admin-panel-input {
  display: none;
}

.admin-mode .text-editable {
  outline: 1px dashed rgba(17, 21, 27, 0.2);
  outline-offset: 4px;
  cursor: text;
}

.admin-mode .text-editable:hover {
  background: rgba(192, 24, 32, 0.05);
}

.text-editing {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  background: rgba(192, 24, 32, 0.08);
}

.text-editor {
  position: fixed;
  z-index: 1001;
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
}

.text-editor-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.text-editor textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}

.text-editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.text-editor-actions button {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
}

.text-editor-actions .text-editor-save {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}

.admin-warning {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff3f3;
  color: #c01820;
  border: 1px solid rgba(192, 24, 32, 0.2);
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 999;
  font-size: 13px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 25%, rgba(192, 24, 32, 0.08), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(17, 21, 27, 0.06), transparent 45%),
    linear-gradient(120deg, rgba(17, 21, 27, 0.02), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-stage.has-video .hero-video {
  filter: grayscale(1);
  transform: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.22) 100%);
  z-index: 2;
}

.hero-controls {
  position: absolute;
  left: 6%;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  color: var(--ink);
}

.hero-count {
  font-family: "Play", sans-serif;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.hero-slash {
  color: var(--muted);
  margin: 0 6px;
}

.hero-progress {
  width: 160px;
  height: 2px;
  background: rgba(17, 21, 27, 0.12);
  overflow: hidden;
}

.hero-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--primary);
}

.hero-bar.is-animating {
  animation: heroProgress 6s linear;
}

.slide-1 {
  background-image: linear-gradient(120deg, rgba(192, 24, 32, 0.18), transparent),
    url("../images/hero-visual.svg");
}

.slide-2 {
  background-image: linear-gradient(120deg, rgba(26, 31, 37, 0.18), transparent),
    url("../images/about-facility.svg");
}

.slide-3 {
  background-image: linear-gradient(120deg, rgba(192, 24, 32, 0.12), transparent),
    url("../images/portfolio-grid.svg");
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  position: relative;
  margin-top: 48px;
}

.hero-content {
  padding-bottom: 20px;
}

.hero-copy h1 {
  font-family: "Play", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  margin: 16px 0 18px;
  line-height: 1.1;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(207, 31, 44, 0.1);
  border: 1px solid rgba(207, 31, 44, 0.2);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 28px;
  white-space: pre-line;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* ✅ 여기! 버튼 전체 적용(추천안 전부 반영) */
.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: 999px;

  border: var(--btn-border);
  background: var(--btn-bg);

  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;

  box-shadow: var(--btn-shadow);
}

.btn:hover,
.text-link:hover {
  transform: translateY(-2px);
  background: var(--btn-bg-hover);
  border: var(--btn-border-hover);
  box-shadow: var(--btn-shadow-hover);
  filter: brightness(1.05);
}

.btn:active,
.text-link:active {
  transform: translateY(0);
  background: var(--btn-bg-active);
  filter: brightness(0.98);
}

.btn.ghost {
  background: var(--btn-bg);
  color: #ffffff;
  border: var(--btn-border);
  box-shadow: var(--btn-shadow);
}

.hero-highlights {
  display: grid;
  gap: 16px;
}

.highlight-title {
  display: block;
  font-weight: 600;
}

.highlight-desc {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.hero-metrics {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.hero-metrics strong {
  font-size: 24px;
  display: block;
}

.media-slot {
  margin: 0;
}

.media-slot figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.values {
  display: grid;
  gap: 16px;
}

.values article {
  background: rgba(255, 255, 255, 0.94);
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

.timeline {
  background: rgba(255, 255, 255, 0.9);
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

.timeline img {
  width: 100%;
  border-radius: 16px;
  margin: 16px 0;
  display: block;
  border: 1px solid var(--border);
}

.timeline ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.timeline li span {
  display: inline-block;
  min-width: 56px;
  font-weight: 600;
  color: var(--primary);
}

.cards {
  display: grid;
  gap: 24px;
}

.services .cards {
  gap: 20px;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.96);
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(15, 20, 26, 0.08);
  display: grid;
  gap: 12px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(15, 20, 26, 0.16);
}

.services .card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(245, 81, 54, 0.2), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.services .card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, rgba(207, 31, 44, 0.7), rgba(245, 81, 54, 0.1));
  opacity: 0.9;
}

.card img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.services .media-slot {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 81, 54, 0.1), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(15, 20, 26, 0.08);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

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

.card ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 0;
}

.card .text-link {
  justify-self: start;
  align-self: start;
}

.chip {
  background: rgba(207, 31, 44, 0.08);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin: 0;
  color: var(--primary);
  border: 1px solid rgba(207, 31, 44, 0.15);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature {
  background: rgba(255, 255, 255, 0.94);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

.feature-metric {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.stat {
  background: var(--surface);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.partners,
.certifications {
  background: var(--surface-alt);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.partners img {
  width: 100%;
  border-radius: 16px;
  margin: 12px 0 20px;
  display: block;
  border: 1px solid var(--border);
}

.partner-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.testimonials .card {
  background: var(--surface);
}

.role {
  font-size: 13px;
  color: var(--muted);
}

.rating {
  font-weight: 600;
  color: var(--primary);
}

.contact {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.map-section .section-header {
  margin-bottom: 24px;
}

.map-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

input,
textarea,
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  background: #ffffff;
  color: var(--ink);
}

.form-note {
  font-size: 12px;
  color: var(--muted);
}

.info-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  margin: 16px 0;
  box-shadow: var(--soft-shadow);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.social-links a {
  color: var(--primary);
  text-decoration: none;
}

.site-footer {
  background: #0f1216;
  color: #f8fafc;
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

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

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.io-item {
  opacity: 0;
  transform: translate3d(var(--io-x, 0), var(--io-y, 24px), 0) scale(0.96)
    rotate(var(--io-rotate, 0deg));
  filter: blur(8px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--io-delay, 0ms);
  will-change: transform, opacity, filter;
}

.io-section[data-anim="left"] .io-item {
  --io-x: -72px;
  --io-y: 0;
  --io-rotate: -1.5deg;
}

.io-section[data-anim="right"] .io-item {
  --io-x: 72px;
  --io-y: 0;
  --io-rotate: 1.5deg;
}

.io-section[data-anim="up"] .io-item {
  --io-x: 0;
  --io-y: 40px;
  --io-rotate: -0.6deg;
}

.io-section[data-anim="down"] .io-item {
  --io-x: 0;
  --io-y: -40px;
  --io-rotate: 0.6deg;
}

.io-item.reveal-left {
  --io-x: -72px;
  --io-y: 0;
  --io-rotate: -1.5deg;
}

.io-item.reveal-right {
  --io-x: 72px;
  --io-y: 0;
  --io-rotate: 1.5deg;
}

.io-item.reveal-up {
  --io-x: 0;
  --io-y: 40px;
  --io-rotate: -0.6deg;
}

.io-item.reveal-down {
  --io-x: 0;
  --io-y: -40px;
  --io-rotate: 0.6deg;
}

.io-item.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  filter: blur(0);
}

.io-stagger {
  transition-delay: var(--io-delay, 0ms);
}

@keyframes heroProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.hero-stage.single-media .hero-slide {
  opacity: 0;
}

.hero-stage.single-media .hero-slide.slide-1 {
  opacity: 1;
}

.hero-stage.single-media .hero-controls {
  display: none;
}

.hero-stage.has-video .hero-slide {
  display: none;
}

.hero-stage.has-video .hero-controls {
  display: none;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero-card {
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

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

  .section {
    padding: 84px 0;
  }

  .hero-stage {
    height: calc(min(72vh, 640px) + var(--header-height));
    min-height: calc(420px + var(--header-height));
  }

  .hero-controls {
    left: 5%;
    bottom: 24px;
  }

  .hero-progress {
    width: 120px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card {
    padding: 24px;
  }
}
