/* ═══════════════════════════════════════════
   RUSS DALZIEL — v2
   Palette + type scale
═══════════════════════════════════════════ */
:root{
  --black:#0a0a0a;
  --white:#f2f0eb;
  --dim:#6b6b6b;
  --accent:#e8e0d0;
  --hair:#1a1a1a;
  --hair-lit:#333;

  --font-display:'Instrument Serif','Times New Roman',Georgia,serif;
  --font-heading:'Host Grotesk','Helvetica Neue',Arial,sans-serif;
  --font-mono:'Courier New',Courier,monospace;
}

*{margin:0;padding:0;box-sizing:border-box}

/* Explicit root background: mix-blend-mode below blends against the root
   backdrop, and a transparent <html> lets a mid-repaint frame sample an
   unpainted canvas — which flashes warm through difference blending. */
html{
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  background:#0a0a0a;
}

body{
  background:var(--black);
  color:var(--white);
  font-family:var(--font-heading);
  font-weight:300;
  overflow-x:hidden;
}
body.preloading{overflow:hidden;height:100vh}

img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* Hide the real cursor on desktop — #cursor replaces it */
@media (hover:hover){
  body,a,button,.project-row,.featured-item{cursor:none}
}

/* ═══ PRELOADER ═══ */
#preloader{
  position:fixed;inset:0;z-index:9999;
  background:var(--black);
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:0 2.5rem 1rem;
}
#preloader-label{
  position:absolute;top:2rem;left:2.5rem;
  display:flex;flex-direction:column;gap:.5rem;
}
#preloader-label-text{
  font-family:var(--font-mono);
  font-size:.55rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--white);
}
#preloader-bar-wrap{width:120px;height:1px;background:rgba(242,240,235,.18)}
#preloader-bar-fill{width:0;height:100%;background:var(--white)}
#preloader-pct{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:clamp(5rem,16vw,14rem);
  line-height:.8;
  letter-spacing:-.05em;
  color:var(--white);
}

/* ═══ CUSTOM CURSOR ═══ */
#cursor{
  position:fixed;top:0;left:0;
  width:8px;height:8px;
  background:var(--white);border-radius:50%;
  pointer-events:none;z-index:10000;
  transform:translate(-50%,-50%);
  display:flex;align-items:center;justify-content:center;
  transition:width .3s ease,height .3s ease,opacity .3s ease,background .3s ease;
}
#cursor.hover{width:26px;height:26px;background:rgba(242,240,235,.35)}
#cursor.hover-view{width:66px;height:66px;background:var(--white)}
#cursor::after{
  content:'VIEW';
  font-family:var(--font-mono);
  font-size:.5rem;letter-spacing:.18em;
  color:var(--black);
  opacity:0;transition:opacity .25s ease;
}
#cursor.hover-view::after{opacity:1}
@media (hover:none){#cursor{display:none}}

/* Bound the blend group: header and .hero-name use mix-blend-mode, and
   without isolation they composite against the whole root backdrop. */
.page{isolation:isolate}

/* ═══ HEADER ═══ */
header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.6rem 2.5rem;
  mix-blend-mode:difference;
}
.logo{
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.15rem;
  letter-spacing:-.01em;
  color:var(--white);
}
nav{display:flex;align-items:flex-start;gap:2.2rem}
.nav-link{
  position:relative;
  display:flex;flex-direction:column;
  min-width:86px;
  padding-top:.7rem;
}
.nav-dot{
  position:absolute;top:0;left:0;
  width:4px;height:4px;border-radius:50%;
  border:1px solid var(--dim);
  transition:background .3s ease,border-color .3s ease;
}
.nav-link.active .nav-dot{background:var(--white);border-color:var(--white)}
.nav-label{
  font-family:var(--font-mono);
  font-size:.55rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--dim);
  transition:color .3s ease;
  margin-bottom:.45rem;
}
.nav-link.active .nav-label{color:var(--white)}
.nav-line{display:block;width:100%;height:1px;background:rgba(242,240,235,.15)}
.nav-line-fill{display:block;width:0;height:100%;background:var(--white)}
.nav-icons{display:flex;gap:.9rem;padding-top:.6rem}
.nav-icon{color:var(--dim);transition:color .3s ease}
.nav-icon:hover{color:var(--white)}

/* ═══ HERO ═══ */
.hero{
  position:relative;
  height:100vh;min-height:620px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.parallax-field{position:absolute;inset:0;z-index:1}
.pimg{
  position:absolute;
  overflow:hidden;
  opacity:0;
  will-change:transform;
}
.pimg img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:var(--pos,50% 50%);
  /* --zoom crops further in, so a reused image can read as material
     rather than as the same photograph twice. */
  transform:scale(var(--zoom,1));
  transform-origin:var(--pos,50% 50%);
  /* Source is already near-monochrome stone; full desaturation unifies the
     family, and they no longer need crushing because nothing is white. */
  filter:grayscale(1) brightness(.82) contrast(1.06);
}
.pimg.small img{filter:grayscale(1) brightness(.66) contrast(1.06)}

/* Scrim so the name and tagline stay legible over whatever sits behind them */
.parallax-field::after{
  content:'';
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 46%, rgba(10,10,10,.82) 0%, rgba(10,10,10,.58) 55%, rgba(10,10,10,.22) 100%),
    linear-gradient(180deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 78%, rgba(10,10,10,.6) 100%);
}

.hero-text{position:relative;z-index:5;text-align:center;width:100%;padding:0 2rem}
.hero-name-clip{overflow:hidden;line-height:1;width:100%;padding-bottom:.18em}
.hero-name{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:400;
  font-size:clamp(2.8rem,9vw,8rem);
  line-height:1.1;
  letter-spacing:-.02em;
  color:#fff;
  mix-blend-mode:difference;
  opacity:0;
}
.hero-roles{
  margin-top:1.4rem;
  font-family:var(--font-heading);
  font-size:.8rem;font-weight:400;
  letter-spacing:.22em;text-transform:uppercase;
  color:var(--accent);
  display:flex;align-items:center;justify-content:center;gap:.9rem;
}
.hero-roles-sep{color:var(--dim)}
.hero-sub{
  margin-top:2.6rem;
  font-family:var(--font-mono);
  font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;
  line-height:2;
  color:var(--dim);
}

/* ═══ SHARED SECTION FURNITURE ═══ */
.philosophy-label,.featured-label,.work-label,.notes-label,.about-label{
  font-family:var(--font-mono);
  font-size:.58rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dim);
  margin-bottom:1.6rem;
}
.section-heading{
  font-family:var(--font-heading);
  font-size:clamp(2rem,5vw,5rem);
  font-weight:800;
  line-height:1;
  letter-spacing:-.03em;
  color:var(--white);
  margin-bottom:2.4rem;
  display:block;
  overflow:hidden;
  padding-bottom:.1em;
}
.sh-letter{display:inline-block;will-change:transform}
.sh-space{display:inline-block;width:.26em}

/* ═══ PHILOSOPHY ═══ */
.philosophy-section{padding:10rem 2.5rem 12rem}
.philosophy-inner{display:flex;gap:5rem;align-items:flex-start;max-width:1600px;margin:0 auto}
.philosophy-left{flex:0 0 52%;max-width:52%}
.philosophy-right{flex:1}
.philosophy-text{
  font-family:var(--font-heading);
  font-size:clamp(1.4rem,2.6vw,3rem);
  font-weight:300;
  color:#aaa;
  line-height:1.25;
  letter-spacing:.01em;
}
.philosophy-text .q-char{display:inline;will-change:opacity}
.philosophy-text .q-highlight,
.punchline-text .q-highlight{
  font-family:var(--font-display);
  font-style:italic;
  font-weight:400;
}

.expertise-list{display:grid;grid-template-columns:1fr 1fr}
.expertise-card{
  padding:1.8rem 1.8rem 2.2rem;
  border-right:1px solid #1e1e1e;
  border-bottom:1px solid #1e1e1e;
}
.expertise-card:nth-child(even){border-right:none}
.expertise-card:nth-last-child(-n+1){border-bottom:none}
.ecard-icon{width:26px;height:26px;color:var(--white);margin-bottom:1.1rem;opacity:.85}
.ecard-icon svg{width:100%;height:100%}
.ecard-title{
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.05rem;
  color:var(--white);
  margin-bottom:.9rem;
}
.ecard-list li{
  position:relative;
  padding-left:.9rem;
  font-size:.8rem;font-weight:300;
  color:var(--dim);
  line-height:2.1;
}
.ecard-list li::before{
  content:'';position:absolute;left:0;top:.85em;
  width:3px;height:3px;border-radius:50%;background:var(--dim);
}

/* ═══ FEATURED WORK ═══ */
.featured-section{padding:4rem 0 6rem}
.featured-label,.featured-section .section-heading{padding:0 2.5rem}
.featured-grids-wrap{display:flex;flex-direction:column;gap:4rem}
.featured-grid{display:flex;gap:10px;padding:0 2.5rem}
.featured-item{flex:1;display:flex;flex-direction:column;min-width:0}
/* 16/9, not 3/2: every source is 960x540 and these are designed lockups —
   a 3:2 crop shaved 16% off the sides and decapitated the wordmarks. */
/* A single featured item. The source is only 960px wide and f1.webp is
   already an offline Lanczos upscale, so spanning the full row would
   stretch it ~2x and go soft. 900px renders ~1:1 against the 1700px file
   at 2x DPR. Left-aligned rather than centred to match the page's grid. */
.featured-grid--solo{max-width:900px}
.featured-img-wrap{width:100%;aspect-ratio:16/9;overflow:hidden;background:#111}
.featured-img-wrap img{width:100%;height:100%;object-fit:cover}
.featured-caption{
  display:flex;align-items:flex-start;justify-content:space-between;gap:2rem;
  padding-top:1rem;
}
.featured-caption-left{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.featured-caption-title{
  font-size:clamp(.95rem,1.25vw,1.35rem);
  font-weight:500;color:var(--white);line-height:1.25;
}
.featured-caption-sub{
  font-family:var(--font-mono);
  font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--white);
}
.featured-caption-year{
  font-family:var(--font-mono);
  font-size:.6rem;letter-spacing:.12em;
  color:var(--dim);white-space:nowrap;
}

/* ═══ SELECTED WORK ═══ */
.work-section{padding:6rem 2.5rem 6rem}
.work-description{
  max-width:34rem;
  font-size:.92rem;font-weight:300;line-height:1.75;
  color:var(--dim);
  margin-bottom:4rem;
}
.project-list{border-top:1px solid var(--hair)}
.project-row{
  display:grid;grid-template-columns:3.5rem 1fr auto;
  align-items:center;gap:2rem;
  padding:1.5rem 0;
  border-bottom:1px solid var(--hair);
  position:relative;
  transition:border-color .3s;
}
.project-row:hover{border-bottom-color:var(--hair-lit)}
.project-index{
  font-family:var(--font-mono);
  font-size:.6rem;letter-spacing:.18em;
  color:var(--dim);
  transition:color .4s ease;
}
.project-row:hover .project-index{color:var(--white)}
.project-name{
  display:flex;flex-direction:column;gap:.5rem;
  font-size:clamp(1.3rem,3.2vw,2.6rem);
  font-weight:300;
  line-height:1.1;
  letter-spacing:-.02em;
  color:#8a8a8a;
  transition:color .4s ease;
}
.project-row:hover .project-name{color:var(--white)}
.project-sub{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.sub-item{
  font-family:var(--font-mono);
  font-size:.58rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--dim);
}
.sub-dot{color:var(--dim);font-size:.58rem}
.project-year{
  font-family:var(--font-mono);
  font-size:.6rem;letter-spacing:.12em;
  color:var(--dim);
}

/* ═══ NOTES ═══ */
.notes-section{padding:6rem 2.5rem 8rem}
.notes-description{
  max-width:34rem;
  font-size:.92rem;font-weight:300;line-height:1.75;
  color:var(--dim);
  margin-bottom:3.5rem;
}
.note-list{
  border-top:1px solid var(--hair);
  columns:2;column-gap:4rem;
}
.note-item{
  break-inside:avoid;
  display:grid;grid-template-columns:2.6rem 1fr;
  align-items:baseline;gap:1rem;
  padding:.95rem 0;
  border-bottom:1px solid var(--hair);
  transition:border-color .3s;
}
.note-item:hover{border-bottom-color:var(--hair-lit)}
.note-num{
  font-family:var(--font-mono);
  font-size:.55rem;letter-spacing:.16em;
  color:var(--dim);
  transition:color .35s ease;
}
.note-item:hover .note-num{color:var(--white)}
.note-title{
  font-size:1rem;font-weight:300;line-height:1.4;
  color:#8a8a8a;
  transition:color .35s ease,transform .35s ease;
}
.note-item:hover .note-title{color:var(--white);transform:translateX(5px)}
.notes-all{
  display:inline-flex;align-items:center;gap:.3rem;
  margin-top:3rem;
  font-family:var(--font-mono);
  font-size:.62rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--dim);
  transition:color .3s ease;
}
.notes-all:hover{color:var(--white)}

/* ═══ ABOUT ═══ */
.about-section{
  display:grid;grid-template-columns:1fr 26rem;gap:6rem;
  padding:8rem 2.5rem 10rem;
}
.about-text{
  font-size:clamp(1rem,1.35vw,1.4rem);
  font-weight:300;line-height:1.85;
  color:#8a8a8a;
}
.about-text .q-highlight{
  font-family:var(--font-display);
  font-style:italic;
  color:var(--white);
}
.about-photo-wrap{width:100%;aspect-ratio:4/5;overflow:hidden;margin-bottom:2.6rem;background:#111}
.about-photo{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05)}
.about-right-label{
  font-family:var(--font-mono);
  font-size:.58rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--dim);
  margin-bottom:1.6rem;
}
.about-role{margin-bottom:1.8rem}
.about-role-company{font-size:1.15rem;font-weight:400;color:var(--white);margin-bottom:.2rem}
.about-role-title{font-family:var(--font-display);font-style:italic;font-size:.98rem;color:var(--accent);margin-bottom:.35rem}
.about-role-period{
  font-family:var(--font-mono);
  font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--dim);
}

/* ═══ PUNCHLINE ═══ */
.punchline-section{padding:10rem 2.5rem 12rem;background:#0c0c0c}
.punchline-wrap{max-width:60rem;margin:0 auto;text-align:center}
.punchline-quote-icon{
  font-family:var(--font-display);
  font-size:4rem;line-height:1;
  color:var(--dim);opacity:.45;
  margin-bottom:1rem;
}
.punchline-text{
  font-family:var(--font-display);
  font-style:italic;
  font-size:clamp(1.6rem,3.4vw,3.2rem);
  line-height:1.35;
  color:#8a8a8a;
}
.punchline-text .q-char{display:inline;will-change:opacity}

/* ═══ FOOTER ═══ */
footer{padding:5rem 2.5rem 4rem;border-top:1px solid var(--hair)}
.footer-links-row{
  display:flex;align-items:flex-start;justify-content:space-between;gap:3rem;
  padding-bottom:3.5rem;border-bottom:1px solid var(--hair);
}
.footer-links-eyebrow{
  font-family:var(--font-display);
  font-style:italic;
  font-size:clamp(1.2rem,2.4vw,2rem);
  color:var(--accent);
  margin-bottom:.4rem;
}
.footer-links-email{font-size:1.1rem;font-weight:300;color:var(--dim);transition:color .3s}
.footer-links-email:hover{color:var(--white)}
.footer-links-buttons{display:flex;flex-direction:column;align-items:flex-end;gap:.7rem}
.footer-barrel-link{
  display:inline-flex;align-items:center;gap:.4rem;
  font-family:var(--font-mono);
  font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--white);
}
.fbl-bracket{color:var(--dim)}
.fbl-drum-wrap{display:inline-flex}
.fbl-drum{
  position:relative;display:inline-block;
  height:1em;line-height:1em;overflow:hidden;
  vertical-align:bottom;
}
.fbl-face{display:block}
.fbl-face-1{position:absolute;top:0;left:0}

/* ═══ HEADING TOOLTIP (easter egg) ═══ */
#sh-tooltip{
  position:fixed;top:0;left:0;z-index:9000;
  width:340px;padding:1.1rem 1.2rem;
  background:rgba(10,10,10,.94);
  border:1px solid #222;
  backdrop-filter:blur(8px);
  pointer-events:none;
  opacity:0;transform:translateY(6px);
  transition:opacity .25s ease,transform .25s ease;
}
#sh-tooltip.visible{opacity:1;transform:translateY(0)}
.tt-eyebrow{
  font-family:var(--font-mono);font-size:.52rem;letter-spacing:.2em;
  color:var(--dim);margin-bottom:.6rem;
}
.tt-title{font-size:.82rem;font-weight:300;line-height:1.5;color:var(--white)}
.tt-divider{height:1px;background:#222;margin:.85rem 0}
.tt-math{font-family:var(--font-mono);font-size:.62rem;line-height:1.9;color:#9a9a9a}
.tt-math .hl{color:var(--white)}
.tt-math .val{color:var(--dim)}
.tt-footer{font-family:var(--font-mono);font-size:.52rem;letter-spacing:.14em;color:var(--dim)}

/* ═══ EDGE GLOW ═══
   Light bleeding in from the perimeter. Two stacked inset shadows: a wide
   bloom plus a tighter core, so the falloff isn't a flat band. Blooms in
   after the preloader clears, timed just behind the hero name. */
:root{
  --glow-line:.34;     /* the hairline itself — crisp, 1px          */
  --glow-alpha:.20;    /* bloom sitting on the line                 */
  --glow-size:54px;    /* how far any light reaches in (the bleed)  */
}
#edge-glow{
  position:fixed;inset:0;
  pointer-events:none;
  z-index:60;
  /* A defined rim, then a tight halo on it, then a short falloff.
     Most of the energy is in the first 12px; the wide layer only
     exists so the rim doesn't look pasted on. */
  box-shadow:
    inset 0 0 0 1px                        rgba(242,240,235,var(--glow-line)),
    inset 0 0 12px                         rgba(242,240,235,var(--glow-alpha)),
    inset 0 0 calc(var(--glow-size) / 2.6) rgba(242,240,235,calc(var(--glow-alpha) * .45)),
    inset 0 0 var(--glow-size)             rgba(242,240,235,calc(var(--glow-alpha) * .22));
  opacity:0;
  transition:opacity 1.6s cubic-bezier(.4,0,.2,1) .35s;
}
body:not(.preloading) #edge-glow{opacity:1}

@media (prefers-reduced-motion:reduce){
  #edge-glow{transition:none}
}

/* ═══ WEBGL CANVAS ═══ */
#gl-canvas{
  position:fixed;inset:0;
  width:100vw;height:100vh;
  pointer-events:none;
  z-index:50;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width:1024px){
  header{padding:1.2rem 1.5rem}
  nav{gap:1.2rem}
  .nav-link{min-width:64px}
  .philosophy-section{padding:7rem 1.5rem 8rem}
  .philosophy-inner{gap:2.5rem}
  .philosophy-left{flex:0 0 55%;max-width:55%}
  .about-section{grid-template-columns:1fr 20rem;gap:3rem;padding:6rem 1.5rem 8rem}
  .work-section,.notes-section{padding-left:1.5rem;padding-right:1.5rem}
  .featured-grid,.featured-label,.featured-section .section-heading{padding-left:1.5rem;padding-right:1.5rem}
  footer{padding-left:1.5rem;padding-right:1.5rem}
}

@media (max-width:767px){
  header{padding:1rem 1.25rem;mix-blend-mode:normal}
  nav{gap:.75rem}
  .nav-link{min-width:0;padding-top:.5rem}
  .nav-label{font-size:.48rem;letter-spacing:.12em;margin-bottom:.3rem}
  .nav-line{display:none}
  .nav-icons{display:none}

  .hero{min-height:560px}
  .hero-roles{font-size:.62rem;gap:.5rem;letter-spacing:.16em}
  .hero-sub{font-size:.58rem;letter-spacing:.12em;margin-top:1.8rem}

  .philosophy-inner{flex-direction:column}
  .philosophy-left,.philosophy-right{flex:1 1 auto;max-width:100%;width:100%}
  .philosophy-text{font-size:clamp(1.5rem,6vw,2.2rem)}
  .expertise-list{margin-top:3rem}
  .expertise-card{padding:1.4rem 1rem 1.6rem}
  .expertise-card:nth-child(odd){border-right:1px solid #1e1e1e}
  .expertise-card:nth-child(even){border-right:none}

  .featured-grid{flex-direction:column;gap:2.5rem}
  .featured-item{flex:1 1 auto !important}
  .featured-caption{flex-direction:column;gap:.5rem}

  .project-row{grid-template-columns:2.2rem 1fr;gap:1rem;padding:1.1rem 0}
  .project-year{display:none}
  .project-name{font-size:clamp(1.15rem,5.5vw,1.8rem)}

  .note-list{columns:1}

  .about-section{grid-template-columns:1fr;gap:3rem;padding:5rem 1.25rem 6rem}
  .about-photo-wrap{max-width:18rem}

  .punchline-section{padding:6rem 1.25rem 7rem}

  .footer-links-row{flex-direction:column;gap:2rem}
  .footer-links-buttons{align-items:flex-start}

  #sh-tooltip{display:none}
  #gl-canvas{display:none}
  :root{--glow-size:34px;--glow-alpha:.17;--glow-line:.28}
}

/* Small phones: keep the roles line on one row */
@media (max-width:380px){
  .hero-roles{font-size:.55rem;letter-spacing:.11em;gap:.4rem}
}
