/* =========================================================
   PINCH Artisan Ceramics
   Colours are set once here. Change a value and the whole
   site follows.
   Layout: one long page, alternating forest-dark and warm
   light bands, so the eye rests between sections.
   ========================================================= */
:root {
  --night:      #1e1c17;  /* warm near-black, deepest sections */
  --forest:     #1b2a21;  /* deep pine sections */
  --pine:       #33503e;  /* buttons, links on light */
  --eucalyptus: #8fab9c;  /* soft blue-green, quiet text on dark */
  --lichen:     #c3cd9c;  /* bright accent on dark: labels, numbers */
  --moss:       #9caa80;  /* secondary accent */
  --ivory:      #ede7dc;  /* text on dark */
  --linen:      #f3eee5;  /* light sections */
  --mist:       #dfe7df;  /* pale eucalyptus section */
  --ink:        #26241e;  /* text on light */
  --muted:      #6d6a5e;  /* soft text on light */
  --bark:       #8a7558;  /* fine rules on dark */

  --wordmark: "Marcellus", "Times New Roman", serif;          /* the PINCH name only */
  --display:  "Cormorant Garamond", "Garamond", Georgia, serif; /* headings */
  --body:     "Manrope", system-ui, sans-serif;                 /* running text */

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --max: 1240px;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(.98rem, .94rem + .2vw, 1.08rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.2rem); letter-spacing: -.005em; }
h3 { font-size: 1.65rem; font-weight: 500; }
p { margin: 0 0 1.1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lichen); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--linen); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- section colours ---------- */
section { padding: var(--section) var(--gutter); position: relative; }
.section--light  { background: var(--linen); color: var(--ink); }
.section--mist   { background: var(--mist); color: var(--ink); }
.section--night, .section--forest { color: var(--ivory); isolation: isolate; }
.section--night  { background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(51,80,62,.45), transparent 70%), var(--night); }
.section--forest { background: radial-gradient(ellipse 60% 70% at 85% 100%, rgba(143,171,156,.16), transparent 70%), linear-gradient(180deg, #1f3026, var(--forest)); }
.section--night::before, .section--forest::before, .hero::before, .site-footer::before { content: ""; position: absolute; inset: 0; background: var(--grain); pointer-events: none; z-index: -1; }

.eyebrow { display: flex; align-items: center; gap: .9rem; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--pine); margin: 0 0 1.1rem; font-weight: 500; }
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }
.section--night .eyebrow, .section--forest .eyebrow { color: var(--lichen); }

.section-head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; }
.section-head p:not(.eyebrow) { margin: 0; max-width: 34em; color: var(--muted); }
.section--night .section-head p:not(.eyebrow), .section--forest .section-head p:not(.eyebrow) { color: var(--eucalyptus); }
.section-head--narrow { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head--narrow .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: currentColor; opacity: .7; }

/* ---------- buttons & links ---------- */
.button {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--pine); color: var(--ivory); border: 1px solid var(--pine);
  padding: .9rem 1.8rem; font-size: .92rem; font-weight: 500; letter-spacing: .06em;
  border-radius: 999px; transition: background .25s, color .25s, border-color .25s;
}
.button:hover { background: var(--forest); border-color: var(--forest); }
.button--outline { background: transparent; color: var(--pine); }
.button--outline:hover { background: var(--pine); color: var(--ivory); border-color: var(--pine); }
.button--lichen { background: var(--lichen); color: var(--forest); border-color: var(--lichen); }
.button--lichen:hover { background: transparent; color: var(--lichen); border-color: var(--lichen); }
.button--light { background: transparent; color: var(--lichen); border-color: var(--lichen); }
.button--light:hover { background: var(--lichen); color: var(--forest); }
.text-link { color: var(--pine); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-weight: 500; }
.text-link:hover { color: var(--ink); }
.section--night .text-link, .section--forest .text-link { color: var(--lichen); }
.section--night .text-link:hover { color: var(--ivory); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--forest); }
.site-header {
  position: fixed; inset: 0 0 auto 0; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.1rem max(var(--gutter), env(safe-area-inset-left, 0px));
  color: var(--ivory);
  transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.is-solid { background: rgba(27,42,33,.94); padding-block: .65rem; backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(195,205,156,.14); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-paw { width: 28px; height: auto; }
.brand-paw--dark { display: none; }
.brand-word { font-family: var(--wordmark); font-size: 1.35rem; letter-spacing: .2em; }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.4rem); }
.site-nav a { text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); opacity: .82; transition: color .2s, opacity .2s; }
.site-nav a:hover { opacity: 1; color: var(--lichen); }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; border-radius: 999px; padding: .35rem 1rem; cursor: pointer; font-size: .85rem; letter-spacing: .08em; }

/* ---------- hero: dark forest panel + tall photo ---------- */
.hero {
  padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(100svh, 980px);
  background: radial-gradient(ellipse 80% 70% at 0% 100%, rgba(51,80,62,.6), transparent 70%), linear-gradient(160deg, #22352a, var(--forest) 55%, #141d17);
  color: var(--ivory); isolation: isolate; position: relative; overflow: hidden;
}
.hero-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8rem var(--gutter) 5rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.hero-paw { width: clamp(64px, 6vw, 96px); margin-bottom: 1.6rem; animation: stamp 1.1s cubic-bezier(.2,.7,.2,1) both; }
.hero-word { font-family: var(--wordmark); font-size: clamp(4.2rem, 11vw, 10rem); letter-spacing: .12em; line-height: .9; margin-left: -.04em; animation: rise 1.3s .3s ease both; }
.hero-sub { font-size: .82rem; letter-spacing: .55em; text-transform: uppercase; color: var(--lichen); margin: 1.2rem 0 0; font-weight: 500; animation: rise 1.3s .45s ease both; }
.hero-line { font-family: var(--display); font-style: italic; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.12; margin: clamp(2rem, 4vw, 3rem) 0 1.2rem; animation: rise 1.3s .6s ease both; }
.hero-note { color: var(--eucalyptus); max-width: 26em; margin-bottom: 2.2rem; animation: rise 1.3s .75s ease both; }
.hero .button { animation: rise 1.3s .9s ease both; }
.hero-media { margin: 0; position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1f3127 0%, rgba(31,49,39,.55) 12%, rgba(31,49,39,0) 32%); }
@keyframes stamp { from { opacity: 0; transform: scale(1.25) rotate(-6deg); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- intro ---------- */
.intro-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem clamp(3rem, 7vw, 7rem); align-items: start; }
.intro-lead { font-family: var(--display); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.15; margin: 0; color: var(--ivory); }
.intro-body p { max-width: 32em; color: var(--eucalyptus); }
.intro-body p:first-child { color: var(--ivory); }

/* ---------- collection ---------- */
.pieces { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 3rem); }
.pieces > :nth-child(3n+2) { transform: translateY(clamp(2rem, 6vw, 5.5rem)); }
.piece-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.piece-frame { display: block; overflow: hidden; border-radius: 3px; background: var(--mist); }
.piece-open img, .piece--next img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.1s ease; }
.piece-open:hover img { transform: scale(1.035); }
.piece-no { display: block; font-family: var(--display); font-style: italic; color: var(--pine); font-size: 1.15rem; margin-top: 1.1rem; }
.piece-name { display: block; font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.1; }
.piece-kind { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .35rem; }
.piece-open:hover .piece-name { color: var(--pine); }
.piece--next { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: end; transform: none !important; align-self: start; margin-top: clamp(2rem, 6vw, 5.5rem); }
.piece--next img { filter: blur(3px) saturate(.7) brightness(.85); aspect-ratio: 4 / 3; border-radius: 3px; }
.piece-next-text { padding-bottom: .5rem; }
.piece-next-text .piece-name { margin: 0 0 .5rem; }
.piece-next-text p:not(.piece-name) { color: var(--muted); }
.collection-foot { max-width: var(--max); margin: clamp(5rem, 10vw, 8rem) auto 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border-top: 1px solid rgba(51,80,62,.25); padding-top: 2rem; }
.collection-foot p { margin: 0; color: var(--muted); }

/* ---------- surfaces mosaic ---------- */
.mosaic { max-width: var(--max); margin: 0 auto; display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 290px); gap: clamp(.5rem, 1.2vw, 1rem); }
.mosaic-item { padding: 0; border: 0; background: #24352b; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.mosaic-item:hover img { transform: scale(1.04); }
.m-tall { grid-row: span 2; }
.m-wide { grid-column: span 2; }
.m-wide img { object-position: center 78%; }

/* ---------- split layout ---------- */
.split { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split > * { min-width: 0; }
.split--reverse .split-media { order: 2; }
.split-media { margin: 0; position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.split-text h2 { margin-bottom: 1.6rem; }
.split-text p { max-width: 32em; }

/* offset frame behind photos: a quiet sense of depth */
.technique .split-media::before, .maker-portrait::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 1px solid var(--pine); opacity: .35; border-radius: 3px; z-index: 0; }
.technique .split-media img, .maker-portrait img { position: relative; z-index: 1; }

.mark { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(51,80,62,.3); }
.mark img { width: 72px; }
.mark p { margin: 0; font-size: .97rem; }

.signature { font-family: var(--display); font-style: italic; font-size: 1.45rem; margin-top: 2rem; color: var(--pine); }

.process { max-width: var(--max); margin: clamp(4rem, 9vw, 7rem) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); }
.process figure { margin: 0; }
.process img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.process figcaption { margin-top: .7rem; font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--pine); }

/* ---------- partners ---------- */
.partner-list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.partner { border-top: 1px solid rgba(195,205,156,.22); padding-top: 1.5rem; }
.partner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; margin-bottom: 1.5rem; }
.partner h3 { margin-bottom: .6rem; color: var(--ivory); }
.partner p { color: var(--eucalyptus); font-size: .97rem; }
.partners-cta { text-align: center; margin: clamp(2.5rem, 6vw, 4rem) 0 0; }

/* ---------- contact ---------- */
.contact .split { align-items: start; }
.contact-form { margin-top: 2rem; display: grid; gap: 1.35rem; max-width: 34rem; }
.field label { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(38,36,30,.3); border-radius: 0; padding: .5rem 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--pine); box-shadow: 0 1px 0 var(--pine); }
.contact-form .button { justify-self: start; margin-top: .5rem; }
.form-status { margin: 0; min-height: 1.5em; color: var(--pine); }
.form-status.is-error { color: #8a3b2a; }
.hp { position: absolute; left: -9999px; }
.contact-details { list-style: none; padding: 2rem 0 0; margin: 2.5rem 0 0; border-top: 1px solid rgba(51,80,62,.25); display: grid; gap: .35rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--forest), #141d17); color: var(--ivory); text-align: center; padding: 4.5rem var(--gutter) 3rem; }
.site-footer img { width: 52px; margin: 0 auto 1.1rem; }
.footer-word { font-family: var(--wordmark); font-size: 2rem; letter-spacing: .3em; margin: 0 -.3em 0 0; }
.footer-sub { color: var(--eucalyptus); margin: .3rem 0 2rem; }
.footer-small { color: var(--moss); font-size: .82rem; margin: 0; opacity: .8; }

/* ---------- piece dialog ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(20,29,23,.85); backdrop-filter: blur(3px); }
.piece-dialog { width: min(1100px, calc(100% - 2rem)); max-height: calc(100svh - 2rem); background: var(--linen); color: var(--ink); display: none; grid-template-columns: 1.15fr 1fr; overflow: auto; border-radius: 3px; }
.piece-dialog[open] { display: grid; animation: open .35s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pd-media { background: var(--forest); }
.pd-main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pd-thumbs { display: flex; gap: .5rem; padding: .75rem; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 64px; border-radius: 2px; }
.pd-thumbs button[aria-current="true"] { border-color: var(--lichen); }
.pd-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-text { padding: clamp(1.75rem, 4vw, 3.5rem); align-self: center; }
.pd-no { font-family: var(--display); font-style: italic; color: var(--pine); font-size: 1.2rem; margin: 0; }
.pd-title { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); }
.pd-kind { color: var(--muted); margin: .4rem 0 1.5rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; }
.pd-body dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin: 1.5rem 0; padding-top: 1.25rem; border-top: 1px solid rgba(51,80,62,.25); font-size: .95rem; }
.pd-body dt { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--pine); line-height: 1.5; }
.pd-body dd { margin: 0; }
.pd-note { color: var(--muted); font-size: .93rem; }
.dialog-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--linen); color: var(--ink); border: 1px solid rgba(38,36,30,.25); border-radius: 999px; padding: .3rem .95rem; cursor: pointer; font-size: .85rem; }
.dialog-close:hover { background: var(--pine); color: var(--ivory); border-color: var(--pine); }

.lightbox { background: transparent; max-width: calc(100% - 2rem); max-height: calc(100svh - 2rem); overflow: visible; }
.lightbox img { max-height: calc(100svh - 4rem); width: auto; margin: 0 auto; border-radius: 3px; }
.lightbox .dialog-close { top: -2.6rem; right: 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .section-head, .intro-grid, .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .pieces { grid-template-columns: repeat(2, 1fr); }
  .pieces > :nth-child(3n+2) { transform: none; }
  .pieces > :nth-child(2n) { transform: translateY(2.5rem); }
  .piece--next { margin-top: 2.5rem; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .partner-list { grid-template-columns: 1fr; max-width: 30rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .piece-dialog[open] { grid-template-columns: 1fr; }
  .pd-main { aspect-ratio: 1; }
  .technique .split-media::before, .maker-portrait::before { inset: 1rem -.75rem -.75rem 1rem; }
  /* hero: photo fills the screen, text sits on a dark fade */
  .hero { grid-template-columns: 1fr; min-height: 100svh; }
  .hero-media { position: absolute; inset: 0; z-index: -1; }
  .hero-media::after { background: linear-gradient(180deg, rgba(27,42,33,.55) 0%, rgba(27,42,33,.35) 35%, rgba(20,29,23,.92) 80%); }
  .hero-text { justify-content: flex-end; padding: 7rem var(--gutter) 3.5rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 0 0 auto 0; padding: 5rem var(--gutter) 2rem; background: var(--forest); flex-direction: column; gap: 1.2rem; transform: translateY(-100%); transition: transform .35s ease; z-index: -1; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  .site-nav a { font-family: var(--display); font-size: 1.8rem; text-transform: none; letter-spacing: 0; opacity: 1; }
  .site-header.menu-open .site-nav { transform: none; }
}
@media (max-width: 520px) {
  .pieces { gap: 2.25rem 1rem; }
  .piece--next { grid-template-columns: 1fr; }
  .piece-name { font-size: 1.5rem; }
  .piece-kind { font-size: .7rem; letter-spacing: .12em; }
  .mosaic { grid-auto-rows: 160px; }
  .hero-sub { letter-spacing: .4em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
