:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #666666;
  --eyebrow: #8a8a8a;
  --accent: #000000;
  --border: #e0e0e0;
  --maxw: 900px;
  --header-h: 2.85rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  padding-top: var(--header-h);
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.65;
}

.back-link {
  text-decoration: none;
}
.back-link:hover {
  color: var(--fg);
  opacity: 1;
  text-decoration: underline;
}

.site-header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--header-h);
}

.brand {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-transform: lowercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand:hover {
  opacity: 0.65;
}

.brand-logo {
  height: 1rem;
  width: auto;
}

.lets-connect {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: underline;
}
.lets-connect:hover {
  opacity: 0.65;
}

.site-nav {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 180px;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-copyright {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  position: sticky;
  bottom: 0;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  background: var(--bg);
  margin-top: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  font-weight: 400;
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--fg);
  opacity: 1;
}
.site-nav a.active {
  color: var(--fg);
  font-weight: 700;
}

.container {
  grid-column: 2;
  grid-row: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

.hero {
  text-align: left;
  padding: 2rem 0;
}

.hero p {
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 95%;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  opacity: 0.75;
  text-decoration: none;
}

.pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.pathways-header {
  margin-top: 3.5rem;
}

.pathways-eyebrow {
  display: block;
  color: var(--eyebrow);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pathways-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0.55rem 0 0;
}

.pathway {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  position: relative;
  transition: background 0.2s ease;
}

.pathway:hover {
  background: #f9f9f9;
  opacity: 1;
}

.pathway-label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding-right: 1.5rem;
}

.pathway-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.pathway-arrow {
  font-size: 1rem;
  color: var(--muted);
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.pathway:hover .pathway-arrow {
  transform: translateX(4px);
  color: var(--fg);
}

.workflow {
  margin-top: 3.5rem;
}

.workflow-title {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--eyebrow);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.workflow-statement {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 0.55rem 0 0;
}

.workflow-intro {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 2rem;
  max-width: 95%;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.workflow-step {
  min-height: 16rem;
  perspective: 1000px;
  outline: none;
}

.workflow-card {
  position: relative;
  width: 100%;
  min-height: 16rem;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.workflow-step:hover .workflow-card,
.workflow-step.is-flipped .workflow-card {
  transform: rotateY(180deg);
}

.workflow-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.workflow-card-back {
  transform: rotateY(180deg);
}

.workflow-num {
  position: absolute;
  top: 1.5rem;
  left: 1.25rem;
  font-family: "Monaco", "Menlo", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.workflow-icon {
  margin: 1rem 0 1.25rem;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--fg);
}

.workflow-label {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.workflow-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 18rem;
}

.links {
  margin-top: 2.5rem;
  font-size: 0.95rem;
}

.links a {
  display: block;
  margin: 0.75rem 0;
}

mark {
  background: none;
  color: var(--fg);
  font-weight: 600;
}

.prose h1 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}
.prose code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.9em;
  font-family: "Monaco", "Menlo", monospace;
}


/* Travel Cards Carousel */
.travels {
  margin-top: 4rem;
}

.travels h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 2rem;
  line-height: 1.3;
}

.explorations {
  margin-top: 4rem;
  padding: 2.5rem;
  background: #f9f9f9;
  border-radius: 12px;
}

.explorations h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.3;
}

.explorations p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.cta-button-section {
  display: inline-block;
  background: var(--fg);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cta-button-section:hover {
  opacity: 0.75;
  text-decoration: none;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 -1.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.travel-card {
  flex: 0 0 220px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  height: auto;
  text-decoration: none;
  cursor: pointer;
}

.card-image {
  transition: filter 0.3s ease, brightness 0.3s ease;
}

.travel-card:hover .card-image {
  filter: brightness(1.1);
}

.card-content {
  transition: color 0.3s ease;
}

.travel-card:hover .card-content h3 {
  transition: color 0.3s ease;
  color: var(--accent);
}

.travel-card:hover .card-content p {
  transition: opacity 0.3s ease, color 0.3s ease;
  opacity: 1;
  color: var(--fg);
}

.card-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 0;
  background: transparent;
  color: var(--fg);
}

.card-content h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.carousel-control {
  position: absolute;
  top: 1rem;
  background: #e8e8e8;
  color: #666;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: #d8d8d8;
  color: #000;
}

.carousel-prev {
  right: 5rem;
}

.carousel-next {
  right: 1rem;
}

@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 2;
    position: static;
    width: auto;
    top: auto;
    left: auto;
    height: auto;
    overflow-y: visible;
    flex-direction: row;
    justify-content: flex-start;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1.5rem;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .nav-copyright {
    display: none;
  }

  .site-nav a {
    padding: 0;
    margin: 0;
  }

  .container {
    grid-column: 1;
    grid-row: 3;
  }

  .travel-card {
    flex: 0 0 200px;
  }

  .card-image {
    height: 280px;
  }

  .carousel-control {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .carousel-prev {
    right: 4rem;
  }

  .carousel-next {
    right: 0.5rem;
  }

  .lets-connect {
    font-size: 0.9rem;
  }

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

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    border-right: none;
  }

}
