:root {
  color-scheme: dark;
  --bg: #11110f;
  --panel: #1b1b18;
  --ink: #f2f0e9;
  --muted: #aaa9a2;
  --line: #353530;
  --accent: #e9ac22;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: #111; background: var(--accent); }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  min-height: 88px;
  padding: 1.15rem clamp(1.25rem, 4vw, 5rem);
  border-bottom: 1px solid #d7d2c7;
  background: #eeeae2;
  color: #171713;
}
.wordmark { position: relative; display: block; width: clamp(230px, 30vw, 390px); height: 42px; overflow: hidden; flex-shrink: 0; }
.wordmark img { position: absolute; width: 120%; max-width: none; height: auto; left: -10%; top: 50%; transform: translateY(-50%); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 2.4vw, 2.4rem); margin-left: auto; }
.site-nav a, .header-contact { font-size: .83rem; font-weight: 600; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"], .header-contact:hover { color: #a36e0d; }
.header-contact { color: #a36e0d; border-left: 1px solid #c9c3b7; padding-left: 1.7rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero { padding: clamp(.5rem, 1vw, 1rem) clamp(.5rem, 1vw, 1rem) clamp(1.5rem, 2vw, 2rem); color: #171713; background: #eeeae2; }
.hero-stage { position: relative; overflow: hidden; }
.hero-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #000b, #0006 58%, transparent); }
.hero-heading { position: absolute; z-index: 2; top: 50%; left: clamp(1.5rem, 5vw, 6rem); width: min(850px, 67vw); transform: translateY(-50%); color: #fff; pointer-events: none; text-shadow: 0 2px 28px #0009; }
.eyebrow { display: block; text-transform: uppercase; font-size: .72rem; font-weight: 750; letter-spacing: .17em; color: var(--accent); }
.hero h1 { font-size: clamp(3.6rem, 7.5vw, 8rem); line-height: .93; letter-spacing: -.075em; word-spacing: .08em; font-weight: 620; margin: 1rem 0 1.2rem; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; }
.hero-heading p { font-size: clamp(1rem, 1.4vw, 1.25rem); margin: 0; }
.hero-controls { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; padding: 1rem clamp(.75rem, 2vw, 2rem) 0; }
.hero-controls span { color: #666259; font-size: .85rem; margin-right: .5rem; }
.hero-scroll { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid #99958c; border-radius: 50%; color: #171713; background: none; cursor: pointer; font-size: 1.25rem; }
.hero-scroll:hover { color: #111; background: var(--accent); border-color: var(--accent); }
.hero-scroll:disabled { color: #aaa69e; border-color: #c9c5bd; cursor: default; background: none; }
.hero-carousel { display: flex; gap: clamp(.3rem, .6vw, .6rem); width: 100%; height: min(74vh, 760px); min-height: 530px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-carousel::-webkit-scrollbar { display: none; }
.hero-frame { position: relative; display: block; flex: 0 0 clamp(330px, 37vw, 650px); height: 100%; overflow: hidden; scroll-snap-align: start; padding: 0; border: 0; background: #d3d0c9; cursor: zoom-in; }
.hero-frame.portrait { flex-basis: clamp(270px, 28vw, 470px); }
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-frame-caption { position: absolute; z-index: 1; left: clamp(1rem, 2vw, 2rem); right: 1rem; bottom: clamp(1rem, 2vw, 2rem); width: fit-content; max-width: calc(100% - 2rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; background: #111a; padding: .55rem .75rem; font-size: clamp(.7rem, .85vw, .85rem); font-weight: 700; letter-spacing: .07em; text-align: left; text-shadow: 0 1px 2px #0009; }
.category-section { padding: 0 clamp(1.25rem, 4vw, 5rem) clamp(4rem, 9vw, 9rem); scroll-margin-top: 2rem; }
.section-heading { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; }
.section-index { font-size: .8rem; font-weight: 700; color: var(--accent); }
.section-heading h2 { font-size: clamp(2.25rem, 4.4vw, 5rem); letter-spacing: -.065em; font-weight: 550; line-height: 1; margin: 0; }
.section-count { margin-left: auto; color: var(--muted); font-size: .85rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.8vw, 3.5rem); }
.project-card { position: relative; display: block; overflow: hidden; background: var(--panel); aspect-ratio: 3/2; }
.project-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .4s; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); pointer-events: none; }
.project-card:hover img { transform: scale(1.045); filter: brightness(1.07); }
.project-card-label, .project-card-title { position: absolute; z-index: 1; left: 1.3rem; right: 1.3rem; }
.project-card-label { bottom: 3.1rem; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }
.project-card-title { bottom: 1rem; font-size: clamp(1.1rem, 1.6vw, 1.7rem); line-height: 1.12; font-weight: 570; letter-spacing: -.035em; }

.focopanda-section { display: grid; grid-template-columns: 42% 58%; align-items: stretch; margin: 0 clamp(1.25rem, 4vw, 5rem) clamp(4rem, 9vw, 9rem); min-height: 540px; background: #292923; overflow: hidden; }
.focopanda-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 6rem); }
.focopanda-copy h2 { font-size: clamp(3rem, 6vw, 7rem); letter-spacing: -.09em; font-weight: 780; line-height: .95; margin: 1.2rem 0; }
.focopanda-copy p { font-size: clamp(1rem, 1.6vw, 1.25rem); color: #d4d3c7; margin: 0 0 2.7rem; }
.focopanda-copy a { color: #111; background: var(--accent); padding: .9rem 1.3rem; font-weight: 750; font-size: .86rem; }
.focopanda-copy a:hover { background: #fff; }
.focopanda-visual { position: relative; min-height: 540px; overflow: hidden; background: #242720; }
.focopanda-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .85s ease; }
.focopanda-image.is-active { opacity: 1; }
.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: clamp(3rem, 8vw, 8rem) clamp(1.25rem, 4vw, 5rem); border-top: 1px solid var(--line); }
.contact-section h2 { font-size: clamp(3rem, 7vw, 8rem); font-weight: 540; letter-spacing: -.075em; line-height: 1; margin: 1.3rem 0 2rem; }
.contact-bio { max-width: 680px; margin-bottom: 2rem; color: #c9c8c0; font-size: 1rem; line-height: 1.65; }
.contact-bio p { margin: 0 0 1rem; }
.budget-link { display: table; margin: 0 0 1.7rem; padding: .9rem 1.3rem; color: #111; background: var(--accent); font-size: .9rem; font-weight: 750; }
.budget-link:hover { background: #fff; }
.contact-email { display: inline-block; font-size: clamp(1.15rem, 2.6vw, 2.7rem); letter-spacing: -.04em; border-bottom: 1px solid var(--accent); padding-bottom: .4rem; }
.contact-email:hover { color: var(--accent); }
.social-links { display: flex; gap: 2rem; margin-top: 2.2rem; }
.social-links a { color: var(--muted); font-size: .9rem; }
.social-links a:hover { color: var(--accent); }
.contact-portrait { display: block; width: 100%; height: clamp(420px, 45vw, 650px); object-fit: cover; object-position: 43% center; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-top: 1px solid var(--line); padding: 1.7rem clamp(1.25rem, 4vw, 5rem); font-size: .75rem; }
.site-footer a:hover { color: var(--accent); }

.gallery-main { padding: 0 clamp(1.25rem, 4vw, 5rem) 7rem; }
.gallery-intro { padding: 2rem 0 2.8rem; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; color: var(--muted); font-size: .8rem; margin-bottom: clamp(2.5rem, 6vw, 6rem); }
.back-link:hover { color: var(--ink); }
.gallery-intro h1 { font-size: clamp(3.4rem, 8.5vw, 10rem); font-weight: 540; line-height: .95; letter-spacing: -.075em; max-width: 1100px; margin: .7rem 0 1.3rem; }
.gallery-description { max-width: 770px; margin: 0 0 1.5rem; color: #d0cec5; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.55; }
.gallery-count { color: var(--muted); font-size: .86rem; }
.photo-columns { max-width: 1600px; margin-inline: auto; columns: 2 400px; column-gap: clamp(1.25rem, 3vw, 3.5rem); padding-top: clamp(1.5rem, 4vw, 4rem); }
.gallery-photo { display: block; width: 100%; margin: 0 0 clamp(1.25rem, 3vw, 3.5rem); padding: 0; border: 0; background: var(--panel); cursor: zoom-in; break-inside: avoid; }
.gallery-photo img { display: block; width: 100%; height: auto; transition: filter .2s; }
.gallery-photo:hover img { filter: brightness(1.13); }

.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9,9,8,.98); color: white; }
.lightbox::backdrop { background: #090908; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { display: block; max-width: calc(100vw - 8rem); max-height: calc(100dvh - 5rem); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; color: white; background: rgba(255,255,255,.1); cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.23); }
.lightbox-close { top: 1rem; right: 1rem; width: 2.7rem; height: 2.7rem; font-size: 1.8rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 3rem; height: 4rem; font-size: 2rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter { position: absolute; bottom: .9rem; color: #aaa; font-size: .75rem; letter-spacing: .1em; }

@media (max-width: 900px) {
  .site-header { gap: 1rem; flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding-top: .4rem; }
  .header-contact { margin-left: auto; }
  .focopanda-section { grid-template-columns: 1fr 1fr; min-height: 420px; }
  .focopanda-visual { min-height: 420px; }
  .contact-section { grid-template-columns: minmax(0, 1fr) minmax(280px, 42%); gap: 2rem; }
}
@media (max-width: 600px) {
  .site-header { min-height: 0; padding: 1rem 1.2rem .8rem; }
  .wordmark { width: 245px; height: 27px; }
  .site-nav { gap: 1.35rem; padding-bottom: .35rem; }
  .site-nav a, .header-contact { font-size: .76rem; }
  .header-contact { border: 0; padding: 0; }
  .hero { padding: .35rem .35rem 1rem; }
  .hero-stage::after { background: linear-gradient(180deg, #0009, #0004 58%, transparent); }
  .hero-heading { top: 22%; left: 1.3rem; right: 1.3rem; width: auto; transform: none; }
  .hero h1 { font-size: clamp(3.5rem, 13vw, 5.8rem); margin: 1rem 0; }
  .hero-heading p { font-size: .95rem; }
  .hero-controls { justify-content: flex-end; padding: .8rem .7rem 0; }
  .hero-controls span { margin-right: auto; font-size: .72rem; }
  .hero-scroll { width: 2.5rem; height: 2.5rem; }
  .hero-carousel { height: min(75vh, 620px); min-height: 510px; }
  .hero-frame { flex-basis: 80vw; }
  .hero-frame.portrait { flex-basis: 70vw; }
  .section-heading { padding-bottom: 1.6rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .project-card { aspect-ratio: 4/3; }
  .project-card-label, .project-card-title { left: 1.2rem; right: 1.2rem; }
  .project-card-label { font-size: .68rem; bottom: 3.2rem; }
  .project-card-title { font-size: 1.35rem; bottom: 1rem; }
  .focopanda-section { display: flex; flex-direction: column-reverse; margin-left: 0; margin-right: 0; min-height: 0; }
  .focopanda-visual { width: 100%; min-height: 360px; }
  .focopanda-copy { padding: 2.5rem 1.3rem 3rem; }
  .focopanda-copy p { margin-bottom: 1.5rem; }
  .contact-section { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 2rem; }
  .contact-portrait { height: 360px; }
  .contact-section h2 { margin-top: .8rem; }
  .gallery-main { padding-bottom: 3rem; }
  .gallery-intro h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .photo-columns { columns: 1; }
  .lightbox img { max-width: 100vw; max-height: calc(100dvh - 6rem); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: .4rem; transform: none; width: 2.8rem; height: 2.8rem; }
  .lightbox-counter { bottom: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card img, .gallery-photo img, .focopanda-image { transition: none; }
}
