
/* Base */
:root{
  --bg:      #f7f5f0;
  --panel:   #fcfaf6;
  --ink:     #02000A;
  --muted:   #5c5661;
  --line:    rgba(2,0,10,0.14);
  --accent:  #4f8f7b;
  --accent-2:#7aa89a;

  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16,.84,.32,1);
  --container: min(1440px, 94vw);
}

html[data-theme="dark"]{
  --bg:      #02000A;
  --panel:   #0b0711;
  --ink:     #f7f5f0;
  --muted:   #b8afc2;
  --line:    rgba(247,245,240,0.14);
  --accent:  #4f8f7b;
  --accent-2:#7aa89a;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; background:var(--bg); scrollbar-width:none; -ms-overflow-style:none; }
html::-webkit-scrollbar{ display:none; }
body::-webkit-scrollbar{ display:none; }
html.no-scroll{ overflow:hidden; }

body{
  background:#f8f5ee;
  color:var(--ink);
  font-family:var(--font-body); font-weight:400; line-height:1.5;
  -webkit-font-smoothing:antialiased; overflow-x:hidden; cursor:none;
}

img{ display:block; width:100%; height:100%; object-fit:cover; background:rgba(2,0,10,.04); }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:none; }
::selection{ background:var(--ink); color:var(--bg); }

@media (max-width: 860px){
  body, a, button{ cursor:auto; }
  .cursor{ display:none; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001s !important; animation-iteration-count:1 !important; transition-duration:.001s !important; scroll-behavior:auto !important; }
}
a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* Cursor */
.cursor{ position:fixed; top:0; left:0; z-index:20001; pointer-events:none; mix-blend-mode:difference; }
.cursor-ring{
  position:fixed; top:0; left:0; width:32px; height:32px;
  border:1px solid #fff; border-radius:50%; transform:translate(-50%,-50%);
  transition:width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
}
.cursor-dot{ position:fixed; top:0; left:0; width:4px; height:4px; background:#fff; border-radius:50%; transform:translate(-50%,-50%); }
.cursor.is-active .cursor-ring{ width:56px; height:56px; background:rgba(255,255,255,.3); border-color:transparent; }

/* Loader */
.loader{ position:fixed; inset:0; z-index:10000; background:var(--bg); display:flex; align-items:center; justify-content:center; }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap:1.2rem; }
.loader-word{ font-family:var(--font-display); font-weight:800; font-size:2.4rem; letter-spacing:-.02em; display:flex; }
.loader-letter{ opacity:0; transform:translateY(14px); display:inline-block; }
.loader-count{ font-family:var(--font-mono); font-size:.72rem; color:var(--muted); letter-spacing:.1em; }

/* Header */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:960;
  display:flex; align-items:center; justify-content:space-between;
  padding:1.15rem clamp(1.2rem,4vw,2.6rem);
  background:rgba(247,245,240,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(2,0,10,.07);
  box-shadow:none;
}
.logo{ font-family:var(--font-display); font-weight:800; font-size:1.05rem; letter-spacing:-.01em; color:var(--ink); }
.header-actions{ display:flex; align-items:center; gap:.8rem; }
.menu-toggle{ position:relative; width:42px; height:42px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.menu-toggle span{ width:20px; height:2px; background:var(--ink); border-radius:2px; transition:transform .4s var(--ease), opacity .4s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child{ transform:translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child{ transform:translateY(-4px) rotate(-45deg); }

.site-nav{
  position:fixed; inset:0; z-index:900; height:100dvh; overflow:hidden;
  background:#f7f5f0; color:var(--ink);
  display:flex; flex-direction:column; justify-content:space-between;
  padding:7rem clamp(1.4rem,6vw,5rem) 3rem;
  transform:translateX(-100%); visibility:hidden;
  transition:transform .6s var(--ease), visibility 0s linear .6s;
}
.site-nav.is-open{ transform:translateX(0); visibility:visible; transition:transform .6s var(--ease), visibility 0s linear 0s; }
.nav-close{
  position:absolute; top:1.3rem; right:1.3rem; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(2,0,10,.08); color:var(--ink); font-size:1.2rem; line-height:1;
  border:1px solid rgba(2,0,10,.12); border-radius:50%;
}
.site-nav ol{ display:flex; flex-direction:column; gap:.1rem; }
.site-nav a{
  font-family:var(--font-display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(2rem,6.5vw,4.6rem); display:flex; align-items:baseline; gap:1.1rem;
  padding:.25rem 0; transition:color .25s var(--ease); color:var(--ink);
}
.site-nav a::before{ content:attr(data-num); font-family:var(--font-mono); font-weight:400; font-size:.8rem; color:var(--accent); }
.site-nav a:hover{ color:var(--accent); }
.nav-footer{ display:flex; flex-direction:column; align-items:flex-start; }
.nav-meta{ font-family:var(--font-mono); font-size:.75rem; color:var(--muted); display:flex; gap:2rem; }
/* Hero */
.hero{ position:relative; min-height:100svh; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-img{ height:112%; will-change:transform; filter:contrast(1.05) brightness(1.02); object-position:center center; }
.hero-media::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(2,0,10,.15), rgba(2,0,10,.52)); z-index:1; }
.hero-scrim{ position:absolute; inset:0; background:rgba(2,0,10,.45); }
.hero-content{ position:relative; z-index:2; width:100%; padding:0 clamp(1.2rem,4vw,2.6rem) 5.2rem; }
.eyebrow{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:#7fe0b1; margin-bottom:1.1rem; }
.hero-title{
  font-family:var(--font-display); font-weight:800; letter-spacing:-.03em; line-height:.94;
  font-size:clamp(2.8rem,8.4vw,6.4rem); color:#f5f3ec; max-width:17ch;
  text-shadow:0 12px 30px rgba(2,0,10,.16);
}
.hero-title .line{ display:block; overflow:hidden; }
.hero-foot{ margin-top:2.4rem; display:flex; align-items:flex-end; justify-content:space-between; gap:2rem; flex-wrap:wrap; max-width:900px; }
.hero-sub{ max-width:32ch; color:rgba(245,243,236,.72); font-size:.95rem; }
.btn-solid{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--font-mono); font-size:.76rem; letter-spacing:.05em; text-transform:uppercase;
  padding:.9rem 1.5rem; border-radius:100px; background:#fff; color:#131209; border:1px solid rgba(2,0,10,.08); white-space:nowrap;
  transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), gap .3s var(--ease);
}
.btn-solid:hover{ background:var(--accent); color:#fff; border-color:var(--accent); gap:.9rem; }
.hero-scroll-cue{ position:absolute; right:clamp(1.2rem,4vw,2.6rem); bottom:1.8rem; z-index:2; display:flex; flex-direction:column; align-items:center; gap:.5rem; font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em; color:rgba(245,243,236,.6); }
.scroll-cue-line{ width:1px; height:44px; background:rgba(245,243,236,.25); overflow:hidden; }
.scroll-cue-line i{ display:block; width:100%; height:40%; background:#6dd4ab; animation:cueDrop 2.2s var(--ease) infinite; }
@keyframes cueDrop{ 0%{ transform:translateY(-100%);} 60%,100%{ transform:translateY(250%);} }

/* Marquee */
.marquee-strip{ background:var(--ink); overflow:hidden; }
.marquee-track{ display:flex; width:max-content; animation:marquee 30s linear infinite; }
.marquee-track span{ font-family:var(--font-display); font-weight:800; letter-spacing:-.01em; font-size:clamp(.95rem,2.2vw,1.4rem); padding:.85rem 0; white-space:nowrap; color:#f5f3ec; text-transform:uppercase; }
.marquee-track span em{ font-style:normal; color:var(--accent); }
@keyframes marquee{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* Section shell */
.section{ position:relative; padding:clamp(4.5rem,9vw,7.5rem) clamp(1.2rem,4vw,2.6rem); }
.tone-a{ background:var(--bg); }
.tone-b{ background:var(--panel); }
.section-head{ max-width:var(--container); margin:0 auto 2.8rem; }
.section-eyebrow{ font-family:var(--font-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:.8rem; }
.section-title{ font-family:var(--font-display); font-weight:800; letter-spacing:-.03em; font-size:clamp(1.9rem,5vw,3.4rem); line-height:1.02; }
.section-sub{ margin-top:1rem; max-width:50ch; color:var(--muted); font-size:1rem; }

/* Big ghost number behind section headings, offset asymmetrically */
.section-head{ position:relative; }
.section-head .ghost-num{
  position:absolute; top:-2.2rem; right:0; z-index:-1;
  font-family:var(--font-display); font-weight:800; font-size:clamp(4rem,12vw,9rem);
  color:transparent; -webkit-text-stroke:1px var(--line); line-height:1; user-select:none;
}
@media (max-width: 760px){ .section-head .ghost-num{ display:none; } }

/* About */
.about-grid{ max-width:var(--container); margin:0 auto; display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(1.6rem,5vw,4rem); align-items:start; }
.about-portrait{ position:sticky; top:5rem; transform:translateY(2.4rem); }
.about-portrait img{ aspect-ratio:4/5; filter:contrast(1.04) brightness(1.02); border-radius:24px; box-shadow:0 24px 60px rgba(2,0,10,.08); }
.caption{ font-family:var(--font-mono); font-size:.68rem; color:var(--muted); margin-top:.7rem; }
.lede{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em; font-size:clamp(1.3rem,2.6vw,1.9rem); line-height:1.25; margin-bottom:1.4rem; }
.about-copy p{ color:var(--ink); opacity:.78; margin-bottom:1.1rem; max-width:56ch; }
.about-stats{ margin-top:2.2rem; display:grid; grid-template-columns:repeat(3,1fr); gap:1.4rem; border-top:1px solid var(--line); padding-top:1.8rem; }
.stat{ display:flex; flex-direction:column; gap:.3rem; }
.stat-num{ font-family:var(--font-display); font-weight:800; letter-spacing:-.01em; font-size:1.7rem; color:var(--ink); }
.stat-label{ font-size:.75rem; color:var(--muted); line-height:1.4; }

/* Work */
.work-list{ max-width:var(--container); margin:0 auto; display:flex; flex-direction:column; gap:clamp(3rem,6vw,5rem); }
.work-item{ display:grid; grid-template-columns:1.25fr .95fr; gap:clamp(1.4rem,4vw,3rem); align-items:center; }
.work-item--reverse{ direction:rtl; }
.work-item--reverse > *{ direction:ltr; }
.work-item:nth-child(even){ margin-left:auto; transform:translateX(0); }
.work-media{ overflow:hidden; aspect-ratio:16/10.5; }
.work-media img{ filter:grayscale(.2); transition:transform 1s var(--ease), filter .4s var(--ease); }
.work-item:hover .work-media img{ transform:scale(1.05); filter:grayscale(0); }
.work-info h3{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em; font-size:clamp(1.4rem,2.4vw,2rem); margin-bottom:.5rem; }
.work-tags{ font-family:var(--font-mono); font-size:.68rem; letter-spacing:.05em; color:var(--accent); text-transform:uppercase; margin-bottom:.9rem; }
.work-desc{ color:var(--muted); max-width:42ch; }
.work-desc a{ color:var(--accent); border-bottom:1px solid currentColor; }

/* Photography */
.gallery{ max-width:var(--container); margin:0 auto; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:.9rem; }
.gallery-item{ position:relative; overflow:hidden; border:6px solid var(--panel); aspect-ratio:4/5; border-radius:20px; box-shadow:0 16px 42px rgba(2,0,10,.06); isolation:isolate; }
.gallery-item img{ filter:saturate(1.02); transition:transform 1s var(--ease), filter .4s var(--ease); }
.gallery-item:hover img{ transform:scale(1.05); filter:saturate(1.08); }
.gallery-item figcaption{
  position:absolute; left:.7rem; bottom:.7rem;
  font-family:var(--font-mono); font-size:.64rem; color:#fff;
  background:rgba(19,18,9,.65); padding:.3rem .55rem; border-radius:100px;
  opacity:0; transform:translateY(6px); transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover figcaption{ opacity:1; transform:translateY(0); }
@media (max-width: 860px){ .gallery{ grid-template-columns:repeat(2, minmax(0,1fr)); } .gallery-item:nth-last-child(1){ display:none; } }
@media (max-width: 560px){ .gallery{ grid-template-columns:1fr; } .gallery-item:nth-last-child(1){ display:block; } }

/* Pull quote */
.pull-quote{ padding:clamp(4rem,8vw,6rem) clamp(1.2rem,4vw,2.6rem); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:rgba(255,255,255,.35); }
.pull-quote-inner{ max-width:900px; margin:0 auto; }
.pull-quote blockquote{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em; font-size:clamp(1.4rem,3.4vw,2.4rem); line-height:1.2; color:var(--ink); }
.pull-quote cite{ display:block; margin-top:1.4rem; font-style:normal; font-family:var(--font-mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }

/* Equipment */
.equipment-grid{ max-width:var(--container); margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:22px; overflow:hidden; }
.equipment-item{ background:var(--panel); padding:2.2rem 1.7rem; display:flex; flex-direction:column; gap:.8rem; }
.equipment-index{ font-family:var(--font-mono); font-size:.72rem; color:var(--accent); }
.equipment-item h3{ font-family:var(--font-display); font-weight:800; letter-spacing:-.01em; font-size:1.2rem; }
.equipment-item p{ color:var(--muted); font-size:.86rem; line-height:1.55; }
@media (max-width: 760px){ .equipment-grid{ grid-template-columns:1fr; } }

/* Contact */
.contact{ min-height:65vh; display:flex; align-items:center; }
.contact-inner{ max-width:var(--container); margin:0 auto; display:flex; flex-direction:column; align-items:flex-start; }
.contact-title{ font-family:var(--font-display); font-weight:800; letter-spacing:-.03em; font-size:clamp(2.2rem,7vw,4.6rem); line-height:.98; margin:.5rem 0 2rem; }
.contact-email{ font-family:var(--font-mono); font-size:clamp(1rem,2.2vw,1.3rem); padding-bottom:.3rem; border-bottom:1px solid var(--line); transition:color .3s var(--ease), border-color .3s var(--ease); }
.contact{ background:#f7f5f0; }
.contact-email:hover{ color:var(--accent); border-color:var(--accent); }
.contact-links{ display:flex; flex-wrap:wrap; gap:2.6rem; margin-top:2.2rem; }
.contact-links > div{ display:flex; flex-direction:column; gap:.5rem; }
.contact-links a{ font-family:var(--font-mono); font-size:.8rem; color:var(--muted); }
.contact-links a:hover{ color:var(--ink); }

/* Footer */
.site-footer{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding:1.5rem clamp(1.2rem,4vw,2.6rem) 2rem; font-family:var(--font-mono); font-size:.72rem; color:var(--muted); border-top:1px solid var(--line); }
.site-footer p{ margin:0; }

/* Scroll controls */
.scroll-iris{ position:fixed; right:1.6rem; bottom:1.4rem; z-index:500; width:42px; height:42px; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .4s var(--ease), transform .4s var(--ease); }
.scroll-iris.is-visible{ opacity:1; pointer-events:auto; }
.scroll-iris.is-visible:hover{ transform:scale(1.2); }
.scroll-iris.is-bottom{ transform:translateY(0) scale(1.15); }
.scroll-iris.is-bottom:hover{ transform:translateY(0) scale(1.35); }
.scroll-iris svg:first-child{ position:absolute; inset:0; transform:rotate(-90deg); }
.scroll-iris-track{ fill:none; stroke:var(--line); stroke-width:2; }
.scroll-iris-fill{ fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-dasharray:163.36; stroke-dashoffset:163.36; }
.scroll-iris-arrow{ color:var(--accent); opacity:0; transform:translateY(4px); transition:opacity .3s var(--ease), transform .3s var(--ease); }
.scroll-iris.is-bottom .scroll-iris-fill{ opacity:0; }
.scroll-iris.is-bottom .scroll-iris-arrow{ opacity:1; transform:translateY(0); }
@media (max-width: 860px){ .scroll-iris{ display:none; } }

.soon-toast{
  position:fixed; left:50%; bottom:2.2rem; z-index:9997; transform:translate(-50%, 12px); opacity:0;
  background:var(--ink); color:var(--bg); font-family:var(--font-mono); font-size:.78rem; letter-spacing:.03em;
  padding:.75rem 1.3rem; border-radius:100px; transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.soon-toast.is-in{ opacity:1; transform:translate(-50%, 0); }

.reveal-line > *{ display:inline-block; }
[data-reveal]{ opacity:0; transform:translateY(24px); }
[data-reveal].is-in{ opacity:1; transform:none; transition:opacity .8s var(--ease), transform .8s var(--ease); }

/* Responsive */
@media (max-width: 960px){
  .about-grid{ grid-template-columns:1fr; }
  .about-portrait{ position:static; transform:none; }
  .work-item{ grid-template-columns:1fr; }
  .work-item--reverse{ direction:ltr; }
  .about-stats{ grid-template-columns:1fr; gap:1rem; }
  .hero-foot{ flex-direction:column; align-items:flex-start; gap:1.4rem; }
}
@media (max-width: 560px){
  .site-nav a{ font-size:2.1rem; gap:.6rem; }
}
