/* Mimmic Studio web
   Layout concept: an ivory gallery wall. Each collection brings its own colour,
   and the page takes on that colour as you walk past it. */
:root {
  /* Brand base (official tokens) */
  --ivory: #F8F8F6;
  --charcoal: #1E1E1E;
  --stone: #6F6F6C;
  --sand: #D9D6CF;
  --forest: #4E6B57;
  --copper: #B87444;
  /* Vivid accents (proposal): one per collection */
  --pink: #E8336E;
  --cobalt: #2B4FE0;
  --caramel: #C4632B;
  --teal: #0B8C86;
  --sage: #4E8A4A;
  --sun: #FFC94A;
  /* Live tint, changed by script as collections scroll past */
  --tint: var(--ivory);
  --accent: var(--copper);

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.3rem, 1.7rem + 2.8vw, 3.8rem);
  --step-4: clamp(3rem, 1.9rem + 5.4vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@view-transition { navigation: auto; }

body {
  margin: 0;
  background: var(--tint);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  transition: background-color 0.9s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: #3a3a38; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--charcoal); color: var(--ivory); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  --b: var(--charcoal);
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.85em 1.5em; border-radius: 999px;
  background: var(--b); color: var(--ivory);
  font: 600 0.95rem/1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid var(--b); cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--b); }
.btn.ghost:hover { background: var(--b); color: var(--ivory); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--tint) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--charcoal) 8%, transparent);
  transition: background-color 0.9s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 124px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav a { text-decoration: none; font-size: 0.93rem; font-weight: 500; position: relative; padding-block: 6px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 0.65em 1.15em; font-size: 0.88rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px var(--gutter) 28px; background: var(--ivory); border-bottom: 1px solid var(--sand); transform: translateY(-120%); transition: transform 0.35s ease; }
  .nav a { font-size: 1.15rem; }
  body.menu-open .nav { transform: none; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-block: 18px 22px; }
.hero h1 .swap { display: inline-block; font-style: italic; color: var(--pink); transition: color 0.6s ease; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 22px; font-family: var(--mono); font-size: var(--step--1); color: var(--stone); }

.wall { position: relative; aspect-ratio: 1 / 0.92; max-width: 100%; }
.wall .frame {
  position: absolute; margin: 0; background: #fff; padding: clamp(5px, 0.9vw, 10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 18px 40px -18px rgba(30,30,30,0.45);
  animation: drift 9s ease-in-out infinite alternate;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.wall .frame img { width: 100%; height: 100%; object-fit: cover; }
.wall .f1 { left: 2%;  top: 6%;  width: 36%; aspect-ratio: 1; animation-delay: -2s; }
.wall .f2 { left: 42%; top: 0%;  width: 27%; aspect-ratio: 4/5; animation-delay: -5s; }
.wall .f3 { left: 73%; top: 10%; width: 25%; aspect-ratio: 2/3; animation-delay: -1s; }
.wall .f4 { left: 10%; top: 50%; width: 26%; aspect-ratio: 4/5; animation-delay: -6s; }
.wall .f5 { left: 40%; top: 46%; width: 30%; aspect-ratio: 1; animation-delay: -3s; }
.wall .f6 { left: 74%; top: 58%; width: 22%; aspect-ratio: 2/3; animation-delay: -7s; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -10px; } }
.wall .tag {
  position: absolute; left: 0; bottom: -6px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
}

/* Marquee */
.marquee { background: var(--charcoal); color: var(--ivory); overflow: hidden; padding-block: 14px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 38s linear infinite; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--sun); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { max-width: 16ch; }
.section-head p { max-width: 42ch; color: #4a4a47; }

/* Collections */
.collection {
  --c: var(--charcoal); --d: var(--charcoal); --s: var(--ivory);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
  border-top: 1px solid color-mix(in srgb, var(--charcoal) 12%, transparent);
}
.collection:nth-child(even) .collection-art { order: 2; }
.collection-art { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; align-items: end; }
.collection-art .main { background: #fff; padding: 10px; box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--d) 70%, transparent); transform: rotate(-1.2deg); transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.collection-art .room { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; transform: translateY(28px); }
.collection-art .room img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.collection:hover .collection-art .main { transform: rotate(0deg) scale(1.02); }
.collection:hover .collection-art .room img { transform: scale(1.06); }
.collection-copy { min-width: 0; }
.collection-copy .eyebrow { color: var(--d); }
.collection-copy h3 { font-size: var(--step-3); margin-block: 12px 18px; }
.collection-copy h3 em { color: var(--c); }
.collection-copy p { max-width: 44ch; color: #3a3a38; }
.collection-copy .spec { margin-top: 18px; font-family: var(--mono); font-size: var(--step--1); color: var(--d); }
.collection-copy .btn { --b: var(--d); margin-top: 28px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); counter-reset: step; }
.step { padding-top: 22px; border-top: 2px solid var(--charcoal); min-width: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); font-size: var(--step--1); color: var(--stone); display: block; margin-bottom: 14px; }
.step h3 { font-size: var(--step-2); margin-bottom: 10px; }
.step p { color: #4a4a47; max-width: 34ch; }

/* Feature (custom map) */
.feature { background: var(--teal); color: #F4FFFD; overflow: hidden; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .eyebrow { color: #BFF0EB; }
.feature h2 { margin-block: 14px 20px; }
.feature p { max-width: 42ch; color: #DDF7F3; }
.feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-family: var(--mono); font-size: var(--step--1); color: #DDF7F3; }
.feature ul li::before { content: "→ "; color: var(--sun); }
.feature .btn { --b: var(--sun); color: var(--charcoal); margin-top: 30px; }
.feature .btn:hover { color: var(--charcoal); }
.feature-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-maps figure { margin: 0; background: #fff; padding: 8px; box-shadow: 0 24px 48px -20px rgba(0,0,0,0.45); }
.feature-maps figure:nth-child(1) { transform: rotate(-2deg) translateY(12px); }
.feature-maps figure:nth-child(2) { transform: rotate(2deg) translateY(-12px); }

/* Product grid */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { --c: var(--charcoal); border: 1.5px solid color-mix(in srgb, var(--charcoal) 22%, transparent); background: transparent; border-radius: 999px; padding: 0.55em 1.1em; font: 500 0.9rem/1 var(--body); cursor: pointer; color: var(--charcoal); transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.chip:hover { border-color: var(--c); }
.chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.chip .n { font-family: var(--mono); font-size: 0.75rem; opacity: 0.7; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(14px, 2vw, 24px); }
.card { --c: var(--charcoal); text-decoration: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sand); border-radius: var(--radius); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.card .ph .kind { position: absolute; left: 10px; top: 10px; background: var(--c); color: #fff; font: 600 0.75rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; }
.card .ph .go { position: absolute; right: 10px; bottom: 10px; background: #fff; color: var(--charcoal); font: 600 0.8rem/1 var(--body); padding: 8px 12px; border-radius: 999px; transform: translateY(10px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.card:hover .ph img, .card:focus-visible .ph img { transform: scale(1.06); }
.card:hover .go, .card:focus-visible .go { transform: none; opacity: 1; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card .name { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.card .col { font-size: 0.82rem; color: var(--stone); }
.card .price { font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-note { margin-top: 28px; font-size: 0.85rem; color: var(--stone); }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
.post-card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.post-card .ph { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.post-card:hover .ph img { transform: scale(1.05); }
.post-card h3 { font-size: 1.6rem; }
.post-card p { color: #4a4a47; font-size: 0.95rem; }

.article { padding-block: clamp(40px, 6vw, 80px); }
.article .wrap { max-width: 760px; }
.article header { margin-bottom: 36px; }
.article h1 { font-size: var(--step-3); margin-block: 14px 18px; }
.article .cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand); }
.prose th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.prose td { font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; color: #3a3a38; }

/* Newsletter + forms */
.join { background: var(--pink); color: #fff; }
.join .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.join .eyebrow { color: #FFD3E1; }
.join h2 { margin-top: 12px; }
.join p { margin-top: 16px; max-width: 40ch; color: #FFE7EF; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; min-width: 0; padding: 0.95em 1.2em; border-radius: 999px; border: 0; font: 400 1rem var(--body); color: var(--charcoal); background: #fff; }
.join .btn { --b: var(--charcoal); }
.form-msg { margin-top: 12px; font-size: 0.92rem; min-height: 1.4em; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field textarea, .field select { width: 100%; padding: 0.9em 1em; border: 1.5px solid var(--sand); border-radius: var(--radius); background: #fff; font: 400 1rem var(--body); color: var(--charcoal); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--charcoal); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }

.faq details { border-top: 1px solid var(--sand); padding-block: 18px; }
.faq details:last-child { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.45rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: #4a4a47; max-width: 60ch; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: var(--step-4); margin-top: 12px; }
.page-hero p { margin-top: 18px; }

/* Studio */
.studio .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio .mark { background: var(--ivory); border: 1px solid var(--sand); padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.studio .mark img { width: min(360px, 100%); }
.studio p + p { margin-top: 14px; }
.studio .quote { font-family: var(--display); font-size: var(--step-2); line-height: 1.15; margin-bottom: 20px; }

/* Footer */
.site-footer { background: var(--charcoal); color: #CFCFCB; padding-block: 56px 40px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8E8E89; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { font-family: var(--display); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.site-footer .small { margin-top: 40px; padding-top: 22px; border-top: 1px solid #333; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8E8E89; font-size: 0.82rem; }

/* Reveal (only for elements below the first screen; the first frame is complete at rest) */
.will-reveal { opacity: 0; transform: translateY(26px); }
.revealed { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1); }

@media (max-width: 900px) {
  .hero .wrap, .collection, .feature .wrap, .join .wrap, .studio .wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .collection:nth-child(even) .collection-art { order: 0; }
  .posts, .steps { grid-template-columns: minmax(0, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .wall { max-width: 560px; }
}
@media (max-width: 480px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .collection-art { grid-template-columns: 1fr 0.8fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile and touch refinements ---------- */
html { -webkit-tap-highlight-color: transparent; }
body { overflow-wrap: break-word; }
.btn { min-height: 44px; justify-content: center; text-align: center; }

/* Touch screens have no hover: show the Etsy hint on cards and skip hover-only motion */
@media (hover: none) {
  .card .ph .go { opacity: 1; transform: none; padding: 7px 10px; font-size: 0.75rem; }
  .collection:hover .collection-art .main { transform: rotate(-1.2deg); }
  .collection:hover .collection-art .room img { transform: none; }
}

@media (max-width: 760px) {
  .site-header .wrap { min-height: 60px; }
  .logo img { width: 108px; }
  .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; margin-right: -8px; }
  .nav {
    inset: calc(60px + env(safe-area-inset-top, 0px)) 0 auto 0;
    max-height: calc(100dvh - 60px - env(safe-area-inset-top, 0px));
    overflow-y: auto; gap: 0; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 24px 40px -24px rgba(0,0,0,0.25);
    visibility: hidden; transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }
  body.menu-open .nav { visibility: visible; transition: transform 0.35s ease; }
  body.menu-open { overflow: hidden; }
  .nav a:not(.btn) { display: block; width: 100%; padding: 14px 0; font-family: var(--display); font-size: 1.6rem; border-bottom: 1px solid var(--sand); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; width: 100%; padding: 1em; font-size: 1rem; }

  .hero { padding-block: 28px 44px; }
  .hero h1 { margin-block: 12px 16px; }
  .lede { font-size: 1.1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .wall { width: 100%; margin-inline: auto; }

  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .section-head .btn { width: 100%; }

  .collection { gap: 28px; padding-block: 40px 48px; }
  .collection-copy h3 { font-size: 2.3rem; }
  .collection-copy .btn { width: 100%; }
  .collection-art .room { transform: translateY(18px); }

  /* Shop: chips scroll sideways in one row, two products per row */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; min-height: 44px; scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .card { gap: 8px; }
  .card .meta { flex-direction: column; gap: 2px; }
  .card .name { font-size: 1.12rem; }
  .card .col { font-size: 0.78rem; }
  .card .ph .kind { left: 6px; top: 6px; font-size: 0.75rem; padding: 5px 6px; }
  .card .ph .go { right: 6px; bottom: 6px; }

  .feature-maps { gap: 10px; }
  .feature .btn, .join .btn { width: 100%; }
  .inline-form { flex-direction: column; }
  .inline-form input { flex: none; width: 100%; min-height: 50px; }

  .step h3 { font-size: 1.8rem; }
  .post-card h3 { font-size: 1.45rem; }
  .studio .quote { font-size: 1.6rem; }
  .faq summary { font-size: 1.25rem; padding-block: 4px; }

  .prose { font-size: 1.04rem; }
  .prose table { font-size: 0.88rem; }
  .prose th, .prose td { padding: 8px; }

  .site-footer { padding-block: 44px calc(32px + env(safe-area-inset-bottom, 0px)); }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: block; padding: 9px 0; }
  .site-footer .small { flex-direction: column; }
}

/* Very small phones (iPhone SE 1st gen, small Android) */
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  h1, .page-hero h1 { font-size: 2.55rem; }
  .collection-copy h3 { font-size: 2rem; }
  .marquee-track { font-size: 0.72rem; }
  .card .ph .go { display: none; }
}

/* Phones held sideways: keep the hero compact */
@media (max-height: 500px) and (orientation: landscape) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .nav { max-height: calc(100dvh - 60px); }
}
[id] { scroll-margin-top: 84px; }
@media (max-width: 760px) {
  .studio .mark { padding: 28px; }
  .studio .mark img { width: 200px; }
}

/* Language and currency selectors */
.prefs { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--sand); border-radius: 999px; padding: 2px; background: rgba(255,255,255,0.6); }
.nav .seg a, .seg button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none; color: var(--charcoal); cursor: pointer;
  font: 600 0.72rem/1 var(--mono); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav .seg a::after { display: none; }
.nav .seg a[aria-current="true"], .seg button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); }
.nav .seg a:not([aria-current="true"]):hover, .seg button[aria-pressed="false"]:hover { background: var(--sand); }
.seg :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.money { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1080px) {
  .seg button .long { display: none; }
  .nav { gap: 14px; }
  .nav > .btn { display: none; }
}
@media (max-width: 760px) {
  .prefs { order: -1; width: 100%; justify-content: space-between; padding: 12px 0 10px; border-bottom: 1px solid var(--sand); }
  .nav .seg a, .seg button { min-height: 42px; min-width: 52px; font-size: 0.8rem; }
}
.seg .long { margin-left: 0.4em; }
