/* ==========================================================================
   Nicomedia — refinement layer (2026-11 trial).
   Loaded last; removing this file restores the previous look.
   Typography: Inter (text/UI) + Cormorant Garamond (display), self-hosted.
   ========================================================================== */

:root{
  --font-text:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --font-display:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- Warm stone palette (light theme only) ---------- */
html[data-theme=light]{
  --ink:#1d1c1a;--muted:#5d5b55;--line:#e2ded5;--paper:#fbfaf7;
  --stone-1:#f4f2ed;--stone-2:#ece8e0;--night:#1c1b19;
}
html[data-theme=light] body{background:var(--paper)}
html[data-theme=light] :is(.projects,.surface-section,.project-gallery,.project-cover-frame){background:var(--stone-1)}
html[data-theme=light] :is(.project-photo,.photo-grid .photo-open,.crew-grid .photo-open,.surface-grid .photo-open){background:var(--stone-2)}
html[data-theme=light] footer{background:var(--stone-1)}
html[data-theme=light] .footer-bottom{border-top-color:var(--line)}
/* Technical feature (home): light in the light theme, dark only in the dark theme */
html[data-theme=light] .technical-feature{background:var(--stone-1);color:var(--ink)}
html[data-theme=light] .technical-copy>.eyebrow{color:var(--red)}
html[data-theme=light] .technical-copy p{color:var(--muted)}
html[data-theme=light] .technical-copy .outline-button{border-color:var(--ink);color:var(--ink)}
html[data-theme=light] .technical-copy .outline-button:hover{background:var(--ink);border-color:var(--ink);color:var(--paper)}
html[data-theme=light] .technical-visual>span{background:#fffd;color:var(--ink)}
html[data-theme=light] .tags>span{background:var(--stone-1)}
html[data-theme=light] :is(input,textarea){background:#fff;border-color:var(--line)}

/* ---------- Typography ---------- */
body{font-family:var(--font-text);font-size:16px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-feature-settings:"ss01","cv11"}
p{line-height:1.75}
h1,h2,.project-meta h3,.next-project>a,.process-item h2,.privacy-copy h2{
  font-family:var(--font-display);font-weight:500;letter-spacing:-.01em;
}
h1{font-size:clamp(46px,5.2vw,80px);line-height:1.04}
h2{font-size:clamp(32px,3vw,44px);line-height:1.1}
h3{font-family:var(--font-text);font-weight:500;font-size:21px;letter-spacing:-.015em}

/* Small caps labels (some are h2/h3 elements — keep them in the text face) */
.eyebrow,h2.eyebrow,h3.eyebrow{font-family:var(--font-text);font-size:11px;font-weight:600;letter-spacing:.18em;line-height:1.6}
.text-link,.more,.button,.outline-button{font-weight:500;letter-spacing:.14em}
.text-link{font-size:11px;padding-bottom:8px;transition:color .25s var(--ease),border-color .25s var(--ease)}
.text-link:hover{color:var(--red)}

/* ---------- Header ---------- */
header{
  background:color-mix(in srgb,var(--paper) 86%,transparent);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);
  border-bottom-color:var(--line);
}
html[data-theme=dark] header{background:color-mix(in srgb,#151719 86%,transparent)}
nav{font-size:13px;letter-spacing:.01em}
nav a{transition:border-color .25s var(--ease),color .25s var(--ease)}
nav a:hover{color:var(--red)}
.language-switch{font-size:12px;letter-spacing:.06em}

/* ---------- Buttons ---------- */
.button,.outline-button{font-size:11px;padding:18px 26px;transition:background-color .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease)}
.outline-button{border-color:#ffffffa6}
.outline-button:hover{background:#fff;color:var(--night,#1c1b19);border-color:#fff}

/* ---------- Hero ---------- */
.hero-copy h1{font-size:clamp(48px,5.4vw,84px);line-height:1.02;letter-spacing:-.012em;font-weight:500}
html[lang=ru] .hero-copy h1{font-size:clamp(40px,4.6vw,72px)}
.hero-copy>p:not(.eyebrow){font-size:15px;letter-spacing:.02em;color:#eeeae2}
.hero-shade{background:linear-gradient(90deg,#000a 0%,#0005 45%,transparent 85%),linear-gradient(0deg,#0009,transparent 35%)}
.hero-bottom strong{font-family:var(--font-display);font-size:22px;font-weight:500;letter-spacing:0}
.slide-controls button{transition:background-color .25s var(--ease),color .25s var(--ease)}
@media(min-width:901px){body[data-hero-variant=c] .hero-copy h1{margin-bottom:28px}}

/* ---------- Intro & services ---------- */
.intro h2{font-size:clamp(34px,3.2vw,48px)}
.intro p:not(.eyebrow){font-size:16px}
.service{border-top-color:var(--ink);padding-top:30px}
.service h3{margin:22px 0 14px;transition:color .25s var(--ease)}
.service p{font-size:14.5px}
.service .more{transition:letter-spacing .3s var(--ease),color .25s var(--ease)}
.service:hover .more{color:var(--red);letter-spacing:.2em}

/* ---------- Project cards ---------- */
.project-photo>img,.project-photo>.project-card-image{transition:transform 1s var(--ease),filter .6s var(--ease)}
.project-card:hover .project-photo>img{transform:scale(1.04)}
.project-arrow{transition:background-color .3s var(--ease),color .3s var(--ease)}
.project-card:hover .project-arrow{background:var(--red);color:#fff}
.project-meta{margin-top:18px;align-items:baseline}
.project-meta .eyebrow{font-size:10.5px;margin-bottom:6px}
.project-meta h3{font-size:30px;line-height:1.1}
.project-meta>span{font-size:11px;letter-spacing:.08em}
/* Photo-edit disclosure kept, styled as a quiet caption */
.cover-label{left:12px;bottom:12px;padding:5px 8px;font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  background:#ffffffc7;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#3b3a37}

/* ---------- Technical feature ---------- */
.technical-copy h2{font-size:clamp(34px,3vw,46px)}
.process-mini span{font-size:10.5px;letter-spacing:.12em}

/* ---------- CTA & footer ---------- */
.cta{padding-top:84px;padding-bottom:84px}
.cta h2{font-size:clamp(34px,3.4vw,50px)}
.footer-top p{font-size:13px;line-height:1.7}
.footer-top>a{font-family:var(--font-display);font-size:22px}
.footer-bottom{font-size:11px}
.footer-bottom a{transition:color .25s var(--ease)}
.footer-bottom a:hover{color:var(--red)}
.privacy-link{font-size:11px}

/* ---------- Interior pages ---------- */
.page-title h1{font-size:clamp(42px,4.2vw,62px);line-height:1.06;letter-spacing:-.01em}
.page-title .page-intro{font-size:16px}
.project-intro h1{font-size:clamp(38px,3.4vw,52px);line-height:1.04;letter-spacing:-.01em}
.project-intro dd{font-size:14px}
.project-overview .lead{font-size:18px;line-height:1.75;color:var(--ink)}
.project-gallery .section-head h2,.crew-heading h2,.project-film .section-head h2{font-size:clamp(32px,2.8vw,40px)}
.photo-grid{gap:28px}
.photo-grid img,.crew-grid img,.surface-grid img{transition:transform .9s var(--ease)}
.photo-open:hover img{transform:scale(1.025)}
.photo-grid figcaption,.crew-grid figcaption{font-size:12px}
.next-project>a{font-size:32px;transition:color .25s var(--ease)}
.next-project>a:hover{color:var(--red)}
.process-item h2{font-size:30px}
.process-item p,.expertise p{font-size:15px}
.email{font-family:var(--font-display);font-size:34px}
.phone{font-size:18px;letter-spacing:.02em}
form h2{font-size:36px}
label{font-size:12px;letter-spacing:.02em}
input,textarea{transition:border-color .2s var(--ease),background-color .2s var(--ease)}
input:focus,textarea:focus{outline:none;border-color:var(--ink)}

/* Lead photo: keep the zoom badge on the image itself (it floated beside contained photos). */
.project-lead-photo{width:fit-content;max-width:100%;margin-inline:auto;overflow:hidden}
.project-lead-photo img{width:auto;max-width:100%}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .hero-copy h1,html[lang=ru] .hero-copy h1{font-size:42px;line-height:1.06;letter-spacing:-.01em}
  .hero-bottom strong{font-size:17px}
  nav{background:var(--paper)}
}
@media(max-width:700px){
  body{font-size:15px}
  h2,.intro h2,.cta h2,.technical-copy h2{font-size:34px}
  .page-title h1{font-size:38px}
  .project-intro h1{font-size:36px}
  .project-meta h3{font-size:27px}
  .process-item h2{font-size:27px}
  .email{font-size:26px}
  .cta{padding-top:56px;padding-bottom:56px}
  .footer-top>a{font-size:20px}
}
@media(max-width:400px){.hero-copy h1,html[lang=ru] .hero-copy h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.project-card:hover .project-photo>img,.photo-open:hover img{transform:none}}
