/* ===== Prometheus - Static Clone ===== */

/* ===== Albert Sans (self-hosted variable font) ===== */
@font-face {
  font-family: 'Albert Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/albert-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/albert-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/albert-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/albert-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Variables ===== */
:root {
  --color-primary: #f42069;
  --color-bg: #bada55;
  --color-fg: #111111;
  --color-secondary: #6B6A6A;
  --color-card: #ece7df;
  --color-white: #ffffff;
  --font: 'Albert Sans';
  --sidebar-width: 290px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: clamp(17px, 1.063rem + 0.294vw, 21px);
  font-weight: 500;
  color: var(--color-fg);
  background-color: var(--color-bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-fg);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-primary); }

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

/* ===== Layout: Sidebar + Main ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 5vw, 64px);
  z-index: 100;
}

.sidebar__logo {
  font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.588), 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  white-space: nowrap;
}

.sidebar__logo a { color: var(--color-primary); }
.sidebar__logo a:hover { color: var(--color-primary); }

.sidebar__nav {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar__nav a {
  font-size: clamp(21px, 1.313rem + ((1vw - 3.2px) * 0.221), 24px);
  font-weight: 500;
  display: block;
  padding: 0.15rem 0;
}

.sidebar__copyright {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-fg);
}

/* --- Main content --- */
.main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.main__inner {
  /* Universal cap: every text box / grid in the page is constrained by
     this width. Centered on the full viewport, but clamped to 0 so it
     never overlaps the sidebar on narrower desktops. */
  max-width: 1100px;
  padding: clamp(32px, 5vw, 64px) 0;
  margin-left: max(0px, calc(50vw - 550px - var(--sidebar-width)));
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(36px, 2.25rem + ((1vw - 3.2px) * 2.059), 64px); }
h2 { font-size: clamp(33px, 2.063rem + ((1vw - 3.2px) * 1.691), 56px); margin-bottom: 1rem; }
h3 { font-size: clamp(30px, 1.875rem + ((1vw - 3.2px) * 1.324), 48px); }
h4 { font-size: clamp(27px, 1.688rem + ((1vw - 3.2px) * 0.956), 40px); }
h5 { font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.588), 32px); line-height: 1.25; }
h6 { font-size: clamp(21px, 1.313rem + ((1vw - 3.2px) * 0.441), 27px); line-height: 1.25; }

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

sup {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
}

em { font-style: italic; }
strong { font-weight: 700; }

/* ===== Page Title (pink) ===== */
.page-title {
  color: var(--color-primary);
  font-size: clamp(36px, 2.25rem + ((1vw - 3.2px) * 2.059), 64px);
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== Hero ===== */
.hero {
  padding-top: clamp(64px, 12vw, 96px);
  padding-bottom: clamp(48px, 9vw, 64px);
}

.hero__eyebrow {
  color: var(--color-secondary);
  font-size: clamp(24px, 1.5rem + ((1vw - 3.2px) * 0.588), 32px);
  font-weight: 600;
  margin-bottom: 0.75em;
  margin-top: 0;
}

.hero h1 {
  color: var(--color-primary);
  font-size: clamp(36px, 2.25rem + ((1vw - 3.2px) * 2.059), 64px);
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.15;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: 999px;
  font-family: var(--font);
  font-size: clamp(16px, 1rem + ((1vw - 3.2px) * 0.147), 18px);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--color-fg);
  transition: all 0.2s;
  text-align: center;
  letter-spacing: -0.01em;
}

.btn--dark {
  background: var(--color-fg);
  color: var(--color-white);
  border-color: var(--color-fg);
}
.btn--dark:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-fg);
}
.btn--outline:hover {
  background: var(--color-fg);
  color: var(--color-white);
}

.btn--primary-fill {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary-fill:hover {
  background: #d91b5a;
  border-color: #d91b5a;
  color: var(--color-white);
}

.btn--primary-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--primary-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: #d91b5a;
  border-color: #d91b5a;
  color: var(--color-white);
}

/* ===== Separator (zigzag pattern) ===== */
.separator {
  border: none;
  height: 6px;
  margin: min(32px, 6.4vw) 0;
  background:
    linear-gradient(135deg, var(--color-fg) 25%, transparent 25%) -5px 0,
    linear-gradient(225deg, var(--color-fg) 25%, transparent 25%) -5px 0,
    linear-gradient(315deg, var(--color-fg) 25%, transparent 25%),
    linear-gradient(45deg, var(--color-fg) 25%, transparent 25%);
  background-size: 10px 6px;
  background-repeat: repeat-x;
  opacity: 0.12;
}

/* ===== Two-Column Text ===== */
.text-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(32px, 6.4vw);
  margin-bottom: 2.5rem;
}

/* ===== References list (inline) ===== */
.references-list {
  padding-left: 1.25rem;
  font-size: 0.95em;
  margin-top: 2rem;
}

.references-list li {
  margin-bottom: 0.3rem;
}

.references-list a {
  text-decoration: underline;
}

/* ===== Feature Cards Grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card__body h3 {
  color: var(--color-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card__body p {
  font-size: 0.92em;
  color: var(--color-fg);
  flex: 1;
}

.feature-card__body .btn {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ===== Placeholder Boxes (memorial diagrams) ===== */
.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.placeholder-box {
  aspect-ratio: 4/3;
  border: 2px dashed var(--color-fg);
  background: repeating-linear-gradient(
    45deg,
    transparent 0 12px,
    rgba(0,0,0,0.04) 12px 24px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  opacity: 0.7;
}

figure { margin: 0; }

figcaption {
  font-size: 0.85em;
  color: var(--color-secondary);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* ===== Rig Gallery (memorial photos) ===== */
.rig-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

.rig-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-card);
}

/* ===== Section anchor spacing ===== */
section { scroll-margin-top: 2rem; }

.thanks {
  font-size: 0.9em;
  color: var(--color-secondary);
  margin-top: 2rem;
}

/* ===== Vertical Timeline ===== */
.timeline {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  max-width: 640px;
  margin-top: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: var(--color-fg);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2.25rem;
}

.timeline-entry:last-child { margin-bottom: 0; }

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-fg);
}

.timeline-year {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.timeline-body {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Content Card (beige) ===== */
.card {
  background: var(--color-card);
  padding: clamp(2rem, 3vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.card--three-col {
  display: grid;
  grid-template-columns: 3fr 3.5fr 3.5fr;
  gap: 2.5rem;
}

.card--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.card--two-col-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.card__text-block {
  padding: clamp(2rem, 3vw, 3rem);
}

.card__text-block h2 {
  margin-bottom: 1.25rem;
}

.card__image-block {
  overflow: hidden;
}

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

.card hr {
  border: none;
  border-top: 2px solid var(--color-fg);
  margin-bottom: 1.5rem;
}

/* ===== Info Page ===== */
.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.info-layout p {
  font-size: 0.95em;
}

.benefits-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95em;
}

.benefits-list li {
  margin-bottom: 0.35rem;
}

.cta-center {
  text-align: center;
  margin: 2.5rem 0;
}

.references-section {
  margin: 2rem 0 3rem;
}

.references-section ol {
  padding-left: 1.25rem;
  font-size: 0.92em;
}

.references-section li {
  margin-bottom: 0.4rem;
}

.references-section a {
  text-decoration: underline;
}

/* ===== Contact ===== */
.contact-email {
  font-size: 1rem;
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.footer a {
  color: var(--color-secondary);
}
.footer a:hover { color: var(--color-primary); }

.footer__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__right {
  margin-left: auto;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-fg);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .card--three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .sidebar.open {
    display: flex;
    background: var(--color-bg);
    width: 100%;
    z-index: 150;
  }

  .nav-toggle { display: block; }

  .main {
    margin-left: 0;
  }

  .main__inner {
    padding: 4rem 1.5rem 0;
  }

  .features,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .text-two-col,
  .placeholder-grid,
  .rig-gallery {
    grid-template-columns: 1fr;
  }

  .card--two-col,
  .card--two-col-reverse {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(2rem, 1.5rem + 3vw, 3rem);
  }

  .footer {
    margin-left: 0;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer__right { margin-left: 0; }
}
