/* =========================================================
   PASSPORT PORTFOLIO — SHARED STYLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Caveat:wght@500;600;700&display=swap');

:root{
  --paper:        #ffffff;
  --paper-dark:   #f2f2f2;
  --paper-card:   #fefefe;
  --ink:          #111111;
  --ink-soft:     #444444;
  --muted:        #888888;
  --line:         #dddddd;

  --stamp-blue:   #000000;
  --stamp-green:  #000000;
  --stamp-red:    #000000;
  --stamp-mustard:#000000;

  /* stamp-only accent colors (passport stamps keep color; UI chrome stays b/w) */
  --stampc-blue:    #3a5a8c;
  --stampc-green:   #4f7a5c;
  --stampc-red:     #b5523a;
  --stampc-mustard: #b48a2e;
  --stampc-purple:  #6b4f8c;
  --stampc-teal:    #3a7a7a;
  --stampc-babyblue: #6fa8d8;
  --stampc-pink:      #d97fa3;

  --radius-sm: 6px;
  --radius-md: 12px;

  --font-display: 'Courier Prime', 'Courier New', Courier, monospace;
  --font-hand:    'Caveat', cursive;
  --font-mono:    'Courier Prime', 'Courier New', Courier, monospace;
  --font-body:    'Courier Prime', 'Courier New', Courier, monospace;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- headings / type helpers ---------- */
h1, h2, h3{ font-family: var(--font-display); margin: 0; }
.hand{ font-family: var(--font-mono); }
.mono{ font-family: var(--font-mono); letter-spacing: .02em; }
.label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- NAV ---------- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px dashed var(--line);
}
.site-nav .logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--stamp-green);
}
.site-nav .logo span{ color: var(--ink); }
.nav-links{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--stamp-red); }
.nav-links a.active::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--stamp-red);
  border-radius: 2px;
}
.nav-toggle{ display:none; }

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    inset: 62px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px 32px 26px;
    border-bottom: 1px dashed var(--line);
    display: none;
    gap: 14px;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{
    display: block;
    background: none;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-family: var(--font-mono);
  }
}

/* ---------- STAMP component ---------- */
.stamp{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border: 2px solid var(--c, var(--stamp-blue));
  color: var(--c, var(--stamp-blue));
  opacity: .88;
  background: transparent;
  transition: transform .25s ease, opacity .25s ease;
  user-select: none;
}
.stamp:hover{ transform: rotate(0deg) scale(1.05); opacity: 1; }
.stamp .stamp-title{ font-family: var(--font-mono); font-weight:700; font-size: 12px; line-height:1.25; word-break: break-word; max-width: 92%; }
.stamp .stamp-sub{ font-family: var(--font-mono); font-size: 10px; margin-top:2px; letter-spacing:.04em; }
.stamp .stamp-icon{ font-size: 20px; margin-bottom: 4px; }
.stamp .stamp-icon-img{
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.stamp--tri .stamp-icon-img{ width: 46px; height: 46px; margin-bottom: 3px; }

/* stamps carrying a real photo icon read fine without the passport-stamp
   border/ring, so drop the frame for just those */
.stamp:has(.stamp-icon-img){
  border-color: transparent;
}

.stamp--circle{ width: 128px; height: 128px; border-radius: 50%; border-style: double; border-width: 4px; }
.stamp--hex{
  width: 140px; height: 130px;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
  border-style: dashed;
}
.stamp--tri{
  width: 150px; height: 140px;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  border-style: solid;
  padding-top: 34px;
}
.stamp--rect{
  width: 150px; height: 96px;
  border-radius: 4px;
  border-style: dotted;
  border-width: 3px;
}

.rot-1{ transform: rotate(-6deg); }
.rot-2{ transform: rotate(4deg); }
.rot-3{ transform: rotate(-2deg); }
.rot-4{ transform: rotate(7deg); }
.rot-5{ transform: rotate(-9deg); }

/* ---------- authentic passport-paper texture (shared by career + about) ---------- */
.passport-paper{
  position: relative;
  background-color: var(--paper-card);
  background-image:
    repeating-linear-gradient(115deg, rgba(0,0,0,0.035) 0px, rgba(0,0,0,0.035) 1px, transparent 1px, transparent 6px),
    repeating-linear-gradient(25deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 6px);
}
.passport-paper::before{
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0,0,0,0.14);
  pointer-events: none;
}
.passport-paper::after{
  content: '';
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(0,0,0,0.07);
  pointer-events: none;
}

/* ---------- card / tilt utility ---------- */
.tilt-card{
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tilt-card:hover{
  transform: translateY(-6px) rotate(0deg) !important;
  box-shadow: 0 16px 30px rgba(0,0,0,0.16);
  z-index: 5;
}

/* ---------- section rhythm ---------- */
section{ padding: 90px 0; }
.section-head{ text-align:center; margin-bottom: 54px; }
.section-head .label{ margin-bottom: 8px; }
.section-head h2{ font-size: clamp(28px, 4vw, 42px); }

/* ---------- SIMPLE SIGNATURE FOOTER ---------- */
.site-footer{
  margin-top: 60px;
  border-top: 1px dashed var(--line);
  background: var(--paper-dark);
}
.footer-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 36px 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-links{ display:flex; gap: 20px; flex-wrap: wrap; }
.footer-links a{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.footer-links a:hover{ color: var(--stamp-red); border-color: var(--stamp-red); }
.footer-cta{
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--stamp-red);
  border: 2px solid var(--stamp-red);
  padding: 9px 16px;
  border-radius: 4px;
  transition: background .2s ease, color .2s ease;
}
.footer-cta:hover{ background: var(--stamp-red); color: var(--paper); }
.footer-signoff{
  text-align:center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0 28px;
}

/* ---------- perforated divider ---------- */
.perf-divider{
  height: 0;
  border-top: 2px dashed var(--line);
  margin: 0 32px;
}

/* ---------- utility ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 10px 18px;
  border-radius: 4px;
  background: transparent;
  transition: all .2s ease;
}
.btn:hover{ background: var(--ink); color: var(--paper); }
.btn--accent{ border-color: var(--stamp-red); color: var(--stamp-red); }
.btn--accent:hover{ background: var(--stamp-red); color: var(--paper); }

[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}
