:root {
  --bg: #faf9f7;
  --bg-alt: #f0eeea;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #e0456a;
  --accent-hover: #c73558;
  --border: #e0ddd8;
  --card: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font-sans: "Noto Sans KR", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --container: min(1100px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  scroll-padding-bottom: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 0.75rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card);
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.lang-btn.active {
  color: var(--accent);
  border-color: rgba(224, 69, 106, 0.5);
  background: rgba(224, 69, 106, 0.08);
}

.lang-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(224, 69, 106, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(224, 69, 106, 0.08), transparent);
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 182, 198, 0.35) 0%, transparent 42%),
    radial-gradient(circle at 78% 22%, rgba(224, 69, 106, 0.22) 0%, transparent 38%),
    radial-gradient(circle at 55% 78%, rgba(255, 220, 230, 0.3) 0%, transparent 45%);
  filter: blur(40px);
  animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.06); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.hero-has-3d .hero-particles {
  display: none;
}

.hero-has-3d .hero-mesh {
  opacity: 0.35;
}

.hero-has-3d .hero-orb {
  opacity: 0.22;
}

.hero-has-3d .hero-3d-canvas {
  opacity: 0.82;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.hero-text {
  max-width: 34rem;
}

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.hero-image-frame {
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1200px)
    rotateX(calc(var(--my, 0) * -10deg))
    rotateY(calc(var(--mx, 0) * 10deg));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(224, 69, 106, 0.35) 0%, transparent 65%);
  filter: blur(28px);
  z-index: 0;
  animation: glowPulse 3.5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-image-ring {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-image-ring::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    #e0456a,
    #ffb3c6,
    #ffffff,
    #ff6b8a,
    #e0456a
  );
  animation: ringSpin 3.5s linear infinite;
}

.hero-image-ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius) + 5px);
  background: var(--card);
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.hero-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) + 4px);
  border: none;
  box-shadow: var(--shadow);
  background: var(--card);
}

.hero-float-chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  list-style: none;
}

.hero-chip {
  position: absolute;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(224, 69, 106, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(224, 69, 106, 0.15);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hero-chip-1 { top: 8%; left: -4%; animation: chipFloat1 5s ease-in-out infinite; }
.hero-chip-2 { top: 18%; right: -6%; animation: chipFloat2 4.5s ease-in-out infinite 0.5s; }
.hero-chip-3 { bottom: 22%; left: -2%; animation: chipFloat3 5.5s ease-in-out infinite 1s; }
.hero-chip-4 { bottom: 10%; right: -4%; animation: chipFloat4 4.8s ease-in-out infinite 1.5s; }

@keyframes chipFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(6px, -10px) rotate(2deg); }
}
@keyframes chipFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  50% { transform: translate(-8px, 8px) rotate(-2deg); }
}
@keyframes chipFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, 6px); }
}
@keyframes chipFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50% { transform: translate(-6px, -8px) rotate(1deg); }
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  animation: scrollCueBounce 2.2s ease-in-out infinite;
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(224, 69, 106, 0.45);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 999px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  list-style: none;
}

.hero-trust li {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero-content {
  position: relative;
  padding-block: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(224, 69, 106, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(224, 69, 106, 0.15);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(224, 69, 106, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 69, 106, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(224, 69, 106, 0); }
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-byline {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding-block: 5rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.about-text p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
}

.about-stats li {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.mission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.mission-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.value-list {
  list-style: none;
}

.value-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.value-list li:last-child {
  margin-bottom: 0;
}

/* History summary strip */
.history-summary {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 2.5rem;
  list-style: none;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.history-summary-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem 0.5rem;
  text-align: center;
  position: relative;
}

.history-summary-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border);
}

.history-summary-year {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.history-summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.history-summary-item-current {
  background: linear-gradient(180deg, #fff8fa 0%, #fff 100%);
}

.history-summary-item-current .history-summary-year {
  color: var(--accent-hover);
}

/* History cards grid */
.history-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.history-card:not(.tilt-card):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.history-card.tilt-card:hover {
  box-shadow: 0 12px 40px rgba(224, 69, 106, 0.12);
}

.history-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.history-card-year {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(224, 69, 106, 0.08);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.history-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  background: var(--bg-alt);
  border-radius: 12px;
  flex-shrink: 0;
}

.history-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.history-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.history-card-recent {
  border-color: rgba(224, 69, 106, 0.28);
  background: linear-gradient(145deg, #fff 0%, #fff9fb 100%);
  box-shadow: 0 4px 20px rgba(224, 69, 106, 0.08);
}

.history-card-recent .history-card-year {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.history-card-recent .history-card-icon {
  background: rgba(224, 69, 106, 0.1);
}

@media (min-width: 1100px) {
  .history-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-lead {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  max-width: 48ch;
}

.subsection-title {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--card);
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.portfolio-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.portfolio-image-wrap-placeholder {
  background: linear-gradient(135deg, var(--bg-alt), #e8e4de);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-card > :not(.portfolio-image-wrap) {
  margin-left: 2rem;
  margin-right: 2rem;
}

.portfolio-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.portfolio-card > .portfolio-number {
  margin-top: 1.5rem;
}

.portfolio-card > .btn {
  margin-bottom: 2rem;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.portfolio-actions .btn {
  margin-bottom: 0;
}

.portfolio-card:hover {
  box-shadow: var(--shadow);
}

.portfolio-card:not(.tilt-card):hover {
  transform: translateY(-4px);
}

.portfolio-card-featured {
  border-color: rgba(224, 69, 106, 0.25);
}

.portfolio-card-soon {
  opacity: 0.85;
}

.portfolio-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.portfolio-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(224, 69, 106, 0.08);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.portfolio-badge-blue {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.portfolio-badge-green {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.portfolio-badge-purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.portfolio-badge-red {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.portfolio-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.portfolio-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.portfolio-card > p:not(.portfolio-tagline) {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.portfolio-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.portfolio-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  margin-bottom: 0.4rem;
}

.portfolio-features li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.portfolio-card .btn {
  width: fit-content;
  margin-top: auto;
}

.tags-grid {
  margin-top: 2rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tags-grid span {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--card);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.review-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.review-card footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-lead {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-label .required {
  color: var(--accent);
  font-style: normal;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 69, 106, 0.12);
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):invalid:not(:placeholder-shown),
.contact-form select:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #d9534f;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  max-width: 100%;
}

.form-checkbox input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox span {
  line-height: 1.5;
}

.form-checkbox a {
  color: var(--accent);
  text-decoration: underline;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-actions .btn {
  min-width: 140px;
}

.form-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 1.25rem;
}

.form-status.success {
  color: #2d8659;
}

.form-status.error {
  color: #c73558;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 69, 106, 0.1), transparent 50%),
    linear-gradient(135deg, #fff 0%, #faf5f7 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-sidebar-brand .contact-brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.contact-sidebar-brand .contact-brand-tagline {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.contact-banner-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-banner-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-banner-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-banner-list a {
  color: var(--accent);
  font-weight: 500;
}

.contact-banner-list a:hover {
  color: var(--accent-hover);
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(224, 69, 106, 0.12);
  color: var(--accent);
  font-size: 1rem;
}

.contact-info {
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-info p:first-child {
  color: var(--text);
  margin-bottom: 0.6rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  padding: 0.85rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.footer-brand-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.footer-legal p + p {
  margin-top: 0.15rem;
}

.footer-links-row {
  margin-top: 0.75rem !important;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links-row a:hover {
  color: var(--accent);
}

/* Legal page */
.legal-page {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.download-card {
  margin: 2rem 0;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(224, 69, 106, 0.2);
  background: linear-gradient(135deg, rgba(255, 245, 248, 0.9), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 40px rgba(224, 69, 106, 0.08);
  text-align: center;
}

.download-filename {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.download-btn {
  min-width: 14rem;
}

.download-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}

.footer-links-row a + a {
  margin-left: 1rem;
}

.legal-back {
  display: inline-flex;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

/* Bottom tabs */
.bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
}

.bottom-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 3.75rem;
  padding: 0.45rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bottom-tab-label {
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

.bottom-tab:hover {
  color: var(--accent);
}

.bottom-tab.active {
  color: var(--accent);
  background: rgba(224, 69, 106, 0.06);
}

.bottom-tab.active .bottom-tab-icon {
  transform: scale(1.05);
}

#home,
#about,
#history,
#portfolio-1,
#portfolio-2,
#portfolio-3,
#portfolio-4,
#contact {
  scroll-margin-top: 72px;
  scroll-margin-bottom: 80px;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem 2.5rem;
  }

  .hero-text {
    max-width: none;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    max-width: none;
    margin-inline: auto;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: 2;
  }
}

@media (max-width: 768px) {
  .lang-toggle {
    margin-right: 0.5rem;
    gap: 0.3rem;
  }

  .lang-btn {
    height: 1.8rem;
    padding: 0 0.55rem;
    font-size: 0.72rem;
  }

  .bottom-tab-label {
    font-size: 0.55rem;
  }

  .bottom-tab-icon {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li a {
    display: block;
    padding: 0.85rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    justify-content: space-around;
    width: 100%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    text-align: center;
  }

  .history-summary {
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .history-summary-item {
    flex: 1 1 45%;
    min-width: 0;
    padding: 0.85rem 0.4rem;
  }

  .history-summary-item:nth-child(2n)::after {
    display: none;
  }

  .history-summary-year {
    font-size: 1rem;
  }

  .history-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .history-card {
    padding: 1.15rem 1.2rem 1.2rem;
  }

  .hero-scroll-cue {
    display: none;
  }

  .hero-chip {
    font-size: 0.62rem;
    padding: 0.3rem 0.55rem;
  }

  .hero-chip-1 { top: 4%; left: 2%; }
  .hero-chip-2 { top: 12%; right: 2%; }
  .hero-chip-3 { bottom: 18%; left: 4%; }
  .hero-chip-4 { bottom: 6%; right: 4%; }

  .hero-image-ring::before {
    animation-duration: 5s;
  }

  .motion-enabled .hero-image {
    animation-duration: 6s;
  }
}

/* ── Motion & animations ── */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.motion-enabled .header {
  animation: headerDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateY(var(--orb-parallax, 0px));
  transition: transform 0.1s linear;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}

.hero-orb-1 {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 8%;
  right: 5%;
  background: radial-gradient(circle, rgba(224, 69, 106, 0.45) 0%, transparent 70%);
  animation: orbDrift1 14s ease-in-out infinite;
}

.hero-orb-2 {
  width: min(32vw, 320px);
  height: min(32vw, 320px);
  bottom: 12%;
  left: -4%;
  background: radial-gradient(circle, rgba(255, 160, 180, 0.35) 0%, transparent 70%);
  animation: orbDrift2 18s ease-in-out infinite;
}

.hero-orb-3 {
  width: min(24vw, 240px);
  height: min(24vw, 240px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(224, 69, 106, 0.2) 0%, transparent 70%);
  animation: orbDrift3 11s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 24px) scale(1.08); }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -20px) scale(1.06); }
}

@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, 16px); }
}

.motion-enabled .hero-grid {
  opacity: var(--hero-fade, 1);
  transition: opacity 0.2s linear;
}

.motion-enabled .hero-enter {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  filter: blur(10px);
}

html.motion-enabled.page-loaded .hero-enter {
  animation: heroEnterEpic 1.1s cubic-bezier(0.34, 1.25, 0.64, 1) var(--hero-delay, 0ms) both;
}

@keyframes heroEnterEpic {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.88) rotateX(8deg);
    filter: blur(14px);
  }
  55% {
    opacity: 1;
    transform: translateY(-8px) scale(1.03) rotateX(0);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}

.motion-enabled .hero-title {
  background: linear-gradient(
    120deg,
    #1a1a1a 0%,
    #1a1a1a 35%,
    #e0456a 50%,
    #1a1a1a 65%,
    #1a1a1a 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s linear infinite;
}

.motion-enabled .hero-title .accent {
  -webkit-text-fill-color: var(--accent);
  background: none;
  animation: accentPulse 2s ease-in-out infinite;
}

@keyframes titleShimmer {
  0% { background-position: 220% center; }
  100% { background-position: -220% center; }
}

.motion-enabled .hero-visual {
  transform: translateY(var(--hero-parallax, 0px));
  transition: transform 0.1s linear;
}

.motion-enabled .hero-image {
  animation: heroFloat 5s ease-in-out infinite;
  box-shadow:
    0 8px 32px rgba(224, 69, 106, 0.18),
    0 24px 64px rgba(224, 69, 106, 0.12);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.01); }
}

.motion-enabled .btn-hero-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 0 rgba(224, 69, 106, 0.5);
  animation: btnGlowPulse 2.5s ease-in-out infinite;
}

.motion-enabled .btn-hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 80px at var(--btn-x, 50%) var(--btn-y, 50%),
    rgba(255, 255, 255, 0.45),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.2s;
}

.motion-enabled .btn-hero-glow:hover::before {
  opacity: 1;
}

@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(224, 69, 106, 0.35); }
  50% { box-shadow: 0 8px 36px rgba(224, 69, 106, 0.55); }
}

html.motion-enabled.page-loaded .hero-float-chips .hero-chip {
  animation-play-state: running;
}

.motion-enabled .hero-float-chips .hero-chip {
  opacity: 0;
  animation-play-state: paused;
}

html.motion-enabled.page-loaded .hero-chip-1 { animation: chipFloat1 5s ease-in-out infinite, chipReveal 0.8s ease 0.9s both; }
html.motion-enabled.page-loaded .hero-chip-2 { animation: chipFloat2 4.5s ease-in-out infinite 0.5s, chipReveal 0.8s ease 1.1s both; }
html.motion-enabled.page-loaded .hero-chip-3 { animation: chipFloat3 5.5s ease-in-out infinite 1s, chipReveal 0.8s ease 1.3s both; }
html.motion-enabled.page-loaded .hero-chip-4 { animation: chipFloat4 4.8s ease-in-out infinite 1.5s, chipReveal 0.8s ease 1.5s both; }

@keyframes chipReveal {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; }
}

@keyframes accentPulse {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 0 transparent;
  }
  50% {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(224, 69, 106, 0.45);
  }
}

.motion-enabled .btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.motion-enabled .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.75s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.motion-enabled .section-title.reveal.is-visible::after {
  width: 3.5rem;
}

.motion-enabled .section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(224, 69, 106, 0.15));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.tilt-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
  box-shadow: 0 12px 40px rgba(224, 69, 106, 0.12);
}

.motion-enabled .portfolio-image-wrap {
  overflow: hidden;
  border-radius: inherit;
}

.motion-enabled .portfolio-card:hover .portfolio-image {
  transform: scale(1.06);
}

.motion-enabled .portfolio-image {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .history-card-recent.reveal.is-visible {
  border-color: rgba(224, 69, 106, 0.35);
}

.motion-enabled .feature-card.reveal.is-visible .feature-icon {
  animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-delay, 0ms) + 200ms) both;
}

@keyframes iconBounce {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.motion-enabled .nav-links a {
  position: relative;
}

.motion-enabled .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-enabled .nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
