* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Newsreader', Georgia, serif;
  background: #f5eede;
  color: #2c3340;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #d6a32a; color: #2c3340; }

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(4deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(2deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes bubblepop {
  0% { transform: scale(.6) translateY(8px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22160%22 height=%22160%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.9%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* NAV */
.site-header {
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 26px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #2c3340; }
.brand-glasses { width: 54px; height: auto; display: block; }
.brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 13px; }
.nav-link { text-decoration: none; color: #2c3340; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav-link:hover { background: #eadfc6; }
.nav-link--active { background: #eadfc6; }

/* HERO */
.hero {
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 34px 32px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-glasses-wrap { position: relative; cursor: pointer; }
.hero-glasses {
  width: 300px; max-width: 72vw; height: auto; display: block;
  filter: drop-shadow(0 14px 22px rgba(44,51,64,0.18));
  animation: floaty 6s ease-in-out infinite;
}
.hero-glasses-wrap:hover .hero-glasses { animation: wiggle .6s ease; }
.speech-bubble {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  white-space: nowrap; background: #2a3a52; color: #f5eede;
  font-family: 'Space Mono', monospace; font-size: 12px; padding: 8px 14px;
  border-radius: 999px; animation: bubblepop .25s ease;
  box-shadow: 0 10px 20px rgba(42,58,82,.3);
}
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #bf6a3a; margin-top: 30px;
}
.eyebrow--muted { font-size: 12px; color: #8a8273; margin-top: 0; margin-bottom: 22px; }
.eyebrow--trek { font-size: 12px; color: #d6a32a; margin-top: 0; margin-bottom: 18px; }
.hero-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(42px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 14px 0 0; max-width: 14ch;
}
.hero-sub { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; max-width: 30ch; margin: 22px 0 0; color: #3a4150; }
.hero-tag { font-family: 'Newsreader', serif; font-style: italic; font-size: 18px; color: #6a6357; margin: 14px 0 0; }
.accent-text { color: #2f807c; font-style: normal; font-weight: 500; }
.no-italic { font-style: normal; }
.no-wrap { white-space: nowrap; }

/* stripe divider */
.stripe-wrap { max-width: 1080px; width: 100%; margin: 46px auto 0; padding: 0 32px; }
.stripe { display: flex; height: 8px; border-radius: 999px; overflow: hidden; }
.stripe-seg { flex: 1; }

/* ABOUT */
.about { max-width: 720px; width: 100%; margin: 0 auto; padding: 64px 32px 8px; }
.body-text { font-size: 21px; line-height: 1.65; margin: 0 0 26px; }
.body-text:last-child { margin-bottom: 0; }
.pull-quote {
  margin: 0 0 30px; padding: 4px 0 4px 26px; border-left: 4px solid #d6a32a;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 26px;
  line-height: 1.25; letter-spacing: -0.02em; color: #2c3340;
}

/* TREK CALLOUT */
.trek-section { max-width: 720px; width: 100%; margin: 0 auto; padding: 48px 32px 8px; }
.trek-card {
  background: #2a3a52; color: #f1ead9; border-radius: 20px;
  padding: 40px 40px 36px; position: relative; overflow: hidden;
}
.trek-card-stripe { position: absolute; top: 0; left: 0; right: 0; display: flex; height: 6px; }
.trek-card-stripe > div { flex: 1; }
.trek-body { font-size: 20px; line-height: 1.6; margin: 0 0 18px; color: #e7dfcd; }
.trek-highlight {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em;
  margin: 0; color: #fff;
}

/* CTA */
.cta { max-width: 720px; width: 100%; margin: 0 auto; padding: 56px 32px 20px; text-align: center; }
.cta-prompt {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em; margin: 0 0 22px; color: #3a4150;
}
.cta-button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px;
  color: #f5eede; background: #bf6a3a; padding: 16px 30px; border-radius: 999px;
  transition: transform .18s, box-shadow .18s; box-shadow: 0 8px 18px rgba(191,106,58,.28);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(191,106,58,.34); }
.cta-arrow { font-size: 20px; }

.spacer { flex: 1; }

/* FOOTER */
.site-footer { border-top: 1px solid #e3d9c4; margin-top: 56px; }
.footer-inner {
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 26px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; font-family: 'Space Mono', monospace; font-size: 13px; color: #6a6357;
}
.footer-trek { color: #2f807c; }
.footer-link { color: #2c3340; text-decoration: none; border-bottom: 2px solid #d6a32a; padding-bottom: 1px; }

/* PORTFOLIO */
.pf-intro { max-width: 760px; width: 100%; margin: 0 auto; padding: 38px 32px 10px; }
.pf-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(36px, 5.5vw, 60px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.pf-intro-text { font-size: 20px; line-height: 1.6; margin: 0; color: #3a4150; max-width: 56ch; }

.pf-featured-section { max-width: 1080px; width: 100%; margin: 0 auto; padding: 46px 32px 8px; }
.pf-featured-card {
  background: #fffdf7; border: 1px solid #e3d9c4; border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: 0 14px 30px rgba(44,51,64,.08);
}
.pf-featured-body { padding: 40px 40px 36px; display: flex; flex-direction: column; }
.pf-featured-badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf-badge {
  font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
}
.pf-badge--live { color: #f5eede; background: #2f807c; }
.pf-featured-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 38px;
  letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 6px;
}
.pf-featured-url { font-family: 'Space Mono', monospace; font-size: 13px; color: #8a8273; margin-bottom: 18px; }
.pf-featured-desc { font-size: 18px; line-height: 1.6; margin: 0 0 24px; color: #3a4150; }
.pf-muted-em { color: #6a6357; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pf-tag {
  font-family: 'Space Mono', monospace; font-size: 12px; color: #4a6a86;
  background: #eef1f5; border: 1px solid #dde3ec; padding: 5px 11px; border-radius: 999px;
}
.pf-featured-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.pf-btn-primary {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px;
  color: #f5eede; background: #bf6a3a; padding: 12px 22px; border-radius: 999px;
  transition: transform .18s;
}
.pf-btn-primary:hover { transform: translateY(-2px); }
.pf-btn-outline {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px;
  color: #2c3340; background: transparent; border: 2px solid #d8cdb4;
  padding: 10px 20px; border-radius: 999px; transition: background .18s;
}
.pf-btn-outline:hover { background: #eadfc6; }
.pf-featured-shot {
  position: relative; background: repeating-linear-gradient(135deg,#efe7d4,#efe7d4 11px,#eadfc6 11px,#eadfc6 22px);
  min-height: 340px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid #e3d9c4;
}
.pf-shot-placeholder { text-align: center; font-family: 'Space Mono', monospace; color: #9a917e; }
.pf-shot-icon { font-size: 30px; margin-bottom: 10px; }
.pf-shot-label { font-size: 13px; line-height: 1.6; }
.pf-shot-label span { font-size: 11px; opacity: .7; }
.pf-shot-placeholder--sm { font-size: 12px; line-height: 1.5; }
.pf-shot-placeholder--sm span { opacity: .7; }

.pf-grid-section { max-width: 1080px; width: 100%; margin: 0 auto; padding: 44px 32px 8px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pf-card {
  background: #fffdf7; border: 1px solid #e3d9c4; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(44,51,64,.12); }
.pf-card-shot {
  position: relative; height: 158px;
  background: repeating-linear-gradient(135deg,#efe7d4,#efe7d4 10px,#eadfc6 10px,#eadfc6 20px);
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #e3d9c4;
}
.pf-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.pf-status {
  position: absolute; top: 12px; right: 12px; font-family: 'Space Mono', monospace;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.pf-status--live { color: #2f807c; background: #dff0ec; }
.pf-status--todo { color: #a87d18; background: #f7ecd2; }
.pf-status--wip { color: #4a6a86; background: #eef1f5; }
.pf-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.pf-card-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 23px;
  letter-spacing: -0.02em; margin: 0 0 10px;
}
.pf-card-desc { font-size: 16px; line-height: 1.55; margin: 0 0 18px; color: #5b6472; flex: 1; }
.pf-tags--sm { margin-bottom: 18px; }
.pf-tag--sm { font-size: 11px; padding: 4px 9px; }
.pf-card-link {
  text-decoration: none; font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700;
  color: #bf6a3a; border-bottom: 2px solid transparent; align-self: flex-start; transition: border-color .18s;
}
.pf-card-link:hover { border-color: #bf6a3a; }

@media (max-width: 720px) {
  /* Nav */
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 20px; }
  .site-nav { gap: 4px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  /* Portfolio */
  .pf-featured-card { grid-template-columns: 1fr; }
  .pf-featured-shot { min-height: 220px; border-left: none; border-top: 1px solid #e3d9c4; }
  .pf-grid { grid-template-columns: 1fr; }
}
