/* ═══════════════════════════════════════════════════════════════
   Twisted Trees — shared stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0f0d0b; --bark: #1c1712; --grain: #2e261e;
  --amber: #c8913a; --amber-dim: #a87328; --amber-bright: #e8a84a;
  --ash: #f0ebe3; --mist: #d9d0c4; --white: #faf8f4;
  --error: #e0685c; --error-text: #f4b3ab;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Jost', system-ui, sans-serif;
  --nav-h: 80px; --ease: cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { background: var(--bark); color: var(--ash); font-family: var(--ff-body); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.section-label { font-family: var(--ff-body); font-size: .8rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; color: var(--amber-bright); display: block; margin-bottom: 1rem; }

/* Keyboard focus — visible on every interactive element */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 1000; padding: .75rem 1.25rem; background: var(--amber); color: var(--bark); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.skip-link:focus { top: 1rem; }

/* Motion is opt-in for people who asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
}

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem,3vw,2.5rem); background: transparent; transition: background .4s var(--ease), backdrop-filter .4s var(--ease); }
nav.scrolled { background: rgba(15,13,11,.92); backdrop-filter: blur(12px); }
.nav-logo { display: flex; align-items: center; gap: .75rem; }
.nav-logo img { height: 60px; width: auto; filter: invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.7)); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--white); transition: color .2s; position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 16px rgba(0,0,0,.7); }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 100%; height: 1px; background: var(--amber); transition: right .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: .6rem 1.4rem; border: 1px solid var(--amber); color: var(--amber); transition: background .2s, color .2s; text-shadow: 0 1px 6px rgba(0,0,0,.8); box-shadow: 0 0 12px rgba(0,0,0,.5); background: rgba(0,0,0,.25); }
.nav-cta:hover { background: var(--amber); color: var(--bark); text-shadow: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; padding: 0 10px; min-width: 44px; min-height: 44px; margin-right: -10px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--ash); box-shadow: 0 0 6px rgba(0,0,0,.8); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: var(--ink); flex-direction: column; align-items: center; justify-content: center; gap: 2.25rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--ff-display); font-size: 2rem; font-weight: 300; color: var(--ash); letter-spacing: .05em; padding: .25rem .75rem; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--amber); }
.mobile-menu .nav-cta { font-family: var(--ff-body); font-size: .8rem; margin-top: 1rem; text-shadow: none; box-shadow: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.75rem; }
.mobile-close { position: absolute; top: calc((var(--nav-h) - 44px) / 2); right: clamp(1rem,3vw,2.5rem); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(240,235,227,.3); color: var(--ash); }
.mobile-close:hover { border-color: var(--amber); color: var(--amber); }
.mobile-close svg { width: 18px; height: 18px; }
body.menu-open { overflow: hidden; }

/* HERO SLIDESHOW */
/* Fills the viewport, but grows with its content instead of clipping on short screens (landscape phones) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Two scrims: a bottom fade that starts earlier than before, plus a left-side wash so the eyebrow
   and subhead stay readable over bright windows and tabletops. */
.hero-overlay { position: absolute; inset: 0; background:
  linear-gradient(to bottom, rgba(15,13,11,.25) 0%, rgba(15,13,11,.1) 28%, rgba(15,13,11,.55) 52%, rgba(15,13,11,.85) 78%, rgba(15,13,11,.97) 100%),
  linear-gradient(to right, rgba(15,13,11,.55) 0%, rgba(15,13,11,.3) 40%, rgba(15,13,11,0) 70%); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 1rem) clamp(1.5rem,6vw,6rem) clamp(2rem,6vw,5rem); max-width: 760px; }
.hero-eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: #f2bd63; margin-bottom: 1.25rem; text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 18px rgba(0,0,0,.9); }
.hero h1 { font-family: var(--ff-display); font-size: clamp(2.8rem,7vw,5.5rem); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; color: var(--white); margin-bottom: 1.5rem; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-sub { font-size: clamp(.9rem,1.5vw,1.05rem); color: var(--white); max-width: 440px; margin-bottom: 2.5rem; line-height: 1.8; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.8); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-controls { position: absolute; bottom: 2rem; left: clamp(1.5rem,6vw,6rem); z-index: 2; display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: 0; margin-left: -19px; }
.hero-dot { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; }
.hero-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(240,235,227,.3); transition: background .3s, transform .3s; }
.hero-dot.active::before { background: var(--amber); transform: scale(1.2); }
.scroll-hint { position: absolute; bottom: 2rem; right: clamp(1.5rem,5vw,4rem); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: .5; padding: .5rem; transition: opacity .2s; }
.scroll-hint:hover, .scroll-hint:focus-visible { opacity: 1; }
/* Sections receive focus after an animated in-page scroll; no ring needed on non-interactive targets */
[tabindex="-1"]:not(.form-summary):focus-visible { outline: none; }
.scroll-hint span { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--amber), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* BUTTONS */
.btn-primary { display: inline-block; padding: .85rem 2rem; background: var(--amber); color: var(--bark); font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: background .2s; border: none; }
.btn-primary:hover { background: #d9a24a; }
.btn-ghost { display: inline-block; padding: .85rem 2rem; border: 1px solid rgba(240,235,227,.35); color: var(--ash); font-size: .72rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; transition: border-color .2s, color .2s; background: none; }
.btn-ghost:hover { border-color: var(--ash); color: var(--white); }
.btn-small { font-size: .62rem; padding: .5rem 1rem; display: inline-flex; align-items: center; min-height: 44px; }

/* MARQUEE */
.marquee-bar { background: var(--grain); border-top: 1px solid rgba(200,145,58,.2); border-bottom: 1px solid rgba(200,145,58,.2); overflow: hidden; padding: .9rem 0; }
.marquee-track { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-track span { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); flex-shrink: 0; }
.marquee-track .dot { color: var(--amber); letter-spacing: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* INTRO */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 600px; }
.intro-text { background: var(--ink); padding: clamp(3rem,8vw,7rem) clamp(2rem,6vw,5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.intro-text h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3.2rem); font-weight: 300; line-height: 1.2; color: var(--white); margin-bottom: 1.5rem; }
.intro-text p { font-size: .95rem; color: var(--mist); line-height: 1.85; max-width: 420px; margin-bottom: 1rem; }
.intro-text p:last-of-type { margin-bottom: 2rem; }
.intro-img { position: relative; overflow: hidden; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s var(--ease); }
.intro-img:hover img { transform: scale(1.03); }

/* COMMISSIONED */
.commissioned { background: var(--bark); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); }
.commissioned-inner { max-width: 1200px; margin: 0 auto; }
.commissioned-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.commissioned-header h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); line-height: 1.15; }
.project-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 4/3; display: block; color: inherit; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,13,11,.92) 0%, rgba(15,13,11,.1) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem; transition: background .3s; }
.project-card:hover .project-card-overlay, .project-card:focus-visible .project-card-overlay { background: linear-gradient(to top, rgba(15,13,11,.97) 0%, rgba(15,13,11,.2) 60%); }
.project-card-tag { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--amber); margin-bottom: .5rem; }
.project-card h3 { font-family: var(--ff-display); font-size: clamp(1.3rem,2.5vw,2rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: .4rem; }
.project-card p { font-size: .8rem; color: var(--mist); line-height: 1.6; margin-bottom: .75rem; }
.project-card-cta { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: .4rem; opacity: .85; transform: translateY(0); transition: opacity .3s, transform .3s; }
.project-card:hover .project-card-cta, .project-card:focus-visible .project-card-cta { opacity: 1; }
.project-card-cta::after { content: '→'; }

/* LIGHTBOX TRIGGERS — buttons so keyboard users can open them */
.g-item, .design-item, .pi-item { display: block; width: 100%; border: 0; padding: 0; background: var(--grain); font: inherit; text-align: inherit; overflow: hidden; position: relative; cursor: pointer; }

/* GALLERY HOME */
.gallery-section { padding: clamp(4rem,8vw,8rem) clamp(1.5rem,5vw,4rem); background: var(--grain); }
.gallery-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.gallery-header h2 { font-family: var(--ff-display); font-size: clamp(2rem,4.5vw,3.5rem); font-weight: 300; color: var(--white); line-height: 1.1; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item-overlay { position: absolute; inset: 0; background: rgba(15,13,11,.6); opacity: 0; transition: opacity .3s; display: flex; align-items: center; justify-content: center; }
.g-item:hover .g-item-overlay, .g-item:focus-visible .g-item-overlay { opacity: 1; }
.g-item-overlay span { font-family: var(--ff-display); font-size: 1.1rem; font-style: italic; color: var(--white); text-align: center; padding: 1rem; }
.gallery-grid .g-item:nth-child(1) { grid-column: 1/8; grid-row: 1; aspect-ratio: 16/9; }
.gallery-grid .g-item:nth-child(2) { grid-column: 8/13; grid-row: 1; aspect-ratio: 4/3; }
.gallery-grid .g-item:nth-child(3) { grid-column: 1/5; grid-row: 2; aspect-ratio: 4/3; }
.gallery-grid .g-item:nth-child(4) { grid-column: 5/9; grid-row: 2; aspect-ratio: 4/3; }
.gallery-grid .g-item:nth-child(5) { grid-column: 9/13; grid-row: 2; aspect-ratio: 4/3; }
.gallery-grid .g-item:nth-child(6) { grid-column: 1/6; grid-row: 3; aspect-ratio: 16/10; }
.gallery-grid .g-item:nth-child(7) { grid-column: 6/13; grid-row: 3; aspect-ratio: 16/9; }

/* TESTIMONIALS */
.testimonials { background: var(--ink); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 3rem; max-width: 560px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2px; }
.testimonial { background: var(--grain); padding: 2.5rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; border-top: 2px solid rgba(200,145,58,.35); }
.testimonial blockquote { font-family: var(--ff-display); font-size: 1.35rem; font-weight: 300; font-style: italic; line-height: 1.5; color: var(--white); flex: 1; }
.testimonial blockquote::before { content: '\201C'; color: var(--amber); margin-right: .1em; }
.testimonial blockquote::after { content: '\201D'; color: var(--amber); margin-left: .1em; }
.testimonial figcaption { display: flex; align-items: center; gap: 1rem; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-size: .9rem; color: var(--ash); }
.testimonial-meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

/* SERVICES */
.services-section { background: var(--ink); padding: clamp(4rem,8vw,8rem) clamp(1.5rem,5vw,4rem); }
.services-section.tight { padding-top: 4rem; }
.services-inner { max-width: 1100px; margin: 0 auto; }
.services-section h2 { font-family: var(--ff-display); font-size: clamp(2rem,4.5vw,3.5rem); font-weight: 300; color: var(--white); margin-bottom: 3.5rem; max-width: 560px; line-height: 1.15; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2px; }
.service-card { background: var(--grain); padding: 2.5rem 2rem; border-bottom: 2px solid transparent; transition: border-color .3s, background .3s; }
.service-card:hover { border-bottom-color: var(--amber); background: #251e16; }
.service-icon { width: 32px; height: 2px; background: var(--amber); margin-bottom: 1.5rem; }
.service-card h3 { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 400; color: var(--white); margin-bottom: .75rem; line-height: 1.2; }
.service-card p { font-size: .88rem; color: var(--mist); line-height: 1.75; }

/* PROCESS */
.process-section { background: var(--bark); padding: clamp(4rem,8vw,8rem) clamp(1.5rem,5vw,4rem); }
.process-inner { max-width: 1000px; margin: 0 auto; }
.process-section h2 { font-family: var(--ff-display); font-size: clamp(2rem,4.5vw,3rem); font-weight: 300; color: var(--white); margin-bottom: 4rem; text-align: center; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 20px; left: 10%; right: 10%; height: 1px; background: linear-gradient(to right, transparent, var(--amber), transparent); }
.process-step { text-align: center; padding: 0 1.5rem; }
.step-num { width: 40px; height: 40px; border: 1px solid var(--amber); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: var(--ff-display); font-size: .9rem; color: var(--amber); background: var(--bark); position: relative; z-index: 1; }
.process-step h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 400; color: var(--white); margin-bottom: .6rem; }
.process-step p { font-size: .82rem; color: var(--mist); line-height: 1.7; }

/* ABOUT / SERVICES HERO */
.about-hero { min-height: 50vh; display: flex; align-items: center; background: var(--ink); padding: calc(var(--nav-h) + 4rem) clamp(1.5rem,6vw,6rem) 4rem; }
.about-hero-inner { max-width: 700px; }
.about-hero h1 { font-family: var(--ff-display); font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.about-hero p { font-size: 1.05rem; color: var(--mist); line-height: 1.85; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.about-img { overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-body { background: var(--grain); padding: clamp(3rem,6vw,5rem) clamp(2rem,5vw,4rem); display: flex; flex-direction: column; justify-content: center; }
.about-body h2 { font-family: var(--ff-display); font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 300; color: var(--white); margin-bottom: 1.5rem; line-height: 1.2; }
.about-body p { font-size: .92rem; color: var(--mist); line-height: 1.85; margin-bottom: 1rem; }
.about-stamp { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(200,145,58,.25); display: flex; align-items: center; gap: 1.5rem; }
.about-stamp img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; filter: grayscale(30%); }
.about-stamp-text p:first-child { font-family: var(--ff-display); font-size: 1.1rem; color: var(--white); margin: 0; }
.about-stamp-text p:last-child { font-size: .78rem; color: var(--amber); letter-spacing: .1em; margin: 0; }
.shop-section { background: var(--ink); padding: clamp(4rem,7vw,6rem) clamp(1.5rem,5vw,4rem); }
.shop-inner { max-width: 1200px; margin: 0 auto; }
.shop-inner h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 3rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 12px; }
.shop-grid .g-item { aspect-ratio: 4/3; }
.values-section { background: var(--bark); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); }
.values-inner { max-width: 1000px; margin: 0 auto; }
.values-inner h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); margin-bottom: 3rem; }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
.value-item h3 { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 400; color: var(--amber); margin-bottom: .5rem; }
.value-item p { font-size: .88rem; color: var(--mist); line-height: 1.75; }

/* GALLERY PAGE */
.page-hero { min-height: 35vh; display: flex; align-items: flex-end; background: var(--ink); padding: calc(var(--nav-h) + 3rem) clamp(1.5rem,6vw,6rem) 3rem; }
.page-hero h1 { font-family: var(--ff-display); font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; }
.gallery-full { background: var(--bark); padding: 3rem clamp(1.5rem,5vw,4rem) 6rem; }
.gallery-group-label { grid-column: 1/-1; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(200,145,58,.15); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.gallery-group-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.gallery-group-label .section-label { margin-bottom: 0; }
.gallery-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; }
.gallery-full-grid .g-item { aspect-ratio: 4/3; }
.gallery-full-grid .g-item.tall { aspect-ratio: 3/4; }
.gallery-caption { padding: .75rem 0 .25rem; font-size: .75rem; letter-spacing: .1em; color: var(--mist); opacity: .7; }

/* DESIGNS PAGE */
.designs-disclaimer { display: inline-flex; align-items: flex-start; gap: .75rem; background: rgba(200,145,58,.1); border: 1px solid rgba(200,145,58,.3); padding: 1rem 1.25rem; margin-top: 1.5rem; max-width: 620px; }
.designs-disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; color: var(--amber); }
.designs-disclaimer p { font-size: .82rem; color: var(--mist); line-height: 1.7; }
.designs-disclaimer strong { color: var(--amber); font-weight: 500; }
.designs-disclaimer a { color: var(--amber); text-decoration: underline; }
.designs-full { background: var(--bark); padding: 3rem clamp(1.5rem,5vw,4rem) 6rem; }
.designs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 16px; }
.design-item { aspect-ratio: 16/9; }
.design-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.design-item:hover img, .design-item:focus-visible img { transform: scale(1.04); }
.design-item-overlay { position: absolute; inset: 0; background: rgba(15,13,11,.6); opacity: 0; transition: opacity .3s; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem; }
.design-item:hover .design-item-overlay, .design-item:focus-visible .design-item-overlay { opacity: 1; }
.design-item-overlay span { font-family: var(--ff-display); font-size: 1.1rem; font-style: italic; color: var(--white); }
.design-item-overlay .render-badge { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); font-family: var(--ff-body); font-style: normal; }
.design-caption { padding: .75rem 0 .25rem; font-size: .75rem; letter-spacing: .1em; color: var(--mist); opacity: .7; }
.render-tag { display: inline-block; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(200,145,58,.4); padding: .15rem .5rem; margin-top: .75rem; }
.designs-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(200,145,58,.15); text-align: center; }
.designs-cta p { font-size: .9rem; color: var(--mist); margin-bottom: 1.5rem; }

/* PROJECT DETAIL PAGE */
.project-detail-hero { min-height: 60vh; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.project-detail-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-detail-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,13,11,.1) 0%, rgba(15,13,11,.85) 100%); }
.project-detail-title { position: relative; z-index: 2; padding: clamp(2rem,5vw,4rem) clamp(1.5rem,6vw,6rem); }
.back-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); margin-bottom: .75rem; transition: color .2s; }
.back-link:hover { color: var(--amber); }
.project-detail-title h1 { font-family: var(--ff-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: .75rem; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.project-detail-body { background: var(--ink); padding: clamp(3rem,6vw,5rem) clamp(1.5rem,6vw,6rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 4rem; align-items: start; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.5rem; align-content: start; }
.project-meta-item { min-width: 0; }
.project-meta-item .meta-label { font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: .3rem; }
.project-meta-item .meta-value { font-size: .92rem; color: var(--ash); line-height: 1.6; }
.project-desc p { font-size: .95rem; color: var(--mist); line-height: 1.9; margin-bottom: 1.25rem; }
/* "Where It Started": the design concept a commission was built from, linking to the Designs page */
.project-origin { background: var(--bark); padding: clamp(3rem,6vw,5rem) clamp(1.5rem,6vw,6rem); border-top: 1px solid rgba(200,145,58,.12); }
.project-origin-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem 4rem; align-items: center; }
.project-origin-img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--grain); }
.project-origin-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-origin-img:hover img, .project-origin-img:focus-visible img { transform: scale(1.03); }
.project-origin-img .render-tag { position: absolute; top: 1rem; left: 1rem; margin: 0; background: rgba(15,13,11,.65); backdrop-filter: blur(4px); }
.project-origin-text h2 { font-family: var(--ff-display); font-size: clamp(1.8rem,3.2vw,2.6rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 1rem; }
.project-origin-text p { font-size: .95rem; color: var(--mist); line-height: 1.85; max-width: 440px; margin-bottom: 1.75rem; }
.project-origin-text em { color: var(--white); font-style: italic; }
.gallery-group-label[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
/* "Keep scrolling" cue: sits under both columns and jumps to the photos/reels */
.project-more { grid-column: 1 / -1; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem 1rem 0; color: var(--mist); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; text-align: center; transition: color .2s; }
.project-more:hover { color: var(--amber); }
.project-more .scroll-line { height: 40px; }
.project-reels, .project-images { scroll-margin-top: var(--nav-h); }
.project-images { background: var(--bark); padding: clamp(2rem,5vw,4rem) clamp(1.5rem,6vw,6rem) clamp(4rem,8vw,6rem); }
.project-images .section-label { margin-bottom: 1.5rem; }
.project-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 12px; }
.pi-item { aspect-ratio: 4/3; }
.pi-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pi-item:hover img, .pi-item:focus-visible img { transform: scale(1.04); }
.pi-overlay { position: absolute; inset: 0; background: rgba(15,13,11,.6); opacity: 0; transition: opacity .3s; display: flex; align-items: center; justify-content: center; }
.pi-item:hover .pi-overlay, .pi-item:focus-visible .pi-overlay { opacity: 1; }
.pi-overlay span { font-family: var(--ff-display); font-size: 1.1rem; font-style: italic; color: var(--white); text-align: center; padding: 1rem; }

/* CONTACT */
.contact-page { background: var(--ink); padding: calc(var(--nav-h) + 4rem) clamp(1.5rem,6vw,6rem) 6rem; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "intro form" "details form"; column-gap: 6rem; row-gap: 0; align-items: start; }
.contact-intro { grid-area: intro; }
.contact-details { grid-area: details; }
.contact-right { grid-area: form; }
.contact-intro h1 { font-family: var(--ff-display); font-size: clamp(2.5rem,5vw,4rem); font-weight: 300; color: var(--white); line-height: 1.1; margin-bottom: 1.5rem; }
.contact-intro > p { font-size: .92rem; color: var(--mist); line-height: 1.85; max-width: 420px; margin-bottom: 3rem; }
.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.contact-detail-item .label { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: .35rem; }
.contact-detail-item a, .contact-detail-item span { font-size: .95rem; color: var(--ash); }
.contact-detail-item a { display: inline-flex; align-items: center; min-height: 44px; margin: -.6rem 0; }
.contact-detail-item a:hover { color: var(--amber); }
.contact-divider { width: 48px; height: 1px; background: rgba(200,145,58,.35); margin-bottom: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-field label { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.form-field label .optional { color: var(--mist); opacity: .7; letter-spacing: .1em; text-transform: none; }
.form-field input, .form-field select, .form-field textarea { background: rgba(255,255,255,.04); border: 1px solid rgba(200,145,58,.25); color: var(--ash); font-family: var(--ff-body); font-size: 1rem; font-weight: 300; padding: .8rem 1rem; transition: border-color .2s; appearance: none; -webkit-appearance: none; border-radius: 0; }
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(217,208,196,.45); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 2px rgba(200,145,58,.25); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8913a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-field select option { background: var(--grain); }
.form-hint { font-size: .75rem; color: var(--mist); opacity: .65; }
.form-field.is-invalid input, .form-field.is-invalid select, .form-field.is-invalid textarea { border-color: var(--error); }
.form-error { font-size: .78rem; color: var(--error-text); display: none; }
.form-field.is-invalid .form-error { display: block; }
.form-summary { display: none; border: 1px solid var(--error); background: rgba(224,104,92,.08); padding: 1rem 1.25rem; font-size: .85rem; color: var(--error-text); }
.form-summary.show { display: block; }
.form-summary ul { margin: .5rem 0 0 1.1rem; }
.form-summary a { color: var(--white); text-decoration: underline; }
.form-submit { padding: 1rem 2.5rem; background: var(--amber); color: var(--bark); border: none; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; transition: background .2s; align-self: flex-start; margin-top: .5rem; }
.form-submit:hover { background: #d9a24a; }
.form-submit[disabled] { opacity: .7; cursor: default; }
.form-note { font-size: .78rem; color: var(--mist); opacity: .6; }

/* FAQ */
.faq { background: var(--bark); padding: clamp(4rem,7vw,6rem) clamp(1.5rem,6vw,6rem); }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); line-height: 1.15; margin-bottom: 2.5rem; }
.faq details { border-top: 1px solid rgba(200,145,58,.2); }
.faq details:last-child { border-bottom: 1px solid rgba(200,145,58,.2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; color: var(--white); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber); }
.faq summary svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--amber); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { font-size: .92rem; color: var(--mist); line-height: 1.85; padding: 0 0 1.5rem; max-width: 680px; }

/* REELS — "Behind the Build" (home) and "Watch the Build" (project pages) */
.reels { background: var(--ink); padding: clamp(4rem,8vw,7rem) clamp(1.5rem,5vw,4rem); }
.reels-inner { max-width: 1200px; margin: 0 auto; }
.reels-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; margin-bottom: 3rem; }
.reels-header h2 { font-family: var(--ff-display); font-size: clamp(2rem,4vw,3rem); font-weight: 300; color: var(--white); line-height: 1.15; }
.reels-sub { font-size: .9rem; color: var(--mist); max-width: 520px; line-height: 1.8; }
.reels-sub a { color: var(--amber); border-bottom: 1px solid rgba(200,145,58,.4); transition: border-color .2s; }
.reels-sub a:hover { border-color: var(--amber); }
.reels-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.reel { margin: 0; flex: 1 1 260px; max-width: 340px; min-width: 0; }
.reel-frame { position: relative; aspect-ratio: 9/16; overflow: hidden; background: var(--grain); cursor: pointer; }
.reel-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: linear-gradient(to top, rgba(15,13,11,.45), rgba(15,13,11,.05) 50%); display: flex; align-items: center; justify-content: center; color: var(--white); transition: opacity .3s; }
.reel-play svg { width: 52px; height: 52px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.7)); }
.reel-frame.is-playing .reel-play { opacity: 0; pointer-events: none; }
.reel-sound { position: absolute; bottom: .75rem; right: .75rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(240,235,227,.35); background: rgba(15,13,11,.55); color: var(--ash); backdrop-filter: blur(4px); transition: border-color .2s, color .2s; }
.reel-sound:hover { border-color: var(--amber); color: var(--amber); }
.reel-sound svg { width: 16px; height: 16px; }
.reel-sound .icon-on { display: none; }
.reel-sound[aria-pressed="true"] .icon-off { display: none; }
.reel-sound[aria-pressed="true"] .icon-on { display: block; }
.reel figcaption { padding: .85rem 0 0; font-family: var(--ff-display); font-size: 1.05rem; font-style: italic; color: var(--white); line-height: 1.4; }
.reel figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--ff-body); font-style: normal; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-top: -.25rem; }
.reel figcaption a:hover { color: var(--amber-bright); }
.project-reels { background: var(--grain); }

/* FOOTER */
footer { background: var(--ink); border-top: 1px solid rgba(200,145,58,.15); padding: 3rem clamp(1.5rem,5vw,4rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 36px; width: auto; filter: invert(1); opacity: .8; }
.footer-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--mist); opacity: .6; transition: opacity .2s; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: .72rem; color: var(--mist); opacity: .4; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(240,235,227,.2); color: var(--mist); opacity: .7; transition: opacity .2s, border-color .2s, color .2s; }
.footer-social a:hover { opacity: 1; border-color: var(--amber); color: var(--amber); }
.footer-social svg { width: 16px; height: 16px; }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,8,6,.95); display: none; align-items: center; justify-content: center; padding: 1rem 5rem; }
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: 100%; }
.lightbox img { max-width: min(100%, 1400px); max-height: 82vh; object-fit: contain; }
.lightbox figcaption { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .25rem 1.25rem; text-align: center; min-height: 1.5em; }
.lightbox-caption { font-family: var(--ff-display); font-style: italic; font-size: 1.05rem; color: var(--mist); }
.lightbox-count { font-size: .68rem; letter-spacing: .2em; color: var(--amber); }
.lightbox-close, .lightbox-nav { background: rgba(15,13,11,.5); border: 1px solid rgba(255,255,255,.3); color: var(--ash); display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.lightbox-close:hover, .lightbox-nav:hover { border-color: var(--amber); color: var(--amber); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 1.2rem; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-nav svg { width: 18px; height: 18px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* CTA */
.home-cta { background: var(--grain); padding: clamp(4rem,7vw,6rem) clamp(1.5rem,5vw,4rem); text-align: center; }
.home-cta h2 { font-family: var(--ff-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; line-height: 1.15; }
.home-cta p { font-size: .95rem; color: var(--mist); max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.8; }

/* THANK YOU */
.thanks { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 2rem) 2rem 4rem; }
.thanks .check { width: 56px; height: 56px; border: 1px solid var(--amber); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; color: var(--amber); }
.thanks .check svg { width: 22px; height: 22px; }
.thanks h1 { font-family: var(--ff-display); font-size: clamp(2rem,5vw,3.5rem); font-weight: 300; color: var(--white); margin-bottom: 1rem; line-height: 1.1; }
.thanks p { font-size: .95rem; color: var(--mist); max-width: 420px; line-height: 1.8; margin-bottom: 2.5rem; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 0; }
  .process-steps::before { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* Keep the primary CTA visible in the bar on phones, tucked beside the menu button */
  nav > .nav-cta { font-size: .62rem; letter-spacing: .14em; padding: 0 .9rem; min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; margin-right: 1rem; white-space: nowrap; }
  .hamburger { display: flex; }
  .intro { grid-template-columns: 1fr; }
  .intro-img { min-height: 340px; }
  .about-split { grid-template-columns: 1fr; }
  .about-img { min-height: 320px; }
  /* Phones/tablets: intro, then a compact contact grid, then the form — so the form is one scroll away */
  .contact-page { grid-template-columns: 1fr; grid-template-areas: "intro" "details" "form"; row-gap: 2.5rem; }
  .contact-intro > p { margin-bottom: 0; }
  .contact-divider { display: none; }
  .contact-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; margin-bottom: 0; }
  .contact-detail-item { min-width: 0; }
  .contact-detail-item a, .contact-detail-item span { font-size: .88rem; overflow-wrap: anywhere; }
  .project-detail-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-origin-inner { grid-template-columns: 1fr; }
  .gallery-grid .g-item:nth-child(n) { grid-row: auto; } /* desktop mosaic pins rows; let tiles flow in order here (same specificity as the pins) */
  .gallery-grid .g-item:nth-child(1) { grid-column: 1/13; }
  .gallery-grid .g-item:nth-child(2) { grid-column: 1/13; }
  .gallery-grid .g-item:nth-child(3), .gallery-grid .g-item:nth-child(4), .gallery-grid .g-item:nth-child(5) { grid-column: span 4; }
  .gallery-grid .g-item:nth-child(6) { grid-column: 1/7; }
  .gallery-grid .g-item:nth-child(7) { grid-column: 7/13; }
  .form-row { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Phones: reels stack vertically, one centered card per row */
  .reels-track { flex-direction: column; align-items: center; gap: 2rem; }
  .reels-track .reel { flex: 0 0 auto; width: 100%; max-width: 360px; }
}
@media (max-width: 700px) {
  .project-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery-grid .g-item:nth-child(3), .gallery-grid .g-item:nth-child(4), .gallery-grid .g-item:nth-child(5), .gallery-grid .g-item:nth-child(6), .gallery-grid .g-item:nth-child(7) { grid-column: 1/13; }
  .gallery-full-grid, .designs-grid, .project-images-grid { grid-template-columns: 1fr; }
  .footer-links { display: none; }
  .scroll-hint { display: none; }
  .hero-content { padding-bottom: 5rem; } /* clears the 44px slide dots */
  .contact-detail-item a { display: flex; width: 100%; }
  /* Legibility floor for the small uppercase labels: nothing under ~11px on phones */
  .project-card-tag, .project-card-cta, .meta-label, .render-badge, .render-tag, .reel figcaption a, .marquee-track span, .form-field label, .contact-detail-item .label, .project-more, nav > .nav-cta, .lightbox-count, .btn-small { font-size: .69rem; }
  .hero-eyebrow { font-size: .72rem; }
  .faq summary { font-size: 1.15rem; padding: 1.1rem 0; }
  /* Lightbox: edge-to-edge image, controls in a bottom row where thumbs are */
  .lightbox { padding: 0; }
  .lightbox-figure { padding-bottom: 4.75rem; }
  .lightbox img { max-width: 100vw; max-height: 70vh; }
  .lightbox figcaption { padding: 0 1rem; flex-direction: column; gap: .35rem; }
  .lightbox-nav { top: auto; bottom: 1.25rem; transform: none; width: 44px; height: 44px; }
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
}
@media (max-width: 360px) {
  .hero-eyebrow { font-size: .69rem; letter-spacing: .16em; }
  nav > .nav-cta { padding: 0 .7rem; font-size: .66rem; letter-spacing: .1em; }
}
/* Landscape phones and other very short viewports */
@media (max-height: 560px) {
  .hero h1 { font-size: clamp(1.9rem, 9vh, 3rem); margin-bottom: 1rem; }
  .hero-eyebrow { margin-bottom: .75rem; }
  .hero-sub { margin-bottom: 1.25rem; }
  .hero-content { padding-top: calc(var(--nav-h) + .5rem); padding-bottom: 4.5rem; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .project-meta { gap: 1.25rem 1rem; }
}
