/* Jadigras portfolio. Plain CSS, no build step. */
:root {
  --paper: #f7f5f0;
  --paper-2: #eceaf6;
  --ink: #17140f;
  --muted: #5f574b;
  --accent: #2f45ff;
  --accent-2: #c9e265;
  --line: #dcd9e6;
  --radius: 18px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h3 { font-size: 1.5rem; }
em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1rem; }
section { padding: clamp(4rem, 10vw, 8rem) var(--pad); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-color: var(--line); }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; }
.logo span { color: var(--accent); }
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 500 1rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--paper); }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-big { padding: 1.2rem 2rem; font-size: 1.1rem; }

.hero { position: relative; min-height: min(88vh, 860px); display: grid; align-items: center; padding-top: 4rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted);
  background: #fff8; border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3bb36b; box-shadow: 0 0 0 4px #3bb36b33; }
.hero-title { font-size: clamp(3rem, 10vw, 8.5rem); margin: 1.5rem 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.lede { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.badge { position: absolute; right: var(--pad); bottom: 8%; width: clamp(110px, 12vw, 160px); aspect-ratio: 1;
  display: grid; place-items: center; background: var(--accent-2); border-radius: 50%; }
.badge svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.badge text { font: 600 9.5px var(--sans); letter-spacing: .18em; fill: var(--ink); }
.badge > span { font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .badge { display: none; } }

.reel { padding-top: 0; }
.reel-frame { position: relative; margin: 0 auto; width: 70%; border-radius: 28px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.reel-video { width: 100%; height: 100%; object-fit: cover; }
.reel-caption { position: absolute; left: 1.25rem; bottom: .5rem; color: #fff; font-size: .9rem; text-shadow: 0 1px 8px #0008; }
.reel-sound { position: absolute; right: 1rem; bottom: 1rem; background: #fffd; border: 0; border-radius: 999px; padding: .5rem 1rem; font: 500 .85rem var(--sans); cursor: pointer; }
@media (max-width: 700px) { .reel-frame { width: 100%; border-radius: 16px; } }

.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); }
.kicker { font-size: .95rem; font-weight: 600; color: var(--accent); margin-bottom: .75rem; }
.hint { color: var(--muted); margin-top: 1rem; font-size: .95rem; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .3s, box-shadow .3s; }
.service:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 20px 40px -20px #0003; }
.service .icon { font-size: 1.8rem; color: var(--accent); }
.service h3 { margin: .75rem 0; }
.service p { color: var(--muted); }
.service ul { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); }
.service li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.service li::before { content: "✦ "; color: var(--accent); }

.work { background: var(--ink); color: var(--paper); overflow: hidden; }
.work .hint, .work .card p:not(.tag) { color: #bdb3a3; }
.work-track { display: flex; gap: 1.5rem; width: max-content; }
.card { width: clamp(280px, 30vw, 420px); text-decoration: none; flex-shrink: 0; }
.card figure { margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #2a251e; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.06); }
.card h3 { margin: .25rem 0 .5rem; }
.tag { display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--accent-2); padding: .25rem .6rem; border-radius: 999px; margin: 0; }
@media (max-width: 800px) {
  .work-track { width: auto; flex-direction: column; }
  .card { width: 100%; }
  .work .hint { display: none; }
}

.strip { padding: 3rem 0; overflow: hidden; display: grid; gap: 1rem; }
.strip-row { display: flex; gap: 1rem; width: max-content; }
.strip-row img { width: clamp(200px, 24vw, 340px); aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.strip-b { margin-left: -15vw; }

.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about-img { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 120%; object-fit: cover; }
.about-img figcaption { position: absolute; left: 1rem; bottom: 1rem; background: var(--accent-2); padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; transform: rotate(-3deg); }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); font-size: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
.stats dt { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1; }
.stats dt::after { content: "+"; color: var(--accent); }
.stats dd { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-img { aspect-ratio: 4/3; } }

.timeline-wrap { position: relative; max-width: 52rem; margin-bottom: 3rem; }
.timeline-line { position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-line span { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 2.75rem; }
.timeline li { position: relative; padding: 0 0 2.5rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-2.75rem + 1px); top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline time { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.timeline h3 { margin: .3rem 0; }
.timeline .org { font-weight: 600; margin-bottom: .25rem; }
.timeline p { color: var(--muted); }

.toolkit { background: var(--paper-2); }
.tool-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.tool-group h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.tool-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-group li { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem .4rem .45rem; font-size: .9rem; }
.tool-group img { width: 22px; height: 22px; object-fit: contain; }

.quote-grid { columns: 3 300px; column-gap: 1.25rem; }
.quote { break-inside: avoid; margin: 0 0 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.quote:nth-child(2n) { background: var(--accent-2); border-color: transparent; }
.quote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.quote footer { font-weight: 600; font-size: .95rem; }
.quote footer span { display: block; font-weight: 400; color: var(--muted); }

.archive { overflow: hidden; }
.archive-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.col { display: grid; gap: 1rem; align-content: start; }
.col a { display: block; border-radius: 12px; overflow: hidden; }
.col img { width: 100%; transition: transform .5s; }
.col a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .archive-cols { grid-template-columns: repeat(2, 1fr); } .col:nth-child(3) { display: none; } }

.contact { background: var(--accent); color: #fff; text-align: center; }
.contact .kicker { color: var(--accent-2); }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn-ghost { background: transparent; color: #fff; }
.contact-title { color: #fff; font-size: clamp(3rem, 11vw, 9rem); margin-bottom: 1.5rem; }
.contact p { max-width: 36rem; margin: 0 auto 2rem; font-size: 1.15rem; }
.contact-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.contact .btn:hover { background: var(--accent-2); color: var(--ink); border-color: var(--accent-2); }

.foot { display: flex; justify-content: space-between; padding: 2rem var(--pad); font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.contact :focus-visible { outline-color: var(--accent-2); }
