/* Casa Dell Arte — ceramic atelier */
:root {
  --paper: #f3efe8;
  --paper-2: #ebe5db;
  --ink: #1d1b18;
  --ink-soft: #4a463f;
  --stone: #8a847b;
  --clay: #9a5b3a;
  --line: rgba(29, 27, 24, .14);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--clay); outline-offset: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}
.num { font-family: var(--serif); font-style: italic; color: var(--clay); }
.lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; color: var(--ink); }
.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  line-height: .86;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex; flex-direction: column;
}
.logo small { font: 500 7.5px/1 var(--sans); letter-spacing: .32em; margin-top: 6px; color: var(--stone); }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); align-items: center; }
.nav a {
  font-size: 13px; letter-spacing: .04em;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor; transition: right .35s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .cta { border: 1px solid var(--ink); padding: 10px 18px; border-radius: 999px; }
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--ink); color: var(--paper); }

.nav .lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; }
.nav .lang i { font-style: normal; color: var(--stone); }
.nav .lang a { font-size: 12px; color: var(--stone); }
.nav .lang a[aria-current] { color: var(--ink); }
.nav .lang a[aria-current]::after { display: none; }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; font: 500 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    /* header's backdrop-filter makes it the containing block, so size explicitly */
    position: fixed; top: 100%; left: 0; right: 0;
    height: calc(100vh - 76px); height: calc(100dvh - 76px);
    overflow-y: auto;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 40px var(--gutter);
    gap: 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-family: var(--serif); font-size: 38px; letter-spacing: 0; }
  .nav .cta { font-family: var(--sans); font-size: 14px; margin-top: 16px; }
  .nav .lang { order: 10; margin-top: 8px; }
  .nav .lang a, .nav .lang i { font-family: var(--sans); font-size: 15px; }
}

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { font-size: clamp(52px, 8.4vw, 132px); line-height: .92; }
.hero h1 em { color: var(--clay); }
.hero-copy { max-width: 470px; margin-top: clamp(28px, 4vw, 48px); }
.hero-media { position: relative; }
.hero-media video, .hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 75%; }
.hero-media figcaption { margin-top: 12px; display: flex; justify-content: space-between; }
.hero-meta {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); padding-top: 18px; gap: 16px;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(48px, 8vw, 120px) 0 clamp(40px, 6vw, 80px); }
.page-head h1 { font-size: clamp(48px, 7.5vw, 116px); line-height: .95; max-width: 12ch; }
.page-head .row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.page-head .lead { max-width: 520px; }
@media (max-width: 860px) { .page-head .row { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section-tight { padding: clamp(48px, 6vw, 90px) 0; }
.rule { border-top: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); }
.split h2 { font-size: clamp(38px, 5vw, 72px); }
.split .body { max-width: 620px; padding-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.statement h2 { font-size: clamp(40px, 6vw, 92px); max-width: 15ch; line-height: 1; }
.statement h2 em { color: var(--clay); }
.statement .split { align-items: end; }
.statement-img { max-width: 340px; }
.statement .body { padding-bottom: 28px; }
@media (max-width: 860px) {
  .statement .split { grid-template-columns: 2fr 3fr; gap: 28px; }
  .statement .body { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .statement .split { grid-template-columns: 1fr; }
  .statement-img { max-width: 58%; }
}

/* image trio */
.trio { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(12px, 2vw, 28px); align-items: start; }
.trio figure:nth-child(1) { margin-top: 18%; }
.trio figure:nth-child(3) { margin-top: 36%; }
@media (max-width: 760px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .trio figure:nth-child(1), .trio figure:nth-child(3) { margin-top: 0; }
}

figure { margin: 0; }
.ph { overflow: hidden; background: var(--paper-2); }
.ph img, .ph video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
a.ph:hover img, .ph.zoom:hover img { transform: scale(1.035); }
.r-45 { aspect-ratio: 4/5; }
.r-34 { aspect-ratio: 3/4; }
.r-23 { aspect-ratio: 2/3; }
.r-11 { aspect-ratio: 1/1; }
.r-wide { aspect-ratio: 16/10; }
figcaption { font-size: 12px; color: var(--stone); margin-top: 10px; letter-spacing: .02em; }
figcaption .num { margin-right: 8px; }

/* dark band */
.dark { background: var(--ink); color: var(--paper); }
.dark .eyebrow { color: #a59e93; }
.dark .muted { color: #c9c2b6; }
.dark .rule, .dark.rule { border-color: rgba(243,239,232,.16); }
.discretion { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.discretion h2 { font-size: clamp(40px, 5.6vw, 86px); line-height: 1; }
.discretion h2 em { color: #d39a73; }
@media (max-width: 860px) { .discretion { grid-template-columns: 1fr; } }

/* reach: the range of places we make for */
.reach-title { font-size: clamp(46px, 6.6vw, 104px); line-height: .98; margin-top: 22px; max-width: 16ch; }
.reach-title em { color: #d39a73; }
.reach-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 7vw, 120px);
  margin-top: clamp(56px, 7vw, 104px);
}
.reach-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243,239,232,.16); }
.reach-list li {
  display: grid; grid-template-columns: 56px 1fr; align-items: baseline;
  padding: clamp(18px, 2vw, 26px) 0; border-bottom: 1px solid rgba(243,239,232,.16);
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 50px); line-height: 1.05;
  transition: color .3s, padding-left .4s cubic-bezier(.2,.7,.2,1);
}
.reach-list li:hover { color: #d39a73; padding-left: 10px; }
.reach-list .num { font-size: 14px; font-style: italic; color: #d39a73; }
.reach-body { align-self: end; }
.reach-body .lead { color: var(--paper); font-size: clamp(20px, 1.8vw, 26px); }
.reach-close { margin-top: 36px; color: #d39a73; }
@media (max-width: 860px) { .reach-grid { grid-template-columns: 1fr; } .reach-list li { grid-template-columns: 40px 1fr; } }

/* products page */
.split .story-title { font-size: clamp(72px, 10vw, 156px); line-height: .85; }
.story-credits { display: flex; gap: 40px; margin: 28px 0 0; }
.story-credits dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; }
.cat-nav {
  position: sticky; top: 76px; z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-nav .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; padding-top: 14px; padding-bottom: 14px; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; font-size: 13px; color: var(--ink-soft); white-space: nowrap; transition: color .2s; }
.cat-nav a:hover { color: var(--clay); }
.cat { padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: 130px; }
.cat:first-of-type { border-top: 0; }
.cat-row { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); }
.cat-head { position: sticky; top: 150px; align-self: start; }
.cat-head .num { font-size: 22px; margin: 0 0 10px; }
.cat-head h2 { font-size: clamp(38px, 4.2vw, 64px); margin-bottom: 18px; }
.cat-head .muted { max-width: 34ch; }
.cat-mood { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin-bottom: clamp(10px, 1.6vw, 20px); }
.cat-mood[style="--n:1"] .ph { aspect-ratio: 16/11; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.cat-grid figure { background: #efebe5; aspect-ratio: 4/3; overflow: hidden; }
.cat-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cat-grid figure:hover img { transform: scale(1.05); }
@media (max-width: 860px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-head { position: static; }
  .cat-mood { grid-template-columns: repeat(min(var(--n), 2), minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cat-grid figure, .cat-mood figure { cursor: zoom-in; }
.cat-grid figure:focus-visible, .cat-mood figure:focus-visible { outline: 1px solid var(--clay); outline-offset: 3px; }

/* lightbox */
.lightbox {
  border: 0; padding: 0; margin: auto; background: transparent; color: var(--paper);
  max-width: none; max-height: none; width: 100%; height: 100%;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.lightbox[open] { display: flex; animation: lb-in .35s ease; }
.lightbox::backdrop { background: rgba(29,27,24,.94); }
.lightbox img { width: auto; height: auto; max-height: 82vh; object-fit: contain; background: #efebe5; cursor: default; }
.lightbox-cap { margin: 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #a59e93; }
.lightbox button {
  position: absolute; background: none; border: 1px solid rgba(243,239,232,.3); color: var(--paper);
  width: 48px; height: 48px; border-radius: 50%; font: 300 20px/1 var(--sans); cursor: pointer;
  transition: background .2s, color .2s;
}
.lightbox button:hover { background: var(--paper); color: var(--ink); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lightbox img { max-height: 70vh; }
}
@keyframes lb-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  display: grid; grid-template-columns: 80px 1fr 1.3fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font-size: 26px; }
.steps h3 { font-size: clamp(26px, 2.6vw, 38px); }
.steps p { margin: 0; color: var(--ink-soft); max-width: 520px; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 48px 1fr; }
  .steps p { grid-column: 2; }
}

/* collection block */
.collection { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px); }
.collection-head { grid-column: 1 / 5; position: sticky; top: 110px; align-self: start; }
.collection-head h2 { font-size: clamp(40px, 4.6vw, 70px); margin: 14px 0 22px; }
.collection-media { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 28px); }
.collection-media .full { grid-column: 1 / -1; }
.collection-media .offset { margin-top: 22%; }
.collection.flip .collection-head { grid-column: 9 / -1; grid-row: 1; }
.collection.flip .collection-media { grid-column: 1 / 8; grid-row: 1; }
@media (max-width: 900px) {
  .collection-head, .collection.flip .collection-head { grid-column: 1 / -1; position: static; grid-row: auto; }
  .collection-media, .collection.flip .collection-media { grid-column: 1 / -1; grid-row: auto; }
}

/* list of what we make */
.make { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.make div { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.make h3 { font-size: 28px; margin-bottom: 8px; }
.make p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .make { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .make { grid-template-columns: 1fr; } }

/* FAQ */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 24px 0;
  font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px);
  display: flex; justify-content: space-between; gap: 24px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-weight: 300; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 640px; color: var(--ink-soft); padding-bottom: 12px; }

/* quote */
.quote { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 56px); line-height: 1.15; max-width: 22ch; margin: 0; }
.quote cite { display: block; font: 500 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-top: 26px; font-style: normal; }

/* buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  padding: 16px 26px; border-radius: 999px; border: 1px solid var(--ink);
  font: 500 14px var(--sans); letter-spacing: .03em; cursor: pointer;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: transparent; color: var(--paper); }
.arrow-link { display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: 14px; }
.arrow-link span { transition: transform .3s; }
.arrow-link:hover span { transform: translateX(4px); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(46px, 7.5vw, 120px); line-height: .95; margin: 18px auto 36px; max-width: 14ch; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.form .full { grid-column: 1 / -1; }
.form > *, .contact-grid > * { min-width: 0; }
.field label { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 0; font: 400 18px/1.4 var(--sans); color: var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--clay); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; cursor: pointer; transition: all .2s;
}
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--clay); outline-offset: 3px; }
@media (max-width: 680px) { .form { grid-template-columns: 1fr; } }

.form-done { align-self: start; border-top: 1px solid var(--ink); padding-top: 32px; outline: none; }
.form-done h2 { font-size: clamp(44px, 5.6vw, 84px); margin: 14px 0 28px; }
.form-done h2 em { color: var(--clay); }
.form-done .lead { max-width: 560px; }
.form-done .muted { max-width: 520px; }
.form-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 36px; }
.form-done-actions button { background: none; border-top: 0; border-left: 0; border-right: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; padding: 0 0 4px; }

.contact-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 7vw, 120px); }
.contact-aside dl { margin: 0; }
.contact-aside dt { margin-top: 28px; }
.contact-aside dd { margin: 6px 0 0; font-family: var(--serif); font-size: 26px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 0;
  overflow: hidden;
}
.footer-top { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: clamp(32px, 5vw, 80px); }
.footer-tag { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; max-width: 16ch; margin: 16px 0 0; }
.footer-tag em { color: var(--clay); }
.site-footer h4 { margin: 0 0 18px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-family: var(--serif); font-size: 22px; line-height: 1.2; transition: color .25s; }
.site-footer li a:hover { color: var(--clay); }
.site-footer li small { display: block; font-size: 12px; color: var(--stone); letter-spacing: .02em; margin-top: 2px; }

/* oversized wordmark, cropped at the baseline like a masthead */
.footer-mark {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(54px, 16.8vw, 250px);
  line-height: .78; letter-spacing: -.02em; white-space: nowrap;
  margin: clamp(56px, 8vw, 120px) 0 0;
  text-align: center;
  color: var(--ink);
}
.footer-mark em { color: var(--clay); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 0 22px; font-size: 12px; color: var(--stone);
  position: relative; background: var(--paper-2);
}
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .credit a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .25s, color .25s; }
.footer-bottom .credit a:hover { color: var(--clay); border-bottom-color: currentColor; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* utility */
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 64px; }
.between { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
