:root {
  --off-white: #f5f2eb;
  --soft-gray: #d9d6d0;
  --anthracite: #2f3133;
  --anthracite-2: #44474a;
  --line: rgba(47, 49, 51, 0.14);
  --white: #ffffff;
  --max-width: 1220px;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(47, 49, 51, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--off-white);
  color: var(--anthracite);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

h1.eyebrow {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anthracite-2);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--anthracite);
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--anthracite);
  color: var(--off-white);
  box-shadow: 0 16px 30px rgba(47, 49, 51, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #26282a;
}

.btn-secondary {
  background: transparent;
  color: var(--anthracite);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(47, 49, 51, 0.08);
}

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

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.nav a {
  font-size: 14px;
  color: var(--anthracite-2);
}

.hero {
  padding: 72px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: stretch;
}

.hero-copy,
.hero-form-wrap {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 214, 208, 0.45), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.45));
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(47, 49, 51, 0.07);
}

.hero-top {
  position: relative;
  z-index: 1;
}

.hero .hero-heading {
  margin-top: 22px;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.hero-lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 18px;
  color: var(--anthracite-2);
}

.hero-highlights {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.highlight-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 235, 0.6);
}

.highlight-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.highlight-card span {
  font-size: 14px;
  color: var(--anthracite-2);
}

.hero-form-wrap {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.58));
}

.form-card {
  background: var(--white);
  border: 1px solid rgba(47, 49, 51, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 38px rgba(47, 49, 51, 0.06);
}

.form-card h2 {
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.form-card p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--anthracite-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--anthracite);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(47, 49, 51, 0.12);
  background: #fcfbf8;
  border-radius: 14px;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  color: var(--anthracite);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 49, 51, 0.28);
  background: #ffffff;
}

input[type="file"] {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
}
input[type="file"]::file-selector-button {
  background: var(--anthracite);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: opacity 0.2s ease;
}
input[type="file"]::file-selector-button:hover {
  opacity: 0.85;
}

.custom-file-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(47, 49, 51, 0.18);
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
}
.file-select-btn {
  background: var(--anthracite);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.file-select-btn:hover {
  opacity: 0.85;
}
.file-select-text {
  color: #888;
  font-size: 13px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #faf9f6;
  border: 1px solid rgba(47, 49, 51, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.file-icon {
  flex-shrink: 0;
  font-size: 16px;
}
.file-name {
  flex: 1;
  color: var(--anthracite);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-size {
  flex-shrink: 0;
  color: #888;
  font-size: 12px;
}
.file-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #b91c1c;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s ease;
}
.file-remove:hover {
  background: #fef2f2;
}
.file-total {
  font-size: 12px;
  color: #888;
  padding: 2px 4px;
}

.form-submit {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--anthracite-2);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--anthracite);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--anthracite);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--anthracite-2);
}

/* Form success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 400px;
  animation: fadeInUp 0.6s ease;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.4s ease 0.2s both;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--anthracite);
  stroke-width: 2.5;
  fill: none;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--anthracite);
}

.form-success p {
  color: var(--anthracite-2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.form-success .btn-reset {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--anthracite-2);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-success .btn-reset:hover {
  border-color: var(--anthracite);
  color: var(--anthracite);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.stat {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--anthracite-2);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.section-header p {
  max-width: 58ch;
  font-size: 17px;
  color: var(--anthracite-2);
  justify-self: end;
}

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

.card {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(47, 49, 51, 0.04);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: var(--anthracite-2);
  font-size: 15px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.card li {
  padding-left: 18px;
  position: relative;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--anthracite);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-item {
  min-height: 180px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.54)),
    radial-gradient(circle at top left, rgba(217,214,208,0.46), transparent 45%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: default;
  transition: border-color 0.3s ease;
}

.product-item h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.product-item p {
  font-size: 14px;
  color: var(--anthracite-2);
}

/* Ballet Flats clickable card */
.product-item--interactive {
  cursor: pointer;
  position: relative;
}

.product-item--interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
}

.product-item--interactive:hover::after {
  border-color: var(--anthracite);
}

.product-item--interactive:hover {
  border-color: transparent;
}

/* Preview panel */
.preview-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease;
  opacity: 0;
  grid-column: 1 / -1;
}

.preview-panel.is-open {
  max-height: 600px;
  opacity: 1;
}

.preview-inner {
  padding-top: 16px;
}

.preview-atropos {
  width: 100%;
  border-radius: 24px;
}

.preview-atropos .atropos-rotate {
  border-radius: 24px;
}

.preview-atropos .atropos-inner {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  position: relative;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-shoe {
  width: 380px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(47,49,51,0.12));
  pointer-events: none;
}

@media (max-width: 1100px) {
  .preview-atropos .atropos-inner {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 820px) {
  .preview-atropos .atropos-inner {
    aspect-ratio: 4 / 3;
  }
  .preview-shoe {
    width: 260px;
  }
}

/* ── Showcase section (Atropos depth cards) ── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.showcase-card {
  border-radius: 22px;
  cursor: default;
}

.showcase-card .atropos-rotate {
  border-radius: 22px;
}

.showcase-card .atropos-inner {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 60%, rgba(217,214,208,0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.7), rgba(245,242,235,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 70px;
}

.showcase-bg {
  width: 70%;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(47,49,51,0.14));
  pointer-events: none;
}

.showcase-bg--sm {
  width: 55%;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(47,49,51,0.04) 65%,
    rgba(47,49,51,0.12) 100%
  );
  pointer-events: none;
}

.showcase-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px;
  pointer-events: none;
  height: 120px;
}

.showcase-label {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin-bottom: 6px;
}

.showcase-text p {
  font-size: 13px;
  color: var(--anthracite-2);
  line-height: 1.5;
}

.showcase-inner--text-only {
  justify-content: center;
  padding: 22px;
}

.showcase-text--center {
  position: static;
  padding: 0;
}

@media (max-width: 1100px) {
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.58);
  position: relative;
  min-height: 210px;
}

.step-number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--anthracite-2);
  margin-bottom: 24px;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.process-step p {
  font-size: 15px;
  color: var(--anthracite-2);
}

.cta-band {
  border-radius: 28px;
  padding: 42px;
  border: 1px solid rgba(245, 242, 235, 0.1);
  background: var(--anthracite);
  color: var(--off-white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
  box-shadow: 0 24px 70px rgba(47, 49, 51, 0.18);
}

.cta-band .cta-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.cta-band p {
  color: rgba(245, 242, 235, 0.8);
  font-size: 16px;
  max-width: 50ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 24px;
}

.cta-band .btn-primary {
  background: var(--off-white);
  color: var(--anthracite);
  box-shadow: none;
}

.cta-band .btn-secondary {
  border-color: rgba(245, 242, 235, 0.18);
  color: var(--off-white);
}

.site-footer {
  padding: 30px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  color: var(--anthracite-2);
  font-size: 14px;
}

.footer-tagline {
  white-space: nowrap;
}

.footer-credit {
  font-size: 12px;
  color: var(--anthracite-2);
  text-align: center;
  margin-top: 16px;
  padding: 0 20px;
}

.footer-credit a {
  color: var(--anthracite-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-credit a:hover {
  color: var(--anthracite);
  border-bottom-color: var(--anthracite);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .hero-grid,
  .section-header,
  .cta-band,
  .services-grid,
  .process,
  .grid-3,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .section-header p {
    justify-self: start;
  }
}

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

  .hero-grid,
  .section-header,
  .services-grid,
  .grid-3,
  .process,
  .stats,
  .product-grid,
  .cta-band,
  .form-grid,
  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-form-wrap,
  .cta-band,
  .card,
  .process-step,
  .product-item,
  .stat {
    border-radius: 22px;
  }

  .hero-copy,
  .form-card,
  .cta-band {
    padding: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 38px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  padding: 0;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.back-to-top .progress-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.back-to-top .progress-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
}
.back-to-top .progress-circle {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
  transition: stroke-dashoffset 0.05s linear;
}
.back-to-top .arrow-icon {
  position: relative;
  z-index: 1;
  width: 38%;
  height: 38%;
  stroke: #fff;
  stroke-width: 2.5;
  fill: none;
}
@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
@media (max-width: 480px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 1.2rem;
    right: 1.2rem;
  }
}
@media (min-width: 1920px) {
  .back-to-top {
    width: 56px;
    height: 56px;
    bottom: 2.5rem;
    right: 2.5rem;
  }
}
@media (min-width: 2560px) {
  .back-to-top {
    width: 64px;
    height: 64px;
    bottom: 3rem;
    right: 3rem;
  }
}
