/* Awinci Architects: static rebuild of the Elementor/Archub homepage.
   Values measured from the live dev site (2026-10-23). */

/* ---------- Fonts (self-hosted Google Fonts, variable) ---------- */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syne"; font-weight: 400 800; font-display: swap; src: url("../fonts/syne-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Syne"; font-weight: 400 800; font-display: swap; src: url("../fonts/syne-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Montserrat Black, digits and "+" only: used for the big project count */
@font-face { font-family: "Montserrat"; font-weight: 900; font-display: swap; src: url("../fonts/montserrat-900-digits.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* One dark family, all on the hue of the page ground (teal-black, ~190deg).
     Steps differ in lightness only, so no two dark surfaces clash. */
  --c-bg-deep: #0c1314;     /* preloader back curtain, deepest step */
  --c-bg: #121b1d;          /* page + footer background */
  --c-bg-raised: #19262a;   /* panels, scrolled header, mobile menu, hover fields */
  --c-bg-high: #223337;     /* raised hover, image placeholders */
  --c-bg-2: var(--c-bg-deep);
  --c-bg-alt: var(--c-bg);  /* inner pages share the homepage ground */
  --c-gold: #ac8c66;        /* the one accent */
  --c-gold-hi: #c4a47c;     /* accent hover */
  --c-white: #f3f6f5;       /* ink, a touch of the ground's hue */
  --c-nav: #e6ecec;
  --c-text: #a3b3b4;        /* running text, teal-tinted grey (7:1 on --c-bg) */
  --c-muted: #93a4a6;
  --c-label: #8a9c9e;
  --c-link: #c3cfd0;
  --c-line: rgba(195, 215, 218, .14);

  --f-head: "Syne", sans-serif;
  --f-body: "Outfit", sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-h: 64px;

  /* Layout: content never wider than 1600px; full-bleed images and sliders ignore it */
  --container: 1600px;
  --gutter: clamp(20px, 4vw, 64px);
}
::selection { background: var(--c-gold); color: var(--c-bg); }
html { scrollbar-color: var(--c-bg-high) var(--c-bg-deep); }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font: 400 16px/1.375 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .3s, opacity .3s; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--f-head); font-weight: 700; color: var(--c-white); }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.preloader__curtain { position: absolute; inset: 0; }
.preloader__curtain--front { background: var(--c-bg); }
.preloader__curtain--back { background: var(--c-bg-2); }
body.is-loaded .preloader { visibility: hidden; transition: visibility 0s 1.2s; }
body.is-loaded .preloader__curtain { transform: translateY(-100%); transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
body.is-loaded .preloader__curtain--back { transition-delay: .215s; }
/* Homepage: logo mark on the front curtain. With home.js running, GSAP owns the exit (.is-gsap). */
.preloader__curtain--front { display: grid; place-items: center; }
.preloader__mark { width: 76px; height: auto; fill: none; stroke: var(--c-gold); stroke-width: .7; }
.preloader.is-gsap, .preloader.is-gsap .preloader__curtain { transition: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; background: var(--c-bg);
  transition: transform .6s var(--ease-out), background-color .4s;
}
/* Scrolling down hides the bar, scrolling up brings it back on the solid ground (main.js) */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto;
  height: var(--header-h);
}
.site-header__logo img { width: auto; height: 22px; }

/* Rolling label: the word slides up and its gold copy follows from below */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll__in { position: relative; display: block; transition: transform .55s var(--ease-out); }
.roll__in::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--c-gold); }
a:hover > .roll .roll__in, a:focus-visible > .roll .roll__in, button:hover > .roll .roll__in { transform: translateY(-100%); }

.nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; }
.nav-toggle__bars { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 20px; }
.nav-toggle__bars span { width: 100%; height: 2px; background: var(--c-white); transition: transform .3s, opacity .3s, width .3s; }
.nav-toggle__bars span:nth-child(2) { width: 75%; }
.nav-toggle__bars span:nth-child(3) { width: 50%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { width: 100%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile/tablet nav: full-height panel under the bar, wipes down; links rise in (main.js).
   Absolute, not fixed: the header carries a transform, which would re-anchor a fixed child. */
.site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
  background: var(--c-bg-raised);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s .7s;
}
.site-nav.is-open { visibility: visible; clip-path: inset(0); transition-delay: 0s; }
.site-nav > ul { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.site-nav li { overflow: hidden; }
.site-nav a {
  display: block; padding: 6px 0;
  font: 700 clamp(34px, 9vw, 60px)/1.1 var(--f-head); letter-spacing: -.02em; color: var(--c-white);
}
.site-nav a[aria-current="page"] { color: var(--c-gold); }
html.nav-open { overflow: hidden; }

/* Desktop header (theme breakpoint 1200px): transparent overlay, fixed; solid once scrolled */
@media (min-width: 1200px) {
  .site-header { position: fixed; left: 0; right: 0; background: transparent; }
  .site-header.is-solid { background: var(--c-bg); }
  .site-header__inner { height: 76px; }
  .site-header__logo img { height: 20px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: block; height: auto; background: none;
    visibility: visible; clip-path: none; transition: none;
  }
  .site-nav > ul { display: flex; width: auto; margin-right: -15px; }
  .site-nav li { overflow: visible; }
  .site-nav a {
    padding: 10px 15px; border: 0;
    font: 400 1.125rem/26px var(--f-body); letter-spacing: 0; color: var(--c-nav);
  }
  .site-nav a[aria-current="page"] { color: var(--c-gold); }
  /* "hover fade inactive": hovering one item dims the others */
  .site-nav > ul:hover a { opacity: .45; }
  .site-nav > ul:hover a:hover { opacity: 1; }
}

/* ---------- Scroll indicator (right sticky bar, desktop only) ---------- */
.scroll-indicator { display: none; }
@media (min-width: 1200px) {
  .scroll-indicator {
    position: fixed; right: 39px; bottom: 90px; z-index: 25;
    display: flex; flex-direction: column; align-items: center; gap: 13px;
    color: var(--c-white); font-size: 13px; font-weight: 500; letter-spacing: .01em;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .scroll-indicator.is-visible { opacity: 1; visibility: visible; }
  .scroll-indicator__text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .scroll-indicator__line { position: relative; width: 2px; height: 70px; border-radius: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
  .scroll-indicator__fill { position: absolute; inset: 0; background: var(--c-white); transform-origin: top; transform: scaleY(0); }
}

/* ---------- Main (lies over the sticky footer) ---------- */
.site-main { position: relative; z-index: 2; background: var(--c-bg); box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .1); }

/* ---------- Homepage ---------- */
:root { --section: clamp(104px, 11vw, 200px); --gap: clamp(16px, 2vw, 32px); --fs-display: clamp(40px, 7.4vw, 132px); }

/* Buttons and links shared by homepage sections */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  height: 58px; padding: 0 30px;
  background: var(--c-gold); color: var(--c-bg);
  font: 600 16px/1 var(--f-body);
  transition: background-color .3s;
}
.btn:hover { background: var(--c-gold-hi); }
.btn svg, .link-arrow svg { width: 16px; height: 16px; flex: none; fill: currentColor; transition: transform .45s var(--ease-out); }
.btn:hover svg, .link-arrow:hover svg { transform: translateX(5px); }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font: 500 17px/1.3 var(--f-body); color: var(--c-white); transition: color .3s; }
.link-arrow:hover { color: var(--c-gold); }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 4px; }

/* Hero: full-bleed slider, headline and controls sit on the 1600px grid */
.work { scroll-margin-top: var(--header-h); }
.hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; overflow: hidden; background: var(--c-bg-deep); touch-action: pan-y; user-select: none; }
.hero__stage { position: absolute; inset: 0; overflow: hidden; }
.hero__track { position: absolute; inset: 0; display: flex; will-change: transform; }
.hero__slide {
  position: relative; flex: 0 0 100%; height: 100%; overflow: hidden;
  margin-right: 120px;               /* the original carousel keeps a gap between cells */
  transition: transform .5s var(--ease-out);
}
/* image is wider than its cell so it can drift against the slide while it moves (home.js) */
.hero__img { position: absolute; top: 0; left: -12%; width: 124%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.hero.is-pressed .hero__slide { transform: scale(.9); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 13, 14, .55) 0%, rgba(8, 13, 14, 0) 26%, rgba(8, 13, 14, 0) 42%, rgba(8, 13, 14, .82) 100%);
}
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 72px); z-index: 2; pointer-events: none; }
.hero__grid { display: grid; gap: 32px; align-items: end; }
.hero__title { font-size: var(--fs-display); line-height: .94; letter-spacing: -.035em; }
.hero__lead { max-width: 36ch; margin: 22px 0 30px; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.5; color: rgba(243, 246, 245, .88); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; pointer-events: auto; }
.hero__aside { display: flex; align-items: center; justify-content: space-between; gap: 24px; pointer-events: auto; }
.hero__counter { display: flex; align-items: center; gap: 16px; color: var(--c-white); font: 500 14px/1 var(--f-body); font-variant-numeric: tabular-nums; }
.hero__progress { position: relative; width: 120px; height: 2px; overflow: hidden; background: rgba(243, 246, 245, .25); }
.hero__progress-fill { position: absolute; inset: 0; background: var(--c-gold); transform-origin: left; transform: scaleX(0); }
.hero__arrows { display: none; gap: 10px; }
.hero__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  color: var(--c-white); box-shadow: inset 0 0 0 1px rgba(243, 246, 245, .45);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.hero__arrow:hover { background: var(--c-white); color: var(--c-bg); box-shadow: none; }
.hero__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (min-width: 1200px) { .hero { height: 100svh; } }
@media (min-width: 768px) {
  .hero__slide { margin-right: 200px; }
  .hero__grid { grid-template-columns: 1fr auto; }
  .hero__aside { flex-direction: column; align-items: flex-end; }
  .hero__arrows { display: flex; }
}

/* Studio intro: portrait beside a statement whose words light up with the scroll */
.statement { padding-block: var(--section); }
.statement__grid { display: grid; gap: 48px; }
.statement__media { position: relative; width: min(72%, 420px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-bg-raised); }
.statement__media img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.statement__text { margin: 0; font: 500 clamp(24px, 2.5vw, 36px)/1.25 var(--f-head); letter-spacing: -.02em; color: var(--c-white); }
.statement__foot { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) {
  .statement__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
  .statement__media { grid-column: 1 / 6; width: auto; }
  .statement__body { grid-column: 7 / 13; padding-bottom: 8px; }
}

/* Realizacje: drifting gold title, filter, zig-zag grid of six (home.js reflows it with Flip) */
.work { padding-bottom: var(--section); overflow-x: clip; }
.work__head { margin-bottom: clamp(40px, 5vw, 88px); }
.work__title { display: inline-block; white-space: nowrap; margin-bottom: .12em; font-size: clamp(40px, 12.5vw, 210px); line-height: .9; letter-spacing: -.04em; color: var(--c-gold); will-change: transform; }
.work__filters { position: relative; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.work__filter { flex: none; padding: 6px 0; font: 500 18px/1.2 var(--f-body); color: var(--c-muted); transition: color .3s; }
.work__filter:hover, .work__filter.is-active { color: var(--c-white); }
.work__indicator { position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--c-gold); }
.work__grid { --row-h: clamp(280px, 31vw, 560px); display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(56px, 6vw, 112px) var(--gap); }
.work-card { grid-column: span 12; }
.work-card[hidden] { display: none; }
.work-card__link { display: block; }
.work-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-raised); }
.work-card__zoom { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.work-card__zoom img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.work-card__link:hover .work-card__zoom { transform: scale(1.06); }
.work-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; }
.work-card__title { font-size: clamp(20px, 1.6vw, 28px); line-height: 1.15; letter-spacing: -.01em; }
.work-card__cat { flex: none; font-size: 16px; color: var(--c-muted); }
.work__more { display: flex; justify-content: center; margin-top: clamp(64px, 7vw, 120px); }
@media (min-width: 768px) {
  .work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
  .work__title { margin-bottom: 0; }
  .work__filters { margin-left: auto; }
  .work-card__media { aspect-ratio: auto; height: var(--row-h); }
  .work-card[data-slot="0"], .work-card[data-slot="3"] { grid-column: span 7; }
  .work-card[data-slot="1"], .work-card[data-slot="2"] { grid-column: span 5; }
  .work-card[data-slot="1"], .work-card[data-slot="3"] { margin-top: clamp(48px, 9vw, 160px); }
}
@media (min-width: 1200px) { .work__filter { font-size: 20px; } .work__filters { gap: 40px; } }

/* Oferta: the six areas as a large list on the raised field; a picture follows the pointer (home.js) */
.offer-home { padding-block: var(--section); background: var(--c-bg-raised); }
.offer-home__grid { display: grid; gap: 48px; }
.offer-home__title { font-size: var(--fs-display); line-height: .9; letter-spacing: -.04em; }
.offer-home__lead { max-width: 32ch; margin: 24px 0 32px; font-size: 18px; line-height: 1.55; color: var(--c-text); }
.offer-line > a {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 24px;
  padding: clamp(20px, 2.2vw, 34px) clamp(0px, 1.6vw, 28px);
  transition: opacity .4s;
}
.offer-line > a::before {
  content: ""; position: absolute; inset: 0; background: var(--c-bg-high);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.offer-line > a > * { position: relative; }
.offer-line__name { font: 700 clamp(28px, 3.3vw, 58px)/1.04 var(--f-head); letter-spacing: -.03em; color: var(--c-white); transition: color .4s, transform .7s var(--ease-out); }
.offer-line__text { grid-column: 1; max-width: 48ch; font-size: 17px; line-height: 1.45; color: var(--c-text); transition: transform .7s var(--ease-out); }
.offer-line__arrow {
  grid-column: 2; grid-row: 1 / span 2;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  color: var(--c-white); box-shadow: inset 0 0 0 1px var(--c-line);
  transition: background-color .4s, color .4s, transform .6s var(--ease-out), box-shadow .4s;
}
.offer-line__arrow svg { width: 16px; height: 16px; fill: currentColor; }
.offer-line__thumb { display: none; }
@media (hover: hover) {
  .offer-list:hover .offer-line > a:not(:hover) { opacity: .4; }
  .offer-line > a:hover::before { transform: scaleY(1); }
  .offer-line > a:hover .offer-line__name { color: var(--c-gold); transform: translateX(14px); }
  .offer-line > a:hover .offer-line__text { transform: translateX(14px); }
  .offer-line > a:hover .offer-line__arrow { background: var(--c-gold); color: var(--c-bg); box-shadow: none; transform: rotate(-45deg); }
}
@media (max-width: 767px) {
  .offer-line > a { grid-template-columns: 1fr 76px; }
  .offer-line__arrow { display: none; }
  .offer-line__thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; }
}
@media (min-width: 1024px) {
  .offer-home__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
  .offer-home__aside { grid-column: 1 / 5; align-self: stretch; }
  .offer-list { grid-column: 6 / 13; margin-top: -12px; }
}
.offer-float { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .offer-float {
    display: block; position: fixed; left: 0; top: 0; z-index: 40;
    width: clamp(240px, 19vw, 330px); aspect-ratio: 4 / 5; margin: calc(clamp(240px, 19vw, 330px) * -.625) 0 0 calc(clamp(240px, 19vw, 330px) * -.5);
    pointer-events: none; visibility: hidden;
  }
  .offer-float__inner { position: absolute; inset: 0; overflow: hidden; background: var(--c-bg-high); }
  .offer-float__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
}

/* Closing scene: the pavilion opens up to full screen while pinned, then the invitation rises (home.js) */
.cta-scene { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--c-bg); }
.cta-scene__media { position: absolute; inset: 0; overflow: hidden; }
.cta-scene__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-scene__shade { position: absolute; inset: 0; background: rgba(8, 13, 14, .5); }
.cta-scene__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.cta-scene__title { max-width: 14ch; font-size: var(--fs-display); line-height: .95; letter-spacing: -.035em; }
.cta-scene__text { max-width: 36ch; margin: 26px 0 38px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: rgba(243, 246, 245, .88); }
.cta-scene__text a { color: var(--c-white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-gold); }
.cta-scene__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.cta-scene__caption { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px); z-index: 2; font-size: 14px; color: rgba(243, 246, 245, .75); text-align: right; }

/* Smooth scroll (desktop): the footer cannot be sticky inside the moving layer, home.js replays the reveal */
.has-smoother .site-footer { position: relative; }

.projects__grid { display: grid; grid-template-columns: 1fr; gap: 0 30px; padding: 0 10px; }

.project-card { margin-bottom: 30px; }
.project-card__link { display: block; }
.project-card__img { position: relative; display: block; height: 340px; margin-bottom: 16px; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.project-card__img::after {         /* hover veil */
  content: ""; position: absolute; inset: 0;
  background: var(--c-white); opacity: 0; transform: scale(1.1);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.project-card__link:hover .project-card__img::after { opacity: .7; transform: scale(1); }
.project-card__link:hover .project-card__img img { transform: scale(1.05); }
.project-card__title { margin-bottom: 4px; font-size: 18px; line-height: 1.2; color: var(--c-white); }
.project-card__cat { display: inline-block; color: var(--c-white); opacity: .5; }
.project-card__cat:hover { opacity: 1; }

@media (min-width: 768px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1025px) {
  .projects__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Projekty page ---------- */
.page-alt, .page-alt .site-main { background: var(--c-bg-alt); }

.gallery { padding: 120px 20px 70px; }
.gallery__title { text-align: center; }
.gallery__title h1 { display: inline-block; margin-bottom: .5em; font-size: 39px; line-height: 1.2; }

.filter { margin-bottom: 50px; }
.filter__tabs { display: none; }
.filter__select { position: relative; }
.filter__select select {
  width: 100%; padding: 8px 24px 8px 0; appearance: none;
  background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0;
  color: rgba(255, 255, 255, .5); font: inherit;
}
.filter__select select option { color: #000; }
.filter__select::after {           /* chevron */
  content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border: solid rgba(255, 255, 255, .5); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.gallery .projects__grid { padding: 0; }
.gallery .project-card[hidden] { display: none; }

@media (min-width: 768px) {
  .gallery__title h1 { font-size: 62px; }
  .gallery .projects__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .filter__select { display: none; }
  .filter__tabs { display: flex; gap: 56px; padding-left: 113px; }   /* offset kept from the original layout */
  .filter__tabs button { font-size: 1.4rem; line-height: 22px; color: rgba(255, 255, 255, .23); transition: color .3s; }
  .filter__tabs button:hover, .filter__tabs button.is-active { color: var(--c-gold); }
  .gallery .projects__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1025px) {
  .gallery__title h1 { font-size: 72px; }
}

/* Studio intro + project count */
.studio { max-width: 1300px; margin: 0 auto; padding: 70px 0 60px; }
.studio__text, .studio__count { padding: 0 10px; }
.studio__text h2 { margin-bottom: .5em; font-size: 33px; line-height: 1.2; }
.studio__text p { margin: 0; }
.studio__count { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.studio__number { margin-bottom: 40px; font-family: "Montserrat", var(--f-head); font-weight: 900; font-size: 144px; line-height: 1.13; color: var(--c-gold); }
.studio__link {
  display: inline-flex; align-items: center; gap: 15px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--c-white);
}
.studio__link svg { width: 6px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s var(--ease-out); }
.studio__link:hover { color: var(--c-gold); }
.studio__link:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .studio { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding: 140px 0 100px; }
  .studio__count { margin-top: 0; }
}
@media (min-width: 1025px) {
  .studio__number { line-height: 1; }
}

/* ---------- Kontakt page ---------- */
.contact { padding: 60px 20px 20px; }
.contact__title { max-width: 970px; margin: 0 auto 19.5px; text-align: center; font-size: 39px; line-height: 1.2; }

.contact-form { max-width: 760px; margin: 0 auto; }
.field { margin-bottom: 25px; }
.field label { display: block; margin-bottom: 5px; font-family: var(--f-head); font-weight: 700; color: var(--c-white); }
.field input[type="text"], .field input[type="email"], .field textarea {
  display: block; width: 100%; padding: 6px 16px;
  background: transparent; border: 1px solid #69727d; border-radius: 0;
  color: var(--c-white); font: 400 16px/1.4 var(--f-body);
  transition: border-color .3s;
}
.field input[type="text"], .field input[type="email"] { height: 47px; }
.field textarea { min-height: 104px; resize: vertical; }
.field ::placeholder { color: rgba(255, 255, 255, .5); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--c-gold); }
.field--check { display: flex; align-items: flex-start; gap: 3px; margin-bottom: 25px; }
.field--check input { margin: 4px 0 0; accent-color: var(--c-gold); }
.field--check label { display: inline; margin: 0; font-family: var(--f-body); font-weight: 400; }
.contact-form__submit {
  display: block; width: 100%; height: 52px; padding: 15px 30px;
  background: var(--c-gold); color: var(--c-white); font-size: 16px; font-weight: 600;
  transition: filter .3s;
}
.contact-form__submit:hover { filter: brightness(1.12); }

.contact-details { max-width: 1300px; margin: 0 auto; padding: 50px 20px 100px; }
.contact-details__item { padding: 12px 10px 0; }
.contact-details__item p { margin: 0 0 7px; font-size: 14px; line-height: 1.21; }
.contact-details__item h2 { margin-bottom: 9px; font-size: 18px; line-height: 1.2; }
.contact-details__item a:hover { color: var(--c-gold); }
.contact-details hr { width: calc(100% - 20px); height: 2px; margin: 30px 10px 20px; border: 0; background: var(--c-white); }

@media (min-width: 768px) {
  .contact { padding: 110px 40px 100px; }
  .contact__title { margin-bottom: 31px; font-size: 62px; }
  .contact-details { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 50px 40px 100px; }
  .contact-details hr { margin: 29px 10px 0; }
}
@media (min-width: 1025px) {
  .contact { padding: 110px 0 20px; }
  .contact__title { margin-bottom: 36px; font-size: 72px; }
  .contact-details { padding-inline: 70px; box-sizing: content-box; }
}

/* ---------- Oferta page ---------- */
.offer-hero { padding: 150px 0 70px; }
.offer-hero h1 { padding: 10px; text-align: center; font-size: 10vw; line-height: 1; }
.char { display: inline-block; }

/* Category strip: 1 / 2 / 3.5 cards in view */
.offer-strip { --cells: 1; position: relative; overflow: hidden; touch-action: pan-y; user-select: none; }
.offer-strip__fulls { position: absolute; inset: 0; }
.offer-strip__full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.offer-strip__full.is-on { opacity: 1; }
.offer-strip__track { position: relative; display: flex; will-change: transform; }
.offer-cell { position: relative; flex: 0 0 calc(100% / var(--cells)); aspect-ratio: 2 / 3; overflow: hidden; border-left: 1px solid rgba(255, 255, 255, .2); }
.offer-cell__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease-out); pointer-events: none; }
.offer-cell::after { content: ""; position: absolute; inset: 0; background: rgba(18, 27, 29, .61); transition: background .6s var(--ease-out); pointer-events: none; }
.offer-cell__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 16px 23px; transition: background .4s, padding .5s var(--ease-out); }
.offer-cell h2 { font-size: 33px; line-height: 1.26; letter-spacing: -.5px; font-weight: 800; transition: color .4s, opacity .4s; }
.offer-cell__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.offer-cell__more p { min-height: 0; margin: 0; overflow: hidden; font-size: 14px; line-height: 22px; color: rgba(0, 0, 0, .59); }
.offer-strip.is-hover .offer-cell__img { opacity: 0; }
.offer-strip.is-hover .offer-cell::after { background: rgba(18, 27, 29, .3); }
.offer-strip.is-hover .offer-cell h2 { opacity: .3; }
.offer-strip .offer-cell:hover .offer-cell__body { padding: 28px 16px 38px; background: var(--c-white); }
.offer-strip .offer-cell:hover h2 { color: var(--c-bg-alt); opacity: 1; }
.offer-strip .offer-cell:hover .offer-cell__more { grid-template-rows: 1fr; }
.offer-strip .offer-cell:hover .offer-cell__more p { margin-top: 16px; }

.offer-strip__nav { position: absolute; top: 24px; left: 16px; z-index: 5; display: flex; gap: 5px; opacity: 1; transition: opacity .4s; }
.offer-strip__btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--c-white); color: #000; }
.offer-strip__btn svg { width: 16px; height: 16px; fill: currentColor; }
@media (min-width: 1025px) {
  .offer-strip__nav { top: 56px; left: 40px; opacity: 0; }
  .offer-strip.is-hover .offer-strip__nav { opacity: 1; }
  .offer-strip__btn { width: 50px; height: 50px; }
}

/* Numbered offer columns */
.offer-row { display: grid; grid-template-columns: 1fr; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.offer-row--second { padding-bottom: 60px; }
.offer-item { padding: 10px; }
.offer-item__num {
  display: block; width: max-content; margin: 0 0 0 auto;
  font: 900 120px/120px var(--f-body); letter-spacing: -1px;
  /* hollow digits: fill matches the page so overlapping glyph contours don't show through the stroke */
  color: var(--c-bg-alt); -webkit-text-stroke: 4px #707070; paint-order: stroke fill;
}
.offer-item h3 { margin-bottom: 24px; font-size: 16px; line-height: 1.2; }
.offer-item:nth-child(2) h3 { margin-bottom: 16px; }
.offer-item p { margin: 0 0 8.5px; font-size: 17px; line-height: 22px; }

@media (min-width: 768px) {
  .offer-hero h1 { font-size: 8vw; }
  .offer-row { grid-template-columns: repeat(3, 1fr); padding: 60px 40px; }
  .offer-row--second { padding-bottom: 60px; }
  .offer-item p { margin-right: 34px; }
}
@media (min-width: 1025px) {
  .offer-hero h1 { font-size: 72px; }
  .offer-row { padding: 100px 0 0; }
  .offer-row--second { padding: 30px 0 100px; }
  .offer-item:nth-child(2) { margin-top: 70px; }
  .offer-item:nth-child(3) { margin-top: 140px; }
  .offer-item__num { height: 131px; writing-mode: vertical-rl; transform: rotate(180deg); }
}

/* Image gallery with counter */
.site-main--tail { padding-bottom: 150px; }
.offer-gallery { padding: 60px 40px; }
.offer-gallery__inner { position: relative; max-width: 1300px; margin: 0 auto; padding: 0 10px 66px; }
.offer-gallery figure { margin: 0; }
.offer-gallery img { width: 100%; }
.offer-gallery__b { position: relative; z-index: 1; margin-top: -42px; }
.offer-gallery__text { margin: 55px 0 0; font-size: 15px; line-height: 1.33; color: rgba(255, 255, 255, .75); }
.offer-gallery__count { display: flex; flex-direction: column; margin-top: 40px; }
.offer-gallery__label { padding-left: 30px; }
.offer-gallery__num { font: 700 150px/165px var(--f-body); color: var(--c-white); }
.offer-gallery__label { font-size: 19px; line-height: 22px; color: var(--c-white); }

@media (min-width: 768px) {
  .offer-gallery__inner { height: 821px; padding: 0; }
  .offer-gallery__inner > * { position: absolute; margin: 0; }
  .offer-gallery__a { top: 10px; right: 10px; width: calc(100% - 123px); }
  .offer-gallery__b { top: 284px; left: 10px; width: 358px; }
  .offer-gallery__text { top: 395px; right: 10px; width: 290px; }
  .offer-gallery__count { top: 517px; left: 388px; flex-direction: row; align-items: center; gap: 29px; }
  .offer-gallery__label { padding-left: 0; }
}
@media (min-width: 1025px) {
  .offer-gallery { padding: 60px 0; }
  .offer-gallery__inner { height: 1303px; }
  .offer-gallery__a { width: calc(100% - 215px); }
  .offer-gallery__b { top: 520px; width: calc(100% - 605px); }
  .offer-gallery__text { top: 698px; width: 401px; }
  .offer-gallery__count { top: 856px; left: 889px; }
}

/* Split sections: parallax image beside the project list */
.split { display: grid; grid-template-columns: 1fr; margin-top: 150px; border-block: 1px solid rgba(255, 255, 255, .15); }
.split__media { position: relative; height: 450px; overflow: hidden; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.split__cover { position: absolute; inset: 0; background: var(--c-bg); transform: scaleY(0); transform-origin: bottom; }
.split__text { display: flex; flex-direction: column; justify-content: center; padding: 10%; }
.split__text h4 { font-size: 28.8px; line-height: 1; }
.split__lists { margin: 60px 0 50px; }
.split__lists li { display: flex; gap: 0; padding-bottom: 12.5px; }
.split__lists li + li, .split__lists ul + ul li:first-child { margin-top: 12.5px; }
.split__lists li::before { content: "+"; flex: 0 0 18px; }
.btn-solid {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; align-self: flex-start;
  min-width: 268px; padding: 13.8px 25.2px; background: var(--c-gold); color: var(--c-white);
  font-size: 12px; font-weight: 600; line-height: 1.8; transition: filter .3s;
}
.btn-solid svg { width: 16px; height: 16px; fill: currentColor; padding-left: 0; transition: transform .3s var(--ease-out); }
.btn-solid::after { content: none; }
.btn-solid:hover { filter: brightness(1.1); }
.btn-solid:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; min-height: calc(50vw * 1.125 + 2px); }
  .split__media { height: auto; }
  .split__lists { display: grid; grid-template-columns: 1fr 1fr; }
  .split__lists ul + ul li:first-child { margin-top: 0; }
  .btn-solid { min-width: 358px; padding: 18.4px 33.6px; font-size: 16px; line-height: 22px; }
}
@media (min-width: 1025px) {
  .split__text { padding: 10% 15%; }
}

/* ---------- O nas page ---------- */
.about-hero { padding: 150px 0 186px; }
.about-hero h1, .mask-slider { width: calc(100% - 20px); margin-inline: auto; }
.about-hero h1 { position: relative; z-index: 1; padding: 0 10px; text-align: center; font-size: 10vw; line-height: 1; }
.about-hero .rotator--plain { color: inherit; max-width: 100%; text-align: center; }
.rotator--plain .rotator__word { white-space: nowrap; }
.rotator--plain .rotator__word:not(.is-active) { width: max-content; max-width: 100%; }
@media (max-width: 767px) { .rotator--plain .rotator__word { white-space: normal; } }

/* Image strips: the next slide wipes up over the previous one */
.mask-slider { position: relative; z-index: 0; isolation: isolate; aspect-ratio: 2 / 1; margin-top: -50px; overflow: hidden; }   /* own stacking context: slide z-indexes stay below the title */
.mask-slide { position: absolute; inset: 0; display: flex; }
.mask-panel { position: relative; flex: 1; overflow: hidden; }
.mask-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.team { padding-top: 60px; margin-bottom: 150px; }
.team__intro { max-width: 600px; margin: 0 auto; padding: 10px 10px 60px; text-align: center; }
.team__intro h2, .testimonials h2 { margin-bottom: 33px; font-size: 33px; line-height: 1.2; }
.team__intro p { margin: 0 0 8px; }
.team__grid { display: grid; grid-template-columns: 1fr; }
.member { position: relative; height: 340px; margin: 0; overflow: hidden; }
.member img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); }
.member figcaption {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 32px;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65));
  opacity: 1; transition: opacity .5s;
}
.member b { display: block; margin-bottom: 8px; font: 700 22px/1.2 var(--f-head); color: var(--c-white); }
.member i { font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .6); }
.member svg { width: 20px; height: 20px; fill: var(--c-white); }
@media (hover: hover) {
  .member figcaption { opacity: 0; }
  .member:hover figcaption { opacity: 1; }
  .member:hover img { transform: scale(1.04); }
}

.svc { display: grid; grid-template-columns: 1fr; max-width: 1300px; margin: 0 auto; }
.svc__list, .svc__text { padding: 10px; }
.svc__list { min-height: 343px; padding-left: 12px; }
.svc__list > div { padding-left: 15px; border-left: 1px solid rgba(255, 255, 255, .25); font: 700 15px/1.533 var(--f-head); color: var(--c-white); }
.svc__list > div + div { margin-top: 93px; }
.svc__text p { margin: 0 0 15px; font-size: 15px; line-height: 1.33; color: var(--c-white); }

.testimonials { padding: 60px 40px; }
.testimonials h2 { padding: 10px 10px 0; text-align: center; }
.testi { max-width: 760px; margin: 0 auto; padding: 0 10px; text-align: center; touch-action: pan-y; user-select: none; }
.testi__track { display: grid; }
.testi__track p { grid-area: 1 / 1; margin: 0; font-size: 18px; line-height: 1.68; color: var(--c-white); opacity: 0; transition: opacity .6s; }
.testi__track p.is-active { opacity: 1; }
.testi__who { color: #99a4a8; }
.testi__nav { display: flex; align-items: center; justify-content: center; gap: 29px; margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .4); cursor: pointer; }
.testi__line { position: relative; width: 200px; height: 1px; background: rgba(255, 255, 255, .2); }
.testi__line i { position: absolute; inset: 0; background: var(--c-white); transform-origin: left; transform: scaleX(.3333); transition: transform .6s var(--ease-out); }
.testi__cur { color: var(--c-white); }

.clients { padding: 60px 0; }
.clients__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; max-width: 1300px; margin: 0 auto; }
.clients__label { grid-column: 1 / -1; align-self: center; height: 66px; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; line-height: 1.2; letter-spacing: 1px; text-transform: uppercase; }
.client { display: flex; align-items: center; justify-content: center; margin: 0 -1px -1px 0; border: 1px solid transparent; transition: border-color 1.4s var(--ease-out); }
.client img { height: auto; opacity: .4; transition: opacity .4s; }
.client:hover img { opacity: 1; }
.clients__grid.is-in .client { border-color: rgba(255, 255, 255, .1); }

.domy { padding: 60px 20px; }
.domy__top { position: relative; height: 302px; }
.domy__imgs { position: absolute; top: 0; left: 50%; width: min(100%, 460px); height: 270px; transform: translateX(-50%); }
.domy__imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s; }
.domy__imgs img.is-active { opacity: 1; }
.domy__titles { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.domy__track { display: flex; will-change: transform; }
.domy__title {
  flex: 0 0 var(--cell, 300px); margin: 0; padding: 0 calc(var(--cell, 300px) * .14); text-align: center;   /* px, not %: a % padding would resolve against the whole sliding track */
  font: 800 48px/41.6px var(--f-head);
  color: var(--c-bg-alt); -webkit-text-stroke: 3px rgba(255, 255, 255, .45); paint-order: stroke fill;
  transition: color .5s, -webkit-text-stroke-color .5s;
}
.domy__title.is-active { color: var(--c-white); -webkit-text-stroke-color: transparent; }
.domy__descs { display: grid; max-width: 450px; margin: 64px auto 0; text-align: center; }
.domy__desc { grid-area: 1 / 1; opacity: 0; transition: opacity .6s; }
.domy__desc.is-active { opacity: 1; }
.domy__desc h4 { margin-bottom: 24px; font-size: 21px; line-height: 1.2; }
.domy__desc p { margin: 0; }

@media (min-width: 768px) {
  .about-hero { padding-bottom: 150px; }
  .about-hero h1 { font-size: 7.5vw; padding: 0; }
  .about-hero h1, .mask-slider { width: calc(100% - 40px); }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc__list { padding-left: 70px; }
  .svc__list, .svc__text { padding-top: 10px; }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .clients__label { grid-column: auto; justify-content: flex-start; height: auto; padding: 0 0 0 57px; align-self: start; padding-top: 33px; }
  .client:nth-of-type(3), .client:nth-of-type(7) { grid-column-start: 1; }
  .domy { padding: 60px 40px; }
  .domy__top { height: 387px; }
  .domy__imgs { height: 354px; }
  .domy__descs { max-width: none; }
}
@media (min-width: 1025px) {
  .about-hero { padding-bottom: 86px; }
  .about-hero h1, .mask-slider { width: 1260px; max-width: calc(100% - 40px); }
  .about-hero h1 { font-size: 72px; }
  .team__grid { grid-template-columns: repeat(4, 1fr); }
  .svc { padding: 50px 0 40px; margin-bottom: 50px; }
  .svc__list { padding-left: 110px; }
  .testimonials { padding: 60px 0 150px; }
  .clients { padding: 60px 0 78px; }
  .clients__grid { grid-auto-rows: 238px; }
  .clients__label { padding-left: 60px; }
  .domy { padding: 60px 0 80px; }
  .domy__descs { max-width: 450px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 1;
  background: var(--c-bg) url("../img/awinci-logo-stroke-1.svg") 115% 110% / 200px auto no-repeat;
  color: var(--c-muted);
  padding: 70px 0;
}
.site-footer__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; gap: 30px; }
.site-footer__main, .site-footer__side { padding: 0 10px; }

.site-footer__title { margin-bottom: 1.5em; font-size: 31px; line-height: 37px; letter-spacing: .31px; }
.site-footer__lead { margin: 0; font-size: 18px; line-height: 28px; }

.site-footer__contact { display: grid; gap: 19px; margin: 70px 0 0; }
.site-footer__contact dt, .site-footer__col h5 {
  margin-bottom: .6em;
  font-family: var(--f-head); font-size: 11px; font-weight: 700; line-height: 2;
  letter-spacing: 1.35px; text-transform: uppercase; color: var(--c-label);
}
.site-footer__contact dd { margin: 0; font-size: 18px; color: var(--c-white); }
.site-footer__contact a:hover { color: var(--c-gold); }

.site-footer__side { display: grid; grid-template-columns: 1fr 1fr; }
.site-footer__col h5 { margin-bottom: 3em; color: var(--c-white); }
.site-footer__side { margin-top: 30px; }
@media (min-width: 1025px) { .site-footer__side { margin-top: 0; } }
.site-footer__col li + li { margin-top: 16px; }
.site-footer__col a { color: var(--c-link); }
.site-footer__col a:hover { color: var(--c-white); }

/* Rotating keyword: 3D flip, see main.js */
.rotator { position: relative; display: inline-block; vertical-align: top; color: var(--c-gold); perspective: 300px; transition: width .6s var(--ease-out); }
/* Clip the flip (with room to move): mid-rotation the perspective projection balloons and made mobile browsers jump the scroll */
.rotator { overflow: clip; overflow-clip-margin: 1.5em; }
.rotator__word { display: inline-block; white-space: nowrap; transform-origin: 50% 50% -.5em; backface-visibility: hidden; }
.rotator__word:not(.is-active) { position: absolute; left: 0; top: 0; opacity: 0; }

@media (min-width: 768px) {
  .site-footer { padding: 110px 0 115px; background-position: 110% 130%; background-size: 15% auto; }
  .site-footer__lead { margin-right: 7em; }
  .site-footer__contact { grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 70px; }
  .site-footer__contact dt { margin-bottom: 1.5em; }
}
@media (min-width: 1025px) {
  .site-footer { padding: 110px 0 125px; background-position: 100% 100%; }
  .site-footer__inner { grid-template-columns: 65% 35%; gap: 0; }
}
/* Reveal effect: the footer sits under the content and is uncovered by scrolling */
@media (min-width: 1200px) {
  .site-footer { position: sticky; bottom: 0; }
}

/* ---------- Custom cursor (fine pointer only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1200px) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
  .cursor > * { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 7px; height: 7px; margin: -3.5px; background: var(--c-white); opacity: .9; }
  .cursor__ring { width: 35px; height: 35px; margin: -17.5px; border: 1px solid rgba(255, 255, 255, .5); transition: opacity .3s, width .3s, height .3s, margin .3s; }
  /* labels: GSAP moves .cursor__label, the bubble inside does the grow/fade (GSAP would swallow a CSS scale) */
  .cursor__label { width: 0; height: 0; border-radius: 0; }
  .cursor__bubble {
    position: absolute; left: 50%; top: 50%;
    display: flex; align-items: center; justify-content: center;
    width: 86px; height: 86px; border-radius: 50%;
    background: var(--c-white); color: #000; font-size: 14px; font-weight: 500;
    opacity: 0; transform: translate(-50%, -50%) scale(.4);
    transition: opacity .3s, transform .4s var(--ease-out);
  }
  .cursor__label--drag .cursor__bubble { width: 120px; height: 120px; font-size: 15px; }
  /* drag label: arrows sit just outside the circle */
  .cursor__bubble svg { position: absolute; top: 50%; width: 6px; height: 10px; margin-top: -5px; fill: none; stroke: var(--c-white); stroke-width: 1.5; }
  .cursor__bubble svg:first-child { left: -16px; }
  .cursor__bubble svg:last-child { right: -16px; }
  .cursor.is-explore .cursor__label--explore .cursor__bubble,
  .cursor.is-drag .cursor__label--drag .cursor__bubble { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .cursor.is-explore .cursor__ring, .cursor.is-drag .cursor__ring,
  .cursor.is-explore .cursor__dot, .cursor.is-drag .cursor__dot { opacity: 0; }
  /* the custom labels replace the system cursor */
  .hero, [data-cursor] { cursor: none; }
  .hero__arrow, .offer-strip__btn, .hero a { cursor: pointer; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Strip: cards in view */
@media (min-width: 768px) { .offer-strip { --cells: 2; } }
@media (min-width: 1025px) { .offer-strip { --cells: 3.5; } }
