:root {
  --ink: #122830;
  --muted: #4d6170;
  --teal: #00577d;
  --deep: #062b38;
  --paper: #f3efe6;
  --white: #fffcf7;
  --line: #e3dccf;
  --cyan: #0aa0c0;
  --magenta: #d4145a;
  --yellow: #e6b400;
  --shadow: 0 16px 40px rgba(6, 43, 56, 0.12);
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, textarea { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--deep);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo img { height: 68px; width: auto; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 0.3rem;
}

.nav a {
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--deep);
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--deep);
  color: white;
}

.cmyk {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 6px;
}

.cmyk span:nth-child(1) { background: #1a1a1a; }
.cmyk span:nth-child(2) { background: var(--cyan); }
.cmyk span:nth-child(3) { background: var(--magenta); }
.cmyk span:nth-child(4) { background: var(--yellow); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4.2rem 0 3.5rem;
}

.kicker {
  margin: 0 0 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.98;
  color: var(--deep);
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--deep); }
.btn-ghost { background: transparent; border-color: var(--deep); color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: white; }

.hero-frame {
  background: var(--white);
  padding: 0.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-slides {
  display: grid;
  background: #eceae6;
}

.hero-slides img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slides img.is-active { opacity: 1; }

.hero-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0.7rem 0.3rem 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.marks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marks article {
  padding: 1.3rem 1.1rem;
  border-right: 1px solid var(--line);
}

.marks article:last-child { border-right: 0; }

.marks strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--deep);
}

.marks span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 4.5rem 0; }

.section h2 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--deep);
}

.section-head { max-width: 40rem; margin-bottom: 2rem; }

.about {
  background: var(--deep);
  color: #edf4f7;
}

.about h2, .about .kicker { color: white; }
.about .kicker { color: #8fd0e4; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.about-grid article {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 1.3rem 1.5rem;
}

.about-grid h3 { margin: 0 0 0.6rem; font-size: 1.7rem; }
.about-grid p { margin: 0; color: #d5e4ea; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  border: 1px solid var(--line);
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.service img { height: 190px; width: 100%; object-fit: cover; }

.service div { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }

.service h3 { margin: 0; font-size: 1.55rem; color: var(--deep); }

.service p { margin: 0; color: var(--muted); }

.service span {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--teal);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.shot {
  padding: 0;
  border: 0;
  background: #f7f4ee;
  cursor: zoom-in;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f7f4ee;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.shot:hover img { transform: scale(1.04); opacity: 0.92; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-card, form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem;
}

.contact-card h3 { margin: 0 0 0.2rem; font-size: 1.4rem; }
.contact-card p { margin: 0 0 1rem; color: var(--muted); }
.contact-card a { color: var(--teal); font-weight: 600; }

label { display: block; margin-bottom: 0.8rem; font-weight: 600; font-size: 0.92rem; }

input, textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  border-radius: 0;
}

textarea { min-height: 140px; resize: vertical; }

input:focus, textarea:focus, button:focus, a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; }

.site-footer {
  background: var(--deep);
  color: #d5e4ea;
  padding: 2rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: end;
}

.site-footer strong { color: white; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.site-footer p { margin: 0.2rem 0 0; }
.site-footer a[href^="tel:"] { text-decoration: none; }
.site-footer a[href^="tel:"]:hover { color: white; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.85rem;
}

.footer-links a {
  color: #d5e4ea;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover { color: white; }

.page-hero { padding: 3rem 0 1rem; }
.page-hero .portfolio-grid { margin: 1.6rem 0 2rem; }
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); }

.gallery { display: grid; gap: 2rem; }
.gallery h2 { font-size: 2rem; margin-bottom: 0.8rem; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.thumbs a, .thumbs .shot { display: block; }

.thumbs img, .shot-link img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f7f4ee;
  border: 1px solid var(--line);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, 92vw);
  max-height: 92vh;
}

dialog::backdrop { background: rgba(6, 43, 56, 0.82); }

dialog.captcha-dialog {
  width: min(420px, 94vw);
  max-width: 94vw;
}

.captcha-panel {
  background: var(--white);
  padding: 1.15rem 1.2rem 1.25rem;
}

.captcha-panel h3 { margin: 0 0 0.25rem; font-size: 1.45rem; }
.captcha-panel p { margin: 0 0 0.85rem; color: var(--muted); }

.captcha-img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.captcha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.captcha-actions .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.captcha-error { color: var(--magenta); font-weight: 600; }

.viewer {
  background: var(--white);
  padding: 0.7rem;
}

.viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(92vh - 4.5rem);
  margin-inline: auto;
  object-fit: contain;
  background: #eceae6;
}

.viewer img.is-pending { visibility: hidden; }

.viewer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0.2rem 0.15rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem;
  }
  .nav.is-open { display: flex; }
  .hero, .about-grid, .services-grid, .contact-grid, .marks { grid-template-columns: 1fr; }
  .marks article { border-right: 0; border-bottom: 1px solid var(--line); }
  .portfolio-grid, .thumbs { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service, .shot img, .hero-slides img { transition: none; }
}
