/* ==========================================================================
   Assimakis SA — Landing page
   Built from Figma frame 1:10941 (1440px desktop). All vertical rhythm is
   expressed as padding/margins derived from the Figma coordinates so that the
   content — not fixed heights — defines every section's height.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;

  --c-page: #f9f9f9;
  --c-black: #000;
  --c-white: #fff;
  --c-orange: #f38018;
  --c-dark: #535353;
  --c-stone: #878481;
  --c-sand: #e9e7e3;
  --c-text: #000;

  --content-w: 1128px;   /* Figma content column: x 156 → 1284 */
  --rail-w: 1320px;      /* Figma guide rails:    x 60  → 1380 */
  --gutter: 20px;

  --btn-radius: 0;
  --card-radius: 0;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.container {
  width: min(100% - var(--gutter) * 2, var(--content-w));
  margin-inline: auto;
}

/* Content that runs from the left content edge to the right guide rail */
.container--to-rail {
  width: min(100% - var(--gutter) * 2, 1224px);
  margin-left: max(var(--gutter), calc(50% - var(--content-w) / 2));
  margin-right: auto;
}

/* Vertical guide rails (the 1px lines at x=60 / x=1380 in Figma) */
.rails { position: relative; }
.rails::before, .rails::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--rail, var(--c-black));
  pointer-events: none;
}
.rails::before { left: max(var(--gutter), calc(50% - var(--rail-w) / 2)); }
.rails::after  { right: max(var(--gutter), calc(50% - var(--rail-w) / 2)); }
.rails--left-only::after { display: none; }
.rails--dark  { --rail: var(--c-black); }
.rails--light { --rail: var(--c-white); }

/* Horizontal rules */
.rule { height: 1px; background: var(--c-black); }

/* Typography */
.section-title {
  font-size: clamp(40px, 4.444vw, 64px);
  line-height: 0.906;               /* 58px @ 64px */
  font-weight: 400;
  text-transform: uppercase;
  color: var(--c-black);
}
.section-title--light { color: var(--c-white); }

.accent { color: var(--c-orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  padding: 9.5px 36px;              /* 190 × 45 */
  border: 1px solid currentColor;
  border-radius: var(--btn-radius);
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn--dark  { color: var(--c-black); }
.btn--light { color: var(--c-white); }
.btn--dark:hover  { background: var(--c-black); color: var(--c-white); }
.btn--light:hover { background: var(--c-white); color: var(--c-orange); }
.btn--sm {
  font-size: 15px;
  padding: 1px 16px;                /* 107 × 28 */
}

/* ==========================================================================
   Header / Menu bar  (80px incl. 1px orange bottom border)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-page);
  transition: box-shadow .3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--c-orange);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 0 13px;             /* 23 + 44 + 13 = 80 */
}
.site-header__logo img { width: 191px; height: 44px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
}
.menu-toggle__icon {
  position: relative;
  width: 25px;
  height: 11px;
  display: block;
}
.menu-toggle__icon i {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle__icon i:nth-child(1) { top: 0; }
.menu-toggle__icon i:nth-child(2) { top: 5px; }
.menu-toggle__icon i:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Overlay menu: see "Site menu" section below */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__top { padding-top: 35px; }

.hero__title {
  font-size: clamp(38px, 5.139vw, 74px);
  line-height: 1.135;               /* 84px @ 74px */
  font-weight: 400;
  text-transform: uppercase;
}

.hero__rule {
  height: 1px;
  background: var(--c-black);
  margin: 25px max(var(--gutter), calc(50% - var(--rail-w) / 2)) 0;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 26px 0 34px;
}
.hero__subtitle {
  font-size: 20px;
  line-height: 30px;
  font-weight: 300;
  max-width: 554px;
}
.hero__espa {
  flex: 0 0 auto;
  margin-top: 3px;
}
.hero__espa img { width: 292px; height: 51px; }
.br-mobile { display: none; }
.projects__rule--top, .footer__rule { display: none; }

.hero__image img,
.hero__image video {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 512;
  object-fit: cover;
  object-position: center;
  background: var(--c-dark);
}

/* ==========================================================================
   Manifesto
   ========================================================================== */
.manifesto {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 89px 0 154px;
}
.manifesto::before { top: -36px; }  /* Figma: left rail starts 36px above the dark panel */

.manifesto__rule { height: 1px; background: var(--c-white); }
.manifesto__rule--bottom { margin-left: max(var(--gutter), calc(50% - var(--rail-w) / 2)); }

.manifesto__text {
  font-size: clamp(26px, 3.472vw, 50px);
  line-height: 1.44;                /* 72px @ 50px */
  font-weight: 300;
  margin: 64px 0 138px;
}

/* ==========================================================================
   Products
   ========================================================================== */
.products { padding: 116px 0 70px; }

.products__rule { height: 1px; background: var(--c-black); }

.products__intro {
  display: grid;
  grid-template-columns: 1fr 554px;
  gap: 20px;
  padding: 54px 0 67px;
}
.products__copy p {
  font-size: 16px;
  line-height: 22px;
}
.products__copy .btn { margin-top: 42px; }

.products__slider-wrap { overflow: clip; }
.products__pin .card-slider { padding-top: 66px; padding-bottom: 47px; }
/* Pinned horizontal scroll (desktop, mouse): the whole Products block (Figma layout unchanged)
   sticks while the page scrolls through a spacer and only the cards move */
.js .is-pinned .products__pin { position: sticky; }
.card-slider.is-scroll-linked { overflow: visible; scroll-snap-type: none; cursor: default; will-change: transform; }

.card-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-left: max(var(--gutter), calc(50% - var(--content-w) / 2 - 1px));
  padding-right: var(--gutter);
  scroll-padding-left: max(var(--gutter), calc(50% - var(--content-w) / 2 - 1px));
  cursor: grab;
}
.card-slider::-webkit-scrollbar { display: none; }
.card-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.card-slider > .card { flex: 0 0 295px; scroll-snap-align: start; }

/* Card (shared by products & news) */
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-black);
  border-radius: var(--card-radius);
  padding: 19px;
  background: transparent;
  transition: background-color .3s var(--ease);
}
.card:hover { background: var(--c-white); }

.card__title {
  font-size: 24px;
  line-height: 26px;
  font-weight: 400;
  text-transform: uppercase;
  min-height: 52px;
}
.card__title--news { text-transform: none; }

.card .btn { align-self: flex-start; margin-top: 19px; }

.card__rule {
  display: block;
  height: 1px;
  background: var(--c-black);
  margin: 19px 0 18px;
}

.card__image {
  width: 100%;
  aspect-ratio: 255 / 165;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

/* ==========================================================================
   Our history
   ========================================================================== */
.history {
  background: var(--c-dark);
  color: var(--c-white);
  padding: 108px 0 178px;
}

.history__timeline {
  position: relative;
  height: 12px;
  margin: 38px max(var(--gutter), calc(50% - var(--rail-w) / 2)) 0 max(var(--gutter), calc(50% - var(--rail-w) / 2));
  margin-right: 0;
}
.history__timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 1px;
  background: var(--c-orange);
}
.history__timeline span {
  position: absolute;
  left: 0; top: 0;
  width: 12px; height: 12px;
  background: var(--c-orange);
}

.history__grid {
  display: grid;
  grid-template-columns: 577px 1fr;
  padding-top: 19px;
}
.history__text {
  max-width: 363px;
  padding-top: 7px;
  font-size: 16px;
  line-height: 22px;
}
.history__text p + p { margin-top: 22px; }

.history__figure img {
  width: 538px;
  aspect-ratio: 538 / 452;
  object-fit: cover;
}
.history__figure figcaption {
  margin-top: 19px;
  font-size: 16px;
  line-height: 22px;
}

/* ==========================================================================
   Our Way
   ========================================================================== */
.our-way {
  background: var(--c-orange);
  color: var(--c-white);
  padding: 126px 0 154px;
}
.our-way::before, .our-way::after { top: 127px; }

.our-way__rule { height: 1px; background: var(--c-white); }

.our-way__grid {
  display: grid;
  grid-template-columns: 574px 1fr;
  padding: 50px 0 56px;
}

.our-way__graph {
  position: relative;
  width: 600px;
  max-width: none;
  margin-left: -73px;               /* circle centre at x=383 (Figma) */
}
.our-way__circle {
  width: 100%;
  aspect-ratio: 1;
  color: var(--c-white);
}
.our-way__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
}

.our-way__copy { padding-top: 90px; max-width: 554px; }
.our-way__heading {
  font-size: clamp(26px, 2.639vw, 38px);
  line-height: 1.316;               /* 50px @ 38px */
  font-weight: 300;
  text-transform: uppercase;
}
.our-way__copy p {
  margin-top: 45px;
  font-size: 16px;
  line-height: 24px;
}
.our-way__copy .btn { margin-top: 38px; }

/* ==========================================================================
   Partner logos
   ========================================================================== */
.partners {
  background: var(--c-white);
  padding: 89px 0;
  overflow: hidden;
}
.partners__list {
  display: flex;
  align-items: center;
  width: 1440px;
  max-width: none;
  margin-inline: auto;
}
.partners__list li { flex: 0 0 auto; }
.partners__list li:nth-child(1) { margin-left: 69px; }
.partners__list li:nth-child(2) { margin-left: 74px; }
.partners__list li:nth-child(3) { margin-left: 38px; }
.partners__list li:nth-child(4) { margin-left: 26px; }
.partners__list li:nth-child(5) { margin-left: 49px; }
.partners__list li:nth-child(6) { margin-left: 38px; }
.partners__list img { max-width: none; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  background: var(--c-sand);
  padding: 87px 0 65px;
  overflow: hidden;
}

.projects__grid {
  display: grid;
  grid-template-columns: 575px 1fr;
  padding-bottom: 70px;
}
.projects__copy .section-title { margin-bottom: 54px; }
.projects__copy p {
  max-width: 457px;
  font-size: 18px;
  line-height: 24px;
}
.projects__copy .btn { margin-top: 36px; }

.projects__image { padding-top: 2px; }
.projects__image img {
  width: 759px;
  max-width: none;
  aspect-ratio: 759 / 441;
  object-fit: cover;
}

.projects__rule { height: 1px; background: var(--c-black); }

.projects__statement {
  font-size: clamp(24px, 3.194vw, 46px);
  line-height: 1.304;               /* 60px @ 46px */
  font-weight: 250;
  padding: 84px 0 91px;
}

/* ==========================================================================
   News
   ========================================================================== */
.news { padding: 174px 0 191px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 63px;
}
.card--news { padding: 19px 18px 20px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--c-stone);
  color: var(--c-white);
  padding: 50px 0 55px;
}
.contact__rule { height: 1px; background: var(--c-white); }

.contact-box {
  position: relative;
  display: block;
  max-width: 841px;
  margin-top: 61px;
  padding: 29px 100px 65px 108px;
  border: 1px solid var(--c-white);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-box:hover { background: var(--c-white); color: var(--c-stone); }
.contact-box__title {
  display: block;
  font-size: clamp(32px, 3.75vw, 54px);
  line-height: 1.111;               /* 60px @ 54px */
  font-weight: 400;
  text-transform: uppercase;
}
.contact-box__text {
  display: block;
  margin-top: 20px;
  font-size: clamp(18px, 1.944vw, 28px);
  line-height: 1.143;               /* 32px @ 28px */
  font-weight: 300;
}
.contact-box__arrow {
  position: absolute;
  top: 34px;
  right: 15px;
  width: 55px;
  height: 55px;
  transition: transform .3s var(--ease);
}
.contact-box:hover .contact-box__arrow { transform: translate(4px, -4px); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--c-dark);
  color: var(--c-white);
  font-size: 14px;
}

.footer__top {
  display: grid;
  grid-template-columns: 191px 1fr 171px;
  padding: 30px 0 25px;
}

.footer__heading {
  margin-top: 13px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.footer__menu { margin-top: 4px; line-height: 28px; font-weight: 300; }
.footer__menu a, .footer__bottom a { transition: color .25s var(--ease); }
.footer__menu a:hover, .footer__bottom a:hover, .footer__address a:hover { color: var(--c-orange); }

.footer__address {
  margin-top: 9px;
  max-width: 172px;
  line-height: 24px;
  font-weight: 300;
}
.footer__indent { padding-left: 6px; }
.footer__address a[href^="mailto"] { text-decoration: underline; }

.footer__logo { width: 171px; height: 41px; }
.footer__espa {
  margin-top: 19px;
  width: 171px;
  padding: 20px 8px 20px 9px;
  background: var(--c-white);
  border-radius: 4px;
}
.footer__espa img { width: 154px; height: 118px; }
.footer__credits { margin-top: 22px; font-size: 12px; line-height: 18px; font-weight: 300; }

.footer__bottom { position: relative; }
.footer__bottom::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--c-white);
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 23px;
  padding: 22px 0 24px;
  font-size: 12px;
  line-height: 28px;
  font-weight: 300;
}

/* ==========================================================================
   Inner pages: Our Way (Figma 1:11385 / 1:14138) & Company (1:11862 / 1:14271)
   ========================================================================== */
:root { --c-navy: #20305a; --c-silver: #d9d9d9; }

/* Page hero */
.page-hero { color: var(--c-white); }
.page-hero--ourway { background: var(--c-navy); padding-top: 77px; }
.page-hero--company { background: var(--c-orange); padding-top: 118px; }
.page-hero__rule { height: 1px; background: var(--c-white); }

.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 554px;
  gap: 20px;
  padding: 56px 0 200px;
}
.page-hero__title {
  font-size: clamp(40px, 5.139vw, 74px);
  line-height: 0.784;              /* 58px @ 74px */
  font-weight: 400;
  text-transform: uppercase;
}
.page-hero__text { font-size: 16px; line-height: 22px; }

.page-hero--company .container { padding: 44px 0 162px; }
.page-hero__title--light { font-weight: 300; line-height: 1.054; }   /* 78px @ 74px */

.page-hero__image img {
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero--ourway .page-hero__image img { aspect-ratio: 1440 / 500; }
.page-hero--company .page-hero__image img { aspect-ratio: 1440 / 546; }

/* Core message */
.core-message { background: var(--c-white); padding: 107px 0 126px; }
.core-message--company { padding: 92px 0 141px; }
.core-message__text {
  font-size: clamp(26px, 3.472vw, 50px);
  line-height: 1.4;                /* 70px @ 50px */
  font-weight: 300;
}

/* Info rows */
.info-rows--ourway { background: var(--c-silver); }
.info-rows--company { background: var(--c-sand); }
.info-rows__rule { height: 1px; background: var(--c-black); }

.info-row {
  display: grid;
  grid-template-columns: 1fr 554px;
  gap: 20px;
  padding: 65px 0 97px;
}
.info-row__title {
  font-size: clamp(30px, 3.194vw, 46px);
  line-height: 1.043;              /* 48px @ 46px */
  font-weight: 400;
  text-transform: uppercase;
}
.info-row__text { font-size: 16px; line-height: 24px; }
.info-row__list { font-size: 16px; line-height: 24px; list-style: disc; padding-left: 1.1em; }

.info-row--services { padding-bottom: 79px; }
.info-row--sustainability { padding-bottom: 113px; }
.info-row--history { padding: 64px 0 175px; }
.info-row--history .info-row__text, .info-row--vision .info-row__text { line-height: 22px; }
.info-row--vision { padding-bottom: 197px; }

@media (max-width: 1100px) {
  .page-hero__grid, .info-row { grid-template-columns: 1fr; gap: 24px; }
  .page-hero__text, .info-row__text, .info-row__list { max-width: 554px; }
  .page-hero__grid { padding: 40px 0 80px; }
  .page-hero--company .container { padding: 32px 0 80px; }
  .core-message { padding: 70px 0 80px; }
  .info-row { padding: 48px 0 64px; }
  .info-row--history, .info-row--vision, .info-row--services, .info-row--sustainability { padding: 48px 0 64px; }
}

@media (max-width: 620px) {
  /* Our Way mobile (390): hero 84→845, core 845→1267, rows 1267→2527 */
  .page-hero--ourway { padding-top: 63px; }
  .page-hero--company { padding-top: 52px; }
  .page-hero__grid { gap: 0; padding: 30px 0 102px; }
  .page-hero__title { font-size: 34px; line-height: 42px; font-weight: 300; }
  .page-hero__text { margin-top: 33px; font-size: 14px; line-height: 20px; max-width: none; }
  .page-hero--company .container { padding: 38px 0 122px; }
  .page-hero--ourway .page-hero__image img { aspect-ratio: 390 / 350; }
  .page-hero--company .page-hero__image img { aspect-ratio: 390 / 506; }

  .core-message { padding: 60px 0 82px; }
  .core-message--company { padding: 42px 0 100px; }
  .core-message__text { font-size: 28px; line-height: 40px; }

  .info-row { gap: 0; padding: 86px 0 190px; }
  .info-row__title { font-size: 28px; line-height: 30px; }
  .info-row__text, .info-row__list { margin-top: 40px; font-size: 14px; line-height: 20px; max-width: 326px; }
  .info-row--history .info-row__text, .info-row--vision .info-row__text { line-height: 20px; }
  .info-rows__rule--desktop { display: none; }
  .info-row--philosophy { padding-bottom: 190px; }
  .info-row--services { padding: 0 0 144px; }
  .info-row--sustainability { padding: 85px 0 105px; }
  .info-row--history { padding: 86px 0 210px; }
  .info-row--vision { padding: 0 0 84px; }
}

/* ==========================================================================
   Products (1:12065 / 1:14400), Product category (1:12263 / 1:14545),
   Projects (1:12503 / 1:15604), Project (1:12680 / 1:14742)
   ========================================================================== */
:root { --content-left: max(var(--gutter), calc(50% - var(--content-w) / 2)); --rail-left: max(var(--gutter), calc(50% - var(--rail-w) / 2)); }

/* Rail-to-rail horizontal rule (x 60 → 1380) */
.rule--rails { height: 1px; background: var(--c-black); margin-inline: var(--rail-left); }
.rule--full { height: 1px; background: var(--c-black); }

/* Small outline button ("View all …") 171 × 26 */
.btn--outline-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 171px;
  padding: 0 30px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
  border: 1px solid var(--c-black);
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn--outline-sm:hover { background: var(--c-black); color: var(--c-white); }

/* Prev / next arrow buttons 49 × 23 */
.slider-nav { display: flex; gap: 13px; }
.slider-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 23px;
  border: 1px solid var(--c-black);
  color: var(--c-black);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.slider-nav__btn svg { width: 13px; height: 14px; }
.slider-nav__btn:hover { background: var(--c-black); color: var(--c-white); }
.slider-nav__btn[disabled] { opacity: .35; pointer-events: none; }

/* Generic scroll-snap slider */
.slider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; display: flex; gap: 20px; cursor: grab; }
.slider::-webkit-scrollbar { display: none; }
.slider.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.slider > * { flex: 0 0 auto; scroll-snap-align: start; }
.slider img { display: block; object-fit: cover; }

/* ---------- List hero (Products / Projects) ---------- */
.list-hero { padding: 112px 0 171px; }
.list-hero__grid { display: grid; grid-template-columns: 1fr 554px; gap: 20px; }
.list-hero__title { font-size: clamp(40px, 5.139vw, 74px); line-height: 0.784; font-weight: 400; text-transform: uppercase; }
.list-hero__text { font-size: 16px; line-height: 22px; }

/* ---------- Products grid ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 111px 0 243px; }
.product-tile {
  position: relative;
  display: block;
  aspect-ratio: 363 / 260;
  border: 1px solid var(--c-black);
  padding: 14px 21px;
  overflow: hidden;
  isolation: isolate;
}
.product-tile__title {
  display: block;
  position: relative;
  z-index: 1;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
  text-transform: uppercase;
  max-width: 323px;
  transition: color .3s var(--ease);
}
.product-tile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;                        /* Figma: image fill at 0% — revealed on hover */
  transform: scale(1.04);
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.product-tile__image::after { content: ""; }
.product-tile:hover .product-tile__image { opacity: 1; transform: none; }
.product-tile:hover .product-tile__title { color: var(--c-white); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.list-page__bottom { padding-bottom: 70px; }

/* ---------- Projects list ---------- */
.projects-list { display: grid; gap: 20px; padding: 75px 0 77px; }
.project-card {
  display: grid;
  grid-template-columns: 1fr 533px;
  gap: 20px;
  padding: 20px 20px 21px;
  border: 1px solid var(--c-black);
  transition: background-color .3s var(--ease);
}
.project-card:hover { background: var(--c-white); }
.project-card__label { display: block; font-size: 16px; line-height: 20px; font-weight: 500; text-transform: uppercase; }
.project-card__title { margin-top: 9px; font-size: 28px; line-height: 40px; font-weight: 400; text-transform: uppercase; max-width: 495px; }
.project-card__image { width: 100%; aspect-ratio: 533 / 217; object-fit: cover; }
.projects-page__bottom { padding-bottom: 67px; }

/* ---------- Detail head (product category / project) ---------- */
.detail-head { padding-top: 76px; }
.detail-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 71px; }
.detail-head__title { font-size: clamp(40px, 5.139vw, 74px); line-height: 1.108; font-weight: 400; text-transform: uppercase; max-width: 841px; }
.detail-head__row .btn--outline-sm { margin-top: 50px; flex: 0 0 auto; }

/* ---------- Product category items ---------- */
.pc-items { position: relative; overflow: hidden; }
.pc-items::before { display: none; }                   /* left rail is drawn by the wrapper section */
.pc-items__divider {                                    /* vertical line at x = 614 */
  position: absolute; top: 0; bottom: 0; width: 1px;
  left: calc(var(--content-left) + 458px);
  background: var(--c-black);
}
.pc-item {
  display: grid;
  grid-template-columns: 42px 363px 72px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 21px;
  padding: 20px 0 19px calc(var(--content-left) - 62px);
}
.pc-item__head { display: contents; }
.pc-item__num {
  grid-column: 1; grid-row: 1;
  margin-top: 14px;
  font-size: 64px;
  line-height: 68px;
  font-weight: 800;
  color: var(--c-orange);
  text-align: right;
}
.pc-item__body { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; }
.pc-item__title { grid-column: 2; grid-row: 1; margin-top: 5px; font-size: 28px; line-height: 38px; font-weight: 400; text-transform: uppercase; max-width: 315px; }
.pc-item__text { margin-top: 23px; font-size: 16px; line-height: 22px; }
.pc-item__body .slider-nav { margin-top: auto; padding-top: 24px; }
.pc-item__slider { grid-column: 4; grid-row: 1 / 3; }
.pc-item__slider img { width: 720px; aspect-ratio: 720 / 445; }
.pc-items__bottom { padding-bottom: 131px; }

/* ---------- Project detail ---------- */
.project-head { padding-top: 51px; }
.project-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 37px; }
.project-head__label { font-size: 28px; line-height: 28px; font-weight: 500; text-transform: uppercase; }
.project-head__row .btn--outline-sm { margin-top: 7px; }
.project-title { padding: 67px 0 92px; }
.project-title__text { font-size: clamp(40px, 5.139vw, 74px); line-height: 1.135; font-weight: 400; text-transform: uppercase; }
.project-gallery { padding: 81px 0 40px; }
.project-gallery__slider img { width: 937px; aspect-ratio: 937 / 460; }
.project-gallery .slider-nav { margin-top: 23px; gap: 17px; }

.project-info { position: relative; background: var(--c-sand); }
.project-info__rule { height: 1px; background: var(--c-black); }
.project-info__grid { display: grid; grid-template-columns: 1fr 1fr; padding: 117px 0 192px; }
.project-info__col { padding-right: 106px; }
.project-info__col + .project-info__col { padding-right: 0; padding-left: 106px; position: relative; }
.project-info__divider { position: absolute; top: 0; bottom: 0; width: 1px; left: calc(var(--content-left) + 564px); background: var(--c-black); }
.project-info__title { font-size: 38px; line-height: 38px; font-weight: 400; text-transform: uppercase; }
.project-info__text { margin-top: 43px; font-size: 16px; line-height: 22px; max-width: 458px; }

.project-video { position: relative; margin-inline: var(--rail-left); }
.project-video__poster { width: 100%; aspect-ratio: 1320 / 745; object-fit: cover; display: block; }
.project-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; transition: opacity .3s var(--ease); }
.project-video__play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 69px; height: 69px; margin: -34.5px 0 0 -34.5px;
  color: var(--c-white); cursor: pointer;
  transition: transform .3s var(--ease);
}
.project-video__play svg { width: 100%; height: 100%; }
.project-video__play:hover { transform: scale(1.08); }
.project-video video { width: 100%; aspect-ratio: 1320 / 745; display: block; background: #000; }
.project-video.is-playing::after, .project-video.is-playing .project-video__play { display: none; }
.project-page__bottom { padding-bottom: 115px; }

@media (max-width: 1100px) {
  .list-hero { padding: 64px 0 80px; }
  .list-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); padding: 64px 0 120px; }
  .project-card { grid-template-columns: 1fr 1fr; }
  .detail-head__row { flex-direction: column; gap: 24px; }
  .detail-head__row .btn--outline-sm { margin-top: 0; order: -1; }
  .pc-items__divider { display: none; }
  .pc-item { grid-template-columns: 42px 1fr; padding: 32px var(--gutter) 40px var(--content-left); }
  .pc-item__slider { grid-column: 1 / -1; margin-top: 32px; }
  .pc-item__slider img { width: min(720px, 100%); }
  .pc-item__body .slider-nav { padding-top: 32px; }
  .project-gallery__slider img { width: 100%; }
  .project-info__grid { grid-template-columns: 1fr; padding: 64px 0 80px; gap: 56px; }
  .project-info__col, .project-info__col + .project-info__col { padding: 0; }
  .project-info__divider { display: none; }
}

@media (max-width: 620px) {
  /* Products / Projects list (390) */
  .list-hero { padding: 93px 0 61px; }
  .list-hero__grid { gap: 0; }
  .list-hero__title { font-size: 34px; line-height: 42px; }
  .list-hero__text { margin-top: 44px; font-size: 14px; line-height: 20px; }
  .rule--rails { margin-inline: 0; }
  .products-grid { grid-template-columns: 1fr; gap: 20px; padding: 49px 0 51px; }
  .product-tile { aspect-ratio: auto; min-height: 100px; padding: 8px 12px; }
  .product-tile__title { font-size: 24px; line-height: 28px; max-width: 269px; }
  .list-page__bottom { padding-bottom: 72px; }

  .projects-page .list-hero { padding-top: 97px; padding-bottom: 57px; }
  .projects-list { gap: 25px; padding: 48px 0 90px; }
  .project-card { display: flex; flex-direction: column-reverse; gap: 10px; padding: 20px; }
  .project-card__label { display: none; }
  .project-card__title { margin-top: 0; font-size: 24px; line-height: 30px; max-width: none; }
  .project-card__image { aspect-ratio: 310 / 119; }
  .projects-page__bottom { padding-bottom: 100px; }

  /* Product category (390) */
  .detail-head { padding-top: 39px; }
  .detail-head__row { flex-direction: column; gap: 28px; padding-bottom: 30px; }
  .detail-head__row .btn--outline-sm { order: -1; margin-top: 0; min-width: 0; padding: 0 14px; }
  .detail-head__title { font-size: 34px; line-height: 42px; }
  .pc-item { display: block; padding: 27px var(--gutter) 29px; }
  .pc-item__head { display: flex; align-items: flex-start; gap: 7px; }
  .pc-item__num { margin-top: 0; font-size: 40px; line-height: 40px; text-align: left; }
  .pc-item__title { margin-top: 3px; font-size: 20px; line-height: 22px; max-width: 292px; }
  .pc-item__text { margin-top: 13px; font-size: 14px; line-height: 20px; }
  .pc-item__body .slider-nav { padding-top: 59px; }
  .pc-item__slider { margin-top: 18px; }
  .pc-item__slider img { width: 100%; aspect-ratio: 350 / 246; }
  .pc-item__slider > * { width: 100%; }
  .pc-items__bottom { padding-bottom: 0; }
  .pc-items .rule--full:last-of-type { display: none; }

  /* Project detail (390) */
  .project-head { padding-top: 23px; }
  .project-head__row { padding-bottom: 17px; gap: 16px; align-items: center; }
  .project-head__label { font-size: 18px; line-height: 28px; }
  .project-head__row .btn--outline-sm { margin-top: 0; min-width: 0; padding: 0 7px; }
  .project-title { padding: 50px 0 69px; }
  .project-title__text { font-size: 34px; line-height: 42px; }
  .project-gallery { padding: 46px 0 46px; }
  .project-gallery__slider img { aspect-ratio: 350 / 272; }
  .project-gallery__slider > * { width: 100%; }
  .project-gallery .slider-nav { margin-top: 17px; gap: 23px; }
  .project-info__grid { grid-template-columns: 1fr; padding: 86px 0 113px; gap: 0; }
  .project-info__col + .project-info__col { padding-top: 230px; }
  .project-info__title { font-size: 28px; line-height: 30px; }
  .project-info__text { margin-top: 40px; font-size: 14px; line-height: 20px; max-width: none; }
  .project-video { margin-inline: 0; }
  .project-video__poster, .project-video video { aspect-ratio: 390 / 235; }
  .project-video__play { width: 55px; height: 55px; margin: -27.5px 0 0 -27.5px; }
  .project-page__bottom { padding-bottom: 0; }
  .project-page .rule--full.project-page__rule { display: none; }
}

/* ==========================================================================
   News (1:12886 / 1:14881), Article (1:13068 / 1:15023),
   Contact (1:13248 / 1:15151), Career (1:13413 / 1:15288)
   ========================================================================== */
:root { --c-field: #f6f6f6; }

/* Shared: big page title 74/84 */
.page-title { font-size: clamp(40px, 5.139vw, 74px); line-height: 1.135; font-weight: 400; text-transform: uppercase; }

/* Form primitives */
.field { display: block; }
.field__label { display: block; font-size: 24px; line-height: 38px; font-weight: 400; text-transform: uppercase; }
.field__input {
  display: block; width: 100%;
  font: inherit; color: inherit;
  font-size: 16px; line-height: 24px;
  background: var(--c-field);
  border: 1px solid var(--c-black);
  border-radius: 0;
  padding: 12px 16px;
  outline: none;
}
.field__input:focus { border-color: var(--c-orange); }
textarea.field__input { resize: vertical; }
.btn-send {
  display: block; width: 100%;
  font: inherit; font-size: 24px; line-height: 38px; font-weight: 400; text-transform: uppercase;
  color: var(--c-black); background: var(--c-orange); border: 1px solid var(--c-orange);
  padding: 5px 0; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn-send:hover { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }

/* Play button (article) */
.media-video { position: relative; }
.media-video::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); pointer-events: none; }
.media-video__poster { display: block; width: 100%; object-fit: cover; }
.media-video__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 69px; height: 69px; margin: -34.5px 0 0 -34.5px; color: var(--c-white); cursor: pointer; transition: transform .3s var(--ease); }
.media-video__play svg { width: 100%; height: 100%; }
.media-video__play:hover { transform: scale(1.08); }
.media-video video { display: block; width: 100%; background: #000; }
.media-video.is-playing::after, .media-video.is-playing .media-video__play { display: none; }

/* ---------- News ---------- */
.news-page { background: var(--c-white); }
.news-page__head { padding: 121px 0 87px; }
.news-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; padding: 64px 0 250px; }
.card--news-page .card__title { min-height: 52px; }
.card--news-page .btn { margin-top: 16px; }
.card--news-page .card__rule { margin: 20px 0 19px; }
.card--news-page .card__image { aspect-ratio: 324 / 165; }
.news-page__bottom { padding-bottom: 141px; }

/* ---------- Article ---------- */
.article-page { background: var(--c-sand); }
.article-head { padding-top: 59px; }
.article-head__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.article-head__date { font-size: 28px; line-height: 28px; font-weight: 500; text-transform: uppercase; }
.article-head__row .btn--outline-sm { margin-top: -1px; }
.article-title { padding: 86px 0 116px; }
.article-body { background: var(--c-white); margin-inline: var(--rail-left); padding: 68px 0 246px; }
.article-body__inner { width: min(100% - 40px, 1128px); margin-inline: auto; }
.article-hero { width: 743px; max-width: 100%; aspect-ratio: 743 / 389; object-fit: cover; display: block; }
.article-text { max-width: 551px; margin-top: 96px; font-size: 16px; line-height: 22px; }
.article-text p + p { margin-top: 18px; }
.article-text p:nth-of-type(3) { margin-top: 28px; }
.article-media { display: grid; grid-template-columns: 746px 459px; gap: 19px; margin-top: 80px; }
.article-media .media-video__poster { aspect-ratio: 746 / 389; }
.article-media__photo { width: 100%; aspect-ratio: 459 / 389; object-fit: cover; display: block; }
.article-text--after { margin-top: 69px; }
.article-page__bottom { padding-bottom: 75px; }

/* ---------- Contact ---------- */
.contact-page { background: var(--c-navy); color: var(--c-white); }
.contact-page.rails::after { --rail: #f5f5f5; }
.contact-page__head { padding: 121px 0 133px; }
.contact-block { position: relative; background: var(--c-white); color: var(--c-black); margin-inline: var(--rail-left); }
.contact-block__grid {
  display: grid; grid-template-columns: 554px 1fr; column-gap: 116px;
  padding: 81px 0 118px calc(var(--content-left) - var(--rail-left));
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .field__input { height: 50px; margin-top: 3px; }
.contact-form .field--message { margin-top: 34px; }
.contact-form textarea.field__input { height: 398px; }
.contact-form .btn-send { margin-top: 25px; }
.contact-info__item + .contact-info__item { margin-top: 36px; }
.contact-info__item:nth-child(3) { margin-top: 25px; }
.contact-info__label { font-size: 24px; line-height: 38px; font-weight: 400; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid var(--c-black); }
.contact-info__value { margin-top: 8px; font-size: 20px; line-height: 38px; font-weight: 400; }
.contact-info__value a:hover { color: var(--c-orange); }
.contact-block__photo { width: 100%; aspect-ratio: 1321 / 368; object-fit: cover; display: block; }
.contact-page__rule { position: absolute; z-index: 1; left: calc(var(--rail-left) * -1); right: calc(var(--rail-left) * -1); bottom: 368px; height: 1px; background: var(--c-white); }
.contact-page__bottom { padding-bottom: 259px; }

/* ---------- Career ---------- */
.career-page { background: var(--c-orange); }
.career-hero { color: var(--c-white); padding: 192px 0 168px; }
.career-hero__grid { display: grid; grid-template-columns: 1fr 554px; gap: 20px; }
.career-hero__text { margin-top: 9px; font-size: 16px; line-height: 22px; }
.career-positions { background: var(--c-white); padding: 79px 0 284px; }
.section-heading { font-size: 38px; line-height: 38px; font-weight: 400; text-transform: uppercase; }
.career-positions__text { margin-top: 67px; font-size: 16px; line-height: 22px; max-width: 553px; }
.positions-list { display: grid; gap: 36px; margin-top: 29px; }
.position-row {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 85px; padding: 10px 98px 10px 25px;
  background: var(--c-field); border: 1px solid var(--c-black);
  transition: background-color .25s var(--ease);
}
.position-row:hover { background: var(--c-white); }
.position-row__title { font-size: 28px; line-height: 38px; font-weight: 400; text-transform: uppercase; }
.position-row__cta { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22px; font-weight: 300; white-space: nowrap; }
.position-row__cta svg { width: 14px; height: 11px; }
.career-inquiry { background: var(--c-sand); padding: 67px 0 105px; }
.career-inquiry__text { margin-top: 59px; max-width: 553px; font-size: 16px; line-height: 22px; }
.career-form { display: grid; grid-template-columns: 553px 555px; column-gap: 20px; margin-top: 43px; }
.career-form__fields { display: grid; gap: 17px; align-content: start; }
.field--inline { position: relative; }
.field--inline .field__input { height: 50px; padding: 0 16px; font-size: 24px; line-height: 48px; text-transform: uppercase; }
.field--inline .field__input::placeholder { color: var(--c-black); opacity: 1; }
.field--inline .field__req { position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -6px; pointer-events: none; }
.field--file .field__input { line-height: 48px; cursor: pointer; }
.field--file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.career-form textarea.field__input { height: 322px; padding: 5px 28px; font-size: 24px; line-height: 38px; text-transform: uppercase; }
.career-form textarea.field__input::placeholder { color: var(--c-black); opacity: 1; }
.career-form .btn-send { margin-top: 19px; }
.career-next { margin-top: 70px; max-width: 553px; }
.career-next__title { font-size: 28px; line-height: 38px; font-weight: 400; text-transform: uppercase; }
.career-next__text { margin-top: 47px; font-size: 16px; line-height: 22px; }
.career-next__text p + p { margin-top: 22px; }

@media (max-width: 1100px) {
  .news-grid-page { grid-template-columns: repeat(2, 1fr); padding: 48px 0 120px; }
  .article-media { grid-template-columns: 1fr; }
  .article-media__photo { aspect-ratio: 746 / 389; }
  .article-hero { width: 100%; }
  .contact-block__grid { grid-template-columns: 1fr; gap: 56px; padding: 56px 20px 64px; }
  .career-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .career-hero { padding: 96px 0 80px; }
  .career-positions { padding: 64px 0 120px; }
  .career-form { grid-template-columns: 1fr; gap: 20px; }
  .position-row { padding-right: 25px; }
}

@media (max-width: 620px) {
  .page-title { font-size: 34px; line-height: 42px; }
  .field__label { font-size: 20px; line-height: 38px; }
  .btn-send { font-size: 20px; line-height: 38px; padding: 0; }
  .media-video__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }

  /* News (390) */
  .news-page { background: var(--c-page); }
  .news-page__head { padding: 50px 0 45px; }
  .news-grid-page { grid-template-columns: 1fr; gap: 21px; padding: 34px 0 0; }
  .news-page .rule--full:last-of-type { display: none; }
  .card--news-page { padding: 19px 19px 19px; }
  .card--news-page .card__title { min-height: 37px; }
  .card--news-page .btn { margin-top: 19px; }
  .card--news-page .card__rule { margin: 19px 0 18px; }
  .card--news-page .card__image { aspect-ratio: 310 / 182; }
  .news-page__bottom { padding-bottom: 134px; }

  /* Article (390) */
  .article-head { padding-top: 45px; }
  .article-head__row { align-items: center; gap: 16px; }
  .article-head__date { font-size: 18px; line-height: 28px; }
  .article-head__row .btn--outline-sm { min-width: 0; padding: 0 7px; margin: 0; }
  .article-title { padding: 46px 0 67px; }
  .article-body { margin-inline: 0; padding: 30px 0 106px; }
  .article-hero { aspect-ratio: 350 / 215; }
  .article-text { margin-top: 41px; font-size: 14px; line-height: 20px; max-width: none; }
  .article-text p + p, .article-text p:nth-of-type(3) { margin-top: 20px; }
  .article-media { grid-template-columns: 1fr; margin-top: 43px; }
  .article-media .media-video__poster { aspect-ratio: 350 / 176; }
  .article-media__photo { display: none; }
  .article-text--after { margin-top: 20px; }
  .article-page__bottom { padding-bottom: 57px; }

  /* Contact (390) */
  .contact-page__head { padding: 119px 0 57px; }
  .contact-block { margin-inline: 0; }
  .contact-block__grid { grid-template-columns: 1fr; gap: 0; padding: 32px var(--gutter) 68px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 21px; }
  .contact-form .field__input { height: 40px; margin-top: 0; padding: 6px 12px; }
  .contact-form .field--message { margin-top: 21px; }
  .contact-form textarea.field__input { height: 360px; }
  .contact-form .btn-send { margin-top: 22px; }
  .contact-info { margin-top: 82px; }
  .contact-info__item + .contact-info__item { margin-top: 34px; }
  .contact-info__item:nth-child(3) { margin-top: 45px; }
  .contact-info__label { font-size: 20px; line-height: 34px; padding-bottom: 0; margin-right: calc(var(--gutter) * -1); }
  .contact-info__value { margin-top: 13px; font-size: 16px; line-height: 28px; }
  .contact-info__item:first-child .contact-info__value { font-size: 14px; line-height: 38px; margin-top: 7px; }
  .contact-block__photo { aspect-ratio: 390 / 210; }
  .contact-page__rule { display: none; }
  .contact-page__bottom { padding-bottom: 147px; }

  /* Career (390) */
  .career-hero { padding: 94px 0 125px; }
  .career-hero__grid { gap: 0; }
  .career-hero__text { margin-top: 26px; font-size: 14px; line-height: 20px; }
  .career-positions { padding: 40px 0 151px; }
  .section-heading { font-size: 28px; line-height: 38px; }
  .career-positions__text { margin-top: 29px; font-size: 14px; line-height: 20px; }
  .positions-list { gap: 11px; margin-top: 15px; }
  .position-row { min-height: 60px; padding: 5px 19px; }
  .position-row__title { font-size: 16px; line-height: 38px; }
  .position-row__cta { display: none; }
  .career-inquiry { padding: 46px 0 0; }
  .career-inquiry__text { margin-top: 24px; font-size: 14px; line-height: 20px; }
  .career-form { grid-template-columns: 1fr; gap: 0; margin-top: 53px; }
  .career-form__fields { gap: 11px; }
  .field--inline .field__input { height: 40px; padding: 0 15px; font-size: 16px; line-height: 38px; }
  .field--inline .field__req { right: 15px; }
  .career-form__message { margin-top: 11px; }
  .career-form textarea.field__input { height: 245px; padding: 1px 15px; font-size: 16px; line-height: 38px; }
  .career-form .btn-send { margin-top: 11px; }
  .career-next { margin-top: 87px; max-width: none; }
  .career-next__title { font-size: 20px; line-height: 38px; }
  .career-next__text { margin-top: 9px; font-size: 14px; line-height: 20px; }
  .career-next__text p + p { margin-top: 20px; }
  .career-inquiry__bottom { padding-bottom: 168px; }
}

/* ==========================================================================
   Site menu (Figma "menu design" 1:11610 + mobile menu 1:15740/1:15800/1:15865)
   Opens like decorsystems.com.au: panel slides in from the left (1s, cubic-bezier(.7,0,.3,1)),
   links fade in with a 0.1s stagger from 0.5s, dark overlay 60% (expo.out), fade-out on close.
   ========================================================================== */
:root { --menu-ease: cubic-bezier(.7, 0, .3, 1); --expo-out: cubic-bezier(.16, 1, .3, 1); }

/* Menu / Close label swap in the header button */
.menu-toggle__label { position: relative; overflow: hidden; height: 20px; }
.menu-toggle__words { display: block; transition: transform .45s var(--expo-out); }
.menu-toggle__words span { display: block; height: 20px; line-height: 20px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__words { transform: translateY(-20px); }

.site-menu { position: fixed; inset: 0; z-index: 95; }
.site-menu[hidden] { display: none; }

.site-menu__overlay {
  position: absolute; inset: 0;
  background: var(--c-black);
  opacity: 0;
  transition: opacity 1.5s var(--expo-out);
}
.site-menu.is-open .site-menu__overlay { opacity: .6; transition-duration: 1s; }

/* Main panel 486px */
.site-menu__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  z-index: 3;
  width: 486px;
  background: var(--c-sand);
  border-right: 1px solid var(--c-black);
  transform: translateX(-110%);
  overflow-y: auto;
  transition: transform 1s var(--menu-ease), opacity .5s var(--line-ease);
}
.site-menu__panel::before {                /* inner vertical line at x = 60 */
  content: ""; position: absolute; top: 0; bottom: 0; left: 60px; width: 1px; background: var(--c-black);
}
.site-menu.is-open .site-menu__panel { transform: none; }
.site-menu.is-closing .site-menu__panel { opacity: 0; }

.site-menu__logo { position: absolute; left: 172px; top: 36px; }
.site-menu__logo img { width: 190px; height: 44px; }

.site-menu__list { position: absolute; left: 172px; top: 159px; margin: 0; padding: 0; list-style: none; }
.site-menu__list li { margin-bottom: 27px; opacity: 0; transition: opacity 1s var(--line-ease); }
.site-menu__list a, .site-menu__list button {
  display: block;
  font: inherit; font-size: 40px; line-height: 58px; font-weight: 400; text-transform: uppercase;
  color: var(--c-black); background: none; border: 0; padding: 3px 0 4px; cursor: pointer; text-align: left;
  transition: color .25s var(--ease);
}
.site-menu__list a:hover, .site-menu__list button:hover,
.site-menu__list .is-active > button { color: var(--c-orange); }
.site-menu.is-open .site-menu__list li { opacity: 1; }
.site-menu.is-open .site-menu__list li:nth-child(1) { transition-delay: .5s; }
.site-menu.is-open .site-menu__list li:nth-child(2) { transition-delay: .6s; }
.site-menu.is-open .site-menu__list li:nth-child(3) { transition-delay: .7s; }
.site-menu.is-open .site-menu__list li:nth-child(4) { transition-delay: .8s; }
.site-menu.is-open .site-menu__list li:nth-child(5) { transition-delay: .9s; }
.site-menu.is-open .site-menu__list li:nth-child(6) { transition-delay: 1s; }
.site-menu.is-open .site-menu__list li:nth-child(7) { transition-delay: 1.1s; }

/* Sub panel 468px (Products / Projects) — slides out from behind the main panel */
.site-menu__sub {
  position: absolute; top: 0; bottom: 0; left: 486px;
  z-index: 2;
  width: 468px;
  background: var(--c-sand);
  border-right: 1px solid var(--c-black);
  padding: 179px 0 40px 41px;
  transform: translateX(-100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform .8s var(--menu-ease), visibility 0s .8s;
}
.site-menu__sub.is-open { transform: none; visibility: visible; transition: transform .8s var(--menu-ease); }
.site-menu.is-closing .site-menu__sub { opacity: 0; transition: opacity .5s var(--line-ease); }

.site-menu__sub-head { display: flex; justify-content: space-between; align-items: center; width: 366px; }
.site-menu__back { display: none; }
.site-menu__sub-head .btn--outline-sm { min-width: 0; padding: 0 11px; }

.site-menu__sublist { margin: 46px 0 0; padding: 0; list-style: none; width: 366px; }
.site-menu__sublist li { margin-bottom: 21px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--line-ease), transform .6s var(--line-ease); }
.site-menu__sub.is-open .site-menu__sublist li { opacity: 1; transform: none; }
.site-menu__sublist a {
  position: relative; display: block;
  font-size: 20px; line-height: 30px; font-weight: 400; text-transform: uppercase;
  padding: 5px 0;
  border-bottom: 1px solid var(--c-black);
  transition: color .25s var(--ease);
}
.site-menu__sublist a::after {              /* orange indicator: 1px in Figma, grows on hover */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 1px;
  background: var(--c-orange);
  transition: width .5s var(--line-ease);
}
.site-menu__sublist a:hover { color: var(--c-orange); }
.site-menu__sublist a:hover::after { width: 100%; }
.site-menu__sub.is-open .site-menu__sublist li { transition-delay: calc(.15s + var(--i, 0) * .06s); }

body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .site-menu { top: 84px; }
  .site-menu__panel { width: 100%; border-right: 0; }
  .site-menu__panel::before { display: none; }
  .site-menu__logo { display: none; }
  .site-menu__list { left: 20px; right: 20px; top: 62px; }
  .site-menu__list li { margin-bottom: 26px; }
  .site-menu__list a, .site-menu__list button { font-size: 42px; line-height: 42px; padding: 5px 0; }
  .site-menu__sub { left: 0; width: 100%; z-index: 4; border-right: 0; padding: 62px 20px 40px; transform: translateX(100%); }
  .site-menu__sub-head { width: 100%; }
  .site-menu__back { display: inline-flex; }
  .site-menu__sub-head .btn--outline-sm { padding: 0 14px; }
  .site-menu__sublist { width: 100%; margin-top: 40px; }
  .site-menu__sublist li { margin-bottom: 21px; }
  .site-menu__sublist a { font-size: 19px; }
}
@media (max-width: 620px) {
  .site-menu { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu__panel, .site-menu__sub, .site-menu__overlay, .site-menu__list li, .site-menu__sublist li, .menu-toggle__words { transition: none !important; }
}

/* ==========================================================================
   Line animations (decorsystems-style: lines draw from their centre when they
   enter the viewport — 1.2s sine.inOut, 0.15s delay; small dividers from the
   left in 0.5s). Only active when JS is available (html.js); the page renders
   with static lines otherwise.
   ========================================================================== */
:root { --line-ease: cubic-bezier(.37, 0, .63, 1); }   /* ≈ sine.inOut */

.js .rails::before,
.js .rails::after {
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 1.2s var(--line-ease) .15s;
}
.js .rails.is-drawn::before,
.js .rails.is-drawn::after { transform: scaleY(1); }
.js .pc-items__divider, .js .project-info__divider { transform: scaleY(0); transform-origin: 50% 50%; transition: transform 1.2s var(--line-ease) .15s; }
.js .pc-items__divider.is-drawn, .js .project-info__divider.is-drawn { transform: scaleY(1); }

.js .line-x,
.js .site-header::after,
.js .footer__bottom::before,
.js .history__timeline::before {
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 1.2s var(--line-ease) .15s;
}
.js .line-x.is-drawn,
.js .site-header.is-drawn::after,
.js .footer__bottom.is-drawn::before,
.js .history__timeline.is-drawn::before { transform: scaleX(1); }

.js .history__timeline::before { transform-origin: 0 50%; }
.js .history__timeline span {
  opacity: 0;
  transition: opacity .5s var(--line-ease) .15s;
}
.js .history__timeline.is-drawn span { opacity: 1; }

.js .card__rule {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--line-ease) .3s;
}
.js .card.is-drawn .card__rule { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js .rails::before, .js .rails::after, .js .line-x, .js .site-header::after,
  .js .footer__bottom::before, .js .history__timeline::before, .js .card__rule {
    transform: none; transition: none;
  }
  .js .history__timeline span { opacity: 1; transition: none; }
}

/* ==========================================================================
   Reveal (progressive enhancement, added by script.js)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1439px) {
  .partners__list { width: 100%; justify-content: center; flex-wrap: wrap; gap: 20px 40px; }
  .partners__list li { margin-left: 0; }
  .partners__list img { max-width: 100%; height: auto; }
}

@media (max-width: 1200px) {
  .projects__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .projects__image img { width: 100%; }
  .history__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .history__figure img { width: 100%; }
  .our-way__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .our-way__graph { width: 100%; max-width: 520px; margin-left: 0; }
  .products__intro { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .br-desktop { display: none; }
  .section-title { line-height: 1; }
  .hero__top { padding-top: 32px; }
  .manifesto { padding: 70px 0 100px; }
  .manifesto__text { margin: 48px 0 90px; }
  .products { padding-top: 90px; }
  .products__intro { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 50px; }
  .products__copy { max-width: 554px; }
  .products__slider-wrap { padding: 50px 0 40px; }
  .history { padding: 90px 0 110px; }
  .history__grid { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; }
  .history__text { max-width: 554px; }
  .our-way { padding: 90px 0 110px; }
  .our-way::before, .our-way::after { top: 91px; }
  .our-way__grid { grid-template-columns: 1fr; gap: 48px; padding: 40px 0; justify-items: start; }
  .our-way__copy { padding-top: 0; }
  .partners { padding: 60px 0; }
  .projects { padding-top: 70px; }
  .projects__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 50px; }
  .projects__copy .section-title { margin-bottom: 32px; }
  .projects__statement { padding: 56px 0 64px; }
  .news { padding: 110px 0 120px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .rails::before, .rails::after { display: none; }
  .hero__rule, .manifesto__rule--bottom, .history__timeline { margin-left: var(--gutter); margin-right: var(--gutter); }
  .site-header__inner { padding: 18px 0 17px; }
  .site-header__logo img { width: 160px; height: auto; }
  .hero__meta { flex-direction: column; gap: 24px; padding-bottom: 28px; }
  .hero__espa { width: 240px; height: auto; margin-top: 0; }
  .contact { padding: 40px 0 48px; }
  .contact-box { margin-top: 40px; padding: 28px 110px 40px 32px; }
  .contact-box__arrow { top: 16px; right: 16px; width: 64px; height: 64px; }
  .contact-box__text { margin-top: 14px; }
}

@media (max-width: 620px) {
  /* ---- Figma "landing page mobile" (390px) ---- */
  .br-mobile { display: inline; }
  .section-title { font-size: 32px; line-height: 58px; }
  .btn { font-size: 14px; line-height: 24px; padding: 3px 16px; }      /* 123 x 32 */
  .btn--sm { font-size: 15px; padding: 1px 16px; }                      /* 107 x 28 */
  .card__title { font-size: 20px; line-height: 26px; }

  /* Header 84px */
  .site-header__inner { padding: 35px 0 16px; }
  .site-header__logo img { width: 148px; height: 33px; }
  .menu-toggle { margin: 1px 7px 0 0; }
  .menu-toggle__label { display: none; }
  .menu-toggle__icon { width: 30px; height: 26px; }
  .menu-toggle__icon i { height: 3.25px; }
  .menu-toggle__icon i:nth-child(1) { top: 0; left: auto; right: 0; width: 18.33px; }
  .menu-toggle__icon i:nth-child(2) { top: 11.375px; }
  .menu-toggle__icon i:nth-child(3) { top: 22.75px; width: 18.33px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1),
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { width: 30px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(1) { transform: translateY(11.375px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:nth-child(3) { transform: translateY(-11.375px) rotate(-45deg); }

  /* Hero */
  .hero__top { padding-top: 20px; }
  .hero__title { font-size: 34px; line-height: 42px; }
  .hero__rule { margin: 25px 0 0; }
  .hero__meta { flex-direction: row; align-items: flex-start; gap: 16px; padding: 16px 0; }
  .hero__subtitle { flex: 0 0 244px; font-size: 16px; line-height: 22px; }
  .hero__espa { display: block; flex: 0 0 82px; margin: 7px 8px 0 0; }
  .hero__espa img { width: 82px; height: 63px; }
  .hero__image img, .hero__image video { aspect-ratio: 390 / 403; }

  /* Manifesto */
  .manifesto { padding: 45px 0 62px; }
  .manifesto__rule--bottom { margin-left: 0; margin-right: 0; }
  .manifesto__text { font-size: 28px; line-height: 40px; margin: 45px 0 92px; }
  .accent--brand { font-size: 30px; }

  /* Products */
  .products { padding: 58px 0 48px; }
  .products__intro { grid-template-columns: 1fr; gap: 0; padding: 24px 0 45px; }
  .products__copy p { font-size: 14px; line-height: 20px; }
  .products__copy .btn { margin-top: 48px; }
  .products__pin .card-slider { padding-top: 33px; padding-bottom: 32px; }
  .card-slider { padding-left: var(--gutter); }
  .card-slider > .card { flex-basis: 295px; }

  /* Our history */
  .history { padding: 38px 0 52px; }
  .history__timeline { height: 10px; margin: 11px 0 0 var(--gutter); }
  .history__timeline::before { top: 5px; }
  .history__timeline span { width: 10px; height: 10px; }
  .history__grid { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .history__text { max-width: none; padding-top: 0; font-size: 14px; line-height: 20px; }
  .history__text p + p { margin-top: 20px; }
  .history__figure { margin-top: 23px; }
  .history__figure img { width: 100%; aspect-ratio: 350 / 275; }
  .history__figure figcaption { margin-top: 10px; font-size: 12px; line-height: 16px; }

  /* Our Way */
  .our-way { padding: 50px 0 41px; }
  .our-way__grid { grid-template-columns: 1fr; gap: 0; padding: 34px 0 61px; justify-items: stretch; }
  .our-way__graph { width: 304px; max-width: 304px; margin: 0 auto; }
  .our-way__title { font-size: 32px; line-height: 58px; }
  .our-way__copy { max-width: none; padding-top: 42px; }
  .our-way__heading { font-size: 28px; line-height: 34px; }
  .our-way__copy p { margin-top: 23px; font-size: 14px; line-height: 20px; }
  .our-way__copy .btn { margin: 33px 0 0 12px; padding: 3.5px 24px; }  /* 139 x 33 */

  /* Partner logos: horizontal strip */
  .partners { padding: 28px 0; }
  .partners__list { flex-wrap: nowrap; justify-content: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .partners__list::-webkit-scrollbar { display: none; }
  .partners__list img { max-width: none; max-height: none; width: auto; }
  .partners__list li:nth-child(1) { margin-left: 24px; }
  .partners__list li:nth-child(1) img { width: 167px; height: 54px; }
  .partners__list li:nth-child(2) { margin-left: 48px; }
  .partners__list li:nth-child(2) img { width: 115px; height: 109px; }
  .partners__list li:nth-child(3) { margin-left: 15px; }
  .partners__list li:nth-child(3) img { width: 196px; height: 196px; }
  .partners__list li:nth-child(4) { margin-left: 22px; }
  .partners__list li:nth-child(4) img { width: 243px; height: 81px; }
  .partners__list li:nth-child(5) { margin-left: 54px; }
  .partners__list li:nth-child(5) img { width: 294px; height: 294px; }
  .partners__list li:nth-child(6) { margin-left: 38px; margin-right: 24px; }
  .partners__list li:nth-child(6) img { width: 184px; height: 184px; }

  /* Projects */
  .projects { padding: 63px 0 31px; }
  .projects__rule--top { display: block; }
  .projects__grid { grid-template-columns: 1fr; gap: 0; padding: 34px 0 38px; }
  .projects__copy .section-title { margin-bottom: 13px; }
  .projects__copy p { font-size: 14px; line-height: 20px; max-width: 326px; }
  .projects__copy .btn { margin-top: 23px; }
  .projects__image { padding-top: 79px; margin: 0 calc(var(--gutter) * -1); }
  .projects__image img { width: 100%; aspect-ratio: 390 / 287; }
  .projects__statement { font-size: 32px; line-height: 40px; padding: 51px 0 58px; }

  /* News: horizontal slider */
  .news { padding: 125px 0 100px; }
  .news-grid {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--gutter);
    scrollbar-width: none;
    margin: 51px calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter);
  }
  .news-grid::-webkit-scrollbar { display: none; }
  .card--news { flex: 0 0 298px; scroll-snap-align: start; padding: 19px; }
  .card--news .card__image { aspect-ratio: 258 / 167; }

  /* Contact */
  .contact { padding: 54px 0 87px; }
  .contact-box { margin-top: 76px; padding: 32px 45px 30px; }
  .contact-box__title { font-size: 32px; line-height: 58px; }
  .contact-box__text { margin-top: 62px; font-size: 20px; line-height: 26px; max-width: 259px; }
  .contact-box__arrow { top: 22px; right: 25px; width: 43px; height: 43px; }

  /* Footer */
  .footer { padding-top: 24px; }
  .footer__rule { display: block; height: 1px; background: var(--c-white); }
  .footer__top { grid-template-columns: 180px 1fr; gap: 0; padding: 32px 0 19px; }
  .footer__col:first-child { padding-left: 2px; }
  .footer__heading { margin-top: 0; font-size: 13px; letter-spacing: 1.3px; }
  .footer__menu { margin-top: 19px; font-size: 13px; line-height: 30px; text-transform: uppercase; }
  .footer__address { margin-top: 11px; font-size: 13px; line-height: 26px; max-width: 123px; }
  .footer__col--brand { grid-column: 2; margin-top: 13px; }
  .footer__logo { width: 123px; height: 27px; }
  .footer__espa { margin-top: 18px; width: 123px; padding: 13px 8px 13px 7px; }
  .footer__espa img { width: 108px; height: 83px; }
  .footer__credits { display: none; }
  .footer__bottom { padding-bottom: 43px; }
  .footer__bottom-inner { display: none; }
}
