/* Pastry Kitchen Designs — palette pulled from the logo art:
   slate chalkboard, mint-teal script, copper tools. */
:root {
  --slate-900: #141b22;
  --slate-800: #1b242d;
  --slate-700: #243039;
  --slate-600: #2f3d48;
  --mint: #9fdcd0;
  --mint-soft: #c9ece4;
  --teal: #2f7f86;
  --copper: #c8865a;
  --copper-light: #e3a97e;
  --cream: #efe8dd;
  --paper: #f6f1e8;
  --ink: #1d242b;
  --ink-soft: #4a5560;
  --text: rgba(239, 232, 221, 0.86);
  --text-dim: rgba(239, 232, 221, 0.58);
  --line: rgba(239, 232, 221, 0.12);

  --f-display: 'Playfair Display', Georgia, serif;
  --f-script: 'Caveat', 'Brush Script MT', cursive;
  --f-body: 'DM Sans', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;

  --gutter: clamp(1rem, 5vw, 3rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--slate-800);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--mint); color: var(--ink); padding: .5rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

/* ── Type ── */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; color: var(--cream); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.25rem; }
h2 em { font-style: italic; font-weight: 500; color: var(--mint); }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }
.script { font-family: var(--f-script); font-weight: 700; color: var(--mint); }
.label {
  font-family: var(--f-mono); font-size: .72rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light);
  display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem;
}
.label::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .7; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--copper); color: var(--slate-900); }
.btn-primary:hover { background: var(--copper-light); }
.btn-ghost { border: 1px solid rgba(159, 220, 208, .45); color: var(--mint); }
.btn-ghost:hover { border-color: var(--mint); background: rgba(159, 220, 208, .08); }
.text-link { display: inline-block; margin-top: 1.75rem; color: var(--mint); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(159,220,208,.4); padding-bottom: 2px; }
.text-link:hover { border-color: var(--mint); }

/* ── Nav ── */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(20, 27, 34, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--cream); }
.brand em { font-style: normal; font-family: var(--f-mono); font-weight: 300; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--copper-light); margin-left: .25rem; }
#nav-links { display: flex; align-items: center; gap: 2rem; }
#nav-links a { text-decoration: none; font-size: .92rem; color: var(--text-dim); transition: color .2s; }
#nav-links a:hover { color: var(--cream); }
#nav-links .nav-cta { color: var(--mint); border: 1px solid rgba(159,220,208,.4); padding: .4rem 1rem; border-radius: 999px; }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px 0 64px;
  background:
    radial-gradient(ellipse 55% 60% at 75% 45%, rgba(47,127,134,.22), transparent 70%),
    radial-gradient(ellipse 45% 50% at 10% 90%, rgba(200,134,90,.12), transparent 70%),
    var(--slate-800);
  overflow: hidden;
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1.02; margin-bottom: 1.75rem; }
.hero h1 .script { font-size: 1.22em; line-height: .8; font-weight: 700; }
.lede { max-width: 34rem; color: var(--text); font-size: 1.1rem; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.hero-actions.center { justify-content: center; }
.hero-mark img {
  width: 100%; max-width: 520px; margin-left: auto; border-radius: 50%;
  aspect-ratio: 1; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(200,134,90,.35), 0 0 0 14px rgba(20,27,34,.6), 0 0 0 15px rgba(159,220,208,.18), 0 30px 80px rgba(0,0,0,.5);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ── Pillars ── */
.pillars { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--slate-900); border-top: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  position: relative; display: block; text-decoration: none;
  background: var(--slate-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem 1.75rem; transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(200,134,90,.5); }
.pillar-img { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; margin-bottom: 1.25rem; background: var(--cream); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pillar:hover .pillar-img img { transform: scale(1.05); }
.pillar-num { position: absolute; top: 1.6rem; right: 1.6rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; color: var(--cream); background: rgba(20,27,34,.75); padding: .2rem .55rem; border-radius: 999px; }
.pillar h3, .pillar p { padding: 0 .5rem; }
.pillar h3 { font-family: var(--f-script); font-size: 2.1rem; color: var(--mint); margin-bottom: .25rem; }
.pillar p { color: var(--text-dim); font-size: .95rem; }

/* ── Kitchen / gallery (light "paper" section) ── */
.kitchen { background: var(--paper); color: var(--ink-soft); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.kitchen h2 { color: var(--ink); }
.kitchen h2 em { color: var(--teal); }
.kitchen .label { color: #9a5b33; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-intro { color: var(--ink-soft); max-width: 36rem; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); background: #e2d9cb; box-shadow: 0 6px 24px rgba(29,36,43,.12); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile span {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; text-align: left;
  background: linear-gradient(to top, rgba(20,27,34,.8), transparent);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.tile:hover span, .tile:focus-visible span { opacity: 1; transform: none; }

/* ── Process ── */
.process { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--slate-800); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; counter-reset: s; }
.steps li { position: relative; padding: 1.75rem 1.5rem; border-top: 2px solid var(--copper); background: linear-gradient(180deg, rgba(200,134,90,.07), transparent 70%); }
.step-num { font-family: var(--f-mono); font-size: .75rem; color: var(--copper-light); letter-spacing: .1em; display: block; margin-bottom: .75rem; }
.steps p { color: var(--text-dim); font-size: .95rem; }

/* ── Canvas & Code ── */
.medium { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.canvas { background: var(--slate-700); }
.code { background: var(--slate-900); }
.medium-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.medium-grid.reverse .medium-art { order: 2; }
.medium-art { margin: 0; }
.medium-art img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 10px var(--cream), 0 24px 60px rgba(0,0,0,.45); }
.code .medium-art img { box-shadow: 0 0 0 1px rgba(159,220,208,.3), 0 24px 60px rgba(0,0,0,.5); }
.medium-art figcaption { margin-top: 1.5rem; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.medium-copy p { max-width: 34rem; }
.note { margin-top: 1.5rem !important; }
.note .script { font-size: 1.6rem; color: var(--copper-light); }

/* ── Story ── */
.story { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--slate-800); border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.story p { max-width: 38rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.facts div { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--slate-700); border-left: 3px solid var(--mint); }
.facts dt { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700; color: var(--cream); line-height: 1; margin-bottom: .5rem; }
.facts dd { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); line-height: 1.5; }

/* ── Contact ── */
.contact {
  padding: clamp(5rem, 10vw, 8rem) 0; text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(47,127,134,.25), transparent 70%), var(--slate-900);
}
.contact-inner { max-width: 720px; }
.contact-kicker { font-size: 1.8rem; color: var(--copper-light); margin-bottom: .25rem; }
.contact p { color: var(--text); max-width: 34rem; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
.site-footer { background: var(--slate-900); border-top: 1px solid var(--line); padding: 1.75rem 0; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; color: var(--text-dim); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--mint); text-decoration: none; }

/* ── Lightbox ── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 14, 18, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { max-width: min(90vw, 760px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 1rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.lightbox-close { position: fixed; top: 1rem; right: 1.25rem; font-size: 2.25rem; line-height: 1; color: var(--cream); width: 48px; height: 48px; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); font-size: 2.75rem; color: var(--cream); width: 56px; height: 72px; opacity: .7; }
.lightbox-nav:hover, .lightbox-close:hover { opacity: 1; color: var(--mint); }
.lightbox-nav.prev { left: .5rem; }
.lightbox-nav.next { right: .5rem; }

/* ── Reveal on scroll ── */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ── Responsive ── */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  #nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--slate-900); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  #nav-links.is-open { transform: none; visibility: visible; }
  #nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  #nav-links .nav-cta { border: 0; padding: .9rem 0; border-radius: 0; }
  .hero-inner, .medium-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark img { max-width: 260px; margin: 0 auto; }
  .medium-grid.reverse .medium-art { order: 0; }
  .medium-art { max-width: 520px; }
  .pillar-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts dt { font-size: 1.8rem; }
  .brand em { display: none; }
  .tile span { opacity: 1; transform: none; font-size: .6rem; padding: 2rem .6rem .6rem; }
  .lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}
