:root {
  --bg-main: #f7f0e7;
  --bg-soft: #fcf7f1;
  --bg-soft-2: #fffaf5;

  --bg-card: rgba(255, 255, 255, 0.84);
  --bg-card-strong: rgba(255, 255, 255, 0.94);
  --bg-card-soft: rgba(255, 250, 245, 0.78);

  --line: rgba(112, 92, 74, 0.12);
  --line-soft: rgba(112, 92, 74, 0.08);
  --line-accent: rgba(255, 122, 24, 0.16);

  --text-main: #1d1713;
  --text-soft: #5f554e;
  --text-muted: #887a6f;
  --text-faint: #aa9c91;

  --card-text-main: #201913;
  --card-text-soft: #62574f;
  --card-text-muted: #8c7f74;

  --accent: #ff7a18;
  --accent-2: #ffb347;
  --accent-3: #ff9738;
  --accent-deep: #de6200;
  --accent-soft: rgba(255, 122, 24, 0.08);
  --accent-soft-2: rgba(255, 179, 71, 0.10);

  --shadow-sm: 0 8px 18px rgba(58, 41, 27, 0.04);
  --shadow-md: 0 18px 44px rgba(58, 41, 27, 0.08);
  --shadow-lg: 0 30px 70px rgba(58, 41, 27, 0.12);
  --shadow-glow: 0 24px 54px rgba(255, 122, 24, 0.10);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --max-width: 1260px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 170, 99, 0.10), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(255, 205, 132, 0.10), transparent 24%),
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #fdf9f4 0%, #f5ede3 100%);
  color: var(--text-main);
  font-family: Inter, Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: -220px;
  left: -220px;
  width: 820px;
  height: 820px;
  background: radial-gradient(circle, rgba(255, 166, 92, 0.14), transparent 64%);
  filter: blur(120px);
  animation: auroraMove 18s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  right: -220px;
  bottom: -220px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(255, 214, 153, 0.14), transparent 64%);
  filter: blur(120px);
  animation: auroraMove2 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

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

button,
a,
input,
textarea {
  font: inherit;
}

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

.page-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 124px 0 76px;
  position: relative;
  z-index: 2;
}

/* =========================
   HEADER
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    180deg,
    rgba(253, 249, 244, 0.88) 0%,
    rgba(253, 249, 244, 0.74) 100%
  );
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 30px rgba(58, 41, 27, 0.03);
}

.site-header-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 7px rgba(255, 122, 24, 0.10),
    0 0 24px rgba(255, 122, 24, 0.16);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-main);
}

.brand-subtext {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(112, 92, 74, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 8px 24px rgba(58, 41, 27, 0.025);
}

.top-nav a {
  position: relative;
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.top-nav a:hover {
  color: var(--accent);
  background: rgba(255, 122, 24, 0.06);
  border-color: rgba(255, 122, 24, 0.10);
  transform: translateY(-1px);
}

.top-nav a.active {
  color: var(--accent);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 247, 240, 0.98) 100%
  );
  border: 1px solid rgba(255, 122, 24, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.60),
    0 10px 22px rgba(255, 122, 24, 0.08);
}

.top-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(112, 92, 74, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 24, 0.22);
  background: rgba(255, 122, 24, 0.05);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

.mobile-nav-panel {
  display: none;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto 14px;
  border: 1px solid rgba(112, 92, 74, 0.08);
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.96);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.mobile-nav-panel.is-open {
  display: block;
  animation: mobilePanelOpen 0.28s ease;
}

.mobile-nav-scroll {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.mobile-nav-scroll a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.mobile-nav-scroll a:hover,
.mobile-nav-scroll a.active {
  color: var(--accent);
  background: rgba(255, 122, 24, 0.08);
  border-color: rgba(255, 122, 24, 0.16);
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  margin-top: 92px;
  padding: 0 0 42px;
  position: relative;
  z-index: 2;
}

.site-footer-inner {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 28px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.12) 100%
  );
  border-radius: 28px 28px 0 0;
}

.site-footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(112, 92, 74, 0.08);
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(255, 122, 24, 0.08);
}

.footer-brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-main);
}

.footer-brand-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.96rem;
}

.footer-mini-note {
  max-width: 360px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.9rem;
  text-align: right;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.footer-divider {
  color: rgba(255, 122, 24, 0.45);
}

/* =========================
   COMMON UI
   ========================= */

.small-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.08);
  border: 1px solid rgba(255, 122, 24, 0.14);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  margin: 16px 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.page-subtitle {
  margin: 0 0 42px;
  max-width: 860px;
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1rem;
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.visual-image-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(112, 92, 74, 0.10);
  background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
  transition: transform 0.35s ease;
  will-change: transform;
}

.visual-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  will-change: transform;
}

.primary-btn,
.secondary-btn {
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  cursor: pointer;
  will-change: transform;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.20);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(255, 122, 24, 0.26);
}

.secondary-btn {
  border: 1px solid rgba(255, 122, 24, 0.18);
  background: rgba(255, 255, 255, 0.90);
  color: var(--accent);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 122, 24, 0.04);
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.88;
}

/* =========================
   REVEAL SYSTEM
   ========================= */

.reveal,
.reveal-delay,
.reveal-delay-2 {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible,
.reveal-delay.is-visible,
.reveal-delay-2.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.reveal-delay-2 {
  transition-delay: 0.28s;
}

/* =========================
   HUDSONLAB TECH GRID
   ========================= */

.hudsonlab-bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 166, 92, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 166, 92, 0.055) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 0;
  animation: gridShift 28s linear infinite;
}

/* =========================
   PARTICLES
   ========================= */

.page-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-particles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  animation: floatParticle linear infinite;
  will-change: transform, opacity;
}

/* =========================
   CURSOR LIGHT
   ========================= */

.cursor-light {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 166, 92, 0.20),
    rgba(255, 214, 153, 0.10),
    transparent 62%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  filter: blur(88px);
  opacity: 0.56;
  transition: opacity 0.25s ease;
  will-change: left, top, transform;
}

/* =========================
   PARALLAX HELPERS
   ========================= */

.parallax-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax-media {
  will-change: transform;
}

.magnetic-button {
  position: relative;
  transform: translate3d(0, 0, 0);
}

/* =========================
   KEYFRAMES
   ========================= */

@keyframes floatParticle {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.18;
  }
  50% {
    opacity: 0.48;
  }
  100% {
    transform: translateY(-160px) scale(1.16);
    opacity: 0.05;
  }
}

@keyframes auroraMove {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(120px, 60px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes auroraMove2 {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-120px, -60px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, 6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes mobilePanelOpen {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1120px) {
  .site-footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-mini-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 28px));
    padding: 108px 0 52px;
  }

  .site-header-inner,
  .site-footer-inner,
  .mobile-nav-panel {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .cursor-light {
    width: 320px;
    height: 320px;
  }

  .site-footer-bottom {
    flex-wrap: wrap;
  }
}