/* Mallorca Perlas — styles */
:root {
  --ivory: #F7F5F0;
  --cream: #EDE8DE;
  --gold: #B49A65;
  --gold-dark: #9C834F;
  --stone: #E8E7E2;
  --charcoal: #34332F;
  --text: #4A4843;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --pad: clamp(20px, 7.5vw, 112px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--charcoal); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--charcoal); color: var(--ivory); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; color: var(--ivory); }

/* ---------- shared ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 14px;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.04;
  color: var(--charcoal);
  margin: 0 0 18px;
  letter-spacing: -.005em;
}
.rule { display: block; width: 40px; height: 1px; background: var(--gold); margin: 0 0 22px; }
.rule--end { margin: 26px 0 0; }
.script { font-family: var(--script); color: var(--charcoal); line-height: 1.15; margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--gold);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  padding: 17px 30px 17px 32px;
  transition: background .3s;
}
.btn:hover { background: var(--gold-dark); color: #fff; }
.btn .arrow { width: 14px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px var(--pad) 0 clamp(20px, 7.5vw, 108px);
}
.logo { display: inline-flex; flex-direction: column; align-items: center; color: var(--charcoal); }
.logo:hover { color: var(--charcoal); }
.logo__shell { width: clamp(36px, 3.4vw, 50px); height: auto; margin-bottom: 6px; }
.logo__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.15vw, 33px);
  letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  margin-right: -.2em; white-space: nowrap;
}
.logo__tag {
  font-size: clamp(8px, .68vw, 10px); font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  margin-top: 12px; margin-right: -.3em;
}

.site-nav { display: flex; align-items: center; gap: clamp(32px, 4vw, 64px); margin-top: 18px; padding: 16px clamp(22px, 2.4vw, 36px) 12px; background: #fff; box-shadow: 0 2px 18px rgba(52,51,47,.06); }
.site-nav ul { display: flex; gap: clamp(24px, 3.4vw, 50px); }
.site-nav ul a {
  position: relative; display: inline-block; padding-bottom: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--charcoal); opacity: .8;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { opacity: 1; color: var(--charcoal); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.icon-link svg, .contact__list .icon { fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-link { margin-top: -6px; display: inline-flex; }
.icon-link svg { width: 18px; height: 18px; }
svg .fill { fill: currentColor; stroke: none; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 55vw, 820px);
  background: linear-gradient(100deg, #F3EEE5 0%, #EFE8DC 38%, #E9E0D0 60%);
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 62%; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(150px, 14vw, 210px) var(--pad) clamp(48px, 5vw, 76px) clamp(24px, 8.4vw, 122px);
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: .95; letter-spacing: -.01em;
  color: #23221F; margin: 0 0 clamp(28px, 3vw, 40px);
}
.hero__title em { font-style: italic; }
.hero .rule { margin-bottom: 20px; }
.eyebrow--dark { line-height: 2; margin-bottom: 24px; letter-spacing: .26em; }
.hero__lead { font-size: clamp(14px, 1.3vw, 18px); line-height: 1.55; color: var(--charcoal); margin-bottom: 32px; }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: 49% 1fr; background: var(--ivory); }
.story__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.story__content { position: relative; padding: clamp(40px, 4vw, 60px) 240px clamp(32px, 3vw, 44px) clamp(32px, 5.1vw, 74px); max-width: 820px; }
.story__content p:not(.eyebrow):not(.script) { font-size: clamp(13px, 1vw, 15px); color: var(--text); }
.story__shell { position: absolute; top: 48px; right: 60px; width: 120px; opacity: .9; }
.story__script { position: absolute; top: 190px; right: 6px; width: 228px; font-size: clamp(36px, 3.5vw, 48px); line-height: .95; transform: rotate(-10deg); text-align: center; pointer-events: none; color: #8C8372; }

/* ---------- jewellery ---------- */
.jewellery {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.06fr); gap: clamp(20px, 2.6vw, 36px);
  padding: clamp(24px, 2.4vw, 34px) clamp(20px, 2.3vw, 32px) clamp(40px, 4vw, 58px) clamp(24px, 6.3vw, 90px);
  background: linear-gradient(180deg, var(--ivory), #F4F1EA);
}
.jewellery__intro { padding-top: 14px; display: flex; flex-direction: column; }
.jewellery__intro .title { margin-bottom: clamp(24px, 3.2vw, 44px); }
.jewellery__intro p:not(.eyebrow) { font-size: clamp(13px, 1vw, 15px); }
.jewellery__intro .rule--end { margin-top: 10px; }
.jewellery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, .9vw, 12px); }
.piece__img { overflow: hidden; aspect-ratio: 187 / 211; background: var(--cream); }
.piece__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.piece:hover .piece__img img { transform: scale(1.04); }
.piece figcaption {
  text-align: center; margin-top: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--charcoal);
}
.piece figcaption::after { content: ""; display: block; width: 14px; height: 1px; background: var(--gold); margin: 10px auto 0; }

/* ---------- craft ---------- */
.craft { position: relative; display: grid; grid-template-columns: 63% 1fr; background: #EEE6DA; overflow: hidden; }
.craft__media { position: relative; }
.craft__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 320px;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
.craft__content { padding: clamp(36px, 4vw, 58px) clamp(24px, 4vw, 60px) clamp(28px, 3vw, 44px) 0; max-width: 420px; align-self: center; }
.craft__content p:not(.eyebrow) { font-size: clamp(13px, 1vw, 15px); }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 6vw, 86px) clamp(24px, 2vw, 30px) clamp(24px, 7.3vw, 106px);
  background: linear-gradient(90deg, var(--ivory) 0%, #F6F2EB 50%, var(--ivory) 100%);
  gap: 0 clamp(16px, 2vw, 28px);
}
.contact__content { position: relative; z-index: 2; }
.contact__content .title { margin-bottom: 12px; }
.contact__content p:not(.eyebrow) { font-size: clamp(13px, 1vw, 15px); max-width: 480px; margin-bottom: 20px; }
.contact__media { margin-left: -14%; }
.contact__media img {
  width: 100%; max-width: 440px;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 55% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 72% at 55% 50%, #000 55%, transparent 100%);
}
.contact__list {
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px clamp(24px, 3.6vw, 52px);
  display: flex; flex-direction: column; gap: 22px;
  font-size: clamp(12px, .95vw, 14px);
}
.contact__list li { display: flex; align-items: center; gap: 18px; color: var(--charcoal); }
.contact__list .icon { width: 20px; height: 20px; flex: none; color: var(--charcoal); }
.contact__list .icon--gold { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid rgba(180,154,101,.18); }
.footer__main {
  display: grid; grid-template-columns: auto 1fr auto; justify-items: center; align-items: center;
  padding: 56px clamp(24px, 7vw, 110px) 40px clamp(24px, 5vw, 72px); gap: 24px;
}
.logo--footer { justify-self: start; }
.logo--footer .logo__name { font-size: clamp(20px, 1.9vw, 28px); }
.logo--footer .logo__tag { margin-top: 10px; }
.footer__nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.footer__nav a { white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.footer__script { justify-self: end; font-size: clamp(36px, 3.4vw, 50px); line-height: .95; transform: rotate(-12deg); text-align: center; margin: -10px 0; white-space: nowrap; color: #8C8372; }
.footer__script span { font-family: var(--sans); color: var(--gold); font-size: .8em; }
.footer__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  padding: 14px var(--pad) 22px;
  font-size: 11px; letter-spacing: .08em; color: #7A766D;
}
.footer__meta a { color: #7A766D; }
.footer__meta a:hover { color: var(--gold-dark); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .piece__img img { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .story__content { padding-right: clamp(32px, 5vw, 60px); }
  .story__shell { width: 80px; top: 24px; right: 24px; opacity: .6; }
  .story__script { position: static; transform: rotate(-6deg); margin: 24px 0 0; width: auto; text-align: left; }
  .story__script br { display: none; }
  .jewellery { grid-template-columns: 1fr; padding-inline: var(--pad); }
  .jewellery__intro { max-width: 620px; }
  .contact { grid-template-columns: 1fr 1fr; }
  .contact__media { display: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .site-header { position: absolute; padding: 14px 20px 0; align-items: center; }
  .logo__shell { width: 34px; }
  .logo__name { font-size: 20px; }
  .logo__tag { font-size: 8px; margin-top: 8px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 30;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--charcoal); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 25;
    flex-direction: column; justify-content: center; gap: 40px; padding: 0; margin: 0; box-shadow: none;
    background: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 26px; }
  .site-nav ul a { font-size: 13px; }
  .icon-link { margin: 0; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__media { position: relative; width: 100%; height: auto; order: 2; }
  .hero__media img { height: auto; aspect-ratio: 523 / 380; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%); }
  .hero__content { padding: 150px 24px 28px; }

  .story, .craft { grid-template-columns: 1fr; }
  .story__media img, .craft__media img { min-height: 0; aspect-ratio: 3 / 2; }
  .story__content { padding: 44px 24px 40px; }
  .story__shell { width: 64px; }
  .craft__media img { -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%); }
  .craft__content { padding: 16px 24px 48px; max-width: none; }

  .jewellery { padding: 44px 24px 48px; }
  .jewellery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .piece figcaption { font-size: 10px; letter-spacing: .2em; }

  .contact { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px; }
  .contact__list { padding-left: 24px; }

  .footer__main { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 36px 24px 16px; gap: 28px; }
  .logo--footer, .footer__script { justify-self: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 14px 24px; }
}

@media (max-width: 480px) {
  .jewellery__grid { grid-template-columns: 1fr 1fr; }
  .jewellery__grid .piece:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
}
