:root {
  color-scheme: dark;
  --forest: #10251c;
  --deep: #091b13;
  --surface: #173a29;
  --text: #eef4e9;
  --muted: #b2c4b5;
  --accent: #b7e58e;
  --line: #41604a;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--forest); }
body { margin: 0; background: var(--forest); color: var(--text); font: 16px/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 6px; }
button { font: inherit; }
img { max-width: 100%; }
header, main, footer { max-width: 1700px; margin: auto; }
header { padding: 28px 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { font-family: Georgia, serif; font-size: 31px; letter-spacing: -1.5px; line-height: 1; }
.brand span { display: block; font: 12px Arial; letter-spacing: 3px; margin-top: 10px; color: var(--accent); }
nav { display: flex; gap: 32px; font-size: 14px; }
nav a { position: relative; padding: 8px 0; }
nav a[aria-current=page] { color: var(--accent); }
.eyebrow { font-size: 14px; letter-spacing: 2px; line-height: 1.8; }
h1 { font-size: clamp(52px, 7.5vw, 110px); letter-spacing: -.055em; font-weight: 400; line-height: 1.07; margin: 24px 0 30px; }
em { font-family: Georgia, serif; font-weight: 400; color: var(--accent); }
h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.25; letter-spacing: -.035em; font-weight: 400; }
.skip { position: absolute; left: 16px; top: -100px; background: var(--accent); color: var(--deep); padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
.home { background: var(--deep); }
.home-hero { position: relative; min-height: 740px; min-height: calc(100svh - 120px); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; z-index: -2; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #091b13f2 0%, #091b13a6 35%, transparent 75%), linear-gradient(0deg, #091b13b3, transparent 25%); z-index: -1; }
.hero-copy { padding: 64px 5% 120px; max-width: 850px; }
.hero-copy h1 { font-size: clamp(52px, 7.3vw, 108px); margin: 25px 0 36px; }
.pill { display: inline-flex; gap: 42px; align-items: center; border: 1px solid var(--accent); border-radius: 40px; padding: 14px 24px; font-size: 14px; color: var(--accent); }
.pill:hover { background: var(--accent); color: var(--deep); text-decoration: none; }
.hero-foot { position: absolute; bottom: 30px; left: 5%; right: 5%; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.page-heading { padding: 54px 5% 42px; }
.page-heading h1 { margin-bottom: 20px; }
.page-heading > p:last-child { color: var(--muted); }
#work { padding: 0 5% 70px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 32px; align-items: start; }
.photo { padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; width: 100%; color: inherit; }
.photo img { display: block; width: 100%; height: auto; }
.photo span { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
.photo b { font-size: 16px; font-weight: 400; }
.photo small { font-size: 14px; color: var(--muted); }
.second { margin-top: 110px; }
.third { width: 80%; margin-left: 10%; }
.fourth { margin-top: 100px; }
.page-end { padding: 45px 5% 65px; border-top: 1px solid var(--line); }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 8px; margin-top: 18px; color: var(--accent); }
.about-page { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding: 65px 5% 80px; align-items: center; }
.about-copy > p { max-width: 520px; color: var(--muted); line-height: 1.85; }
.about-image { margin: 0; }
.about-image img { display: block; width: 100%; height: auto; }
.about-image figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }
.contact-theme { background: linear-gradient(135deg, var(--forest) 20%, var(--surface)); }
.contact-page { padding: 65px 5% 95px; min-height: calc(100svh - 230px); }
.contact-intro { max-width: 550px; color: var(--muted); }
.contact-options { margin-top: 48px; max-width: 1000px; border-top: 1px solid var(--line); }
.contact-options > a { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-options .eyebrow { color: var(--muted); }
.contact-options > a:hover { text-decoration: none; color: var(--accent); }
.contact-address { font-size: clamp(18px, 3vw, 36px); overflow-wrap: anywhere; line-height: 1.3; }
footer { padding: 32px 5%; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 14px; }
.footer-brand { font-size: 24px; }
dialog { border: 1px solid var(--line); padding: 55px 65px 25px; background: var(--deep); color: var(--text); max-width: 96vw; width: 1100px; max-height: 96vh; overflow: auto; }
dialog::backdrop { background: #041009ed; }
body:has(dialog[open]) { overflow: hidden; }
#full { display: block; max-width: 100%; height: 72vh; object-fit: contain; margin: auto; }
#close { position: absolute; right: 12px; top: 6px; min-height: 44px; padding: 8px 12px; background: none; color: var(--text); border: 0; cursor: pointer; }
.step { position: absolute; top: 48%; background: none; border: 0; color: var(--accent); font-size: 28px; cursor: pointer; padding: 10px; }
#prev { left: 8px; }
#next { right: 8px; }
#caption { text-align: center; font-size: 14px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media (max-width: 650px) {
  header { padding: 24px 6%; flex-wrap: wrap; gap: 22px; }
  .brand { font-size: 27px; }
  nav { gap: 26px; width: 100%; justify-content: space-between; }
  .home-hero { min-height: 680px; }
  .hero-image { object-position: 58% center; }
  .home-hero::after { background: linear-gradient(90deg, #091b13e8, #091b1340), linear-gradient(0deg, #091b13b3, transparent 40%); }
  .hero-copy { padding: 45px 6% 125px; }
  .hero-foot { left: 6%; right: 6%; flex-direction: column; gap: 5px; }
  .page-heading { padding: 35px 6% 25px; }
  .gallery { gap: 36px 16px; }
  .second { margin-top: 55px; }
  .third { width: 100%; margin-left: 0; }
  .fourth { margin-top: 35px; }
  .photo span { display: block; }
  .photo small { display: block; margin-top: 4px; }
  #work { padding: 0 6% 45px; }
  .about-page { grid-template-columns: 1fr; padding: 35px 6% 55px; gap: 38px; }
  .about-image { max-width: 440px; }
  .contact-page { padding: 35px 6% 65px; }
  .contact-options > a { grid-template-columns: 1fr auto; gap: 10px; }
  .contact-options .eyebrow { grid-column: 1/-1; }
  .contact-address { font-size: clamp(18px, 5.5vw, 30px); }
  footer { padding: 28px 6%; flex-wrap: wrap; }
  .footer-brand { width: 100%; }
  dialog { padding: 55px 40px 15px; }
  #full { height: 65vh; }
}
/* Page transitions are coordinated in app.js so navigation never hard-cuts. */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-open {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
nav a::after {
  content: ""; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
nav a:hover { text-decoration: none; color: var(--accent); }
nav a:is(:hover, :focus-visible, [aria-current=page])::after { transform: scaleX(1); }
.pill, .text-link, .contact-options > a { transition: background .3s, color .3s, transform .4s var(--ease); }
.pill span, .contact-options > a > span:last-child { transition: transform .4s var(--ease); }
.pill:hover span, .contact-options > a:hover > span:last-child { transform: translate(3px, -3px); }
.photo { transition: transform .55s var(--ease); }
.photo img { transition: box-shadow .55s var(--ease); }
.photo b { transition: color .3s; }
@media (hover: hover) and (pointer: fine) {
  .photo:hover { transform: translateY(-5px); }
  .photo:hover img { box-shadow: 0 18px 32px #04100966; }
  .photo:hover b { color: var(--accent); }
}
dialog[open] { animation: photo-open .35s var(--ease); }
dialog[open]::backdrop { animation: fade-in .3s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .photo:hover, .pill:hover span, .contact-options > a:hover > span:last-child { transform: none; }
}
