/* ============================================================
   Whisq — DIY Interiors & Bespoke Resin Furniture
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-300-normal.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c1512;
  --ink-2: #101c18;
  --ink-3: #16241f;
  --emerald: #14544a;
  --emerald-deep: #0b2f28;
  --teal: #1e7d6b;
  --gold: #c6a14b;
  --gold-bright: #e3c887;
  --cream: #f2ecdf;
  --cream-2: #faf7ef;
  --text: #e9e4d8;
  --text-dim: #9aa69f;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Century Gothic', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.preloader__ring { position: absolute; inset: 0; }
.preloader__ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1;
  stroke-dasharray: 352; stroke-dashoffset: 352;
  transform-origin: center; transform: rotate(-90deg);
  animation: ring-draw 1.6s var(--ease) forwards;
}
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.preloader__wq {
  font-family: var(--serif); font-size: 2.6rem; color: var(--cream);
  white-space: nowrap;
  animation: fade-up 0.9s 0.3s var(--ease) both;
}
.preloader__wq em, .nav__monogram em, .footer__mark em { color: var(--gold); font-style: normal; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Cursor ---------- */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold-bright);
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    display: block; position: fixed; z-index: 99; pointer-events: none;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(198, 161, 75, 0.45);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
  }
  .cursor-ring.is-hover { width: 56px; height: 56px; border-color: rgba(227, 200, 135, 0.85); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled {
  background: rgba(12, 21, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 0.85rem; padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 rgba(198, 161, 75, 0.14);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__monogram {
  font-family: var(--serif); font-size: 1.1rem; line-height: 1;
  white-space: nowrap;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(198, 161, 75, 0.5); border-radius: 50%;
  color: var(--cream);
}
.nav__name {
  font-family: var(--serif); font-size: 1.35rem; color: var(--cream);
  letter-spacing: 0.02em;
}
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav__links a {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 400;
  transition: color 0.3s;
  position: relative;
}
.nav__links a:hover { color: var(--gold-bright); }
.nav__links a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(198, 161, 75, 0.55); border-radius: 999px;
  padding: 0.6rem 1.3rem; color: var(--gold-bright) !important;
  transition: background 0.3s, color 0.3s !important;
}
.nav__cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 60;
  }
  .nav__toggle span { width: 26px; height: 1.5px; background: var(--cream); transition: transform 0.35s var(--ease), opacity 0.3s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center;
    background: rgba(12, 21, 18, 0.97);
    backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 500;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1rem 2.2rem; border-radius: 999px; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
  border: none; will-change: transform;
}
.btn--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright), var(--gold));
  background-size: 200% 100%;
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(198, 161, 75, 0.25);
}
.btn--gold:hover { background-position: 100% 0; box-shadow: 0 12px 40px rgba(198, 161, 75, 0.4); }
.btn--ghost {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(242, 236, 223, 0.35);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 42%, transparent 30%, rgba(12, 21, 18, 0.55) 100%),
    linear-gradient(to bottom, rgba(12,21,18,0.5) 0%, transparent 22%, transparent 70%, var(--ink) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; }
.hero__eyebrow {
  font-size: 0.75rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.6rem;
}
.hero__title { line-height: 0.95; }
.hero__word {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(4.5rem, 15vw, 11rem);
  color: var(--cream-2); letter-spacing: 0.01em;
  display: inline-block;
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.55);
}
.hero__word em { color: var(--gold); font-style: normal; }
.hero__sub {
  margin-top: 1.4rem;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text);
}
.hero__tag {
  margin-top: 0.7rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--gold-bright);
}
.hero__actions { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px; height: 52px; overflow: hidden; position: relative;
  background: rgba(198, 161, 75, 0.25);
}
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--gold);
  animation: scroll-drip 2s ease-in-out infinite;
}
@keyframes scroll-drip { 0% { top: -50%; } 100% { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid rgba(198, 161, 75, 0.18);
  border-bottom: 1px solid rgba(198, 161, 75, 0.18);
  padding: 1.1rem 0;
  background: var(--ink-2);
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic;
  color: rgba(198, 161, 75, 0.75); padding-right: 1rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections (shared) ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) clamp(1.4rem, 6vw, 6rem); position: relative; }
.section__head { max-width: 780px; margin-bottom: clamp(2.6rem, 6vw, 4.5rem); }
.section__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.section__eyebrow::before { content: ''; width: 42px; height: 1px; background: var(--gold); }
.section__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.12;
  color: var(--cream-2);
}
.section__title em { color: var(--gold-bright); }
.section__note { margin-top: 1.2rem; color: var(--text-dim); max-width: 56ch; }

/* ---------- Craft ---------- */
.craft { background: var(--ink); }
.craft__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.craft__text p { color: var(--text-dim); font-size: 1.02rem; max-width: 58ch; }
.craft__text p + p { margin-top: 1.2rem; }
.craft__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(198, 161, 75, 0.16); }
.stat { background: var(--ink); padding: 2rem 1.6rem; }
.stat__num {
  display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--gold-bright); line-height: 1;
}
.stat__num::after { content: '+'; color: var(--emerald); }
.stat__label { display: block; margin-top: 0.5rem; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
@media (max-width: 860px) { .craft__grid { grid-template-columns: 1fr; } }

/* ---------- Collection / gallery ---------- */
.collection { background: linear-gradient(var(--ink), var(--ink-2)); }
/* Masonry columns so each piece keeps its natural proportions */
.gallery { columns: 3; column-gap: clamp(1.2rem, 2.5vw, 2rem); }
.gallery__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.gallery__frame {
  overflow: hidden; border-radius: 4px;
  background: linear-gradient(160deg, var(--ink-3), var(--emerald-deep));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.gallery__item:hover .gallery__frame { box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(198, 161, 75, 0.3); }
.gallery__frame img {
  width: 100%; height: auto;
  transform: scale(1.01);
  transition: transform 0.9s var(--ease), filter 0.6s;
  filter: saturate(0.98) contrast(1.02);
  backface-visibility: hidden;
}
.gallery__item:hover .gallery__frame img { transform: scale(1.045); filter: saturate(1.05); }
.gallery__item figcaption { padding: 1.1rem 0.3rem 0; }
.gallery__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--cream); }
.gallery__item figcaption p { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--text-dim); margin-top: 0.25rem; }
@media (max-width: 960px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* ---------- Quote band ---------- */
.quote {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.4rem, 6vw, 6rem);
  background: var(--emerald-deep);
  border-top: 1px solid rgba(198, 161, 75, 0.2);
  border-bottom: 1px solid rgba(198, 161, 75, 0.2);
  text-align: center;
}
.quote blockquote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4;
  color: var(--cream); max-width: 860px; margin: 0 auto;
}
.quote cite {
  display: block; margin-top: 1.6rem;
  font-family: var(--sans); font-style: normal; font-size: 0.75rem;
  letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold-bright);
}

/* ---------- DIY Interiors cards ---------- */
.interiors { background: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(198, 161, 75, 0.16); }
.card {
  background: var(--ink-2); padding: 2.4rem 1.9rem;
  transition: background 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.6s var(--ease);
}
.card:hover { background: var(--ink-3); }
.card:hover::before { width: 100%; }
.card__icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 1.4rem; }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--cream); margin-bottom: 0.7rem; }
.card p { font-size: 0.9rem; color: var(--text-dim); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Process timeline ---------- */
.process { background: var(--ink); }
.timeline {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(1.4rem, 3vw, 2.4rem);
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; top: 1.25rem; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 75, 0.4), transparent);
}
.timeline__step { position: relative; padding-top: 3.4rem; }
.timeline__num {
  position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 1px solid rgba(198, 161, 75, 0.5); border-radius: 50%;
  background: var(--ink);
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold-bright);
}
.timeline__step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--cream); margin-bottom: 0.5rem; }
.timeline__step p { font-size: 0.86rem; color: var(--text-dim); }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline::before { top: 0; bottom: 0; left: 1.25rem; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, rgba(198, 161, 75, 0.4), transparent); }
  .timeline__step { padding-top: 0; padding-left: 4rem; }
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(ellipse 70% 60% at 85% 15%, rgba(20, 84, 74, 0.35), transparent 65%),
    radial-gradient(ellipse 50% 45% at 8% 90%, rgba(198, 161, 75, 0.08), transparent 60%),
    var(--ink-2);
}
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 7vw, 6rem);
  max-width: 1200px; margin: 0 auto;
  align-items: start;
}
.contact__intro > p { color: var(--text-dim); margin-top: 1.2rem; max-width: 46ch; }
.contact__meta { list-style: none; margin-top: 2.2rem; display: grid; gap: 1rem; }
.contact__meta li { display: flex; align-items: center; gap: 0.85rem; font-size: 0.9rem; letter-spacing: 0.08em; color: var(--text); }
.contact__meta svg { width: 21px; height: 21px; color: var(--gold); flex-shrink: 0; }

.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form__field { display: grid; gap: 0.5rem; }
.form__field label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 400;
}
.form__field input, .form__field select, .form__field textarea {
  font-family: var(--sans); font-weight: 300; font-size: 0.98rem;
  color: var(--cream);
  background: rgba(12, 21, 18, 0.6);
  border: 1px solid rgba(154, 166, 159, 0.25);
  border-radius: 3px;
  padding: 0.95rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form__field input::placeholder, .form__field textarea::placeholder { color: rgba(154, 166, 159, 0.55); }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 75, 0.14);
}
.form__field select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c6a14b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
.form__field select option { background: var(--ink-2); }
.form__field textarea { resize: vertical; min-height: 130px; }
.form__submit { justify-self: start; min-width: 210px; }
.form__status { font-size: 0.88rem; letter-spacing: 0.05em; min-height: 1.4em; }
.form__hint { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.05em; margin-top: -0.6rem; }
.form__status.is-ok { color: #8fd8a8; }
.form__status.is-err { color: #e2957f; }
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 4rem 1.5rem 3rem; text-align: center;
  background: var(--ink);
  border-top: 1px solid rgba(198, 161, 75, 0.15);
}
.footer__mark {
  font-family: var(--serif); font-size: 1.7rem; color: var(--cream);
  white-space: nowrap;
  width: 74px; height: 74px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border: 1px solid rgba(198, 161, 75, 0.45); border-radius: 50%;
}
.footer__brand { font-family: var(--serif); font-size: 1.15rem; color: var(--cream); letter-spacing: 0.04em; }
.footer__line { margin-top: 0.5rem; font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.footer__copy { margin-top: 1.6rem; font-size: 0.75rem; color: var(--text-dim); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .cursor, .cursor-ring { display: none !important; }
}
