:root {
    --ink: #171714;
    --muted: #6d6a62;
    --line: #e5e0d7;
    --paper: #f7f4ee;
    --cream: #eee6da;
    --white: #fff;
    --accent: #a97743;
    --dark: #24231f;
    --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: #fff; padding: 12px 18px; border-radius: 4px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.announcement { background: var(--ink); color: #fff; min-height: 35px; display: grid; place-items: center; padding: 7px 20px; }
.announcement p { margin: 0; font-size: 12px; letter-spacing: .04em; text-align: center; }
.announcement span { display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px; border-radius: 50%; background: #d8b58f; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(23,23,20,.08); backdrop-filter: blur(14px); }
.header-inner { width: min(var(--max), calc(100% - 56px)); height: 82px; margin: 0 auto; display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 34px; }
.brand { width: 170px; }
.brand img { width: 100%; height: 54px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3vw, 46px); }
.main-nav a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--ink); transition: right .25s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; gap: 8px; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; transition: background .2s; }
.icon-button:hover { background: var(--paper); }
.icon-button svg, .search-panel svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; right: 2px; top: 1px; width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 50%; font-size: 10px; font-weight: 700; }
.menu-toggle { display: none; }

.search-panel { position: absolute; inset: 100% 0 auto; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s ease; }
.search-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
.search-panel-inner { width: min(880px, calc(100% - 40px)); height: 90px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.search-panel input { flex: 1; border: 0; outline: 0; font-size: clamp(20px, 3vw, 28px); font-weight: 500; }
.search-panel input::placeholder { color: #aaa69d; }
.search-close { border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }

.hero { position: relative; min-height: min(690px, calc(100vh - 117px)); overflow: hidden; background: #e9d8c7; }
.hero-media { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(245,229,212,.98) 0%, rgba(245,229,212,.78) 30%, rgba(245,229,212,.05) 58%), url("images/hero-jewelry.jpg"); background-size: cover; background-position: center right; transform: scale(1.01); }
.hero-inner { position: relative; width: min(var(--max), calc(100% - 56px)); min-height: inherit; margin: 0 auto; display: grid; align-items: center; }
.hero-copy { max-width: 620px; padding: 70px 0; }
.eyebrow { margin: 0 0 20px; text-transform: uppercase; letter-spacing: .19em; font-size: 11px; line-height: 1.4; font-weight: 700; color: var(--accent); }
.hero h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(56px, 7.1vw, 105px); line-height: .93; letter-spacing: -.065em; font-weight: 500; }
.hero-text { max-width: 520px; margin: 30px 0 0; color: #555149; font-size: 17px; line-height: 1.75; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 30px; }
.button { min-height: 49px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #34342e; }
.button-light { color: var(--ink); background: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

.benefits { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.benefits article { padding: 28px 4vw; display: flex; align-items: center; justify-content: center; gap: 16px; border-right: 1px solid var(--line); }
.benefits article:first-child { padding-left: 0; }
.benefits article:last-child { border: 0; padding-right: 0; }
.benefit-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #cfc8bc; border-radius: 50%; font-size: 10px; color: var(--accent); }
.benefits strong, .benefits small { display: block; }
.benefits strong { font-size: 13px; margin-bottom: 3px; }
.benefits small { font-size: 11px; color: var(--muted); }

.section { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 108px 0; }
.section-heading { margin-bottom: 42px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section h2, .story h2, .contact-band h2 { margin: 0; font-family: "Manrope", sans-serif; font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.section h2 { font-size: clamp(38px, 5vw, 64px); }

.collection-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, 290px); gap: 18px; }
.collection-card { position: relative; overflow: hidden; background: var(--paper); }
.collection-card-large { grid-row: 1 / 3; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.collection-card:hover img { transform: scale(1.045); }
.collection-overlay { position: absolute; inset: auto 0 0; padding: 80px 30px 28px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.68)); }
.collection-overlay.light { background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.collection-overlay small, .collection-overlay strong, .collection-overlay > span { display: block; }
.collection-overlay small { margin-bottom: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; opacity: .78; }
.collection-overlay strong { font-family: "Manrope", sans-serif; font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.collection-overlay > span { margin-top: 9px; font-size: 12px; font-weight: 700; }

.products-section { padding-top: 40px; }
.product-heading { align-items: center; }
.product-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; }
.filter-button:hover, .filter-button.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.prototype-note { margin: -20px 0 30px; color: var(--muted); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 18px; }
.product-card[hidden] { display: none; }
.product-image { position: relative; overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--paper); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-image.soft-crop img { object-position: 71% center; }
.product-image.dark-crop img { object-position: 89% center; filter: brightness(.86); }
.product-image.alternate-crop img { object-position: center 58%; }
.product-badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 7px 10px; color: var(--ink); background: rgba(255,255,255,.9); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.product-badge.dark { color: #fff; background: rgba(23,23,20,.9); }
.quick-add { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 47px; border: 0; color: #fff; background: rgba(23,23,20,.95); font-size: 12px; font-weight: 700; cursor: pointer; transform: translateY(70px); transition: transform .3s; }
.product-card:hover .quick-add, .quick-add:focus { transform: translateY(0); }
.product-info { padding: 17px 2px 0; }
.product-info p { margin: 0 0 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.product-info h3 { min-height: 42px; margin: 0 0 10px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.product-info strong { font-size: 14px; }
.empty-state { padding: 60px; text-align: center; color: var(--muted); background: var(--paper); }

.story { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 620px; background: var(--dark); color: #fff; }
.story-visual { min-height: 620px; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(rgba(28,27,24,.14), rgba(28,27,24,.8)), url("images/hero-jewelry.jpg") center right / cover; }
.story-number { font-family: "Manrope", sans-serif; font-size: clamp(90px, 13vw, 190px); line-height: .82; letter-spacing: -.08em; }
.story-caption { margin-top: 22px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.story-copy { max-width: 700px; padding: 100px clamp(40px, 7vw, 110px); align-self: center; }
.story-copy h2 { font-size: clamp(37px, 4.5vw, 66px); }
.story-copy > p:not(.eyebrow) { margin: 30px 0 45px; color: #bbb7ae; font-size: 16px; line-height: 1.8; }
.story-points { display: grid; gap: 20px; }
.story-points div { padding-top: 20px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.story-points strong { font-size: 13px; }
.story-points span { color: #aaa69e; font-size: 12px; }

.contact-band { padding: 72px max(28px, calc((100% - var(--max))/2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: var(--accent); }
.contact-band .eyebrow { color: #fff; opacity: .72; margin-bottom: 10px; }
.contact-band h2 { font-size: clamp(32px, 4.2vw, 60px); }

.site-footer { color: #d8d5ce; background: #171714; }
.footer-main { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 78px 0 68px; display: grid; grid-template-columns: 1.4fr .7fr .7fr .9fr; gap: 70px; }
.footer-brand img { width: 180px; height: 60px; object-fit: contain; filter: invert(1); }
.footer-brand p, .footer-note p { max-width: 280px; color: #8e8b84; font-size: 12px; line-height: 1.7; }
.footer-links { display: grid; align-content: start; gap: 11px; }
.footer-links strong, .footer-note strong { margin-bottom: 8px; color: #fff; font-size: 12px; }
.footer-links a { color: #929088; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 24px 0; display: flex; justify-content: space-between; border-top: 1px solid #302f2b; color: #77746e; font-size: 10px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.46); opacity: 0; visibility: hidden; transition: .25s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; display: flex; flex-direction: column; background: #fff; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { min-height: 88px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-header p { margin: 0; font-family: "Manrope", sans-serif; font-size: 22px; font-weight: 600; }
.cart-header small { color: var(--muted); }
.cart-header button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 29px; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 8px 24px; }
.cart-empty { flex: 1; padding: 40px 24px; display: grid; place-items: center; align-content: center; gap: 20px; color: var(--muted); text-align: center; }
.cart-item { padding: 20px 0; display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 74px; height: 86px; object-fit: cover; }
.cart-item h4 { margin: 3px 0 8px; font-size: 12px; line-height: 1.4; }
.cart-item small { color: var(--muted); }
.quantity { margin-top: 10px; display: inline-flex; align-items: center; border: 1px solid var(--line); }
.quantity button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; }
.quantity span { min-width: 24px; text-align: center; font-size: 11px; }
.remove-item { border: 0; background: transparent; align-self: start; color: var(--muted); cursor: pointer; font-size: 18px; }
.cart-footer { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.cart-footer > div { margin-bottom: 18px; display: flex; justify-content: space-between; }
.cart-footer .button { width: 100%; }
.cart-footer small { display: block; margin-top: 12px; text-align: center; color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; padding: 13px 19px; color: #fff; background: var(--ink); border-radius: 3px; font-size: 12px; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto 1fr auto; height: 72px; }
    .brand { width: 145px; justify-self: center; }
    .menu-toggle { display: grid; }
    .account-link { display: none; }
    .main-nav { position: absolute; inset: 100% 0 auto; padding: 20px 28px 26px; display: grid; justify-content: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s; }
    .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .main-nav a:last-child { border: 0; }
    .hero { min-height: 640px; }
    .hero-media { background-image: linear-gradient(90deg, rgba(245,229,212,.96), rgba(245,229,212,.7) 45%, rgba(245,229,212,.12)), url("images/hero-jewelry.jpg"); background-position: 62% center; }
    .hero-copy { max-width: 520px; }
    .benefits { grid-template-columns: 1fr; padding: 12px 0; }
    .benefits article, .benefits article:first-child, .benefits article:last-child { padding: 16px 4px; justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--line); }
    .benefits article:last-child { border: 0; }
    .collection-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 480px 300px; }
    .collection-card-large { grid-column: 1 / 3; grid-row: auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; }
    .story-visual { min-height: 500px; }
    .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .announcement p { font-size: 10px; }
    .announcement span { margin-inline: 7px; }
    .header-inner, .hero-inner, .benefits, .section, .footer-main, .footer-bottom { width: calc(100% - 32px); }
    .header-inner { gap: 10px; }
    .brand { width: 124px; }
    .icon-button { width: 38px; height: 38px; }
    .search-toggle { display: none; }
    .hero { min-height: 700px; }
    .hero-media { background-image: linear-gradient(180deg, rgba(245,229,212,.72) 0%, rgba(245,229,212,.93) 43%, rgba(245,229,212,.98) 100%), url("images/hero-jewelry.jpg"); background-position: center, 70% center; background-size: 100% 100%, cover; background-repeat: no-repeat; }
    .hero-inner { align-items: end; }
    .hero-copy { padding: 285px 0 58px; }
    .hero h1 { font-size: clamp(52px, 16vw, 72px); }
    .hero-text { font-size: 15px; line-height: 1.65; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
    .section { padding: 78px 0; }
    .section-heading, .product-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .collection-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(3, 420px); }
    .collection-card-large { grid-column: auto; }
    .collection-overlay { padding-inline: 22px; }
    .product-filters { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
    .filter-button { white-space: nowrap; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 34px 10px; }
    .product-image { aspect-ratio: 1 / 1.18; }
    .product-info h3 { min-height: 56px; font-size: 12px; }
    .quick-add { left: 8px; right: 8px; bottom: 8px; height: 40px; transform: translateY(0); font-size: 11px; }
    .product-badge { left: 8px; top: 8px; }
    .story-visual { min-height: 400px; padding: 32px 22px; }
    .story-copy { padding: 70px 22px; }
    .story-points div { grid-template-columns: 1fr; gap: 7px; }
    .contact-band { padding: 54px 22px; align-items: flex-start; flex-direction: column; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 45px 24px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-note { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
