/* ============================================
   Sunlight Manual Carpentry — Mobile-first
   Multi-page site with video reels
============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #EFEBE4;
  --bg-deep: #E8E3DA;
  --bg-card: #F4F1EB;
  --bg-dark: #1F1C18;
  --ink: #2A2A2A;
  --ink-soft: #6B6B6B;
  --ink-light: #ADA89E;
  --accent: #E5712D;
  --accent-deep: #B45617;
  --accent-soft: #F2A26B;
  --rule: #D6CFC2;
  --shadow: 0 8px 30px rgba(42,42,42,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
video { display: block; }

.wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap, .wrap-narrow { padding: 0 32px; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }

/* ============ NAV ============ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(239, 235, 228, 0);
  z-index: 100; padding: 14px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
nav.top.scrolled, nav.top.fixed-light {
  background: rgba(239, 235, 228, 0.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 2px 18px rgba(0,0,0,0.04);
}
nav.top .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
nav.top img.logo { height: 36px; transition: height 0.3s; }
nav.top .links { display: none; gap: 30px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
nav.top .cta {
  display: none;
  background: var(--accent); color: #fff;
  padding: 10px 18px; font-weight: 600; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; border-radius: 2px;
  transition: all 0.2s;
}
.menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 22px; color: var(--ink);
  z-index: 102;
}
nav.top.menu-open .menu-btn { color: #fff; }

/* Mobile fullscreen menu */
nav.top.menu-open { background: var(--bg-dark); }
nav.top.menu-open img.logo { filter: brightness(0) invert(1); }
nav.top.menu-open ~ .menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-dark);
  z-index: 99; padding: 110px 24px 40px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.menu-overlay { display: none; }
nav.top.menu-open ~ .menu-overlay { display: flex; }
.menu-overlay a {
  font-family: var(--serif);
  font-size: 38px; font-weight: 500;
  color: #fff; padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -1px;
}
.menu-overlay a.active { color: var(--accent-soft); font-style: italic; }
.menu-overlay .meta {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.menu-overlay .meta a {
  font-family: var(--sans); font-size: 14px;
  font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 0;
  color: rgba(255,255,255,0.7);
  border: none;
}
.menu-overlay .meta a:hover { color: var(--accent-soft); }

@media (min-width: 940px) {
  nav.top { padding: 22px 0; }
  nav.top.scrolled { padding: 14px 0; }
  nav.top img.logo { height: 42px; }
  nav.top.scrolled img.logo { height: 34px; }
  nav.top .links { display: flex; }
  nav.top .cta { display: inline-block; padding: 10px 22px; font-size: 12px; }
  .menu-btn { display: none; }
  nav.top .links a { position: relative; padding: 6px 0; transition: color 0.2s; }
  nav.top .links a:hover { color: var(--accent); }
  nav.top .links a.active { color: var(--accent); }
  nav.top .links a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    height: 1.5px; width: 0; background: var(--accent);
    transition: width 0.25s var(--ease);
  }
  nav.top .links a:hover::after, nav.top .links a.active::after { width: 100%; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  font-weight: 600; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:active { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 14px 26px; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border: 1.5px solid #fff; padding: 14px 26px; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* === HERO === */
.hero-full {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-full .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.5);
  transform: scale(1.05);
  transition: transform 7s ease-out;
}
.hero-full.loaded .bg { transform: scale(1); }
.hero-full .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.3) 0%, rgba(20,18,16,0.65) 100%);
}
.hero-full .content { position: relative; z-index: 2; color: #fff; max-width: 720px; padding-bottom: 60px; padding-top: 30px; }
.hero-full .eyebrow {
  color: var(--accent-soft);
  letter-spacing: 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero-full h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 12vw, 96px);
  font-weight: 500; line-height: 0.98;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: #fff;
}
.hero-full h1 .ac { color: var(--accent-soft); font-style: italic; font-weight: 600; }
.hero-full p.lead {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4.5vw, 24px);
  color: rgba(255,255,255,0.88);
  max-width: 540px; margin-bottom: 32px; line-height: 1.4;
}
.hero-full .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,0.7);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: cuepulse 2.2s infinite;
  z-index: 2;
}
.scroll-cue::after { content: ""; width: 1px; height: 30px; background: rgba(255,255,255,0.5); }
@keyframes cuepulse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* === INTRO STATEMENT === */
section.intro { padding: 70px 0 60px; }
@media (min-width: 768px) { section.intro { padding: 110px 0 90px; } }
.intro-block { max-width: 880px; }
.intro-block h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 56px);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.intro-block h2 .ac { color: var(--accent); font-style: italic; font-weight: 600; }
.intro-block p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 620px; }
.intro-block p + p { margin-top: 14px; }

/* === SECTION HEADERS === */
.sec-head {
  margin-bottom: 36px;
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 18px;
}
@media (min-width: 768px) { .sec-head { margin-bottom: 50px; } }
.sec-head .lhs { max-width: 700px; }
.sec-head .label {
  color: var(--accent);
  letter-spacing: 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -1px;
}
.sec-head h2 .ac { color: var(--accent); font-style: italic; }
.sec-head .link {
  font-size: 11px; letter-spacing: 1.5px;
  font-weight: 700; text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px; transition: all 0.2s;
}
.sec-head .link:hover { color: var(--accent); border-color: var(--accent); }

/* === REELS (Instagram-style vertical videos) === */
section.reels { padding: 60px 0; background: var(--bg-card); }
@media (min-width: 768px) { section.reels { padding: 100px 0; } }

.reels-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 20px 24px;
  margin: 0 -20px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 600px) { .reels-track { grid-auto-columns: 50%; } }
@media (min-width: 900px) { .reels-track { grid-auto-columns: calc((100% - 28px) / 3); padding: 4px 0 24px; margin: 0; } }
@media (min-width: 1200px) { .reels-track { grid-auto-columns: calc((100% - 42px) / 4); } }
.reels-track::-webkit-scrollbar { height: 3px; }
.reels-track::-webkit-scrollbar-thumb { background: var(--accent); }

.reel {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
  border-radius: 8px;
}
.reel video, .reel .poster {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.reel .poster { z-index: 1; transition: opacity 0.3s; }
.reel.playing .poster { opacity: 0; pointer-events: none; }
.reel video { z-index: 2; opacity: 0; transition: opacity 0.3s; }
.reel.playing video { opacity: 1; }
.reel .play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0.92; transition: opacity 0.2s;
  pointer-events: none;
}
.reel .play-icon::before {
  content: "";
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 50%;
}
.reel .play-icon::after {
  content: "";
  position: absolute;
  width: 0; height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 5px;
}
.reel.playing .play-icon { opacity: 0; }
.reel .reel-meta {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  z-index: 4; color: #fff;
}
.reel .reel-meta .tag { color: var(--accent-soft); letter-spacing: 2px; font-size: 9px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.reel .reel-meta h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.reel .reel-meta .loc { font-family: var(--serif); font-style: italic; font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.reel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
  z-index: 3; pointer-events: none;
}
.reel .audio-btn {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  color: #fff; font-size: 16px;
  opacity: 0; transition: opacity 0.2s;
}
.reel.playing .audio-btn { opacity: 1; }

/* === PROJECT SLIDER (horizontal) === */
section.projects-slider { padding: 60px 0 70px; }
@media (min-width: 768px) { section.projects-slider { padding: 80px 0 100px; } }
.slider-frame { position: relative; }
.slider-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 20px;
  margin: 0 -20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
@media (min-width: 600px) { .slider-track { grid-auto-columns: 55%; } }
@media (min-width: 900px) { .slider-track { grid-auto-columns: calc((100% - 60px) / 3); gap: 30px; padding: 0 0 24px; margin: 0; } }
.slider-track::-webkit-scrollbar { height: 3px; }
.slider-track::-webkit-scrollbar-thumb { background: var(--accent); }
.slide {
  scroll-snap-align: start;
  position: relative;
  display: block;
  text-decoration: none;
}
.slide .img-wrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  background: var(--bg-deep);
}
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.slide:hover img { transform: scale(1.04); }
.slide .img-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.65) 100%);
}
.slide .meta {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  color: #fff; z-index: 2;
}
.slide .num {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 3px; font-weight: 600;
  color: var(--accent-soft); margin-bottom: 6px;
}
.slide h3 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 600; line-height: 1.1;
}
@media (min-width: 768px) { .slide h3 { font-size: 26px; } }
.slide .loc {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 2px;
}
.slider-nav { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.slider-nav button {
  width: 44px; height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 16px; color: var(--ink);
  transition: all 0.2s;
}
.slider-nav button:hover { background: var(--ink); color: var(--bg); }
.slider-counter {
  font-family: var(--serif);
  font-size: 16px; color: var(--ink-soft);
  margin-left: 8px;
}
.slider-counter .cur { color: var(--accent); font-weight: 700; }

/* === CASE STUDIES === */
section.cases { background: var(--bg-card); padding: 60px 0; }
@media (min-width: 768px) { section.cases { padding: 110px 0; } }
.cases-list { display: flex; flex-direction: column; }
.case-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px; align-items: flex-start;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  transition: padding 0.3s, background 0.3s;
}
.case-row:last-child { border-bottom: 1px solid var(--rule); }
.case-row .cat {
  color: var(--accent);
  font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 700;
}
.case-row h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600; line-height: 1.1;
}
.case-row .desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.case-row .go {
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s;
  margin-top: 4px;
}
.case-row:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (min-width: 768px) {
  .case-row {
    grid-template-columns: 1.4fr 0.6fr 2fr 80px;
    gap: 30px; align-items: center;
    padding: 30px 0;
  }
  .case-row:hover { background: rgba(229,113,45,0.04); padding-left: 12px; padding-right: 12px; }
}

/* === STATS BAR === */
section.stats-bar { background: var(--bg-dark); color: #fff; padding: 56px 0; }
@media (min-width: 768px) { section.stats-bar { padding: 80px 0; } }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 40px; } }
.stats-grid .stat-item {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}
.stats-grid .n {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 60px);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
}
.stats-grid .l {
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-top: 8px;
}

/* === CTA BAND === */
section.cta-band {
  position: relative;
  padding: 80px 0;
  background: var(--bg-dark);
  color: #fff;
  overflow: hidden;
}
@media (min-width: 768px) { section.cta-band { padding: 140px 0; } }
.cta-band .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
}
.cta-band .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,18,16,0.7), rgba(20,18,16,0.4));
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 8vw, 76px);
  font-weight: 500; line-height: 1;
  letter-spacing: -1px; margin-bottom: 18px; color: #fff;
}
.cta-band h2 .ac { color: var(--accent-soft); font-style: italic; }
.cta-band p { font-family: var(--serif); font-style: italic; font-size: 17px; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 30px; }
@media (min-width: 768px) { .cta-band p { font-size: 19px; margin-bottom: 36px; } }

/* === FOOTER === */
footer.site {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 600px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 50px; } }
.foot-grid h4 {
  color: #fff; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 14px;
}
.foot-grid p, .foot-grid a { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,0.7); display: block; }
.foot-grid a:hover { color: var(--accent-soft); }
.foot-brand img { height: 38px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.foot-brand .tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(255,255,255,0.7); max-width: 320px; line-height: 1.5; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: rgba(255,255,255,0.5);
}
.foot-bottom .social { display: flex; gap: 16px; }
.foot-bottom .social a { color: rgba(255,255,255,0.6); transition: color 0.2s; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
.foot-bottom .social a:hover { color: var(--accent-soft); }

/* === PAGE HEADER (inner pages) === */
.page-hero {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  position: relative;
  background: var(--bg-card);
}
@media (min-width: 768px) { .page-hero { padding: 180px 0 80px; } }
.page-hero .label { color: var(--accent); letter-spacing: 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 92px);
  font-weight: 500; line-height: 1;
  letter-spacing: -1.5px;
}
.page-hero h1 .ac { color: var(--accent); font-style: italic; font-weight: 600; }
.page-hero .lead {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4.5vw, 22px);
  color: var(--ink-soft);
  margin-top: 18px; max-width: 600px; line-height: 1.4;
}

/* === COMPANY PAGE === */
section.company-about { padding: 60px 0; }
@media (min-width: 768px) { section.company-about { padding: 100px 0; } }
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 50px;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.about-grid h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 6.5vw, 50px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -1px; margin-bottom: 22px;
}
.about-grid h2 .ac { color: var(--accent); font-style: italic; }
.about-grid p { font-size: 16px; line-height: 1.75; color: var(--ink); margin-bottom: 16px; }
.about-grid strong { color: var(--accent); }
.about-grid .photo { position: relative; aspect-ratio: 4/5; }
.about-grid .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-grid .photo::before, .about-grid .photo::after {
  content: ""; position: absolute; width: 60px; height: 60px;
  border: 3px solid var(--accent);
}
@media (min-width: 768px) {
  .about-grid .photo::before, .about-grid .photo::after { width: 80px; height: 80px; border-width: 4px; }
}
.about-grid .photo::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.about-grid .photo::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* === PHILOSOPHY === */
section.philosophy { background: var(--bg-card); padding: 60px 0; }
@media (min-width: 768px) { section.philosophy { padding: 110px 0; } }
.philo-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 768px) { .philo-grid { grid-template-columns: repeat(3, 1fr); gap: 60px; } }
.philo-item .ico {
  width: 70px; height: 70px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px;
  color: var(--accent); font-weight: 700;
  margin-bottom: 20px;
}
.philo-item h3 {
  font-family: var(--serif); font-size: 26px;
  font-weight: 600; color: var(--accent);
  margin-bottom: 12px;
}
.philo-item p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* === SERVICES === */
section.services { padding: 60px 0; }
@media (min-width: 768px) { section.services { padding: 110px 0; } }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 600px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.svc-item .img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 18px;
}
.svc-item .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-item:hover .img img { transform: scale(1.05); }
.svc-item h3 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 600; color: var(--accent);
  margin-bottom: 8px;
}
.svc-item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* === PROCESS === */
section.process { background: var(--bg-card); padding: 60px 0; }
@media (min-width: 768px) { section.process { padding: 110px 0; } }
.steps { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step .num {
  font-family: var(--serif); font-size: 64px;
  color: var(--accent); font-weight: 600;
  line-height: 1; margin-bottom: 8px;
  opacity: 0.85;
}
.step .ttl {
  font-family: var(--serif); font-size: 26px;
  color: var(--ink); font-weight: 600;
  line-height: 1.1; margin-bottom: 14px;
}
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* === PROJECTS GRID PAGE === */
section.projects-grid-wrap { padding: 40px 0 70px; }
@media (min-width: 768px) { section.projects-grid-wrap { padding: 60px 0 100px; } }
.filter-bar {
  display: flex; gap: 6px; justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 -20px 30px;
  padding: 0 20px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filter-bar { gap: 8px; justify-content: center; flex-wrap: wrap; overflow: visible; margin: 0 0 50px; padding: 0; } }
.filter-bar .f {
  padding: 10px 18px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 1.5px; font-weight: 600;
  text-transform: uppercase;
  color: var(--ink); transition: all 0.25s var(--ease);
  background: transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-bar .f:hover { border-color: var(--accent); color: var(--accent); }
.filter-bar .f.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.projects-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 600px) { .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1000px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; } }


.project-tile {
  position: relative; overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}
.project-tile.hidden { display: none; }
.project-tile .img {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  background: var(--bg-deep);
}
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-tile:hover img { transform: scale(1.04); }
.project-tile .video-icon {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(229,113,45,0.95);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.project-tile .video-icon::after {
  content: ""; width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  margin-left: 2px;
}
.project-tile .tag {
  color: var(--accent);
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 4px;
}
.project-tile h3 {
  font-family: var(--serif); font-size: 24px;
  font-weight: 600; line-height: 1.1;
  margin-bottom: 4px;
}
.project-tile .loc {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: 14px;
}

/* === PROJECT DETAIL PAGE === */
.proj-hero {
  position: relative; height: 78vh; min-height: 540px;
  overflow: hidden;
}
@media (min-width: 768px) { .proj-hero { height: 88vh; min-height: 600px; } }
.proj-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.proj-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.5) 0%, rgba(20,18,16,0.2) 40%, rgba(20,18,16,0.88) 100%);
}
.proj-hero .content {
  position: absolute; bottom: 50px; left: 0; right: 0;
  color: #fff; z-index: 2;
}
@media (min-width: 768px) { .proj-hero .content { bottom: 70px; } }
.proj-hero .tag {
  color: var(--accent-soft);
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 12px;
}
.proj-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 12vw, 96px);
  font-weight: 500; line-height: 1;
  letter-spacing: -1.5px; margin-bottom: 10px; color: #fff;
}
.proj-hero .loc {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 4vw, 22px);
  color: rgba(255,255,255,0.88);
}
.proj-meta { padding: 50px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .proj-meta { padding: 70px 0 50px; } }
.proj-meta-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 768px) { .proj-meta-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; align-items: start; } }
.proj-meta-grid p { font-size: 16px; line-height: 1.7; color: var(--ink); }
@media (min-width: 768px) { .proj-meta-grid p { font-size: 17px; } }
.proj-meta-grid .row .k {
  color: var(--accent); font-size: 9px;
  letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px; display: block;
}
.proj-meta-grid .row .v { font-size: 14px; color: var(--ink); }

section.proj-reels { padding: 60px 0; }
@media (min-width: 768px) { section.proj-reels { padding: 90px 0; } }
.proj-reels-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .proj-reels-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .proj-reels-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.proj-reels-grid .reel { aspect-ratio: 9/16; max-width: 380px; margin: 0 auto; width: 100%; }

section.proj-gallery { padding: 30px 0 70px; }
@media (min-width: 768px) { section.proj-gallery { padding: 50px 0 100px; } }
.gallery-stack { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .gallery-stack { grid-template-columns: 1fr 1fr; gap: 20px; } }
.gallery-stack .item { overflow: hidden; }
.gallery-stack .item.full { aspect-ratio: 16/9; }
.gallery-stack .item.half { aspect-ratio: 4/3; }
@media (min-width: 700px) {
  .gallery-stack .item.full { grid-column: span 2; }
  .gallery-stack .item.tall { grid-column: span 1; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
}
.gallery-stack .item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.7s var(--ease); }
.gallery-stack .item:hover img { transform: scale(1.03); }

.proj-nav { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 40px 0 30px; border-top: 1px solid var(--rule); }
@media (min-width: 700px) { .proj-nav { grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; padding: 50px 0 40px; } }
.proj-nav a { font-size: 11px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); transition: color 0.2s; display: flex; align-items: center; gap: 10px; }
.proj-nav a:hover { color: var(--accent); }
.proj-nav a.next { justify-content: flex-end; text-align: right; }
.proj-nav .label { font-family: var(--serif); font-style: italic; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.proj-nav strong { display: block; font-size: 14px; }

/* CONTACT */
section.contact-main { padding: 40px 0 80px; }
@media (min-width: 768px) { section.contact-main { padding: 60px 0 120px; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.contact-info-card h2 { font-family: var(--serif); font-size: clamp(28px, 6.5vw, 50px); font-weight: 500; line-height: 1.05; letter-spacing: -1px; margin-bottom: 22px; }
.contact-info-card h2 .ac { color: var(--accent); font-style: italic; }
.contact-info-card p.lead { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; line-height: 1.4; }
.contact-blocks { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 30px; }
.contact-block .k { color: var(--accent); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.contact-block .v { font-size: 16px; }
.contact-block .v a:hover { color: var(--accent); }
.contact-photo { aspect-ratio: 4/5; position: relative; overflow: hidden; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-photo::before, .contact-photo::after { content: ""; position: absolute; width: 60px; height: 60px; border: 3px solid var(--accent); z-index: 2; }
@media (min-width: 768px) { .contact-photo::before, .contact-photo::after { width: 80px; height: 80px; border-width: 4px; } }
.contact-photo::before { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.contact-photo::after { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.zoom { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1100; display: none; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.zoom.open { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (hover: none) and (pointer: coarse) {
  .reel .audio-btn { opacity: 1; }
  .case-row:hover { padding-left: 0; padding-right: 0; }
  .project-tile:hover img { transform: none; }
  .slide:hover img { transform: none; }
}
