/* =========================================================
   THE FINE CUT — design tokens
   Colors: #0B0B0B (ink) / #FAF8F5 (ivory) / #FFFFFF / #6E6A64 (stone)
   Type: Playfair Display (display) + Inter (body/UI)
   ========================================================= */

:root{
  --ink:#0b0b0b;
  --ink-soft:#161616;
  --ivory:#faf8f5;
  --white:#ffffff;
  --stone:#6e6a64;
  --stone-light:#a39d94;
  --hairline: rgba(11,11,11,0.12);
  --hairline-light: rgba(255,255,255,0.18);
  --ease: cubic-bezier(.16,.84,.44,1);
  --maxw: 1400px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:auto;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;background:none;border:none;color:inherit;}
h1,h2,h3,h4{
  font-family:'Playfair Display',serif;
  font-weight:500;
  margin:0;
  letter-spacing:-0.01em;
}
p{margin:0;}
ul{list-style:none;margin:0;padding:0;}

.eyebrow{
  font-size:11px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--stone);
  font-weight:600;
  margin:0 0 18px;
}

/* film grain overlay */
.grain-overlay{
  position:fixed; inset:0; pointer-events:none; z-index:9999;
  opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============== HEADER =============== */
#site-header{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  transition:background .4s var(--ease), border-color .4s var(--ease);
  border-bottom:1px solid transparent;
}
#site-header.scrolled{
  background:rgba(250,248,245,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--hairline);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:22px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.wordmark{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:20px;
  letter-spacing:0.02em;
  text-transform:uppercase;
  color:var(--white);
  transition:color .4s var(--ease);
}
#site-header.scrolled .wordmark{ color:var(--ink); }
.nav-links{ display:flex; align-items:center; gap:36px; }
.nav-links a{
  font-size:13px; letter-spacing:0.04em; color:var(--white);
  transition:color .4s var(--ease), opacity .2s;
  opacity:0.92;
}
.nav-links a:hover{ opacity:1; }
#site-header.scrolled .nav-links a{ color:var(--ink); }
.nav-cta{
  border:1px solid rgba(255,255,255,0.55);
  padding:9px 18px; border-radius:2px;
}
#site-header.scrolled .nav-cta{ border-color:var(--ink); }
.nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav-toggle span{ display:block; height:1px; background:var(--white); transition:.3s; }
#site-header.scrolled .nav-toggle span{ background:var(--ink); }

/* =============== HERO =============== */
.hero{
  position:relative; height:100svh; min-height:560px;
  display:flex; align-items:flex-end;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:50% 22%;
  filter:grayscale(14%) contrast(1.05);
  transform:scale(1.06);
}
.hero-media::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 32%, rgba(0,0,0,0.55) 100%);
}
.hero-content{
  position:relative; z-index:2; color:var(--white);
  max-width:var(--maxw); margin:0 auto; width:100%;
  padding:0 32px 96px;
}
.hero-content .eyebrow{ color:rgba(255,255,255,0.75); }
.hero h1{
  font-size:clamp(38px, 6vw, 84px);
  line-height:1.02;
  color:var(--white);
  max-width:14ch;
}
.hero-sub{
  margin-top:22px; font-size:16px; color:rgba(255,255,255,0.85);
  max-width:44ch; line-height:1.6;
}
.hero-actions{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.hero-scroll{
  position:absolute; right:32px; bottom:36px; z-index:2;
  color:rgba(255,255,255,0.75); font-size:11px; letter-spacing:0.15em; text-transform:uppercase;
  display:flex; align-items:center; gap:10px;
}
.hero-scroll span{
  width:1px; height:34px; background:rgba(255,255,255,0.6);
  position:relative; overflow:hidden;
}
.hero-scroll span::after{
  content:''; position:absolute; top:-100%; left:0; width:100%; height:100%;
  background:var(--white); animation:scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine{ 0%{top:-100%;} 60%{top:100%;} 100%{top:100%;} }

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:15px 30px; font-size:13px; letter-spacing:0.05em;
  border-radius:2px; transition:all .3s var(--ease); white-space:nowrap;
}
.btn-light{ background:var(--white); color:var(--ink); }
.btn-light:hover{ background:var(--ivory); }
.btn-ghost{ border:1px solid rgba(255,255,255,0.6); color:var(--white); }
.btn-ghost:hover{ border-color:var(--white); background:rgba(255,255,255,0.08); }
.btn-dark{ background:var(--ink); color:var(--white); }
.btn-dark:hover{ background:var(--ink-soft); }

/* =============== INTRO STRIP =============== */
.intro-strip{
  background:var(--ink); color:var(--ivory);
  padding:16px 0; overflow:hidden; white-space:nowrap;
}
.intro-strip p{
  display:inline-block; padding-left:100%;
  font-size:13px; letter-spacing:0.1em; text-transform:uppercase;
  animation:marquee 32s linear infinite;
}
@keyframes marquee{ 0%{transform:translateX(0);} 100%{transform:translateX(-100%);} }

/* =============== SECTIONS =============== */
.section{ padding:120px 32px; max-width:var(--maxw); margin:0 auto; }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head.light .eyebrow{ color:rgba(250,248,245,0.6); }
.section-head h2{ font-size:clamp(28px,3.6vw,44px); line-height:1.15; }
.section-lede{ margin-top:18px; color:var(--stone); font-size:16px; line-height:1.7; max-width:56ch; }

/* =============== WORK GRID =============== */
.work-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:4px;
}
.work-item{
  position:relative; aspect-ratio:4/5; overflow:hidden; cursor:pointer;
  background:var(--ink);
}
.work-item.tall{ grid-row:span 2; aspect-ratio:auto; height:100%; }
.work-item img{
  width:100%; height:100%; object-fit:cover;
  filter:grayscale(10%) contrast(1.05);
  transform:scale(1.01);
  transition:transform .7s var(--ease), filter .5s;
}
.work-item:hover img{ transform:scale(1.07); filter:grayscale(0%) contrast(1.08); }
.work-item::before{
  content:''; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  opacity:0.75; transition:opacity .4s;
}
.work-item:hover::before{ opacity:0.9; }
.work-info{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:22px; color:var(--white);
}
.work-cat{ font-size:10px; letter-spacing:0.14em; text-transform:uppercase; color:rgba(255,255,255,0.7); }
.work-name{ font-family:'Playfair Display',serif; font-size:22px; margin-top:6px; }
.work-count{
  position:absolute; top:18px; right:18px; z-index:2;
  font-size:11px; letter-spacing:0.05em; color:rgba(255,255,255,0.85);
  border:1px solid rgba(255,255,255,0.4); padding:4px 9px; border-radius:20px;
}

@media(max-width:900px){
  .work-grid{ grid-template-columns:repeat(2,1fr); }
  .work-item.tall{ grid-row:span 1; aspect-ratio:4/5; }
}
@media(max-width:560px){
  .work-grid{ grid-template-columns:1fr; }
}

/* =============== SERVICES =============== */
.services-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  border-top:1px solid var(--hairline);
}
.service{
  padding:40px 28px 40px 0; border-right:1px solid var(--hairline);
}
.service:last-child{ border-right:none; }
.service-num{ font-size:12px; color:var(--stone-light); letter-spacing:0.1em; }
.service h3{ font-size:20px; margin:26px 0 14px; }
.service p{ color:var(--stone); font-size:14px; line-height:1.65; }

@media(max-width:900px){
  .services-grid{ grid-template-columns:1fr 1fr; }
  .service{ border-right:1px solid var(--hairline); border-bottom:1px solid var(--hairline); padding:32px 24px; }
}
@media(max-width:560px){
  .services-grid{ grid-template-columns:1fr; }
}

/* =============== ABOUT =============== */
.about-section{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:80px; align-items:center;
}
.about-media img{ width:100%; aspect-ratio:4/5; object-fit:cover; filter:grayscale(10%); }
.about-content h2{ font-size:clamp(26px,3vw,38px); line-height:1.2; margin-top:4px; }
.about-content p{ color:var(--stone); font-size:16px; line-height:1.75; margin-top:22px; max-width:48ch; }
.about-content .btn{ margin-top:32px; }

@media(max-width:900px){
  .about-section{ grid-template-columns:1fr; gap:40px; }
}

/* =============== APPLY / FORM =============== */
.apply-section{ background:var(--ink); color:var(--ivory); border-radius:2px; }
.apply-section h2{ color:var(--white); }
.apply-section .section-lede{ color:var(--stone-light); }

.apply-form{ max-width:760px; margin-top:8px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.form-field{ margin-bottom:24px; }
.form-field label{
  display:block; font-size:12px; letter-spacing:0.04em; color:rgba(250,248,245,0.65);
  margin-bottom:10px;
}
.form-field input, .form-field select, .form-field textarea{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--hairline-light);
  color:var(--white); font-family:'Inter',sans-serif; font-size:15px; padding:10px 2px;
  transition:border-color .3s;
}
.form-field select option{ color:var(--ink); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--white);
}
.form-field textarea{ resize:vertical; border:1px solid var(--hairline-light); padding:12px; }
.btn-submit{ margin-top:8px; }
.form-note{ margin-top:18px; font-size:12px; color:rgba(250,248,245,0.5); }
.apply-success{ max-width:600px; padding:40px 0; }
.apply-success h3{ color:var(--white); font-size:26px; }
.apply-success p{ color:var(--stone-light); margin-top:12px; }

@media(max-width:700px){
  .form-row{ grid-template-columns:1fr; }
}

/* =============== FOOTER =============== */
#site-footer{ background:var(--ink); color:var(--ivory); padding:80px 32px 32px; }
.footer-top{ max-width:var(--maxw); margin:0 auto; border-bottom:1px solid var(--hairline-light); padding-bottom:48px; }
.footer-top .wordmark{ color:var(--white); font-size:26px; }
.footer-top p{ margin-top:14px; color:var(--stone-light); font-size:15px; max-width:40ch; }
.footer-grid{
  max-width:var(--maxw); margin:0 auto; padding:48px 0;
  display:grid; grid-template-columns:repeat(3,1fr); gap:32px;
}
.footer-col h4{
  font-family:'Inter',sans-serif; font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:rgba(250,248,245,0.5); margin-bottom:18px; font-weight:600;
}
.footer-col a{ display:block; margin-bottom:12px; font-size:14px; color:var(--stone-light); transition:color .2s; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{
  max-width:var(--maxw); margin:0 auto; border-top:1px solid var(--hairline-light);
  padding-top:24px; font-size:12px; color:rgba(250,248,245,0.4);
}

@media(max-width:700px){
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* =============== LIGHTBOX =============== */
.lightbox{
  position:fixed; inset:0; z-index:2000; background:rgba(6,6,6,0.97);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .35s var(--ease);
}
.lightbox.open{ opacity:1; pointer-events:all; }
.lightbox-stage{ max-width:88vw; max-height:82vh; text-align:center; }
.lightbox-stage img{ max-width:88vw; max-height:76vh; object-fit:contain; margin:0 auto; }
.lightbox-caption{ color:rgba(255,255,255,0.7); font-size:13px; margin-top:18px; letter-spacing:0.04em; display:flex; gap:14px; justify-content:center; }
.lightbox-close{
  position:absolute; top:24px; right:32px; color:var(--white); font-size:32px; line-height:1;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); color:var(--white);
  font-size:44px; padding:12px 18px; opacity:0.7; transition:opacity .2s;
}
.lightbox-nav:hover{ opacity:1; }
.lightbox-prev{ left:12px; }
.lightbox-next{ right:12px; }

/* =============== MOBILE NAV =============== */
@media(max-width:820px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:fixed; inset:0 0 0 30%; background:var(--ink);
    flex-direction:column; align-items:flex-start; justify-content:center;
    gap:28px; padding:32px; transform:translateX(100%); transition:transform .4s var(--ease);
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ color:var(--white) !important; font-size:16px; }
  .nav-cta{ border-color:rgba(255,255,255,0.5) !important; }
}

/* =============== REDUCED MOTION =============== */
@media(prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

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