/* ── Custom Fonts ───────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Buongiorno Rastellino';
  src: url('/assets/fonts/BuongiornoRastellino.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Marianna';
  src: url('/assets/fonts/Marianna.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset & Root ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #003B4A;
  --teal2:     #004d63;
  --accent:    #7A6652;
  --accent2:   #5e4e3e;
  --beige:     #CCAA84;
  --beige2:    #b89060;
  --coral:     #FF7376;
  --cream:     #F6F2EE;
  --cream2:    #EDE8E2;
  --light:     #F6F2EE;
  --white:     #FFFFFF;
  --dark:      #2C2924;
  --muted:     #9A9490;
  --border:    rgba(44,41,36,.1);
  --font:      'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --header-h: 120px;
  --max-w:    1360px;
  --pad:      clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ── Typography ────────────────────────────────────────────────────────── */
.t-display { font-size: inherit; font-weight: 200; letter-spacing: -.02em; line-height: 1.05; }
.t-label { font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.t-muted { color: var(--muted); }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ── HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  transition: background .4s, box-shadow .4s, height .35s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled {
  background: rgba(246,242,238,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44,41,36,.08);
  height: 70px;
}
.site-header > a { margin-right: auto; display: flex; align-items: center; position: relative; }
.logo-on-dark  { height: 104px; opacity: 1; pointer-events: auto;  transition: height .5s cubic-bezier(.4,0,.2,1), opacity .5s ease; }
.logo-on-light { height: 104px; opacity: 0; pointer-events: none;  transition: height .5s cubic-bezier(.4,0,.2,1), opacity .5s ease; position: absolute; left: 0; }
.site-header.scrolled .logo-on-dark  { height: 48px; opacity: 0; pointer-events: none; }
.site-header.scrolled .logo-on-light { height: 48px; opacity: 1; pointer-events: auto; }
@media (max-width: 768px) {
  :root { --header-h: 180px; }
  .logo-on-dark  { height: 156px; }
  .logo-on-light { height: 156px; }
}

.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85); transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; right: 0; height: 1px;
  background: rgba(255,255,255,.7); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.site-header.scrolled .nav-links a { color: var(--dark); }
.site-header.scrolled .nav-links a::after { background: var(--dark); }
.site-header.scrolled .nav-links a:hover { color: var(--dark); }

.nav-cta {
  margin-left: clamp(8px, 1.5vw, 20px);
  padding: 13px 32px;
  background: rgba(255,255,255,.14); color: #fff !important;
  border: 1px solid rgba(255,255,255,.38);
  font-family: var(--font) !important;
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: .1em;
  border-radius: 2px; transition: background .2s, border-color .2s !important;
  cursor: pointer; text-transform: uppercase;
}
.nav-cta:hover { background: rgba(255,255,255,.26) !important; border-color: rgba(255,255,255,.7) !important; }
.nav-cta::after { display: none !important; }
.site-header.scrolled .nav-cta { background: transparent !important; color: var(--dark) !important; border-color: var(--dark) !important; }
.site-header.scrolled .nav-cta:hover { background: var(--dark) !important; color: #fff !important; border-color: var(--dark) !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; background: transparent; border: none; padding: 4px; margin-left: 16px;
}
.nav-burger span { display: block; height: 1.5px; background: #fff; transition: all .3s; }
.site-header.scrolled .nav-burger span { background: var(--dark); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 22px; font-weight: 300; letter-spacing: .06em;
  color: var(--dark); transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent); }
.nav-burger.open span { background: var(--dark) !important; }
/* When mobile nav is open — switch header logo to dark version */
body.nav-open .logo-on-dark  { display: none !important; }
body.nav-open .logo-on-light { display: block !important; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 520px;
  overflow: hidden; background: #1c1714;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
}
.hero-slides--mob { display: none; }
@media (max-width: 768px) {
  .hero-slides--desk { display: none; }
  .hero-slides--mob  { display: block; }
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,41,36,.3) 0%,
    rgba(44,41,36,.1) 35%,
    rgba(44,41,36,.5) 70%,
    rgba(44,41,36,.78) 100%
  );
}
.hero-content {
  position: absolute;
  bottom: clamp(28px, 5vh, 64px);
  left: var(--pad);
  right: var(--pad);
  color: #fff;
}
.hero-eyebrow {
  font-size: 14px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-top: 28px; display: block;
}
.hero-title {
  font-family: 'Marianna', serif;
  font-weight: 400;
  font-size: clamp(54px, 9vw, 128px);
  line-height: 1.05;
  letter-spacing: 0;
  color: #fff;
}
@media (max-width: 580px) {
  .hero-title { font-size: clamp(34px, 9vw, 54px); }
}
.hero-title span {
  display: block; color: #fff;
  opacity: 0; transform: translateY(56px);
  animation: heroLineReveal 1.2s cubic-bezier(.23,1,.32,1) forwards;
}
.hero-title span:nth-child(1) { animation-delay: .65s; }
.hero-title span:nth-child(2) { font-size: .78em; animation-delay: .85s; margin-left: clamp(80px, 22vw, 360px); }

.hero-cta-btn {
  position: absolute;
  bottom: clamp(56px, 9vh, 110px);
  right: var(--pad);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.65); border-radius: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, border-color .2s, transform .15s; text-decoration: none;
  opacity: 0; animation: heroLineReveal .9s cubic-bezier(.23,1,.32,1) 1.05s forwards;
}
.hero-cta-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-1px); }
.hero-cta-btn svg { transition: transform .2s; }
.hero-cta-btn:hover svg { transform: translateX(3px); }

/* CTA Modal */
.cta-modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .3s, visibility .3s;
}
.cta-modal-backdrop.open { visibility: visible; opacity: 1; pointer-events: all; }
.cta-modal {
  background: var(--cream);
  width: 100%; max-width: 480px; margin: 16px;
  padding: clamp(28px, 5vw, 52px); border-radius: 4px;
  position: relative; transform: translateY(24px);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.cta-modal-backdrop.open .cta-modal { transform: translateY(0); }
.cta-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1; transition: color .2s;
}
.cta-modal-close:hover { color: var(--dark); }
.cta-modal-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 10px;
}
.cta-modal-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 300;
  color: var(--dark); line-height: 1.2; margin-bottom: 28px; letter-spacing: -.02em;
}
.cta-field { margin-bottom: 18px; }
.cta-field-label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 8px;
}
.cta-input {
  width: 100% !important; padding: 12px 0 !important;
  background: transparent !important; border: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important; outline: none;
  font-family: var(--font) !important; font-size: 14px !important;
  font-weight: 300 !important; color: var(--dark) !important;
  transition: border-color .2s; box-shadow: none !important;
}
.cta-input:focus { border-bottom-color: var(--dark) !important; }
.cta-input::placeholder { color: var(--muted) !important; opacity: .7; }
.cta-modal-btn {
  width: 100%; margin-top: 8px; padding: 15px;
  background: var(--dark); color: #fff; border: none; border-radius: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.cta-modal-btn:hover { background: var(--accent); }
.cta-success-msg { display: none; text-align: center; padding: 20px 0; }
.cta-success-msg .check-icon { font-size: 36px; margin-bottom: 12px; }
.cta-success-msg p { font-size: 15px; font-weight: 300; color: var(--dark); line-height: 1.6; }

.hero-scroll { display: none; }
.hero-dots { position: absolute; bottom: clamp(28px,4vh,52px); left: var(--pad); display: flex; gap: 8px; }
.hero-dot {
  width: 24px; height: 2px; background: rgba(255,255,255,.3);
  border: none; cursor: pointer; transition: background .3s, width .3s; padding: 0;
}
.hero-dot.active { background: rgba(255,255,255,.9); width: 40px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1;
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; border-radius: 2px;
  transition: background .2s, border-color .2s; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.4); }
.hero-arrow--prev { left: clamp(10px, 2.5vw, 36px); }
.hero-arrow--next { right: clamp(10px, 2.5vw, 36px); }
@media (max-width: 480px) {
  .hero-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}

/* ── SECTION BASE ──────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-label {
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--dark); }
.section-heading {
  font-family: 'Marianna', serif;
  font-size: clamp(32px, 4.2vw, 58px); font-weight: 400;
  letter-spacing: 0; line-height: 1.1; color: var(--dark); margin-bottom: 22px;
}
.owner-name { font-size: clamp(38px, 5vw, 70px); white-space: nowrap; }
@media (max-width: 480px) { .owner-name { white-space: normal; font-size: clamp(34px, 10vw, 56px); } }
.section-body { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--dark); max-width: 540px; }

/* ── OWNER / ABOUT KARINA ────────────────────────────────────────────────── */
.owner-section { background: var(--cream2); }
.owner-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: stretch;
}
.owner-photo-side {
  position: relative; overflow: hidden; border-radius: 2px;
  background: var(--cream);
  display: flex; flex-direction: column;
}
.owner-photo-img {
  width: 100%; height: 100%; min-height: clamp(420px, 58vw, 680px);
  object-fit: cover; border-radius: 2px;
  transition: transform .6s ease;
  flex: 1;
}
.owner-photo-side:hover .owner-photo-img { transform: scale(1.02); }
.owner-photo-placeholder {
  width: 100%; flex: 1; min-height: clamp(420px, 58vw, 680px);
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.owner-text-side { display: flex; flex-direction: column; gap: 28px; }
.owner-slogan {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--dark); max-width: 480px;
}
.owner-intro {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--dark); max-width: 480px;
}
.owner-stats {
  display: flex; gap: clamp(24px, 4vw, 52px);
  padding-top: 8px; flex-wrap: wrap;
  margin-top: 24px;
}
.owner-stat { text-align: center; }
.owner-stat-val {
  font-size: clamp(30px, 3.5vw, 46px); font-weight: 200;
  color: var(--dark); letter-spacing: -.03em; line-height: 1;
}
.owner-stat-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
@media (max-width: 768px) {
  .owner-layout { display: flex; flex-direction: column; gap: 0; }
  .owner-text-side { display: contents; }
  .owner-slogan { order: 1; margin-bottom: 28px; }
  .owner-photo-side { order: 2; width: 100%; }
  .owner-name { order: 3; text-align: center; width: 100%; margin-top: 20px; margin-bottom: 20px; }
  .owner-intro { order: 4; margin-bottom: 28px; }
  .owner-stats { order: 5; justify-content: center; }
}

/* ── INTRO / ABOUT ─────────────────────────────────────────────────────── */
.intro-section { background: var(--cream); }
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(48px, 7vw, 100px);
  align-items: start;
}
.intro-left-top { grid-column: 1; grid-row: 1; }
.intro-left-bottom {
  grid-column: 1; grid-row: 2;
  display: flex; flex-direction: column; gap: 28px;
  padding-top: 32px;
}
.intro-photo-side {
  grid-column: 2; grid-row: 1 / 3;
  position: relative; overflow: hidden; border-radius: 2px;
}
.intro-body {
  font-size: 16px; font-weight: 300; line-height: 1.85;
  color: var(--dark); max-width: 460px;
}
.intro-quote {
  font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; line-height: 1.6;
  color: var(--dark); border-left: 2px solid var(--dark); padding-left: 18px;
  letter-spacing: -.01em; opacity: .75;
}
.intro-stats { display: flex; gap: clamp(20px, 3vw, 40px); padding-top: 4px; }
.intro-stat-val {
  font-size: clamp(28px, 3vw, 40px); font-weight: 200;
  color: var(--dark); letter-spacing: -.03em; line-height: 1;
}
.intro-stat-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark); margin-top: 6px;
}
.intro-photo-side img {
  width: 100%; height: clamp(420px, 58vw, 720px);
  object-fit: cover; border-radius: 2px;
  transition: transform .6s ease;
}
.intro-photo-side:hover img { transform: scale(1.02); }

/* ── HEADER GRADIENT (transparent nav readability) ─────────────────────── */
.header-gradient {
  position: fixed; top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%);
  z-index: 99; pointer-events: none;
  transition: opacity .4s;
}

/* ── SERVICES ──────────────────────────────────────────────────────────── */
.services-section { background: var(--cream); padding: clamp(48px,6vw,80px) 0; }
.services-section .section-label { color: var(--dark); }
.services-section .section-label::before { background: var(--dark); }
.services-section .section-heading { color: var(--dark); }

/* ── SERVICES EDITORIAL LIST ─────────────────────────────────────────────── */
.svc-list { margin-top: clamp(32px,4vw,52px); }
.svc-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 clamp(20px,3vw,52px);
  align-items: flex-start;
  padding: clamp(22px,2.5vw,34px) 0;
  border-top: 1px solid var(--border);
}
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-num {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  color: var(--muted); padding-top: 7px; font-variant-numeric: tabular-nums;
}
.svc-body { display: flex; flex-direction: column; gap: 10px; }
.svc-title {
  font-size: clamp(16px, 1.8vw, 24px); font-weight: 300;
  color: var(--dark); letter-spacing: -.02em; line-height: 1.1;
}

.svc-desc {
  font-size: 13px; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 560px;
}

/* ── PORTFOLIO (homepage) ──────────────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px,1vw,14px);
  margin-top: 48px;
  height: clamp(440px, 56vw, 800px);
}
.portfolio-item { position: relative; overflow: hidden; border-radius: 2px; display: block; cursor: pointer; min-height: 0; }
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--cp, center);
  transition: transform .7s ease; display: block;
  will-change: transform;
  backface-visibility: hidden;
}
.portfolio-item picture { display: block; width: 100%; height: 100%; }
.portfolio-item:hover img { transform: scale(1.04) translateZ(0); }
.portfolio-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,41,36,.75) 0%, rgba(44,41,36,.1) 50%, transparent 100%);
  opacity: 0; transition: opacity .4s;
}
.portfolio-item:hover .portfolio-item-overlay { opacity: 1; }
.portfolio-item-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(14px,2vw,26px);
  transform: translateY(8px); opacity: 0; transition: transform .4s, opacity .4s;
}
.portfolio-item:hover .portfolio-item-meta { transform: translateY(0); opacity: 1; }
.portfolio-item-cat { font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--beige); margin-bottom: 5px; }
.portfolio-item-title { font-size: clamp(17px,1.8vw,24px); font-weight: 300; color: #fff; line-height: 1.2; letter-spacing: -.01em; }
.portfolio-item-loc { font-size: 11px; color: rgba(255,255,255,.55); margin-top: 4px; }

/* Portfolio slider tile (4th cell) */
.portfolio-slider-tile {
  position: relative; overflow: hidden; border-radius: 2px;
  display: block; cursor: pointer;
  min-height: 0;
  background: var(--dark);
}
.portfolio-slider-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1s ease;
}
.portfolio-slider-slide.active { opacity: 1; }
.portfolio-slider-overlay {
  position: absolute; inset: 0;
  background: rgba(44,41,36,.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff;
  opacity: 0; transition: opacity .4s;
}
.portfolio-slider-tile:hover .portfolio-slider-overlay { opacity: 1; }
.portfolio-slider-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.portfolio-slider-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: border-color .2s;
}
.portfolio-slider-tile:hover .portfolio-slider-arrow { border-color: #fff; }

/* ── PARTNERS ──────────────────────────────────────────────────────────── */
.partners-section { padding: clamp(48px,6vw,80px) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-label {
  text-align: center;
  font-family: 'Marianna', serif;
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--dark); margin-bottom: 36px;
}
.partners-track {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(40px, 8vw, 100px); flex-wrap: wrap;
}
.partner-logo-link {
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s;
}
.partner-logo-link img {
  height: 40px; width: auto; max-width: 180px;
  object-fit: contain;
  filter: grayscale(0.6);
  opacity: 0.65;
  transition: filter .35s, opacity .35s;
}
.partner-logo-link:hover img { filter: none; opacity: 1; }

/* ── CONTACT ───────────────────────────────────────────────────────────── */
.contact-section { background: var(--cream2); }
.contact-section .section-heading { color: var(--dark); }
.contact-section .section-label { color: var(--dark); }
.contact-section .section-label::before { background: var(--dark); }
.contact-section .section-body { color: var(--dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,100px); margin-top: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item-label {
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 5px;
}
.contact-item-value { font-size: 15px; font-weight: 300; color: var(--dark); line-height: 1.6; }
.contact-item-value a { color: var(--dark); transition: color .2s; }
.contact-item-value a:hover { color: var(--accent); }
.contact-map-wrap { border-radius: 4px; overflow: hidden; margin-top: 4px; }
.contact-map-wrap iframe { display: block; filter: sepia(.2) saturate(.8) contrast(.9); }

.form-row { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 13px 0; background: transparent;
  border: none; border-bottom: 1px solid var(--border);
  font-family: var(--font); font-size: 14px; font-weight: 300; color: var(--dark);
  transition: border-color .2s; outline: none;
}
.form-input::placeholder { color: var(--muted); opacity: .7; }
.form-input:focus { border-bottom-color: var(--accent); }
.form-input option { color: var(--dark); background: var(--cream); }
.form-btn {
  margin-top: 26px; padding: 14px 40px;
  background: var(--dark); color: #fff; border: none; border-radius: 2px;
  font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.form-btn:hover { background: var(--accent); }
.form-btn:disabled { opacity: .6; cursor: default; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 18px;
  background: rgba(122,102,82,.08); border: 1px solid rgba(122,102,82,.2);
  color: var(--accent); font-size: 13px; border-radius: 2px;
}
.form-success.show { display: block; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: #2A2520; color: rgba(255,255,255,.45);
}
.footer-main {
  padding: clamp(32px,4vw,52px) 0 clamp(20px,3vw,36px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo-img { height: 70px; width: auto; margin-bottom: 18px; display: block; }
.footer-logo-full { width: clamp(120px, 12vw, 160px); display: block; margin-bottom: 14px; }
.footer-logo-full svg { width: 100%; height: auto; display: block; }
.footer-tagline { font-size: 11px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.35); margin: 0; letter-spacing: .04em; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: clamp(20px,3vw,52px);
  align-items: start;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col--brand { gap: 0; }
.footer-brand p { font-size: 13px; font-weight: 300; line-height: 1.75; max-width: 260px; color: rgba(255,255,255,.45); margin: 0; }
.footer-col-title { font-size: 9px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-info { display: flex; flex-direction: column; gap: 9px; }
.footer-info span, .footer-info a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-info a:hover { color: #fff; }
.footer-project-links { display: flex; flex-direction: column; gap: 9px; }
.footer-project-links a,
.footer-project-links span { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-project-links a:hover { color: #fff; }
.footer-social-icons { display: flex; flex-direction: column; gap: 10px; }
.footer-social-icons a {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,.6); transition: color .2s;
  text-decoration: none;
}
.footer-social-icons a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
/* Contact section social icons */
.contact-social-row { display: flex; gap: 12px; margin-bottom: 24px; }
.contact-social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--dark); color: #fff;
  transition: opacity .22s; cursor: pointer;
  text-decoration: none; border: none; flex-shrink: 0;
}
.contact-social-btn:hover { opacity: .78; }
.csb-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.csb-tg { background: #229ED9; }
.csb-vb { background: #7360F2; }
.csb-wa { background: #25D366; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: clamp(18px,2.5vw,28px) 0;
  font-size: 11px; font-weight: 300; letter-spacing: .02em;
  color: rgba(255,255,255,.28);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.65); }

/* ── FLOATING WIDGET ───────────────────────────────────────────────────── */
.float-widget { position: fixed; bottom: 26px; right: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; overflow: hidden; max-height: 0; transition: max-height .35s ease, opacity .25s; opacity: 0; }
.float-links.open { max-height: 400px; opacity: 1; }
.float-link {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--dark);
  border-radius: 24px; padding: 9px 16px 9px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  font-size: 13px; font-weight: 500;
  transition: box-shadow .2s, transform .2s; white-space: nowrap;
}
.float-link:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateX(-3px); }
.float-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--dark); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(44,41,36,.28); cursor: pointer; transition: background .2s, transform .2s;
}
.float-btn:hover { background: var(--accent); }
.float-btn svg { transition: transform .3s; }
.float-btn.open svg { transform: rotate(45deg); }

/* ── PORTFOLIO PAGE ────────────────────────────────────────────────────── */
.page-hero {
  height: 22vh; min-height: 150px; background: var(--dark);
  display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(18px,3vw,32px);
  padding-top: var(--header-h);
}
.page-hero-content { color: #fff; }
.page-hero-content .section-label { color: var(--beige); margin-bottom: 10px; }
.page-hero-content h1 { font-size: clamp(36px,5vw,68px); font-weight: 200; letter-spacing: -.03em; line-height: 1; }

.portfolio-filters { display: flex; flex-direction: column; gap: 0; padding: 18px 0 8px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border); }
.filter-row:last-child { border-bottom: none; }
.filter-row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
/* Mobile dropdowns — hidden on desktop */
.filter-selects { display: none; }
.filter-select {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 14px;
  background: #fff; color: var(--dark);
  border: 1px solid var(--border); border-radius: 2px;
  font-family: var(--font); font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232C2924' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.filter-btn {
  padding: 6px 16px; border-radius: 2px;
  font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.filter-btn:hover { border-color: var(--dark); color: var(--dark); }
.filter-btn.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.tag-pill {
  display: inline-block; padding: 3px 9px;
  background: rgba(44,41,36,.06); border: 1px solid var(--border); border-radius: 2px;
  font-size: 8px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.project-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.project-spec-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: clamp(12px,1.6vw,22px); padding-bottom: 80px;
}
.project-card { display: block; position: relative; overflow: hidden; border-radius: 2px; background: var(--cream2); cursor: pointer; }
.project-card-img { aspect-ratio: 4/5; overflow: hidden; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--cp, center); transition: transform .6s ease; will-change: transform; backface-visibility: hidden; }
.project-card-img picture { display: block; width: 100%; height: 100%; }
.project-card:hover .project-card-img img { transform: scale(1.04) translateZ(0); }
.project-card-body { padding: 16px 18px 20px; border-top: 1px solid var(--border); }
.project-card-cat { font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.project-card-title { font-size: clamp(16px,1.6vw,21px); font-weight: 300; color: var(--dark); line-height: 1.2; letter-spacing: -.01em; }
.project-card-meta { display: flex; gap: 14px; margin-top: 9px; font-size: 12px; color: var(--muted); font-weight: 400; }

/* ── PROJECT PAGE (new Linera-style) ───────────────────────────────────── */
.project-cover {
  position: relative; height: 75vh; min-height: 480px;
  overflow: hidden; background: var(--dark);
}
.project-cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hp, center);
  transition: transform 8s ease;
}
.project-cover picture { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,41,36,.72) 0%, rgba(44,41,36,.1) 55%, transparent 100%);
}
.project-cover-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: clamp(32px,5vw,68px) var(--pad);
  color: #fff;
}
.project-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 20px;
  transition: color .2s;
}
.project-back-link:hover { color: rgba(255,255,255,.9); }
.project-cover-title {
  font-family: var(--font);
  font-size: clamp(22px, 4vw, 52px); font-weight: 300;
  letter-spacing: .01em; line-height: 1.1; color: #fff;
}

/* Project info: specs + description */
.project-info-section {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(40px,6vw,100px);
  padding: clamp(48px,7vw,96px) var(--pad);
  max-width: calc(var(--max-w) + var(--pad)*2); margin: 0 auto;
}
.project-specs { display: flex; flex-direction: column; gap: 24px; }
.project-spec-item {}
.project-spec-label {
  font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.project-spec-val { font-size: 15px; font-weight: 300; color: var(--dark); }
.project-desc-col { font-size: 16px; font-weight: 300; line-height: 1.9; color: var(--dark); }
.project-desc-col p + p { margin-top: 1em; }

/* Project photos */
.project-photos-section {
  padding: 0 var(--pad) clamp(48px,6vw,80px);
  max-width: calc(var(--max-w) + var(--pad)*2); margin: 0 auto;
}
.project-photos-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(8px,1vw,14px);
}
.project-photo { overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; display: block; }
.project-photo:hover img { transform: scale(1.03); }
.project-photo:first-child { grid-column: 1 / -1; }
.project-photo:first-child img { aspect-ratio: 16/7; }
.project-photo:not(:first-child) img { aspect-ratio: 4/3; }

/* 1 photo — full width, cinematic */
.project-photos-grid.photos-1 { grid-template-columns: 1fr; }
.project-photos-grid.photos-1 .project-photo:first-child { grid-column: 1; }
.project-photos-grid.photos-1 .project-photo img { aspect-ratio: 16/9; }

/* 2 photos — two equal columns, same height */
.project-photos-grid.photos-2 { grid-template-columns: 1fr 1fr; }
.project-photos-grid.photos-2 .project-photo:first-child { grid-column: 1; }
.project-photos-grid.photos-2 .project-photo img { aspect-ratio: 3/2; }

.project-photos-more {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px,1vw,14px);
  margin-top: clamp(8px,1vw,14px);
}
.project-photos-more.visible { display: grid; }

.project-more-btn {
  display: block; width: 100%; margin-top: clamp(12px,1.5vw,20px);
  padding: 16px; text-align: center; background: transparent;
  border: 1.5px solid var(--dark); border-radius: 2px;
  font-family: var(--font); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--dark);
  cursor: pointer; transition: background .2s, color .2s;
}
.project-more-btn:hover { background: var(--dark); color: #fff; }
.project-more-btn.hidden { display: none; }

/* Project CTA section */
.project-cta-section {
  background: var(--dark);
  padding: clamp(64px,10vw,120px) var(--pad);
  display: flex; justify-content: flex-start;
}
.project-cta-inner { text-align: left; max-width: 560px; }
.project-cta-heading {
  font-size: clamp(28px,4vw,58px); font-weight: 200; color: #fff;
  letter-spacing: -.025em; line-height: 1.1; margin-bottom: 40px;
}
.project-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px;
  border: 1.5px solid rgba(255,255,255,.45); color: #fff; background: transparent;
  font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 2px; transition: border-color .25s, background .25s; cursor: pointer;
}
.project-cta-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* Project next section */
.project-next-section {
  position: relative; display: flex; align-items: flex-end;
  padding: clamp(64px,10vw,140px) var(--pad) clamp(52px,7vw,96px);
  min-height: 50vh;
  background-size: cover; background-position: center;
  background-color: #0d1a16;
  text-decoration: none; overflow: hidden; cursor: pointer;
}
.project-next-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.72) 100%);
  transition: opacity .5s;
}
.project-next-section:hover .project-next-overlay { opacity: .55; }
.project-next-content { position: relative; z-index: 1; }
.project-next-label {
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: clamp(14px,2vw,24px); display: block;
}
.project-next-title {
  font-size: clamp(32px,5.5vw,78px); font-weight: 200;
  color: #fff; letter-spacing: -.025em; line-height: 1;
  max-width: 860px; display: block;
}
.project-next-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.6); font-size: 20px;
  margin-top: clamp(28px,3.5vw,52px);
  transition: border-color .3s, color .3s, transform .35s;
}
.project-next-section:hover .project-next-arrow { border-color: #fff; color: #fff; transform: translateX(10px); }

/* Portfolio page header (Linera-style) */
.portfolio-page-header {
  padding: calc(var(--header-h) + 48px) 0 36px;
  background: var(--cream);
}
.portfolio-page-header h1 {
  font-size: clamp(44px, 7vw, 100px); font-weight: 200;
  letter-spacing: -.04em; color: var(--dark); line-height: .95;
  margin-bottom: 16px;
}
.portfolio-page-desc {
  font-size: 14px; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 400px; margin-bottom: 36px;
}
.portfolio-filters { margin-top: 0; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 2px; border: none; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--dark); color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-beige { background: var(--beige); color: var(--dark); }
.btn-beige:hover { background: var(--beige2); }

/* ── UTILITIES ─────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
/* fade-up: видимо завжди */

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,40px); }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .logo-on-dark, .logo-on-light { height: 52px; }
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .intro-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 28px 0;
  }
  .intro-left-top  { grid-column: 1; grid-row: 1; }
  .intro-photo-side { grid-column: 1; grid-row: 2; }
  .intro-left-bottom { grid-column: 1; grid-row: 3; padding-top: 0; }
  .intro-photo-side img { height: clamp(280px,60vw,440px); }
  .intro-stats { gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; height: clamp(300px, 60vw, 520px); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  .footer-col--brand { grid-column: 1 / -1; align-items: center; text-align: center; }
  .footer-col-title { text-align: left; }
  .footer-info { align-items: flex-start; }
  .footer-project-links { align-items: flex-start; }
  .footer-social-icons { align-items: flex-start; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .footer-col--services { display: none; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { gap: 32px; }
  .project-info-section { grid-template-columns: 1fr; gap: 32px; }
  .project-specs { flex-direction: row; flex-wrap: wrap; gap: 16px 32px; }
}
@media (max-width: 580px) {
  :root { --pad: 18px; }
  /* Hero: bigger slogan on mobile (+15%) */
  .hero-title { font-size: clamp(55px,16vw,80px); }
  .hero-title span:nth-child(2) { margin-left: clamp(60px, 18vw, 140px); }
  /* Section headings +20% on mobile */
  .section-heading { font-size: clamp(38px, 5vw, 70px); }
  /* Portfolio "Всі проєкти" button -20% */
  .btn { font-size: 9px !important; padding: 10px 22px !important; }
  /* Portfolio grid */
  .portfolio-grid { grid-template-columns: 1fr; height: auto; }
  .portfolio-grid .portfolio-item,
  .portfolio-grid .portfolio-slider-tile { aspect-ratio: 7/5; height: auto; }
  /* Project card title — more bottom padding so text doesn't hug edge */
  .portfolio-item-meta { padding: 16px 14px 18px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { padding: 22px 18px; }
  .project-photos-grid { grid-template-columns: 1fr; }
  .project-photo:first-child img { aspect-ratio: 3/2; }
  .project-photo:not(:first-child) img { aspect-ratio: 3/2; }
  .project-photos-more { grid-template-columns: 1fr; }
  .project-photos-grid.photos-2 { grid-template-columns: 1fr; }
  .project-photos-grid.photos-2 .project-photo img { aspect-ratio: 3/2; }
  .project-photos-grid.photos-1 .project-photo img { aspect-ratio: 4/3; }
  .projects-grid { grid-template-columns: 1fr; }
  .float-widget { right: 12px; bottom: 18px; }
  .cta-modal { padding: 28px 20px; }
  /* Partners — simple wrap on mobile, no carousel */
  .partners-section { overflow: visible; }
  .partners-label { text-align: left; font-size: clamp(38px, 10vw, 56px); margin-bottom: 24px; }
  .partners-track { flex-wrap: wrap; justify-content: center; gap: 28px 36px; transform: none !important; transition: none !important; }
  .partner-logo-link { min-width: auto; flex-shrink: 1; padding: 0; }
  /* Mobile CTA center */
  .project-cta-section { justify-content: center; padding: 48px var(--pad); }
  .project-cta-inner { text-align: center; width: 100%; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .project-cta-heading { margin-bottom: 0; }
  .project-cta-btn { width: 100%; max-width: 280px; justify-content: center; }
  /* Services list — compact on mobile */
  .svc-row { grid-template-columns: 32px 1fr; gap: 0 14px; }
  .svc-num { font-size: 10px; padding-top: 5px; }
  .svc-title { font-size: clamp(17px, 5vw, 22px); }
  /* Filter: hide buttons, show dropdowns on mobile */
  .filter-row { display: none; }
  .filter-selects { display: flex; gap: 10px; padding: 12px 0 4px; }
}

/* ── HERO SLOGAN position ────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .hero-content { bottom: clamp(55px, 9vh, 90px); }
}
@media (max-width: 580px) {
  .hero-content { bottom: clamp(90px, 16vh, 130px); }
}

/* ── HERO ENTRANCE ANIMATION ────────────────────────────────────────────── */
@keyframes heroLineReveal {
  from { opacity: 0; transform: translateY(56px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  opacity: 0; transform: translateY(30px);
  animation: heroLineReveal .9s cubic-bezier(.23,1,.32,1) forwards;
  animation-delay: .45s;
}
/* ── CLIP-PATH CURTAIN REVEAL ────────────────────────────────────────────── */
.reveal-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.15s cubic-bezier(.77,0,.18,1);
  will-change: clip-path;
}
.reveal-img.revealed {
  clip-path: inset(0% 0 0 0);
  will-change: auto;
}
.reveal-img:nth-child(2) { transition-delay: .14s; }
.reveal-img:nth-child(3) { transition-delay: .28s; }
.reveal-img:nth-child(4) { transition-delay: .42s; }

/* ── PORTFOLIO IMAGE HOVER REFINEMENT ───────────────────────────────────── */
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.23,1,.32,1);
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item-overlay {
  transition: opacity .7s ease !important;
}
.portfolio-item-meta {
  transform: translateY(14px) !important;
  transition: transform .7s cubic-bezier(.23,1,.32,1), opacity .7s ease !important;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────────────────── */
#dalis-cursor { display: none; }
@media (pointer: fine) {
  #dalis-cursor { display: block; }
  body,
  a, button, [role="button"],
  .svc-row, .service-card, .project-card, .portfolio-item,
  label, input, textarea, select { cursor: none !important; }

  #dalis-cursor {
    position: fixed;
    top: -23px; left: -23px;
    width: 46px; height: 46px;
    background: none;
    border: none;
    border-radius: 0;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
    transition: opacity .3s ease;
  }
  #dalis-cursor .cursor-bird {
    width: 46px; height: 46px;
    display: block;
    transition: transform .4s cubic-bezier(.23,1,.32,1);
    transform-origin: center;
    overflow: visible;
  }
  #dalis-cursor .bird-path {
    fill: var(--accent);
    transition: fill .35s ease, stroke .35s ease, stroke-width .35s ease;
    stroke: transparent;
    stroke-width: 0;
  }
  #dalis-cursor.cursor-hover .cursor-bird {
    transform: scale(1.45);
  }
  #dalis-cursor.cursor-hover .bird-path {
    fill: transparent;
    stroke: var(--accent);
    stroke-width: 6;
  }
  #dalis-cursor.cursor-hidden { opacity: 0; }
}

.project-photos-section, .portfolio-grid-wrap { position: relative; z-index: 2; }

/* ── PAGE TRANSITION OVERLAY ─────────────────────────────────────────────── */
#page-transition {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 99997;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s cubic-bezier(.77,0,.18,1);
}
#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Responsive object-position via CSS custom properties ── */
@media (max-width: 768px) {
  .project-cover img      { object-position: var(--hmp, var(--hp, center)); }
  .project-card-img img   { object-position: var(--cmp, var(--cp, center)); }
  .portfolio-item img     { object-position: var(--cmp, var(--cp, center)); }
}
