/*
Theme Name: Frame Studio
Author: OryxVision Productions
Description: A minimal, elegant theme for media production companies. Works with the Frame Studio Toolkit plugin.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: frame-studio
*/

:root{
  --paper:#F4F4F1; --ink:#101214; --graphite:#5B6168; --line:#D9DAD5; --tally:#D6402B;
  --serif:"Instrument Serif",Georgia,"Times New Roman",serif;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --wrap:1200px; --gut:clamp(1.25rem,4vw,3rem);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 1.0625rem/1.65 var(--sans);-webkit-font-smoothing:antialiased}
img,video,iframe{max-width:100%;display:block}
img{height:auto}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{color:var(--tally)}
:focus-visible{outline:2px solid var(--tally);outline-offset:3px}
h1,h2,h3,h4{font-family:var(--serif);font-weight:400;line-height:1.08;letter-spacing:-.01em;margin:0 0 .5em}
h1{font-size:clamp(2.6rem,6.5vw,5.5rem)}
h2{font-size:clamp(2rem,4vw,3.25rem)}
h3{font-size:clamp(1.4rem,2.2vw,1.75rem)}
p{margin:0 0 1.2em}
.wrap{width:min(100% - 2*var(--gut),var(--wrap));margin-inline:auto}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--ink);color:var(--paper);padding:.75rem 1rem;z-index:100}
.skip-link:focus{left:0}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--paper);border-bottom:1px solid transparent;transition:border-color .25s}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
.site-header.is-scrolled{border-bottom-color:var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:4.5rem}
.brand{font-family:var(--serif);font-size:1.7rem;line-height:1;text-decoration:none;position:relative;z-index:60}
.brand img{max-height:2.5rem;width:auto}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2.25rem}
.primary-nav a{display:inline-block;text-decoration:none;font-size:.95rem;font-weight:500;padding:.4rem 0;border-bottom:1px solid transparent}
.primary-nav a:hover,.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a{border-bottom-color:currentColor;color:inherit}
.nav-toggle{display:none}
@media (max-width:820px){
  .nav-toggle{display:flex;flex-direction:column;justify-content:center;gap:6px;width:44px;height:44px;margin-right:-8px;background:none;border:0;padding:0;cursor:pointer;position:relative;z-index:60}
  .nav-toggle .bar{display:block;width:26px;height:2px;background:var(--ink);margin-inline:auto;transition:transform .3s,opacity .2s}
  .primary-nav{position:fixed;inset:0;z-index:55;background:var(--paper);padding:6.5rem var(--gut) 2rem;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;overflow-y:auto}
  .nav-open .primary-nav{opacity:1;visibility:visible}
  .primary-nav ul{flex-direction:column;gap:.2rem}
  .primary-nav a{font-family:var(--serif);font-size:2.6rem;line-height:1.15;border:0;padding:.3rem 0}
  body.nav-open{overflow:hidden}
  .nav-open .bar:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .nav-open .bar:nth-child(2){opacity:0}
  .nav-open .bar:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
}

/* Viewfinder corner marks (used on hero and work thumbnails) */
.hero-frame::after,.work-thumb::after{
  content:"";position:absolute;inset:14px;pointer-events:none;
  background:
   linear-gradient(#fff,#fff) 0 0/22px 2px no-repeat, linear-gradient(#fff,#fff) 0 0/2px 22px no-repeat,
   linear-gradient(#fff,#fff) 100% 0/22px 2px no-repeat, linear-gradient(#fff,#fff) 100% 0/2px 22px no-repeat,
   linear-gradient(#fff,#fff) 0 100%/22px 2px no-repeat, linear-gradient(#fff,#fff) 0 100%/2px 22px no-repeat,
   linear-gradient(#fff,#fff) 100% 100%/22px 2px no-repeat, linear-gradient(#fff,#fff) 100% 100%/2px 22px no-repeat;
}

/* Hero */
.hero{padding-bottom:var(--gut)}
.hero-frame{position:relative;isolation:isolate;overflow:hidden;width:min(100% - 2*var(--gut),1440px);margin-inline:auto;min-height:min(78vh,52rem);background:var(--ink) center/cover no-repeat;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(2rem,4.5vw,3.75rem)}
.hero-frame::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(16,18,20,.3),rgba(16,18,20,.78))}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero-meta{display:flex;align-items:center;gap:.7rem;font-size:.85rem;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.rec-dot{width:10px;height:10px;border-radius:50%;background:var(--tally);animation:rec 1.6s steps(1) infinite}
@keyframes rec{50%{opacity:0}}
.hero h1{max-width:16ch;margin-bottom:.35em}
.hero-text{max-width:36rem;font-size:1.15rem;color:rgba(255,255,255,.86);margin-bottom:1.75rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem}
.hero-copy>*{animation:rise .9s cubic-bezier(.2,.6,.2,1) both}
.hero-copy>:nth-child(2){animation-delay:.12s}.hero-copy>:nth-child(3){animation-delay:.24s}
@keyframes rise{from{opacity:0;transform:translateY(18px)}}
@media (max-width:700px){.hero-frame{min-height:82svh}.hero-text{font-size:1.05rem}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rec-dot,.hero-copy>*{animation:none}
  .hero-video{display:none}
  *{transition-duration:.01ms!important}
}

/* Buttons */
.btn{display:inline-block;padding:.9rem 1.7rem;background:var(--ink);color:var(--paper);border:1px solid var(--ink);font:600 .95rem/1 var(--sans);text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.btn:hover{background:var(--tally);border-color:var(--tally);color:#fff}
.btn--light{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.btn--ghost{background:transparent;color:inherit;border-color:currentColor}
.btn--ghost:hover{background:#fff;color:var(--ink);border-color:#fff}

/* Sections */
.section{padding:clamp(4rem,9vw,8rem) 0}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:2.5rem}
.section-head h2{margin:0}
.more-link{font-weight:600;font-size:.95rem;white-space:nowrap}
.empty-note{color:var(--graphite);border:1px dashed var(--line);padding:1.5rem;margin:0}

.work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem 2rem}
.work-card{display:block;text-decoration:none}
.work-card:hover{color:inherit}
.work-thumb{position:relative;aspect-ratio:16/9;background:#1b1e21;overflow:hidden}
.work-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.2,.6,.2,1)}
.work-thumb::after{opacity:0;transition:opacity .25s}
.work-card:hover .work-thumb::after,.work-card:focus-visible .work-thumb::after{opacity:1}
.work-card:hover img{transform:scale(1.035)}
.work-title{font-family:var(--serif);font-size:1.7rem;line-height:1.15;margin:1rem 0 .2rem}
.work-meta{color:var(--graphite);font-size:.92rem;margin:0}
.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;list-style:none;padding:0;margin:0 0 2.5rem}
.filter-bar a{text-decoration:none;font-weight:500;padding:.25rem 0;border-bottom:1px solid transparent}
.filter-bar .is-active a,.filter-bar a:hover{border-bottom-color:currentColor;color:inherit}

.service-grid,.team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 2rem}
.service{border-top:1px solid var(--ink);padding-top:1.25rem}
.service p{color:var(--graphite);margin:0}
.team-photo{aspect-ratio:4/5;background:var(--line);margin-bottom:1rem;overflow:hidden}
.team-photo img{width:100%;height:100%;object-fit:cover}
.team-member h3{margin:0}
.team-member p{color:var(--graphite);margin:0;font-size:.95rem}
.quote-list{display:grid;gap:3rem}
.quote-list blockquote{margin:0;max-width:44rem}
.quote-list blockquote p{font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.25}
.quote-list cite{font-style:normal;color:var(--graphite);font-size:.95rem}

.about-band{display:grid;grid-template-columns:1fr 1.2fr;gap:clamp(2rem,6vw,6rem);align-items:start;border-top:1px solid var(--line)}
.about-band p{font-size:1.2rem}
.cta-band{background:var(--ink);color:var(--paper);text-align:left}
.cta-band h2{font-size:clamp(2.2rem,5vw,4.2rem);max-width:18ch}
.cta-band p{color:rgba(255,255,255,.75);max-width:34rem}

@media (max-width:900px){
  .service-grid,.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-band{grid-template-columns:1fr}
}
@media (max-width:620px){
  .work-grid,.service-grid,.team-grid{grid-template-columns:1fr}
  .section-head{flex-direction:column;align-items:flex-start}
}

/* Pages and posts */
.page-head{padding:clamp(3rem,7vw,6rem) 0 clamp(1.5rem,3vw,2.5rem)}
.page-head h1{margin:0}
.page-head .lede{color:var(--graphite);font-size:1.2rem;max-width:40rem;margin:1rem 0 0}
.entry-content{max-width:44rem;padding-bottom:clamp(4rem,8vw,7rem)}
.entry-content.is-wide{max-width:none}
.entry-content>*{margin-top:0;margin-bottom:1.4em}
.entry-content h2,.entry-content h3{margin-top:1.6em}
.entry-content img{height:auto}
.entry-content .alignwide{width:min(var(--wrap),100vw - 2*var(--gut));margin-left:50%;transform:translateX(-50%)}
.entry-content blockquote{border-left:2px solid var(--tally);margin-left:0;padding-left:1.5rem;font-family:var(--serif);font-size:1.5rem;line-height:1.3}
.entry-content figcaption{color:var(--graphite);font-size:.9rem;margin-top:.5rem}
.video-frame{aspect-ratio:16/9;background:#000;margin-bottom:2rem}
.video-frame iframe,.video-frame video,.video-frame .wp-video{width:100%!important;height:100%!important}
.project-facts{display:flex;flex-wrap:wrap;gap:1rem 3rem;margin:1.5rem 0 0;padding:1.25rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.project-facts dt{font-size:.85rem;color:var(--graphite)}
.project-facts dd{margin:0;font-weight:600}
.post-nav{display:flex;justify-content:space-between;gap:1rem;border-top:1px solid var(--line);padding:2rem 0 4rem;font-family:var(--serif);font-size:1.4rem}
.post-nav a{text-decoration:none}

.post-list{display:grid;gap:3rem;padding-bottom:3rem}
.post-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:2rem;align-items:center}
.post-item .thumb{aspect-ratio:16/10;background:var(--line);overflow:hidden}
.post-item .thumb img{width:100%;height:100%;object-fit:cover}
.post-item h2{font-size:clamp(1.6rem,3vw,2.2rem)}
.post-item h2 a{text-decoration:none}
.post-item time{color:var(--graphite);font-size:.9rem}
@media (max-width:700px){.post-item{grid-template-columns:1fr}}
.pagination{padding-bottom:4rem}
.pagination .nav-links{display:flex;gap:1rem;flex-wrap:wrap}
.pagination a,.pagination .current{padding:.4rem .8rem;border:1px solid var(--line);text-decoration:none}
.pagination .current{background:var(--ink);color:var(--paper);border-color:var(--ink)}

/* Contact */
.contact-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:clamp(2rem,6vw,6rem);padding-bottom:clamp(4rem,8vw,7rem)}
.contact-details{list-style:none;padding:0;margin:1.5rem 0 0}
.contact-details li{padding:.9rem 0;border-top:1px solid var(--line)}
.contact-details span{display:block;font-size:.85rem;color:var(--graphite)}
.contact-details a{text-decoration:none;font-weight:600}
@media (max-width:820px){.contact-layout{grid-template-columns:1fr}}
.contact-form{display:grid;gap:1.25rem}
.contact-form label{display:grid;gap:.4rem;font-weight:600;font-size:.95rem}
.contact-form input,.contact-form textarea{font:inherit;font-weight:400;padding:.85rem 1rem;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:0;width:100%}
.contact-form input:focus,.contact-form textarea:focus{outline:2px solid var(--ink);outline-offset:0;border-color:var(--ink)}
.contact-form .btn{justify-self:start}
.hp{position:absolute;left:-9999px}
.form-notice{padding:1rem 1.25rem;border-left:3px solid var(--ink);background:#fff;margin-bottom:1.5rem}
.form-notice.is-error{border-color:var(--tally)}

/* Footer */
.site-footer{background:var(--ink);color:var(--paper);padding:clamp(3rem,6vw,5rem) 0 2rem}
.site-footer a{text-decoration:none}
.site-footer a:hover{color:#fff;text-decoration:underline}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:2.5rem;padding-bottom:3rem}
.footer-brand{font-family:var(--serif);font-size:2rem;margin:0 0 .5rem}
.footer-grid p,.footer-grid li{color:rgba(255,255,255,.72)}
.footer-grid h2{font-family:var(--sans);font-size:.9rem;font-weight:600;margin:0 0 1rem;color:#fff}
.footer-grid ul{list-style:none;padding:0;margin:0;display:grid;gap:.4rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:1.5rem;font-size:.85rem;color:rgba(255,255,255,.55)}
@media (max-width:760px){.footer-grid{grid-template-columns:1fr}}
.wp-block-image img,.wp-block-video video{max-width:100%}

/* Homepage slideshow */
.hero-slides{position:absolute;inset:0;z-index:-2}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease}
.hero-slide.is-active{opacity:1}
.hero-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.08);transition:transform 9s linear}
.hero-slide.is-active img{transform:scale(1)}
.hero-top{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.hero-controls{display:flex;align-items:center;gap:.5rem;font-size:.85rem;font-variant-numeric:tabular-nums}
.hero-btn{width:40px;height:40px;display:grid;place-items:center;padding:0;background:rgba(16,18,20,.35);color:#fff;border:1px solid rgba(255,255,255,.55);font:inherit;font-size:1.2rem;line-height:1;cursor:pointer;transition:background .2s,color .2s}
.hero-btn[data-toggle]{font-size:.7rem}
.hero-btn:hover{background:#fff;color:var(--ink)}
.hero-count{min-width:4.2rem;text-align:center;letter-spacing:.04em}
.hero-caption{color:#fff;margin-right:1rem;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.5)}
.hero-caption:hover{color:#fff;border-bottom-color:#fff}
@media (max-width:700px){.hero-caption{display:none}.hero-btn{width:44px;height:44px}}
@media (prefers-reduced-motion:reduce){.hero-slide img{transform:none;transition:none}.hero-slide{transition-duration:.01ms}}

/* About and contact templates */
.about-image,.side-image{background:var(--line);overflow:hidden}
.about-image{aspect-ratio:21/9;margin-bottom:clamp(2rem,5vw,4rem)}
.about-image img,.side-image img{width:100%;height:100%;object-fit:cover}
.side-image{aspect-ratio:4/3;margin-bottom:2rem}
.about-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:clamp(2rem,6vw,6rem);align-items:start}
.about-lede{font-family:var(--serif);font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.2;margin:0;position:sticky;top:7rem}
.about-layout .entry-content{max-width:none}
.entry-content figure{margin-left:0;margin-right:0}
.entry-content .wp-block-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.entry-content .wp-block-gallery figure{margin:0;width:auto!important}
.entry-content .wp-block-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover}
@media (max-width:820px){.about-layout{grid-template-columns:1fr}.about-lede{position:static}.about-image{aspect-ratio:16/10}}
