:root {
  --black: #080705;
  --panel: #17140f;
  --ivory: #f0e7d8;
  --muted: #bdb19f;
  --gold: #b78b44;
  --gold-soft: rgba(183, 139, 68, 0.34);
  --red: #8e2b1e;
  --line: rgba(240, 231, 216, 0.12);
  --page-width: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ivory);
  background:
    radial-gradient(
      circle at top,
      rgba(183, 139, 68, 0.08),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #080705 0%,
      #12100d 50%,
      #080705 100%
    );
  font-family: "Manrope", Arial, sans-serif;
}

a {
  color: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 60px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(8, 7, 5, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  padding: 9px 13px;
  color: var(--ivory);
  border: 1px solid var(--gold-soft);
  background: transparent;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(8, 7, 5, 0.22),
      rgba(8, 7, 5, 0.94)
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(142, 43, 30, 0.22),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #18130d,
      #080705 64%
    );
}

.hero::after {
  position: absolute;
  inset: 26px;
  content: "";
  border: 1px solid rgba(183, 139, 68, 0.24);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(930px, calc(100% - 40px));
  margin: auto;
  padding: 150px 0 clamp(76px, 10vw, 128px);
  text-align: center;
}

.eyebrow,
.timeline-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.values-intro h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.93;
}

.hero-intro {
  max-width: 780px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.85;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button-primary {
  color: #080705;
  background: var(--gold);
}

.button-secondary {
  color: var(--ivory);
}

.button:hover {
  color: #080705;
  background: var(--ivory);
  border-color: var(--ivory);
}

/* =========================================================
   SHARED PAGE SECTIONS
   ========================================================= */

.story-section,
.categories-section,
.values-section,
.founders-section,
.reviews-section,
.contact-section,
.site-footer {
  width: min(
    var(--page-width),
    calc(100% - clamp(22px, 5vw, 76px))
  );
  margin: auto;
}

.story-section,
.categories-section,
.values-section,
.founders-section,
.reviews-section {
  padding: clamp(78px, 10vw, 140px) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(50px, 7vw, 88px);
  text-align: center;
}

.section-heading h2,
.values-intro h2,
.contact-panel h2 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
}

.section-heading > p:last-child,
.values-intro > p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.8;
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background:
    linear-gradient(
      var(--gold),
      rgba(183, 139, 68, 0.05)
    );
}

.timeline-item {
  position: relative;
  margin-bottom: clamp(54px, 7vw, 88px);
}

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

.timeline-date {
  position: relative;
  z-index: 2;
  width: max-content;
  margin: 0 auto 22px;
  padding: 8px 14px;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: var(--black);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.timeline-card {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 62%);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background:
    linear-gradient(
      145deg,
      rgba(30, 26, 20, 0.96),
      rgba(12, 10, 8, 0.96)
    );
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.timeline-card.reverse {
  grid-template-columns: minmax(0, 62%) minmax(240px, 38%);
}

.timeline-card.reverse .timeline-image {
  order: 2;
}

.timeline-card.reverse .timeline-copy {
  order: 1;
}

.timeline-image {
  width: 100%;
  height: clamp(280px, 25vw, 320px);
  min-height: 0;
  overflow: hidden;
  background: #0e0c09;
}

.timeline-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-image img {
  transform: scale(1.035);
}

.placeholder-image {
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(240, 231, 216, 0.5);
  border: 1px dashed rgba(183, 139, 68, 0.42);
  background:
    linear-gradient(
      145deg,
      rgba(183, 139, 68, 0.09),
      rgba(142, 43, 30, 0.08)
    ),
    #0e0c09;
  text-align: center;
}

.timeline-copy {
  display: flex;
  padding: clamp(30px, 4vw, 54px);
  flex-direction: column;
  justify-content: center;
}

.timeline-copy h3,
.category-copy h3,
.value-card h3,
.founder-copy h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1;
}

.timeline-copy p:not(.timeline-kicker),
.category-copy p,
.value-card p,
.founder-copy p,
.review-card blockquote {
  color: var(--muted);
  line-height: 1.75;
}

.timeline-copy p:not(.timeline-kicker) {
  margin-top: 14px;
  margin-bottom: 0;
}

/* =========================================================
   VALUES
   ========================================================= */

.values-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.values-intro {
  position: sticky;
  top: 110px;
}

.values-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(23, 20, 15, 0.74);
}

.value-card span {
  color: var(--red);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
}

.value-card h3 {
  margin-top: 36px;
  font-size: 34px;
}

/* =========================================================
   FOUNDERS
   ========================================================= */

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.founder-card {
  overflow: hidden;
  border: 1px solid var(--gold-soft);
  background: var(--panel);
}

.founder-photo {
  min-height: 390px;
  overflow: hidden;
  background: #0e0c09;
}

.founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
}

.founder-copy {
  padding: 30px;
}

/* =========================================================
   REVIEWS
   ========================================================= */

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--gold-soft);
  background:
    radial-gradient(
      circle at 95% 5%,
      rgba(142, 43, 30, 0.14),
      transparent 28%
    ),
    var(--panel);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.2em;
}

.review-card blockquote {
  margin: 32px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  line-height: 1.35;
}

.review-meta {
  color: rgba(240, 231, 216, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  padding: 20px 0 clamp(80px, 10vw, 130px);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  padding: clamp(40px, 7vw, 90px);
  align-items: center;
  border: 1px solid var(--gold-soft);
  background:
    radial-gradient(
      circle at 92% 20%,
      rgba(142, 43, 30, 0.24),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #18130f,
      #090806
    );
}

.contact-actions {
  margin: 0;
  justify-content: flex-start;
}

.text-link {
  width: 100%;
  margin-top: 8px;
  color: var(--gold);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0 30px;
  border-top: 1px solid var(--gold-soft);
  color: var(--muted);
}

.footer-logo {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(280px, calc(100% - 36px));
    padding: 18px;
    flex-direction: column;
    border: 1px solid var(--gold-soft);
    background: rgba(8, 7, 5, 0.98);
  }

  .main-nav.open {
    display: flex;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-date {
    margin-left: 0;
  }

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

  .timeline-card .timeline-image,
  .timeline-card.reverse .timeline-image {
    order: 0;
  }

  .timeline-card .timeline-copy,
  .timeline-card.reverse .timeline-copy {
    order: 1;
  }

  .timeline-image {
    width: min(100%, 620px);
    height: clamp(210px, 45vw, 290px);
    margin: 0 auto;
  }

  .timeline-copy {
    padding: 30px;
  }

  .timeline-item {
    margin-bottom: 58px;
  }

  .contact-panel,
  .values-section {
    grid-template-columns: 1fr;
  }

  .values-intro {
    position: static;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .site-header {
    min-height: 62px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-symbol {
    display: none;
  }

  .main-nav {
    top: 62px;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    inset: 12px;
  }

  .hero-content {
    width: calc(100% - 34px);
    padding: 118px 0 74px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 66px);
  }

  .hero-intro {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .values-grid,
  .founders-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    margin-bottom: 46px;
  }

  .timeline-date {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .timeline-image {
    width: 100%;
    height: 240px;
    min-height: 0;
  }

  .timeline-image img {
    min-height: 0;
  }

  .timeline-copy {
    padding: 25px 22px 28px;
  }

  .timeline-copy h3 {
    font-size: clamp(29px, 10vw, 38px);
  }

  .timeline-copy p:not(.timeline-kicker) {
    font-size: 14px;
    line-height: 1.7;
  }

  .founder-photo {
    min-height: 270px;
  }

  .founder-photo img {
    min-height: 270px;
  }

  .contact-panel {
    padding: 34px 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .timeline-image img,
  .category-image img {
    transition: none;
  }
}

/* =========================================================
   WHAT WE CURATE — FINAL RESPONSIVE VERSION
   Keep this at the very bottom of the CSS file
   ========================================================= */

.categories-section {
  position: relative;
  padding: clamp(80px, 10vw, 130px) 0;
  text-align: center;
}

/* Optional soft background glow */
.categories-section::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;

  width: min(800px, 90vw);
  height: 420px;

  content: "";
  pointer-events: none;

  background:
    radial-gradient(
      circle,
      rgba(183, 139, 68, 0.08),
      transparent 68%
    );

  transform: translate(-50%, -50%);
}

.categories-section .section-heading {
  margin-bottom: clamp(38px, 5vw, 62px);
}

.categories-intro {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Button container */
.category-buttons {
  display: flex;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;

  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;

  gap: 18px;
}

/* Individual category button */
.category-button {
  position: relative;

  display: inline-flex;
  min-width: 220px;
  min-height: 68px;
  padding: 16px 30px;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border: 1px solid rgba(183, 139, 68, 0.58);
  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(240, 231, 216, 0.045),
      rgba(183, 139, 68, 0.018)
    );

  color: var(--ivory);
  text-decoration: none;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.18);

  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

/* Subtle internal highlight */
.category-button::before {
  position: absolute;
  inset: 4px;

  content: "";
  pointer-events: none;

  border: 1px solid rgba(240, 231, 216, 0.06);
  border-radius: inherit;
}

/* Small decorative gold dot */
.category-button::after {
  width: 7px;
  height: 7px;
  margin-left: 14px;

  content: "";

  border-radius: 50%;
  background: var(--gold);

  box-shadow: 0 0 0 4px rgba(183, 139, 68, 0.1);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.category-button span {
  position: relative;
  z-index: 1;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
}

/* Desktop hover */
.category-button:hover {
  color: #080705;
  border-color: var(--gold);
  background: var(--gold);

  box-shadow:
    0 18px 38px rgba(183, 139, 68, 0.22);

  transform: translateY(-4px);
}

.category-button:hover::after {
  background: #080705;
  box-shadow: 0 0 0 4px rgba(8, 7, 5, 0.12);
  transform: translateX(3px);
}

.category-button:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

/* =========================================================
   CATEGORY BUTTONS — TABLET
   ========================================================= */

@media (max-width: 920px) {
  .category-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
    gap: 16px;
  }

  .category-button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 15px 22px;
  }

  .category-button span {
    font-size: 23px;
  }
}

/* =========================================================
   CATEGORY BUTTONS — MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .categories-section {
    padding: 82px 0;
  }

  .categories-section .section-heading {
    margin-bottom: 34px;
  }

  .categories-intro {
    max-width: 300px;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .category-buttons {
    display: grid;
    width: 100%;
    max-width: 360px;

    grid-template-columns: 1fr;
    gap: 13px;
  }

  .category-button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 15px 24px;

    justify-content: space-between;

    border: 1px solid rgba(183, 139, 68, 0.62);
    border-radius: 999px;

    background:
      linear-gradient(
        180deg,
        rgba(240, 231, 216, 0.055),
        rgba(183, 139, 68, 0.025)
      );

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 24px rgba(0, 0, 0, 0.2);

    text-align: left;
  }

  .category-button span {
    font-size: 22px;
  }

  .category-button::after {
    flex: 0 0 auto;
    margin-left: 12px;
  }

  /*
    Touchscreens do not have a reliable hover state,
    so keep the normal outlined appearance.
  */
  .category-button:hover {
    color: var(--ivory);
    border-color: rgba(183, 139, 68, 0.62);

    background:
      linear-gradient(
        180deg,
        rgba(240, 231, 216, 0.055),
        rgba(183, 139, 68, 0.025)
      );

    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 10px 24px rgba(0, 0, 0, 0.2);

    transform: none;
  }

  .category-button:active {
    color: #080705;
    border-color: var(--gold);
    background: var(--gold);
    transform: scale(0.98);
  }

  .category-button:active::after {
    background: #080705;
  }
}
