/*
 * site.css — the single entry point. build.js inlines every @import below
 * into dist/css/site.css, in this order. Keep the order: tokens first,
 * then base, then components, then page-specific rules.
 */

/* 1. Design tokens: colours, fonts, spacing, breakpoints */

/* ---- tokens.css ---- */
/*
 * Design tokens. Change a value here and it changes everywhere.
 *
 * Breakpoints (same as the original Framer site):
 *   desktop  >= 1200px   (default values below)
 *   tablet   810–1199px  (@media (max-width: 1199px))
 *   phone    <  810px    (@media (max-width: 809px))
 */
:root {
  /* colours */
  --color-bg: #000000;
  --color-fg: #e6e6e6;
  --color-fg-80: rgba(230, 230, 230, 0.8);
  --color-fg-60: rgba(230, 230, 230, 0.6);
  --color-fg-50: rgba(230, 230, 230, 0.5);
  --color-fg-40: rgba(230, 230, 230, 0.4);
  --color-fg-10: rgba(230, 230, 230, 0.1);
  --color-fg-05: rgba(230, 230, 230, 0.05);
  --color-line: rgba(230, 230, 230, 0.1);
  --color-link: #0099ff;

  /* fonts */
  --font-sans: "Inter", "Inter Placeholder", sans-serif;
  --font-display: "Inter Display", "Inter Display Placeholder", sans-serif;

  /* layout */
  --page-pad: 20px;        /* left/right page margin */
  --header-pad-top: 20px;
  --logo-size: 60px;
  --max-width: none;       /* the design is fluid; set e.g. 1920px to cap it on huge screens */

  /* type scale — desktop */
  --fs-display: 140px;     /* page titles (About hero, Projects, Contacts, project title) */
  --lh-display: 0.9;
  --ls-display: -0.08em;

  --fs-h2: 75px;           /* section titles (Services, FAQ, Our Story, Team, See Projects →) */
  --lh-h2: 0.8;
  --ls-h2: -0.06em;

  --fs-h3: 42px;           /* sub-titles (footer brand, project caption, About Us) */
  --lh-h3: 1.1;
  --ls-h3: -0.03em;

  --fs-lead: 28px;         /* large paragraph */
  --lh-lead: 1.3;
  --ls-lead: -0.02em;

  --fs-body-lg: 24px;      /* FAQ questions, subtitles, team names */
  --lh-body-lg: 1.3;

  --fs-body: 20px;         /* default text, nav, meta */
  --lh-body: 1.1;
  --lh-paragraph: 1.4;
  --ls-body: 0;

  --fs-label: 20px;        /* "( See Projects )" style labels */
  --lh-label: 1.2;
  --ls-label: -0.02em;

  --fs-filter: 22px;       /* category filter */
  --ls-filter: -0.01em;

  --fs-counter: 120px;     /* big numbers in the stats grid */
  --ls-counter: -0.08em;

  --fs-small: 16px;        /* form labels */

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.05);   /* close to the original's 0.4s spring, bounce 0.2 */
  --duration: 0.4s;
}

@media (max-width: 1199px) {
  :root {
    --page-pad: 16px;
    --header-pad-top: 15px;
    --fs-display: 120px;
    --fs-h2: 60px;
    --fs-h3: 36px;
    --fs-lead: 26px;
    --fs-body-lg: 22px;
    --fs-body: 18px;
    --fs-label: 18px;
    --ls-label: 0;
    --fs-filter: 18px;
    --ls-filter: 0.01em;
    --fs-counter: 100px;
  }
}

@media (max-width: 809px) {
  :root {
    --page-pad: 12px;
    --header-pad-top: 11px;
    --fs-display: 50px;
    --fs-h2: 38px;
    --fs-h3: 28px;
    --fs-lead: 20px;
    --lh-lead: 1.2;
    --ls-lead: -0.01em;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --lh-body: 1.2;
    --lh-paragraph: 1.5;
    --ls-body: 0.01em;
    --fs-label: 17px;
    --lh-label: 1.1;
    --ls-label: 0.01em;
    --fs-filter: 18px;
    --fs-counter: 80px;
  }
}


/* ---- fonts.css ---- */
/*
 * Self-hosted fonts (src/assets/fonts/). Split by script so a visitor only
 * downloads the subsets they need. Inter Display is used for the big hero
 * word mark only; Inter for everything else.
 */

/* ---- Inter Display 500 ---- */
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-display-500-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: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-display-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-display-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Display"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-display-500-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---- Inter 400 / 500 / 600 / 700 ---- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400-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: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500-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: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter-500-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600-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: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter-600-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-700-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: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-700-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/inter-700-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }


/* 2. Resets + element defaults + typography helpers */

/* ---- base.css ---- */
/* Reset + element defaults */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;                 /* only a fallback: with JS, Lenis does the scrolling (motion.css §5) */
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--color-line); margin: 0; }

:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 3px; }

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  /* the header floats on top of the page, each first section leaves room for it */
}

.skip-link {
  position: absolute; left: var(--page-pad); top: -100px; z-index: 100;
  padding: 8px 12px; background: var(--color-fg); color: var(--color-bg); border-radius: 4px;
}
.skip-link:focus { top: var(--page-pad); }



/* ---- typography.css ---- */
/*
 * Typography helpers. The page styles use these classes (or the same variables)
 * so every heading on the site shares one definition.
 */

.text-display,
.page-head__title,
.about-hero__title,
.project-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 500;
}

.text-h2,
.services__title, .faq__title, .story__title, .team__title, .cta__link, .contact-direct__big {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 500;
}

.text-h3,
.site-footer__brand, .project-info__caption, .about-us__title, .rich-text h3, .page-head__count {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  font-weight: 500;
}

.text-lead,
.hero__subtitle, .intro__lead, .story__lead, .stat__label, .project-meta dd, .project-hero__year {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
  font-weight: 500;
}

.text-body-lg,
.page-head__subtitle, .faq__question, .team-card__name, .about-us__lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  letter-spacing: 0;
  font-weight: 500;
}

/* "( See Projects )" style labels */
.label,
.label-link,
.services__all, .project-hero__back, .scroll-top, .team__hint, .story__since, .contact-direct__city {
  font-size: var(--fs-label);
  line-height: var(--lh-label);
  letter-spacing: var(--ls-label);
  font-weight: 600;
}

.label-link { display: inline-block; }

.text-muted { color: var(--color-fg-60); }

/* paragraphs inside text columns */
.paragraph,
.intro__small, .story__text, .about-us__para, .faq__answer p, .rich-text p, .rich-text li, .contact-direct__hours {
  line-height: var(--lh-paragraph);
}

/* Rich text coming from Markdown (project pages) */
.rich-text > * + * { margin-top: 20px; }
.rich-text h3 { color: var(--color-fg); }
.rich-text h3 + * { margin-top: 22px; }
.rich-text h4 { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
.rich-text p, .rich-text li { color: var(--color-fg-60); }
.rich-text strong { color: var(--color-fg); font-weight: 500; }
.rich-text ul { padding-left: 1.2em; list-style: disc; }
.rich-text ol { padding-left: 1.2em; list-style: decimal; }
.rich-text li + li { margin-top: 6px; }
.rich-text a { color: var(--color-link); text-decoration: underline; }


/* 3. Shared components (used on several pages) */

/* ---- components/header.css ---- */
/*
 * Site header — floats over the top of every page.
 * Desktop/tablet: brand left, logo centred, three stacked links right.
 * Phone: brand left, logo centred, "Menu" button that opens a drop-down.
 */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--header-pad-top) var(--page-pad) 0;
  pointer-events: none;            /* only the children catch clicks */
}
.site-header > * { pointer-events: auto; }

.site-header__brand {
  font-weight: 500;
  line-height: var(--lh-body);
}
.site-header__menu { letter-spacing: var(--ls-body); }

.site-header__logo {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
}
.site-header__logo img { width: var(--logo-size); height: var(--logo-size); }

.site-header__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.site-header__links a {
  display: inline-block;
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease-out);
}
/* on the home page nothing is "current", so all links are fully visible */
.site-header__nav--home .site-header__links a,
.site-header__links a.is-active,
.site-header__links a:hover { opacity: 1; }

.site-header__menu { display: none; }

@media (max-width: 809px) {
  .site-header__logo { top: 20px; }
  .site-header__nav {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 70px var(--page-pad) 28px;
    background: rgba(0, 0, 0, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    clip-path: inset(0 0 100% 0);
    transition: clip-path var(--duration) var(--ease-out);
  }
  .site-header.is-open .site-header__nav { clip-path: inset(0 0 0 0); }
  .site-header__links { align-items: flex-end; gap: 14px; }
  .site-header__links a { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--ls-h3); }
  .site-header__menu { display: block; position: relative; z-index: 1; line-height: var(--lh-body); }
}


/* ---- components/footer.css ---- */
/*
 * Footer: brand + "Scroll to Top" row, a hairline, then company / social / nav.
 */
.site-footer {
  padding: 0 var(--page-pad) 20px;
  margin-top: 140px;
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-line);
}

.scroll-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity var(--duration) var(--ease-out);
}
.scroll-top:hover { opacity: 0.6; }
.scroll-top__icon { width: 24px; height: 24px; }

.site-footer__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  padding-top: 20px;
}
.site-footer__company { grid-column: 1 / 3; }
.site-footer__copy { color: var(--color-fg-60); }

.site-footer__social, .site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.site-footer__social a, .site-footer__nav a { transition: opacity var(--duration) var(--ease-out); }
.site-footer__social a:hover, .site-footer__nav a:hover { opacity: 0.6; }

@media (max-width: 1199px) { .site-footer { margin-top: 115px; } }

@media (max-width: 809px) {
  .site-footer { margin-top: 93px; }
  .site-footer__brand { display: inline-block; max-width: 160px; }
  .site-footer__top { padding-bottom: 10px; }
  .site-footer__bottom { padding-top: 10px; }        /* "atmosphere / fx" wraps, like the original */
  .site-footer__bottom { grid-template-columns: 1fr; }
  .site-footer__company, .site-footer__nav { display: none; }
  .site-footer__social { flex-direction: row; justify-content: space-between; align-items: center; }
}


/* ---- components/buttons.css ---- */
/* Solid button (contact form) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  height: 60px;
  padding: 0 32px;
  border-radius: 10px;
  background: var(--color-fg);
  color: var(--color-bg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  font-weight: 500;
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}
.button:hover { opacity: 0.9; }
.button:disabled { color: rgba(0, 0, 0, 0.5); cursor: default; }
.button:disabled:hover { opacity: 1; }

@media (max-width: 809px) {
  .button { width: 100%; min-width: 0; }
}

/* Generic inline icon */
.icon { width: 24px; height: 24px; flex: none; }


/* ---- components/ticker.css ---- */
/*
 * Ticker — an endless horizontal strip of project covers (home + about).
 * The JS duplicates the items so the loop is seamless and sets --ticker-distance.
 * Without JS it is simply a scrollable row.
 */
.ticker {
  overflow: hidden;
  margin-top: 224px;
}
.ticker__track {
  display: flex;
  gap: 1px;
  width: max-content;
  will-change: transform;
}
.ticker.is-animated .ticker__track {
  animation: ticker-scroll var(--ticker-duration, 60s) linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: block;
  width: 230px;
  height: 307px;
  flex: none;
  overflow: hidden;
  background: var(--color-fg-05);
}
.ticker__item img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--ticker-distance, 50%)), 0, 0); }
}

@media (max-width: 1199px) { .ticker { margin-top: 184px; } }
@media (max-width: 809px) {
  .ticker { margin-top: 152px; }
  .ticker__item { width: 120px; height: 160px; }
}


/* ---- components/page-head.css ---- */
/*
 * Centred page header used by Projects and Contacts:
 * big title (+ optional count), subtitle below.
 */
.page-head {
  padding: 160px var(--page-pad) 0;
  text-align: center;
}
.page-head__title {
  position: relative;
  display: inline-block;
}
.page-head__count {
  display: inline-block;         /* sits in the line, so the title + count are centred together */
  vertical-align: top;
  margin: -4px 0 0 10px;
  white-space: nowrap;
  color: var(--color-fg-60);
}
.page-head__subtitle {
  max-width: 680px;
  margin: 30px auto 0;
}

@media (max-width: 1199px) {
  .page-head { padding-top: 153px; }
}
@media (max-width: 809px) {
  .page-head { padding-top: 157px; }
  .page-head__subtitle { margin-top: 24px; }
}


/* ---- components/cta.css ---- */
/* Big "See Projects →" link at the end of a page */
.cta {
  padding: 0 var(--page-pad);
  margin-top: 119px;
}
.cta--half { padding-left: 50%; }
.cta--right { text-align: right; }

.cta__link {
  display: inline-block;
}

@media (max-width: 1199px) { .cta { margin-top: 100px; } }
@media (max-width: 809px) {
  .cta { margin-top: 80px; }
  .cta--half { padding-left: var(--page-pad); text-align: right; }
}


/* ---- components/video.css ---- */
/*
 * Lite YouTube embed: shows the poster + play button, loads the iframe on click.
 */
.video {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  background: var(--color-fg-05);
}
.video__poster {
  width: 100%; height: 100%;
  object-fit: cover;
}
.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  transition: opacity var(--duration) var(--ease-out);
}
.video__play svg { width: 68px; height: 48px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); transition: transform var(--duration) var(--ease-out); }
.video__play:hover svg { transform: scale(1.06); }
.video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

@media (max-width: 1199px) { .video { height: 440px; } }
@media (max-width: 809px) { .video { height: auto; aspect-ratio: 16 / 9; } }


/* ---- components/forms.css ---- */
/* Form fields (contact page): label on top, text on a hairline, no boxes */
.field { display: flex; flex-direction: column; }
.field + .field { margin-top: 38px; }

.field__label {
  font-size: var(--fs-small);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 10px;
}

.field__input {
  width: 100%;
  height: 60px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 var(--color-fg-10);
  outline: 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  transition: box-shadow var(--duration) var(--ease-out);
}
.field__input::placeholder { color: var(--color-fg-60); }
.field__input:focus { box-shadow: inset 0 -1px 0 var(--color-fg-60); }
.field__input--area { height: 100px; margin-top: 9px; padding: 18px 0 12px; resize: vertical; }

.contact-form__status { margin-top: 20px; min-height: 1.4em; line-height: var(--lh-paragraph); color: var(--color-fg-60); }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { color: #ff6b6b; }


/* 4. One file per page */

/* ---- pages/home.css ---- */
/* ============================================================ HERO */
.hero {
  padding-top: 186px;           /* header floats on top; title lands where it did on the original */
}

/* Fluid word mark: fills the page width minus the margins on every screen size */
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: calc((100vw - 2 * var(--page-pad)) * 0.1308 * 0.8);   /* 0.1308 fills the width edge to edge; × 0.8 leaves room on the sides */
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  padding: 0 var(--page-pad);
}

.hero__subtitle {
  max-width: 460px;             /* breaks after "for" on desktop; one line on tablets */
  margin: 42px auto 0;
  text-align: center;
}

.hero__cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 0 var(--page-pad);
  margin-top: 108px;
}
.hero__cta .label-link { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); font-weight: 500; }
.hero__cycle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
}

.hero-gallery {
  display: grid;
  overflow-x: clip;               /* pictures sliding in from the right never widen the page */
  --hero-cols: 3;                 /* pictures per set; site.js reads this */
  grid-template-columns: repeat(var(--hero-cols), 1fr);
  gap: 3px;
  margin-top: 14px;
}
.hero-gallery__item {
  display: none;                 /* JS shows --hero-cols at a time and rotates them; see heroGallery() in site.js */
  grid-row: 1;                   /* a new picture lands on top of the old one in the same slot */
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-fg-05);
}
.hero-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-gallery__item.is-current { display: block; }

/* Big screens (2K and up): more pictures per set. Try 5 here if you like. */
@media (min-width: 2000px) {
  .hero-gallery { --hero-cols: 4; }
}

/* ============================================================ INTRO */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--page-pad);
  margin-top: 80px;
}
.intro__small { max-width: 20.2em; }
.intro__lead { max-width: 16.8em; }

/* ============================================================ SERVICES */
.services {
  padding: 0 var(--page-pad);
  margin-top: 200px;
}
.services__title {
  padding-left: 50%;
  margin-bottom: 125px;
}
.services__list {
  counter-reset: service;
  border-bottom: 1px solid var(--color-line);
}
.services__item { border-top: 1px solid var(--color-line); }
.services__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  height: 139px;               /* + 1px top border = 140px rows */
}
.services__number { margin-top: 12px; }
.services__label {
  grid-column: 2; grid-row: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 2px;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}
.services__icon { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; display: flex; }
.services__link { transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1); }   /* hover: the row gives way to the category preview (motion.css) */
.services__all { text-align: right; margin-top: -5px; }
.services__all .label-link { font-size: var(--fs-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); font-weight: 500; }

/* ============================================================ STATS */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--page-pad);
  margin-top: 181px;
}
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  height: 540px;
  padding: 20px 55px 60px 20px;
  text-align: right;
}
.stat--strong { background: var(--color-fg-10); }
.stat--soft { background: var(--color-fg-05); }
.stat--inverted { background: var(--color-fg); color: var(--color-bg); }

.stat__link {
  position: absolute;
  top: 20px; left: 20px;
}

.stat__value {
  font-size: var(--fs-counter);
  line-height: 1;
  letter-spacing: var(--ls-counter);
  font-weight: 500;
  white-space: nowrap;
}
.stat__label {
  margin-top: 20px;              /* line breaks come from the content (<br>) */
  font-size: var(--fs-body);
  line-height: var(--lh-paragraph);
  letter-spacing: var(--ls-body);
}

/* ============================================================ FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0 var(--page-pad);
  margin-top: 224px;
}
.faq__title { margin-top: 14px; }   /* the heading sits a little below the first question's top */
.faq__list { margin-top: 2px; }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 25px 0;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question > span:first-child { max-width: 540px; }

.faq__plus {
  position: relative;
  flex: none;
  width: 20px; height: 20px;
  margin-top: 6px;
  transition: transform var(--duration) var(--ease-out);
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  border-radius: 10px;
  transform: translate(-50%, -50%);
}
.faq__plus::before { width: 16px; height: 2px; }
.faq__plus::after { width: 2px; height: 16px; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }

.faq__answer {
  max-width: 760px;
  padding: 0 0 25px;
  color: var(--color-fg-60);
}

/* ============================================================ TABLET */
@media (max-width: 1199px) {
  .hero { padding-top: 144px; }
  .hero__subtitle { margin-top: 44px; }
  .hero__cta { margin-top: 152px; }
  .hero__subtitle { max-width: none; padding: 0 var(--page-pad); }
  .hero__cycle { width: 50px; height: 50px; }
  .hero-gallery { gap: 4px; margin-top: 15px; }
  .intro { margin-top: 152px; }
  .services { margin-top: 162px; }
  .services__title { margin-bottom: 97px; }
  .services__link { height: 119px; }
  .services__all { margin-top: 5px; }
  .stats { padding: 0; margin-top: 200px; }
  .stat { height: 440px; padding: 16px 40px 40px 16px; }
  .stat__link { top: 16px; left: 16px; }
  .faq { grid-template-columns: 1fr; margin-top: 197px; }
  .faq__title { margin-top: 0; }
  .faq__question > span:first-child { max-width: none; }
  .faq__list { margin-top: 48px; }
}

/* ============================================================ PHONE */
@media (max-width: 809px) {
  .hero { padding-top: 202px; }
  .hero__subtitle { margin-top: 40px; }
  .hero__cta { margin-top: 291px; }
  .hero__cycle { width: 24px; height: 24px; }
  .hero-gallery { --hero-cols: 1; margin-top: 21px; }
  .hero-gallery__item { aspect-ratio: 1 / 1; }

  .intro { grid-template-columns: 1fr; gap: 43px; margin-top: 174px; }
  .intro__small, .intro__lead { max-width: none; }
  .services { margin-top: 120px; }
  .services__title { padding-left: 0; }
  .services__number { margin-top: 8px; }
  .services__all { margin-top: -12px; }
  .services__title { margin-bottom: 83px; }
  .services__link { height: 119px; }

  .stats { grid-template-columns: 1fr; gap: 12px; padding: 0; margin-top: 160px; }
  .stat { height: 300px; padding: 12px 12px 30px; }
  .stat__link { top: 12px; left: 12px; }
  .stat__value { line-height: 1; }
  .stat__label { margin-top: 10px; }

  .faq { grid-template-columns: 1fr; margin-top: 160px; }
  .faq__question { letter-spacing: 0; line-height: 1.2; }
  .faq__list { margin-top: 34px; }
  .faq__question > span:first-child { max-width: 262px; }
  .faq__question { padding: 17px 0; gap: 16px; }
  .faq__plus { margin-top: 2px; }
  .faq__answer { padding-bottom: 17px; }
}


/* ---- pages/about.css ---- */
/* ============================================================ HERO */
.about-hero {
  position: relative;
  height: 900px;
  max-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--page-pad) 60px;
  overflow: hidden;
}
.about-hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-hero__title { position: relative; }

/* ============================================================ CLIENT LOGOS (slow ticker) */
.logos {
  overflow: hidden;
  margin-top: 45px;
  padding: 0 var(--page-pad);
}
.logos__track {
  display: flex;
  align-items: center;
  gap: 180px;
  width: max-content;
}
.logos.is-animated .logos__track { animation: ticker-scroll var(--ticker-duration, 40s) linear infinite; }
.logos__item { flex: none; height: auto; }

/* ============================================================ OUR STORY */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--page-pad);
  margin-top: 143px;
}
.story__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.story__right {
  border-left: 1px solid var(--color-line);
  padding: 0 0 0 60px;
}
.story__text { margin-top: 41px; }

/* ============================================================ TEAM */
.team { margin-top: 239px; }
.team__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--page-pad);
  margin-bottom: 61px;
}
.team__hint { display: none; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.team-card__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-bg);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { margin: 12px var(--page-pad) 0; }
.team-card__role { margin: 0 var(--page-pad); }

/* ============================================================ ABOUT US */
.about-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--page-pad);
  margin-top: 239px;
}
.about-us__text { max-width: 600px; }
.about-us__lead { max-width: 560px; }
.about-us__para { max-width: 560px; margin-top: 40px; }
.about-us__para + .about-us__para { max-width: 600px; }
.about-us__title { text-align: right; }

.page--about .ticker { margin-top: 224px; }

/* ============================================================ TABLET */
@media (max-width: 1199px) {
  .story { margin-top: 120px; }
  .story__right { padding: 30px 24px 0 40px; }
  .story__lead br, .story__text br { display: none; }   /* hand-placed desktop line breaks */
  .team { margin-top: 200px; }
  .about-us { margin-top: 200px; }
  .about-us__text, .about-us__lead, .about-us__para, .about-us__para + .about-us__para { max-width: 420px; }
}

/* ============================================================ TABLET + PHONE: team scrolls sideways */
@media (max-width: 1199px) {
  .team__hint { display: block; }
  .team__grid {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .team__grid::-webkit-scrollbar { display: none; }
  .team-card { flex: none; width: 431px; scroll-snap-align: start; }
}

/* ============================================================ PHONE */
@media (max-width: 809px) {
  .about-hero { height: 744px; padding-bottom: 40px; }
  .logos { margin-top: 40px; }
  .logos__track { gap: 80px; }
  .logos__item { max-height: 36px; width: auto; }

  .story { grid-template-columns: 1fr; margin-top: 80px; }
  .story__left { display: block; }
  .story__since { margin-top: 20px; }
  .story__right { border-left: 0; padding: 0; margin-top: 40px; }
  .story__lead, .story__text { max-width: none; }
  .story__text { margin-top: 22px; }

  .team { margin-top: 150px; }
  .team__head { margin-bottom: 36px; }
  .team__grid { gap: 12px; padding: 0 var(--page-pad); scroll-padding: 0 var(--page-pad); }
  .team-card { width: 219px; }
  .team-card__name, .team-card__role { margin-left: 0; margin-right: 0; }

  .about-us { grid-template-columns: 1fr; margin-top: 160px; }
  .about-us__text, .about-us__lead, .about-us__para, .about-us__para + .about-us__para { max-width: none; }
  .about-us__title { order: -1; margin-bottom: 30px; text-align: left; }
  .page--about .ticker { margin-top: 170px; }
}


/* ---- pages/projects.css ---- */
/* ============================================================ CATEGORY FILTER */
.filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 60px;
  max-width: 1240px;             /* wraps 5 + 3 like the original */
  padding: 0 var(--page-pad);
  margin: 119px auto 0;
}
.page--projects .page-head__subtitle { margin-top: 46px; }
.filter__item {
  font-size: var(--fs-filter);
  line-height: 1;
  letter-spacing: var(--ls-filter);
  font-weight: 600;
  color: var(--color-fg-80);
  opacity: 0.4;
  white-space: nowrap;
}

/* ============================================================ GRID */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 41px;
}
.project-card { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.project-card.is-hidden { display: none; }
.project-card__link { display: block; height: 100%; }
.project-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-card__title {
  position: absolute;
  left: 20px; bottom: 20px;
  line-height: var(--lh-body);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}


@media (max-width: 1199px) {
  .page--projects .page-head { padding-top: 160px; }
  .page--projects .page-head__subtitle { margin-top: 54px; }
  .filter { margin-top: 118px; gap: 10px 40px; padding: 0 10px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1px; }
}
@media (max-width: 809px) {
  .page--projects .page-head__subtitle { margin-top: 57px; }
  .filter {
    margin-top: 145px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding: 0 40px;
    scrollbar-width: none;
  }
  .filter::-webkit-scrollbar { display: none; }
  .project-grid { grid-template-columns: 1fr; margin-top: 37px; }
}


/* ---- pages/project.css ---- */
/* ============================================================ HERO */
.project-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.project-hero__image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.project-hero__text { position: relative; padding: 0 var(--page-pad); }
/* Soft, very blurred shadow so the title and year stay readable on bright cover photos.
   Stronger: raise the 0.45 / 0.35; softer: lower them. */
.project-hero__title,
.project-hero__year,
.page--project .site-header {
  text-shadow:
    0 0 0.35em rgba(0, 0, 0, 0.45),
    0 0 1.2em rgba(0, 0, 0, 0.35);
}
.project-hero__year { margin-top: 40px; }

/* floating "← Projects" pill, stays in the bottom-left corner while scrolling */
.project-hero__back {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============================================================ INFO */
.project-info {
  padding: 119px var(--page-pad) 0;
}
.project-info .rule { margin: 60px 0; }
.project-info .rule:last-child { margin-bottom: 0; }

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 0;
}
.project-meta dt { color: var(--color-fg-60); }
.project-meta dd { margin-top: 12px; }

/* ============================================================ TEXT */
.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px var(--page-pad) 0;
}
.project-content__col:first-child { max-width: 580px; }   /* text-box widths from the original layout */
.project-content__col:last-child { max-width: 460px; }
.project-content .rich-text p + p { margin-top: 20px; }
.project-content .rich-text * + h3 { margin-top: 46px; }
.project-content .rich-text h3 + * { margin-top: 24px; }

/* ============================================================ VIDEO */
.project-video { padding: 120px var(--page-pad) 0; }

/* ============================================================ GALLERY (masonry) */
.project-gallery {
  --columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: 4px;
  align-items: start;
  margin-top: 120px;
}
.project-gallery__column { display: flex; flex-direction: column; gap: 4px; }
.project-gallery__item img { display: block; width: 100%; }

.page--project .site-footer { margin-top: 258px; }

/* ============================================================ TABLET */
@media (max-width: 1199px) {
  .page--project .site-footer { margin-top: 200px; }
  .project-content__col { max-width: none; padding-right: 24px; }
  .project-info { padding-top: 100px; }
  .project-info .rule { margin: 48px 0; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .project-content { padding-top: 48px; }
  .project-video { padding-top: 100px; }
  .project-gallery { --columns: 2; margin-top: 100px; }
}

/* ============================================================ PHONE */
@media (max-width: 809px) {
  .project-hero__year { margin-top: 13px; }
  .project-hero__back { left: 12px; bottom: 12px; padding: 10px 20px; }
  .project-info { padding-top: 78px; }
  .project-info .rule { margin: 40px 0; }
  .project-meta { grid-template-columns: 1fr; gap: 32px; }
  .project-meta dd { margin-top: 10px; }
  .page--project .site-footer { margin-top: 150px; }
  .project-content { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
  .project-content__col { padding-right: 0; }
  .project-content .rich-text * + h3 { margin-top: 40px; }
  .project-content .rich-text h3 + * { margin-top: 20px; }
  .project-video { padding-top: 80px; }
  .project-gallery { --columns: 1; margin-top: 80px; }
}


/* ---- pages/contacts.css ---- */
/* ============================================================ FORM CARD */
.contact {
  padding: 0 var(--page-pad);
  margin-top: 116px;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid var(--color-fg-10);
  border-radius: 10px;
}
.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

/* ============================================================ EMAIL / PHONE / CITY */
.page--contacts .page-head__subtitle { margin-top: 40px; }
.page--contacts .site-footer { margin-top: 202px; }   /* no "See Projects" block on this page */

.contact-direct {
  padding: 0 var(--page-pad);
  margin-top: 121px;
  text-align: center;
}
.contact-direct__big {
  display: block;
}
.contact-direct__big + .contact-direct__big { margin-top: 30px; }
.contact-direct__rule { margin: 75px 0 51px; }
.contact-direct__city { color: var(--color-fg-80); }
.contact-direct__hours { margin-top: 2px; line-height: var(--lh-body); }

@media (max-width: 1199px) {
  .page--contacts .page-head__subtitle { max-width: 450px; }
  .page--contacts .site-footer { margin-top: 177px; }
  .contact { margin-top: 100px; }
  .contact-direct { margin-top: 100px; }
  .contact-direct__rule { margin: 60px 0 60px; }
}
@media (max-width: 809px) {
  .page--contacts .page-head { padding-top: 120px; }
  .page--contacts .page-head__subtitle { margin-top: 27px; }
  .page--contacts .site-footer { margin-top: 123px; }
  .contact { margin-top: 96px; }
  .contact-form { padding: 40px; }
  .contact-direct { margin-top: 83px; }
  .contact-direct__big { overflow-wrap: anywhere; }
  .contact-direct__big + .contact-direct__big { margin-top: 20px; }
  .contact-direct__rule { margin: 29px 0 32px; }
}


/* ---- pages/page.css ---- */
/*
 * Generic content page (template: "page") — used for simple pages such as Partners.
 * Layout follows the About page: a left heading column, content on the right.
 */
.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--page-pad);
  margin-top: 140px;
}
.page--page .page-head + .content-section { margin-top: 120px; }
.content-section__heading {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 500;
}
.content-section__body { max-width: 600px; }

/* logo grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  background: var(--color-fg-05);
}
.logo-grid__item img { max-width: 70%; max-height: 60%; object-fit: contain; }
.logo-grid__item a { display: contents; }

/* numbered list (like the Services rows on the home page) */
.item-list__row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line);
}
.item-list__row:last-child { border-bottom: 1px solid var(--color-line); }
.item-list__title { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); font-weight: 500; }
.item-list__text { margin-top: 8px; }

@media (max-width: 1199px) {
  .content-section { margin-top: 100px; }
  .page--page .page-head + .content-section { margin-top: 90px; }
}
@media (max-width: 809px) {
  .content-section { grid-template-columns: 1fr; gap: 30px; margin-top: 80px; }
  .page--page .page-head + .content-section { margin-top: 70px; }
  .content-section__body { max-width: none; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
}
          /* generic content pages (template: "page") */

/* 5. Motion: appear animations, hover states, parallax, lightbox */

/* ---- motion.css ---- */
/*
 * motion.css — everything about movement.
 *
 * Appear animations are driven by site.js (data-fx / data-text-fx attributes,
 * see the comment at the top of src/scripts/site.js). This file:
 *   1. hides those elements until JS animates them (only when JS is running)
 *   2. hover / press states, which the original does with a short spring to 70–80% opacity
 *   3. scroll-linked effects (parallax, fade-on-scroll, hide-near-end)
 *   4. the services hover preview strip and the gallery lightbox
 */

/* ---------- 1. hidden until animated ------------------------------------ */
.js [data-fx], .js [data-text-fx] { opacity: 0; }
.js [data-fx].is-shown, .js [data-text-fx].is-shown { opacity: 1; }
.js.fx-off [data-fx], .js.fx-off [data-text-fx] { opacity: 1 !important; transform: none !important; }   /* safety net if the script fails */
[data-fx] { will-change: transform, opacity; }
.tfx-line { display: inline-block; white-space: nowrap; will-change: transform, opacity; }   /* a measured line never re-wraps */

/* ---------- 2. hover / press ----------------------------------------------
 * The original uses a 0.4s spring (bounce 0.2) to opacity .7 (or .8 on tickers). */
.hover-dim { transition: opacity 0.4s var(--ease-spring); }
.hover-dim:hover { opacity: 0.7; }
.ticker__item, .hero-gallery__item, .project-card__link, .project-gallery__item, .services__preview-item,
.stat[href], .filter__item, .label-link, .site-header__links a, .site-footer a, .scroll-top, .cta__link, .contact-direct__big, .hero__cycle {
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}
.ticker__item:hover { opacity: 0.8; }
.hero-gallery__item:hover, .project-card__link:hover, .project-gallery__item:hover, .services__preview-item:hover,
.label-link:hover, .cta__link:hover, .scroll-top:hover, .contact-direct__big:hover, .site-footer a:hover { opacity: 0.7; }
a.stat:hover { opacity: 0.7; }
a.stat:active { transform: scale(0.97); }
.filter__item:hover { opacity: 0.7; }
.filter__item.is-active { opacity: 1; }
.hero__cycle:hover { opacity: 0.7; }
.hero__cycle:active { transform: rotate(-30deg); }
.project-hero__back:hover { transform: translateX(-3px); }

/* ---------- 3. scroll-linked ------------------------------------------- */
[data-parallax] { transform: translateY(var(--parallax, 0px)); will-change: transform; }
.project-hero__image[data-parallax] { transform: translateY(var(--parallax, 0px)) scale(1.0001); }     /* keeps the cover crisp while moving */
[data-scroll-fade], .js [data-scroll-fade].is-shown { opacity: var(--scroll-opacity, 1); transform: scale(var(--scroll-scale, 1)); }
[data-hide-near], .js [data-hide-near].is-shown { opacity: calc(1 - var(--hide, 0)); transform: scale(calc(1 - var(--hide, 0))); }
[data-page-end] { height: 1px; }

/* ---------- 4a. services preview (hover a row -> that category's projects) -- */
/* Hover a row: the title fades out, the strip of that category's project cards fades in
   and each card follows 45 ms after the one before it (left to right), while its image
   slowly settles from a 1.15 zoom. Moving away fades everything back just as softly.
   Tune the feel here: --pv-in (fade-in), --pv-out (fade-out), --pv-step (stagger). */
.services__item {
  position: relative;
  --pv-in: 0.7s;
  --pv-out: 0.45s;
  --pv-step: 0.045s;
  --pv-ease: cubic-bezier(0.22, 1, 0.36, 1);      /* soft ease-out */
}
.services__preview {
  position: absolute;
  inset: 1px 0 0 0;                       /* below the row's top border */
  display: none;                          /* flex on hover-capable screens, see below */
  gap: 1px;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--pv-out);
}
.services__preview-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.3s var(--pv-ease);       /* card hover → 0.7 */
}
.services__preview-item img {
  display: block;
  width: 100%; height: 500px; object-fit: cover;   /* a 500px square card, cut to the row: you see its top */
  transform-origin: 50% 160px;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity var(--pv-out) var(--pv-ease), transform 0s linear var(--pv-out);
}
@media (hover: hover) and (min-width: 810px) {
  .services__preview { display: flex; }
  .services__item.is-previewing .services__link { opacity: 0; transition: opacity var(--pv-out) var(--pv-ease); }
  .services__item.is-previewing .services__preview { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .services__item.is-previewing .services__preview-item img {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity var(--pv-in) var(--pv-ease) calc(var(--i, 0) * var(--pv-step)),
      transform 3s var(--pv-ease) calc(var(--i, 0) * var(--pv-step));
  }
}

/* ---------- 4b. lightbox (project gallery) ------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.9);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 12px; right: 20px;
  font-size: 40px; line-height: 1;
  color: var(--color-fg);
  opacity: 0.7;
}
.lightbox__close:hover { opacity: 1; }
body.has-lightbox { overflow: hidden; }
.project-gallery__item { display: block; cursor: zoom-in; }
@media (max-width: 809px) { .lightbox { padding: 12px; } }

/* ---------- 5. smooth scrolling (Lenis) ----------------------------------
   The Framer site scrolls with Lenis (its "Smooth Scroll" component). The library
   lives in src/scripts/vendor/ and is started from site.js; these are its rules. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- FAQ answer: height is animated by JS ------------------------- */
.faq__answer { overflow: hidden; }

/* ---------- Respect users who prefer less motion -------------------------- */
/* Motion off. Only applies when RESPECT_REDUCED_MOTION is switched on in site.js
   (off by default — Framer ignores the OS "reduce motion" setting, and so do we). */
html.reduce-motion [data-fx], html.reduce-motion [data-text-fx] { opacity: 1; }
html.reduce-motion [data-parallax], html.reduce-motion [data-scroll-fade], html.reduce-motion [data-hide-near] { transform: none !important; opacity: 1 !important; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
html.reduce-motion { scroll-behavior: auto; }

/* Note shown only when index.html is opened straight from the disk (see site.js) */
.local-hint { position: fixed; left: 12px; bottom: 12px; z-index: 1000; max-width: 380px; padding: 10px 14px; font: 500 12px/1.45 system-ui, sans-serif; color: #fff; background: rgba(0, 0, 0, 0.85); border-radius: 8px; }
.local-hint a { color: #fff; text-decoration: underline; }
.local-hint code { font-family: ui-monospace, Consolas, monospace; }

