/* ── TOKENS ── */
:root {
  --cream:   #F5F5DB;
  --orange:  #FE5F04;
  --ink:     #201C1C;
  --yellow:  #F8CB54;
  --pink:    #D3265B;
  --mid:     #6B6556;
  --white:   #FFFFFF;
  --radius:  14px;
  --max:     1080px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: 'Nunito', sans-serif; font-size: 17px; line-height: 1.65; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── LAYOUT ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 36px; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1.5px solid rgba(32,28,28,0.09); padding: 0 36px; }
.nav__inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { font-family: 'Anton', sans-serif; font-size: 1.35rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
.nav__links { display: flex; gap: 32px; list-style: none; }
.nav__links a { font-weight: 700; font-size: 0.9rem; color: var(--mid); position: relative; padding-bottom: 3px; transition: color 0.2s; }
.nav__links a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.22s ease; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

/* ── PAGE HEADER ── */
.page-header { padding: 64px 0 40px; }
.page-header__eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.page-header__title { font-family: 'Anton', sans-serif; font-size: clamp(2.6rem, 5vw, 4rem); text-transform: uppercase; line-height: 1.0; }
.page-header__sub { margin-top: 14px; font-size: 1.05rem; color: var(--mid); max-width: 560px; }

/* ── PORTFOLIO CARDS ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-bottom: 80px; }
.pcard { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid rgba(32,28,28,0.07); transition: transform 0.22s ease, box-shadow 0.22s ease; }
.pcard:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 6px 10px 32px rgba(32,28,28,0.12); }
.pcard__logo { height: 72px; background: var(--white); border-bottom: 1.5px solid rgba(32,28,28,0.06); display: flex; align-items: center; padding: 0 22px; }
.pcard__logo img { max-height: 40px; max-width: 160px; width: auto; object-fit: contain; }
.pcard__body { padding: 20px 22px 24px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag { background: var(--yellow); color: var(--ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.tag--pink { background: var(--pink); color: #fff; }
.tag--orange { background: var(--orange); color: #fff; }
.pcard__title { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; line-height: 1.3; }
.pcard__desc { font-size: 0.9rem; color: var(--mid); line-height: 1.6; }
.pcard__link { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 800; color: var(--orange); }
.pcard__link:hover { color: var(--pink); }

/* ── BLOG CARDS ── */
.blog-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 80px; }
.bcard { background: var(--white); border-radius: var(--radius); border: 1.5px solid rgba(32,28,28,0.07); padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; transition: box-shadow 0.2s, transform 0.2s; }
.bcard:hover { box-shadow: 4px 6px 24px rgba(32,28,28,0.09); transform: translateX(4px); }
.bcard__meta { font-size: 0.78rem; font-weight: 700; color: var(--mid); text-transform: uppercase; margin-bottom: 6px; }
.bcard__title { font-weight: 800; font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; }
.bcard__excerpt { font-size: 0.9rem; color: var(--mid); }
.bcard__tags { margin-top: 10px; display: flex; gap: 6px; }
.bcard__arrow { font-size: 1.4rem; color: var(--orange); align-self: center; transition: transform 0.2s; }
.bcard:hover .bcard__arrow { transform: translateX(4px); }

/* ── ABOUT ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding-bottom: 80px; }
.about-photos { display: flex; flex-direction: column; gap: 14px; }
.about-photos img { width: 100%; height: auto; border-radius: var(--radius); object-fit: contain; }
.about__content h2 { font-family: 'Anton', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); text-transform: uppercase; color: var(--orange); line-height: 1.05; margin-bottom: 20px; }
.about__content p { margin-bottom: 14px; color: var(--mid); }
.about__highlight { background: var(--orange); color: #fff; border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; font-weight: 700; font-size: 1rem; line-height: 1.5; }

/* ── SKILLS / CERTS ── */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.skill-chip { background: var(--white); border: 1.5px solid rgba(32,28,28,0.09); border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; font-weight: 700; text-align: center; }
.cert-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cert-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 700; }
.cert-item::before { content: '✓'; width: 22px; height: 22px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; font-weight: 900; }

/* ── CONTACT ── */
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1.5px solid rgba(32,28,28,0.07); border-radius: var(--radius); padding: 18px 22px; font-weight: 800; font-size: 0.95rem; transition: border-color 0.2s, transform 0.2s; }
.contact-link:hover { border-color: var(--orange); transform: translateX(4px); }
.contact-link__icon { width: 36px; height: 36px; background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link__icon img { width: 28px; height: 28px; object-fit: contain; }
.contact-link__label { flex: 1; }
.contact-link__arrow { color: var(--orange); font-size: 1.1rem; }

/* ── MOMENTS ── */
.moments-intro { max-width: 680px; margin-bottom: 36px; }
.moments-intro p { font-size: 1rem; line-height: 1.75; color: var(--mid); margin-bottom: 12px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 14px; padding-bottom: 80px; }
.mgrid .wide { grid-column: span 2; }
.mgrid .tall { grid-row: span 2; }
.mcard { border-radius: var(--radius); overflow: hidden; position: relative; }
.mcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.mcard:hover img { transform: scale(1.04); }
.mcard__label { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(20,18,18,0.65), transparent); color: #fff; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0; transition: opacity 0.25s ease; }
.mcard:hover .mcard__label { opacity: 1; }
.mcard.h1 { height: 260px; }
.mcard.h2 { height: 340px; }
.mcard.h3 { height: 220px; }
.mcard.h4 { height: 500px; }

/* ── P&O PAGES ── */
.po-hero { padding: 48px 0 36px; }
.po-hero__back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 800; color: var(--mid); text-transform: uppercase; margin-bottom: 28px; transition: color 0.2s; }
.po-hero__back:hover { color: var(--orange); }
.po-hero__tag { font-size: 0.78rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.po-hero__title { font-family: 'Caveat', cursive; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; margin-bottom: 6px; }
.po-hero__role { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.po-hero__meta { font-size: 0.85rem; color: var(--mid); }
.po-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; padding-bottom: 80px; }
.po-col h3 { font-family: 'Nunito', sans-serif; font-size: 1.4rem; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--ink); margin-bottom: 14px; padding-bottom: 0; border-bottom: none; }
.po-col p { font-size: 0.88rem; color: var(--mid); margin-bottom: 10px; line-height: 1.6; }
.po-col ul { padding-left: 16px; margin: 0; }
.po-col li { font-size: 0.88rem; color: var(--mid); margin-bottom: 5px; line-height: 1.5; }
.po-col h4 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px; color: var(--orange); padding-bottom: 6px; border-bottom: 1.5px solid var(--yellow); }
.po-banner { background: var(--yellow); border-radius: var(--radius); padding: 28px 36px; margin-bottom: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.po-banner__num { font-family: 'Anton', sans-serif; font-size: 2rem; color: var(--ink); line-height: 1; }
.po-banner__label { font-size: 0.8rem; font-weight: 700; color: var(--mid); margin-top: 3px; }
.po-banner__stat { text-align: center; }

/* ── COMING SOON ── */
.cs-badge { background: var(--yellow); font-family: 'Anton', sans-serif; font-size: 0.85rem; letter-spacing: 3px; text-transform: uppercase; padding: 8px 20px; border-radius: 30px; display: inline-block; margin-bottom: 24px; }

/* ── FOOTER ── */
.site-footer { border-top: 1.5px solid rgba(32,28,28,0.09); padding: 24px 36px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--mid); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .po-grid, .po-banner { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .bcard { grid-template-columns: 1fr; }
  .bcard__arrow { display: none; }
  .mgrid { grid-template-columns: 1fr 1fr; }
  .mgrid .wide { grid-column: span 2; }
  .mgrid .tall { grid-row: span 1; }
  .mcard.h1, .mcard.h2, .mcard.h3, .mcard.h4 { height: 200px; }
}
@media (max-width: 640px) {
  .nav__inner { flex-direction: column; height: auto; padding: 14px 0; }
  .nav__links { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .wrap { padding: 0 18px; }
  .nav { padding: 0 18px; }
  .page-header { padding: 40px 0 24px; }
  .page-header__title { font-size: 2.2rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: column; gap: 6px; text-align: center; padding: 20px 18px; }
  .mgrid { grid-template-columns: 1fr; }
  .mgrid .wide { grid-column: span 1; }
  .mcard.h1, .mcard.h2, .mcard.h3, .mcard.h4 { height: 240px; }
}

/* ── Performance ── */
img { content-visibility: auto; }
