/* ==========================================================================
   Bryan Bullen Architects Inc (COCOA) — Static Site Stylesheet
   Faithful recreation of https://bryanbullenarchitects.gd/ (CocoaTheme v1.0.0)
   ========================================================================== */

:root {
  --color-ink: #171717;
  --color-body: #7a7a7a;
  --color-muted-band: #cfcfcf;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-black-hover: #646464;
  --color-border: #dcdcdc;
  --color-footer-divider: #2c2c2c;
  --color-surface-subtle: #f7f7f7;
  --font-main: 'Jost', Helvetica, Arial, sans-serif;
  --container-width: 80%;
  --container-max: 1280px;
  --header-height: 150px;
  --gutter: 5.5%;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px, matching CocoaTheme */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-body);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1.4rem;
  color: var(--color-ink);
  font-family: var(--font-main);
}

h1 {
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 1.35;
}

h2 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.4;
}

h3 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.45;
}

h4 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.5;
}

p {
  margin: 0 0 1.8rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.85;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 1.8rem;
  padding-left: 2rem;
}

li {
  font-size: 1.6rem;
  line-height: 1.85;
}

.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;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
}

.skip-link:focus {
  top: 16px;
}

/* Container & Sections */
.container {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
}

.section {
  padding: 6.4rem 0;
}

.section--tight {
  padding: 3.2rem 0;
}

.section--flush {
  padding: 0;
}

.section--dark {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p,
.section--dark li {
  color: var(--color-white);
}

.section--muted {
  background-color: var(--color-muted-band);
  color: var(--color-ink);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Variant A: Transparent dark gradient over hero (Home, About, News, Contact, Project Detail) */
.site-header[data-header="transparent"] {
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.58) 0%,
    rgba(12, 12, 12, 0.32) 55%,
    rgba(12, 12, 12, 0) 100%
  );
}

.site-header[data-header="transparent"] .nav-link,
.site-header[data-header="transparent"] .mobile-menu-toggle {
  color: var(--color-white);
}

.site-header[data-header="transparent"] .logo-dark {
  display: none;
}

.site-header[data-header="transparent"] .logo-light {
  display: block;
}

/* Solid / Scrolled State */
.site-header[data-header="solid"],
.site-header.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.site-header[data-header="solid"] .nav-link,
.site-header.is-scrolled .nav-link,
.site-header[data-header="solid"] .mobile-menu-toggle,
.site-header.is-scrolled .mobile-menu-toggle {
  color: var(--color-ink);
}

.site-header[data-header="solid"] .logo-light,
.site-header.is-scrolled .logo-light {
  display: none;
}

.site-header[data-header="solid"] .logo-dark,
.site-header.is-scrolled .logo-dark {
  display: block;
}

.site-header__inner {
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 120px;
  width: auto;
  height: auto;
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 1.2rem 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.72;
}

.nav-link[aria-current="page"] {
  font-weight: 500;
}

.nav-chevron {
  width: 1.2rem;
  height: 1.2rem;
  transition: transform var(--transition-fast);
}

.nav-item--dropdown:hover .nav-chevron,
.nav-item--dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Submenu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -2rem;
  min-width: 22rem;
  list-style: none;
  margin: 0;
  padding: 1.6rem 0;
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.site-header[data-header="solid"] .nav-dropdown,
.site-header.is-scrolled .nav-dropdown {
  background-color: var(--color-white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.8rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-white);
}

.site-header[data-header="solid"] .nav-dropdown a,
.site-header.is-scrolled .nav-dropdown a {
  color: var(--color-ink);
}

.nav-dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.site-header[data-header="solid"] .nav-dropdown a:hover,
.site-header.is-scrolled .nav-dropdown a:hover {
  background-color: var(--color-surface-subtle);
}

/* Mobile Menu Toggle & Drawer */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle svg {
  width: 3.2rem;
  height: 3.2rem;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 5%;
  right: 5%;
  background: var(--color-white);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
  z-index: 999;
  padding: 2rem;
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-drawer li a {
  display: block;
  padding: 1.2rem 1.4rem;
  font-size: 1.6rem;
  color: var(--color-ink);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-drawer .mobile-nav-parent > a {
  background-color: var(--color-surface-subtle);
  font-weight: 600;
}

.mobile-drawer .mobile-subnav a {
  padding-left: 3.2rem;
}

/* Offset for pages with solid header */
.page-solid-header main {
  padding-top: var(--header-height);
}

/* ==========================================================================
   Homepage Full-Screen Hero Slider
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 1080px;
  min-height: 520px;
  overflow: hidden;
  background-color: #111;
}

.hero-slider__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 65%;
  max-width: 720px;
  text-align: center;
  pointer-events: none;
  margin-top: 2.5rem;
}

.hero-slider__overlay p {
  font-size: 1.8rem;
  line-height: 1.8;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.42);
  margin: 0;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: transparent;
  border: 0;
  color: var(--color-white);
  width: 4.8rem;
  height: 4.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-slider__arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev {
  left: 22px;
}

.hero-slider__arrow--next {
  right: 22px;
}

.hero-slider__arrow svg {
  width: 3.4rem;
  height: 3.4rem;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   Homepage Editorial Rows, Banners, Services & Pre-Footer CTA
   ========================================================================== */
.split-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5.5%;
  align-items: stretch;
  padding: 3.2rem 0;
}

.split-row--center {
  align-items: center;
}

.split-row--reverse-mobile {
  /* reversed on <= 980px */
}

.split-row__media {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.split-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-intro-h1 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.6rem;
}

.home-subhead {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.45;
  margin-bottom: 2.2rem;
}

.home-section-h2 {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

.acclaimed-list {
  list-style: disc;
  padding-left: 2.2rem;
  margin: 0;
}

.acclaimed-list li {
  padding-bottom: 0.4rem;
  color: var(--color-body);
}

/* Full-width Architectural Banners */
.fullwidth-banner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  height: 70vh;
  max-height: 630px;
  overflow: hidden;
  background-color: #171717;
}

.fullwidth-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullwidth-banner__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 720px;
  text-align: center;
  z-index: 2;
}

.fullwidth-banner__overlay h4 {
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.6rem;
}

.fullwidth-banner__overlay p {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  margin: 0;
}

/* Services 2-Column Masonry Stack */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5.5%;
  padding-top: 2.4rem;
  align-items: start;
}

.services-col {
  display: flex;
  flex-direction: column;
  gap: 3.4rem;
}

.service-block h4 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 1.2rem;
}

.service-block p {
  color: var(--color-body);
}

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

/* Pre-Footer CTA Band */
.cta-band {
  background-color: var(--color-muted-band);
  padding: 6.4rem 0;
  text-align: center;
}

.cta-band__text {
  max-width: 900px;
  margin: 0 auto 3.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-body);
  line-height: 1.85;
}

.cta-band__text a {
  color: var(--color-ink);
  font-weight: 600;
}

.cta-band__text a:hover {
  text-decoration: underline;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5em 3em;
  border: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-black-hover);
  color: var(--color-white);
}

/* ==========================================================================
   Subpage Hero Banners (About Us, News, Contact)
   ========================================================================== */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: var(--container-width);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-top: 4rem;
}

.page-hero__content h1 {
  color: var(--color-white);
  font-size: 5.5rem;
  font-weight: 400;
  margin: 0;
}

/* ==========================================================================
   Portfolio Grids (/projects/, /residential/, /commercial/, /institutional/)
   ========================================================================== */
.portfolio-intro {
  padding: 4rem 0 2.4rem;
}

.portfolio-intro h1 {
  font-size: 5.5rem;
  font-weight: 400;
  margin-bottom: 1.4rem;
}

.portfolio-intro .seo-hidden {
  color: var(--color-white);
  user-select: none;
  font-size: 0.1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.portfolio-intro h3 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.portfolio-intro p {
  text-align: justify;
  margin-bottom: 1.8rem;
}

.portfolio-grid-section {
  padding: 2.4rem 0 7.2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 784 / 525;
  background-color: #f0f0f0;
}

.work-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease-in;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in;
  z-index: 1;
}

.work-card:hover::before,
.work-card:focus-within::before {
  opacity: 1;
}

.work-card:hover .work-card__img,
.work-card:focus-within .work-card__img {
  transform: scale(1.05);
}

.work-card__content {
  position: absolute;
  left: 2.8rem;
  right: 2.8rem;
  bottom: 2.4rem;
  z-index: 2;
  pointer-events: none;
}

.work-card__cat {
  display: block;
  color: var(--color-white);
  font-size: clamp(1.5rem, 1.3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.15s ease-in, transform 0.15s ease-in;
}

.work-card__title {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(2rem, 1.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.15s ease-in 0.18s, transform 0.15s ease-in 0.18s;
}

.work-card:hover .work-card__cat,
.work-card:focus-within .work-card__cat,
.work-card:hover .work-card__title,
.work-card:focus-within .work-card__title {
  opacity: 1;
  transform: translateY(0);
}

/* Promo cards without overlay text (e.g. Between 2 Worlds covers on /projects/) */
.work-card--promo::before {
  background-color: rgba(0, 0, 0, 0.16);
}

/* Interleaved Pull-Quote Statements on /projects/ */
.work-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 3.2rem;
  aspect-ratio: 784 / 525;
}

.work-statement h2,
.work-statement h3,
.work-statement p {
  font-size: clamp(2.6rem, 2.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-ink);
  margin: 0;
}

.work-statement em,
.work-statement i {
  font-style: italic;
}

/* ==========================================================================
   Single Project Detail Page
   ========================================================================== */
.project-hero {
  width: 100%;
  height: 100vh;
  max-height: 1080px;
  min-height: 480px;
  border-bottom: 2px solid var(--color-white);
  overflow: hidden;
  background-color: #171717;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-info {
  padding: 6.4rem 0 3.6rem;
}

.project-info__grid {
  display: grid;
  grid-template-columns: 36.7% 1fr;
  gap: 5.5%;
  align-items: start;
}

.project-meta-item {
  margin-bottom: 2.6rem;
}

.project-meta-item:last-child {
  margin-bottom: 0;
}

.projects-page-heading {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0 0 3.2rem;
}

.project-meta-item h1.project-meta__title {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--color-body);
  margin: 0;
}

.project-meta-item h4 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 0.4rem;
}

.project-meta-item p {
  font-size: 1.6rem;
  color: var(--color-body);
  margin: 0;
}

.project-description h4 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 1rem;
}

.project-gallery {
  padding: 1.6rem 0 7.2rem;
}

.project-gallery__stack {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.012);
}

/* Native Lightbox <dialog> (per light-dismiss-a-dialog guidance) */
.lightbox-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(94vw, 1440px);
  max-height: 92vh;
  overflow: visible;
  margin: auto;
}

.lightbox-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(3px);
}

.lightbox-dialog__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-dialog__img {
  max-width: min(88vw, 1360px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  background: #000;
}

.lightbox-dialog__close {
  position: fixed;
  top: 2rem;
  right: 2.4rem;
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: var(--color-white);
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-dialog__close:hover {
  background: var(--color-black);
}

.lightbox-dialog__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 4.8rem;
  height: 4.8rem;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: var(--color-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-dialog__nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-dialog__nav--prev {
  left: 2rem;
}

.lightbox-dialog__nav--next {
  right: 2rem;
}

.lightbox-dialog__counter {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   About Us Page
   ========================================================================== */
.about-tagline {
  max-width: 350px;
}

.about-tagline h3 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--color-ink);
}

.about-director h2 i,
.about-director h2 em {
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
}

.two-column-list {
  display: flex;
  gap: 4rem;
  margin-top: 2rem;
}

.two-column-list ul {
  margin: 0;
  padding-left: 2rem;
}

.team-section {
  padding: 4.8rem 0;
}

.team-section h2 {
  margin-bottom: 3.6rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.4rem;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #111;
  margin-bottom: 1.4rem;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-ink);
  margin: 0 0 0.2rem;
}

.team-card__role {
  font-size: 1.4rem;
  color: var(--color-body);
  margin: 0;
}

.eyebrow-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.eyebrow-line::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 2px;
  background-color: var(--color-ink);
  flex-shrink: 0;
}

.eyebrow-line span {
  font-size: clamp(1.2rem, 1vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-body);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.6rem;
  align-items: start;
}

.achievements-grid__label {
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.achievements-grid ul {
  margin: 0;
  padding-left: 1.8rem;
}

.achievements-grid li {
  margin-bottom: 1.4rem;
  font-size: 1.5rem;
  line-height: 1.75;
}

.achievements-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 5.2rem 0;
}

/* ==========================================================================
   News Index & Single Post / Archive
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.4rem 3.6rem;
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 1.6rem;
  background-color: #f0f0f0;
}

.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in;
}

.news-card__media:hover img {
  transform: scale(1.05);
}

.news-card__cat {
  font-size: 1.4rem;
  color: var(--color-body);
  margin-bottom: 0.8rem;
}

.news-card__cat a {
  color: var(--color-body);
}

.news-card__cat a:hover {
  color: var(--color-ink);
}

.news-card__title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1.2rem;
}

.news-card__title a {
  color: var(--color-ink);
}

.news-card__excerpt {
  font-size: 1.5rem;
  line-height: 1.74;
  color: var(--color-body);
  margin-bottom: 1.4rem;
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-ink);
  margin-top: auto;
}

.news-card__more svg {
  width: 1.8rem;
  height: 1.8rem;
  transition: transform var(--transition-fast);
}

.news-card__more:hover svg {
  transform: translateX(4px);
}

/* Single Post Page */
.post-header-band {
  background-color: var(--color-surface-subtle);
  padding: 5.6rem 0;
  border-bottom: 1px solid #ececec;
}

.post-header-band .container {
  max-width: 960px;
}

.post-header-band h1 {
  font-size: clamp(3rem, 3.6vw, 4.6rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.post-header-band__meta {
  font-size: 1.5rem;
  color: var(--color-body);
}

.post-body {
  padding: 5.6rem 0 7.2rem;
  max-width: 960px;
  margin-inline: auto;
}

.post-body figure {
  margin: 2.8rem 0;
  padding: 0;
}

.post-body figure.aligncenter {
  text-align: center;
}

.post-body figure.aligncenter img {
  margin-inline: auto;
}

.post-body figcaption {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  color: var(--color-body);
  text-align: center;
}

.post-body img {
  margin: 0;
  width: auto;
  max-width: 100%;
  height: auto;
}

.post-body > p > img,
.post-body > img {
  margin: 2.4rem auto;
}

.post-body video,
.post-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

/* WordPress Gutenberg block layouts used inside migrated News posts */
.post-body .wp-block-group {
  margin: 3.2rem 0;
}

.post-body .wp-block-columns {
  display: flex;
  flex-wrap: nowrap;
  gap: 2.4rem;
  margin: 2.8rem 0;
  align-items: flex-start;
}

.post-body .wp-block-column {
  flex: 1 1 0;
  min-width: 0;
}

.post-body .wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

.post-body .wp-block-column figure {
  margin: 0;
}

.post-body .wp-block-column img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.post-body > figure.alignleft {
  float: left;
  margin: 0.6rem 2.8rem 2rem 0;
}

.post-body > figure.alignright {
  float: right;
  margin: 0.6rem 0 2rem 2.8rem;
}

.post-body::after {
  content: '';
  display: table;
  clear: both;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin-top: 3.2rem;
}

.post-body blockquote {
  margin: 2.8rem 0;
  padding-left: 2.4rem;
  border-left: 3px solid var(--color-ink);
  font-style: italic;
  color: var(--color-ink);
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 4rem;
  font-weight: 500;
}

/* ==========================================================================
   Books Page
   ========================================================================== */
.books-heading {
  text-align: center;
  padding: 4.8rem 0 4rem;
}

.books-heading h1,
.books-heading h4 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.books-heading strong {
  font-weight: 700;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5.6rem 5.5%;
  padding-bottom: 7.2rem;
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-card__cover {
  margin-bottom: 2.8rem;
}

.book-card__cover img {
  width: 100%;
  height: auto;
}

.book-card__desc {
  font-size: 1.6rem;
  line-height: 1.85;
  color: var(--color-body);
  margin-bottom: 2.8rem;
  flex-grow: 1;
}

.book-card__rule {
  border: 0;
  border-top: 2px solid var(--color-ink);
  margin: 0 0 1.8rem;
}

.book-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.book-card__actions a {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-ink);
}

.book-card__actions a:hover {
  opacity: 0.65;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  align-items: start;
}

.contact-form .form-group {
  margin-bottom: 3rem;
}

.contact-form label {
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-body);
  margin-bottom: 0.6rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 1.6rem;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--color-border);
  padding: 1.2rem 0;
  border-radius: 0;
  transition: border-color var(--transition-fast);
}

.contact-form textarea {
  min-height: 14rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--color-black);
}

.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-bottom-color: #b3261e;
}

/* Invisible Anti-Spam Honeypot (off-screen, never visible to humans) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-submit {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 1.8rem;
  font-weight: 500;
  padding: 1.4rem 4.2rem;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.contact-submit:hover {
  background-color: var(--color-black-hover);
}

.form-status {
  margin-top: 2rem;
  font-size: 1.5rem;
  min-height: 2.4rem;
}

.form-status--error {
  color: #b3261e;
}

.form-status--success {
  color: #137333;
}

.contact-details h3 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-details p {
  margin-bottom: 1.8rem;
}

.contact-details a {
  color: var(--color-ink);
  font-weight: 400;
}

.contact-details a.social-circle,
.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--color-ink);
  color: var(--color-white);
  margin-top: 1.2rem;
  transition: background-color var(--transition-fast);
}

.contact-details a.social-circle:hover,
.social-circle:hover {
  background-color: var(--color-black-hover);
  color: var(--color-white);
}

.social-circle svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: currentColor;
}

.map-band {
  background-color: var(--color-ink);
  line-height: 0;
}

.map-band iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

/* ==========================================================================
   Footer & Scroll-to-Top
   ========================================================================== */
.site-footer {
  background-color: var(--color-ink);
  color: var(--color-muted-band);
  padding: 7.2rem 0 4.4rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4.8rem;
  padding-bottom: 5.2rem;
  flex-wrap: wrap;
}

.footer-logo img {
  max-height: 124px;
  width: auto;
}

.footer-address {
  text-align: right;
}

.footer-address p {
  font-weight: 300;
  color: var(--color-muted-band);
  line-height: 1.85;
  margin-bottom: 1.6rem;
}

.footer-address a {
  color: var(--color-white);
  font-weight: 300;
}

.footer-address a:hover {
  text-decoration: underline;
}

.footer-credit a {
  color: var(--color-muted-band);
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 207, 207, 0.35);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-credit a:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.footer-divider {
  border: 0;
  border-top: 1px solid var(--color-footer-divider);
  margin: 0 0 3.2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

.footer-credit {
  color: var(--color-muted-band);
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints (980px Tablet, 767px Mobile)
   ========================================================================== */
@media screen and (max-width: 980px) {
  :root {
    --container-width: 88%;
    --header-height: 110px;
  }

  .site-logo img {
    max-height: 82px;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-slider {
    height: 617px;
  }

  .split-row,
  .services-grid,
  .project-info__grid,
  .contact-grid,
  .books-grid {
    grid-template-columns: 1fr;
    gap: 3.6rem;
  }

  .split-row--reverse-mobile .split-row__media {
    order: 2;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fullwidth-banner {
    height: auto;
    max-height: none;
  }

  .fullwidth-banner img {
    height: auto;
    min-height: 360px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3.2rem;
  }

  .footer-address {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn-primary {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --container-width: 90%;
    --header-height: 92px;
  }

  h1,
  .page-hero__content h1,
  .portfolio-intro h1 {
    font-size: 3.8rem;
  }

  h2,
  .home-intro-h1,
  .home-section-h2 {
    font-size: 3rem;
  }

  h3,
  .home-subhead {
    font-size: 2.4rem;
  }

  .site-logo img {
    max-height: 64px;
  }

  .hero-slider {
    height: 483px;
    min-height: 420px;
  }

  .hero-slider__overlay {
    width: 84%;
  }

  .hero-slider__overlay p {
    font-size: 1.5rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .post-body .wp-block-columns {
    flex-direction: column;
  }

  .post-body .wp-block-column {
    flex-basis: auto !important;
    width: 100%;
  }

  .post-body > figure.alignleft,
  .post-body > figure.alignright {
    float: none;
    margin: 2.4rem auto;
    text-align: center;
  }

  .two-column-list {
    display: block;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .btn-primary {
    font-size: 2rem;
    width: 100%;
    padding: 0.6em 1.2em;
  }

  .work-statement {
    aspect-ratio: auto;
    padding: 3.2rem 1.6rem;
  }

  .map-band iframe {
    height: 420px;
  }
}

/* Touch devices: show project card titles cleanly with a subtle bottom gradient */
@media (hover: none) {
  .work-card::before {
    opacity: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.58) 100%);
  }

  .work-card__cat,
  .work-card__title {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-slide,
  .work-card__img,
  .work-card__cat,
  .work-card__title {
    transition: none;
  }
}
