/*
 * Qaraqoyunlu Group — site styles ("Industrial editorial").
 * Builds on base.css (tokens, reset, reveal, marquee, lightbox).
 * Sections are in page order; search for "====" to jump between them.
 */

/* ==================================================================== TOKENS */

:root {
  --bg: #F2EEE7;            /* bone */
  --bg-alt: #EAE5DC;
  --surface: #FBF9F5;       /* paper */
  --ink: #161514;           /* graphite */
  --ink-soft: #5B5750;
  --concrete: #8C8A85;
  --line: rgba(22, 21, 20, 0.13);
  --line-strong: rgba(22, 21, 20, 0.3);
  --accent: #A9784A;        /* bronze (graphics, large text) */
  --accent-text: #8A5F37;   /* bronze for small text on light */
  --accent-deep: #7A522E;
  --accent-ink: #FBF9F5;

  --dark: #191816;
  --dark-2: #22201D;
  --on-dark: #F2EEE7;
  --on-dark-soft: rgba(242, 238, 231, 0.7);
  --line-dark: rgba(242, 238, 231, 0.15);
  --accent-on-dark: #CFA172;

  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 3px;
  --radius-lg: 6px;
  --header-h: 76px;
  --container: 1280px;
  --cols: 12;
  --col-gap: clamp(16px, 2vw, 28px);
}

.theme-dark {
  --ink: var(--on-dark);
  --ink-soft: var(--on-dark-soft);
  --line: var(--line-dark);
  --line-strong: rgba(242, 238, 231, 0.32);
  --accent-text: var(--accent-on-dark);
  --surface: var(--dark-2);
  background: var(--dark);
  color: var(--on-dark);
}

/* ================================================================ TYPOGRAPHY */

body { color: var(--ink); }

.label {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(34px, 4.7vw, 70px);
  line-height: 1.0;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

/* split-word masks need headroom for Ö, Ü, İ diacritics in tight leading */
.split-word { padding-top: 0.14em; margin-top: -0.14em; }

/* Load states (see the inline script in <head>).
   Split headings stay hidden until core.js has wrapped their words, so they never paint
   as plain text, vanish and rise again. If core.js fails, .js is removed on load.
   English visitors: nothing paints until the texts are swapped (.i18n-wait), and the
   intro animations hold their first frame so they play when the page appears. */
.js [data-split]:not(.is-split) { visibility: hidden; }
/* opacity (not inherited: lifting it restyles three elements, not the whole page), and no
   fade on the way in (.i18n-lift, one frame), so the page and its first paint appear at once */
.i18n-wait .site-header, .i18n-wait main, .i18n-wait .site-footer { opacity: 0; }
.i18n-lift main, .i18n-lift .site-footer { transition: none; }
/* (a short list, not "*": lifting .i18n-wait then restyles only these, not the whole page) */
.i18n-wait .brand, .i18n-wait .site-header .brand__mark, .i18n-wait .site-header__actions, .i18n-wait .site-nav__list,
.i18n-wait .hero__guides span, .i18n-wait .hero__meta, .i18n-wait .hero__media::before, .i18n-wait .hero__img,
.i18n-wait .fact { animation-play-state: paused; }
.nowrap { white-space: nowrap; }

.icon {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: square; stroke-linejoin: miter;
}

/* =================================================================== BUTTONS */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 22px 0 24px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 650;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1; white-space: nowrap;
  border-radius: var(--radius);
  transition: color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--accent-deep);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .icon { width: 18px; height: 18px; transition: transform 0.45s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: var(--bg); }
.theme-dark .btn--dark { color: var(--dark); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--accent-ink); }
.btn--accent { background: var(--accent); color: #161514; }
.btn--accent::before { background: var(--on-dark); }
.btn--accent:hover, .btn--accent:focus-visible { color: var(--dark); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px 0 18px; font-size: 11.5px; }

/* text link with arrow + drawn underline */
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 650;
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; right: 32px; bottom: 9px; height: 1px;
  background: currentColor; transform-origin: 0 50%;
  transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); transform-origin: 100% 50%; }
.link-arrow .icon { width: 18px; height: 18px; color: var(--accent-text); transition: transform 0.45s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(5px); }
.link-arrow--sm { font-size: 11.5px; }
.link-arrow--sm::after { bottom: 11px; }
.link-arrow--sm:hover .icon { transform: translate(3px, -3px); }

/* inline underline link */
.link-u {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
.link-u:hover { background-size: 100% 1px; }

/* crop marks used around photos */
.crop { position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--bg); }
.crop::before { width: 14px; height: 1.5px; }
.crop::after { width: 1.5px; height: 14px; }
.crop--tl { top: 10px; left: 10px; }
.crop--tr { top: 10px; right: 10px; } .crop--tr::before { right: 0; } .crop--tr::after { right: 0; }
.crop--bl { bottom: 10px; left: 10px; } .crop--bl::before { bottom: 0; } .crop--bl::after { bottom: 0; }
.crop--br { bottom: 10px; right: 10px; } .crop--br::before { right: 0; bottom: 0; } .crop--br::after { right: 0; bottom: 0; }

/* ============================================================ SECTION HEADS */

.section { padding: clamp(80px, 10vw, 140px) 0; }

.sec-head {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 18px;
  padding-top: 16px; margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--line-strong); transform-origin: 0 50%;
  transition: transform 1.4s var(--ease-out);
}
.js .sec-head[data-reveal]:not(.is-visible)::before { transform: scaleX(0); }
.sec-head__num, .sec-head__label, .sec-head__aside {
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.3;
}
.sec-head__num { color: var(--accent-text); }
.sec-head__num::after { content: ' —'; color: var(--ink-soft); }
.sec-head__aside { color: var(--ink-soft); text-align: right; }

.sec-intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px;
  align-items: end; margin-bottom: clamp(48px, 6vw, 88px);
}
.sec-intro .h2 { grid-column: 1 / span 7; }
.sec-intro__text { grid-column: 9 / -1; color: var(--ink-soft); max-width: 420px; }
@media (max-width: 1023px) {
  .sec-intro .h2 { grid-column: 1 / -1; }
  .sec-intro__text { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 640px) {
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-head__aside { display: none; }
}

/* ==================================================================== HEADER */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); color: var(--ink);
  transition: transform 0.6s var(--ease-out);
}
/* intro: animate the bar's children, never the header itself — a transform on
   .site-header would trap the fixed mobile menu inside the 76px bar */
.brand, .site-header__actions { animation: header-in 0.9s var(--ease-out) 0.1s backwards; }
.site-header__actions { animation-delay: 0.2s; }
/* outside any media query so a viewport flip never replays it */
.site-nav__list { animation: header-in 0.9s var(--ease-out) 0.15s backwards; }
@media (min-width: 1280px) {
  .site-nav__item--m { display: none; } /* "01 Company" lives in the mobile menu only */
}
@media (min-width: 1280px) and (max-width: 1439px) {
  /* small laptops: the AZ "Qiymət təklifi alın" button needs the room */
  .site-header .site-header__inner { gap: 18px; }
  .site-header .site-nav__list { gap: 18px; }
}
@keyframes header-in { from { opacity: 0; transform: translate3d(0, -18px, 0); } }
.site-header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(242, 238, 231, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.site-header.is-scrolled::before { opacity: 1; }
@media (max-width: 1023px), (hover: none) {
  /* phones/tablets: a live blur under a fixed bar is re-rendered on every scroll frame */
  .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; }
.brand__mark { flex: none; width: 40px; height: auto; aspect-ratio: 1812 / 1422; fill: currentColor; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand__sub { margin-top: 3px; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; }

/* header mark draws itself on load */
.site-header .brand__mark { color: var(--accent); stroke: currentColor; stroke-width: 26; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: mark-draw 1.4s var(--ease-in-out) 0.2s forwards, mark-fill 0.6s ease 1.15s forwards; }
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; stroke-width: 0; } }

.site-nav__list { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.site-nav__list a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 12px 0; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.site-nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-out);
}
.site-nav__list a:hover::after, .site-nav__list a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.site-nav__n { display: none; }
.site-nav__extra { display: none; }

.site-header__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.lang-switch button {
  position: relative; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--ink-soft); transition: color 0.3s, background-color 0.3s;
}
.lang-switch button::after { content: ''; position: absolute; inset: -4px 0; } /* 44px tap target, 36px pill */
.lang-switch button.is-active { background: var(--ink); color: var(--bg); }
.lang-switch button:not(.is-active):hover { color: var(--ink); }
.site-nav__extra .lang-switch { display: none; align-self: flex-start; margin-bottom: 24px; }

.nav-toggle { display: none; position: relative; width: 48px; height: 48px; margin-right: -8px; }
.nav-toggle__bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.nav-toggle__bar:first-child { top: 20px; }
.nav-toggle__bar:last-child { top: 27px; }
.nav-open .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  /* the menu sheet starts under the bar, so when it has to scroll (landscape phones,
     short tablets) its links slide under a solid bar, never into the logo or buttons */
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: clamp(12px, 3svh, 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
    background: var(--dark); color: var(--on-dark); overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.75s var(--ease-out), visibility 0s linear 0.75s;
  }
  .nav-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.75s var(--ease-out), visibility 0s; }
  .nav-open .site-header { color: var(--on-dark); }
  /* the bar turns into the top of the dark sheet at once (the sheet wipes down from it) */
  .nav-open .site-header::before {
    opacity: 1; background: var(--dark); box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; transition: none;
  }
  .nav-open .lang-switch button.is-active { background: var(--on-dark); color: var(--dark); }
  .nav-open .lang-switch { box-shadow: inset 0 0 0 1px rgba(242, 238, 231, 0.3); }
  .nav-open .lang-switch button:not(.is-active) { color: var(--on-dark-soft); }
  .nav-open .site-header__cta { background: var(--on-dark); color: var(--dark); }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--line-dark); overflow-x: visible; overflow-y: clip; }
  .site-nav__list a {
    display: flex; width: 100%; padding: clamp(8px, 1.1svh, 14px) 0; gap: 16px; align-items: baseline;
    font-stretch: 118%; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em;
    font-size: clamp(22px, min(6.6vw, 5.4svh), 44px); /* height-aware: fits short landscape screens */
    transform: translate3d(0, 110%, 0); transition: transform 0.7s var(--ease-out);
  }
  .site-nav__list a::after { display: none; }
  .nav-open .site-nav__list a { transform: none; }
  .site-nav__list li:nth-child(2) a { transition-delay: 0.04s; }
  .site-nav__list li:nth-child(3) a { transition-delay: 0.08s; }
  .site-nav__list li:nth-child(4) a { transition-delay: 0.12s; }
  .site-nav__list li:nth-child(5) a { transition-delay: 0.16s; }
  .site-nav__list li:nth-child(6) a { transition-delay: 0.2s; }
  .site-nav__list li:nth-child(7) a { transition-delay: 0.24s; }
  .site-nav__list li:nth-child(8) a { transition-delay: 0.28s; }
  .site-nav__n { display: inline; font-size: 11px; letter-spacing: 0.14em; font-weight: 600; color: var(--accent-on-dark); }
  .site-nav__extra { display: flex; flex-direction: column; opacity: 0; transition: opacity 0.5s ease 0.3s; }
  .nav-open .site-nav__extra { opacity: 1; }
  .site-nav__label { color: var(--on-dark-soft); margin-bottom: 6px; }
  .site-nav__contact { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 18px; }
  .site-nav__contact--mail { font-size: 15px; color: var(--on-dark-soft); }
  .site-nav__wa { margin-top: 16px; width: 100%; }
}
@media (min-width: 720px) and (max-width: 1279px) {
  /* tablets and landscape phones: links on the left, direct contacts bottom-right,
     so the whole menu fits a landscape screen without scrolling */
  .site-nav { flex-direction: row; align-items: stretch; gap: clamp(32px, 5vw, 64px); }
  .site-nav__list { flex: 1 1 auto; min-width: 0; align-self: flex-start; }
  .site-nav__list a { font-size: clamp(22px, min(5.6vw, 5.4svh), 44px); }
  .site-nav__extra { flex: 0 0 auto; }
  .site-nav__label { margin-top: auto; } /* pushes the contacts down; 0 when space runs out */
}
@media (min-width: 560px) and (max-width: 1279px) and (max-height: 560px) {
  /* landscape phones: eight links in two columns of four */
  .site-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 32px); }
}
@media (max-width: 640px) {
  .site-header__cta { display: none; }
  .brand__mark { width: 36px; }
  .brand__name, .brand__sub { font-size: 13.5px; }
  .site-header__actions { gap: 6px; }
}
@media (max-width: 400px) {
  /* 360px phones: brand + language switch + burger must fit 328px */
  .site-header__inner { gap: 10px; }
  .brand { gap: 10px; }
  .brand__mark { width: 32px; }
  .brand__name, .brand__sub { font-size: 12.5px; }
  .site-header__actions .lang-switch { display: none; } /* three buttons no longer fit: they move into the menu */
  .site-nav__extra .lang-switch { display: inline-flex; }
}

/* ===================================================================== HERO */

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(20px, 3.4vw, 44px)) 0 0;
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column;
}
.hero__guides {
  position: absolute; inset: 0; pointer-events: none;
  /* guides show above and below the copy, never through it */
  -webkit-mask-image: linear-gradient(#000 0 14%, transparent 20% 72%, #000 80%);
  mask-image: linear-gradient(#000 0 14%, transparent 20% 72%, #000 80%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
}
.hero__guides span { border-left: 1px solid rgba(22, 21, 20, 0.07); transform-origin: 50% 0; animation: guide-in 1.6s var(--ease-out) backwards; }
.hero__guides span:last-child { border-right: 1px solid rgba(22, 21, 20, 0.07); position: absolute; right: var(--gutter); top: 0; bottom: 0; width: 0; border-left: 0; }
.hero__guides span:nth-child(2) { animation-delay: 0.08s; }
.hero__guides span:nth-child(3) { animation-delay: 0.16s; }
.hero__guides span:nth-child(4) { animation-delay: 0.24s; }
@keyframes guide-in { from { transform: scaleY(0); } }

.hero__inner {
  position: relative; flex: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  grid-template-rows: auto 1fr; align-content: start;
}
.hero__meta {
  grid-column: 1 / span 7; grid-row: 1; display: flex; align-items: center; gap: 16px;
  padding-bottom: clamp(24px, 3.4vw, 48px);
  animation: fade-in 1s var(--ease-out) 0.3s backwards;
}
@keyframes fade-in { from { opacity: 0; } }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: pulse 2.6s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero__main { grid-column: 1 / span 7; grid-row: 2; display: flex; flex-direction: column; }

.hero__title {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(44px, 7.2vw, 108px); line-height: 1; letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__lines { display: block; }
.hero__line { display: block; white-space: nowrap; }
.hero__line--dim { display: flex; align-items: center; gap: 0.18em; }
.hero__line--dim > [data-split] { flex: none; }

/* dimension line inside the headline */
.dimline {
  position: relative; flex: 1; min-width: 60px; height: 0.62em; align-self: center;
  margin-right: 0.16em; /* room for the end tick's slash */
  color: var(--accent);
}
.dimline__rule {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
  transition: transform 1.1s var(--ease-in-out) 0.65s;
}
.dimline__tick { position: absolute; top: 18%; bottom: 18%; left: 0; width: 2px; background: currentColor; transition: transform 0.5s var(--ease-out) 0.55s; }
.dimline__tick--end { left: auto; right: 0; }
.dimline__tick::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.26em; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(-45deg); }
.dimline__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 0 0.7em; background: var(--bg);
  font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: clamp(11px, 0.95vw, 14px);
  letter-spacing: 0.14em; text-transform: none; color: var(--accent-text); white-space: nowrap; line-height: 1;
  transition: opacity 0.6s ease 1.25s;
}
.js .dimline:not(.is-visible) .dimline__rule { transform: scaleX(0); }
.js .dimline:not(.is-visible) .dimline__tick { transform: scaleY(0); }
.js .dimline:not(.is-visible) .dimline__label { opacity: 0; }
.js .dimline[data-reveal] { opacity: 1; transform: none; }

.hero__aside {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  margin-top: clamp(28px, 3vw, 44px);
}
.hero__lead { font-size: clamp(17px, 1.25vw, 19.5px); line-height: 1.55; color: var(--ink-soft); max-width: 540px; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* hero photo: one strong image from the meta row down to the facts strip */
.hero__media {
  grid-column: 8 / -1; grid-row: 1 / span 2; position: relative; margin: 0; min-height: 420px;
  overflow: hidden; border-radius: var(--radius); background: #2a2724;
}
/* intro wipe: a bone cover retracts downwards. Pure CSS + transform (composited), so the
   photo is painted, and counted as LCP, at once instead of waiting for scripts */
.hero__media::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%;
  animation: hero-wipe 1.2s var(--ease-out) 0.12s backwards;
}
@keyframes hero-wipe { from { transform: scaleY(1); } }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 34% 50%;
  filter: saturate(0.82) contrast(1.04);
  animation: settle 1.8s var(--ease-out) 0.15s backwards;
}
@keyframes settle { from { transform: scale(1.12); } }
.hero__media::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(22, 21, 20, 0) 62%, rgba(22, 21, 20, 0.6)); }
.hero__media .crop::before, .hero__media .crop::after { background: #fff; }
.hero__cap {
  position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 16px; display: flex; gap: 10px; align-items: baseline;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 650; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}
.hero__cap b { color: #E7BE93; font-weight: 700; }

.hero__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 3vw, 44px); border-top: 1px solid var(--line-strong);
}
.fact { animation: rise 0.9s var(--ease-out) backwards; }
.fact:nth-child(1) { animation-delay: 0.7s; }
.fact:nth-child(2) { animation-delay: 0.78s; }
.fact:nth-child(3) { animation-delay: 0.86s; }
.fact:nth-child(4) { animation-delay: 0.94s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
.fact {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 22px 20px 26px; border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .icon { grid-row: 1 / span 2; width: 26px; height: 26px; color: var(--accent-text); }
.fact__k { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.fact__v { font-weight: 500; font-size: 16px; line-height: 1.3; }

@media (max-width: 1023px) {
  .hero { min-height: 0; }
  .hero__guides { grid-template-columns: 1fr; }
  .hero__guides span:nth-child(2), .hero__guides span:nth-child(3), .hero__guides span:nth-child(4) { display: none; }
  .hero__meta, .hero__main { grid-column: 1 / -1; }
  .hero__title { font-size: clamp(44px, 11.6vw, 112px); }
  .hero__media { grid-column: 1 / -1; grid-row: auto; margin-top: 40px; min-height: 0; aspect-ratio: 16 / 10; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(40px, 12.4vw, 64px); line-height: 1.02; }
  .dimline__label { font-size: 11px; letter-spacing: 0.08em; padding: 0 0.5em; }
  .hero__aside { margin-top: 28px; }
  .hero__media { margin-top: 32px; aspect-ratio: 4 / 3.4; }
  .hero__cap { left: 26px; right: 26px; }
  .fact { grid-template-columns: 1fr; align-content: start; align-items: start; padding: 18px 12px 20px 16px; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact .icon { grid-row: auto; margin-bottom: 8px; width: 24px; height: 24px; }
  .fact__v { font-size: 15px; }
}

/* =================================================================== TICKER */

.ticker { padding: 14px 0; overflow: hidden; }
/* the marquee clips: vertical padding inside it keeps İ/Ö/Ü accents and Ç/Ş/Q tails whole */
.ticker .marquee { --marquee-gap: 0px; --marquee-speed: 70s; padding: 12px 0; }
.ticker li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 750;
  font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -0.01em; text-transform: uppercase; line-height: 1.2;
}
.ticker li::after {
  content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.9em;
  border: 2px solid var(--accent); transform: rotate(45deg);
}
.ticker li:nth-child(even) span { color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 231, 0.75); }

/* ==================================================================== ABOUT */

.about__lede {
  font-family: var(--font-display); font-stretch: 105%; font-weight: 500;
  font-size: clamp(24px, 3.05vw, 46px); line-height: 1.16; letter-spacing: -0.022em;
  max-width: 1120px; text-wrap: pretty;
}
.lede-word { transition: opacity 0.35s ease, color 0.35s ease; }
.js .about__lede.is-lit-ready .lede-word { opacity: 0.52; } /* unlit words still meet 3:1 (large text) */
.js .about__lede.is-lit-ready .lede-word.is-lit { opacity: 1; }

.about__lower {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  margin-top: clamp(64px, 8vw, 120px); align-items: start;
}
.motto { grid-column: 1 / span 5; position: relative; padding-top: 8px; }
.motto__mark {
  width: clamp(120px, 14vw, 190px); height: auto; aspect-ratio: 1812 / 1422; margin-bottom: 32px;
  fill: var(--ink); stroke: var(--accent); stroke-width: 9;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s var(--ease-in-out), fill-opacity 0.9s ease 1.6s;
}
.js .motto:not(.is-visible) .motto__mark { stroke-dashoffset: 1; fill-opacity: 0; }
.motto__text p {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 3.1vw, 44px); line-height: 1; letter-spacing: -0.03em;
  max-width: 11.8em; /* "ZƏMANƏTİMİZDİR!" is 11.7em wide: it fits the measure and the 5-column cell */
}
.motto__cap { margin-top: 18px; color: var(--ink-soft); }
.motto__cap::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }

.terms { grid-column: 7 / -1; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 0 var(--line); }
.terms__title { color: var(--accent-text); margin-bottom: 14px; }
.terms__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.terms__row dt { font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.terms__row dd { color: var(--ink-soft); }

/* warranty ruler: 0 → 6 → 12 months and longer, drawn like a dimension scale */
.warranty {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end;
  margin-top: clamp(64px, 8vw, 110px); padding-top: 28px; border-top: 1px solid var(--line-strong);
}
.warranty__head { grid-column: 1 / span 4; }
.warranty__num {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: clamp(56px, 6.4vw, 96px); line-height: 0.9; letter-spacing: -0.04em; white-space: nowrap;
}
.warranty__plus { color: var(--accent); }
.warranty__k { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.warranty__body { grid-column: 6 / -1; }
.warranty__note { margin-top: 18px; max-width: 520px; color: var(--ink-soft); font-size: 15px; }

.ruler { --scale: 78%; position: relative; height: 112px; }
.js .ruler[data-reveal] { opacity: 1; transform: none; }
.ruler > * { position: absolute; }
.ruler__axis {
  left: 0; top: 78px; width: var(--scale); height: 2px; margin-top: -1px; background: var(--ink);
  transform-origin: 0 50%; transition: transform 1.2s var(--ease-in-out);
}
.ruler__axis::after { /* one tick per month */
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 0 / calc(100% / 12) 100% repeat-x;
}
.ruler__ext {
  left: var(--scale); right: 4px; top: 78px; height: 0; margin-top: -1px; border-top: 2px dashed var(--concrete);
  transition: opacity 0.6s ease 1.1s;
}
.ruler__ext::after {
  content: ''; position: absolute; right: -2px; top: -6px; width: 9px; height: 9px;
  border-top: 2px solid var(--concrete); border-right: 2px solid var(--concrete); transform: rotate(45deg);
}
.ruler__x {
  left: calc(var(--scale) * var(--m) / 12); top: var(--t); width: 1px; height: calc(78px - var(--t));
  background: var(--line-strong); transition: opacity 0.5s ease 0.3s;
}
.ruler__n {
  left: calc(var(--scale) * var(--m) / 12); top: 70px; transform: translateX(-50%); padding-top: 20px;
  font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 13px; line-height: 1;
  font-variant-numeric: tabular-nums; transition: opacity 0.6s ease 0.9s;
}
.ruler__n::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 16px; margin-left: -1px; background: var(--ink); }
.ruler__n--start { transform: none; }
.ruler__n--start::before { left: 0; margin-left: 0; }
.ruler__unit {
  left: var(--scale); top: 90px; margin-left: 14px;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  color: var(--ink-soft); transition: opacity 0.6s ease 1s;
}
.ruler__dim { left: 0; height: 2px; }
.ruler__dim--12 { top: 14px; width: var(--scale); }
.ruler__dim--6 { top: 50px; width: calc(var(--scale) / 2); }
.ruler__line {
  position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--accent);
  transform-origin: 0 50%; transition: transform 1.1s var(--ease-in-out) 0.45s;
}
.ruler__dim--12 .ruler__line { transition-delay: 0.7s; }
.ruler__dim::before, .ruler__dim::after {
  content: ''; position: absolute; top: -5px; width: 1.5px; height: 12px; margin-left: -0.75px; background: var(--accent);
  transform: rotate(45deg); transition: opacity 0.4s ease 1.2s;
}
.ruler__dim::before { left: 0; }
.ruler__dim::after { left: 100%; }
.ruler__lbl {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 0 10px; background: var(--bg);
  font-family: var(--font-display); font-stretch: 108%; font-weight: 650; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
  color: var(--accent-text); white-space: nowrap; transition: opacity 0.6s ease 1.3s;
}
.ruler__more { left: var(--scale); right: 0; top: 14px; height: 0; margin-top: 0; border-top: 1.5px dashed var(--accent); transition: opacity 0.6s ease 1.5s; }
.ruler__more .ruler__lbl { left: auto; right: 0; top: -1px; transform: translateY(-50%); padding-right: 0; }
.js .ruler:not(.is-visible) .ruler__axis, .js .ruler:not(.is-visible) .ruler__line { transform: scaleX(0); }
.js .ruler:not(.is-visible) .ruler__lbl, .js .ruler:not(.is-visible) .ruler__n, .js .ruler:not(.is-visible) .ruler__ext,
.js .ruler:not(.is-visible) .ruler__more, .js .ruler:not(.is-visible) .ruler__x, .js .ruler:not(.is-visible) .ruler__unit,
.js .ruler:not(.is-visible) .ruler__dim::before, .js .ruler:not(.is-visible) .ruler__dim::after { opacity: 0; }

@media (max-width: 1023px) {
  .motto { grid-column: 1 / span 6; }
  .motto__text p { font-size: clamp(24px, 3.4vw, 34px); }
  .terms { grid-column: 7 / -1; }
  .ruler { --scale: 70%; }
  .terms__row { grid-template-columns: 1fr; gap: 4px; }
  .warranty__head { grid-column: 1 / span 5; }
  .warranty__body { grid-column: 6 / -1; }
}
@media (max-width: 640px) {
  .motto { grid-column: 1 / -1; margin-bottom: 48px; }
  .terms { grid-column: 1 / -1; }
  .motto__text p { font-size: clamp(24px, 7.6vw, 30px); } /* "ZƏMANƏTİMİZDİR!" fits 328px */
  .warranty__head, .warranty__body { grid-column: 1 / -1; }
  .ruler { --scale: 62%; }
}

/* ================================================================= SERVICES */

.services { background: var(--surface); }
.services__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.svc-list { grid-column: 1 / span 7; border-bottom: 1px solid var(--line-strong); }

.svc { position: relative; border-top: 1px solid var(--line-strong); }
.svc::before {
  content: ''; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.8s var(--ease-out);
}
.svc.is-active::before { transform: scaleX(1); }
.svc__toggle {
  width: 100%; display: grid; grid-template-columns: 56px 40px 1fr 44px; align-items: center; gap: 0 12px;
  padding: 26px 0; text-align: left; color: inherit; cursor: pointer;
}
span.svc__toggle { cursor: default; } /* desktop: plain heading, every panel is open */
.svc__num { font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft); transition: color 0.4s; }
.svc.is-active .svc__num { color: var(--accent-text); }
.svc__icon { width: 30px; height: 30px; color: var(--ink-soft); transition: color 0.4s, transform 0.6s var(--ease-out); }
.svc.is-active .svc__icon { color: var(--accent); transform: translateX(2px); }
.svc__title {
  font-family: var(--font-display); font-stretch: 115%; font-weight: 700;
  font-size: clamp(22px, 2.15vw, 32px); line-height: 1.08; letter-spacing: -0.025em;
  transition: transform 0.6s var(--ease-out);
}
.svc.is-active .svc__title { transform: translateX(6px); }
.svc__plus { position: relative; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); }
.svc__plus::before, .svc__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.svc__plus::after { transform: rotate(90deg); }
.svc__toggle[aria-expanded="true"] .svc__plus::after { transform: rotate(0deg); }
.svc__panel { padding: 0 0 34px 108px; }
.svc__panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
.svc__photo { display: none; }
.svc__text { color: var(--ink-soft); max-width: 600px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 14px; }
.tags li {
  padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; line-height: 1.2; color: var(--ink);
}

/* sticky media frame (desktop) */
.svc-media { grid-column: 9 / -1; position: sticky; top: calc(var(--header-h) + 24px); }
.svc-media__frame { position: relative; aspect-ratio: 4 / 3; max-height: calc(100vh - var(--header-h) - 120px); width: 100%; overflow: hidden; border-radius: var(--radius); background: #2a2724; }
.svc-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.04); clip-path: inset(100% 0 0 0); }
.svc-media__img.is-prev { clip-path: inset(0); z-index: 1; }
.svc-media__img.is-active { clip-path: inset(0); z-index: 2; transition: clip-path 0.95s var(--ease-in-out); animation: settle 1.5s var(--ease-out) backwards; }
.svc-media .crop::before, .svc-media .crop::after { background: #fff; }
.svc-media__foot { display: flex; align-items: center; gap: 14px; padding-top: 14px; font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-soft); }
.svc-media__count b { color: var(--ink); font-weight: 700; }
.svc-media__rule { position: relative; flex: 1; height: 1px; background: var(--line-strong); }
.svc-media__rule::before, .svc-media__rule::after { content: ''; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--ink-soft); }
.svc-media__rule::before { left: 0; } .svc-media__rule::after { right: 0; }

@media (max-width: 1023px) {
  .svc-list { grid-column: 1 / -1; }
  .svc-media { display: none; }
  .svc__toggle { grid-template-columns: 34px 30px 1fr 44px; gap: 0 12px; padding: 20px 0; }
  .svc__icon { width: 26px; height: 26px; }
  .svc__title { font-size: clamp(19px, 5.2vw, 26px); }
  .svc.is-active .svc__title { transform: none; }
  .svc__panel { padding: 0 0 28px 0; }
  /* accordion only: an opened panel's content rises in */
  .svc__panel > * { animation: panel-in 0.7s var(--ease-out) backwards; }
  .svc__panel > :nth-child(2) { animation-delay: 0.05s; }
  .svc__panel > :nth-child(3) { animation-delay: 0.1s; }
  .svc__panel > :nth-child(4) { animation-delay: 0.15s; }
  .svc__photo { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; }
  .svc__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.04); }
}
@media (min-width: 1024px) {
  .svc__plus { display: none; }
  .svc__toggle { grid-template-columns: 56px 40px 1fr; }
}

/* ================================================================== PRICING */

.pricing { background: var(--bg); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.pricing::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, rgba(242, 238, 231, 0.2), var(--bg) 78%); }
.pricing > .container { position: relative; }
.pricing .sec-head__aside { text-transform: none; letter-spacing: 0.08em; } /* m, t are unit symbols: never uppercase (M = mega, T = tera) */

.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); counter-reset: unit; }
.unit {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg); padding: 20px 22px 26px;
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.unit:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(22, 21, 20, 0.35), 0 0 0 1px var(--line-strong); }
.unit__draw { aspect-ratio: 200 / 170; margin: 0 -6px 4px; }
.draw { width: 100%; height: 100%; overflow: visible; }
.draw path, .draw circle { fill: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw .ink path { stroke: var(--ink); stroke-width: 1; }
.draw .ink .hatch { stroke-opacity: 0.32; stroke-width: 0.75; }
.draw .ink .hid { stroke-opacity: 0.26; stroke-width: 0.75; }
.draw .acc path, .draw .acc circle { stroke: var(--accent); stroke-width: 0.85; }
.draw .acc .ext { stroke-opacity: 0.6; }
.draw text { fill: var(--accent-text); font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 11px; letter-spacing: 0.04em; }
.unit .draw path, .unit .draw circle { transition: stroke-dashoffset 1.6s var(--ease-in-out) calc(var(--reveal-delay, 0ms) + 250ms); }
.unit .draw .acc path, .unit .draw .acc circle { transition-delay: calc(var(--reveal-delay, 0ms) + 900ms); }
.unit .draw text { transition: opacity 0.6s ease calc(var(--reveal-delay, 0ms) + 1500ms); }
.js .unit:not(.is-visible) .draw path, .js .unit:not(.is-visible) .draw circle { stroke-dashoffset: 1; }
.js .unit:not(.is-visible) .draw text { opacity: 0; }
.unit__sym { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; }
.unit__name { margin-top: 14px; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.unit__kind { margin: 6px 0 14px; color: var(--accent-text); }
.unit__ex { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }

.pricing__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line-strong); }
.pricing__note { max-width: 560px; color: var(--ink-soft); }
.pricing__foot .btn { flex: none; }

@media (max-width: 1279px) {
  /* formulas may wrap: reserve two lines so the hairlines line up */
  .unit__ex { min-height: calc(3em + 13px); }
}
@media (max-width: 1023px) {
  .units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .units { gap: 12px; }
  .unit { padding: 14px 14px 18px; }
  .unit__name { font-size: 16.5px; }
  .unit__ex { font-size: 14px; }
  .unit .draw text { font-size: 15px; }
  .pricing__foot { flex-direction: column; align-items: flex-start; }
}

/* ================================================================== MODULAR */

.modular__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.modular__media { grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 32px); padding-bottom: 150px; }
.modular__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: #2a2724; }
.modular__photo-inner { position: absolute; left: 0; right: 0; top: -6%; bottom: -6%; } /* covers the ±0.035 parallax drift */
.modular__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(1.05) brightness(0.92); }
.modular__drawing {
  position: absolute; right: -20px; bottom: 0; width: min(44%, 270px); margin: 0;
  background: var(--bg); color: var(--ink); border-radius: var(--radius-lg); padding: 14px 16px 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  --ink: #161514; --ink-soft: #5B5750; --line: rgba(22, 21, 20, 0.13); --accent-text: #8A5F37;
}
.modular__drawing .draw { aspect-ratio: 272 / 282; height: auto; }
.modular__drawing figcaption { color: var(--ink-soft); margin-top: 6px; }
.stack .ink path { stroke: var(--ink); }
.stack path { transition: stroke-dashoffset 1.6s var(--ease-in-out) 0.2s; }
.stack .acc path { transition-delay: 1.5s; }
.stack .mod-b { transition: transform 1s var(--ease-out) 1.1s, opacity 0.5s ease 1.1s; }
.stack .mod-b path { transition-delay: 1.1s; }
.stack .mod-back { opacity: 0; transition: opacity 0.5s ease 1.6s; }
.stack text { transition: opacity 0.6s ease 2.2s; }
.js [data-stack]:not(.is-drawn) .stack path { stroke-dashoffset: 1; }
.js [data-stack]:not(.is-drawn) .stack .mod-b { transform: translate3d(0, -36px, 0); opacity: 0; }
.js [data-stack]:not(.is-drawn) .stack .mod-back { opacity: 1; }
.js [data-stack]:not(.is-drawn) .stack text { opacity: 0; }

.modular__body { grid-column: 8 / -1; }
.modular__body .h2 { font-size: clamp(34px, 4.2vw, 62px); }
.modular__intro { margin-top: 24px; color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 19px); max-width: 520px; }
.adv { margin: 44px 0 40px; border-top: 1px solid var(--line-strong); }
.adv__item { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.adv__n { font-family: var(--font-display); font-stretch: 110%; font-weight: 650; font-size: 13px; letter-spacing: 0.1em; color: var(--accent-text); padding-top: 4px; }
.adv__t { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(18px, 1.45vw, 21px); letter-spacing: -0.01em; line-height: 1.2; }
.adv__d { margin-top: 6px; color: var(--ink-soft); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: rgba(242, 238, 231, 0.08); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 13.5px; line-height: 1.2; }

@media (max-width: 1023px) {
  .modular__media { grid-column: 1 / -1; position: relative; top: 0; margin-bottom: 56px; padding-bottom: 0; }
  .modular__body { grid-column: 1 / -1; }
  /* tablet: photo and drawing side by side */
  .modular__media { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--col-gap); align-items: end; }
  .modular__drawing { position: relative; right: auto; bottom: auto; width: auto; margin: 0; }
}
@media (max-width: 640px) {
  .modular__media { display: block; }
  .modular__drawing { width: 74%; margin: -56px 0 0 auto; padding: 10px 12px 12px; }
  .adv__item { grid-template-columns: 40px 1fr; }
}

/* ================================================================== GALLERY */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  display: inline-flex; align-items: flex-start; gap: 6px; min-height: 44px; padding: 11px 18px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-display); font-stretch: 110%; font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6;
  transition: background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.filter sup { font-size: 9.5px; line-height: 1; margin-top: 2px; color: var(--accent-text); letter-spacing: 0.04em; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.filter.is-active sup { color: var(--accent-on-dark); }

.gal {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15.5vw, 228px);
  grid-auto-flow: dense; gap: clamp(10px, 1.2vw, 16px);
}
.gal__item { position: relative; min-width: 0; }
.gal__item--tall { grid-row: span 2; }
.gal__item--wide { grid-column: span 2; }
.gal__item.is-entering { opacity: 0; transform: translate3d(0, 18px, 0); }
.gal__link { position: relative; display: block; height: 100%; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.gal__media { position: absolute; inset: 0; display: block; }
.gal__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.03); transition: transform 1.1s var(--ease-out); }
.gal__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(22, 21, 20, 0.55) 64%, rgba(22, 21, 20, 0.86) 100%); transition: opacity 0.6s var(--ease-out); }
.gal__media::before {
  content: ''; position: absolute; z-index: 2; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161514' stroke-width='1.5'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transform: scale(0.6); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.gal__link:hover .gal__media img, .gal__link:focus-visible .gal__media img { transform: scale(1.05); }
.gal__link:hover .gal__media::before, .gal__link:focus-visible .gal__media::before { transform: none; opacity: 1; }
.gal__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; color: #fff; transition: transform 0.6s var(--ease-out);
}
.gal__link:hover .gal__cap { transform: translate3d(0, -4px, 0); }
.gal__title { font-weight: 500; font-size: 15px; line-height: 1.3; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.gal__cat { font-family: var(--font-display); font-stretch: 108%; font-weight: 650; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #F2D3AE; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55); }

@media (max-width: 1023px) {
  .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 640px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .gal__cap { padding: 10px 11px; }
  .gal__title { font-size: 13.5px; }
  .gal__cat { font-size: 9px; }
  .filter { padding: 10px 14px; font-size: 11.5px; }
}

/* ================================================================== PROCESS */

.process { background: var(--surface); }
.steps { position: relative; }
.steps__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--col-gap); }
.steps__track { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.steps__fill { position: absolute; inset: -0.5px 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.step { position: relative; padding-top: 44px; }
.step__dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: box-shadow 0.5s; }
.step__dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.5s var(--ease-out); }
.step.is-on .step__dot { box-shadow: inset 0 0 0 1.5px var(--accent); }
.step.is-on .step__dot::after { transform: scale(1); }
.step__num { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.04em; color: var(--ink); opacity: 0.5; transition: opacity 0.6s; /* dim state still 3:1 */
  min-width: 2.1ch; font-variant-numeric: tabular-nums; }
.step.is-on .step__num { opacity: 1; }
.step__t { margin-top: 18px; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }
.step__d { margin-top: 10px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

@media (max-width: 1023px) {
  .steps__list { grid-template-columns: 1fr; gap: 0; }
  .steps__track { left: 7px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
  .steps__fill { inset: 0 -0.5px; transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
  .step { padding: 0 0 36px 48px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; }
  .step:last-child { padding-bottom: 0; }
  .step__num { font-size: 30px; grid-row: 1 / span 2; }
  .step__t { margin-top: 0; }
  .step__d { margin-top: 6px; }
}
@media (min-width: 641px) and (max-width: 1023px) {
  /* tablet: two columns, each step marked on its own hairline */
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 44px; }
  .steps__track { display: none; }
  .step, .step:last-child { padding: 30px 0 0; border-top: 1px solid var(--line-strong); grid-template-rows: auto 1fr; align-items: start; }
  .step__t { margin-top: 4px; }
  .step__dot { top: -8px; }
}

/* =================================================================== TENDER */

.tender { overflow: hidden; }
.tender__mark {
  position: absolute; right: -6vw; bottom: -10vw; width: min(64vw, 900px); height: auto; aspect-ratio: 1812 / 1422; pointer-events: none;
  fill: rgba(242, 238, 231, 0.025); stroke: rgba(207, 161, 114, 0.22); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0;
  transition: stroke-dashoffset 3s var(--ease-in-out);
}
.js .tender:not(.is-drawn) .tender__mark { stroke-dashoffset: 1; }
.tender > .container { position: relative; }
.tender__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; align-items: start; }
.tender__body { grid-column: 1 / span 7; }
.tender__title {
  font-family: var(--font-display); font-stretch: 118%; font-weight: 750;
  font-size: clamp(36px, 5vw, 76px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance;
}
.tender__text { margin-top: 28px; max-width: 580px; color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 19px); }
.tender__points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tender__points li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; }
.tender__points .icon { width: 20px; height: 20px; color: var(--accent-on-dark); }
.tender__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

.req {
  grid-column: 9 / -1; position: relative;
  background: var(--bg); color: #161514; border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  --ink: #161514; --ink-soft: #5B5750; --line: rgba(22, 21, 20, 0.13); --line-strong: rgba(22, 21, 20, 0.3); --accent-text: #8A5F37;
}
.req::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; background: var(--accent); }
.req__head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.req__logo { grid-row: 1 / span 2; width: 44px; height: auto; aspect-ratio: 1812 / 1422; fill: var(--ink); }
.req__title { font-family: var(--font-display); font-stretch: 118%; font-weight: 750; font-size: 22px; letter-spacing: -0.01em; line-height: 1.1; }
.req__tag { color: var(--ink-soft); font-size: 10.5px; }
.req__row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req__row dt { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.req__row dd { font-size: 15.5px; line-height: 1.45; }
.req__row a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s var(--ease-out); }
.req__row a:hover { background-size: 100% 1px; }
/* e-mail and phones: 44px tap targets, stacked without overlapping; the negative margins
   keep the card's rhythm, the underline stays under the text */
.req__links { display: flex; flex-direction: column; align-items: flex-start; }
.req__links br { display: none; }
.req__links a { padding-block: 11px; background-origin: content-box; }
.req__links a:first-of-type { margin-top: -11px; }
.req__links a:last-of-type { margin-bottom: -11px; }
.req__mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.req__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 20px; }
.req .req__copy { color: var(--accent-ink); background: #161514; }
.req__copy .icon { width: 18px; height: 18px; }
.req__copy .icon--check { display: none; }
.req__copy.is-copied .icon--check { display: block; }
.req__copy.is-copied .icon--copy { display: none; }
.req__status { font-size: 14px; color: var(--accent-text); }

@media (max-width: 1023px) {
  .tender__title { font-size: clamp(30px, 8.6vw, 76px); } /* "satınalmalarınızda" must fit 360px */
  .tender__body, .req { grid-column: 1 / -1; }
  .req { max-width: 560px; }
}

/* ================================================================== CONTACT */

.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; align-items: start; }
.contact__info { grid-column: 1 / span 6; }
.contact__text { margin-top: 22px; max-width: 460px; color: var(--ink-soft); }
.contact__promise { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 15.5px; }
.contact__promise .icon { width: 20px; height: 20px; color: var(--accent-text); }
.cinfo { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.cinfo__row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo__k { color: var(--ink-soft); padding-top: 5px; }
.cinfo__v { display: flex; flex-direction: column; align-items: flex-start; }
/* 44px tap targets: the padding makes the hit area, the negative margins on the first and
   last link keep the row's text where it was; the underline stays under the text */
.cinfo__v > a:not(.link-arrow) { padding-block: var(--tap-pad, 9px); background-origin: content-box; }
.cinfo__v > a:first-child { margin-top: calc(var(--tap-pad, 9px) * -1); }
.cinfo__v > a:last-child:not(.link-arrow) { margin-bottom: calc(var(--tap-pad, 9px) * -1); }
.cinfo__big { font-family: var(--font-display); font-stretch: 112%; font-weight: 650; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.01em; line-height: 1.3; transition: color 0.3s; }
.cinfo__big:hover { color: var(--accent-text); }
.cinfo__big { --tap-pad: max(5px, calc(22px - 0.65em)); } /* (44px − its 1.3 line) / 2 */

.form {
  grid-column: 8 / -1; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px;
  background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 36px);
  box-shadow: 0 0 0 1px var(--line);
}
.form__head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 6px; }
.form__title { font-family: var(--font-display); font-stretch: 115%; font-weight: 750; font-size: 22px; letter-spacing: -0.01em; }
.form__hint { font-size: 13px; color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid transparent; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; line-height: 1.4; color: var(--ink);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field__err { font-size: 13.5px; line-height: 1.4; color: #A3361F; }
.field__err[hidden] { display: none; }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #A3361F; }
.select select.is-picked { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(169, 120, 74, 0.22); }
.field input::placeholder, .field textarea::placeholder { color: #6b675f; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form__actions .btn { flex: 1 1 220px; }
.form__submit .icon { width: 20px; height: 20px; }
.form__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-soft); }
.form__sent { grid-column: 1 / -1; display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: rgba(169, 120, 74, 0.12); color: var(--accent-deep); font-size: 15px; }
.form__sent .icon { width: 20px; height: 20px; }
.form.is-sent .form__sent { display: flex; animation: panel-in 0.6s var(--ease-out); }

.map { position: relative; margin: clamp(56px, 7vw, 96px) 0 0; }
.map__canvas { position: relative; height: clamp(320px, 36vw, 480px); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.map__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
}
.map__pin {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 14px rgba(169, 120, 74, 0.1);
  color: var(--accent-text);
}
.map__pin .icon { width: 30px; height: 30px; }
.map__pin::before, .map__pin::after { content: ''; position: absolute; z-index: -1; background: rgba(169, 120, 74, 0.45); }
.map__pin::before { left: -100vw; right: -100vw; top: 50%; height: 1px; }  /* crosshair through the pin */
.map__pin::after { top: -100vh; bottom: -100vh; left: 50%; width: 1px; }
.map__pin { z-index: 0; isolation: isolate; }
.map__load { position: relative; z-index: 1; }
.map.is-loaded .map__ph { display: none; }
.map__frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(0.22) contrast(0.92) brightness(1.02); }
.map__frame[hidden] { display: none; }
.map__card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; }
.map__card > .icon { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
.map__card p { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.map__card b { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.map__card p > span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.4; }

@media (max-width: 1023px) {
  .contact__info, .form { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .form { padding: 22px 14px; }
  .select select { padding-left: 12px; padding-right: 34px; }
  .select::after { right: 14px; }
}
@media (max-width: 640px) {
  .cinfo__row { grid-template-columns: 1fr; gap: 6px; }
  .cinfo__k { padding-top: 0; }
  .map__canvas { height: 340px; }
}

/* =================================================================== FAMILY */

.family { padding: clamp(64px, 8vw, 112px) 0; background: var(--bg-alt); }
.family__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 36px; align-items: start; }
.family__head { grid-column: 1 / span 4; display: flex; gap: 18px; align-items: flex-start; }
.family__mark { width: 52px; height: auto; aspect-ratio: 1812 / 1422; flex: none; fill: var(--accent); margin-top: 4px; }
.family__title { font-family: var(--font-display); font-stretch: 118%; font-weight: 750; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.02; letter-spacing: -0.025em; }
.family__text { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }
.family__list { grid-column: 6 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.fam {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 220px;
  padding: 26px 26px 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line);
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease-out), box-shadow 0.5s;
}
.fam::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translate3d(0, 101%, 0); transition: transform 0.7s var(--ease-out); }
.fam:hover, .fam:focus-visible { color: var(--bg); }
.fam:hover::before, .fam:focus-visible::before { transform: none; }
.fam__name { font-family: var(--font-display); font-stretch: 115%; font-weight: 750; font-size: 21px; letter-spacing: -0.01em; line-height: 1.15; }
.fam__desc { color: var(--ink-soft); font-size: 15.5px; transition: color 0.5s; }
.fam:hover .fam__desc, .fam:focus-visible .fam__desc { color: rgba(242, 238, 231, 0.72); }
.fam__url { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 12px; letter-spacing: 0.08em; }
.fam__url .icon { width: 20px; height: 20px; color: var(--accent); transition: transform 0.5s var(--ease-out); }
.fam:hover .fam__url .icon { transform: translate(3px, -3px); }
.fam:hover .fam__url { border-color: rgba(242, 238, 231, 0.18); }

@media (max-width: 1023px) {
  .family__head, .family__list { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .family__list { grid-template-columns: 1fr; }
  .fam { min-height: 0; }
}

/* =================================================================== FOOTER */

.site-footer { padding: clamp(64px, 8vw, 104px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px var(--col-gap); }
.brand--light { color: var(--on-dark); margin-right: 0; }
.brand--light .brand__mark { fill: var(--on-dark); }
.footer__desc { margin-top: 20px; max-width: 340px; color: var(--on-dark-soft); font-size: 15.5px; }
.footer__motto { margin-top: 18px; font-family: var(--font-display); font-stretch: 118%; font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--accent-on-dark); }
.footer__h { color: var(--on-dark-soft); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.footer__col a, .footer__req li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15.5px; }
.footer__hours { display: flex; align-items: flex-start; gap: 8px; padding-top: 8px; max-width: 280px; color: var(--on-dark-soft); font-size: 14.5px; line-height: 1.45; }
.footer__hours .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--accent-on-dark); }
.footer__req li { color: var(--on-dark-soft); line-height: 1.45; }
.footer__social .icon { width: 18px; height: 18px; color: var(--accent-on-dark); }
.footer__word {
  /* clipped only vertically (the word rises in); the bottom padding keeps the Q tails whole
     and the negative margin gives that room back to the layout */
  margin: calc(clamp(56px, 8vw, 112px) - 0.18em) 0 -0.26em; overflow-x: visible; overflow-y: clip; line-height: 0.9; padding-bottom: 0.36em;
  font-family: var(--font-display); font-stretch: 125%; font-weight: 850;
  font-size: min(9.2vw, 128px); letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 238, 231, 0.3);
}
.footer__word span { display: block; padding-top: 0.3em; transition: transform 1.4s var(--ease-out); }
.js .footer__word[data-reveal] { opacity: 1; transform: none; }
.js .footer__word:not(.is-visible) span { transform: translate3d(0, 100%, 0); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--on-dark-soft); }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); }
.footer__top-link .icon { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.footer__top-link:hover .icon { transform: translateY(-3px); }

@media (max-width: 1023px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ====================================================== FLOATING ACTIONS */

.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
/* tucked over the hero, contact and footer (site.js) — those already show the same actions */
.js .fab:not(.is-ready), .fab.is-tucked { opacity: 0; transform: translate3d(0, 16px, 0); pointer-events: none; }
.fab__btn {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); transition: transform 0.4s var(--ease-out);
}
.fab__btn:hover { transform: translateY(-3px); }
.fab__btn .icon { width: 24px; height: 24px; }
.fab__btn--wa { background: #1F7A4D; color: #fff; }
/* bone with a hairline ring: readable over both light and dark sections */
.fab__btn--call { display: none; background: var(--bg); color: #161514; box-shadow: 0 0 0 1px rgba(22, 21, 20, 0.18), 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.nav-open .fab { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
@media (max-width: 640px) { .fab__btn--call { display: grid; } } /* phones only: tablets rarely place calls */
@media (max-width: 640px) {
  .fab { gap: 8px; }
  .fab__btn { width: 48px; height: 48px; }
  .fab__btn .icon { width: 22px; height: 22px; }
}

/* ================================================================= LIGHTBOX */

.lightbox__count { font-family: var(--font-display); font-stretch: 108%; font-weight: 600; font-size: 12px; letter-spacing: 0.14em; }

/* =========================================================== REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .brand, .site-header__actions, .site-nav__list, .hero__guides span, .hero__meta, .fact, .hero__img { animation: none !important; }
  .hero__media::before { display: none; }
  .site-header .brand__mark { animation: none; stroke-width: 0; fill-opacity: 1; stroke-dashoffset: 0; }
  .dimline__rule, .dimline__tick { transform: none !important; }
  .dimline__label { opacity: 1 !important; }
  .svc-media__img.is-active { animation: none; }
  .draw path, .draw circle { stroke-dashoffset: 0 !important; }
  .draw text { opacity: 1 !important; }
  .stack .mod-b { transform: none !important; opacity: 1 !important; }
  .stack .mod-back { opacity: 0 !important; }
  .motto__mark { stroke-dashoffset: 0; fill-opacity: 1; }
  .tender__mark { stroke-dashoffset: 0; }
  .footer__word span { transform: none !important; }
  .js .about__lede.is-lit-ready .lede-word { opacity: 1; }
  .pulse::after { animation: none; display: none; }
  .site-nav__list a { transform: none !important; }
}
