*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:Montserrat,Arial,sans-serif;font-weight:300;letter-spacing:.04em;transition:background-color .35s ease,color .35s ease}
a{color:inherit}

:root{--bg:#080808;--surface:#0d0d0d;--surface2:#111;--text:#eee;--text-soft:#aaa;--text-muted:#777;--accent:#b99a62;--border:rgba(255,255,255,.08);--header-bg:rgba(8,8,8,.82)}
html[data-theme="light"]{--bg:#f6f5f2;--surface:#fff;--surface2:#eeeeeb;--text:#111;--text-soft:#555;--text-muted:#777;--accent:#927541;--border:rgba(0,0,0,.10);--header-bg:rgba(246,245,242,.88)}

.site-header{position:fixed;z-index:20;top:0;left:0;width:100%;height:84px;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;background:var(--header-bg);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);transition:background-color .35s ease,border-color .35s ease}
.brand{color:var(--text);text-decoration:none;font-family:"Cormorant Garamond",serif;font-size:27px;letter-spacing:.18em}
.brand span,.footer-brand span{display:block;font-family:Montserrat,sans-serif;font-size:9px;letter-spacing:.45em;margin-top:-2px;color:var(--accent)}
nav{order:4;display:flex;gap:32px;align-items:center;margin-left:0}
nav a{color:var(--text-soft);text-decoration:none;font-size:11px;letter-spacing:.18em}
nav a:hover,nav a.active{color:var(--accent)}
.menu-toggle{order:3;display:none;background:none;border:0;color:var(--text);font-size:24px;cursor:pointer}

.theme-toggle{order:2;display:inline-flex;align-items:center;justify-content:center;width:58px;height:30px;padding:0;margin-left:auto;margin-right:18px;border:1px solid var(--border);border-radius:30px;background:var(--surface2);color:var(--text);cursor:pointer;line-height:1}
.theme-toggle .theme-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--text);color:var(--bg);transition:transform .3s ease}
html[data-theme="light"] .theme-toggle .theme-icon{transform:translateX(13px)}

.hero{
 min-height:100vh;
 position:relative;
 display:flex;
 align-items:center;
 padding:100px 6vw 50px;
 overflow:hidden;
 background-color:var(--bg);
 background-image:linear-gradient(90deg,rgba(8,8,8,.92) 0%,rgba(8,8,8,.72) 28%,rgba(8,8,8,.20) 62%,rgba(8,8,8,.04) 100%),url('assets/hero-desktop.jpg');
 background-repeat:no-repeat;
 background-position:center center;
 background-size:auto 100vh;
 background-attachment:fixed;
}
.hero-image,
.hero-photo{
 position:absolute;
 inset:0;
 width:100%;
 height:100%;
 overflow:hidden;
 pointer-events:none;
}
.hero-image,
.hero-photo img{
 opacity:0;
}
.hero-overlay{
 position:absolute;
 inset:0;
 z-index:1;
 background:linear-gradient(90deg,rgba(8,8,8,.42) 0%,rgba(8,8,8,.18) 45%,rgba(8,8,8,.04) 72%,rgba(8,8,8,0) 100%);
 pointer-events:none;
}
html[data-theme="light"] .hero{
 background-image:linear-gradient(90deg,rgba(246,245,242,.94) 0%,rgba(246,245,242,.74) 30%,rgba(246,245,242,.20) 64%,rgba(246,245,242,.04) 100%),url('assets/hero-desktop.jpg');
}
html[data-theme="light"] .hero-overlay{
 background:linear-gradient(90deg,rgba(246,245,242,.34) 0%,rgba(246,245,242,.14) 45%,rgba(246,245,242,.03) 72%,rgba(246,245,242,0) 100%);
}
.hero-copy{
 position:relative;
 z-index:2;
 max-width:650px;
 padding:30px 0;
}
.eyebrow{font-size:10px;letter-spacing:.35em;color:var(--accent);margin:0 0 20px}
.hero h1,.section h1{font:500 clamp(56px,8vw,110px)/.8 "Cormorant Garamond",serif;letter-spacing:.08em;margin:0;color:var(--text)}
.hero h2{font:400 clamp(24px,3vw,43px)/1 "Cormorant Garamond",serif;letter-spacing:.45em;color:var(--accent);margin:25px 0 35px}
.statement{font:11px/2.2 Montserrat,sans-serif;letter-spacing:.22em;color:var(--text-soft);border-left:1px solid var(--accent);padding-left:20px;margin:0 0 55px}
.text-link{color:var(--accent);text-decoration:none;font-size:10px;letter-spacing:.18em}
.text-link span{font-size:18px;margin-left:12px}
.scroll{position:absolute;bottom:30px;left:50%;font-size:9px;letter-spacing:.25em;color:var(--text-soft);z-index:3}
.hero-signature{display:block;width:92px;height:92px;object-fit:contain;margin-top:24px;opacity:.92}

.section{padding:110px 5vw;background:var(--bg);color:var(--text);border-color:var(--border)}
.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:35px}
.section-heading h2,.studio-copy h2,.about h2,.contact h2{font:400 46px/1.05 "Cormorant Garamond",serif;letter-spacing:.06em;margin:0;color:var(--text)}
.portfolio-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.portfolio-card{height:430px;text-decoration:none;position:relative;display:flex;align-items:end;justify-content:flex-start;padding:25px;background-position:center;background-size:cover;background-repeat:no-repeat;overflow:hidden}
.portfolio-card:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.82))}
.portfolio-card span{position:relative;z-index:1;font:400 25px "Cormorant Garamond",serif;letter-spacing:.08em;color:#fff}
.portfolio-card small{font:9px Montserrat,sans-serif;letter-spacing:.18em;color:#b99a62}
.studio{display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center;border-top:1px solid var(--border)}
.studio-image{min-height:450px;background-position:center;background-size:cover;background-repeat:no-repeat}
.studio-copy p:not(.eyebrow),.about-text,.contact p{font-size:12px;line-height:2;color:var(--text-soft);max-width:540px;margin:30px 0 35px}
.about{border-top:1px solid var(--border);text-align:center}
.about-text{margin:35px auto}
.contact{text-align:center;border-top:1px solid var(--border)}
footer{border-top:1px solid var(--border);padding:45px 5vw;display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px;color:var(--text-muted);font-size:9px;letter-spacing:.16em;background:var(--bg)}
.footer-brand{font:28px "Cormorant Garamond",serif;color:var(--text)}

/* Contact form — preserved from the working version, now theme-aware. */
.contact-intro{max-width:650px;margin:25px auto 50px;color:var(--text-soft);font-size:12px;line-height:2}
.contact-form{max-width:850px;margin:0 auto;text-align:left}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin-bottom:25px}
.form-field{margin-bottom:25px}
.form-field label{display:block;margin-bottom:10px;color:var(--accent);font-size:9px;letter-spacing:.2em}
.form-field input,.form-field select,.form-field textarea{width:100%;padding:14px 15px;border:1px solid var(--border);background:rgba(127,127,127,.04);color:var(--text);font-family:Montserrat,Arial,sans-serif;font-size:12px;outline:none;border-radius:0}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:var(--accent)}
.form-field select option{background:#111;color:#eee}
html[data-theme="light"] .form-field select option{background:#fff;color:#111}
.form-field textarea{resize:vertical;min-height:150px}
.contact-button{display:inline-block;padding:15px 30px;border:1px solid var(--accent);background:transparent;color:var(--accent);font-family:Montserrat,Arial,sans-serif;font-size:10px;letter-spacing:.2em;cursor:pointer;text-decoration:none}
.contact-button:hover{background:var(--accent);color:var(--bg)}
.contact-status{margin-top:25px;font-size:11px}
.contact-status.success{color:var(--accent)}
.contact-status.error{color:#c77}

@media(max-width:800px){
 .site-header{height:70px;padding:0 5vw}
 .brand{font-size:22px}
 nav{display:none}
 nav.mobile-open{
  display:flex;
  position:absolute;
  top:70px;
  left:0;
  width:100%;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  margin:0;
  padding:8px 5vw 14px;
  background:var(--header-bg);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px);
 }
 nav.mobile-open a{
  display:block;
  padding:14px 0;
  border-bottom:1px solid var(--border);
 }
 nav.mobile-open a:last-child{border-bottom:0}
 .menu-toggle{display:block}
 .theme-toggle{margin-left:auto;margin-right:10px}
 .hero{
  min-height:100vh;
  padding:100px 7vw 50px;
  background-color:var(--bg);
  background-image:url('assets/hero.jpg');
  background-repeat:no-repeat;
  /* Stable mobile anchor: fixed image, but use small-viewport units so
     browser address-bar resizing does not make the image jump while scrolling. */
  background-position:right 0 top 11svh;
  background-size:auto 78svh;
  background-attachment:fixed;
 }
 .hero-image,.hero-photo{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
 }
 .hero-photo img{
  width:100%;
  height:100%;
  opacity:0;
 }
 .hero-overlay{
  background:linear-gradient(90deg,rgba(0,0,0,.68) 0%,rgba(0,0,0,.38) 55%,rgba(0,0,0,.16) 100%);
 }
 html[data-theme="light"] .hero{
  background-color:var(--bg);
  background-image:url('assets/hero.jpg');
  background-repeat:no-repeat;
  /* Stable mobile anchor: fixed image, but use small-viewport units so
     browser address-bar resizing does not make the image jump while scrolling. */
  background-position:right 0 top 11svh;
  background-size:auto 78svh;
  background-attachment:fixed;
 }
 html[data-theme="light"] .hero-overlay{background:linear-gradient(90deg,rgba(246,245,242,.82) 0%,rgba(246,245,242,.42) 55%,rgba(246,245,242,.12) 100%)}
 .hero-copy{max-width:100%}
 .hero h1{font-size:60px}
 .hero h2{font-size:25px}
 .portfolio-grid{grid-template-columns:1fr 1fr}
 .portfolio-card{height:330px}
 .studio{grid-template-columns:1fr;gap:35px}
 .studio-image{min-height:300px}
 .section{padding:80px 6vw}
 .section-heading{display:block}
 .section-heading .text-link{display:block;margin-top:25px}
 footer{grid-template-columns:1fr}
 .scroll{display:none}
 .form-row{grid-template-columns:1fr;gap:0}
}
@media(max-width:480px){
 .portfolio-grid{grid-template-columns:1fr}
 .portfolio-card{height:420px}
 .hero h1{font-size:50px}
 .hero h2{font-size:21px;letter-spacing:.3em}
 .hero-signature{width:78px;height:78px}
}


/* Mobile hero typography correction — keep title clear of the model's eyes */
@media (max-width: 480px) {
  .hero-copy {
    transform: translateY(145px);
  }
  .hero h1 {
    font-size: 41px;
    letter-spacing: .055em;
    white-space: nowrap;
  }
}


/* Subtle editorial gallery hover — desktop pointer devices only.
   No overlays, shadows, layout movement, or mobile changes. */
@media (hover:hover) and (pointer:fine) and (min-width:801px){
  .grid .item{
    overflow:hidden;
  }
  .grid .item img{
    transition:transform 400ms ease;
    will-change:transform;
  }
  .grid .item:hover img{
    transform:scale(1.03);
  }
}

/* Homepage portfolio category hover — desktop pointer devices only. */
@media (hover:hover) and (pointer:fine) and (min-width:801px){
  .portfolio-card{
    transition:transform 300ms ease;
    will-change:transform;
  }
  .portfolio-card:hover{
    transform:scale(1.03);
  }
}

