/* ==========================================================================
   L'ÉCRIN GOURMAND — design system
   Ivory ground, forest green, espresso ink; berry as a tiny accent.
   Display + names: Cormorant Garamond   ·   Text + UI: DM Sans

   A few strong decisions, applied everywhere:
   1. THE WALL     The catalogue is the page: one photo grid, like the Instagram
                   feed, finished with names. Photo resolution decides tile size.
   2. THREE TIERS  Display (hero + closing line), Title (every other heading),
                   Name (products). Italic belongs to Display only.
   3. ONE SHAPE    2px corners everywhere; the arch only at the two brand
                   moments (hero, custom cakes); pills only on filter chips.
   4. THREE BUTTONS  solid, outline, text link. One solid button per screen.
   5. FEW BACKGROUNDS  ivory, one sand band, forest.
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root{
  /* colour */
  --ivory:#F6F0E5;
  --band:#F0E6D4;          /* the one alternate ground (reviews, how to order) */
  --sand:#E9D9BE;          /* mat behind photos while they load */
  --forest:#1D382D;
  --forest-hover:#264839;
  --sage:#B5BD8A;          /* only on forest, never as text on light */
  --espresso:#302820;
  --espresso-soft:#66594C; /* 5.5:1 on ivory */
  --berry:#8A2B38;         /* micro-accent only: dot, active filter, quote marks */
  --white:#FFFFFF;

  --line:rgba(48,40,32,.16);
  --line-soft:rgba(48,40,32,.09);
  --line-light:rgba(246,240,229,.22);

  /* type */
  --serif:"Cormorant Garamond","Cormorant",Garamond,"Iowan Old Style",Georgia,serif;
  --sans:"DM Sans","Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;

  --t-display:clamp(3.4rem, 1.5rem + 6.2vw, 7rem);      /* hero + closing line only */
  --t-title:clamp(2.25rem, 1.55rem + 2.3vw, 3.25rem);   /* every other heading */
  --t-feature:clamp(1.6rem, 1.3rem + 1vw, 2.05rem);     /* name on a large tile */
  --t-name:1.3rem;                                      /* name on a tile */
  --t-lead:clamp(1.125rem, 1.03rem + .35vw, 1.3rem);
  --t-body:1.0625rem;
  --t-small:.9375rem;
  --t-label:.8125rem;

  /* space — 8px base. Sections breathe in two sizes. */
  --shell:1480px;
  --gutter:clamp(1.25rem, .45rem + 3.4vw, 4.5rem);
  --sp-quiet:clamp(4rem, 2.4rem + 4.2vw, 6.5rem);       /* ~96px on desktop */
  --sp-moment:clamp(5rem, 3rem + 5.5vw, 8.5rem);        /* ~128px */
  --sp-head:clamp(2.5rem, 2rem + 1.6vw, 3.25rem);       /* heading → content */
  --gap:clamp(.75rem, .6rem + .5vw, 1rem);
  --header-h:5rem;

  --ease:cubic-bezier(.2,.8,.2,1);
  --ease-out:cubic-bezier(.16,1,.3,1);

  /* the one icon: a 1.5px arrow, matched to the hairlines */
  --arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ reset */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:var(--header-h)}
body,h1,h2,h3,p,figure,blockquote,ul,ol,dl,dd,fieldset{margin:0}
ul,ol{padding:0;list-style:none}
fieldset{border:0;padding:0;min-width:0}
legend{padding:0}
img,svg{display:block;max-width:100%}
img{height:auto}                        /* width/height attributes must never override aspect-ratio */
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
a{color:inherit}

body{
  background:var(--ivory);
  color:var(--espresso);
  font-family:var(--sans);
  font-size:var(--t-body);
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.is-locked{overflow:hidden}

:focus-visible{outline:2px solid var(--forest);outline-offset:3px}
::selection{background:var(--sage);color:var(--forest)}

/* ------------------------------------------------------------------ helpers */
.shell{width:100%;max-width:var(--shell);margin-inline:auto;padding-inline:var(--gutter)}
.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:1rem;top:1rem;z-index:200;transform:translateY(-200%);
  background:var(--forest);color:var(--ivory);padding:.8rem 1.2rem;text-decoration:none;
  font-size:var(--t-small);transition:transform .25s var(--ease);
}
.skip-link:focus{transform:none}

/* the one icon */
.arr{
  display:inline-block;flex:none;width:1.05em;height:1.05em;background:currentColor;
  -webkit-mask:var(--arrow) center/contain no-repeat;mask:var(--arrow) center/contain no-repeat;
  transition:translate .35s var(--ease);
}
.arr--down{transform:rotate(90deg)}
.arr--up{transform:rotate(-90deg)}
.arr--left{transform:rotate(180deg)}

/* ------------------------------------------------------------------ type */
.h2,.hero-title,.footer-title,.viewer-name,.sheet-title{
  font-family:var(--serif);font-weight:500;letter-spacing:-.012em;line-height:1.04;
}
.h2{font-size:var(--t-title);max-width:20ch;text-wrap:balance}
.hero-title,.footer-title{font-size:var(--t-display);line-height:.92;letter-spacing:-.025em}
.hero-title em,.footer-title em{font-style:italic;font-weight:400}   /* the only italic on the page */

.label,.eyebrow{
  font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--forest);
}
.label--light{color:var(--sage)}
.label + .h2{margin-top:1rem}

.lead{margin-top:1.25rem;font-size:var(--t-lead);line-height:1.6;color:var(--espresso-soft);max-width:38ch}
.section-sub{font-size:var(--t-lead);line-height:1.5;color:var(--espresso-soft)}

.caption{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .65rem;
  margin-top:1rem;font-size:.875rem;color:var(--espresso-soft);
}
.caption-name{font-family:var(--serif);font-style:normal;font-weight:500;font-size:1.2rem;color:var(--espresso)}
.caption--light{color:rgba(246,240,229,.72)}
.caption--light .caption-name{color:var(--ivory)}

/* ------------------------------------------------------------------ buttons
   Three styles. Solid is the one action; outline is the second; the link is the quiet third. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  min-height:3.5rem;padding:1rem 1.75rem;border:1px solid transparent;border-radius:2px;
  font-family:var(--sans);font-size:1rem;font-weight:500;line-height:1.2;
  text-decoration:none;text-align:center;white-space:nowrap;
  transition:background-color .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease),transform .35s var(--ease);
}
.btn:active{transform:translateY(1px)}
.btn-small{min-height:2.75rem;padding:.6rem 1.15rem;font-size:.9375rem}
.btn-block{width:100%}

.btn-solid{background:var(--forest);color:var(--ivory)}
.btn-solid:hover{background:var(--forest-hover)}
.btn-ivory{background:var(--ivory);color:var(--forest)}        /* solid, on forest */
.btn-ivory:hover{background:var(--white)}
.btn-line{border-color:var(--line);color:var(--espresso)}
.btn-line:hover{border-color:var(--forest);background:var(--forest);color:var(--ivory)}
.btn-ghost{border-color:var(--line-light);color:var(--ivory)}  /* outline, on forest */
.btn-ghost:hover{border-color:var(--sage);color:var(--sage)}

.link-arrow{
  display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;
  font-size:var(--t-small);font-weight:500;color:var(--espresso);text-decoration:none;
  border-bottom:1px solid var(--line);transition:border-color .3s var(--ease);
}
.link-arrow:hover{border-bottom-color:var(--espresso)}
.link-arrow:hover .arr{translate:4px 0}
.link-arrow:hover .arr--down{translate:0 3px}

.icon-btn{
  display:grid;place-items:center;width:3rem;height:3rem;border:1px solid var(--line);border-radius:2px;
  color:var(--espresso);
  transition:background-color .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),opacity .3s var(--ease);
}
.icon-btn:hover{background:var(--forest);border-color:var(--forest);color:var(--ivory)}
.icon-btn[aria-disabled="true"]{opacity:.35;cursor:default}
.icon-btn[aria-disabled="true"]:hover{background:none;border-color:var(--line);color:var(--espresso)}

/* ------------------------------------------------------------------ the arch — the écrin, used twice */
.arch{position:relative;overflow:hidden;border-radius:999px 999px 2px 2px;background:var(--sand)}
.arch img{width:100%;height:100%;object-fit:cover}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:50;border-bottom:1px solid transparent;
  transition:background-color .4s var(--ease),border-color .4s var(--ease);
}
.site-header.is-stuck{background:rgba(246,240,229,.95);border-bottom-color:var(--line-soft)}
@supports (backdrop-filter:blur(1px)){
  .site-header.is-stuck{background:rgba(246,240,229,.84);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
}
.header-bar{display:flex;align-items:center;gap:2.5rem;height:var(--header-h)}

.wordmark{
  margin-right:auto;padding-block:.6rem;font-family:var(--serif);font-weight:600;font-size:1.65rem;
  letter-spacing:-.01em;line-height:1;text-decoration:none;white-space:nowrap;color:var(--espresso);
}
.wordmark-dot{color:var(--berry)}

.nav{display:flex;gap:2.5rem}
.nav a{
  position:relative;padding-block:.5rem;font-size:var(--t-small);font-weight:500;
  text-decoration:none;color:var(--espresso);
}
.nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:.2rem;height:1px;background:currentColor;
  transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease);
}
.nav a:hover::after{transform:scaleX(1);transform-origin:left}

.menu-toggle{
  display:none;align-items:center;gap:.75rem;min-height:2.75rem;margin-right:-.5rem;padding:.5rem;
  font-size:var(--t-small);font-weight:500;
}
.menu-toggle-lines{position:relative;width:1.5rem;height:.6rem}
.menu-toggle-lines span{
  position:absolute;left:0;right:0;height:1.5px;background:currentColor;
  transition:transform .4s var(--ease),top .4s var(--ease);
}
.menu-toggle-lines span:first-child{top:0}
.menu-toggle-lines span:last-child{top:calc(100% - 1.5px)}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child{top:calc(50% - .75px);transform:rotate(45deg)}
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child{top:calc(50% - .75px);transform:rotate(-45deg)}
.menu-toggle[aria-expanded="true"]{color:var(--ivory)}

.menu{
  position:fixed;inset:0;z-index:40;background:var(--forest);color:var(--ivory);
  display:flex;flex-direction:column;justify-content:space-between;
  padding:calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  opacity:0;transition:opacity .4s var(--ease);
}
.menu[hidden]{display:none}
.menu.is-open{opacity:1}
.menu-nav{display:flex;flex-direction:column}
.menu-nav a{
  font-family:var(--serif);font-size:clamp(2.4rem, 1.8rem + 3vw, 3.4rem);line-height:1.15;
  padding-block:.4rem;text-decoration:none;border-bottom:1px solid var(--line-light);
}
.menu-foot{display:grid;gap:1.25rem;justify-items:center}
.menu-foot .btn{width:100%}
.menu-social{display:inline-flex;align-items:center;min-height:2.75rem;color:var(--sage);text-decoration:none;font-size:var(--t-small)}
body.menu-open .site-header{background:transparent;border-bottom-color:transparent;backdrop-filter:none}
body.menu-open .wordmark{color:var(--ivory)}
body.menu-open .wordmark-dot{color:var(--sage)}

/* ==========================================================================
   HERO — a moment: Display type, one photograph, one solid button
   ========================================================================== */
.hero{padding-top:calc(var(--header-h) + 1rem);padding-bottom:clamp(2.5rem, 1rem + 4vw, 5rem)}
.hero-grid{
  display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:clamp(2rem, 1rem + 4vw, 6rem);align-items:center;min-height:calc(100svh - var(--header-h) - 3rem);
}
.hero-title{margin-top:1.5rem}
.hero-title .line{display:block;overflow:hidden;padding-bottom:.08em}
.hero-title .line > span{display:inline-block;white-space:nowrap}
.hero-lead{margin-top:2rem;font-size:var(--t-lead);line-height:1.6;color:var(--espresso-soft);max-width:34ch}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem;margin-top:2.5rem}
.hero-copy{padding-bottom:clamp(0rem, -1rem + 3vw, 2.5rem)}

.hero-media{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;container-type:inline-size}
.hero-arch{width:100%;height:clamp(26rem, calc(100svh - var(--header-h) - 6.5rem), 62rem)}
/* never slimmer than 0.72:1, or the tart's edges get cropped */
@supports (width:1cqw){.hero-arch{height:min(clamp(26rem, calc(100svh - var(--header-h) - 6.5rem), 62rem), calc(100cqw / .72))}}
.hero-arch img{object-position:50% 70%}
.hero-caption{justify-content:flex-end}

/* entrance: quick, staggered, never blocks content for long */
.js .hero-in{animation:rise 1s var(--ease-out) both;animation-delay:calc(var(--i, 0) * 85ms + 80ms)}
.js .hero-title .hero-in{animation-name:rise-line}
.js .hero-arch{animation:open-arch 1.25s var(--ease-out) .05s both}
.js .hero-arch img{animation:settle 1.6s var(--ease-out) .05s both}
.js .hero-caption{animation:rise 1s var(--ease-out) .6s both}
@keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes rise-line{from{transform:translateY(105%)}to{transform:none}}
@keyframes open-arch{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes settle{from{transform:scale(1.08)}to{transform:none}}

/* ==========================================================================
   CUSTOMER MESSAGES — quiet: three visible, the rest a swipe away
   ========================================================================== */
.reviews{background:var(--band);padding-block:var(--sp-quiet)}
.reviews-head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:1.5rem 3rem;margin-bottom:var(--sp-head);
}
.scroller-controls{display:none;gap:.5rem}
.js .scroller-controls{display:flex}

.quotes{
  --qgap:var(--gap);
  display:flex;align-items:flex-start;gap:var(--qgap);overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.quotes::-webkit-scrollbar{display:none}
.quotes:focus-visible{outline-offset:6px}
.quote{
  flex:0 0 calc((100% - 3 * var(--qgap)) / 3.2);scroll-snap-align:start;
  display:flex;flex-direction:column;gap:.5rem;
  padding:clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background:var(--white);border:1px solid var(--line);border-radius:2px;
}
.quote-mark{display:block;height:1.75rem;font-family:var(--serif);font-size:4rem;line-height:.75;color:var(--berry)}
.quote-text{
  font-family:var(--serif);font-weight:500;font-variant-numeric:lining-nums;color:var(--espresso);
  font-size:clamp(1.25rem, 1.1rem + .55vw, 1.5rem);line-height:1.4;
}
.quote-text p + p{margin-top:.75em}
/* a long message starts folded; the full text stays in the page */
.quote-toggle{
  display:none;align-self:flex-start;align-items:center;min-height:2.75rem;margin-top:auto;
  font-size:var(--t-small);font-weight:500;color:var(--forest);border-bottom:1px solid var(--line);
}
.quote-toggle:hover{border-bottom-color:var(--forest)}
.js .quote-toggle{display:inline-flex}
.js .quote--long:not(.is-expanded) .quote-text{
  max-height:10.5rem;overflow:hidden;
  -webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent);
}

/* ==========================================================================
   THE WALL — the catalogue. Photo resolution decides tile size:
   full-resolution photos take 2×2 tiles; Instagram crops stay near native size.
   ========================================================================== */
.wall{padding-block:var(--sp-quiet)}
.wall-head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:1.25rem 4rem;margin-bottom:var(--sp-head);
}
.wall-intro{max-width:36ch}
.wall-hint{margin-top:.75rem;font-size:var(--t-small);line-height:1.55;color:var(--espresso-soft)}

.filters{display:none;flex-wrap:wrap;gap:.25rem 2rem;margin-bottom:2rem;border-bottom:1px solid var(--line)}   /* filtering needs JS */
.js .filters{display:flex}
.filter{
  position:relative;display:inline-flex;align-items:baseline;gap:.35rem;min-height:2.75rem;padding-block:.65rem;
  font-size:1rem;font-weight:500;color:var(--espresso-soft);transition:color .3s var(--ease);
}
.filter::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--berry);
  transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease);
}
.filter:hover{color:var(--espresso)}
.filter[aria-pressed="true"]{color:var(--espresso)}
.filter[aria-pressed="true"]::after{transform:scaleX(1)}
.filter-count{font-size:.8125rem;font-variant-numeric:tabular-nums;color:var(--espresso-soft)}

.wall-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:dense;
  gap:2rem var(--gap);align-items:start;
}
.tile{display:flex;flex-direction:column;min-width:0}
.tile[hidden]{display:none}
.js .tile.is-entering{animation:rise .5s var(--ease-out) both}

.tile-photo{
  position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;
  border-radius:2px;background:var(--sand);cursor:zoom-in;
}
.tile-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.1s var(--ease-out)}
.tile-photo:hover img,.tile-photo:focus-visible img{transform:scale(1.03)}

.tile-label{padding-top:.75rem}
.tile-kind{font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--espresso-soft)}
.tile-name{
  margin-top:.2rem;font-family:var(--serif);font-weight:500;font-size:var(--t-name);line-height:1.15;
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:.22em;
  transition:text-decoration-color .3s var(--ease);
}
.tile:hover .tile-name{text-decoration-color:var(--line)}
/* only large tiles show their one-line note; the rest keep it for screen readers and the viewer */
.tile:not(.tile--feature) .tile-note{
  position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;
}
.tile-note{margin-top:.35rem;font-size:var(--t-small);line-height:1.5;color:var(--espresso-soft);max-width:34ch}

.tile--feature{grid-column:span 2;grid-row:span 2;align-self:stretch}
.tile--feature .tile-photo{flex:1 1 auto;min-height:0}
.tile--feature .tile-name{font-size:var(--t-feature)}

.wall-more{display:flex;justify-content:center;margin-top:3rem}
.wall-more:has([hidden]){display:none}

/* ==========================================================================
   CUSTOM CAKES — a moment: the forest panel opens like a case as it arrives
   ========================================================================== */
.bespoke-panel{
  --inset:clamp(.75rem, 3vw, 3rem);
  background:var(--forest);color:var(--ivory);padding-block:var(--sp-moment);
}
.js .bespoke-panel{clip-path:inset(0 var(--inset) round 2px);transition:clip-path 1.3s var(--ease-out)}
.js .bespoke-panel.is-open{clip-path:inset(0 0 round 0)}
.bespoke :focus-visible{outline-color:var(--sage)}
.bespoke-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);align-items:center}
.bespoke-media{grid-column:2 / span 4}
.bespoke-arch{aspect-ratio:4/5;background:rgba(0,0,0,.18)}
.bespoke-arch img{object-position:50% 62%}
.bespoke-copy{grid-column:7 / span 6}
.bespoke .h2{color:var(--ivory)}
.bespoke .lead{color:rgba(246,240,229,.78)}
.occasions{display:flex;flex-wrap:wrap;gap:.5rem;margin-block:2rem 1.5rem}
.bespoke-copy > .btn{margin-top:.5rem}

/* ==========================================================================
   ATELIER — quiet
   ========================================================================== */
.atelier{padding-block:var(--sp-quiet)}
.atelier-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:clamp(1rem, .5rem + 1.6vw, 2rem);align-items:center}
.atelier-media{grid-column:1 / span 5}
.atelier-media .frame{aspect-ratio:4/5;overflow:hidden;border-radius:2px;background:var(--sand)}
.atelier-media img{width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.atelier-copy{grid-column:7 / span 6}
.pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:var(--sp-head);border-top:1px solid var(--line)}
.pillars li{padding:1.75rem 2rem 0 0}
.pillars li + li{padding-left:2rem;border-left:1px solid var(--line-soft)}
.pillars h3{font-family:var(--serif);font-weight:500;font-size:var(--t-name);line-height:1.2}
.pillars p{margin-top:.5rem;font-size:var(--t-small);line-height:1.55;color:var(--espresso-soft);max-width:30ch}

/* ==========================================================================
   HOW TO ORDER — quiet; the numerals are a true sequence
   ========================================================================== */
.order{background:var(--band);padding-block:var(--sp-quiet)}
.order-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);align-items:start}
.order-intro{grid-column:1 / span 5}
.order-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem;margin-top:2.25rem}
.facts{margin-top:2.5rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 2rem}
.facts[hidden],.facts > div[hidden]{display:none}
.facts > div{padding-top:1rem;border-top:1px solid var(--line)}
.facts dt{font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--espresso-soft)}
.facts dd{margin-top:.35rem;font-family:var(--serif);font-size:1.35rem;line-height:1.25;font-variant-numeric:lining-nums}
.steps{grid-column:7 / span 6}
.steps li{display:grid;grid-template-columns:clamp(4rem, 3rem + 3vw, 6.5rem) 1fr;gap:1.5rem;padding-block:2rem;border-top:1px solid var(--line)}
.steps li:last-child{border-bottom:1px solid var(--line)}
.step-n{font-family:var(--serif);font-size:clamp(2.6rem, 2rem + 2vw, 4rem);line-height:.9;color:var(--forest);font-variant-numeric:lining-nums}
.steps h3{font-family:var(--serif);font-weight:500;font-size:1.65rem;line-height:1.15}
.steps p{margin-top:.5rem;color:var(--espresso-soft);max-width:38ch}

/* ==========================================================================
   FOOTER — a moment: the closing line, in forest
   ========================================================================== */
.site-footer{background:var(--forest);color:var(--ivory);padding-top:var(--sp-moment)}
.site-footer :focus-visible{outline-color:var(--sage)}
.footer-cta{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:2.5rem var(--gap);align-items:end;
  padding-bottom:var(--sp-moment);border-bottom:1px solid var(--line-light);
}
.footer-cta-side p{font-size:var(--t-lead);line-height:1.55;color:rgba(246,240,229,.78);max-width:32ch}
.footer-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.footer-grid{
  display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));gap:2.5rem var(--gap);
  padding-block:clamp(3rem, 2rem + 3vw, 5rem);
}
.wordmark--footer{display:inline-block;margin:0;padding:0;font-size:2.1rem;color:var(--ivory)}
.wordmark--footer .wordmark-dot{color:var(--sage)}
.footer-tag{margin-top:.6rem;font-family:var(--serif);font-size:1.35rem;color:rgba(246,240,229,.75)}
.footer-h{font-family:var(--sans);font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--sage);margin-bottom:.9rem}
.footer-col{display:flex;flex-direction:column;align-items:flex-start}
.footer-col a,.footer-col p{color:rgba(246,240,229,.86);text-decoration:none;font-size:var(--t-small)}
.footer-col a{display:inline-flex;align-items:center;min-height:2.75rem;border-bottom:1px solid transparent;transition:border-color .3s var(--ease),color .3s var(--ease)}
.footer-col a:hover{color:var(--ivory);border-bottom-color:var(--sage)}
.footer-col p{padding-block:.35rem}
.footer-col .footer-note{color:rgba(246,240,229,.62);font-size:.875rem;max-width:24ch}
.footer-base{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;
  padding-block:1rem calc(1rem + env(safe-area-inset-bottom));
  border-top:1px solid var(--line-light);font-size:.875rem;color:rgba(246,240,229,.62);
}
.footer-base > a{display:inline-flex;align-items:center;gap:.4rem;min-height:2.75rem;color:inherit;text-decoration:none}
.footer-base > a:hover{color:var(--ivory)}
.footer-base > a:hover .arr{translate:0 -3px}
/* studio credit: small and quiet; only the studio name is a link */
.credit{font-size:.8125rem}
.credit a{color:inherit;text-decoration:underline;text-decoration-color:rgba(246,240,229,.3);text-underline-offset:.22em;transition:color .3s var(--ease),text-decoration-color .3s var(--ease)}
.credit a:hover{color:var(--ivory);text-decoration-color:var(--sage)}

/* ==========================================================================
   STICKY MOBILE CTA — the one solid button whenever no other is in view
   ========================================================================== */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:30;display:none;
  padding:.75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background:rgba(246,240,229,.96);border-top:1px solid var(--line-soft);
  transform:translateY(110%);transition:transform .45s var(--ease);
}
.sticky-cta.is-visible{transform:none}

/* ==========================================================================
   DIALOGS — photo viewer and order sheet (native <dialog>)
   ========================================================================== */
dialog{padding:0;border:0;color:var(--espresso);background:var(--ivory)}
dialog::backdrop{background:rgba(22,41,31,.62);backdrop-filter:blur(4px)}
.dialog-close{
  display:grid;place-items:center;width:2.75rem;height:2.75rem;border-radius:50%;
  color:var(--espresso);transition:background-color .3s var(--ease);
}
.dialog-close:hover{background:var(--sand)}
.dialog-close svg{width:1.25rem;height:1.25rem}

.viewer{width:min(64rem, calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;border-radius:2px}
.viewer[open]{animation:dialog-in .45s var(--ease-out)}
.viewer-inner{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.viewer .dialog-close{position:absolute;top:.75rem;right:.75rem;z-index:2;background:rgba(246,240,229,.9)}
.viewer-media{background:var(--sand);display:grid;place-items:center}
.viewer-media img{width:100%;aspect-ratio:4/5;object-fit:cover}
.viewer.is-lowres .viewer-media{padding:clamp(1.5rem, 4vw, 3rem)}
.viewer.is-lowres .viewer-media img{width:min(100%, 22rem);border-radius:2px}
.viewer-body{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(2rem, 1rem + 3vw, 3.5rem)}
.viewer-count{font-size:.8125rem;font-variant-numeric:tabular-nums;color:var(--espresso-soft);margin-bottom:auto;padding-bottom:2rem}
.viewer-name{margin-top:1rem;font-size:clamp(2.2rem, 1.6rem + 2vw, 3.4rem)}
.viewer-note{margin-top:1rem;color:var(--espresso-soft);font-size:var(--t-lead);max-width:28ch}
.viewer-body .btn{margin-top:2rem}
.viewer-nav{display:flex;gap:.5rem;margin-top:1.25rem}

/* order sheet: right-hand drawer on desktop, bottom sheet on phones */
.sheet{margin:0 0 0 auto;width:min(34rem, 100%);height:100dvh;max-height:100dvh;max-width:100%;border-left:1px solid var(--line-soft)}
.sheet[open]{display:flex;flex-direction:column;animation:sheet-in .5s var(--ease-out)}
/* the body scrolls; the header and the Send button stay pinned */
.sheet-form{display:flex;flex-direction:column;flex:1;min-height:0}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.75rem clamp(1.25rem, 4vw, 2.25rem) 1.25rem}
.sheet-title{margin-top:.9rem;font-size:clamp(2rem, 1.6rem + 1.5vw, 2.75rem)}
.sheet-body{flex:1;min-height:0;overflow:auto;padding:.5rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem;display:grid;gap:1.4rem;align-content:start}
.sheet-foot{padding:1.25rem clamp(1.25rem, 4vw, 2.25rem) calc(1.25rem + env(safe-area-inset-bottom));border-top:1px solid var(--line-soft);background:var(--ivory)}
.sheet-hint{margin-top:.75rem;font-size:.8125rem;line-height:1.5;color:var(--espresso-soft);text-align:center}
.sheet-hint.is-success{color:var(--forest);font-weight:500}

.field{display:grid;gap:.5rem}
.field label,.field legend{font-size:.875rem;font-weight:600;color:var(--espresso)}
.field legend{margin-bottom:.5rem}
.optional{font-weight:400;color:var(--espresso-soft);margin-left:.25rem}
.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.field input,.field select,.field textarea{
  width:100%;min-height:3rem;padding:.75rem .9rem;border:1px solid var(--line);border-radius:2px;
  background:var(--white);font-size:1rem;line-height:1.4;color:var(--espresso);
  transition:border-color .25s var(--ease),box-shadow .25s var(--ease);
}
.field textarea{resize:vertical;min-height:5.5rem}
.field select{
  appearance:none;padding-right:2.5rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23302820' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .9rem center;background-size:.75rem;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--forest);box-shadow:0 0 0 3px rgba(29,56,45,.14)}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{position:relative}
.chip input{position:absolute;opacity:0;width:1px;height:1px}
.chip span{
  display:inline-flex;align-items:center;min-height:2.75rem;padding:.5rem 1rem;border:1px solid var(--line);border-radius:999px;
  font-size:var(--t-small);cursor:pointer;transition:background-color .25s var(--ease),color .25s var(--ease),border-color .25s var(--ease);
}
.chip span:hover{border-color:var(--forest)}
.chip input:checked + span{background:var(--forest);border-color:var(--forest);color:var(--ivory)}
.chip input:focus-visible + span{outline:2px solid var(--forest);outline-offset:2px}
.preview{padding:1.1rem 1.2rem;background:var(--band);border-left:2px solid var(--forest)}
.preview-label{font-size:var(--t-label);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--espresso-soft)}
.preview-text{margin-top:.6rem;white-space:pre-line;font-size:.9375rem;line-height:1.55}

@keyframes dialog-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes sheet-in{from{transform:translateX(100%)}to{transform:none}}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}

/* ==========================================================================
   SCROLL REVEAL — short and quiet
   ========================================================================== */
.js .reveal{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease-out),transform .7s var(--ease-out)}
.js .reveal.is-in{opacity:1;transform:none}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width:1099px){
  .wall-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .footer-cta{grid-template-columns:1fr}   /* the closing headline needs the full width here */
}

@media (max-width:1023px){
  :root{--header-h:4.25rem}
  .nav,.header-cta{display:none}
  .menu-toggle{display:inline-flex}
  .sticky-cta{display:block}
  body{padding-bottom:4.75rem}

  .hero{padding-bottom:3rem}
  .hero-grid{grid-template-columns:1fr;min-height:0;gap:2rem}
  .hero-media{order:-1}
  .hero-arch{height:auto;aspect-ratio:4/5;max-height:60svh;min-height:0}
  .hero-caption{justify-content:flex-start}
  .hero-copy{padding-bottom:0}
  .hero-title{margin-top:1.1rem}

  .atelier-grid,.bespoke-grid,.order-grid{grid-template-columns:1fr;row-gap:3rem}
  .atelier-media,.atelier-copy,.bespoke-media,.bespoke-copy,.order-intro,.steps{grid-column:1 / -1}
  .atelier-media{width:min(100%, 34rem)}
  .bespoke-media{width:min(78%, 26rem)}

  .footer-cta{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-brand{grid-column:1 / -1}

  .quote{flex-basis:calc((100% - 2 * var(--qgap)) / 2.2)}
}

@media (max-width:899px){ .wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* A phone held sideways: keep the hero side by side instead of a flat, cropped dome */
@media (max-width:1023px) and (orientation:landscape) and (max-height:520px){
  body{padding-bottom:3.75rem}
  .sticky-cta{padding-block:.5rem}
  .sticky-cta .btn{min-height:2.75rem}
  .hero{padding-top:calc(var(--header-h) + .5rem);padding-bottom:1.5rem}
  .hero-grid{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2rem}
  .hero-media{order:0;width:calc((100svh - var(--header-h) - 4.5rem) * .8)}
  .hero-arch{height:auto;aspect-ratio:4/5;max-height:none;width:100%}
  .hero-title{font-size:clamp(2.5rem, 7vh, 3.25rem);margin-top:.75rem}
  .hero-lead{margin-top:1rem;font-size:1rem}
  .hero-actions{margin-top:1.25rem}
}

@media (max-width:767px){
  .wordmark{font-size:1.4rem}
  .hero-arch{max-height:50svh}

  .hero-actions .btn,.order-actions .btn{width:100%}
  .footer-actions .btn{flex:1 1 100%}
  .credit{order:3;flex-basis:100%}
  .pillars{grid-template-columns:1fr}
  .pillars li,.pillars li + li{padding:1.5rem 0;border-left:0}
  .pillars li + li{border-top:1px solid var(--line-soft)}
  .steps li{grid-template-columns:3.5rem 1fr;gap:1rem;padding-block:1.6rem}
  .facts{grid-template-columns:1fr 1fr}

  /* filters become a swipeable row, with a fade to hint there is more */
  .filters{
    flex-wrap:nowrap;overflow-x:auto;gap:1.5rem;scrollbar-width:none;
    margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);padding-right:3rem;
    -webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);
  }
  .filters::-webkit-scrollbar{display:none}
  .filter{white-space:nowrap;flex:none}

  /* messages: one and a bit at a time, edge to edge */
  .quotes{margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);scroll-padding-inline:var(--gutter)}
  .quote{flex-basis:84%}

  /* viewer + sheet become full-width, bottom-anchored */
  .viewer{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:8px 8px 0 0}
  .viewer-inner{grid-template-columns:1fr}
  .viewer-media img{aspect-ratio:1/1;max-height:46dvh}
  .viewer.is-lowres .viewer-media img{width:min(100%, 17rem);aspect-ratio:4/5}
  .viewer-count{padding-bottom:1rem}
  .sheet{width:100%;height:auto;max-height:92dvh;margin:auto 0 0;border-left:0;border-radius:8px 8px 0 0}
  .sheet[open]{animation-name:sheet-up}
  .field-row{grid-template-columns:1fr}
}

@media (max-width:639px){ .wall-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:1.5rem} .tile-name{font-size:1.15rem} .tile--feature .tile-name{font-size:var(--t-feature)} }

@media (max-width:420px){
  .footer-title{font-size:2.75rem}   /* keeps "Something sweet" on one line */
  .facts{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}

/* ==========================================================================
   REDUCED MOTION — everything present, nothing moving
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-delay:0s !important;transition-duration:.01ms !important}
  .js .reveal{opacity:1;transform:none}
  .js .bespoke-panel{clip-path:none}
}
