:root {
  --navy: #1b2a4a;
  --ink: #1b2a4a;
  --body: #333a45;
  --sage: #8a9a86;
  --sage-dark: #7c8c78;
  --paper: #f8fafc;
  --tan: #c5a880;
  --tan-hover: #b5976f;
  --line-blue: #2e6df6;
  --max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-top: 3px solid var(--line-blue);
  box-shadow: 0 1px 0 rgba(27,42,74,.08);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand-rule { display: block; height: 1px; background: var(--navy); opacity: .55; margin: 3px 0; }
.brand-text small { font-family: 'Playfair Display', serif; font-size: 15px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-family: 'Playfair Display', serif; font-size: 16px;
  color: #081125; text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-social { display: flex; gap: 10px; }
.header-social a, .footer-social a {
  width: 26px; height: 26px; border-radius: 50%;
  background: #1b2a4a; display: inline-flex; align-items: center; justify-content: center;
}
.header-social svg, .footer-social svg { width: 15px; height: 15px; fill: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700; color: var(--navy);
  text-align: center; margin-bottom: 36px;
  line-height: 1.15;
}
.align-left { text-align: left; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* Hidden pre-reveal state applies only when JS is active (html.js),
   so content is never invisible with JS disabled, in print, or in
   full-page captures where IntersectionObserver never fires. */
html.js .reveal { opacity: 0; transform: translateY(24px); }
html.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 96px);
}
.hero-copy {
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 48px; gap: 34px;
}
.hero-copy h1 { font-size: clamp(40px, 5vw, 60px); color: var(--navy); font-weight: 700; }
.hero-copy p { font-size: 17px; max-width: 460px; color: var(--navy); }
.hero-photo { background: var(--sage); display: flex; align-items: center; justify-content: center; padding: 48px; }
.hero-photo img { width: min(420px, 80%); height: auto; }

.btn-tan {
  display: inline-block;
  background: var(--tan); color: var(--navy);
  font-size: 13px; font-weight: 500;
  padding: 12px 30px; border-radius: 10px;
  border: 1px solid var(--sage);
  box-shadow: 0 1px 4px rgba(0,0,0,.6);
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn-tan:hover { background: var(--tan-hover); transform: translateY(-1px); }

/* ---------- Green divider bands ---------- */
.band { background: var(--sage); height: clamp(48px, 7vw, 96px); }

/* ---------- About ---------- */
.about { background: var(--paper); padding: 80px 24px; scroll-margin-top: 90px; }
.about-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
}
.about-photo img { width: 100%; height: auto; }
.about-copy p { font-size: 16px; color: var(--navy); margin-bottom: 20px; }
.about-copy .btn-tan { margin-top: 8px; }

/* ---------- Experience ---------- */
.experience { background: var(--paper); padding: 80px 24px; max-width: 980px; margin: 0 auto; scroll-margin-top: 90px; }
.job { border-top: 2px solid var(--line-blue); padding: 40px 8px; }
.job:last-of-type { border-bottom: 2px solid var(--line-blue); }
.job h3 { text-align: center; font-size: 26px; color: var(--navy); }
.job-meta { text-align: center; font-weight: 600; font-size: 16px; color: var(--navy); margin: 6px 0 24px; }
.job-body { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
.job-body img { width: 170px; height: 120px; object-fit: contain; background: #fff; border: 1px solid #e5e9f0; padding: 8px; }
.job-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; }

/* ---------- Projects ---------- */
.projects { background: #fff; padding: 80px 24px; scroll-margin-top: 90px; }
.gallery {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.g-item { border: 0; background: none; padding: 0; cursor: zoom-in; overflow: hidden; }
.g-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .3s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.04); }
.services-note { text-align: center; margin-top: 28px; font-size: 16px; }
.services-note a { color: var(--navy); font-weight: 600; }

/* ---------- Tools ---------- */
.tools { background: var(--paper); padding: 80px 24px; scroll-margin-top: 90px; }
.tool-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tool { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 26px; }
.tool img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Contact ---------- */
.contact { background: var(--sage); padding: 80px 24px 100px; scroll-margin-top: 60px; color: var(--navy); }
.contact .section-title { margin-bottom: 20px; }
.contact-info { text-align: center; font-size: 17px; margin-bottom: 30px; }
.contact-info a { color: var(--navy); }
.contact-form { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid #1b2a4a; border-radius: 0; background: #fff; color: #111;
}
.contact-form textarea { resize: vertical; }
.btn-navy {
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 600; padding: 14px; width: 100%;
  transition: background .2s ease;
}
.btn-navy:hover { background: #0f1c36; }
.form-note { text-align: center; font-size: 15px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sage); color: var(--navy); text-align: center; padding: 10px 24px 40px; font-size: 14px; }
.footer-social { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 16, 30, .92);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1000px, 86vw); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 10px; font-size: 15px; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 26px; width: 48px; height: 48px; border-radius: 50%; }
.lb-close { position: absolute; top: 18px; right: 22px; }

/* ---------- Services page ---------- */
.services-hero { background: var(--paper); padding: 80px 24px 40px; text-align: center; }
.services-hero h1 { font-size: clamp(34px, 5vw, 54px); color: var(--navy); margin-bottom: 12px; }
.services-hero p { color: var(--navy); font-size: 17px; }
.service-list { background: var(--paper); padding: 20px 24px 80px; max-width: 860px; margin: 0 auto; display: grid; gap: 26px; }
.service { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; }
.service .num { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--tan-hover); font-weight: 700; }
.service h2 { font-size: 26px; color: var(--navy); margin: 4px 0 10px; }
.service p { font-size: 16px; margin-bottom: 10px; }
.service .more { display: none; }
.service.expanded .more { display: block; }
.link-btn { background: none; border: 0; color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.inquiry { background: var(--sage); padding: 80px 24px 100px; color: var(--navy); }
.inquiry .section-title { margin-bottom: 12px; }
.inquiry .lede { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.back-link { display: inline-block; margin-top: 26px; color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 12px 24px 20px; gap: 14px;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-social { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; padding: 32px; }
  .hero-photo img { width: min(300px, 70%); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .job-body { grid-template-columns: 1fr; justify-items: center; text-align: left; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .g-item img { height: 170px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .row { grid-template-columns: 1fr; }
  .brand-text strong { font-size: 16px; }
}
