/* ===================================================================
   SC3 WEBSITE STYLESHEET
   Warm editorial theme: cream/mocha palette, serif display headings,
   pill buttons, alternating ink-dark and paper-light sections,
   numbered "/ 01" section labels, scroll-reveal + hover polish.

   You generally do NOT need to edit this file to change text or images.
   Text is edited directly inside the .html files.
   Images are swapped by replacing files inside the /images folder.
   =================================================================== */

:root {
  --ink: #241d17;
  --ink-soft: #392e24;
  --paper: #f4eee2;
  --paper-card: #e7d8bd;
  --line: #ddccac;
  --line-on-dark: rgba(244, 238, 226, 0.14);
  --muted-on-light: #6f6252;
  --muted-on-dark: #b9ab95;
  --white: #ffffff;
  --accent: #b2582a;
  --accent-soft: rgba(178, 88, 42, 0.12);
  --radius: 14px;
  --max-width: 1200px;
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.6s ease both;
}
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

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

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  font-weight: 600;
  font-optical-sizing: auto;
}

h1.display { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--muted-on-light); }
p.lead { font-size: 1.15rem; color: var(--muted-on-light); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Section rhythm ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-dark { background: var(--ink); color: var(--paper); position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--paper); }
.section-dark p { color: var(--muted-on-dark); }
.section-paper { background: var(--paper); }

/* subtle grain texture for depth on dark sections */
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(244, 238, 226, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}

.divider { height: 1px; background: var(--line); width: 100%; }
.section-dark + .section-dark .divider,
.section-dark .divider { background: var(--line-on-dark); }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-dark .kicker { color: var(--accent); }

.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: none;
  align-items: end;
}
@media (max-width: 760px) { .section-header.split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(36, 29, 23, 0.18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow, .link-underline:hover .arrow { transform: translateX(4px); }
.btn .arrow::before { content: "\2192"; }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; border-color: var(--line-on-dark); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }
.btn-text { padding: 15px 4px; border-bottom: 1px solid var(--ink); border-radius: 0; }
.btn-text:hover { transform: none; box-shadow: none; }
.section-dark .btn-text { border-color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 226, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(36, 29, 23, 0.08); background: rgba(244, 238, 226, 0.96); }
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 30px; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  position: relative;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta { margin-left: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 10px 28px 24px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 10px 0 0; }
  .nav-wrap { position: relative; flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { padding: 90px 0 0; }
.hero-eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.hero-content { max-width: 780px; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; margin-bottom: 60px; }
.hero-image-wrap { width: 100%; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
  animation: heroZoom 1.4s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap img { animation: none; }
}

.hero-simple { padding: 150px 0 90px; }
.hero-simple .hero-content { max-width: 640px; }

/* ---------- About-style offset image pair ---------- */
.offset-images {
  position: relative;
  padding-bottom: 90px;
}
.offset-images .img-main { width: 82%; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.offset-images .img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.offset-images .img-second {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 8px solid var(--paper);
  box-shadow: 0 20px 40px rgba(36, 29, 23, 0.18);
}
.offset-images .img-second img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.offset-images:hover .img-main img,
.offset-images:hover .img-second img { transform: scale(1.05); }
@media (max-width: 700px) {
  .offset-images .img-main { width: 100%; }
  .offset-images .img-second { width: 55%; }
}

/* ---------- Split / story layout ---------- */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; gap: 36px; } }
.split-2 img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-row + .story-row { margin-top: 100px; }
.story-row .story-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-row .story-images img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; border-radius: var(--radius); }
.story-row .story-images .tall { aspect-ratio: 3/4.6; margin-top: -30px; }
@media (max-width: 860px) {
  .story-row { grid-template-columns: 1fr; gap: 28px; }
  .story-row .story-images .tall { margin-top: 0; }
}

/* ---------- Stats / achievements ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
.stat-card .num { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--paper); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 0.95rem; color: var(--muted-on-dark); }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s ease;
}
.card:hover { box-shadow: 0 20px 40px rgba(36, 29, 23, 0.12); transform: translateY(-4px); border-color: var(--accent); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-body { padding: 22px 24px; }

/* Project card: meta row (location - date), badges, underline link */
.project-card { background: transparent; border: none; }
.project-card:hover { box-shadow: none; transform: none; border-color: transparent; }
.project-card .card-img { border-radius: var(--radius); overflow: hidden; }
.project-card:hover .card-img img { transform: scale(1.07); }
.project-card .card-body { padding: 18px 0 0; }
.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted-on-light);
  margin-bottom: 10px;
}
.project-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-on-light); }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.badge {
  background: var(--paper-card);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.link-underline:hover { opacity: 0.7; }
.section-dark .link-underline { border-color: var(--paper); }

/* Value / service icon cards */
.value-card { padding: 34px 30px; background: var(--paper); border-radius: var(--radius); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(36, 29, 23, 0.1); }
.value-card img.icon { width: 40px; height: 40px; margin-bottom: 20px; }
.value-card .role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; display: block; }
.value-card h3 { margin-bottom: 8px; }
.section-dark .value-card { background: var(--ink-soft); }
.section-dark .value-card:hover { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); }

.service-card { padding: 0; }
.service-card .card-img { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.service-card:hover .card-img img { transform: scale(1.08); }
.service-card h3 { margin-bottom: 10px; }

/* Horizontal scroll services row */
.scroll-row-wrap { position: relative; }
.scroll-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .service-card { min-width: 320px; max-width: 320px; scroll-snap-align: start; flex: 0 0 auto; }
.scroll-arrows { display: flex; gap: 10px; margin-top: 28px; }
.scroll-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.scroll-arrow:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }

/* ---------- Testimonial spotlight ---------- */
.testimonial-spotlight {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .testimonial-spotlight { grid-template-columns: 1fr; } }
.testimonial-spotlight .photo { aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); }
.testimonial-spotlight .photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-spotlight .quote-mark { font-family: 'Fraunces', serif; font-size: 3.5rem; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.testimonial-spotlight blockquote { margin: 0 0 24px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-family: 'Fraunces', serif; font-weight: 600; color: var(--paper); line-height: 1.35; }
.testimonial-spotlight p.body-text { color: var(--muted-on-dark); }
.testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-weight: 700; color: var(--paper); }
.testimonial-author .role { font-size: 0.85rem; color: var(--muted-on-dark); }

/* small testimonial cards (used on Clients page) */
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(36, 29, 23, 0.1); }
.testimonial-card .quote-mark { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.testimonial-card p.quote { font-style: normal; color: var(--ink); font-size: 1.02rem; }
.testimonial-card .testimonial-author .name { color: var(--ink); }
.testimonial-card .testimonial-author .role { color: var(--muted-on-light); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card .card-img { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.team-card .card-img img { transition: transform 0.5s var(--ease); }
.team-card:hover .card-img img { transform: scale(1.07); }
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; display: block; }

/* ---------- Offices ---------- */
.office-card { border: 1px solid var(--line-on-dark); border-radius: var(--radius); padding: 30px; background: var(--ink-soft); transition: transform 0.3s var(--ease), border-color 0.3s ease; }
.office-card:hover { transform: translateY(-4px); border-color: var(--accent); }
/* The card always has a dark background, so its heading must always be
   light — including on light pages such as Contact Us. */
.office-card h3 { margin-bottom: 14px; color: var(--paper); }
.office-card a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.office-card a:hover { color: var(--accent); }
.office-card p { margin: 0 0 8px; color: var(--muted-on-dark); }
.office-card strong { color: var(--paper); }

/* ---------- CTA band ---------- */
.cta-wrapper { text-align: center; }
.cta-wrapper h2 { max-width: 760px; margin: 0 auto 32px; }
.cta-buttons { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.88rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note {
  font-size: 0.82rem;
  color: var(--muted-on-light);
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 14px 16px;
  border-radius: var(--radius);
}

/* ---------- Filter bar (Projects page) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 80px 0 28px; position: relative; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 16px; font-family: 'Fraunces', serif; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--accent); }
.footer-logo img { height: 26px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* ---------- Flagship project showcase ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(178, 88, 42, 0.16);
  border: 1px solid var(--accent);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.status-pill .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(178, 88, 42, 0.7);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(178, 88, 42, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(178, 88, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 88, 42, 0); }
}
@media (prefers-reduced-motion: reduce) { .status-pill .pulse { animation: none; } }

.flagship-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.flagship-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; min-height: 0; }
.flagship-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.flagship-gallery figure:hover img { transform: scale(1.04); }
/* Big image fills the left column across all three rows; the three
   smaller images stack down the right column, one per row. */
.flagship-gallery .fg-main { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 4/5; }
.flagship-gallery .fg-side { grid-column: 2; }
.flagship-gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 20px 14px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(to top, rgba(20,16,12,0.88), rgba(20,16,12,0));
}
.flagship-gallery figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.flagship-gallery figcaption a:hover { color: var(--accent); }

/* Small photo credit line (e.g. third-party artist's impressions) */
.credit-inline {
  display: block;
  margin-top: 7px;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.82;
}
.img-credit {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--muted-on-light);
  text-align: right;
}
.img-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.img-credit a:hover { color: var(--accent); }
@media (max-width: 860px) {
  .flagship-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .flagship-gallery .fg-main { grid-column: 1; grid-row: auto; aspect-ratio: 4/3; }
  .flagship-gallery .fg-side { grid-column: 1; aspect-ratio: 16/9; }
}

.flagship-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line-on-dark);
}
.flagship-facts div {
  padding: 24px 22px 4px 0;
  border-right: 1px solid var(--line-on-dark);
}
.flagship-facts div:last-child { border-right: none; }
.flagship-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 8px;
}
.flagship-facts dd {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}
@media (max-width: 760px) {
  .flagship-facts { grid-template-columns: 1fr 1fr; }
  .flagship-facts div:nth-child(2) { border-right: none; }
}

/* ---------- Team members: large portrait photos ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; } }

.person {
  text-align: center;
  padding: 0;
  background: none;
  transition: transform 0.25s var(--ease);
}
.person:hover { transform: translateY(-4px); }

.person .avatar {
  width: 100%;
  max-width: 210px;
  margin: 0 auto 18px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(36, 29, 23, 0.14);
  transition: box-shadow 0.25s var(--ease);
}
.person:hover .avatar { box-shadow: 0 16px 34px rgba(36, 29, 23, 0.22); }
.person .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.person .who { min-width: 0; }
.person .who .nm {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}
.section-dark .person .who .nm { color: var(--paper); }
.person .who .rl { font-size: 0.88rem; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.person .who .loc { font-size: 0.82rem; color: var(--muted-on-light); }
.section-dark .person .who .loc { color: var(--muted-on-dark); }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.text-tag {
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
}
