/* glenrhodes.com landing mockup */
:root {
  --bg: #050506;
  --ink: #edece8;
  --mute: #8d8b86;
  --faint: #55534f;
  --line: rgba(255, 255, 255, .09);
  --gold: #dcb565;
  --gold-deep: #a87c2e;
  --term: #4dff8a;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); letter-spacing: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
::selection { background: var(--gold); color: #000; }

/* the chrome can be grabbed */
body.can-grab { cursor: grab; }
body.is-grabbing, body.is-grabbing * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* ---------- the 3D layer ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.65) 100%),
    linear-gradient(180deg, rgba(5,5,6,.0) 70%, rgba(5,5,6,.5) 100%);
}
body.no-gl #gl { display: none; }
body.no-gl { background: radial-gradient(60% 50% at 70% 40%, #2a2418 0%, var(--bg) 70%) fixed; }
main, .nav, .hud { position: relative; z-index: 2; }
.admin-bar .nav { top: 32px; }   /* WordPress toolbar when logged in */
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ---------- intro: one blinking cursor ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: var(--bg); pointer-events: none;
  transition: opacity .9s var(--ease) .15s, visibility 0s 1.1s;
}
.intro__prompt { font: 500 20px var(--mono); color: var(--term); text-shadow: 0 0 18px rgba(77,255,138,.55); letter-spacing: .02em; }
.intro__cursor { display: inline-block; width: .62em; height: 1.05em; margin-left: .2em; vertical-align: -.15em; background: var(--term); box-shadow: 0 0 16px var(--term); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; }
body:not(.is-intro) .intro__prompt { transform: scale(.4); filter: blur(6px); transition: transform .8s var(--ease), filter .8s; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5,5,6,.55); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-block: 14px; border-color: var(--line); }
.nav__brand { font-weight: 600; letter-spacing: -.02em; font-size: 18px; display: inline-flex; align-items: center; gap: 2px; }
.nav__brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 3px; box-shadow: 0 0 10px var(--gold); }
.nav__links { display: flex; gap: 6px; align-items: center; }
.nav__links a { font-size: 14px; color: var(--mute); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav__links .nav__cta { color: var(--ink); border: 1px solid var(--line); }

/* ---------- HUD (scroll scrub readout) ---------- */
.hud {
  position: fixed; right: var(--gutter); bottom: 26px; z-index: 15; width: 200px;
  color: var(--mute); font-size: 10.5px; display: grid; gap: 6px; pointer-events: none;
  opacity: 0; transition: opacity .8s .6s;
}
body:not(.is-intro) .hud { opacity: 1; }
.hud__row { display: flex; gap: 10px; }
.hud__seq, .hud__frame { color: var(--ink); }
.hud__name { color: var(--gold); }
.hud__of { color: var(--faint); }
.hud__bar { height: 1px; background: var(--line); position: relative; }
.hud__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s, transform .25s var(--ease), color .25s;
}
.btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.btn--solid { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; position: relative; padding-bottom: clamp(90px, 14vh, 150px); }
.hero__inner { width: 100%; }
.eyebrow { color: var(--mute); margin: 0 0 22px; }
.hero__name {
  margin: 0; font-weight: 600; letter-spacing: -.055em; line-height: .84;
  font-size: clamp(76px, 13.5vw, 228px);
  background: linear-gradient(180deg, #fff 0%, #d9d6cf 55%, #8f8b83 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(19px, 1.7vw, 24px); color: #c9c6bf; max-width: 30ch; margin: 28px 0 34px; line-height: 1.4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
body:not(.is-intro) .reveal-up { opacity: 1; transform: none; }
body:not(.is-intro) .reveal-up:nth-child(1) { transition-delay: .55s; }
body:not(.is-intro) .reveal-up:nth-child(2) { transition-delay: .7s; }
body:not(.is-intro) .reveal-up:nth-child(3) { transition-delay: .9s; }
body:not(.is-intro) .reveal-up:nth-child(4) { transition-delay: 1.05s; }

.scrollcue {
  position: absolute; left: var(--gutter); bottom: 30px; display: flex; align-items: center; gap: 12px;
  color: var(--mute); font-size: 10.5px; opacity: 0; transition: opacity 1s 1.6s;
}
body:not(.is-intro) .scrollcue { opacity: 1; }
.scrollcue i { width: 56px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- statement (word-by-word, scroll driven) ---------- */
.statement { height: 260vh; position: relative; }
.statement__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.statement__sticky > .wrap, .contact > .wrap, .numbers > .wrap { width: 100%; }
.label { color: var(--gold); margin: 0 0 22px; }
.statement__text {
  margin: 0; max-width: 14ch; font-weight: 500;
  font-size: clamp(38px, 4.7vw, 80px); line-height: 1.02; letter-spacing: -.035em;
}
.statement__text .w { opacity: .14; transition: opacity .35s linear, filter .35s; filter: blur(1.5px); }
.statement__text .w.on { opacity: 1; filter: none; }

/* ---------- numbers ---------- */
.numbers { min-height: 100vh; display: flex; align-items: flex-end; padding: 0 0 12vh; }
.numbers__grid { display: grid; grid-template-columns: repeat(5, 1fr); padding: 34px 36px 32px; }
.stat { padding: 0 20px 0 0; border-right: 1px solid var(--line); margin-right: 20px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat b { font-weight: 500; font-size: clamp(48px, 5.4vw, 88px); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 3.6vw, 60px); color: var(--gold); margin-left: 2px; }
.stat p { color: var(--mute); font-size: 14px; margin: 12px 0 0; max-width: 18ch; line-height: 1.4; }

/* ---------- sections ---------- */
.section { padding: 16vh 0; }
.section__head { margin-bottom: 48px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head h2, .timeline__head h2 {
  margin: 0; font-weight: 500; letter-spacing: -.04em; line-height: .98;
  font-size: clamp(44px, 5.4vw, 88px);
}

/* glass panels: the chrome shows through, frosted */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease), background .3s;
}
.glass::before { /* spotlight that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(220,181,101,.16), transparent 45%);
}
.glass:hover { border-color: rgba(220,181,101,.35); }
.glass:hover::before { opacity: 1; }

/* ---------- doors ---------- */
.doors__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.door { min-height: 250px; padding: 28px; display: flex; flex-direction: column; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.door__n { color: var(--faint); }
.door h3 { font-size: 32px; font-weight: 500; letter-spacing: -.03em; margin: auto 0 8px; }
.door p { color: var(--mute); margin: 0 0 18px; font-size: 15.5px; max-width: 34ch; }
.door__go { color: var(--gold); font-size: 11px; }
.door__latest b { color: var(--ink); font-weight: 500; }

/* ---------- work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj { display: flex; flex-direction: column; }
.proj__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #0d0d0f; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.9); }
.proj:hover .proj__media img { transform: scale(1.04); filter: none; }
.proj__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5,5,6,.55)); pointer-events: none; }
.proj__play {
  position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 10px; color: var(--ink);
  padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(6px);
  opacity: .0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.proj[data-anim] .proj__play { opacity: .85; transform: none; }
.proj.is-playing .proj__play { opacity: 0; }
.proj__body { padding: 22px 24px 26px; }
.proj__meta { color: var(--faint); font-size: 10.5px; margin: 0 0 10px; }
.proj h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }
.proj__body p:last-child { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.5; }

/* ---------- timeline (pinned, sideways) ---------- */
.timeline { height: 330vh; position: relative; }
.timeline__track li.earlier p { max-width: 34ch; }
.timeline__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.timeline__head { width: 100%; margin-bottom: 7vh; }
.timeline__rail { position: relative; height: 1px; background: var(--line); margin: 0 0 0; }
.timeline__rail i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, transparent, var(--gold)); box-shadow: 0 0 12px var(--gold); }
.timeline__track { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 0; will-change: transform; }
.timeline__track li { flex: 0 0 clamp(270px, 25vw, 360px); padding: 34px 34px 0 0; position: relative; }
.timeline__track li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); }
.timeline__track li.on::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.yr {
  display: block; font-weight: 600; letter-spacing: -.05em; line-height: 1;
  font-size: clamp(56px, 6vw, 96px);
  color: transparent; -webkit-text-stroke: 1px rgba(237,236,232,.35);
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.timeline__track li.on .yr { color: var(--ink); -webkit-text-stroke-color: transparent; }
.timeline__track h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.timeline__track p { margin: 0; color: var(--mute); font-size: 15px; max-width: 30ch; }

/* ---------- magazine ---------- */
.mag__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.post { display: flex; flex-direction: column; }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d0f; }
.post__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform 1.2s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 22px 24px 26px; }
.post__body .mono { color: var(--faint); font-size: 10.5px; margin: 0 0 10px; }
.post h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.post:first-child h3 { font-size: 28px; }

/* ---------- contact ---------- */
.contact { padding: 24vh 0 40px; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
.contact__big { margin: 0 0 44px; font-weight: 600; letter-spacing: -.055em; line-height: .88; font-size: clamp(64px, 11vw, 190px); }
.contact__row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__fine { padding-right: 230px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16vh; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .doors__grid, .work__grid { grid-template-columns: repeat(2, 1fr); }
  .mag__grid { grid-template-columns: 1fr 1fr; }
  .mag__grid .post:first-child { grid-column: 1 / -1; }
  .numbers__grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .stat:nth-child(3) { border-right: 0; }
}
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .doors__grid, .work__grid, .mag__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; }
  .hud { display: none; }
  .statement__sticky { align-items: flex-end; padding-bottom: 9vh; }
  .statement__text { font-size: 34px; }
  .hero { padding-bottom: 80px; }
  .numbers { align-items: flex-end; }
  .contact__fine { padding-right: 0; }
  .door { min-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  .reveal-up { opacity: 1; transform: none; transition: none; }
  .tilt { transform: none !important; }
}
.scrollcue b { font-weight: 400; color: var(--faint); }
