:root {
  --ink: #14110f;
  --ink-soft: #3b3733;
  --muted: #7a746d;
  --line: #e5e0d8;
  --cream: #f7f3ec;
  --paper: #fbf8f2;
  --accent: #1f4e79;
  --accent-warm: #a8613a;
  --max: 1200px;
  --narrow: 780px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
p { margin: 0 0 1em 0; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3em;
}
.section-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--muted);
}
.text-balance { text-wrap: balance; }

/* NAV */
header.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, border 0.3s, backdrop-filter 0.3s;
}
header.nav.scrolled,
header.nav.solid {
  background: rgba(251,248,242,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
header.nav.solid .brand-logo { filter: none; }
header.nav.solid .nav-links a { color: var(--ink); text-shadow: none; }
header.nav.solid .nav-pill { border-color: var(--ink); color: var(--ink) !important; }
header.nav.solid .nav-pill:hover { background: var(--ink); color: var(--paper) !important; }
header.nav .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
}
.brand-logo {
  height: 40px; width: auto; display: block;
  transition: filter 0.3s;
  filter: invert(1) brightness(1.1) drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
header.nav.scrolled .brand-logo { filter: none; }

.nav-links { display: flex; gap: 32px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.3); position: relative; }
header.nav.scrolled .nav-links a { color: var(--ink); text-shadow: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px; opacity: 0; visibility: hidden; transition: 0.2s;
  min-width: 180px;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu-inner {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; box-shadow: 0 10px 40px -10px rgba(0,0,0,0.2);
}
.nav-dropdown-menu a {
  display: block; padding: 8px 14px; font-size: 13px;
  color: var(--ink-soft) !important; text-shadow: none !important;
  border-radius: 6px;
}
.nav-dropdown-menu a:hover { background: var(--cream); text-decoration: none; }
.nav-pill {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
  transition: 0.2s;
}
.nav-pill:hover { background: #fff; color: var(--ink) !important; text-decoration: none; }
header.nav.scrolled .nav-pill { border-color: var(--ink); color: var(--ink) !important; }
header.nav.scrolled .nav-pill:hover { background: var(--ink); color: var(--paper) !important; }

/* HERO (home) */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: #0a0a09;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg .poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.85));
}
.hero .wrap { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 72px; width: 100%; }
.hero .wrap h1, .hero .wrap .lead, .hero .wrap .eyebrow {
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.hero h1 {
  font-size: clamp(48px, 8vw, 96px); font-weight: 400;
  max-width: 18ch; color: #fff;
}
.hero p.lead { max-width: 55ch; font-size: 18px; color: rgba(255,255,255,0.92); margin-top: 32px; }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em;
  transition: 0.2s;
}
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.6); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: #fff; color: var(--ink); text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent-warm); text-decoration: none; }
.btn-warm { background: var(--accent-warm); color: #fff; }
.btn-warm:hover { background: var(--ink); text-decoration: none; }

/* PAGE HEADER (non-home) */
.page-header {
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 120px 0 36px;
}
.page-header h1 {
  font-size: clamp(42px, 6vw, 72px); font-weight: 400;
  max-width: 20ch;
}
.page-header p.lead { max-width: 60ch; font-size: 18px; color: var(--ink-soft); margin-top: 24px; }
.page-header .eyebrow { margin-bottom: 18px; color: var(--muted); }

/* SECTIONS */
section.section { padding: 36px 0; }
section.section.tight { padding: 20px 0; }
section.section.spacious { padding: 64px 0; }
section.bg-paper { background: var(--paper); }
section.bg-cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.bg-ink { background: var(--ink); color: var(--paper); }
section.bg-ink h2, section.bg-ink h3 { color: #fff; }
section.bg-ink .section-label { color: rgba(255,255,255,0.6); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  border-top: 1px solid var(--line); padding-top: 40px; margin-top: 64px; }
.stats dt { font-family: Fraunces, serif; font-size: 36px; color: var(--ink); }
.stats dd { margin: 8px 0 0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* CARD GRID */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }
.card { display: block; }
.card .image {
  aspect-ratio: 4/3; background: var(--ink);
  background-size: cover; background-position: center;
  border-radius: 12px; overflow: hidden;
  transition: transform 0.6s;
}
.card video.image {
  display: block; width: 100%;
  object-fit: cover;
}
.card.lg .image { aspect-ratio: 5/3; }
.card:hover .image { transform: scale(1.02); }
.card h3 { margin-top: 18px; font-size: 22px; }
.card .meta { margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }
.card p { margin-top: 12px; max-width: 48ch; color: var(--ink-soft); }
.card-grid a.card:hover { text-decoration: none; }
.card-grid a.card:hover h3 { color: var(--accent-warm); }

/* DIVISIONS DARK CARDS */
.div-dark {
  position: relative; aspect-ratio: 5/3; border-radius: 20px; overflow: hidden;
  background-size: cover; background-position: center;
}
.div-dark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,15,0.85), rgba(20,17,15,0.1));
}
.div-dark .div-dark-content {
  position: relative; z-index: 1; padding: 28px;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
}
.div-dark .eyebrow { color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.div-dark h3 { color: #fff; font-size: 36px; font-weight: 400; }

/* PROSE */
.prose { max-width: var(--narrow); margin: 0 auto; }
.prose h2 { font-size: 32px; margin-top: 2em; font-weight: 500; }
.prose p { margin: 0 0 1.2em; font-size: 18px; color: var(--ink-soft); }
.prose blockquote {
  margin: 2em 0; padding-left: 20px;
  border-left: 3px solid var(--accent-warm);
  font-family: Fraunces, serif; font-size: 22px; font-style: italic; color: var(--ink);
}

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.team-card { text-align: center; }
.team-card .photo {
  aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
  background: #e5e0d8; background-size: cover; background-position: center;
}
.team-card .photo-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: .08em; color: #8a7f70;
}
.team-card h3 { margin-top: 16px; font-size: 18px; font-weight: 500; }
.team-card p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }

/* DETAIL HERO */
/* tighter card grid + gallery */
.card-grid { gap: 24px !important; }
.card h3 { margin-top: 12px !important; }
.card p { margin-top: 8px !important; }
.gallery { gap: 8px !important; }
.gallery.large { grid-template-columns: repeat(4, 1fr) !important; }
.gallery.stagger .tile:nth-child(4n+1) { aspect-ratio: 4/5; }
.gallery.stagger .tile:nth-child(4n+2) { aspect-ratio: 1/1; }
.gallery.stagger .tile:nth-child(4n+3) { aspect-ratio: 1/1; }
.gallery.stagger .tile:nth-child(4n+4) { aspect-ratio: 4/5; }
.gallery .tile { border-radius: 2px !important; }
@media (max-width: 800px) {
  .gallery.large { grid-template-columns: repeat(2, 1fr) !important; }
}

/* full-bleed hero image strip used on project pages */
.image-strip {
  width: 100%; aspect-ratio: 21/9;
  background-size: cover; background-position: center;
}

.detail-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden;
}
.detail-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.detail-hero-video { position: absolute; inset: 0; z-index: 0; }
.detail-hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-slides { position: absolute; inset: 0; z-index: 0; }
.detail-hero-slides .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.detail-hero-slides .slide.active { opacity: 1; }
.detail-hero .hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.55));
}
.detail-hero-jump {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 0 24px;
}
.detail-hero-jump a {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 22px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.detail-hero-jump a:hover {
  background: rgba(255,255,255,0.95); color: var(--ink);
  border-color: #fff; text-decoration: none;
}
.detail-hero .wrap { padding-top: 140px; padding-bottom: 48px; position: relative; z-index: 2; }
.detail-hero h1 {
  font-size: clamp(44px, 6vw, 80px); color: #fff; max-width: 22ch; font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}
.detail-hero .eyebrow { color: rgba(255,255,255,0.85); margin-top: 24px; }
.detail-hero a.back {
  color: rgba(255,255,255,0.92); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.2em;
}

/* FOOTER */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 56px 0 32px; }
footer.site-footer h3 { color: #fff; }
footer.site-footer .wrap {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 900px) { footer.site-footer .wrap { grid-template-columns: 1fr 1fr; } }
footer.site-footer .brand-logo { filter: invert(1) brightness(1.1); height: 32px; }
footer.site-footer a { color: rgba(255,255,255,0.75); }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; padding: 0; margin: 16px 0 0; }
footer.site-footer li { margin: 8px 0; font-size: 14px; }
footer.site-footer .col-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5); margin-bottom: 8px; display: block;
}
footer.site-footer .copy {
  grid-column: 1 / -1; padding-top: 40px; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: rgba(255,255,255,0.5);
}

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .tile {
  aspect-ratio: 1/1; border-radius: 8px; background-size: cover; background-position: center;
}

/* Project facts — stats-style grid for type/year/size/neighborhood/address/IG */
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 24px 0 32px;
}
.project-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 10px;
}
.project-facts dd {
  margin: 0;
  font-family: Fraunces, serif;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
}
.project-facts dd a { color: var(--ink); }
.project-facts dd a:hover { color: var(--accent-warm); text-decoration: none; }
@media (max-width: 900px) { .project-facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .project-facts { grid-template-columns: 1fr; } }

/* Project leads — shows which Exxir divisions touched the project */
.project-leads {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.project-leads .lead-item {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.project-leads .lead-item .division {
  font-family: Fraunces, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.project-leads .lead-item .scope {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 900px) { .project-leads { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .project-leads { grid-template-columns: 1fr; } }

/* Tagline callout used at top of detail pages */
.tagline-callout {
  font-family: Fraunces, serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  max-width: 32ch;
  margin: 0 0 32px;
  line-height: 1.2;
}

/* ========================================================================== */
/* LIVE-SITE MOTION + ANNOTATION PATTERNS                                      */
/* Re-creating the Squarespace hand-drawn scribble, section rules, brand list, */
/* carousel, pull-quote banner, and breadcrumb row. Animations are subtle on   */
/* scroll so the page feels alive without being noisy.                         */
/* ========================================================================== */

/* SCRIBBLE OVERLAYS — the hand-drawn circle + underline annotation */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.scribble svg {
  position: absolute;
  pointer-events: none;
  stroke: var(--accent-warm);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  overflow: visible;
}
.scribble.circle svg {
  inset: -14% -8%;
  width: calc(100% + 16%);
  height: calc(100% + 28%);
}
.scribble.underline svg {
  left: -2%;
  right: -2%;
  bottom: -14px;
  width: 104%;
  height: 18px;
}
.scribble svg path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: scribble-draw 1.6s ease-out 0.3s forwards;
}
@keyframes scribble-draw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scribble svg path { animation: none; stroke-dashoffset: 0; }
}

/* SECTION RULE — full-column horizontal line under section labels */
.section-rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 16px 0 32px;
  opacity: 0.85;
}

/* SPLIT HERO — 2-column hospitality hero: headline + linked brand column */
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-split .section-label {
  margin-bottom: 12px;
}
.hero-split .split-headline {
  font-family: Fraunces, serif;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 16ch;
}
.hero-split .brand-links {
  font-family: Fraunces, serif;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.18;
  font-weight: 400;
}
.hero-split .brand-links a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-split .brand-links a:hover {
  color: var(--accent-warm);
  border-bottom-color: var(--accent-warm);
  transform: translateX(4px);
}
.hero-split .brand-links br { line-height: 1.08; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
}

/* PULL-QUOTE BANNER — the dark ink-colored full-bleed callout */
.pullquote-band {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
}
.pullquote-band .pullquote {
  font-family: Fraunces, serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  max-width: 26ch;
  margin: 0 auto;
  text-align: center;
  color: var(--paper);
}
.pullquote-band .pullquote em {
  font-style: italic;
  color: var(--accent-warm);
}

/* CAROUSEL — color-block brand cards with circular arrow controls */
.carousel {
  position: relative;
  margin-top: 16px;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 24px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.carousel-card .block {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background-size: 55% auto;
  background-repeat: no-repeat;
  background-position: center;
}
.carousel-card .meta {
  padding: 20px 24px 24px;
}
.carousel-card .meta h3 {
  font-family: Fraunces, serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.carousel-card .meta p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.carousel-card .meta .pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 18px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.carousel-card:hover .meta .pill {
  background: var(--ink);
  color: var(--paper);
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 24px - 60px);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.72);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.carousel-btn:hover { background: var(--ink); transform: translateY(-50%) scale(1.04); }
.carousel-btn.prev { left: calc(33.33% - 24px); }
.carousel-btn.next { right: calc(33.33% - 24px); }
.carousel-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
@media (max-width: 900px) {
  .carousel-track { grid-auto-columns: 80%; }
  .carousel-btn { display: none; }
}

/* Brand color helpers for carousel blocks */
.bg-paradiso   { background-color: #f4b9c4; }
.bg-villa      { background-color: #6e1a22; }
.bg-mermaid    { background-color: #e8b34b; }
.bg-bareden    { background-color: #1a1a1a; }
.bg-privee     { background-color: #efe6d7; }
.bg-casanova   { background-color: #2f1d2c; }

/* BREADCRUMB STRIP — the ALL PROJECTS / HOME row above the footer */
.breadcrumb-strip {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.breadcrumb-strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.breadcrumb-strip a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}
.breadcrumb-strip a:hover { color: var(--accent-warm); }

/* DARK FOOTER — large-type Exxir LLC version that matches the live site */
footer.site-footer.dark {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.88);
  padding: 72px 0 48px;
}
footer.site-footer.dark .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
footer.site-footer.dark .mark {
  font-family: Fraunces, serif;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  color: #fff;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
footer.site-footer.dark .mark-logo {
  display: block;
  height: clamp(56px, 7vw, 96px);
  width: auto;
  margin: 0 0 20px;
  filter: brightness(0) invert(1);
}
footer.site-footer.dark h4 {
  font-family: Fraunces, serif;
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  margin: 0 0 16px;
}
footer.site-footer.dark a {
  color: rgba(251, 248, 242, 0.88);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  display: inline-block;
  margin-bottom: 6px;
}
footer.site-footer.dark a:hover { color: var(--accent-warm); }
footer.site-footer.dark ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer.dark ul li { margin-bottom: 8px; font-size: 15px; line-height: 1.55; }
footer.site-footer.dark .copy {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 242, 0.5);
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(251, 248, 242, 0.12);
}
@media (max-width: 900px) {
  footer.site-footer.dark .wrap { grid-template-columns: 1fr 1fr; }
  footer.site-footer.dark .mark { grid-column: 1 / -1; }
}

/* FADE-IN-UP on scroll — used to reveal blocks as they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.tagline-callout .accent { color: var(--accent-warm); font-style: italic; }

/* ============================================================
   First-load splash — "Exxir wants you to fall in Love."
   Fades words in, draws underline on "Love.", cross-fades out
   to reveal the homepage. Hidden once shown (3-day cooldown).
   ============================================================ */
html.splash-skip #exxir-splash { display: none !important; }
body.splash-active { overflow: hidden; }

#exxir-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: splash-out 1.2s cubic-bezier(0.4, 0, 0.2, 1) 3.8s forwards;
}
#exxir-splash .splash-text {
  text-align: center;
  font-size: clamp(38px, 7.2vw, 96px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  padding: 0 24px;
}
#exxir-splash .line { display: block; }
#exxir-splash .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(6px);
  animation: splash-word-in 0.75s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
#exxir-splash .word + .word { margin-left: 0.28em; }
#exxir-splash .love { position: relative; }
#exxir-splash .love::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0.02em;
  height: 3px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  animation: splash-underline-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 3.15s forwards;
}

/* Stagger word timings to match the original tape */
#exxir-splash .line-1 .word:nth-child(1) { animation-delay: 0.2s; }
#exxir-splash .line-1 .word:nth-child(2) { animation-delay: 0.45s; }
#exxir-splash .line-1 .word:nth-child(3) { animation-delay: 0.7s; }
#exxir-splash .line-2 .word:nth-child(1) { animation-delay: 1.4s; }
#exxir-splash .line-2 .word:nth-child(2) { animation-delay: 1.75s; }
#exxir-splash .line-2 .word:nth-child(3) { animation-delay: 2.1s; }
#exxir-splash .line-2 .word:nth-child(4) { animation-delay: 2.65s; }

@keyframes splash-word-in {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes splash-underline-in {
  to { transform: scaleX(1); }
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  #exxir-splash .word { opacity: 1; transform: none; filter: none; animation: none; }
  #exxir-splash .love::after { transform: scaleX(1); animation: none; }
  #exxir-splash { animation: splash-out 0.4s ease 1.4s forwards; }
}

/* ============================================================
   Department group + job row — careers listing stub
   Each job is a photo tile with a gradient scrim for legibility.
   ============================================================ */
.dept-group { margin-bottom: 48px; }
.dept-group-header {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.dept-group-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dept-group-jobs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.job-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 40px 44px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 2px 6px rgba(15, 15, 15, 0.08), 0 14px 40px rgba(15, 15, 15, 0.12);
}
.job-row-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: -2;
}
.job-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.6) 38%,
    rgba(15, 15, 15, 0.22) 72%,
    rgba(15, 15, 15, 0.05) 100%
  );
  z-index: -1;
}
.job-row:hover .job-row-bg { transform: scale(1.045); }
.job-row-main { max-width: 760px; }
.job-row-title {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
}
.job-row-summary {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.job-row-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}
.job-row-cta {
  position: absolute;
  top: 28px;
  right: 32px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: background-color 220ms ease, border-color 220ms ease;
}
.job-row:hover .job-row-cta {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 720px) {
  .job-row { min-height: 300px; padding: 32px 24px; }
  .job-row-title { font-size: 26px; }
  .job-row-cta { top: 20px; right: 20px; padding: 8px 14px; font-size: 11px; }
}

/* Project detail: short description; website / Instagram as tiny icons in the facts list */
.project-intro p { margin: 0 0 0.6em; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.project-facts dd.fact-links { display: flex; gap: 14px; align-items: center; }
.project-facts dd.fact-links a { display: inline-flex; color: var(--ink); line-height: 0; }
.project-facts dd.fact-links a:hover { color: var(--accent-warm); }
.project-facts dd.fact-links svg { width: 20px; height: 20px; }

/* Phones: nothing may run off the screen */
html, body { overflow-x: clip; }   /* safety net — the real fixes are below */
@media (max-width: 720px) {
  article.section .prose { padding: 0 20px; }
  .scribble { white-space: normal; }
  .detail-hero { min-height: 78svh; }
  .detail-hero .wrap { padding-bottom: 104px; }   /* clear the Info / Photos buttons */
  .detail-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .project-intro p { font-size: 16px; }
}

/* Grids never grow past the screen because of one long word / email */
body { overflow-wrap: break-word; }
.grid-2 > *, .card-grid > *, .team-grid > *, .gallery > *, footer.site-footer .wrap > *, .contact-cols > * { min-width: 0; }
.gallery .tile { width: 100%; }   /* aspect-ratio tiles sized from their column, not the row height */
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 720px) {
  .contact-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  footer.site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
}

/* Phone menu */
.nav-toggle { display: none; }
@media (max-width: 860px) {
  header.nav .wrap { padding: 16px 20px; }
  .brand-logo { height: 32px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, background .2s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
  header.nav.scrolled .nav-toggle span, header.nav.solid .nav-toggle span, header.nav.nav-open .nav-toggle span { background: var(--ink); box-shadow: none; }
  header.nav.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  header.nav.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { display: none; }
  header.nav.nav-open { background: var(--paper); border-bottom: 1px solid var(--line); }
  header.nav.nav-open .brand-logo { filter: none; }
  header.nav.nav-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; max-height: calc(100svh - 76px); overflow-y: auto;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
  }
  header.nav.nav-open .nav-links a { color: var(--ink); text-shadow: none; display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  header.nav.nav-open .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; min-width: 0; }
  header.nav.nav-open .nav-dropdown-menu-inner { background: none; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  header.nav.nav-open .nav-dropdown-menu a { font-size: 14px; padding: 10px 0; color: var(--ink-soft) !important; }
  header.nav.nav-open .nav-pill { margin-top: 16px; text-align: center; border: 1px solid var(--ink); color: var(--ink) !important; padding: 12px; }
}
.nowrap-desktop { white-space: nowrap; }
@media (max-width: 720px) { .nowrap-desktop { white-space: normal; } }
footer.site-footer a { overflow-wrap: anywhere; }

/* Project cards: "Exxir Retail" label + the internal groups involved */
.card p.groups { margin-top: 4px !important; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); line-height: 1.5; }
