
:root {
  --ink: #0a0a0a;
  --ink-soft: #121212;
  --paper: #f1eee7;
  --muted: #aaa69c;
  --gold: #c8a45d;
  --line: rgba(241,238,231,.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 9999; left: 1rem; top: -4rem;
  background: var(--paper); color: var(--ink); padding: .7rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 88px; padding: 0 clamp(1.25rem, 4vw, 5rem);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
  transition: background .3s ease, height .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 70px; background: rgba(10,10,10,.94);
  backdrop-filter: blur(16px); border-color: var(--line);
}
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-main { font-family: var(--serif); letter-spacing: .14em; font-size: 1.2rem; }
.brand-main b { color: var(--gold); font-weight: 400; }
.brand-sub { margin-top: .42rem; color: var(--muted); text-transform: uppercase; letter-spacing: .24em; font-size: .55rem; }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-header nav a {
  font-size: .75rem; text-transform: uppercase; text-decoration: none;
  letter-spacing: .15em; color: #e8e3d9; position: relative;
}
.site-header nav a:not(.nav-cta)::after {
  content: ""; position: absolute; height: 1px; left: 0; right: 100%;
  bottom: -.45rem; background: var(--gold); transition: right .25s ease;
}
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.nav-cta { border: 1px solid rgba(255,255,255,.45); padding: .65rem 1rem; }
.nav-cta:hover { background: var(--paper); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: .4rem; }
.menu-toggle span:not(.sr-only) { display:block; width:26px; height:1px; background:var(--paper); margin:6px 0; }

.hero {
  position: relative; min-height: min(1000px, 100svh); display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; filter: contrast(1.05); }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.40) 48%, rgba(0,0,0,.12) 100%),
    linear-gradient(0deg, rgba(0,0,0,.76), transparent 45%);
}
.hero-content {
  width: min(830px, calc(100% - 2.5rem)); margin: 0 0 clamp(7rem, 15vh, 11rem) clamp(1.25rem, 8vw, 9rem);
}
.eyebrow, .section-label {
  color: var(--gold); text-transform: uppercase; letter-spacing: .24em; font-size: .68rem; font-weight: 600;
}
.hero h1 {
  margin: .9rem 0 1rem; font-family: var(--serif); font-size: clamp(3.3rem, 9vw, 8.5rem);
  line-height: .9; max-width: 900px; letter-spacing: -.04em; font-weight: 400;
}
.hero h1 em { display: block; color: var(--gold); font-weight: 400; }
.hero-copy { max-width: 610px; font-size: clamp(1rem, 1.8vw, 1.35rem); color: #e0ddd6; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: .8rem 1.3rem; text-decoration: none; text-transform: uppercase;
  letter-spacing: .14em; font-size: .68rem; border: 1px solid var(--paper);
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button-solid { background: var(--paper); color: var(--ink); }
.button-solid:hover { background: var(--gold); border-color: var(--gold); }
.button-ghost { background: rgba(0,0,0,.12); color: var(--paper); }
.button-ghost:hover { background: var(--paper); color: var(--ink); }
.scroll-cue {
  position: absolute; right: clamp(1.25rem, 4vw, 5rem); bottom: 2rem;
  display: flex; gap: .75rem; align-items: center; color: var(--muted);
  font-size: .6rem; text-transform: uppercase; letter-spacing: .2em; text-decoration: none;
  writing-mode: vertical-rl;
}
.scroll-cue i { height: 70px; width: 1px; background: linear-gradient(var(--gold), transparent); }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 5vw, 6rem); }
.intro { display: grid; grid-template-columns: 1fr 3fr; gap: 4rem; border-bottom: 1px solid var(--line); }
.intro-copy { max-width: 1050px; }
.intro-copy > p { max-width: 760px; color: #bdb8ad; }
.large-copy {
  max-width: 1000px !important; color: var(--paper) !important;
  font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 4.5rem); line-height: 1.15; margin: 0 0 2.5rem;
}
.large-copy em { color: var(--gold); font-weight: 400; }

.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem;
}
.section-head h2, .about-copy h2, .contact h2 {
  font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1;
  letter-spacing: -.035em; font-weight: 400; margin: .75rem 0 0;
}
.section-head > p { max-width: 510px; color: var(--muted); margin: 0; }

.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.filter {
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  padding: .55rem .75rem; text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; cursor: pointer;
}
.filter:hover, .filter.active { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.gallery { columns: 3 320px; column-gap: 1.25rem; }
.work-card { break-inside: avoid; margin: 0 0 2rem; }
.work-card[hidden] { display: none; }
.work-image {
  width: 100%; padding: 0; border: 0; background: #151515; cursor: zoom-in;
  position: relative; overflow: hidden;
}
.work-image picture, .work-image img { width: 100%; height: auto; }
.work-image img { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.work-image::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.15);
  opacity: 0; transition: opacity .35s ease;
}
.work-image:hover img { transform: scale(1.025); }
.work-image:hover::after { opacity: 1; }
.view-mark {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(10,10,10,.82); color: var(--paper);
  text-transform: uppercase; font-size: .52rem; letter-spacing: .1em;
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.work-image:hover .view-mark { opacity: 1; transform: none; }
.work-card figcaption {
  display: flex; justify-content: space-between; gap: 1rem; align-items: start;
  padding: 1rem .15rem 0;
}
.work-card h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin: 0; }
.work-card p { color: var(--muted); margin: .3rem 0 0; font-size: .82rem; line-height: 1.55; max-width: 430px; }
.work-card figcaption > span {
  color: var(--gold); white-space: nowrap; text-transform: uppercase; letter-spacing: .15em; font-size: .55rem; margin-top: .35rem;
}

.quote-band {
  min-height: 65vh; padding: 6rem 1.5rem; display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,.78)),
    url("images/horsies-1600.webp") center 44% / cover fixed;
}
.quote-band blockquote { max-width: 1100px; margin: 0; }
.quote-band p { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 6rem); line-height: 1.08; margin: 0; }
.quote-band cite { display: block; color: var(--gold); margin-top: 2rem; font-style: normal; text-transform: uppercase; letter-spacing: .25em; font-size: .65rem; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.service-card { padding: 2rem clamp(1rem, 2.5vw, 2.5rem) 1rem 0; border-right: 1px solid var(--line); }
.service-card + .service-card { padding-left: clamp(1rem, 2.5vw, 2.5rem); }
.service-card:last-child { border-right: 0; }
.service-card > span { color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.service-card h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 400; margin: 2.5rem 0 1rem; }
.service-card p { color: var(--muted); }
.service-card a { display: inline-block; color: var(--paper); margin-top: 1rem; text-underline-offset: .4rem; text-decoration-color: var(--gold); font-size: .8rem; }

.about {
  display: grid; grid-template-columns: minmax(300px, .9fr) minmax(300px, 1fr);
  gap: clamp(3rem, 8vw, 9rem); align-items: center; background: #0d0d0d;
}
.about-image img { width: 100%; max-height: 850px; object-fit: cover; }
.about-copy { max-width: 680px; }
.about-copy p { color: var(--muted); }
.about-copy .signature { margin-top: 3rem; color: var(--paper); font-family: var(--serif); font-size: 1.35rem; }
.signature span { color: var(--gold); font-family: var(--sans); text-transform: uppercase; letter-spacing: .13em; font-size: .57rem; }

.contact {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem);
  background: var(--paper); color: var(--ink);
}
.contact .section-label { color: #83692e; }
.contact-intro > p { max-width: 540px; color: #504d47; }
.contact-details { margin-top: 3rem; border-top: 1px solid rgba(0,0,0,.15); }
.contact-details p { display: grid; grid-template-columns: 120px 1fr; margin: 0; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,.15); font-size: .82rem; }
.contact-details span { text-transform: uppercase; letter-spacing: .14em; color: #777169; font-size: .6rem; }
.contact-form { align-self: center; }
.contact-form label {
  display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.1rem; color: #5a554d;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  display: block; width: 100%; margin-top: .5rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid rgba(0,0,0,.3); border-radius: 0; padding: .8rem .15rem; outline: 0;
}
.contact-form textarea { border: 1px solid rgba(0,0,0,.3); padding: .8rem; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #8d6f31; box-shadow: 0 1px 0 #8d6f31; }
.contact-form .button { background: var(--ink); color: var(--paper); border-color: var(--ink); margin-top: .7rem; }
.contact-form .button:hover { background: #8d6f31; border-color: #8d6f31; }
.hidden-field { display: none !important; }

.site-footer {
  min-height: 180px; padding: 2rem clamp(1.25rem, 5vw, 6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  border-top: 1px solid var(--line); color: var(--muted);
}
.site-footer p, .site-footer > a:last-child { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer > a:last-child { text-underline-offset: .35rem; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 2rem clamp(1rem, 5vw, 5rem);
  background: rgba(4,4,4,.96); border: 0; color: var(--paper); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(90vw, 1500px); max-height: 92vh; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: auto; object-fit: contain; }
.lightbox figcaption { padding-top: 1rem; text-align: center; }
.lightbox h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.lightbox p { color: var(--muted); margin: .3rem auto 0; max-width: 650px; font-size: .8rem; }
.lightbox-close, .lightbox-nav {
  position: fixed; z-index: 2; color: var(--paper); background: rgba(0,0,0,.25); border: 1px solid var(--line); cursor: pointer;
}
.lightbox-close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.7rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 70px; font-size: 2rem; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header nav {
    position: fixed; inset: 70px 0 auto; padding: 1.5rem;
    background: rgba(10,10,10,.98); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .site-header nav.open { transform: none; }
  .site-header nav a { padding: .8rem; }
  .menu-toggle { display: block; }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-head { align-items: start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card + .service-card { padding: 2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .about, .contact { grid-template-columns: 1fr; }
  .about-image img { max-height: 720px; }
}
@media (max-width: 620px) {
  .site-header { height: 70px; padding: 0 1rem; }
  .brand-main { font-size: 1rem; }
  .hero-content { margin-left: 1.25rem; margin-bottom: 7rem; }
  .hero h1 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.2) 80%); }
  .scroll-cue { display: none; }
  .section { padding: 5rem 1.15rem; }
  .gallery { columns: 1; }
  .work-card figcaption { flex-direction: column; }
  .quote-band { background-attachment: scroll; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .lightbox-nav { width: 40px; height: 58px; }
  .lightbox-prev { left: .25rem; } .lightbox-next { right: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* Official Fiat Lux 33 identity */
.brand-symbol {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}
.brand-symbol picture,
.brand-symbol img { display: block; }
.brand-symbol img { width: 54px; height: 54px; object-fit: contain; }
.brand-wordmark {
  font-family: var(--serif);
  letter-spacing: .14em;
  font-size: .86rem;
  white-space: nowrap;
}
.brand-wordmark b { color: #f7d985; font-weight: 400; }
.site-header.scrolled .brand-symbol img { width: 43px; height: 43px; }
.hero-logo { display: block; width: clamp(180px, 20vw, 235px); margin-bottom: 1.25rem; }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.38)); }
.footer-logo { display: block; width: 190px; }
.footer-logo img { width: 100%; height: auto; }

/* Let off-screen sections wait to render until they approach the viewport. */
.portfolio, .services, .about, .contact { content-visibility: auto; contain-intrinsic-size: 900px; }

@media (max-width: 620px) {
  .brand-symbol { gap: .35rem; }
  .brand-symbol img { width: 43px; height: 43px; }
  .brand-wordmark { font-size: .68rem; letter-spacing: .1em; }
  .hero-logo { width: 175px; margin-bottom: 1rem; }
  .footer-logo { width: 165px; }
}

/* Fallback lightbox state for browsers without <dialog>.showModal() */
.lightbox.fallback-open {
  display: grid; place-items: center;
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  max-width: none; max-height: none; margin: 0; z-index: 999;
}
