/* ==========================================================================
   Zyravo — The Desert Edition
   Desert Luxury × Editorial × Architectural
   ========================================================================== */

:root {
  --beige: #D6C3A5;
  --sand: #E8DCC8;
  --clay: #C9B08C;
  --ivory: #FFFCF8;
  --espresso: #2F241D;
  --mist: #F4EEE6;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  --ease-slow: cubic-bezier(0.25, 0.1, 0.25, 1);
  --panel-width: 3.25rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--espresso);
  background-color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shapeDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-1%, 1.5%) scale(1.02); }
}

@keyframes revealLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Brand panel (vertical label)
   -------------------------------------------------------------------------- */

.brand-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--panel-width);
  height: 100vh;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.4s var(--ease-slow) both;
}

.brand-panel__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Site navigation
   -------------------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: var(--space-md);
  right: var(--space-lg);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: capitalize;
  animation: fadeIn 1.6s var(--ease-slow) 0.3s both;
}

.site-nav a {
  position: relative;
  padding: 0.15rem 0;
  transition: opacity 0.4s var(--ease-slow);
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover {
  opacity: 0.7;
}

.site-nav__dot {
  color: var(--clay);
  font-size: 0.65rem;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Shared typography
   -------------------------------------------------------------------------- */

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-sm);
  animation: fadeUp 1s var(--ease-slow) both;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.section-title--display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Cover / opening
   -------------------------------------------------------------------------- */

.cover {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-xl) var(--space-xl);
  overflow: hidden;
}

.cover__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  background: var(--mist);
}

.shape--arc {
  border-radius: 50%;
  animation: shapeDrift 18s var(--ease-slow) infinite;
}

.shape--1 {
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  top: -15%;
  right: -8%;
  background: linear-gradient(135deg, var(--sand) 0%, var(--mist) 100%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.shape--2 {
  width: 35vw;
  height: 35vw;
  max-width: 420px;
  max-height: 420px;
  bottom: 10%;
  left: 25%;
  background: var(--beige);
  opacity: 0.35;
  border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
  animation-delay: -6s;
}

.shape--dune {
  width: 100%;
  height: 28vh;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, var(--sand) 0%, transparent 100%);
  border-radius: 100% 100% 0 0 / 30% 30% 0 0;
  animation: none;
}

.shape--wall {
  width: 42%;
  height: 65vh;
  top: 18%;
  left: 8%;
  background: linear-gradient(160deg, var(--mist) 0%, var(--sand) 60%, var(--beige) 100%);
  border-radius: 0 45% 45% 0 / 0 30% 30% 0;
  opacity: 0.6;
  animation: shapeDrift 22s var(--ease-slow) infinite reverse;
}

.cover__content {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  animation: fadeUp 1.2s var(--ease-slow) 0.2s both;
}

.cover__edition {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--space-md);
}

.cover__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: var(--space-lg);
}

.cover__lead {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--espresso);
  opacity: 0.78;
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Philosophy
   -------------------------------------------------------------------------- */

.philosophy {
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-2xl) var(--space-xl);
  background: var(--ivory);
}

.philosophy__intro {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--beige);
}

.philosophy__block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--mist);
  animation: fadeUp 1s var(--ease-slow) both;
}

.philosophy__block:nth-child(2) { animation-delay: 0.1s; }
.philosophy__block:nth-child(3) { animation-delay: 0.2s; }
.philosophy__block:nth-child(4) { animation-delay: 0.3s; }

.philosophy__block--simplicity {
  margin-left: 0;
  max-width: 85%;
}

.philosophy__block--space {
  margin-left: clamp(8%, 15vw, 22%);
  max-width: 78%;
}

.philosophy__block--purpose {
  margin-left: clamp(12%, 20vw, 28%);
  max-width: 70%;
}

.philosophy__index {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--beige);
  line-height: 1;
  align-self: start;
}

.philosophy__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  grid-column: 2;
  margin-bottom: var(--space-sm);
}

.philosophy__text {
  grid-column: 2;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  opacity: 0.82;
  max-width: 32rem;
}

/* --------------------------------------------------------------------------
   Feature article
   -------------------------------------------------------------------------- */

.article {
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-2xl) var(--space-xl);
  background: var(--mist);
}

.article__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

.article__visual {
  position: relative;
  min-height: 28rem;
  animation: fadeIn 1.4s var(--ease-slow) both;
}

.article__frame {
  position: absolute;
  inset: 8% 12% 12% 0;
  background: linear-gradient(145deg, var(--sand), var(--beige));
  border-radius: 0 40% 8% 0 / 0 25% 8% 0;
}

.article__accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 45%;
  background: var(--clay);
  opacity: 0.25;
  border-radius: 50% 0 0 0;
}

.article__copy {
  padding-top: var(--space-lg);
  animation: fadeUp 1.2s var(--ease-slow) 0.15s both;
}

.article__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.01em;
}

.article__body {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.95;
  margin-bottom: var(--space-md);
  opacity: 0.85;
}

.article__body--italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  opacity: 0.75;
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Collections
   -------------------------------------------------------------------------- */

.collections {
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-2xl) var(--space-xl);
}

.collections__header {
  margin-bottom: var(--space-xl);
}

.collections__list {
  list-style: none;
}

.collection-entry {
  display: grid;
  grid-template-columns: 12rem 1fr auto;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--beige);
  transition: padding-left 0.6s var(--ease-slow);
  animation: fadeUp 0.9s var(--ease-slow) both;
}

.collection-entry:nth-child(1) { animation-delay: 0.05s; }
.collection-entry:nth-child(2) { animation-delay: 0.15s; }
.collection-entry:nth-child(3) { animation-delay: 0.25s; }
.collection-entry:nth-child(4) { animation-delay: 0.35s; }

.collection-entry:last-child {
  border-bottom: 1px solid var(--beige);
}

.collection-entry:hover {
  padding-left: var(--space-sm);
}

.collection-entry__roman {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
}

.collection-entry__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.collection-entry__line {
  width: 4rem;
  height: 1px;
  background: var(--beige);
  justify-self: end;
  transform-origin: right;
  animation: revealLine 0.8s var(--ease-slow) both;
}

.collection-entry:hover .collection-entry__line {
  background: var(--clay);
  width: 6rem;
  transition: width 0.5s var(--ease-slow), background 0.4s;
}

/* --------------------------------------------------------------------------
   Metrics
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-2xl) var(--space-xl);
  background: var(--ivory);
}

.metrics__item {
  text-align: center;
  animation: fadeUp 1s var(--ease-slow) both;
}

.metrics__item:nth-child(1) { animation-delay: 0.1s; }
.metrics__item:nth-child(2) { animation-delay: 0.2s; }
.metrics__item:nth-child(3) { animation-delay: 0.3s; }
.metrics__item:nth-child(4) { animation-delay: 0.4s; }

.metrics__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--espresso);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.metrics__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote {
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl));
  text-align: center;
}

.quote__text {
  border: none;
}

.quote__text p {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--espresso);
  opacity: 0.9;
  animation: fadeUp 1.4s var(--ease-slow) both;
}

/* --------------------------------------------------------------------------
   Journey
   -------------------------------------------------------------------------- */

.journey {
  padding: var(--space-xl) calc(var(--panel-width) + var(--space-xl)) var(--space-2xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.journey__path {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: min-content;
  gap: 0;
  list-style: none;
  padding: var(--space-lg) 0;
}

.journey__step {
  flex-shrink: 0;
  animation: fadeUp 0.8s var(--ease-slow) both;
}

.journey__step:nth-child(1) { animation-delay: 0.1s; }
.journey__step:nth-child(3) { animation-delay: 0.25s; }
.journey__step:nth-child(5) { animation-delay: 0.4s; }
.journey__step:nth-child(7) { animation-delay: 0.55s; }
.journey__step:nth-child(9) { animation-delay: 0.7s; }

.journey__word {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-md);
  transition: color 0.4s var(--ease-slow);
}

.journey__step:hover .journey__word {
  color: var(--clay);
}

.journey__connector {
  flex: 1 1 3rem;
  min-width: 2rem;
  max-width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--beige), var(--clay), var(--beige));
  list-style: none;
}

/* --------------------------------------------------------------------------
   Invitation
   -------------------------------------------------------------------------- */

.invitation {
  text-align: center;
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl));
  background: linear-gradient(180deg, var(--sand) 0%, var(--mist) 50%, var(--ivory) 100%);
}

.invitation__headline {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
  animation: fadeUp 1s var(--ease-slow) both;
}

.invitation__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.125rem 2.75rem;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  background: transparent;
  transition: background 0.5s var(--ease-slow), color 0.5s var(--ease-slow);
  animation: fadeUp 1s var(--ease-slow) 0.2s both;
}

.invitation__btn:hover,
.invitation__btn:focus-visible {
  background: var(--espresso);
  color: var(--ivory);
}

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

.contact {
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-xl) var(--space-xl);
  background: var(--ivory);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin-bottom: var(--space-lg);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact__row dt {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.35rem;
}

.contact__row dd {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
}

.contact__row a {
  position: relative;
}

.contact__row a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-slow);
}

.contact__row a:hover::after {
  transform: scaleX(1);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-field label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--espresso);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--beige);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.4s var(--ease-slow);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--clay);
}

.form-submit {
  align-self: flex-start;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--espresso);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
}

.form-submit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--espresso);
  transition: transform 0.5s var(--ease-slow), background 0.4s;
}

.form-submit:hover::after {
  background: var(--clay);
}

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

.site-footer {
  position: relative;
  padding: var(--space-2xl) calc(var(--panel-width) + var(--space-xl)) var(--space-lg);
  overflow: hidden;
  background: var(--mist);
}

.site-footer__word {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--beige);
  opacity: 0.45;
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.site-footer__copy {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-top: var(--space-md);
  opacity: 0.7;
}

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

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

  .article__visual {
    min-height: 18rem;
    max-width: 28rem;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    row-gap: var(--space-xl);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --panel-width: 2.5rem;
  }

  .brand-panel__text {
    font-size: 0.5625rem;
    letter-spacing: 0.35em;
  }

  .site-nav {
    top: var(--space-sm);
    right: var(--space-sm);
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - var(--panel-width) - 1rem);
  }

  .cover,
  .philosophy,
  .article,
  .collections,
  .metrics,
  .quote,
  .journey,
  .invitation,
  .contact {
    padding-left: calc(var(--panel-width) + var(--space-md));
    padding-right: var(--space-md);
  }

  .cover {
    align-items: center;
    padding-top: 6rem;
    padding-bottom: var(--space-xl);
  }

  .philosophy__block,
  .philosophy__block--simplicity,
  .philosophy__block--space,
  .philosophy__block--purpose {
    margin-left: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .philosophy__index {
    font-size: 2.5rem;
  }

  .philosophy__name,
  .philosophy__text {
    grid-column: 1;
  }

  .collection-entry {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .collection-entry__line {
    justify-self: start;
    width: 3rem;
  }

  .journey__path {
    justify-content: flex-start;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .quote {
    padding-left: calc(var(--panel-width) + var(--space-md));
    padding-right: var(--space-md);
  }

  .invitation {
    padding-left: calc(var(--panel-width) + var(--space-md));
    padding-right: var(--space-md);
  }
}

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

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a:not(:last-child)::after {
    display: none;
  }

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

  .shape--wall {
    width: 70%;
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
