/*
Theme Name: Arvell Craig — The Handoff (Noir)
Theme URI: https://arvellcraig.com
Author: Arvell Craig
Description: Custom one-page noir theme for ArvellCraig.com — editorial serif typography, technical mono accents, scroll-driven manifesto reveals, and newsletter-first layout for The Handoff.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: arvell-handoff
*/

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #070708; color: #F2EFE9; font-family: 'Cormorant Garamond', serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; }
input::placeholder { color: inherit; opacity: .45; }
@keyframes scan { from { top: -10%; } to { top: 110%; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseBig { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }

.mono { font-family: 'JetBrains Mono', monospace; }
.jost { font-family: 'Jost', sans-serif; }

/* ---- hero ---- */
.hero { position: relative; min-height: 100vh;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.045) 0, rgba(255,255,255,.045) 1px, transparent 1px, transparent 140px),
                    repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 140px); }
.hero-glow { position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(255,77,28,.13), transparent 70%); pointer-events: none; }
.scanline { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(84,230,164,.35), transparent); animation: scan 11s linear infinite; pointer-events: none; }
.cross { position: absolute; font: 400 16px/1 'JetBrains Mono', monospace; color: rgba(255,255,255,.2); pointer-events: none; }
.hero-photo { position: absolute; top: 0; right: 0; width: 62%; height: 100vh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 12%; filter: grayscale(1) contrast(1.08) brightness(.88); }
.hero-photo .veil { position: absolute; inset: 0; background: linear-gradient(to right, #070708 0%, rgba(7,7,8,0) 48%), linear-gradient(to top, #070708 0%, rgba(7,7,8,0) 32%); }
.fig { position: absolute; right: 28px; top: 110px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.fig .l1 { font: 400 10px/1 'JetBrains Mono', monospace; letter-spacing: .18em; color: #54E6A4; }
.fig .l2 { font: 400 10px/1 'JetBrains Mono', monospace; letter-spacing: .18em; color: rgba(255,255,255,.35); }
.nav { position: relative; z-index: 2; padding: 38px 56px; display: flex; justify-content: space-between; align-items: center; }
.logo { font: 400 13px/1 'Jost', sans-serif; letter-spacing: .34em; animation: fadeIn 1.2s both; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font: 400 12px/1 'Jost', sans-serif; letter-spacing: .26em; color: #F2EFE9; transition: color .2s; }
.nav-links a:hover { color: #FF4D1C; }
.badge { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(84,230,164,.35); border-radius: 999px; padding: 8px 14px; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #54E6A4; animation: pulseDot 2.4s ease-in-out infinite; }
.badge span:last-child { font: 400 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: #54E6A4; }
.hero-copy { position: relative; z-index: 2; padding: 8vh 56px 0; }
.eyebrow { display: flex; align-items: center; gap: 16px; animation: rise 1s .2s cubic-bezier(.22,.61,.36,1) both; }
.eyebrow .tag { font: 400 11px/1 'JetBrains Mono', monospace; letter-spacing: .2em; color: #54E6A4; }
.eyebrow .rule { width: 60px; height: 1px; background: rgba(255,255,255,.25); }
.eyebrow .roles { font: 400 13px/1.8 'Jost', sans-serif; letter-spacing: .42em; color: rgba(255,255,255,.45); }
h1 { margin: 4vh 0 0; font: 300 clamp(80px, 12.5vw, 190px)/0.95 'Cormorant Garamond', serif; letter-spacing: -.02em; animation: riseBig 1.1s .35s cubic-bezier(.22,.61,.36,1) both; }
h1 em { font-style: italic; margin-left: 10vw; color: #FF4D1C; }
.hero-sub { margin: 5vh 0 0; max-width: 380px; font: 400 21px/1.55 'Cormorant Garamond', serif; color: rgba(242,239,233,.65); animation: rise 1s .55s cubic-bezier(.22,.61,.36,1) both; }
.scroll-cue { position: absolute; left: 56px; bottom: 38px; z-index: 2; display: flex; align-items: center; gap: 14px; animation: fadeIn 1.4s 1s both; }
.scroll-cue .bar { width: 1px; height: 54px; background: #FF4D1C; }
.scroll-cue .txt { font: 400 11px/1 'Jost', sans-serif; letter-spacing: .34em; color: rgba(255,255,255,.45); }

/* ---- ticker ---- */
.ticker { border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; padding: 16px 0; background: rgba(255,255,255,.02); }
.ticker-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.ticker-set { display: flex; gap: 64px; align-items: center; }
.ticker-set span.item { font: 400 12px/1 'JetBrains Mono', monospace; color: rgba(255,255,255,.5); letter-spacing: .2em; white-space: nowrap; }
.ticker-set span.sep { color: #FF4D1C; font-size: 10px; }

/* ---- manifesto ---- */
.manifesto { position: relative; padding: 20vh 32px 16vh; display: flex; flex-direction: column; align-items: center; gap: 20vh; text-align: center;
  background-image: repeating-linear-gradient(to right, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 140px); }
.manifesto-photo { position: absolute; left: 0; top: 0; bottom: 0; width: 42%; z-index: 0; pointer-events: none; }
.manifesto-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 22%; transform: scaleX(-1); filter: grayscale(1) brightness(.72) contrast(1.05); opacity: .5; }
.manifesto-photo .veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(7,7,8,.25) 0%, rgba(7,7,8,.55) 55%, #070708 96%), linear-gradient(to bottom, #070708 0%, rgba(7,7,8,0) 22%), linear-gradient(to top, #070708 0%, rgba(7,7,8,0) 22%); }
.beat { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 20px;
  opacity: 0; transform: translateY(22vh) scale(.8); filter: blur(8px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1), filter 1.2s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity, filter; }
.beat.on { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.beat-label { font: 400 10px/1 'JetBrains Mono', monospace; letter-spacing: .3em; color: #54E6A4; min-height: 11px; }
.beat-label .cur { display: inline-block; width: 7px; height: 11px; background: #54E6A4; margin-left: 4px; vertical-align: text-bottom; animation: blink 1s step-end infinite; }
.beat-line { font: 300 clamp(40px, 5.6vw, 80px)/1.15 'Cormorant Garamond', serif; max-width: 900px; }
.beat-line .w { display: inline-block; margin-right: .26em; opacity: 0; transform: translateY(1.5em) rotate(7deg) scale(.85); filter: blur(16px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1) var(--d, 0ms), transform 1s cubic-bezier(.22,.61,.36,1) var(--d, 0ms), filter 1s cubic-bezier(.22,.61,.36,1) var(--d, 0ms); }
.beat.on .beat-line .w { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: blur(0); }
.beat-line .it { font-style: italic; }
.beat-line .verm { color: #FF4D1C; }
.beat-rule { width: 0; height: 1px; background: #FF4D1C; transition: width 1s cubic-bezier(.22,.61,.36,1) .7s; }
.beat.on .beat-rule { width: 64px; }
.beat-caps { font: 400 12px/1.9 'Jost', sans-serif; letter-spacing: .3em; color: rgba(255,255,255,.45); max-width: 620px;
  opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.22,.61,.36,1) .9s, transform .9s cubic-bezier(.22,.61,.36,1) .9s; }
.beat.on .beat-caps { opacity: 1; transform: translateY(0); }
.beat.close { gap: 26px; }

/* ---- dark close ---- */
.close-section { position: relative; background: #0C0C0E; padding: 14vh 56px 0; border-top: 1px solid rgba(255,255,255,.1);
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 1px, transparent 140px); }
.close-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.desks-head { display: flex; flex-direction: column; gap: 14px; }
.desks-head .kicker { font: 400 12px/1 'Jost', sans-serif; letter-spacing: .34em; color: rgba(255,255,255,.45); }
.desks-head .title { font: 300 clamp(32px, 3.8vw, 52px)/1.15 'Cormorant Garamond', serif; max-width: 640px; }
.desks-head .title em { font-style: italic; color: #FF4D1C; }
.desks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.desk { position: relative; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.02); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; transition: border-color .25s; }
.desk:hover { border-color: #FF4D1C; }
.desk .id { position: absolute; top: 14px; right: 16px; font: 400 9px/1 'JetBrains Mono', monospace; letter-spacing: .2em; color: rgba(84,230,164,.7); }
.desk .num { font: 300 34px/1 'Cormorant Garamond', serif; font-style: italic; color: #FF4D1C; }
.desk .name { font: 400 25px/1.2 'Cormorant Garamond', serif; }
.desk p { margin: 0; font: 300 14px/1.7 'Jost', sans-serif; color: rgba(255,255,255,.5); }

.subscribe { position: relative; border-top: 1px solid rgba(255,255,255,.12); margin-top: 6vh; padding: 12vh 0; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.subscribe .glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56vw; height: 36vw; background: radial-gradient(closest-side, rgba(255,77,28,.1), transparent 70%); pointer-events: none; }
.subscribe .kicker { position: relative; font: 400 12px/1 'Jost', sans-serif; letter-spacing: .42em; color: rgba(255,255,255,.45); }
.subscribe .title { position: relative; font: 300 clamp(34px, 4.4vw, 58px)/1.25 'Cormorant Garamond', serif; max-width: 760px; }
.subscribe .title em { font-style: italic; color: #FF4D1C; }
.sub-form { position: relative; display: flex; align-items: flex-end; width: 100%; max-width: 480px; }
.sub-form input { flex: 1; background: transparent; border: none; border-bottom: 1px solid #F2EFE9; padding: 14px 4px; font: 400 19px/1 'Cormorant Garamond', serif; color: #F2EFE9; text-align: center; }
.sub-form input:focus { outline: none; border-bottom-color: #FF4D1C; }
.sub-form button { background: transparent; border: none; border-bottom: 1px solid #F2EFE9; padding: 14px 10px; font: 400 13px/1.4 'Jost', sans-serif; letter-spacing: .26em; color: #FF4D1C; cursor: pointer; white-space: nowrap; transition: opacity .2s; }
.sub-form button:hover { opacity: .6; }
.sub-ok { position: relative; font: 400 13px/1 'JetBrains Mono', monospace; letter-spacing: .1em; color: #54E6A4; display: none; }
.sub-ok.show { display: block; }

.site-footer { border-top: 1px solid rgba(255,255,255,.12); padding: 34px 0 110px; display: flex; justify-content: space-between; align-items: center; }
.site-footer .left { display: flex; align-items: center; gap: 18px; }
.site-footer .copy { font: 400 11px/1 'Jost', sans-serif; letter-spacing: .3em; color: rgba(255,255,255,.4); }
.site-footer .sys { font: 400 9px/1 'JetBrains Mono', monospace; letter-spacing: .18em; color: rgba(84,230,164,.55); }
.site-footer .links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.site-footer .links a { font: 400 11px/1 'Jost', sans-serif; letter-spacing: .26em; color: #F2EFE9; transition: color .2s; }
.site-footer .links a.soc { color: rgba(255,255,255,.5); }
.site-footer .links a:hover { color: #FF4D1C; }
.site-footer .links .div { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

@media (max-width: 900px) {
  .nav { padding: 24px; }
  .nav-links a { display: none; }
  .hero-copy { padding: 6vh 24px 0; }
  .hero-photo { width: 100%; opacity: .4; }
  .scroll-cue { left: 24px; }
  .manifesto-photo { width: 80%; }
  .desks { grid-template-columns: 1fr; }
  .close-section { padding: 12vh 24px 0; }
  .site-footer { flex-direction: column; gap: 22px; }
}
