/* ChronoVault — Atelier redesign
   Cool stone + deep teal (not black/gold cards) */

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

:root {
  --ink: #12161c;
  --ink-soft: #3a4250;
  --mist: #f4f5f7;
  --paper: #ebecef;
  --line: #d5d8de;
  --teal: #1a4d52;
  --teal-deep: #12383c;
  --brass: #8f7348;
  --white: #ffffff;
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 77, 82, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(143, 115, 72, 0.06), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 245, 247, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 400;
}

.header-nav a {
  color: var(--ink-soft);
  transition: color 0.25s;
}

.header-nav a:hover {
  color: var(--ink);
}

.header-cta {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 2px;
  transition: background 0.25s;
}

.header-cta:hover {
  background: var(--teal-deep);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.menu-btn.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-btn.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.btn-solid {
  background: var(--teal);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.btn-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-line:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-block {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: heroDrift 22s var(--ease) infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 28, 0.25) 0%, rgba(18, 22, 28, 0.55) 45%, rgba(18, 22, 28, 0.88) 100%),
    linear-gradient(90deg, rgba(18, 22, 28, 0.55) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 5.5rem;
  color: var(--white);
  max-width: 38rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.25rem;
  animation: brandIn 1.1s var(--ease) both;
}

@keyframes brandIn {
  from {
    opacity: 0;
    letter-spacing: 0.12em;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.03em;
    transform: translateY(0);
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  max-width: 32ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Sections —— */
.section-intro {
  margin-bottom: 2.75rem;
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-intro p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* —— Prices board —— */
.prices {
  padding: 6rem 0 4rem;
}

.price-board {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.price-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}

.price-row:hover {
  background: rgba(26, 77, 82, 0.04);
}

.price-row img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 2px;
}

.price-meta h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.price-meta p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.price-nums {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 9rem;
}

.market {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(58, 66, 80, 0.4);
}

.pay {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--brass);
}

.price-link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}

.price-link:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— Marquee —— */
.marquee {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.35);
}

.marquee-label {
  flex-shrink: 0;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: scrollBrands 32s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.marquee-track span::after {
  content: '·';
  margin-left: 2.5rem;
  opacity: 0.35;
}

@keyframes scrollBrands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* —— Why —— */
.why {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.75rem;
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.why-item p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* —— Steps —— */
.steps {
  padding: 2rem 0 6rem;
}

.step-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.step-block--flip {
  direction: rtl;
}

.step-block--flip > * {
  direction: ltr;
}

.step-index {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: rgba(26, 77, 82, 0.18);
  line-height: 1;
  display: block;
  margin-bottom: 0.75rem;
}

.step-copy h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.step-copy p {
  color: var(--ink-soft);
  max-width: 28rem;
}

.step-visual {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.step-block:hover .step-visual img {
  transform: scale(1.04);
}

/* —— Stories —— */
.stories {
  padding: 5rem 0;
  background: var(--ink);
  color: var(--white);
}

.stories .eyebrow {
  color: #7eb0b4;
}

.stories .section-intro p,
.stories .section-intro h2 {
  color: var(--white);
}

.stories .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.65);
}

.quote-list {
  display: grid;
  gap: 2.5rem;
}

.quote-list blockquote {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  max-width: 48rem;
}

.quote-list p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.quote-list footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.quote-list strong {
  color: #c9d4d5;
  font-weight: 500;
  font-style: normal;
}

/* —— Offer form —— */
.offer {
  padding: 6rem 0;
}

.offer-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.offer-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.offer-intro > p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.offer-points {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.offer-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.offer-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 1px;
}

.offer-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(18, 22, 28, 0.06);
}

.field {
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--mist);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233a4250' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
}

/* —— FAQ —— */
.faq {
  padding: 4rem 0 6rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  max-width: 22rem;
  font-size: 0.92rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols h4 {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-cols a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--white);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  font-size: 0.8rem;
}

.footer-base a {
  margin-left: 1.1rem;
}

.footer-base a:hover {
  color: var(--white);
}

/* —— Modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 22, 28, 0.55);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: 2px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.4s var(--ease);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.modal-panel p {
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
  font-size: 0.95rem;
}

/* —— Reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-delay: 0.15s;
}

.hero .reveal:nth-child(2) { transition-delay: 0.28s; }
.hero .reveal:nth-child(3) { transition-delay: 0.4s; }
.hero .reveal:nth-child(4) { transition-delay: 0.52s; }

/* brand-mark has its own animation; still needs visible on load */
.hero .brand-mark.reveal {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-block,
  .step-block--flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.5rem;
  }

  .offer-layout,
  .faq-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 72px 1fr;
    gap: 0.9rem;
  }

  .price-nums {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
  }

  .price-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .header-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(244, 245, 247, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    margin-left: 0;
  }

  .header-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-copy {
    padding-bottom: 3.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

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

  .marquee-label {
    display: none;
  }

  .price-row img {
    width: 72px;
    height: 72px;
  }
}
