/* ==========================================================================
   DURA HOME — Archive Site Design System
   ========================================================================== */

:root {
  /* Palette */
  --ink: #1B2A3D;
  --paper: #EDE8DA;
  --paper-light: #F5F2E9;
  --blueprint: #2F5D8A;
  --verdigris: #4C7A6B;
  --brick: #A34A3C;
  --solar: #C98A1F;
  --line: rgba(27, 42, 61, 0.18);
  --line-strong: rgba(27, 42, 61, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --measure: 68ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blueprint);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1em; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.measure { max-width: var(--measure); }

/* Eyebrow / label style — used sparingly, only where it encodes real structure */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.wordmark small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
  border-bottom-color: var(--brick);
}

.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    cursor: pointer;
  }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-bottom: 14px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Hero + Stack Diagram (signature element)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink) url('../images/hero-map-black.png') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27,42,61,0.88) 0%, rgba(27,42,61,0.72) 55%, rgba(27,42,61,0.55) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
  }
}

.hero__text-panel {
  background: var(--paper) url('../images/hero-map-grey.png') center / cover no-repeat;
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line-strong);
}

.hero__text-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(237, 232, 218, 0.88);
}

.hero__text-panel > * {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 18px;
  display: block;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--ink);
}

.hero p.lede {
  font-size: 19px;
  max-width: 46ch;
  opacity: 0.85;
  color: var(--ink);
}

.hero__diagram-card {
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  padding: 28px 24px 20px;
  max-width: 360px;
  margin: 0 auto;
}

/* Stack diagram: four staggered blocks representing the vertical-array
   stacking concept — the project's own defining engineering idea. */
.stackdiagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.stackdiagram .block {
  transform-origin: center;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.stackdiagram .block:nth-child(1) { animation-delay: 0.05s; }
.stackdiagram .block:nth-child(2) { animation-delay: 0.18s; }
.stackdiagram .block:nth-child(3) { animation-delay: 0.31s; }
.stackdiagram .block:nth-child(4) { animation-delay: 0.44s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stackdiagram .block { animation: none; opacity: 1; }
}

/* ==========================================================================
   Pillars grid
   ========================================================================== */

.pillars {
  padding: 56px 0;
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

@media (max-width: 860px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

.pillar-card {
  background: var(--paper-light);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink);
  transition: background 0.2s ease;
}
.pillar-card:hover { text-decoration: none; }

.pillar-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.55;
}

.pillar-card img {
  margin-bottom: 4px;
}

.pillar-card h3 {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.pillar-card p {
  font-size: 14.5px;
  opacity: 0.8;
  margin: 0;
}

.pillar-card .go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pillar-card--diverse { border-top: 4px solid var(--verdigris); }
.pillar-card--urban { border-top: 4px solid var(--brick); }
.pillar-card--resilient { border-top: 4px solid var(--blueprint); }
.pillar-card--adaptable { border-top: 4px solid var(--solar); }

.pillar-card--diverse:hover { background: color-mix(in srgb, var(--verdigris) 10%, var(--paper-light)); }
.pillar-card--urban:hover { background: color-mix(in srgb, var(--brick) 10%, var(--paper-light)); }
.pillar-card--resilient:hover { background: color-mix(in srgb, var(--blueprint) 10%, var(--paper-light)); }
.pillar-card--adaptable:hover { background: color-mix(in srgb, var(--solar) 10%, var(--paper-light)); }

/* ==========================================================================
   Statement block
   ========================================================================== */

.statement {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
}

.statement blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  max-width: 42ch;
}

/* ==========================================================================
   Section generic
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section__head {
  margin-bottom: 36px;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-top: 8px;
}

/* ==========================================================================
   Carousel (replaces old RevSlider)
   ========================================================================== */

.carousel {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
}

.carousel__track {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}

.carousel__slide.is-active { opacity: 1; }

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(27,42,61,0.85), transparent);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.carousel__dot.is-active { background: var(--brick); border-color: var(--brick); }

.carousel__arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
}
.carousel__arrow:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--paper-light);
}

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0.75;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.footer__archival-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 46ch;
  opacity: 0.7;
}

.footer__social a {
  margin-right: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Team grid
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin: 24px 0 48px;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--paper);
}

.team-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.team-name {
  font-size: 13.5px;
  line-height: 1.3;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sponsor grid
   ========================================================================== */

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  margin: 24px 0 48px;
}

.sponsor-tile {
  background: var(--paper-light);
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  min-height: 56px;
}
.sponsor-tile:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.sponsor-tile--nolink { opacity: 0.6; }
.sponsor-tile--nolink:hover { background: var(--paper-light); color: var(--ink); }

.sponsor-tile--logo {
  justify-content: center;
  padding: 14px;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(0%);
}

/* ==========================================================================
   Timeline (History page)
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 24px 0 8px;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}

.timeline-item {
  padding: 4px 0 32px 24px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}

.timeline-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-item p {
  max-width: 62ch;
  opacity: 0.85;
  margin-bottom: 0;
}

.timeline-photo {
  display: block;
  margin-top: 16px;
  max-width: 300px;
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #000;
  padding: 10px;
  box-sizing: border-box;
}

/* Consistent "archival plate" frame for supporting images on pillar pages */
.pillar-figure {
  display: block;
  width: 100%;
  max-width: 840px;
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  background: #000;
  padding: 12px;
  box-sizing: border-box;
}

.pillar-figure--dark {
  background: #000;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
