/*
Theme Name: Jervan Cruz Portfolio
Author: Jervan Cruz
Description: Financial research, motion design and selected films.
Version: 1.0.1
Requires PHP: 7.4
Text Domain: jervan-cruz-portfolio
*/
:root {
  color-scheme: dark;
  --bg: #0a0c0e;
  --surface: #111516;
  --ink: #f1f3ef;
  --muted: #b0b5b3;
  --quiet: #939b98;
  --green: #aee9d3;
  --stroke: #2a3030;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
h1,h2,h3,p { margin: 0; }
img { display: block; max-width: 100%; }
.inner { width: min(1136px, calc(100% - clamp(36px, 9.5vw, 152px))); margin-inline: auto; }
.skip { position: absolute; z-index: 5; transform: translateY(-200%); background: var(--ink); color: var(--bg); padding: 10px; }
.skip:focus { transform: none; }
.bar { border-bottom: 1px solid #202626; }
.bar-inner, .foot, .identity, .nav { display: flex; align-items: center; }
.bar-inner { min-height: 78px; justify-content: space-between; gap: 24px; }
.identity { gap: 13px; font-size: 1.05rem; font-weight: 650; letter-spacing: -.045em; }
.identity .personal-mark { width: 36px; height: 29px; object-fit: contain; }
.identity .fallback { font: 800 1.35rem/1 var(--sans); color: var(--green); letter-spacing: -.11em; }
.nav { gap: 29px; font-size: .9rem; }
.nav a { color: var(--muted); }
.nav a:hover,.nav a[aria-current] { color: var(--ink); }
.nav .contact { color: var(--ink); border-radius: 30px; border: 1px solid #464d4e; padding: 7px 16px; }
.nav .contact:hover { border-color: var(--green); }
.intro {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(0,1fr);
  align-items: end;
  gap: clamp(24px,4vw,56px);
  padding: clamp(38px,5.2vw,72px) 0 clamp(32px,4vw,54px);
}
h1 { font-size: clamp(3rem,5.5vw,5.1rem); line-height: 1; letter-spacing: -.065em; font-weight: 520; }
.intro h1 { font-size: min(6vw,4.75rem); font-size: min(6.5cqi,4.75rem); line-height: 1; white-space: nowrap; }
.intro h1 em { font-family: Baskervville, Georgia, serif; font-weight: 400; color: #b6cfbf; letter-spacing: -.055em; }
.intro p { max-width: 38ch; color: var(--muted); font-size: clamp(1rem,1.35vw,1.16rem); }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px,2vw,28px); }
.cover {
  position: relative; display: grid; aspect-ratio: .745; isolation: isolate; overflow: hidden;
  border-radius: 19px; border: 1px solid #363f3d; background: #101918; color: #fff;
  transition: transform .3s, border-color .3s, box-shadow .3s; contain: paint;
}
.cover:hover, .cover:focus-visible { transform: translateY(-5px); border-color: #81908c; box-shadow: 0 14px 32px #0006; }
.cover:focus-visible { outline-offset: 1px; }
.cover.bravos { background: #1c1114; border-color: #463335; }
.cover.explainers { background: #1c2319; border-color: #414538; }
.cover-art, .cover-wash, .brand-layer { position: absolute; inset: 0; }
.cover-art { width: 100%; height: 100%; object-fit: cover; }
.cover-wash { background: linear-gradient(180deg,#03101306 10%,#06101282 47%,#040809de 100%); }
.bravos .cover-wash { background: linear-gradient(180deg,#18090c08,#0e050e70 50%,#0d080cdd); }
.explainers .cover-art { object-position: 51% 45%; transform: scale(1.04); filter: saturate(.83) brightness(.85); transition: transform .6s; }
.explainers:hover .cover-art { transform: scale(1.09); }
.explainers .cover-wash { background: linear-gradient(0deg,#0b100cfa 0%,#101a11a0 27%,#131d1280 57%,#15291c18 100%); }
.brand-layer { display: flex; justify-content: center; align-items: center; padding: 11%; }
.brand-layer img { width: 85%; max-height: 90px; object-fit: contain; filter: drop-shadow(0 3px 12px #0009); }
.collection-logo { font-weight: 720; font-size: clamp(2rem,3.6vw,3.65rem); letter-spacing: -.075em; text-shadow: 0 2px 15px #0006; }
.logo-fallback { font-weight: 750; font-size: clamp(2rem,4vw,3.9rem); line-height: 1; letter-spacing: -.065em; text-align: center; text-shadow: 0 2px 18px #0009; }
.foot { justify-content: space-between; gap: 16px; border-top: 1px solid var(--stroke); padding: 22px 0 32px; margin-top: clamp(35px,4.5vw,61px); font-size: .84rem; }
.foot span { color: var(--quiet); }
.foot a:hover,.text-link:hover { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.detail { padding-top: 28px; }
.back { color: var(--muted); font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #69716e; }
.detail-intro { margin: clamp(26px,4vw,55px) 0 34px; max-width: 880px; }
.detail-intro h1 { font-size: clamp(3rem,6.6vw,6.25rem); margin: 10px 0 20px; }
.kicker { color: var(--green); font-size: .875rem; font-weight: 550; }
.lede { font-size: clamp(1.05rem,1.7vw,1.35rem); color: var(--muted); max-width: 57ch; line-height: 1.5; }
.feature { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(215px,1fr); gap: clamp(21px,3.5vw,50px); align-items: center; border-block: 1px solid var(--stroke); padding: clamp(22px,3.2vw,40px) 0; }
.feature-text h2,.film h2,.more h2,.about-content h2 { font-weight: 550; letter-spacing: -.045em; line-height: 1.11; }
.feature-text h2 { font-size: clamp(1.6rem,3vw,2.65rem); }
.feature-text p,.more p,.about-content p { color: var(--muted); margin-top: 12px; max-width: 57ch; }
.text-link { display: inline-block; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #788780; margin-top: 15px; }
.media { display: block; width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; border: 1px solid var(--stroke); border-radius: 2px; background: #151a1a; }
.media img,.media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.media .play { padding: 0; border: 0; cursor: pointer; background: transparent; position: absolute; inset: 0; display: grid; place-items: center; }
.play span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: #121718d9; border: 1px solid #ffffff8c; }
.play span::after { content: ''; width: 0; height: 0; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.play:hover span { background: #071811; border-color: #c3ecd4; }
.more { padding-top: 31px; }
.more h2,.about-content h2 { font-size: 1.6rem; }
.film-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 24px; }
.film h2 { font-size: 1.5rem; margin: 13px 0 1px; }
.film p { color: var(--muted); }
.film .text-link { font-size: .875rem; margin-top: 7px; }
.about-content { padding: 22px 0; border-top: 1px solid var(--stroke); }
@media (min-width: 1350px) { .projects { gap: 30px; } }
@media (max-width: 800px) {
  .projects { gap: 12px; }
  .cover { border-radius: 14px; }
}
@media (max-width: 650px) {
  .bar-inner { min-height: 65px; gap: 11px; }
  .nav { gap: 16px; font-size: .86rem; }
  .identity { gap: 7px; font-size: .95rem; }
  .identity .personal-mark { width: 29px; }
  .nav .contact { padding: 6px 11px; }
  .intro { grid-template-columns: 1fr; gap: 19px; padding: 38px 0 29px; }
  h1 { font-size: clamp(3rem,10.3vw,4.3rem); }
  .intro h1 { font-size: min(10vw,4.3rem); font-size: min(10.8cqi,4.3rem); }
  .intro p { max-width: 42ch; }
  .projects { grid-template-columns: 1fr; gap: 16px; }
  .cover { width: 100%; aspect-ratio: .84; max-height: 510px; border-radius: 17px; }
  .brand-layer img { max-width: 245px; }
  .collection-logo,.logo-fallback { font-size: 3.35rem; }
  .feature, .film-grid { grid-template-columns: 1fr; }
  .feature { gap: 18px; }
  .film-grid { gap: 30px; }
  .foot { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 360px) { .nav { gap: 10px; } .identity .personal-mark { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }
