/*
Theme Name: Kameron Portfolio
Theme URI: https://example.com/kameron
Author: Prashant Mahankali
Description: A lightweight, minimal, dark portfolio theme for cinematographers and filmmakers. Showreel hero, filterable film work with video lightbox, about, skills, credits timeline and contact. Everything is editable from Appearance → Customize and the Films menu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: kameron
Tags: portfolio, one-column, custom-logo, custom-menu, dark, minimal
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f2ea;
  --bg-2: #ece6da;
  --line: rgba(32, 28, 22, 0.14);
  --text: #1d1a16;
  --text-2: #3b362f;
  --muted: #6f685d;
  --dim: #948c7f;
  --accent: #9a7234;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 46px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* No slanted type anywhere */
em, i, cite, var, address, dfn, blockquote { font-style: normal; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  color: var(--text);
}
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 22px;
}
.label {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section { padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(40px, 6vw, 70px); flex-wrap: wrap; }
.section-title { font-size: clamp(40px, 6.2vw, 76px); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  padding: 15px 26px; border: 1px solid var(--line); border-radius: 100px; color: var(--text);
  background: transparent; cursor: pointer; transition: all .3s var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(246, 242, 234, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 14px 0; border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.brand img { max-height: 38px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
.nav a { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav a:hover, .nav .current-menu-item a { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: clamp(60px, 9vw, 110px); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-media .glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 72% 30%, rgba(201,164,106,.28), transparent 70%),
    radial-gradient(35% 40% at 20% 75%, rgba(214,196,168,.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,242,234,.4) 0%, rgba(246,242,234,.15) 40%, var(--bg) 100%); z-index: 1; }
.hero .grain { position: absolute; inset: 0; z-index: 2; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* viewfinder frame */
.viewfinder { position: absolute; inset: 96px var(--gutter) 34px; z-index: 2; pointer-events: none; }
.viewfinder i { position: absolute; width: 26px; height: 26px; border-color: rgba(32,28,22,.28); border-style: solid; border-width: 0; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hud { position: absolute; top: 112px; left: calc(var(--gutter) + 22px); right: calc(var(--gutter) + 22px); z-index: 3; display: flex; justify-content: space-between; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.hud .tc { font-variant-numeric: tabular-nums; }
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-title { font-size: clamp(52px, 10.5vw, 150px); line-height: .96; letter-spacing: -0.035em; max-width: 11ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: .12s; }
.hero-title .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero-realname { font-family: var(--sans); font-weight: 300; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: .03em; color: var(--muted); margin: 22px 0 0; opacity: 0; animation: fade 1s .45s var(--ease) forwards; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 40px; flex-wrap: wrap; opacity: 0; animation: fade 1s .6s var(--ease) forwards; }
.hero-sub { max-width: 46ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 0; }
.hero .eyebrow { opacity: 0; animation: fade 1s .1s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }

/* hero corner icons */
.hero-icons { position: absolute; inset: 96px var(--gutter) auto; z-index: 3; pointer-events: none; display: flex; justify-content: space-between; padding: 16px 18px 0; color: var(--muted); }
.hero-icon { width: 30px; height: auto; opacity: 0; animation: fade 1s .8s var(--ease) forwards; }
.hero-icon--right { width: 34px; }
@media (max-width: 760px) { .hero-icons { padding: 12px 12px 0; } .hero-icon { width: 24px; } .hero-icon--right { width: 27px; } }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 100px; padding: 9px 16px; cursor: pointer; transition: all .25s var(--ease); }
.filters button:hover { color: var(--text); }
.filters button.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.film { grid-column: span 6; position: relative; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.film:nth-child(3n+1) { grid-column: span 12; }
.film:nth-child(3n+1) .film-frame { aspect-ratio: 2.39 / 1; }
.film:nth-child(3n+2):last-child { grid-column: span 12; }
.film:nth-child(3n+2):last-child .film-frame { aspect-ratio: 2.39 / 1; }
.film.is-hidden { display: none; }
.film-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); cursor: pointer; display: block; width: 100%; border: 0; padding: 0; color: inherit; }
.film-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .9; }
.film-frame .ph { position: absolute; inset: 0; }
.film:hover .film-frame img { transform: scale(1.04); opacity: 1; }
.film-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(20,18,15,.25); transform: scale(.85); opacity: 0; transition: all .4s var(--ease); }
.play svg { width: 16px; height: 16px; margin-left: 3px; fill: #fff; }
.film:hover .play, .film-frame:focus-visible .play { opacity: 1; transform: none; }
.film-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 18px; }
.film-meta h3 { font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -0.015em; }
.film-meta h3 a:hover { color: var(--accent); }
.film-meta .label { white-space: nowrap; }
.film-role { color: var(--muted); font-size: 16px; margin-top: 4px; }
.admin-hint { font-family: var(--sans); font-size: 13px; color: var(--dim); border: 1px dashed var(--line); padding: 14px 18px; margin-bottom: 30px; }

/* ---------- About (reference layout) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: clamp(40px, 7vw, 110px); }
.about-title { font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.about-portrait { margin-top: 48px; max-width: 360px; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .8s var(--ease); }
.about-portrait:hover img { filter: none; }
.about-copy { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.6; color: var(--text-2); }
.about-copy p { margin-bottom: 1.15em; }
/* Facts as a film slate */
.facts { margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--text); }
.facts::before { content: ""; grid-column: 1 / -1; height: 16px; border-bottom: 1px solid var(--text); background: repeating-linear-gradient(-55deg, var(--text) 0 14px, transparent 14px 28px); }
.facts div { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-right: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { margin: 0; font-size: 10.5px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; margin-top: clamp(60px, 7vw, 90px); padding-top: 34px; border-top: 1px solid var(--line); }
.skill h3 { font-size: 25px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.skill .num { font-family: var(--sans); font-size: 11px; color: var(--accent); letter-spacing: .14em; display: block; margin-bottom: 14px; }

/* ---------- Credits / Experience ---------- */
.credits { border-top: 1px solid var(--line); }
.credit { display: grid; grid-template-columns: 120px 1fr auto; gap: 30px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.credit:hover { padding-left: 14px; }
.credit:hover h3 { color: var(--accent); }
.credit h3 { font-size: clamp(22px, 2.4vw, 32px); transition: color .3s; }
.credit .year { font-family: var(--sans); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Toolkit / Education ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.plain-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 19px; }
.plain-list li .label { white-space: nowrap; padding-top: 4px; }
.plain-list li > span:last-child { text-align: right; }
.col-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact-big { font-size: clamp(46px, 9vw, 130px); line-height: .98; letter-spacing: -0.035em; margin-bottom: 40px; }
.contact-mail { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3.2vw, 40px); border-bottom: 1px solid var(--line); padding-bottom: 6px; display: inline-block; }
.contact-mail:hover { border-color: var(--accent); }
.contact-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; margin-top: 60px; }
.socials { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; padding: 0; margin: 0; }
.socials a { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.socials a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .label { color: var(--dim); }
.to-top { font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(8,8,8,.94); display: grid; place-items: center; padding: var(--gutter); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-inner { width: min(1200px, 100%); aspect-ratio: 16/9; background: #000; transform: scale(.96); transition: transform .5s var(--ease); }
.modal.is-open .modal-inner { transform: none; }
.modal-inner iframe, .modal-inner video { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; color: #f3efe7; font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

/* ---------- Single / pages ---------- */
.page-hero { padding: 170px 0 60px; }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); }
.single-media { margin-bottom: 60px; }
.single-media .embed { aspect-ratio: 16/9; background: #000; }
.single-media .embed iframe, .single-media .embed video { width: 100%; height: 100%; border: 0; }
.entry { max-width: 760px; font-size: 20px; color: var(--text-2); }
.entry h2, .entry h3 { margin: 1.6em 0 .6em; }
.entry h2 { font-size: 38px; } .entry h3 { font-size: 28px; }
.entry a { color: var(--accent); border-bottom: 1px solid currentColor; }
.entry img { height: auto; margin: 2em 0; }
.entry blockquote { border-left: 1px solid var(--accent); margin: 2em 0; padding-left: 26px; font-size: 1.2em; color: var(--text); }
.single-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 60px; }
.single-facts dd { margin: 6px 0 0; font-family: var(--sans); font-size: 15px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; padding: 60px 0 100px; }
.post-list article { padding: 34px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 10px; }
.alignwide { max-width: 1100px; } .alignfull { max-width: none; }
.wp-caption-text, figcaption { font-family: var(--sans); font-size: 13px; color: var(--dim); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr 1fr; }
  .single-facts { grid-template-columns: 1fr 1fr; }
  .film, .film:nth-child(3n+1) { grid-column: span 12; }
  .film:nth-child(3n+1) .film-frame { aspect-ratio: 16/9; }
  .play { opacity: 1; transform: scale(.8); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; position: relative; z-index: 60; }
  .nav { position: fixed; inset: 0; background: var(--bg); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
  .nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .nav a { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -0.01em; text-transform: none; color: var(--text); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .hud { display: none; }
  .credit { grid-template-columns: 1fr; gap: 6px; }
  .skills { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
