:root {
  --bg: #f3f1ed;
  --paper: #faf9f7;
  --ink: #161616;
  --muted: #6d6b67;
  --line: rgba(22,22,22,.14);
  --dark: #141414;
  --dark-muted: #b9b6b0;
  --max: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.section { padding: 112px 0; }
.section-dark { background: var(--dark); color: #f7f5f0; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.45), transparent); transition: background .25s, color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(18,18,18,.94); box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.06rem; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-size: .78rem; letter-spacing: .16em; font-weight: 700; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.brand, .nav-links a { text-shadow: 0 2px 5px rgba(0,0,0,.95), 0 4px 16px rgba(0,0,0,.8); }
.nav-toggle { display: none; border: 0; background: transparent; color: inherit; width: 42px; height: 42px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: max(92svh, 680px); display: grid; align-items: end; isolation: isolate; overflow: hidden; background: #111; color: #fff; }
.hero-background, .hero-media { position: absolute; inset: 0; }
.hero-background { z-index: 0; background: center / cover no-repeat url("../assets/images/thumbnails/hero/main-background.webp"); }
.hero-media { z-index: 2; }
.hero-media img { height: 100%; object-fit: contain; object-position: center; }
.hero-polaroids { display: none; }
.hero-content { position: relative; z-index: 5; padding-bottom: clamp(76px, 11vw, 150px); max-width: 920px; margin-left: max(24px, calc((100vw - var(--max)) / 2)); }
/* The ellipse reaches full transparency at every edge, avoiding a clipped shadow. */
.hero-content::before { content: ""; position: absolute; z-index: -1; inset: -64px -100px calc(clamp(76px, 11vw, 150px) - 64px) -100px; pointer-events: none; background: radial-gradient(ellipse closest-side at 50% 50%, rgba(0,0,0,.82) 0%, rgba(0,0,0,.68) 45%, rgba(0,0,0,.3) 70%, transparent 100%); }
.eyebrow { margin: 0 0 16px; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #7a7874; }
.hero .eyebrow { color: #fff; }
.hero-content .eyebrow,
.hero-content .lead { text-shadow: 0 2px 5px rgba(0,0,0,.98), 0 5px 20px rgba(0,0,0,1); }
.hero-content h1 { text-shadow: 0 3px 18px rgb(0, 0, 0); }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 7.8vw, 7.4rem); max-width: 950px; }
h2 { font-size: clamp(2.4rem, 5vw, 5rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.hero .lead { max-width: 660px; margin: 26px 0 34px; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { color: #121212; background: #fff; border-color: #fff; }
.hero .button-light { box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.button-light:hover { background: #eceae5; }
.scroll-cue { position: absolute; z-index: 6; right: 40px; bottom: 42px; color: #fff; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-size: 1.3rem; }

.hero.has-polaroids .hero-polaroids { position: absolute; inset: 0; display: block; pointer-events: none; }
/* Polaroids intentionally sit above .hero-media (z-index: 2). */
.hero-polaroids-front { z-index: 4; }
.polaroid { position: absolute; left: var(--x); top: var(--y); width: var(--size); aspect-ratio: .78; object-fit: cover; padding: clamp(6px, .65vw, 11px) clamp(6px, .65vw, 11px) clamp(20px, 2vw, 34px); background: #f7f4ed; box-shadow: 0 20px 38px rgba(0,0,0,.36); transform: translate(-50%, -50%) rotate(var(--rotation)); }

@media (max-aspect-ratio: 3833 / 5668) {
  .hero { min-height: 0; aspect-ratio: 3833 / 5668; }
  .hero-background { display: none; }
  .hero-media img { object-fit: cover; }
  .scroll-cue { display: none; }
}

.section-intro { max-width: 760px; margin-bottom: 56px; }
.section-intro h2 { max-width: 760px; }
.section-intro-light .eyebrow { color: #8e8a83; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.service-image { aspect-ratio: 1 / 1; overflow: hidden; }
.service-image img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.service-card:hover .service-image img { transform: scale(1.035); }
.service-copy { padding: 28px 28px 30px; }
.service-copy p { margin: 14px 0 0; color: var(--muted); }

.gallery { columns: 4 230px; column-gap: 18px; }
.gallery-item { display: inline-block; width: 100%; margin: 0 0 18px; break-inside: avoid; overflow: hidden; border-radius: 10px; background: #222; }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-item img { width: 100%; height: auto; transition: transform .5s ease, opacity .25s; }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-wrap { position: relative; }
.gallery-wrap.is-collapsed { aspect-ratio: 8 / 3; overflow: hidden; }
.gallery-wrap.is-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: min(28vw, 150px); pointer-events: none; background: linear-gradient(transparent, var(--dark)); }
.gallery-wrap.is-collapsed .gallery-item:nth-child(n + 9) { display: none; }
.gallery-toggle { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 22px auto 0; min-height: 46px; padding: 0 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #f7f5f0; background: transparent; font-size: .82rem; font-weight: 750; cursor: pointer; }
.gallery-toggle:hover { background: rgba(255,255,255,.1); }
.gallery-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; transition: transform .2s ease; }
.gallery-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: clamp(48px, 9vw, 120px); align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; background: #ddd; }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { max-width: 820px; margin-bottom: 30px; }
.about-copy p:not(.eyebrow) { max-width: 760px; margin: 0 0 18px; color: #4e4d49; font-size: 1.05rem; }

.contact {
  position: relative;
  isolation: isolate;
  background-color: #161616;
  background-image: linear-gradient(90deg, rgba(12,12,12,.9), rgba(12,12,12,.72)), url("../assets/images/thumbnails/contact/call-me.webp");
  background-position: center;
  background-size: cover;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(12,12,12,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 74%);
  mask-image: linear-gradient(90deg, transparent 34%, #000 74%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: start; }
.contact .eyebrow { color: #8d8983; }
.contact h2 { margin-bottom: 24px; }
.contact-lead { max-width: 620px; color: #c3c0ba; font-size: 1.1rem; }
.contact-details { display: grid; gap: 4px; margin-top: 34px; }
.contact-details a { font-size: clamp(1.25rem, 2.4vw, 2rem); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: .18em; }
.contact-form { display: grid; gap: 18px; padding-top: 6px; }
.contact-form label { display: grid; gap: 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #bdb9b3; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.03); color: #fff; padding: 14px 15px; outline: none; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(255,255,255,.5); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #706d68; }
.contact-form button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { min-height: 1.5em; margin: 0; color: #bfbcb7; font-size: .9rem; }

.site-footer { background: #0e0e0e; color: #8c8983; padding: 28px 0; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }

.image-frame { background: #ddd; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.92); opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1500px, 94vw); max-height: 90vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; top: 18px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 900px) {
  .service-grid, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 54px; }
  .about-photo { max-width: 680px; }
  .contact-grid { gap: 46px; }
  .gallery { columns: 3 180px; column-gap: 18px; }
  .gallery-item { margin: 0 0 18px; }
  .gallery-wrap.is-collapsed { aspect-ratio: 2 / 1; }
  .gallery-wrap.is-collapsed .gallery-item:nth-child(n + 7) { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(var(--max), calc(100% - 30px)); }
  .section { padding: 82px 0; }
  .nav { min-height: 66px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 66px; right: 15px; left: 15px; display: grid; gap: 0; padding: 8px; border-radius: 14px; background: rgba(20,20,20,.96); box-shadow: 0 18px 42px rgba(0,0,0,.28); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .2s; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; }
  .hero-content { margin-left: 15px; margin-right: 15px; padding-bottom: 88px; }
  .hero-content::before { bottom: 24px; }
  .scroll-cue { right: 15px; bottom: 26px; }
  .gallery { columns: 2 140px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
  .gallery-wrap.is-collapsed { aspect-ratio: 4 / 3; }
  .gallery-wrap.is-collapsed .gallery-item:nth-child(n + 5) { display: none; }
  .footer-inner { flex-direction: column; gap: 8px; }
}
