/*
Theme Name: EiPortfolio
Theme URI: https://www.behance.net/eiportfolio
Author: Eddie Imparato
Author URI: https://www.linkedin.com/in/eddiei/
Description: A custom one-off theme for EiPortfolio, a modern, classy two-page portfolio site for Creative Director Eddie Imparato.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eiportfolio
*/

/* ===========================================================
   EiPortfolio — Eddie Imparato
   Design tokens
   =========================================================== */
:root{
  --paper: #ffffff;
  --paper-dim: #fbfaf8;
  --ink: #1b1d22;
  --ink-soft: #34363d;
  --grey: #6b6f76;
  --grey-light: #9a9da3;
  --hairline: #e4e2dd;
  --navy: #1f2a44;
  --navy-deep: #141b2e;
  --brass: #a8834a;
  --brass-light: #c9a567;
  --brass-wash: #f6efe2;

  --font-display: "Fraunces", "Iowan Old Style", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --pad: clamp(24px, 5vw, 72px);
}

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

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Skip link ---------- */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
}
.skip-link:focus{ left: var(--pad); top: 12px; }

/* ---------- Focus states ---------- */
a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ===========================================================
   Nav
   =========================================================== */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-mark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.nav-mark span{
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--grey);
  font-weight: 600;
  text-transform: uppercase;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a{
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after{ right: 0; }
.nav-links a.active{ color: var(--ink); }
.nav-links .ext{ color: var(--navy); font-weight: 600; }
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -6px; }
.nav-toggle span::after{ position: absolute; top: 6px; }

@media (max-width: 760px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ width: 100%; padding: 12px 0; }
  .nav-links a::after{ display: none; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero{
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-eyebrow{ margin-bottom: 22px; }
.hero h1{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero-role{
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 20px;
}
.hero p.lede{
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border-radius: 2px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover{ background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost{
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.btn-ghost:hover{ border-color: var(--navy); transform: translateY(-1px); }
.btn-brass{
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-brass:hover{ background: var(--brass); border-color: var(--brass); transform: translateY(-1px); }

.hero-photo-frame{
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.hero-photo-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(38%) contrast(1.03);
  transition: filter .5s ease;
}
.hero-photo-frame:hover img{ filter: grayscale(0%) contrast(1.03); }
.hero-photo-frame::after{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
}
.hero-photo-tag{
  position: absolute;
  left: 0; bottom: -1px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  font-weight: 600;
}

@media (max-width: 820px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-photo-frame{ order: -1; max-width: 320px; aspect-ratio: 4/5; }
}

/* ===========================================================
   Section scaffolding
   =========================================================== */
section{ padding: clamp(56px, 8vw, 100px) 0; }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 22px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}
.section-index{
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--grey-light);
  letter-spacing: 0.05em;
}
.rule{ border: none; border-top: 1px solid var(--hairline); margin: 0; }

/* ---------- About ---------- */
.about{ background: var(--paper-dim); }
.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(32px, 6vw, 72px);
}
.about-lead{
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}
.about-body p{ color: var(--ink-soft); margin: 0 0 18px; }
.about-body p:last-child{ margin-bottom: 0; }

@media (max-width: 760px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Skill index (signature element)
   =========================================================== */
.index-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.index-card{
  background: var(--paper);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 2.6vw, 30px);
  transition: background .25s ease, transform .25s ease;
}
.index-card:hover{ background: var(--brass-wash); transform: translateY(-2px); }
.index-tab{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.index-code{
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy);
}
.index-num{
  font-size: 11px;
  color: var(--grey-light);
  letter-spacing: 0.1em;
}
.index-card h3{
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 10px;
}
.index-card p{
  font-size: 15px;
  color: var(--grey);
  margin: 0;
}

@media (max-width: 900px){
  .index-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .index-grid{ grid-template-columns: 1fr; }
}

/* ===========================================================
   Proof of scale — stat ledger
   =========================================================== */
.ledger{
  background: var(--paper-dim);
}
.stat-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat{
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 24px);
  text-align: left;
  border-left: 1px solid var(--hairline);
}
.stat:first-child{ border-left: none; }
.stat-num{
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.stat-label{
  margin-top: 10px;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.02em;
}
.ledger-note{
  max-width: 68ch;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.ledger-note b{ color: var(--ink); }

@media (max-width: 700px){
  .stat-row{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3){ border-left: none; }
}

/* ===========================================================
   Timeline (journey page)
   =========================================================== */
.timeline{
  position: relative;
  padding-left: clamp(28px, 4vw, 48px);
}
.timeline::before{
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--hairline);
}
.tl-item{
  position: relative;
  padding-bottom: clamp(40px, 5vw, 60px);
}
.tl-item:last-child{ padding-bottom: 0; }
.tl-item::before{
  content: "";
  position: absolute;
  left: calc(-1 * clamp(28px, 4vw, 48px));
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateX(calc(clamp(28px, 4vw, 48px) / 2 - 4.5px));
}
.tl-year{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-role{
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  margin: 0 0 4px;
}
.tl-org{
  font-size: 15px;
  color: var(--grey);
  margin: 0 0 14px;
}
.tl-body{
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- Pull quote blocks ---------- */
.pull{
  background: var(--paper-dim);
}
.pull blockquote{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.32;
  margin: 0;
  max-width: 56ch;
  color: var(--ink);
}
.pull cite{
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 22px;
}

.short-version blockquote{
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  max-width: 58ch;
  margin: 0;
}

/* ===========================================================
   CTA band
   =========================================================== */
.cta-band{
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 100%);
}
.cta-inner{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-eyebrow{ color: var(--brass-light); }
.cta-band h2{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  margin: 10px 0 0;
  max-width: 16ch;
}
.cta-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ===========================================================
   Footer
   =========================================================== */
footer{
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--grey);
}
.footer-links{ display: flex; gap: 22px; }
.footer-links a:hover{ color: var(--navy); }

/* ===========================================================
   Reveal-on-scroll
   =========================================================== */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .hero-photo-frame img{ transition: none; }
}

/* ===========================================================
   Generic entry content (page.php)
   =========================================================== */
.entry-content{
  max-width: 72ch;
  color: var(--ink-soft);
}
.entry-content p{ margin: 0 0 18px; }
.entry-content a{ color: var(--navy); text-decoration: underline; }
