/* J.S Lenswork — stylesheet */

:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --ink: #1d1b19;
  --ink-soft: #4a4540;
  --muted: #7a726a;
  --line: #e4ddd2;
  --accent: #a3362a;        /* brick red */
  --accent-dark: #842a20;
  --gold: #c9a24a;
  --night: #161412;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(29, 27, 25, .35);
  --container: 1440px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.container {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 10px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  font: 600 .95rem/1 var(--sans);
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(163, 54, 42, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-small { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 600 .8rem/1 var(--serif);
  letter-spacing: .04em;
}
.brand-name { font: 500 1.25rem/1 var(--serif); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(1.5rem, 3.5vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 1.75rem; }

.hero-meta {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 0;
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.hero-meta strong {
  display: block;
  font: 500 1.15rem/1.3 var(--serif);
  color: var(--ink);
}

.hero-media {
  position: relative;
  margin: 0;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 9 / 8;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-media figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: rgba(255, 253, 249, .92);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }

.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-head-row h2 { margin-bottom: 0; }

/* Services */
.services { background: var(--paper); border-block: 1px solid var(--line); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-img { overflow: hidden; aspect-ratio: 16 / 9; }
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform .8s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body { padding: 1.4rem 1.5rem 1.6rem; }
.service-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.service-body p { color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .45rem;
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .7rem; height: .4rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  font: 600 .88rem/1 var(--sans);
  padding: .65rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery {
  columns: 4 260px;
  column-gap: .9rem;
}
.g-item {
  display: block;
  position: relative;
  margin-bottom: .9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
  background: var(--line);
}
.g-item img {
  width: 100%;
  transition: transform .7s var(--ease), filter .4s;
}
.g-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.035); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }
.g-item.is-hidden { display: none; }

.g-item.reveal { opacity: 0; transform: translateY(16px); }
.g-item.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* About */
.about { background: var(--paper); border-block: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.about-media { margin: 0; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-copy p { color: var(--ink-soft); max-width: 36rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { margin: .3rem 0 0; font: 500 1.1rem/1.3 var(--serif); }

/* Contact */
.contact { background: var(--night); color: #efe9df; }
.contact .eyebrow { color: var(--gold); }
.contact h2 { color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-copy p { color: #bdb4a8; max-width: 28rem; }

.contact-points { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.contact-points li {
  padding: .75rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #efe9df;
}
.contact-points a { color: #fff; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-points a:hover { color: var(--gold); }
.contact-points span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8f877c;
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: .9rem; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(163, 54, 42, .15);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field-error { display: block; font-size: .8rem; color: #c0392b; margin-top: .3rem; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: #2f7a43; }
.form-status.err { color: #c0392b; }

/* Footer */
.site-footer {
  background: var(--night);
  color: #8f877c;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
  font-size: .88rem;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-inner p { margin: 0; }
.brand-light { color: #fff; }
.brand-light .brand-mark { border-color: #fff; }
.copy { width: 100%; font-size: .8rem; color: #6c655c; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  background: rgba(14, 12, 11, .95);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure {
  margin: 0;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: 3.5rem 0 1rem;
  min-width: 0;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.lb-img.is-loading { opacity: 0; transform: scale(.985); }

.lb-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin-top: 1rem;
  color: #d8d0c4;
  font-size: .9rem;
}
.lb-count { color: #8f877c; font-variant-numeric: tabular-nums; }

.lb-btn {
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2.6rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  opacity: .75;
  transition: opacity .2s, background .2s;
}
.lb-btn:hover { opacity: 1; background: rgba(255,255,255,.1); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 12px; right: 14px; font-size: 2.2rem; }

body.lb-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
    .hero-media img { aspect-ratio: 4 / 3; }
  .service-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; object-position: 50% 30%; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .header-inner { height: 60px; }
  html { scroll-padding-top: 68px; }
  .site-nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 20px 1.2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }

  .lightbox { grid-template-columns: 1fr; }
  .lb-figure { grid-column: 1; grid-row: 1; padding: 3.5rem 12px 5rem; }
  .lb-prev, .lb-next {
    position: absolute;
    bottom: 1rem;
    background: rgba(255,255,255,.08);
  }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lb-caption { flex-direction: column; gap: .2rem; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; line-height: 1.55; }
  .container { width: calc(100% - 32px); }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.25rem; }

  .hero { padding: .75rem 0 2rem; }
  .hero-grid { gap: 1.25rem; }
  .lede { font-size: 1rem; }
  .hero-actions { margin: 1.1rem 0 1.25rem; gap: .5rem; }
  .hero-actions .btn { padding: .75rem 1.1rem; font-size: .9rem; }
  .hero-meta { gap: 1.25rem; padding-top: 1rem; font-size: .85rem; }

  .section { padding: 2.25rem 0; }
  .section-head { margin-bottom: 1.1rem; }
  .section-head-row { gap: .9rem; }
  .service-grid { gap: 1rem; }
  .service-body { padding: 1.1rem 1.1rem 1.25rem; }
  .checklist { margin-top: .8rem; }

  .filters { gap: .35rem; }
  .filter { padding: .5rem .8rem; font-size: .82rem; }
  .gallery { columns: 2 140px; column-gap: .5rem; }
  .g-item { margin-bottom: .5rem; }

  .about-grid,
  .contact-grid { gap: 1.25rem; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; }
  .stats dd { font-size: .95rem; }

  .contact-points { margin-top: .9rem; }
  .contact-points li { padding: .6rem 0; }
  .contact-form { padding: 1.1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field { margin-bottom: .75rem; }
  .field input, .field select, .field textarea { padding: .65rem .75rem; }

  .site-footer { padding: 1.25rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
