@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #162433;
  --ink-soft: #243546;
  --navy: #1c3144;
  --gold: #c4a35a;
  --gold-deep: #a6853c;
  --cream: #f6f1e8;
  --paper: #fbf8f2;
  --stone: #e7dfd1;
  --text: #1e2a33;
  --muted: #5b6670;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(22, 36, 51, 0.16);
  --radius: 18px;
  --header-h: 4.5rem;
  --wrap: 72rem;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.15rem, 5vw, 3.85rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: var(--gold);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 80%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--stone);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

/* Hero */

.hero {
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--white) 60%, transparent);
}

.hero-photos {
  position: relative;
  min-height: 28rem;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  background: var(--stone);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  width: 72%;
  aspect-ratio: 3 / 4;
  margin-left: auto;
}

.hero-photo-secondary {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 46%;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow), 0 0 0 6px var(--cream);
}

/* Services */

.services {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background: var(--paper);
  border-block: 1px solid var(--stone);
}

.section-header {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-header p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-grid li {
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
}

.service-grid li p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.service-grid h3::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

/* Work */

.work {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 1.15rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(22, 36, 51, 0.05);
}

.project-card button.project-thumb,
.project-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: zoom-in;
  position: relative;
}

.project-thumb img,
.project-card > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 60%;
}

.photo-count {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.project-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta {
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  margin: 0 0 0.55rem;
}

.project-body p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* About + contact */

.about-contact {
  background: var(--ink);
  color: color-mix(in srgb, var(--cream) 88%, white);
  padding: clamp(3.25rem, 8vw, 6rem) 0;
}

.about-contact h2 {
  color: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.about-contact p {
  color: color-mix(in srgb, var(--cream) 78%, #9aa6b2);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.contact-list a,
.contact-list span:not(.contact-label) {
  color: var(--cream);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-list a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent);
  text-underline-offset: 0.2em;
}

.contact-list a:hover {
  text-decoration-color: var(--gold);
}

/* Footer */

.site-footer {
  background: var(--ink);
  border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
  color: color-mix(in srgb, var(--cream) 65%, transparent);
  font-size: 0.9rem;
  padding: 1.25rem 0 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; }

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cream);
}

/* Lightbox */

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 56rem);
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(12, 18, 24, 0.88);
}

.lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.lightbox figure {
  margin: 0;
  background: #0b1218;
  border-radius: 0.75rem;
  overflow: hidden;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  background: #0b1218;
}

.lightbox figcaption {
  color: var(--cream);
  padding: 0.75rem 1rem 1rem;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: color-mix(in srgb, var(--cream) 12%, transparent);
  color: var(--cream);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: -0.3rem;
  right: 3.1rem;
  z-index: 2;
  font-size: 1.7rem;
}

.lightbox-prev,
.lightbox-next {
  align-self: center;
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: default;
}

.is-hidden { display: none !important; }

/* Focus */

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

.lightbox :focus-visible {
  outline-color: var(--cream);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid,
  .about-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photos {
    min-height: 0;
    order: -1;
  }

  .hero-photo-main {
    width: 78%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
    flex-direction: column;
    padding: 0.75rem 1.25rem 1.1rem;
    gap: 0.35rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.55rem 0;
  }

  .lightbox-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 4.4rem;
    z-index: 2;
  }

  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }

  .lightbox-close {
    right: 0.6rem;
    top: 0.6rem;
    background: rgba(12, 18, 24, 0.55);
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-photos {
    margin-bottom: 0.5rem;
  }

  .hero {
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (min-width: 861px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
