/* ============================================================
   Temavelle — Contemporary Fashion | Timeless Essentials
   Editorial, wine + ivory. Code-led, static.
   ============================================================ */

:root {
  --wine: #5c1a2e;
  --wine-deep: #3e0f1e;
  --wine-soft: #7d2a42;
  --wine-ink: #2a1119;
  --ivory: #f5f0e6;
  --ivory-deep: #e9e0cf;
  --ivory-soft: #fbf8f2;
  --body: #3a222b;
  --muted: #6d5860;
  --line: rgba(92, 26, 46, 0.16);
  --line-strong: rgba(92, 26, 46, 0.3);
  --line-light: rgba(245, 240, 230, 0.18);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: 1240px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --section-y: clamp(4rem, 9vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--wine-soft) var(--ivory-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

::selection {
  background: var(--wine);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer :focus-visible,
.contact :focus-visible,
.hero__visual :focus-visible {
  outline-color: var(--ivory);
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--wine);
  color: var(--ivory);
  border-radius: 2px;
  font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s ease,
    color 0.25s ease, box-shadow 0.35s var(--ease), border-color 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn--solid {
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 12px 28px -16px rgba(62, 15, 30, 0.7);
}

.btn--solid:hover {
  background: var(--wine-soft);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -16px rgba(62, 15, 30, 0.65);
}

.btn--ghost {
  background: transparent;
  color: var(--wine);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--ivory);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.68rem 1.15rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(62, 15, 30, 0.8);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--wine);
}

.brand__mark {
  display: inline-flex;
  flex: none;
}

.brand__mark svg {
  width: 34px;
  height: 34px;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.site-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  padding-block: 0.4rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--wine);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--pad) 1.5rem;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--wine);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--wine);
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__content {
  min-width: 0;
  max-width: 40rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--wine);
  text-wrap: balance;
}

.hero__title em {
  font-style: italic;
  color: var(--wine-soft);
}

.hero__tagline {
  margin-top: clamp(1.1rem, 2.2vw, 1.6rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  color: var(--wine-soft);
  letter-spacing: 0.01em;
}

.hero__lede {
  margin-top: 1.15rem;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.7rem, 3vw, 2.4rem);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-soft);
}

.hero__meta dd {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--wine);
}

.hero__visual {
  position: relative;
  min-width: 0;
  aspect-ratio: 62 / 72;
  max-height: 76vh;
  border-radius: 3px;
  overflow: hidden;
  background: var(--wine);
  box-shadow: 0 40px 70px -50px rgba(62, 15, 30, 0.9);
}

.hero__visual svg {
  width: 100%;
  height: 100%;
}

.hero__caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  right: 1.1rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.72);
}

/* ---------- Tagline band ---------- */

.tagline-band {
  background: var(--wine);
  color: var(--ivory);
  border-block: 1px solid rgba(245, 240, 230, 0.12);
  padding-block: clamp(1rem, 2vw, 1.35rem);
}

.tagline-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem clamp(1.1rem, 2.6vw, 2.2rem);
}

.tagline-band__inner span:not(.dot) {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  letter-spacing: 0.02em;
  text-align: center;
}

.tagline-band .dot {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--wine-soft);
  transform: rotate(45deg);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-y);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--wine);
  text-wrap: balance;
}

.section__title em {
  font-style: italic;
  color: var(--wine-soft);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__note {
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- About ---------- */

.about {
  background: var(--ivory);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.about__lead {
  position: sticky;
  top: 110px;
}

.about__body p {
  max-width: 60ch;
  color: var(--body);
}

.about__intro {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--wine-ink) !important;
}

.about__body p + p {
  margin-top: 1.1rem;
}

.about__values {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
}

.about__values li {
  position: relative;
  padding: 1.1rem 0 1.1rem 1.6rem;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  font-size: 0.98rem;
}

.about__values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine-soft);
}

.about__values strong {
  color: var(--wine);
  font-weight: 500;
}

/* ---------- Mission & Vision ---------- */

.mission {
  position: relative;
  overflow: hidden;
  background: var(--wine);
  color: var(--ivory);
  border-block: 1px solid rgba(245, 240, 230, 0.12);
}

.mission__motif {
  position: absolute;
  top: -16%;
  right: -14%;
  width: min(54rem, 68vw);
  height: auto;
  pointer-events: none;
}

.mission__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.mission__statement {
  position: sticky;
  top: 130px;
}

.mission__tagline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ivory);
  text-wrap: balance;
}

.mission__tagline span,
.mission__tagline em {
  display: block;
}

.mission__tagline em {
  font-style: italic;
  color: var(--ivory-deep);
}

.mission__blocks {
  border-top: 1px solid var(--line-light);
}

.mission__block {
  padding-block: clamp(1.7rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line-light);
}

.mission__label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-deep);
}

.mission__label::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--ivory-deep);
  transform: rotate(45deg);
}

.mission__block p {
  margin-top: 0.9rem;
  max-width: 58ch;
  color: rgba(245, 240, 230, 0.86);
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.72;
}

/* ---------- Lookbook ---------- */

.collections {
  background: var(--ivory-soft);
  border-block: 1px solid var(--line);
}

.lookbook {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  grid-auto-rows: clamp(200px, 22vw, 260px);
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.lookbook__item {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wine);
  color: var(--ivory);
  isolation: isolate;
}

.lookbook__item--tall {
  grid-row: span 2;
}

.lookbook__item--wide {
  grid-column: span 2;
}

.lookbook__art {
  position: absolute;
  inset: 0;
  display: block;
}

.lookbook__art svg {
  width: 100%;
  height: 100%;
  transition: transform 0.9s var(--ease);
}

.lookbook__item:hover .lookbook__art svg,
.lookbook__item:focus-visible .lookbook__art svg {
  transform: scale(1.045);
}

.lookbook__label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 2.6rem 1.2rem 1.15rem;
  background: linear-gradient(
    to top,
    rgba(42, 17, 25, 0.82) 0%,
    rgba(42, 17, 25, 0.32) 55%,
    transparent 100%
  );
}

.lookbook__t {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--wine);
  color: var(--ivory);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact .section__title {
  color: var(--ivory);
}

.contact .section__title em {
  color: var(--ivory-deep);
}

.contact__lede {
  margin-top: 1.3rem;
  max-width: 42ch;
  color: rgba(245, 240, 230, 0.82);
  font-size: 1.05rem;
}

.contact .btn--solid {
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  background: var(--ivory);
  color: var(--wine);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.6);
}

.contact .btn--solid:hover {
  background: var(--ivory-deep);
  transform: translateY(-2px);
}

.contact__methods {
  border-top: 1px solid var(--line-light);
}

.contact__methods li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-light);
}

.contact__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.78);
}

.contact__value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(245, 240, 230, 0.28);
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
  word-break: break-word;
}

.contact__value:hover {
  color: #fff;
  text-decoration-color: var(--ivory);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--wine-deep);
  color: var(--ivory);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.brand--footer {
  color: var(--ivory);
}

.brand--footer .brand__word {
  color: var(--ivory);
}

.site-footer__tag {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(245, 240, 230, 0.72);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.site-footer__h {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.72);
}

.site-footer__nav a {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.95rem;
  color: var(--ivory);
  opacity: 0.86;
  transition: opacity 0.2s ease, transform 0.3s var(--ease);
}

.site-footer__nav a:hover {
  opacity: 1;
  transform: translateX(3px);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-light);
}

.site-footer__social-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.72);
}

.site-footer__social-label strong {
  color: var(--ivory);
  font-weight: 500;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--ivory);
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.35s var(--ease);
}

.social a:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--wine);
  transform: translateY(-3px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 230, 0.6);
}

/* ---------- Entrance motion (JS adds init class) ---------- */

.reveal-init {
  opacity: 0;
  transform: translateY(26px);
}

.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.hero__content > * {
  animation: heroRise 0.9s var(--ease) both;
}

.hero__content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero__content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero__content > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero__content > *:nth-child(5) {
  animation-delay: 0.32s;
}

.hero__content > *:nth-child(6) {
  animation-delay: 0.4s;
}

.hero__visual {
  animation: heroReveal 1.1s var(--ease) both;
  animation-delay: 0.12s;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

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

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

  .mobile-nav.is-open {
    display: flex;
  }

  .site-header__actions .btn--sm {
    display: none;
  }

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

  .hero__content {
    max-width: none;
  }

  .hero__visual {
    max-height: none;
    aspect-ratio: 16 / 11;
    order: -1;
  }

  .hero__visual svg {
    object-fit: cover;
  }

  .about__grid,
  .contact__grid,
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .about__lead {
    position: static;
  }

  .mission__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.2rem, 5vw, 3.5rem);
  }

  .mission__statement {
    position: static;
  }

  .mission__tagline {
    max-width: 14ch;
  }

  .mission__motif {
    top: -30%;
    right: -30%;
    width: 46rem;
  }

  .lookbook {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(190px, 30vw, 240px);
  }

  .lookbook__item--tall {
    grid-row: span 2;
  }

  .lookbook__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .site-header__inner {
    min-height: 66px;
  }

  .brand__word {
    font-size: 1.3rem;
  }

  .hero__meta {
    gap: 1.25rem 2rem;
  }

  .mission__tagline {
    font-size: clamp(2.7rem, 12vw, 3.7rem);
  }

  .mission__block p {
    font-size: 1rem;
  }

  .mission__motif {
    top: -6%;
    right: -46%;
    width: 34rem;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .lookbook {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .lookbook__item {
    aspect-ratio: 4 / 5;
  }

  .lookbook__item--tall {
    grid-row: auto;
  }

  .lookbook__item--wide {
    grid-column: auto;
    aspect-ratio: 16 / 11;
  }

  .lookbook__label {
    padding: 2.2rem 1rem 1rem;
  }

  .site-footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__social {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-init {
    opacity: 1;
    transform: none;
  }
}
