:root {
  --ink: #184A65;
  --muted: #0C4360;
  --paper: #f5f2eb;
  --lightblue: #E5F6FF;
  --white: #F8F4E3;
  --green: #6D4A37;
  --azure: #0053DA;
  --green-2: #0d5547;
  --yellow: #473024; /*changes from yellow,#0C4360 */
  --line: rgba(19, 33, 30, .18);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-space: clamp(5rem, 10vw, 9rem);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .75rem 1rem; color: white; background: var(--green); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 76px;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(245, 242, 235, .93); backdrop-filter: blur(14px); border-color: var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-wordmark { width: 116px; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.site-nav a { text-decoration: none; font-size: .86rem; font-weight: 500; }
.site-nav > a:not(.nav-cta) { position: relative; }
.site-nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .2s; }
.site-nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .75rem 1rem; color: white; background: var(--green); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 11px; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 6px 0; background: var(--ink); transition: transform .2s; }

.hero { min-height: min(900px, 100svh); max-width: var(--max); margin: 0 auto; padding: clamp(8rem, 14vw, 12rem) var(--gutter) 5rem; display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); align-items: center; gap: clamp(2.5rem, 6vw, 7rem); }
.eyebrow { margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; }
.hero h1, .section-heading h2, .about-copy h2, .contact-inner h2 { margin: 0; font-size: clamp(3.6rem, 7.5vw, 7.6rem); line-height: .9; letter-spacing: -.065em; font-weight: 500; }
em { font-family: "Newsreader", Georgia, serif; font-weight: 500; }
.hero-lede { max-width: 600px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.45rem); }
.hero-actions { display: flex; align-items: center; gap: 1.75rem; margin-top: 2.25rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .8rem 1.25rem; text-decoration: none; font-size: .88rem; font-weight: 600; }
.button-primary { color: white; background: var(--green); transition: background .2s, transform .2s; }
.button-primary:hover { background: var(--green-2); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; text-underline-offset: 5px; }
.hero-visual { position: relative; min-height: clamp(480px, 63vw, 730px); }
.hero-image { margin: 0; overflow: hidden; background: #d8d4ca; }
.hero-image-main { position: absolute; inset: 0 7% 8% 12%; }
.hero-image-main img { object-position: center 25%; }
.hero-image-small { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 1; border: 8px solid var(--paper); }
.image-index { position: absolute; top: 1rem; left: 0; margin: 0; writing-mode: vertical-rl; font-size: .7rem; letter-spacing: .15em; }

.marquee { overflow: hidden; padding: 1rem 0; color: white; background: var(--green); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 2rem; animation: marquee 28s linear infinite; }
.marquee span { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 2vw, 2.1rem); }
.marquee i { color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: var(--max); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.section-heading { max-width: 1050px; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2, .about-copy h2 { font-size: clamp(2.8rem, 6vw, 6.2rem); }
.section-intro { max-width: 550px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.2rem; }
.photo-grid { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: auto auto; gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.photo-card { margin: 0; }
.photo-card img { aspect-ratio: 1 / 1; }
.photo-card-tall { grid-row: span 2; }
.photo-card-tall img { aspect-ratio: 4 / 5.35; object-position: center 30%; }
.photo-card-wide img { aspect-ratio: 16 / 9; object-position: center 30%; }
.photo-card figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.photo-card figcaption span:last-child { color: var(--muted); }
.case-studies { margin-top: clamp(5rem, 9vw, 8rem); border-top: 1px solid var(--line); }
.case-study { display: grid; grid-template-columns: 80px 1fr 50px; gap: 1rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.case-number { color: var(--muted); font-size: .75rem; }
.case-study .eyebrow { margin-bottom: .6rem; }
.case-study h3 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.35rem); letter-spacing: -.035em; }
.case-study p:last-child { max-width: 720px; margin: .65rem 0 0; color: var(--muted); }
.case-arrow { align-self: center; font-size: 1.5rem; }

.services-section { max-width: none; color: white; background: var(--yellow); }
.services-section > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.services-section .section-intro, .services-section .service-item p { color: rgba(255,255,255,.66); }
.service-list { border-top: 1px solid rgba(255,255,255,.2); }
.service-item { display: grid; grid-template-columns: 120px minmax(220px, .8fr) 1.2fr; gap: 2rem; align-items: start; padding: 2.3rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.service-number { color: var(--paper); text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; }
.service-item h3 { margin: 0; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.15; letter-spacing: -.025em; }
.service-item p { max-width: 680px; margin: 0; }
.featured-service { margin: 1rem 0; padding: 2.3rem; background:var(--yellow); color:var(--white); border: 0; }
.featured-service .service-number, .featured-service p { color: rgba(19,33,30,.72); }
.featured-service a { grid-column: 3; font-weight: 600; text-underline-offset: 5px; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.about-image { height: min(720px, 65vw); min-height: 500px; }
.about-image img { object-position: center 25%; }
.about-copy { max-width: 700px; }
.about-lede { margin: 2rem 0 .5rem; font-size: 1.3rem; color: var(--ink) !important; }
.about-copy > p:not(.eyebrow) { color: var(--muted); max-width: 620px; }
.about-copy .text-link { margin-top: 1.25rem; }

.contact-section { padding: var(--section-space) var(--gutter); color: white; background: #184A65; }
.contact-inner { max-width: var(--max); margin: 0 auto; }
.contact-inner h2 { font-size: clamp(4rem, 10vw, 10rem); }
.contact-inner > p:not(.eyebrow) { margin: 2rem 0; color: rgba(255,255,255,.65); font-size: 1.15rem; }
.contact-email { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; font-size: clamp(1.2rem, 3vw, 2.2rem); }
.contact-email:hover { color: var(--yellow); }
.site-footer { max-width: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem var(--gutter); color: rgba(255,255,255,.7); background: #002539; font-size: .78rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; filter: invert(1); }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-wordmark { width: 96px; }
.footer-links { display: flex; justify-content: flex-end; gap: 1.25rem; }
.footer-links a { text-underline-offset: 4px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .site-nav { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 6rem var(--gutter); color: white; background: var(--green); transform: translateX(100%); transition: transform .3s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { font-size: 1.8rem; }
  .site-nav .nav-cta { padding: 0; color: var(--yellow); }
  .menu-toggle.active span:not(.sr-only) { background: white; }
  .menu-toggle.active span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 8.5rem; }
  .hero-visual { min-height: 620px; }
  .photo-grid, .about-section { grid-template-columns: 1fr; }
  .photo-card-tall { grid-row: auto; }
  .photo-card-tall img, .photo-card img { aspect-ratio: 4 / 5; }
  .service-item { grid-template-columns: 70px 1fr; }
  .service-item p, .featured-service a { grid-column: 2;color:#F5F2EB; }
  .about-image { min-height: 0; height: 70vw; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-visual { min-height: 500px; }
  .hero-image-main { inset: 0 4% 8% 6%; }
  .hero-image-small { width: 38%; }
  .case-study { grid-template-columns: 36px 1fr; }
  .case-arrow { display: none; }
  .service-item { grid-template-columns: 1fr; gap: .75rem; }
  .service-item p, .featured-service a { grid-column: 1; }
  .featured-service { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Branded texture on light sections */
.hero,
.work-section,
.about-section {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image: url("assets/hillm-texture.png");
  background-size: min(1400px, 100vw) auto;
  background-repeat: repeat-y;
  background-position: center top;
}
.hero::before,
.work-section::before,
.about-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(245, 242, 235, .72);
  pointer-events: none;
}

.audience-paths {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: var(--line);
}
.audience-paths a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  padding: 1.25rem;
  background: rgba(245, 242, 235, .9);
  text-decoration: none;
  transition: background .2s ease;
}
.audience-paths a:hover { background: var(--white); }
.audience-paths span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.audience-paths strong { font-size: 1rem; }

.case-study { grid-template-columns: 80px 1fr minmax(150px, auto); }
.case-link { align-self: center; font-size: .82rem; font-weight: 600; text-underline-offset: 5px; }

.contact-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, .65fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-heading > p:not(.eyebrow) { margin: 2rem 0; color: rgba(255,255,255,.65); font-size: 1.15rem; }
.contact-form { padding: clamp(1.5rem, 3vw, 2.5rem); color: var(--ink); background: var(--paper); }
.contact-form label { display: block; margin-bottom: 1.25rem; }
.contact-form label > span { display: block; margin-bottom: .45rem; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: .8rem .9rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(19,33,30,.28);
  border-radius: 0;
  font: inherit;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 2px; border-color: var(--ink); }
.form-submit { width: 100%; justify-content: space-between; color: white; background: var(--green); border: 0; cursor: pointer; }
.form-submit:hover { background: var(--green-2); }
.form-note, .form-status { margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }
.form-status { min-height: 1.2em; color: var(--green); font-weight: 600; }

@media (max-width: 860px) {
  .audience-paths { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 52px 1fr; }
  .case-link { grid-column: 2; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .audience-paths { margin-top: 2rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.25rem; }
}
/* Hero Gallery Styles */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1428 / 2000; /* Adjust to match your preferred aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-sm, 8px);
}

.hero-gallery .hero-image {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.hero-gallery .hero-image.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

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

/* Gallery Controls */
.hero-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
}

.gallery-nav-btn {
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-nav-btn:hover {
  background: var(--color-text, #111);
  color: var(--color-bg, #fff);
}