/* ========================================
   Ebunoluwa Omiwole Portfolio — Styles
   ======================================== */

:root {
  --ink: #1A1A1F;
  --ink-soft: #2C2C33;
  --paper: #FCFBF7;
  --paper-dim: #EFECE3;
  --blue: #3868F6;
  --red: #F0473E;
  --yellow: #F9B300;
  --green: #1FA463;
  --green-deep: #16824F;
  --muted-on-dark: #ABA9A4;
  --muted-on-paper: #63636A;

  --font-display: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --font-body: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; padding-top: 72px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: middle; flex: none; stroke-width: 1.8; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
#about, #services, #catalog, #contact { scroll-margin-top: 88px; }

/* ---------- SITE NAV ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--paper); border-bottom: 1px solid rgba(26,26,31,0.08); transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.site-nav.is-scrolled { box-shadow: 0 10px 26px rgba(26,26,31,0.1); border-color: rgba(26,26,31,0.12); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-nav__mark { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: 0.01em; flex: none; }
.site-nav__mark span { color: var(--blue); }
.site-nav__panel { display: flex; align-items: center; gap: 30px; }
.site-nav__link { font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-on-paper); text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color 0.18s ease, border-color 0.18s ease; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--ink); border-color: var(--blue); }
.site-nav__cta { font-family: var(--font-body); font-weight: 700; font-size: 13px; background: var(--green); color: #fff; padding: 9px 18px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background 0.18s ease, transform 0.18s ease; }
.site-nav__cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.site-nav__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.site-nav__toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform 0.22s ease, opacity 0.22s ease; }
.site-nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.site-nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { background: var(--paper); color: var(--ink); position: relative; overflow: hidden; padding: 64px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
h1.hero__headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 22px; }
h1.hero__headline em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--blue); }
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--muted-on-paper); max-width: 46ch; margin: 0 0 34px; }
.hero__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn { font-family: var(--font-body); font-weight: 700; font-size: 15px; border: none; border-radius: 10px; padding: 15px 26px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.btn--primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(31,164,99,0.28); }
.link-arrow { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(26,26,31,0.3); padding-bottom: 2px; transition: border-color 0.18s ease, color 0.18s ease; }
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }
.social-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social-links__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-paper); margin-right: 4px; }
.social-link { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--paper-dim); color: var(--ink); border: 1px solid rgba(26,26,31,0.08); box-shadow: 0 8px 18px rgba(26,26,31,0.08); transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; text-decoration: none; }
.social-link:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); box-shadow: 0 14px 24px rgba(26,26,31,0.16); }
.social-link .icon { width: 18px; height: 18px; }
.hero__visual { justify-self: end; display: grid; gap: 18px; width: min(100%, 420px); }
.hero__photo { position: relative; border-radius: 26px; overflow: hidden; background: var(--paper-dim); box-shadow: 0 22px 44px rgba(26,26,31,0.14); aspect-ratio: 4 / 5; }
.hero__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(180deg, rgba(26,26,31,0) 0%, rgba(26,26,31,0.34) 100%); pointer-events: none; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__label { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; }
.hero__label-copy { max-width: 15ch; }
.hero__label-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 6px; color: rgba(255,255,255,0.78); }
.hero__label-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; margin: 0; }
.hero__label-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(252,251,247,0.16); border: 1px solid rgba(252,251,247,0.22); backdrop-filter: blur(10px); border-radius: 999px; padding: 8px 12px; white-space: nowrap; }
.hero__caption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-paper); margin: 0; text-align: right; }
.polaroid-stack { display: flex; flex-direction: row; justify-content: center; margin-top: 32px; position: relative; }
.polaroid { background: #fff; padding: 8px; box-shadow: 0 8px 20px rgba(26,26,31,0.12); border-radius: 2px; width: min(180px, 40%); flex: none; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.polaroid img { width: 100%; display: block; border-radius: 1px; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid-stack .polaroid:nth-child(1) { transform: rotate(-4deg); margin-right: -40px; z-index: 2; }
.polaroid-stack .polaroid:nth-child(2) { transform: rotate(3deg); z-index: 1; }
.polaroid-stack .polaroid:hover { transform: rotate(0deg) scale(1.03); box-shadow: 0 12px 32px rgba(26,26,31,0.18); z-index: 10; }

/* ---------- ABOUT ---------- */
.about { background: var(--paper-dim); padding: 92px 0 88px; border-bottom: 1px solid rgba(26,26,31,0.08); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.section-title em { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.about .section-title em { color: var(--red); }
.services .section-title em { color: var(--green-deep); }
.catalog .section-title em { color: #B98600; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 12px 0 0; }
.about__body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; }
.about__body strong { color: var(--ink); }
.stat-tag { display: inline-flex; align-items: center; gap: 12px; background: var(--blue); color: #fff; border-radius: 4px 14px 14px 4px; padding: 16px 22px; margin-top: 26px; box-shadow: 0 14px 26px rgba(56,104,246,0.25); }
.stat-tag__num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; }
.stat-tag__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); text-transform: uppercase; line-height: 1.4; }

/* ---------- SERVICES ---------- */
.services { padding: 88px 0; border-bottom: 1px solid rgba(26,26,31,0.08); }
.services__head { max-width: 60ch; margin-bottom: 44px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-dim); border: 1px solid var(--paper-dim); }
.service-cell { background: var(--paper); padding: 30px 32px; border-left: 3px solid transparent; transition: border-color 0.2s ease, background 0.2s ease; }
.service-cell:hover { background: var(--paper-dim); }
.service-cell:nth-child(4n+1):hover { border-left-color: var(--blue); }
.service-cell:nth-child(4n+2):hover { border-left-color: var(--red); }
.service-cell:nth-child(4n+3):hover { border-left-color: var(--yellow); }
.service-cell:nth-child(4n+4):hover { border-left-color: var(--green); }
.service-cell__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; }
.service-cell:nth-child(4n+1) .service-cell__label { color: var(--blue); }
.service-cell:nth-child(4n+2) .service-cell__label { color: var(--red); }
.service-cell:nth-child(4n+3) .service-cell__label { color: #B98600; }
.service-cell:nth-child(4n+4) .service-cell__label { color: var(--green-deep); }
.service-cell__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 8px; }
.service-cell__desc { font-size: 14.5px; line-height: 1.55; color: var(--muted-on-paper); margin: 0; }
.skills-panel { margin-top: 40px; background: var(--paper); border: 1px solid rgba(26,26,31,0.1); border-radius: 14px; padding: 34px 36px 30px; }
.skills-panel__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-paper); margin: 0 0 22px; }
.skills-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 44px; }
.skill { display: flex; flex-direction: column; gap: 9px; }
.skill__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.skill__name { font-size: 14px; font-weight: 600; }
.skill__tier { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }

/* ---------- CATALOG ---------- */
.catalog { background: var(--paper-dim); padding: 92px 0 100px; }
.catalog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 46px; }
.catalog__head-copy { max-width: 56ch; }
.catalog__link { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.catalog__link:hover { color: var(--green-deep); border-color: var(--green-deep); }
.catalog__grid { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.catalog__grid::-webkit-scrollbar { display: none; }
.card { position: relative; flex: 0 0 auto; min-width: 340px; width: 340px; opacity: 0; transform: translateY(18px); animation: cardIn 0.6s ease forwards; animation-play-state: paused; }
.card.is-visible { animation-play-state: running; }
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }
.card__frame { border-radius: 10px; overflow: hidden; background: var(--ink); aspect-ratio: 4 / 3; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__frame { transform: translateY(-4px); box-shadow: 0 20px 34px rgba(26,26,31,0.22); }
.card:hover .card__frame img { transform: scale(1.04); }
.card__tag { position: absolute; top: 8px; left: 10px; z-index: 3; display: flex; align-items: center; gap: 7px; background: var(--blue); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; padding: 6px 12px 6px 10px; border-radius: 3px 10px 10px 3px; box-shadow: 0 6px 14px rgba(26,26,31,0.22); transform-origin: top left; transition: transform 0.28s ease; }
.card__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); flex: none; }
.card__tag--red { background: var(--red); }
.card__tag--yellow { background: var(--yellow); color: var(--ink); }
.card__tag--yellow::before { background: rgba(26,26,31,0.45); }
.card__tag--green { background: var(--green); }
.card:hover .card__tag { transform: rotate(-6deg); }
.card__body { padding: 18px 2px 0; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.25; margin: 0 0 6px; }
.card__desc { font-size: 13.5px; color: var(--muted-on-paper); line-height: 1.5; margin: 0; }

/* ---------- CONTACT ---------- */
.contact { background: var(--ink); color: var(--paper); padding: 96px 0 40px; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay; background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"140\" height=\"140\"><filter id=\"n\"><feTurbulence type=\"fractalNoise\" baseFrequency=\"0.85\" numOctaves=\"2\" stitchTiles=\"stitch\"/></filter><rect width=\"100%25\" height=\"100%25\" filter=\"url(%23n)\" opacity=\"0.06\"/></svg>'); }
.contact > .wrap { position: relative; z-index: 1; }
.contact__top { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding-bottom: 46px; }
.contact__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 12px 0 18px; }
.contact__title em { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--yellow); }
.contact__sub { color: var(--muted-on-dark); font-size: 16px; line-height: 1.6; max-width: 44ch; }
.receipt { border-top: 1px dashed rgba(252,251,247,0.32); padding-top: 22px; }
.receipt-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 14px; padding: 11px 0; border-bottom: 1px dashed rgba(252,251,247,0.18); text-decoration: none; color: var(--paper); }
.receipt-row:last-child { border-bottom: none; }
.receipt-row__label { color: var(--muted-on-dark); letter-spacing: 0.04em; }
.receipt-row__value { display: inline-flex; align-items: center; gap: 8px; }
a.receipt-row:hover .receipt-row__value { color: var(--blue); }
a.receipt-row:hover .receipt-row__label { color: var(--paper); }
.receipt-row__value--static { color: var(--muted-on-dark); }
.contact__foot-back { color: var(--muted-on-dark); text-decoration: none; transition: color 0.18s ease; }
.contact__foot-back:hover { color: var(--paper); }
.contact__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 40px; margin-top: 40px; border-top: 1px solid rgba(252,251,247,0.14); font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) { .site-nav__toggle { display: flex; } .site-nav__panel { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; background: var(--paper); box-shadow: 0 14px 26px rgba(26,26,31,0.12); border-bottom: 1px solid rgba(26,26,31,0.08); padding: 22px 28px 30px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; } .site-nav__panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 56px; } .hero__visual { justify-self: start; } .about__grid { grid-template-columns: 1fr; gap: 34px; } .services__grid { grid-template-columns: repeat(2, 1fr); } .catalog__grid { gap: 22px; } .card { min-width: 280px; width: 280px; } .contact__top { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 600px) { .wrap { padding: 0 20px; } .services__grid { grid-template-columns: 1fr; } .catalog__grid { display: grid; grid-template-columns: 1fr; gap: 34px; overflow: visible; } .card { flex: none; min-width: 0; width: auto; } .skills-panel__grid { grid-template-columns: 1fr; } .skills-panel { padding: 26px 22px 24px; } .hero { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .card__frame, .card__frame img, .card__tag, .btn { animation: none !important; transition: none !important; } .card { opacity: 1; transform: none; } }
