/* Design tokens taken from the Figma mockup (elaginadary-ugc) */
:root {
  --brown: #563323;
  --brown-nav: #502615;
  --cream: #fff9d5;
  --light: #faf9f5;
  --card: #f5f2ec;
  --ink: #000;
  --paper: #f8f5ef;
  --radius: clamp(8px, 0.7vw, 12px);
  --gutter: clamp(16px, 3.4vw, 56px);
  --maxw: 1520px;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper) url("/assets/img/paper.jpg") repeat;
  background-size: 1100px auto;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #c79a5d; outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip-link:focus { left: 8px; }

.script { font-family: var(--script); font-weight: 400; line-height: 1.1; }
.section-title { font-size: clamp(3.4rem, 5.6vw, 5.4rem); text-align: center; }

/* ---------- nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 100; padding: clamp(10px, 1.3vw, 19px) var(--gutter) 0; }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: clamp(58px, 5.1vw, 74px);
  padding: 0 clamp(18px, 3.2vw, 46px);
  background: var(--brown-nav); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(80, 38, 21, 0.18);
}
.logo { font-family: var(--script); font-size: clamp(2rem, 3.3vw, 3rem); color: var(--cream); text-decoration: none; line-height: 1; padding: 6px 0 4px; white-space: nowrap; }
.nav-links { display: flex; gap: clamp(28px, 5vw, 72px); }
.nav-links a { text-decoration: none; text-transform: uppercase; font-size: clamp(1rem, 1.38vw, 1.25rem); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--cream); transition: right 0.3s var(--ease); }
.nav-links a:hover::after { right: 0; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform 0.3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--brown);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mobile-menu a { color: var(--cream); text-decoration: none; text-transform: uppercase; font-size: 1.3rem; letter-spacing: 0.06em; }

/* ---------- hero / about ---------- */
.hero {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(20px, 2.1vw, 30px) var(--gutter) clamp(48px, 4vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4.8vw, 72px); align-items: center;
}
.hero-photo { aspect-ratio: 3581 / 3238; border-radius: var(--radius); overflow: hidden; background: #d9cfc2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 1.2s var(--ease) both; }
.hero-heading { font-size: clamp(3.6rem, 5.6vw, 5.6rem); color: var(--ink); margin-bottom: clamp(14px, 1.6vw, 24px); animation: fadeUp 1s var(--ease) 0.15s both; }
.bullets { list-style: none; display: grid; gap: 1.25em; font-size: clamp(0.95rem, 1.12vw, 1.08rem); line-height: 1.22; max-width: 560px; animation: fadeUp 1s var(--ease) 0.3s both; }
.bullets li { display: grid; grid-template-columns: 16px 1fr; }
.bullets li::before { content: "•"; font-size: 0.8em; line-height: 1.5; }

.pills { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.7vw, 24px); margin-top: clamp(28px, 2.8vw, 40px); }
.hero .pills { animation: fadeUp 1s var(--ease) 0.45s both; }
.pill {
  display: inline-flex; align-items: center; gap: clamp(10px, 0.9vw, 14px);
  min-height: clamp(56px, 4.9vw, 70px);
  padding: 0 clamp(18px, 1.6vw, 24px) 0 clamp(8px, 0.8vw, 12px);
  border-radius: 999px; text-decoration: none;
  background: var(--brown); color: var(--light);
  font-size: clamp(0.95rem, 1.23vw, 1.12rem);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pill:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(86, 51, 35, 0.22); }
.pill-icon { width: clamp(40px, 3.6vw, 52px); height: clamp(40px, 3.6vw, 52px); border-radius: 50%; background: var(--light); display: grid; place-items: center; flex: 0 0 auto; }
.pill-icon svg { width: 42%; height: 42%; fill: none; stroke: var(--brown); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill-icon svg .dot { fill: var(--brown); stroke: none; }
.pills.outline .pill { background: #f9f7f3; color: var(--brown); border: 2px solid var(--brown); }
.pills.outline .pill-icon { background: var(--brown); }
.pills.outline .pill-icon svg { stroke: var(--light); }
.pills.outline .pill-icon svg .dot { fill: var(--light); }

/* ---------- brands ---------- */
.brands { padding: clamp(40px, 5vw, 80px) var(--gutter); text-align: center; }
.brands .section-title { color: var(--brown); margin-bottom: 28px; }
.brand-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; max-width: 1000px; margin: 0 auto; }
.brand-list span { padding: 10px 24px; border-radius: 999px; background: var(--brown); color: var(--light); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.04em; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 28px); margin: clamp(10px, 1vw, 16px) auto clamp(30px, 3.2vw, 46px); padding: 0 var(--gutter); }
.filter-btn {
  min-width: clamp(130px, 12vw, 172px); min-height: 42px; padding: 8px 18px;
  border-radius: 999px; border: 0; cursor: pointer;
  text-transform: uppercase; font-size: clamp(0.92rem, 1.38vw, 1.2rem);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s;
}
.dark .filter-btn { background: var(--light); color: var(--brown); opacity: 0.6; }
.photography .filter-btn { background: var(--brown); color: #fff; opacity: 0.6; }
.filter-btn[aria-selected="true"], .filter-btn:hover, .filters.static .filter-btn { opacity: 1 !important; }
.filters.static .filter-btn { cursor: default; }

/* ---------- portfolio ---------- */
.dark { background: var(--brown); color: var(--cream); }
.portfolio { padding: clamp(44px, 4.6vw, 70px) 0 clamp(56px, 5.6vw, 84px); }
.portfolio .section-title { color: var(--cream); }
.video-grid {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 4.2vw, 60px);
}
.v-card { min-width: 0; }
.v-frame {
  position: relative; aspect-ratio: 1450 / 2536; border-radius: var(--radius); overflow: hidden;
  background: var(--card); cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.v-frame:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28); }
.v-frame video { width: 100%; height: 100%; object-fit: cover; }
.v-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(54px, 4.9vw, 70px); height: clamp(54px, 4.9vw, 70px);
  border-radius: 50%; border: 0; cursor: pointer; background: var(--brown);
  display: grid; place-items: center; box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.28);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.v-play svg { width: 36%; height: 36%; fill: var(--cream); margin-left: 6%; }
.v-frame.playing .v-play { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
.v-frame.playing:hover .v-play { opacity: 0.9; }
.v-frame.playing .v-play svg { margin-left: 0; }
.v-info { padding: 12px 2px 0; color: var(--cream); }
.v-title { font-size: 1rem; font-weight: 400; }
.v-brand { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.v-card.placeholder .v-frame { cursor: default; display: grid; place-items: center; }
.v-card.placeholder .v-frame:hover { transform: none; box-shadow: none; }
.placeholder-mark { font-family: var(--script); color: var(--brown); font-size: clamp(2rem, 2.6vw, 2.6rem); opacity: 0.45; }
.empty-note { text-align: center; margin-top: 26px; padding: 0 var(--gutter); opacity: 0.8; }

/* ---------- photography ---------- */
.photography { padding: clamp(44px, 4.6vw, 70px) 0 clamp(56px, 5.6vw, 84px); }
.photography .section-title { color: var(--brown); margin-bottom: 86px; }
@media (max-width: 900px) { .photography .section-title { margin-bottom: 56px; } }
.photography .empty-note { color: var(--brown); }
.photo-grid {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2.5vw, 36px);
}
.photo-tile {
  display: block; width: 100%; aspect-ratio: 1199 / 1396; border: 0; padding: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--brown); cursor: zoom-in;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-tile:hover img { transform: scale(1.04); }
.photo-tile.placeholder { cursor: default; display: grid; place-items: center; }
.photo-tile.placeholder span { font-family: var(--script); color: var(--cream); font-size: clamp(1.6rem, 2.2vw, 2.2rem); opacity: 0.5; }

/* ---------- contact ---------- */
.contact { padding: clamp(40px, 7.5vw, 110px) var(--gutter) 0; }
.contact-card {
  max-width: 1060px; margin: 0 auto;
  background: var(--paper) url("/assets/img/paper.jpg") repeat; background-size: 1100px auto;
  border-radius: var(--radius); color: var(--brown);
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(28px, 3.3vw, 48px) clamp(24px, 4.4vw, 62px) clamp(28px, 3.3vw, 48px) clamp(24px, 3.5vw, 50px);
}
.contact-title { font-size: clamp(3.4rem, 5.6vw, 5.4rem); margin-bottom: 4px; }
.contact-heading { font-size: clamp(1.9rem, 2.8vw, 2.6rem); line-height: 1.07; letter-spacing: -0.04em; max-width: 10em; }
.contact-photo { aspect-ratio: 1786 / 2400; border-radius: var(--radius); overflow: hidden; background: #d9cfc2; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-card.no-photo { grid-template-columns: 1fr; text-align: center; }
.contact-card.no-photo .contact-heading { margin: 0 auto; }
.contact-card.no-photo .pills { justify-content: center; }

.footer { display: flex; justify-content: center; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: clamp(36px, 5vw, 70px) 0 28px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cream); opacity: 0.85; }
.footer-name { font-size: 1.9rem; text-transform: none; letter-spacing: 0; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(40, 22, 14, 0.94); display: grid; place-items: center; padding: 30px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 88vh; border-radius: 10px; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 20px; font-size: 2.6rem; line-height: 1; background: none; border: 0; color: var(--cream); cursor: pointer; width: 48px; height: 48px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 249, 213, 0.14); cursor: pointer; display: grid; place-items: center; }
.lb-nav svg { width: 24px; height: 24px; fill: none; stroke: var(--cream); stroke-width: 1.6; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-photo { max-width: 420px; width: 100%; justify-self: center; }
}
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .pills { flex-direction: column; align-items: flex-start; }
  .filter-btn { min-width: 0; min-height: 38px; padding: 8px 16px; }
  .filters { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 520px) {
  .photo-grid .photo-tile.placeholder:nth-child(n+5) { display: none; }
}

/* Center rows that are not full (e.g. only 1–2 videos uploaded) */
.video-grid, .photo-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.video-grid { --cols: 4; --gap: clamp(16px, 4.2vw, 60px); column-gap: var(--gap); row-gap: var(--gap); }
.photo-grid { --cols: 5; --gap: clamp(12px, 2.5vw, 36px); column-gap: var(--gap); row-gap: var(--gap); }
.video-grid > *, .photo-grid > * { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
@media (max-width: 1100px) { .photo-grid { --cols: 4; } }
@media (max-width: 900px) { .video-grid { --cols: 2; } .photo-grid { --cols: 3; } }
@media (max-width: 520px) { .photo-grid { --cols: 2; } }
