/* Kocovski 2026 : design tokens */
:root {
  --ink: #0f0e0c;
  --ink-2: #1a1916;
  --ivory: #f5f1ea;
  --paper: #fbf9f5;
  --stone: #d8d0c2;
  --muted: #6f685d;
  --muted-dark: #a8a093;
  --gold: #b08d57;
  --gold-2: #c9a86e;
  --line: rgba(15, 14, 12, .12);
  --line-dark: rgba(245, 241, 234, .16);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 144px;
  --wrap: 1360px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 300 17px/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ivory); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * clamp(20px, 5vw, 64px)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding-block: clamp(80px, 12vw, var(--s9)); }
.section-tight { padding-block: clamp(32px, 5vw, var(--s7)); }
.dark { background: var(--ink); color: var(--ivory); }
.muted { color: var(--muted); }
.dark .muted { color: var(--muted-dark); }

/* Typography */
.eyebrow, .label {
  font: 500 11.5px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--s4);
}
.label { color: var(--muted); letter-spacing: .2em; margin-bottom: var(--s2); }
.dark .label { color: var(--muted-dark); }
.eyebrow::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }
.display {
  font: 300 clamp(40px, 5.6vw, 84px)/1.02 var(--serif); letter-spacing: -.01em; margin-bottom: var(--s5);
}
.display.small { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; }
.display em, .hero-title em { font-style: italic; color: var(--gold); }
.dark .display em { color: var(--gold-2); }
.lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 640px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border-radius: 0;
  font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--ivory); }
.btn-ghost { border: 1px solid rgba(245,241,234,.5); color: var(--ivory); }
.btn-ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn-line { border: 1px solid currentColor; min-height: 44px; padding: 0 20px; font-size: 11.5px; }
.btn-line:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.link-arrow { font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 8px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--ivory); transition: background .4s var(--ease), color .4s var(--ease), height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.scrolled {
  background: rgba(251, 249, 245, .94); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line); --header-h: 72px;
}
.header-in { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand-name { font: 400 30px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.brand-sub { font: 400 9.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-top: 7px; opacity: .7; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); align-items: center; }
.nav a { font: 400 13px/1 var(--sans); letter-spacing: .08em; position: relative; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav-tel { display: none; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero, .p-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ivory); overflow: hidden; }
.p-hero { min-height: 88svh; }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 14s var(--ease) forwards; }
@keyframes kenburns { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,14,12,.62) 0%, rgba(15,14,12,.25) 55%, rgba(15,14,12,0) 80%), linear-gradient(180deg, rgba(15,14,12,.55) 0%, rgba(15,14,12,.1) 30%, rgba(15,14,12,.3) 60%, rgba(15,14,12,.9) 100%); }
.hero-in, .p-hero-in { position: relative; padding-bottom: clamp(32px, 6vh, 64px); }
.p-hero-in { padding-bottom: clamp(48px, 9vh, 96px); }
.hero-title { font: 300 clamp(52px, 9vw, 148px)/.95 var(--serif); letter-spacing: -.02em; margin-bottom: var(--s5); }
.hero-title em { color: var(--gold-2); }
.hero-lead { max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); color: rgba(245,241,234,.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); margin-bottom: 0; }
.hero-facts li { padding: var(--s4) var(--s4) var(--s5) 0; display: flex; flex-direction: column; gap: 4px; }
.hero-facts li + li { padding-left: var(--s4); border-left: 1px solid var(--line-dark); }
.hero-facts strong { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); }
.hero-facts span { font-size: 12.5px; letter-spacing: .06em; color: rgba(245,241,234,.7); }
.hero-anim { opacity: 0; transform: translateY(28px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.back { display: inline-block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: var(--s5); opacity: .8; }
.back:hover { color: var(--gold-2); }

/* Marquee */
.marquee { background: var(--ink); color: var(--stone); overflow: hidden; border-top: 1px solid var(--line-dark); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee span { font: italic 300 clamp(20px, 2vw, 28px)/1 var(--serif); white-space: nowrap; padding-right: .4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.manifesto-text > p { max-width: 560px; color: #3c3832; }
.timeline { margin-top: var(--s6); border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.timeline span { font: italic 400 22px/1.2 var(--serif); color: var(--gold); }
.manifesto-media { position: relative; padding-bottom: 18%; }
.m-img { overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-img-1 { width: 78%; aspect-ratio: 3/4; margin-left: auto; }
.m-img-2 { position: absolute; width: 46%; aspect-ratio: 3/4; left: 0; bottom: 0; border: 10px solid var(--paper); }

/* Projects */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .display { margin-bottom: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px) clamp(16px, 2.5vw, 40px); }
.proj-card { display: block; grid-column: span 6; }
.pc-1 { grid-column: 1 / span 7; } .pc-2 { grid-column: 9 / span 4; margin-top: 22%; }
.pc-3 { grid-column: 2 / span 5; } .pc-4 { grid-column: 8 / span 5; margin-top: 12%; }
.pc-5 { grid-column: 1 / span 5; margin-top: 4%; } .pc-6 { grid-column: 7 / span 6; }
.proj-media { overflow: hidden; aspect-ratio: 4/5; background: var(--stone); }
.pc-1 .proj-media, .pc-6 .proj-media { aspect-ratio: 4/3; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); }
.proj-card:hover .proj-media img { transform: scale(1.05); }
.proj-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: var(--s3); padding-top: var(--s3); border-bottom: 1px solid var(--line); padding-bottom: var(--s3); }
.proj-num { font: 400 13px/1 var(--sans); color: var(--gold); }
.proj-meta h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.1 var(--serif); }
.proj-type { grid-column: 2; font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.proj-go { grid-column: 3; grid-row: 1; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: .5s var(--ease); }
.proj-card:hover .proj-go { opacity: 1; transform: none; }
.proj-grid-all .proj-card:nth-child(4n+2), .proj-grid-all .proj-card:nth-child(4n+3) { grid-column: span 6; }
.proj-grid-all .proj-card:nth-child(even) { margin-top: 10%; }

/* Services */
.svc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.svc-visual { position: sticky; top: 110px; aspect-ratio: 4/5; overflow: hidden; background: var(--ink-2); }
.svc-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease); }
.svc-visual img.swap { opacity: 0; }
.svc-list { border-top: 1px solid var(--line-dark); }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); padding: var(--s5) 0; border-bottom: 1px solid var(--line-dark); cursor: default; transition: padding .5s var(--ease); }
.svc-num { font: 400 13px/2.6 var(--sans); color: var(--gold-2); }
.svc h3 { font: 400 clamp(24px, 2.3vw, 34px)/1.15 var(--serif); margin-bottom: 6px; transition: color .4s; }
.svc p { margin: 0; color: var(--muted-dark); font-size: 15.5px; max-width: 520px; }
.svc:hover h3, .svc.active h3 { color: var(--gold-2); }
.svc:hover, .svc.active { padding-left: 10px; }

/* Method */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: s; }
.step { border-top: 1px solid var(--ink); padding-top: var(--s4); }
.step-num { font: italic 300 56px/1 var(--serif); color: var(--gold); display: block; margin-bottom: var(--s4); }
.step h3 { font: 400 26px/1.2 var(--serif); margin-bottom: var(--s3); }
.step p { font-size: 15.5px; color: #4a453d; }
.strengths { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.strengths li { font: italic 400 24px/1.2 var(--serif); }
.strengths li::before { content: "✦"; color: var(--gold); font-style: normal; font-size: 12px; margin-right: 12px; vertical-align: middle; }

/* Testimonials */
.testimonials { background: var(--ivory); text-align: center; }
.testimonials .eyebrow::before { display: none; }
.quotes { min-height: 260px; display: grid; }
.quote { grid-area: 1 / 1; margin: 0; transition: opacity .7s var(--ease); }
.quote[hidden] { display: block; opacity: 0; pointer-events: none; visibility: hidden; }
.quote blockquote { margin: 0 0 var(--s5); font: 300 clamp(24px, 2.8vw, 40px)/1.3 var(--serif); }
.quote figcaption { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quote-nav { display: flex; justify-content: center; gap: var(--s3); margin-top: var(--s5); }
.quote-nav button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; transition: .3s; }
.quote-nav button:hover { border-color: var(--gold); color: var(--gold); }
.press { margin-top: var(--s8); }
.press-logos { display: flex; justify-content: center; align-items: center; gap: var(--s7); margin-top: var(--s4); }
.press-logos img[alt^="Elle"] { height: 110px; }
.press-logos img { height: 64px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .75; mix-blend-mode: multiply; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.contact-grid > div > p { color: rgba(245,241,234,.78); max-width: 480px; }
.contact-list { margin-top: var(--s6); border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; padding: var(--s3) 0; border-bottom: 1px solid var(--line-dark); font-size: 15.5px; }
.contact-list .label { margin: 0; line-height: 1.9; }
.contact-list a:hover { color: var(--gold-2); }
.form { display: grid; gap: var(--s4); align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form label { display: grid; gap: 8px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); }
.form input, .form select, .form textarea {
  font: 300 17px/1.4 var(--sans); color: var(--ivory); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-dark); padding: 12px 0; border-radius: 0; letter-spacing: 0; text-transform: none;
  transition: border-color .3s;
}
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--gold-2); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; margin-top: var(--s3); }
.form-note { font-size: 13px; color: var(--muted-dark); margin: 0; }

/* Page head */
.page { padding-top: var(--header-h); }
.page-head { padding-bottom: var(--s5); }
.page-head .display { font-size: clamp(48px, 7vw, 112px); }

/* Project page */
.p-intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 7vw, 120px); }
.p-intro-grid p:not(.display):not(.label) { color: #3c3832; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line); padding: 8px 16px; font-size: 13.5px; }
.gallery { columns: 3 320px; column-gap: clamp(12px, 1.6vw, 24px); }
.gallery-small { columns: 4 220px; }
.g-item { display: block; break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 24px); overflow: hidden; cursor: zoom-in; background: var(--stone); }
.g-item img { width: 100%; transition: transform 1s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.chantier { background: var(--ivory); padding-block: clamp(64px, 9vw, 120px); }
.next-proj { position: relative; display: flex; align-items: flex-end; min-height: 70svh; color: var(--ivory); overflow: hidden; margin-top: clamp(64px, 8vw, 120px); }
.next-proj .hero-img { animation: none; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.next-proj:hover .hero-img { transform: scale(1.08); }
.next-in { position: relative; padding-bottom: clamp(40px, 7vh, 80px); }
.next-title { font: 300 clamp(44px, 7vw, 112px)/1 var(--serif); margin: 0; }
.cta-band .display { margin-bottom: var(--s4); }
.cta-band p { color: var(--muted); margin-bottom: var(--s5); }

/* Footer */
.site-footer { background: var(--ink); color: var(--ivory); padding-top: var(--s8); border-top: 1px solid var(--line-dark); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: var(--s6); padding-bottom: var(--s7); }
.footer-brand { font-size: 40px; margin-bottom: var(--s3); }
.site-footer a:hover { color: var(--gold-2); }
.socials { margin-top: var(--s3); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); padding: var(--s4) 0 var(--s5); border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); }

/* Sticky CTA (mobile) */
.sticky-cta { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(15,14,12,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; color: var(--ivory); font: 300 44px/1 var(--serif); width: 64px; height: 64px; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted-dark); font-size: 13px; letter-spacing: .2em; margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .header-cta { display: none; }
  .menu-open .nav {
    display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 18px; padding: 0 clamp(20px, 6vw, 64px); background: var(--ink); color: var(--ivory);
  }
  .menu-open .nav a { font: 300 40px/1.1 var(--serif); letter-spacing: 0; }
  .menu-open .nav .nav-tel { display: block; font: 400 15px/1 var(--sans); letter-spacing: .14em; margin-top: 24px; color: var(--gold-2); }
  .menu-open .site-header { color: var(--ivory); background: transparent; border-color: transparent; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--s7); }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero .hero-facts { display: none; }
  .hero-in { padding-bottom: 56px; }
  .hero-title { font-size: clamp(50px, 14vw, 72px); }
  .hero-shade { background: linear-gradient(180deg, rgba(15,14,12,.5) 0%, rgba(15,14,12,.35) 40%, rgba(15,14,12,.9) 100%); }
  .hero-ctas .btn { width: 100%; }
  .eyebrow::before { width: 24px; margin-right: 10px; }
  .parallax { transform: none !important; }
  .manifesto-media { padding-bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: end; }
  .m-img-1, .m-img-2 { width: 100%; position: static; border: 0; margin: 0; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .hero-facts li { padding-bottom: var(--s4); }
  .manifesto-grid, .svc-grid, .contact-grid, .p-intro-grid { grid-template-columns: 1fr; }
  .svc-visual { display: none; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card, [class*="pc-"], .proj-grid-all .proj-card:nth-child(n) { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .proj-go { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 110px 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .press-logos { gap: var(--s5); }
  .sticky-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; height: 54px; align-items: center; justify-content: center;
    background: var(--gold); color: var(--ink); font: 500 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    transform: translateY(90px); transition: transform .5s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .sticky-cta.show { transform: none; }
  .site-footer { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  .hero-img { transform: none; }
  .marquee-track { animation: none; }
}
