/* ============================================================
   PESCH - Custom Design + Fabrication
   Design tokens
   ============================================================ */

:root {
  --bg:        #FAF8F4;   /* warm off-white, primary background */
  --bg-alt:    #F1EBE2;   /* deeper warm white, alternating sections */
  --ink:       #1C1917;   /* near-black charcoal, primary text */
  --ink-soft:  #6E655C;   /* warm gray, secondary text */
  --line:      #E1D8CB;   /* hairline borders */
  --taupe:     #7A5F45;   /* subtle accent, used sparingly - WCAG AA on bg/bg-alt */
  --taupe-dim: #C9BBA9;

  --serif: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --sans:  'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 72px);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display-1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  margin: 0 0 20px;
}

.display-2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  margin: 0 0 20px;
}

.body-lg {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 46ch;
}

p { margin: 0 0 1em; }

.mono-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Tick mark - signature motif ----------
   A small drafting crosshair, used at section thresholds
   and corners of framed images, standing in for the
   reference marks on an architectural drawing. */

.tick {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.55;
}
.tick line { stroke: var(--ink); stroke-width: 1; }

.threshold {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.threshold .rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--bg); }

.btn-ghost {
  border-color: transparent;
  padding: 15px 4px;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { background: transparent; color: var(--taupe); border-color: var(--taupe); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--ink); gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 40;
  padding: 34px var(--gutter) 22px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.28em;
  text-indent: 0.28em; /* re-center the tracked text */
  color: var(--ink);
  display: block;
}
.wordmark small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
}

.site-nav {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-nav a { padding: 4px 2px; border-bottom: 1px solid transparent; transition: color 0.25s var(--ease), border-color 0.25s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-color: var(--taupe); }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .nav-toggle {
    display: inline-flex;
    margin-top: 20px;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    cursor: pointer;
    gap: 8px;
    align-items: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 34px;
  margin-top: 140px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.footer-nav a { padding: 6px 2px; display: inline-block; }
.footer-nav a:hover { color: var(--ink); }
.footer-mark {
  text-align: center;
  margin: 36px 0 30px;
  font-family: var(--serif);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  font-size: 15px;
  color: var(--ink-soft);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.social-icons { display: flex; gap: 18px; }
.social-icons a {
  opacity: 0.65;
  transition: opacity 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 4px;
}
.social-icons a:hover { opacity: 1; }
.social-icons svg { width: 16px; height: 16px; }

/* ---------- Placeholder photography ----------
   Framed image scaffolds: correct aspect ratio + crop
   behavior preserved so real photography can drop in
   later without touching layout. */

.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(28,25,23,0.05) 0 1px, transparent 1px 34px),
    linear-gradient(150deg, #EFE8DC 0%, #E4DACB 55%, #ECE4D6 100%);
  display: flex;
  align-items: flex-end;
}
.ph-cap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ph-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0.28;
  z-index: 2;
}
.ph-corner.tl { top: 8px; left: 8px; }
.ph-corner.tr { top: 8px; right: 8px; transform: rotate(90deg); }
.ph-corner line { stroke: var(--ink); stroke-width: 1; }

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.photo-note {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(250, 248, 244, 0.92);
  padding: 5px 8px;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ph--hero   { aspect-ratio: 16 / 10; }
.ph--wide   { aspect-ratio: 3 / 2; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall   { aspect-ratio: 4 / 5; }
.ph--panorama { aspect-ratio: 21 / 9; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

.hover-zoom { overflow: hidden; }
.hover-zoom .ph { transition: transform 0.7s var(--ease); }
.hover-zoom:hover .ph { transform: scale(1.035); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */

.hero { padding-top: 0; }
.hero-frame { position: relative; }
.hero-copy {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Piece card ---------- */

.piece-card { display: block; }
.piece-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  gap: 12px;
}
.piece-name { font-family: var(--serif); font-size: 19px; margin: 0; }
.piece-cat { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.piece-price { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.piece-view {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.piece-card:hover .piece-view { color: var(--taupe); }
.piece-card:hover .piece-name { color: var(--taupe); }
.piece-name { transition: color 0.25s var(--ease); }

/* ---------- Two-up split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-copy { padding: 48px var(--gutter); }
}

/* ---------- Process steps (Custom page - genuine sequence) ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.process-step { padding-top: 22px; border-top: 1px solid var(--line); }
.process-num { font-family: var(--serif); font-size: 13px; color: var(--taupe); letter-spacing: 0.06em; }
.process-title { font-family: var(--serif); font-size: 20px; margin: 10px 0 8px; }
.process-desc { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */

.product-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.product-info { position: sticky; top: 40px; }
.product-price { font-size: 20px; color: var(--ink-soft); margin-bottom: 28px; }
.spec-block + .spec-block { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.spec-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.spec-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.spec-list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.spec-list li:first-child { border-top: none; }
.dims { font-size: 15px; color: var(--ink); }

@media (max-width: 900px) {
  .product-top { grid-template-columns: 1fr; gap: 40px; }
  .product-info { position: static; }
}

.gallery-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 20px; }
.gallery-mosaic .ph { grid-column: span 3; }
.gallery-mosaic .ph.g-wide { grid-column: span 6; }
@media (max-width: 700px) {
  .gallery-mosaic { grid-template-columns: 1fr 1fr; }
  .gallery-mosaic .ph { grid-column: span 1; }
  .gallery-mosaic .ph.g-wide { grid-column: span 2; }
}

/* ---------- Natural (uncropped) photos ----------
   Used wherever a photo must show in full, at its own
   aspect ratio, instead of being cropped to a fixed frame. */

.ph--natural {
  aspect-ratio: auto;
  display: block;
  background: none;
}
.ph--natural img {
  position: static;
  width: 100%;
  height: auto;
  display: block;
}

.natural-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.natural-grid figure {
  margin: 0;
}
.natural-grid img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 800px) { .natural-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .natural-grid { grid-template-columns: 1fr; } }

/* ---------- Accessibility ---------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.process-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 700px) { .process-photos { grid-template-columns: 1fr 1fr; } }

.next-piece {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 96px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.next-piece a:hover { color: var(--ink); }

/* ---------- About page ---------- */

.about-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 60px; }
@media (max-width: 700px) { .about-photo-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */

.contact-email {
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 32px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  display: inline-block;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-email:hover { color: var(--taupe); border-color: var(--taupe); }

/* ---------- Portfolio ---------- */

.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 40px; }
@media (max-width: 800px) { .portfolio-grid { grid-template-columns: 1fr; gap: 48px; } }
.portfolio-index { font-family: var(--serif); font-size: 12px; color: var(--taupe); letter-spacing: 0.08em; margin-bottom: 12px; }
