/* ===== ATELIER CLEAN — Demo 3 ===== */
/* Cormorant Garamond (serif display) + Inter (sans body) */
/* Warm off-white · Copper accent · Asymmetric split layouts */

/* ── Variables ─────────────────────────────────────── */
:root {
  --warm:     #F7F4EF;
  --warm2:    #EDE9E1;
  --copper:   #A0603A;
  --copper2:  #7E4A2C;
  --ink:      #1A1612;
  --mid:      #3E3530;
  --muted:    #7A6E65;
  --line:     #D9D0C5;
  --white:    #FFFFFF;
  --ease:     cubic-bezier(.22,.61,.36,1);
}

/* ── Reset / Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  transition: transform .4s var(--ease);
}
.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  height: 90px;
  gap: 48px;
}

.logo { flex-shrink: 0; }
.logo img {
  height: 52px;
  width: auto;
  max-width: none;
}

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 9px 18px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
  transform-origin: left;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.hdr-phone {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mid);
  transition: color .2s;
}
.hdr-phone:hover { color: var(--copper); }

.cta-btn {
  padding: 9px 22px;
  background: var(--copper);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s;
}
.cta-btn:hover { background: var(--copper2); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 70px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroBreath 60s ease-in-out infinite;
}
@keyframes heroBreath {
  0%   { transform: scale(1.08) translate(0, 0); }
  25%  { transform: scale(1.04) translate(-0.8%, 0.4%); }
  50%  { transform: scale(1.10) translate(0.5%, -0.5%); }
  75%  { transform: scale(1.05) translate(-0.4%, 0.6%); }
  100% { transform: scale(1.08) translate(0, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20,12,6,.88) 0%,
    rgba(20,12,6,.55) 40%,
    rgba(20,12,6,.18) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 100px;
}

.hero-content {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "h1 lede"
    "h1 actions";
  gap: 20px 60px;
  align-items: start;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}

.hero-content h1 {
  grid-area: h1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 0;
  letter-spacing: -.01em;
  align-self: center;
  text-shadow:
    0 0 4px rgba(0,0,0,.9),
    -1px -1px 0 rgba(0,0,0,.6),
     1px -1px 0 rgba(0,0,0,.6),
    -1px  1px 0 rgba(0,0,0,.6),
     1px  1px 0 rgba(0,0,0,.6),
    0 4px 24px rgba(0,0,0,.8),
    0 0 80px rgba(0,0,0,.4);
}
.hero-content h1 em {
  font-style: italic;
  color: rgba(255,255,255,.85);
}

.hero-lede {
  grid-area: lede;
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 0;
  max-width: none;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
  align-self: end;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-self: start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .25s var(--ease);
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
}
.btn-primary:hover { background: var(--copper2); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.12);
}
.btn-block { width: 100%; justify-content: center; }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--mid); }

/* Stats marquee strip (replaces hero-badge) */
.stats-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(26,22,18,.88);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  height: 52px;
}
.stats-track {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
}
.stats-track span {
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border-right: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
}
.stats-track span:last-child {
  border-right: none;
}
.stats-track strong {
  color: rgba(255,255,255,.88);
  font-size: 15px;
  margin-right: 6px;
  font-weight: 700;
}

/* Hero badge strip (kept for any back-compat references) */
.hero-badge { display: none; }

/* ── Section base ───────────────────────────────────── */
.section { padding: 100px 0; }

/* ── Eyebrow labels ─────────────────────────────────── */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
}

/* ── Split sections ─────────────────────────────────── */
.split-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  padding: 0;
}
.split-sec.reverse { direction: rtl; }
.split-sec.reverse > * { direction: ltr; }

.split-media {
  overflow: hidden;
  position: relative;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.split-sec:hover .split-media img {
  transform: scale(1.04);
}

/* Animated slideshow replacing split-media static image */
.split-slide {
  position: relative;
  overflow: hidden;
  min-height: 580px;
}
.split-slide .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.split-slide .slide.active { opacity: 1; }
.split-slide .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-body {
  display: flex;
  align-items: center;
  background: var(--warm);
  padding: 64px 72px;
}
.split-sec.reverse .split-body {
  background: var(--warm2);
}

.split-text h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}
.split-text > p {
  color: var(--muted);
  font-size: .97rem;
  margin-bottom: 28px;
  line-height: 1.75;
}

.item-list { margin-bottom: 28px; }
.item-list li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
  padding-left: 20px;
  position: relative;
  font-weight: 400;
}
.item-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--copper);
}

/* ── Accordion (Müük & Tootmine expandable) ─────────── */
.accordion { margin-bottom: 28px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-of-type { border-top: 1px solid var(--line); }
.acc-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  cursor: pointer;
  list-style: none;
  gap: 16px;
  user-select: none;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item[open] > summary .ac-title { color: var(--ink); }
.ac-title {
  font-size: 15px;
  color: var(--mid);
  font-weight: 400;
  line-height: 1.45;
  transition: color .2s;
}
.acc-item summary:hover .ac-title { color: var(--ink); }
.ac-plus {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s;
}
.acc-item summary:hover .ac-plus { border-color: var(--copper); }
.ac-plus::before, .ac-plus::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--copper);
  transition: transform .25s var(--ease);
}
.ac-plus::before { width: 1px; height: 10px; }
.ac-plus::after  { width: 10px; height: 1px; }
.acc-item[open] .ac-plus::before { transform: rotate(90deg) scaleY(0); }
.ac-body { padding: 0 0 16px 0; overflow: hidden; }
.ac-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
}

.link-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--copper);
  text-transform: uppercase;
  transition: letter-spacing .2s;
}
.link-text:hover { letter-spacing: .1em; }

/* ── About ──────────────────────────────────────────── */
.about-sec { background: var(--warm2); }

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.about-headline h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.01em;
}

.about-body p {
  color: var(--muted);
  font-size: .97rem;
  margin-bottom: 28px;
  line-height: 1.8;
}

.brand-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-row span {
  padding: 8px 18px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--warm);
}

.about-images {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.ab-img { overflow: hidden; }
.ab-img--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.ab-cards { display: flex; flex-direction: column; gap: 16px; }
.ab-card {
  display: block;
  overflow: hidden;
  background: var(--warm);
  border: 1px solid var(--line);
  transition: border-color .25s;
  flex: 1;
}
.ab-card:hover { border-color: var(--copper); }
.ab-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ab-card:hover img { transform: scale(1.04); }
.ab-card-body { padding: 18px 20px; }
.ab-card-body h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.ab-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Projects ───────────────────────────────────────── */
.projects-sec { background: var(--warm); }

.proj-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* Project carousel — manual scroll + auto-advance */
.proj-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.proj-carousel:active { cursor: grabbing; }
.proj-carousel::-webkit-scrollbar { display: none; }
.proj-carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 32px;
}
.proj-card { }
.proj-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.proj-nav-btns { display: flex; gap: 8px; margin-left: auto; }
.proj-nav-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--warm);
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid);
  transition: background .2s, border-color .2s, color .2s;
  line-height: 1;
}
.proj-nav-btn:hover { background: var(--warm2); border-color: var(--copper); color: var(--copper); }

/* Legacy manual scroll (kept for tehtud-tood page) */
.proj-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 32px 32px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--copper) var(--line);
  max-width: 1200px;
  margin: 0 auto;
}
.proj-scroll::-webkit-scrollbar { height: 4px; }
.proj-scroll::-webkit-scrollbar-track { background: var(--line); }
.proj-scroll::-webkit-scrollbar-thumb { background: var(--copper); }

.proj-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  cursor: pointer;
  overflow: hidden;
  background: var(--warm2);
  position: relative;
}
.pc-img {
  overflow: hidden;
  aspect-ratio: 3/2;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.proj-card:hover .pc-img img { transform: scale(1.06); }

.proj-card figcaption {
  padding: 20px 22px;
}
.pc-loc {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 6px;
}
.proj-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ── Contact ────────────────────────────────────────── */
.contact-sec { background: var(--warm2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ct-left h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.ct-left > p {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: .97rem;
}

.ct-info { display: flex; flex-direction: column; }
.ct-info li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--mid);
}
.ct-info li:first-child { border-top: 1px solid var(--line); }
.ct-info li span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--copper);
  min-width: 110px;
  padding-top: 2px;
  flex-shrink: 0;
}
.ct-info a:hover { text-decoration: underline; }

/* Form */
.ct-form {
  background: var(--warm);
  padding: 40px 40px 36px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
}
.ct-form h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 26px;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--copper);
}
.form-ok {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #16A34A;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  padding-top: 72px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.foot-brand img {
  height: 30px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.foot-brand p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  max-width: 280px;
}

.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 10px; }
.foot-col li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.foot-col li a:hover { color: var(--white); }
.foot-col > p {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
}
.foot-col > p a {
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.foot-col > p a:hover { color: var(--white); }

.eu-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 14px;
  opacity: .75;
}
.eu-cap {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  line-height: 1.65;
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.28);
}
.foot-bar a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.foot-bar a:hover { color: var(--copper); }
.foot-design {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
}
.foot-design-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
  animation: footPulse 3s ease-in-out infinite;
}
@keyframes footPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(160,96,58,.55); opacity: 1; }
  50%      { box-shadow: 0 0 14px rgba(160,96,58,.85); opacity: .6; }
}

/* ── Lightbox ───────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26,22,18,.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lb-figure {
  max-width: min(90vw, 1100px);
  width: 100%;
  text-align: center;
}
.lb-figure img {
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}
.lb-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 12px;
  transition: color .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--white); }
.lb-close { top: 20px; right: 20px; font-size: 40px; }
.lb-prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
}

/* ── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 920px) {
  .split-sec {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-sec.reverse { direction: ltr; }
  .split-media { height: 340px; }
  .split-slide { min-height: 340px; }
  .split-body { padding: 48px 32px; }
  .about-top { grid-template-columns: 1fr; gap: 40px; }
  .about-images { grid-template-columns: 1fr; }
  .ab-img--main img { min-height: 280px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-inner { height: 72px; gap: 24px; }
  .logo img { height: 44px; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--warm);
    border-top: 1px solid var(--line);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    z-index: 800;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 16px; padding: 12px 8px; }
  .main-nav a::after { display: none; }
  .hamburger { display: flex; }
  .hdr-phone { display: none; }
  .cta-btn   { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "h1"
      "lede"
      "actions";
    gap: 18px;
  }
  .hero-content h1 { align-self: auto; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 90px; }
  .hero-content h1 { font-size: 1.55rem; }
  .stats-marquee { height: auto; }
  .stats-track {
    flex-wrap: nowrap;
    justify-content: space-around;
  }
  .stats-track span {
    flex: 1 1 0;
    padding: 5px 2px;
    font-size: 8px;
    letter-spacing: .04em;
    height: auto;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    border: none;
  }
  .stats-track strong { font-size: 10px; margin-right: 1px; }
  .proj-card { flex: 0 0 300px; }
  .row2 { grid-template-columns: 1fr; }
  .ct-form { padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; gap: 6px; text-align: center; }
  .proj-scroll { padding: 0 24px 28px; }
}

/* ── Gallery sections (Tehtud tööd) ─────────────────────────────────────── */
.gallery-block { margin-bottom: 64px; }
.gallery-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #f0eee9;
  cursor: zoom-in;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-empty { color: var(--muted, #888); font-size: 14px; padding: 8px 0; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-block { margin-bottom: 40px; }
}

/* ── Cooperation Partners ───────────────────────────────────────────────── */
.partners-sec {
  padding: 56px 0 60px;
  background: var(--warm2);
  border-top: 1px solid var(--line);
}
.partners-sec h3 {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 56px;
}
.partner-logo {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(.5);
  transition: filter .35s;
}
.partner-logo:hover { filter: grayscale(0%) opacity(.9); }

/* ── Page hero (subpages) ───────────────────────────────────────────────── */
.page-hero {
  padding: 160px 0 80px;
  background: var(--warm2);
  border-bottom: 1px solid var(--line);
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.015em;
  max-width: 780px;
  margin-bottom: 18px;
}
.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
}
/* Hero with background image */
.page-hero--image {
  border-bottom: none;
  overflow: hidden;
}
/* Animated background layer — bg set via --hero-bg custom property (main.js) */
.page-hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center center;
  animation: pageHeroBreath 30s ease-in-out infinite;
  z-index: 0;
}
@keyframes pageHeroBreath {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1.00); }
}
/* Dark overlay — above the animated background */
.page-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 16, 0.58);
  z-index: 1;
}
.page-hero--image .container {
  position: relative;
  z-index: 2;
}
.page-hero--image .eyebrow a { color: rgba(255,255,255,.75) !important; }
.page-hero--image h1 {
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,.95),
    0 0 16px rgba(0,0,0,.8),
    0 4px 24px rgba(0,0,0,.7),
    -1px -1px 0 rgba(0,0,0,.7),
     1px -1px 0 rgba(0,0,0,.7),
    -1px  1px 0 rgba(0,0,0,.7),
     1px  1px 0 rgba(0,0,0,.7);
}
.page-hero--image p {
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 8px rgba(0,0,0,.9), 0 0 24px rgba(0,0,0,.7);
}
.page-hero--image .eyebrow {
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

/* ── Products grid ──────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 56px;
}
.prod-card {
  background: var(--warm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background .2s;
}
.prod-card:hover { background: var(--warm2); }
.prod-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-body {
  padding: 24px 24px 28px;
  flex: 1;
}
.prod-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.prod-body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Services list (teenused) ───────────────────────────────────────────── */
.services-sec {
  background: var(--warm);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  align-items: start;
}
.services-list-large {
  margin-bottom: 40px;
}
.services-list-large li {
  padding: 18px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
  padding-left: 28px;
  position: relative;
  letter-spacing: .01em;
}
.services-list-large li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 1px;
  background: var(--copper);
}
.services-aside h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.services-aside p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ── Portfolio grid (tehtud tood) ───────────────────────────────────────── */
.portfolio-sec { background: var(--warm); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.port-card {
  display: block;
  overflow: hidden;
  background: var(--warm2);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.port-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.port-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.port-card:hover .port-img img { transform: scale(1.05); }
.port-body {
  padding: 18px 22px 22px;
}
.port-loc {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 6px;
}
.port-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ── Project detail page ────────────────────────────────────────────────── */
.project-gallery {
  margin-top: 56px;
}
.proj-main-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
}
.proj-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.proj-main-img:hover img { transform: scale(1.03); }
.proj-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.proj-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.proj-thumb:hover img { transform: scale(1.06); }

/* ── General content pages ──────────────────────────────────────────────── */
.page-content-sec { background: var(--warm); }
.page-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.page-content-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.page-content-body p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 18px;
}
.page-content-body ul {
  margin-bottom: 24px;
}
.page-content-body ul li {
  padding: 9px 0 9px 20px;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-content-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--copper);
}

/* ── Privacy / long-form text ───────────────────────────────────────────── */
.prose-sec { background: var(--warm); }
.prose {
  max-width: 820px;
}
.prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 14px;
  letter-spacing: -.01em;
}
.prose h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 10px;
  letter-spacing: .02em;
}
.prose p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.prose ul, .prose ol {
  padding-left: 0;
  margin-bottom: 20px;
}
.prose ul li, .prose ol li {
  padding: 8px 0 8px 22px;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.65;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 1px;
  background: var(--copper);
}
.prose ol { counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
  content: counter(prose-ol) '.';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--copper);
}
.prose a { color: var(--copper); text-decoration: underline; }
.prose strong { font-weight: 600; color: var(--ink); }

/* ── ESTO / Järelmaks ───────────────────────────────────────────────────── */
.esto-sec { background: var(--warm); }
.esto-block {
  background: var(--warm2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  padding: 48px;
  margin-bottom: 40px;
}
.esto-block h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.esto-block h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.esto-block p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.esto-block .warning {
  background: var(--warm);
  border-left: 3px solid var(--copper);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: .9rem;
  color: var(--mid);
}
.esto-block ul {
  margin-bottom: 18px;
}
.esto-block ul li {
  padding: 8px 0 8px 20px;
  font-size: 15px;
  color: var(--mid);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.esto-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 1px;
  background: var(--copper);
}
.esto-img {
  max-width: 340px;
  margin-bottom: 24px;
}

/* ── News / Uudised ─────────────────────────────────────────────────────── */
.news-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
  font-size: .97rem;
}
.news-empty h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ── Responsive additions ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
  .page-content-grid { grid-template-columns: 1fr; gap: 48px; }
  .proj-thumbs { grid-template-columns: repeat(3, 1fr); }
  .esto-block { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .proj-thumbs { grid-template-columns: repeat(2, 1fr); }
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: 2.2rem; }
}

/* ── Cookie consent bar ─────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--ink);
  color: rgba(255,255,255,.85);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 -2px 24px rgba(0,0,0,.35);
  transform: translateY(0);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.cookie-bar.dismissed { transform: translateY(150%); }
.cookie-bar p { margin: 0; flex: 1; min-width: 200px; }
.cookie-bar a { color: var(--copper); text-decoration: underline; }
.cookie-bar a:hover { color: #c9845a; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  background: var(--copper);
  color: #fff;
  border: none;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .2s;
}
.cookie-accept:hover { background: var(--copper2); }
.cookie-decline {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.cookie-decline:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.45); }

.cookie-ok .cookie-bar { display: none !important; }

/* ── Stats Marquee ──────────────────────────────────── */
.stats-marquee {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  padding: 14px 0;
  overflow: hidden;
}
.stats-track {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 1.4rem;
  color: rgba(255,255,255,.9);
  letter-spacing: .02em;
}
.stats-track span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.stats-track strong {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

/* ── Carousel lightbox ──────────────────────────── */
.carousel-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.carousel-lightbox.open { display: flex; }
.clb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.clb-close,
.clb-prev,
.clb-next {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
  line-height: 1;
}
.clb-close:hover,
.clb-prev:hover,
.clb-next:hover { background: rgba(255,255,255,.25); }
.clb-close { top: 20px; right: 20px; font-size: 1.6rem; }
.clb-prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.clb-next  { right: 20px; top: 50%; transform: translateY(-50%); }
.clb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: 13px;
  letter-spacing: .06em;
}
.proj-card { cursor: pointer; }

/* ── Language switcher ────────────────────────────── */
.lang-sw { display: flex; gap: 6px; align-items: center; }
.lang-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .45;
  padding: 2px;
  border-radius: 3px;
  transition: opacity .2s;
  outline: none !important;
  outline-style: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0 none !important;
}
.lang-btn:hover { opacity: .8; }
.lang-btn.on { opacity: 1; outline: none !important; box-shadow: none !important; border: 0 none !important; }
.lang-btn .fi {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  outline: none !important;
  border: 0 none !important;
  box-shadow: none !important;
}
.lang-btn:focus,
.lang-btn:focus-visible,
.lang-btn:focus-within { outline: none !important; box-shadow: none !important; border: 0 none !important; }
.lang-btn:focus-visible { outline: none !important; border: 0 none !important; }
