/* YASKII — style cue: gategato.com (image-first, light serif display, pill buttons). */

:root {
  --ink: #141414;
  --ink-soft: #666;
  --paper: #ffffff;
  --navy: #1a2e5a;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 300; margin: 0; }
p { margin: 0; }

/* ---------- 1 · HERO ---------- */
.hero {
  --sans: "Montserrat", system-ui, sans-serif;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)),
    url("images/ceramics/hero-web.jpg") center / cover no-repeat,
    #1d2a40;
}
.hero__inner { padding: 0 var(--gutter); }
.hero__kicker {
  font: 300 clamp(14px, 4vw, 42px)/1.2 var(--sans);
  letter-spacing: .3em;
  padding-left: .3em;       /* balances trailing letter-spacing so it centers */
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 8px;
}
.hero__title {
  font: 300 clamp(52px, 12vw, 130px)/1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .12em;
  padding-left: .12em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid #fff;
  font: 400 12px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.hero__btn--outline { color: #fff; background: transparent; }
.hero__btn--outline:hover { background: #fff; color: var(--navy); }
.hero__btn--filled { background: #fff; color: var(--navy); }
.hero__btn--filled:hover { background: transparent; color: #fff; }


.hero__scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  opacity: .85;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll:hover { opacity: 1; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- Menu ---------- */
.menu-toggle {
  position: fixed;
  top: 26px; left: 22px;
  z-index: 50;
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 6px;
  padding: 0;
  background: none; border: 0; cursor: pointer;
  color: #fff;
  transition: color .3s;
}
.menu-toggle span {
  display: block; width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.is-dark { color: var(--ink); }            /* past the hero, on white */
.menu-toggle[aria-expanded="true"] { color: #fff; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0;
  z-index: 40;
  display: grid; place-items: center;
  background: rgba(16, 24, 42, .96);
  opacity: 0;
  transition: opacity .35s;
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li + li { margin-top: 1.1em; }
.menu a {
  color: #fff;
  text-decoration: none;
  font: 300 clamp(26px, 4vw, 40px)/1.1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.menu a:hover { opacity: 1; }


/* ---------- Left strip (desktop) ---------- */
.sidebar__name { display: none; }
@media (min-width: 769px) {
  body:not(.page) { padding-left: 44px; }   /* keep content clear of the strip (home page only) */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 44px;
    z-index: 50;                        /* stays above the open menu overlay */
    background: #fff;
  }
  .sidebar .menu-toggle,
  .sidebar .menu-toggle.is-dark,
  .sidebar .menu-toggle[aria-expanded="true"] {
    position: absolute;
    top: 20px; left: 0;                 /* button is 44px wide = centered in the strip */
    color: #1a2e5a;
  }
  .sidebar__name {
    display: block;
    position: absolute;
    bottom: 24px; left: 50%;
    /* vertical text turned 180° = the same as rotate(-90deg), reading bottom to top,
       but the box stays vertical so it can sit flush at the bottom */
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    font: 400 clamp(18px, 3vw, 42px)/1 "Montserrat", system-ui, sans-serif;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #1a2e5a;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  /* strip hidden (its styles only apply above 768px); ≡ sits top right in navy.
     White square only over the dark hero (and while the dark menu is open);
     past the hero (.is-dark, set in main.js) it's plain navy — same as the cart icon. */
  .menu-toggle,
  .menu-toggle.is-dark,
  .menu-toggle[aria-expanded="true"] {
    left: auto; right: 16px; top: 16px;
    color: #1a2e5a;
    background: #fff;
    border-radius: 4px;
    transition: color .3s, background-color .3s ease;
  }
  .menu-toggle.is-dark:not([aria-expanded="true"]) { background: transparent; }
  .hero__btn {
    font-size: clamp(10px, 3vw, 14px);
    padding: clamp(11px, 2.6vw, 14px) clamp(14px, 4vw, 32px);
  }
}
@media (max-width: 480px) {
  /* keep the two buttons side by side on phones */
  .hero__actions { gap: 10px; flex-wrap: nowrap; }
  .hero__btn { letter-spacing: .1em; }
}

/* ---------- 2 · STUDIO INTRO ---------- */
.studio {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 170px) var(--gutter) clamp(56px, 7vw, 110px);
}
.studio__title {
  font: 300 clamp(44px, 7.4vw, 124px)/.95 var(--display);
  color: #d0cdc8;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.studio__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 110px);
  max-width: 1100px;
  margin: 0 auto;
}
.studio__cols p {
  font: 400 13px/2 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- 3 · OFFERINGS ---------- */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(48px, 6vw, 88px) clamp(24px, 3vw, 44px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 48px) var(--gutter) clamp(100px, 12vw, 180px);
}
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 26px;
}
.card h3 {
  font: 400 22px/1.2 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p {
  font: 400 12px/1.9 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
  max-width: 34em;
}

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid var(--navy);
  font: 400 12px/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.pill--outline { background: transparent; color: var(--navy); }
.pill--outline:hover { background: var(--navy); color: #fff; }

@media (max-width: 1024px) { .offerings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .studio__cols { grid-template-columns: 1fr; }
  .offerings { grid-template-columns: 1fr; }
}

/* ---------- 4 · PARTNERSHIP (card + form dialog) ---------- */
.card button.pill { cursor: pointer; }
.pdialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: clamp(28px, 5vw, 52px);
  border: 0;
  background: #fff;
  color: var(--navy);
}
.pdialog::backdrop { background: rgba(16, 24, 42, .6); }
.pdialog__close {
  position: absolute; top: 10px; right: 16px;
  background: none; border: 0; cursor: pointer;
  font: 300 34px/1 var(--body); color: var(--navy);
}
.pdialog__title {
  font: 300 clamp(36px, 5vw, 52px)/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.partnership__trap { position: absolute; left: -9999px; }
.pfield { display: block; margin-bottom: 20px; }
.pfield span {
  display: block;
  margin-bottom: 8px;
  font: 400 11px/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pfield input, .pfield textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: #fff;
  color: var(--navy);
  font: 400 15px/1.4 var(--body);
}
.pfield textarea { resize: vertical; min-height: 140px; }
.pfield input:focus, .pfield textarea:focus { outline: 2px solid var(--navy); outline-offset: -2px; }
.partnership__form .pill { cursor: pointer; margin-top: 4px; }
.partnership__form .pill:disabled { opacity: .5; cursor: wait; }
.partnership__status { min-height: 1.5em; margin-top: 16px; font: 400 14px/1.5 var(--body); }
.partnership__status.is-error { color: #a33a32; }

/* ---------- Catalogue pages (ceramics.html …) ---------- */
.catalogue {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(90px, 10vw, 150px);
  color: var(--navy);
}
.back-link {
  display: inline-block;
  font: 400 12px/1 var(--body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 0;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalogue__title {
  font: 300 clamp(40px, 6.4vw, 96px)/1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  margin: clamp(32px, 5vw, 64px) 0 clamp(36px, 5vw, 64px);
}
.notice {
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--navy);
  font-family: var(--body);
}
.notice__title {
  font: 500 13px/1.2 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.notice p { font-size: 14px; line-height: 1.8; color: var(--navy); }
.notice p + p { margin-top: 12px; }

.filter {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.filter__btn {
  padding: 11px 20px;
  border: 1px solid var(--navy);
  border-radius: 50px;
  background: transparent;
  color: var(--navy);
  font: 400 11px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filter__btn:hover { background: rgba(26, 46, 90, .08); }
.filter__btn.is-active { background: var(--navy); color: #fff; }

/* Grey band behind filter + gallery, edge to edge. The box-shadow paints the
   colour out to the screen edges; clip-path keeps it from spilling up/down.
   No extra width, so no horizontal scroll. */
.gallery-band {
  background: #efefef;
  box-shadow: 0 0 0 100vmax #efefef;
  clip-path: inset(0 -100vmax);
  padding: clamp(40px, 6vw, 80px) 0 clamp(8px, 2vw, 24px);
}

/* Masonry: images keep their own proportions; 3 / 2 / 1 columns */
.products {
  columns: 3;
  column-gap: clamp(24px, 3vw, 44px);
}
.product {
  break-inside: avoid;
  margin-bottom: clamp(44px, 5vw, 72px);
  background: #fff;
  padding-bottom: 22px;
}
.product > :not(img) { margin-left: 20px; margin-right: 20px; }
.product[hidden] { display: none; }
.product .pill { cursor: pointer; }
.product img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}
.product__title {
  font: 400 22px/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product__details {
  font: 400 12px/1.6 var(--body);
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.product__details[hidden] { display: none; }
.product__price {
  font: 400 13px/1.4 var(--body);
  letter-spacing: .12em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.products__empty {
  text-align: center;
  font: 300 clamp(28px, 4vw, 44px)/1.2 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: clamp(40px, 6vw, 80px) 0;
}
/* Image-only masonry (illustration portfolio) */
.masonry-gallery {
  columns: 3;
  column-gap: clamp(14px, 2vw, 24px);
}
.masonry-gallery img {
  width: 100%;
  height: auto;
  margin-bottom: clamp(14px, 2vw, 24px);
  break-inside: avoid;
}

/* Commission form (illustration.html) — reuses .pfield / .pill */
.commission {
  max-width: 640px;
  margin: clamp(80px, 10vw, 140px) auto 0;
}
.commission__title {
  font: 300 clamp(32px, 4.6vw, 60px)/1.05 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.commission .pill { cursor: pointer; margin-top: 4px; }

@media (max-width: 1024px) { .products, .masonry-gallery { columns: 2; } }
@media (max-width: 640px)  { .products, .masonry-gallery { columns: 1; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
