/*
Theme Name: Monolith
Theme URI: https://example.com/monolith
Author: Monolith Studio
Author URI: https://example.com
Description: A dense, cinematic production-studio theme for editing, animation, design and applied-AI shops. Homepage hero, stats, quote and contact details are all editable in the Customizer; Services, Work/Projects and Team are editable custom post types. Block-editor ready (wide alignment, brand color palette, editor styles) so plugins like GreenShift add their blocks and animations using this theme's design out of the box.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monolith
*/

/* ============================================================
   MONOLITH — Creative + AI Production Studio
   Design tokens
   ============================================================ */
:root{
  --bg: #0B0B0C;
  --bg-alt: #131315;
  --bg-raised: #18181B;
  --line: #29292D;
  --fg: #F2EFE9;
  --fg-dim: #A7A39A;
  --muted: #6F6C66;
  --accent: #FF4E1F;
  --accent-deep: #C81E3A;
  --accent-soft: rgba(255,78,31,0.12);

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --container: 1400px;
  --edge: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:pointer; }
h1,h2,h3,h4,p{ margin:0; }

::selection{ background: var(--accent); color:#0B0B0C; }

.wrap{ max-width: var(--container); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============ Custom cursor (desktop only, decorative) ============ */
.cursor-dot{
  position: fixed; top:0; left:0; width:8px; height:8px; border-radius:50%;
  background: var(--accent); pointer-events:none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: opacity .2s ease;
}
.cursor-ring{
  position: fixed; top:0; left:0; width:38px; height:38px; border-radius:50%;
  border:1px solid var(--fg-dim); pointer-events:none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s ease, opacity .2s ease;
}
.cursor-ring.is-active{ width:64px; height:64px; border-color: var(--accent); }
@media (hover:none), (pointer:coarse){
  .cursor-dot, .cursor-ring{ display:none; }
}

/* ============ Top bar / progress ============ */
.progress-bar{
  position: fixed; top:0; left:0; height:2px; width:0%; background: var(--accent);
  z-index: 1001; transition: width .1s linear;
}

/* ============ Nav ============ */
.site-nav{
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  display:flex; align-items:center; justify-content:space-between;
  padding: 22px var(--edge);
  mix-blend-mode: normal;
}
.site-nav .brand{
  font-family: var(--mono); font-size: 15px; letter-spacing: .04em;
  display:flex; align-items:center; gap:10px;
}
.site-nav .brand .dot{ width:8px; height:8px; border-radius:50%; background: var(--accent); display:inline-block; }
.nav-links{ display:flex; gap: 36px; }
.nav-links a{
  font-size: 14px; letter-spacing:.02em; color: var(--fg-dim);
  position: relative; padding: 4px 0;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--fg);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current{ color: var(--fg); }
.nav-links a:hover::after, .nav-links a.is-current::after{ width:100%; }

.nav-cta{
  font-family: var(--mono); font-size: 13px; padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 100px;
  transition: border-color .3s ease, background .3s ease;
}
.nav-cta:hover{ border-color: var(--accent); background: var(--accent-soft); }

.menu-toggle{
  display:none; flex-direction:column; gap:5px; width:28px; z-index:1002;
}
.menu-toggle span{ height:1.5px; width:100%; background: var(--fg); transition: transform .3s var(--ease), opacity .3s ease; }

.menu-overlay{
  position: fixed; inset:0; background: var(--bg); z-index: 1001;
  display:flex; flex-direction:column; justify-content:center;
  padding: var(--edge);
  transform: translateY(-100%);
  transition: transform .6s var(--ease);
}
.menu-overlay.is-open{ transform: translateY(0); }
.menu-overlay a{
  font-family: var(--display); font-weight:600;
  font-size: clamp(36px, 9vw, 88px); line-height:1.05;
  display:block; padding: 8px 0; color: var(--fg-dim);
  transition: color .3s ease;
}
.menu-overlay a:hover{ color: var(--fg); }
.menu-overlay .menu-meta{
  margin-top: 48px; display:flex; gap:48px; font-family: var(--mono); font-size:13px; color: var(--muted);
}

@media (max-width: 860px){
  .nav-links, .nav-cta{ display:none; }
  .menu-toggle{ display:flex; }
}

/* ============ Buttons ============ */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 14px;
  padding: 15px 28px; border-radius: 100px;
  border: 1px solid var(--fg);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover{ background: var(--fg); color: var(--bg); }
.btn.btn-solid{
  background: var(--accent); border-color: var(--accent); color: #0B0B0C;
}
.btn.btn-solid:hover{ background: transparent; color: var(--fg); border-color: var(--fg); }
.btn svg{ width:14px; height:14px; transition: transform .35s var(--ease); }
.btn:hover svg{ transform: translate(3px,-3px); }

.magnetic{ display:inline-block; }

/* ============ Hero ============ */
.hero{
  min-height: 100svh; display:flex; flex-direction:column; justify-content:flex-end;
  padding: 140px var(--edge) 64px;
  position: relative;
}
.hero-eyebrow{
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display:flex; align-items:center; gap:12px; margin-bottom: 28px;
}
.hero-eyebrow .line{ width:40px; height:1px; background: var(--muted); }
.hero h1{
  font-family: var(--display); font-weight: 700;
  font-size: clamp(48px, 9vw, 132px); line-height: 0.95; letter-spacing: -0.02em;
  max-width: 20ch;
}
.hero h1 .accent-word{ color: var(--accent); font-style: normal; }
.hero-sub{
  display:flex; justify-content:space-between; align-items:flex-end; gap:40px;
  margin-top: 44px; flex-wrap: wrap;
}
.hero-sub p{
  max-width: 42ch; color: var(--fg-dim); font-size: 18px; line-height:1.6;
}
.scroll-cue{
  position:absolute; right: var(--edge); bottom: 28px;
  writing-mode: vertical-rl; font-family: var(--mono); font-size: 12px; color: var(--muted);
  display:flex; align-items:center; gap:12px; letter-spacing:.08em;
}
.scroll-cue .stick{ width:1px; height:48px; background: var(--muted); position:relative; overflow:hidden; }
.scroll-cue .stick::after{
  content:""; position:absolute; left:0; top:-100%; width:100%; height:100%; background: var(--accent);
  animation: stick-move 1.8s ease-in-out infinite;
}
@keyframes stick-move{ 0%{top:-100%;} 50%{top:0;} 100%{top:100%;} }

/* ============ Marquee ============ */
.marquee{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  overflow:hidden; white-space:nowrap; padding: 22px 0;
}
.marquee-track{
  display:inline-flex; gap: 48px; animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
.marquee-track span{
  font-family: var(--mono); font-size: 15px; color: var(--fg-dim);
  display:inline-flex; align-items:center; gap:48px;
}
.marquee-track span em{ color: var(--accent); font-style:normal; }

/* ============ Section shell ============ */
section{ padding: 120px 0; position: relative; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:40px;
  margin-bottom: 64px; flex-wrap:wrap;
}
.section-tag{
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  display:flex; align-items:center; gap:10px;
}
.section-tag .dot{ width:6px; height:6px; border-radius:50%; background: var(--accent); }
.section-head h2{
  font-size: clamp(32px, 5vw, 56px); line-height:1.05; letter-spacing:-0.01em; max-width: 16ch;
  margin-top: 14px;
}
.section-head .section-desc{ max-width:38ch; color: var(--fg-dim); font-size:16px; }

.rule{ height:1px; background: var(--line); width:100%; }

/* ============ Services list ============ */
.service-row{
  display:grid; grid-template-columns: 90px 1fr auto; gap: 32px; align-items:center;
  padding: 34px 0; border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.service-row:first-child{ border-top: 1px solid var(--line); }
.service-row:hover{ background: var(--bg-alt); }
.service-index{ font-family: var(--mono); color: var(--muted); font-size:14px; }
.service-name{
  font-size: clamp(24px, 3.4vw, 40px); font-weight:600; letter-spacing:-0.01em;
  display:flex; align-items:center; gap:20px; flex-wrap:wrap;
}
.service-tags{ display:flex; gap:8px; flex-wrap:wrap; }
.service-tags span{
  font-family: var(--mono); font-size:11px; color: var(--muted);
  border:1px solid var(--line); padding:4px 10px; border-radius:100px;
}
.service-arrow{
  width:48px; height:48px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: border-color .3s ease, background .3s ease, transform .3s var(--ease);
}
.service-row:hover .service-arrow{ border-color: var(--accent); background: var(--accent); transform: rotate(45deg); }
.service-arrow svg{ width:16px; height:16px; }
.service-row:hover .service-arrow svg path{ stroke: #0B0B0C; }

/* ============ Stats ============ */
.stat-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.stat-cell{ background: var(--bg); padding: 40px 28px; }
.stat-num{ font-size: clamp(32px,4.4vw,56px); font-weight:700; letter-spacing:-0.02em; }
.stat-num .u{ color: var(--accent); }
.stat-label{ font-family: var(--mono); font-size:12px; color: var(--muted); margin-top:10px; }
@media (max-width: 760px){ .stat-grid{ grid-template-columns: repeat(2,1fr); } }

/* ============ Work grid ============ */
.work-grid{ display:grid; grid-template-columns: repeat(12,1fr); gap: 24px; }
.work-card{
  grid-column: span 6; position:relative; overflow:hidden; border-radius: 4px;
  background: var(--bg-alt); aspect-ratio: 4/3;
}
.work-card.span-4{ grid-column: span 4; }
.work-card.span-8{ grid-column: span 8; }
.work-card img{
  width:100%; height:100%; object-fit:cover; transform: scale(1.08);
  transition: transform 1s var(--ease), filter .6s ease;
  filter: grayscale(0.5) brightness(.72);
}
.work-card:hover img{ transform: scale(1); filter: grayscale(0) brightness(.85); }
.work-info{
  position:absolute; left:0; right:0; bottom:0; padding: 26px;
  display:flex; justify-content:space-between; align-items:flex-end;
  background: linear-gradient(to top, rgba(11,11,12,.9), transparent);
}
.work-info h3{ font-size: clamp(18px,2.2vw,26px); font-weight:600; }
.work-info span{ font-family: var(--mono); font-size:12px; color: var(--fg-dim); }
.work-cat{
  position:absolute; top:22px; left:22px; font-family:var(--mono); font-size:11px;
  border:1px solid rgba(242,239,233,.35); color:var(--fg); padding:5px 12px; border-radius:100px;
  backdrop-filter: blur(4px);
}
@media (max-width: 860px){
  .work-card, .work-card.span-4, .work-card.span-8{ grid-column: span 12; aspect-ratio: 16/11; }
}

/* ============ Process ============ */
.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:grid; grid-template-columns: 90px 1fr 1fr; gap:32px; padding: 36px 0;
  border-bottom:1px solid var(--line);
}
.process-item:first-child{ border-top:1px solid var(--line); }
.process-item h4{ font-size: clamp(20px,2.6vw,30px); font-weight:600; }
.process-item p{ color: var(--fg-dim); max-width: 44ch; }
.process-num{ font-family: var(--mono); color: var(--accent); font-size:14px; }
@media (max-width: 760px){ .process-item{ grid-template-columns: 50px 1fr; } .process-item p{ grid-column: 2/3; } }

/* ============ Testimonial / quote ============ */
.quote-block{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding: 90px 0; text-align:center;
}
.quote-block blockquote{
  font-size: clamp(24px, 3.6vw, 44px); font-weight:500; line-height:1.3; letter-spacing:-0.01em;
  max-width: 22ch; margin: 0 auto;
}
.quote-block cite{
  display:block; margin-top:28px; font-family: var(--mono); font-style:normal; color: var(--muted); font-size:13px;
}

/* ============ CTA band ============ */
.cta-band{
  padding: 130px 0; text-align:center; position:relative; overflow:hidden;
}
.cta-band h2{
  font-size: clamp(40px, 7vw, 96px); line-height:0.98; letter-spacing:-0.02em; max-width:16ch; margin:0 auto 40px;
}
.cta-glow{
  position:absolute; top:50%; left:50%; width:900px; height:500px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  transform: translate(-50%,-50%); pointer-events:none; z-index:-1;
}

/* ============ Footer ============ */
footer{ border-top:1px solid var(--line); padding: 80px 0 32px; }
.footer-top{
  display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; padding-bottom: 64px;
}
.footer-col h5{ font-family: var(--mono); font-size:12px; color: var(--muted); margin-bottom:18px; letter-spacing:.04em; }
.footer-col a, .footer-col p{ display:block; color: var(--fg-dim); margin-bottom:10px; font-size:15px; transition:color .3s ease; }
.footer-col a:hover{ color: var(--fg); }
.footer-brand{ max-width: 340px; }
.footer-brand p{ color: var(--fg-dim); margin-top:16px; font-size:15px; }
.footer-bottom{
  display:flex; justify-content:space-between; padding-top:28px; border-top:1px solid var(--line);
  font-family: var(--mono); font-size:12px; color: var(--muted); flex-wrap:wrap; gap:12px;
}

/* ============ Page header (interior pages) ============ */
.page-header{ padding: 150px 0 60px; }
.page-header .section-tag{ margin-bottom:22px; }
.page-header h1{
  font-size: clamp(40px, 7vw, 100px); line-height:0.98; letter-spacing:-0.02em; max-width: 18ch;
}
.page-header .section-desc{ margin-top:24px; max-width: 52ch; font-size:18px; color: var(--fg-dim); }

/* ============ Utility reveal ============ */
.reveal{ opacity:0; }

/* ============ Forms ============ */
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field{ grid-column: span 2; border-bottom:1px solid var(--line); padding-bottom: 14px; }
.field.half{ grid-column: span 1; }
.field label{ display:block; font-family:var(--mono); font-size:12px; color: var(--muted); margin-bottom:10px; }
.field input, .field textarea, .field select{
  width:100%; background:transparent; border:none; color: var(--fg); font-family: var(--display);
  font-size: 18px; resize:none; padding:0;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; }
.field select option{ background: var(--bg-alt); }
@media (max-width:700px){ .field.half{ grid-column: span 2; } }

/* ============ Team / about ============ */
.value-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
.value-cell{ background: var(--bg); padding: 40px 32px; }
.value-cell .num{ font-family: var(--mono); color: var(--accent); font-size:13px; }
.value-cell h4{ font-size:22px; margin: 18px 0 12px; font-weight:600; }
.value-cell p{ color: var(--fg-dim); font-size:15px; }
@media (max-width:860px){ .value-grid{ grid-template-columns:1fr; } }

.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.team-card{ }
.team-photo{ aspect-ratio: 3/4; overflow:hidden; border-radius:4px; background: var(--bg-alt); margin-bottom:16px; }
.team-photo img{ width:100%; height:100%; object-fit:cover; filter: grayscale(1) brightness(.85); transition: filter .4s ease; }
.team-card:hover .team-photo img{ filter: grayscale(0) brightness(1); }
.team-card h4{ font-size:17px; font-weight:600; }
.team-card span{ font-family: var(--mono); font-size:12px; color: var(--muted); }
@media (max-width:860px){ .team-grid{ grid-template-columns: repeat(2,1fr); } }

/* ============ misc type ============ */
.eyebrow{ font-family: var(--mono); font-size:13px; color: var(--muted); }
.lead{ font-size: 20px; color: var(--fg-dim); max-width: 60ch; line-height:1.7; }
