@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500&family=Cormorant+SC:wght@400;600&display=swap');

/* ─── Design system ─── */
:root {
  --bg:          #0b0b0e;
  --surface:     #13131a;
  --surface-2:   #1a1a24;
  --border:      #252535;
  --accent:      #c8922a;
  --accent-h:    #e0a830;
  --accent-dim:  rgba(200, 146, 42, 0.12);
  --sky:         #6e8fa8;
  --text:        #cfc8be;
  --text-muted:  #6e6860;
  --white:       #ede8e0;

  --f-head:  'Oswald', sans-serif;
  --f-body:  'Inter', sans-serif;
  --f-serif: 'Cormorant SC', serif;

  --container: 1160px;
  --narrow:    760px;
  --r: 3px;
  --t: 220ms ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-h); }

/* ─── Utilities ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: var(--narrow);    margin: 0 auto; padding: 0 24px; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}
.nav.scrolled {
  background: rgba(11, 11, 14, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--white);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-logo span {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-logo:hover { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: var(--r);
  transition: color var(--t), background var(--t);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--accent-dim);
}
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  margin-left: 8px;
}
.nav-lang a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--r);
}
.nav-lang a:hover,
.nav-lang a.lang-active {
  color: var(--accent);
  background: var(--accent-dim);
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/all3.jpeg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,11,14,0.3) 0%,
    rgba(11,11,14,0.1) 35%,
    rgba(11,11,14,0.7) 70%,
    rgba(11,11,14,0.97) 100%
  );
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 0 32px 72px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--f-serif);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--f-head);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 800px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text);
  max-width: 520px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
}
.btn-primary {
  background: var(--accent);
  color: #0b0b0e;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  color: #0b0b0e;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── Sections ─── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.section-label {
  font-family: var(--f-serif);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--f-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.02em;
}
.section-title + p,
.section-title + .lead {
  margin-top: 20px;
}
.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 20px 0;
}

/* ─── Intro strip ─── */
.intro-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-strip .container {
  display: grid;
  grid-template-columns: 1fr 2px 1fr 2px 1fr 2px 1fr;
  align-items: center;
}
.intro-stat {
  padding: 36px 32px;
  text-align: center;
}
.intro-stat strong {
  display: block;
  font-family: var(--f-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.intro-stat span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}
.intro-divider {
  height: 48px;
  background: var(--border);
  width: 1px;
  justify-self: center;
}

/* ─── Two-column ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.col-img {
  position: relative;
}
.col-img img {
  width: 100%;
  border-radius: var(--r);
  display: block;
}
.col-img::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  pointer-events: none;
}

/* ─── Quote ─── */
.blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--surface);
  border-radius: 0 var(--r) var(--r) 0;
}
.blockquote p {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  color: var(--white);
  font-style: italic;
  line-height: 1.6;
}
.blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ─── Cards grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}
.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body {
  padding: 20px;
}
.card-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--f-serif);
}
.card-title {
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 6px;
  line-height: 1.2;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.tl-year {
  font-family: var(--f-head);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tl-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, opacity 350ms ease;
  opacity: 0.88;
}
.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--t);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.16); }

/* ─── Dark section band ─── */
.band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Page header (inner pages) ─── */
.page-hero {
  padding-top: 128px;
  padding-bottom: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/published/all3.jpeg') center 40% / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }

/* ─── Content prose ─── */
.prose p { margin-bottom: 1.25rem; color: var(--text); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--white); font-weight: 500; }
.prose h3 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* ─── Footer ─── */
.footer {
  background: #070709;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand strong {
  display: block;
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-brand p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--f-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Mobile nav ─── */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 40px;
    background: rgba(11,11,14,0.98);
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 280ms ease;
    gap: 4px;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; padding: 10px 16px; }
  .nav-lang {
    margin-top: 16px;
    padding-left: 16px;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    width: 100%;
  }
}

/* ─── Documents ─── */
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.doc-row:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.doc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.doc-info {
  flex: 1;
  min-width: 0;
}
.doc-info strong {
  display: block;
  font-family: var(--f-head);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 3px;
}
.doc-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.doc-size {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--f-head);
  letter-spacing: 0.06em;
}

/* ─── News ─── */
.news-item { margin-bottom: 0; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-date {
  font-family: var(--f-head);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.news-title {
  font-family: var(--f-head);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.news-body { max-width: none; }

/* ─── Responsive ─── */
/* ─── Prose + sidebar layout (history pages) ─── */
.history-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.history-layout-narrow {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

/* ─── Specs grids (auster, chipmunk) ─── */
.specs-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.specs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .intro-strip .container {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .intro-divider:nth-child(2),
  .intro-divider:nth-child(6) { display: none; }
  .intro-stat { padding: 28px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .hero-content { padding: 0 20px 56px; }
  .history-layout,
  .history-layout-narrow { grid-template-columns: 1fr; gap: 40px; }
  .specs-grid-3 { grid-template-columns: 1fr; }
  .specs-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .intro-strip .container { grid-template-columns: 1fr 1fr; }
  .intro-stat strong { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
