/* ==========================================================================
   Temas Technologies – Homepage (static rebuild, no Framer runtime)
   Breakpoints mirror the original: desktop ≥1200, tablet 860–1199, phone <860
   ========================================================================== */

@font-face {
  font-family: "Nohemi";
  src: url("../assets/fonts/nohemi-light.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --dark: #191919;
  --white: #fff;
  --red: #e03c31;            /* Pantone 179 C */
  --grey: #75787b;           /* Pantone Cool Gray 9 C (replaces the former blue accent) */
  --gutter: 50px;
  --ease: cubic-bezier(.44, 0, .56, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nohemi", Arial, sans-serif;
  font-weight: 400;
  color: var(--dark);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
address { font-style: normal; }

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: #fff; color: var(--dark);
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.intro:focus-visible { outline: none; }

/* ---------- Type presets ---------- */
.t-small {           /* 14 / 1.35 / 0.04em */
  font-size: 14px; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase;
}
.t-label {           /* 14 / 1.25 / 0.05em / light */
  font-size: 14px; line-height: 1.25; letter-spacing: .05em; text-transform: uppercase; font-weight: 300;
}
.t-h4 {
  font-size: 25px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase;
}

/* ---------- Progress bar ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60;
  background: rgba(255, 255, 255, .3);
  pointer-events: none;
}
.progress__line { height: 100%; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white); }
.nav__head {
  position: relative; z-index: 2;
  height: 107px; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 44px var(--gutter) 0;
  transition: background-color .4s var(--ease);
}
.nav.is-solid .nav__head { background: var(--dark); }
.nav__logo { display: flex; align-items: center; gap: 9px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); flex: none; }
.nav__logo .t-small { line-height: 1.35; }

.nav__toggle { display: flex; align-items: flex-start; gap: 28px; height: 19px; margin-top: 1px; }
.burger { margin-top: 2px; }
.nav__label { position: relative; display: block; height: 19px; overflow: hidden; text-align: left; width: 47px; }
.nav__label span { display: block; transition: transform .5s var(--ease-out); }
.nav.is-open .nav__label span { transform: translateY(-100%); }
.burger { position: relative; width: 67px; height: 9px; display: block; }
.burger i { position: absolute; right: 0; height: 1px; background: var(--red); transition: width .5s var(--ease-out), transform .5s var(--ease-out); }
.burger i:first-child { top: 0; width: 67px; }
.burger i:last-child { top: 8px; width: 26px; }
.nav__toggle:hover .burger i:last-child { width: 67px; }
.nav.is-open .burger i { background: #fff; }
.nav.is-open .burger i:first-child { width: 26px; }
.nav.is-open .burger i:last-child { width: 67px; }

/* Menu drawer */
.menu { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.menu__overlay {
  position: absolute; inset: 0;
  background: rgba(26, 26, 26, .4);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .6s var(--ease);
}
.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 360px;
  background: var(--dark);
  padding: 130px var(--gutter) 0;
  transform: translateX(100%);
  transition: transform .7s var(--ease-out);
}
.nav.is-open .menu { pointer-events: auto; }
.nav.is-open .menu__overlay { opacity: 1; }
.nav.is-open .menu__panel { transform: none; }
.nav.is-open .nav__head { background: transparent; }
.menu__panel li { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.menu__panel a {
  display: flex; align-items: center; justify-content: space-between;
  height: 85px; padding-bottom: 0;
}
.menu__dot { width: 12px; height: 12px; display: grid; place-items: center; }
.menu__dot::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: #fff;
  transform: scale(.35); transition: transform .4s var(--ease-out), background-color .4s;
}
.menu__panel a:hover .menu__dot::after { transform: scale(2.4); background: var(--red); }
.menu__panel li { opacity: 0; transform: translateX(30px); transition: opacity .5s, transform .6s var(--ease-out); }
.nav.is-open .menu__panel li { opacity: 1; transform: none; }
.nav.is-open .menu__panel li:nth-child(1) { transition-delay: .15s; }
.nav.is-open .menu__panel li:nth-child(2) { transition-delay: .2s; }
.nav.is-open .menu__panel li:nth-child(3) { transition-delay: .25s; }
.nav.is-open .menu__panel li:nth-child(4) { transition-delay: .3s; }
.nav.is-open .menu__panel li:nth-child(5) { transition-delay: .35s; }
.nav.is-open .menu__panel li:nth-child(6) { transition-delay: .4s; }

/* ---------- Page stacking (footer reveal) ---------- */
.page { position: relative; z-index: 2; background: var(--dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--dark); color: var(--white); overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.is-ready > .hero__video { opacity: 1; }
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__word {
  position: absolute; left: 0; right: 0; top: calc(50% + 15px);
  text-align: center; text-transform: uppercase; white-space: nowrap;
  line-height: .8;
  /* mask: each word lives inside its own line box and slides vertically */
  transform: translateY(-50%);
  clip-path: inset(0 -5% 0 -5%);
}
.hero__word--a { font-size: 13vw;  letter-spacing: -.03em; }
.hero__word--b { font-size: 10vw;  letter-spacing: -.03em; }
.hero__word > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease-out); padding-top: .06em; }
.hero__word.is-in > span { transform: none; }
.hero__word.no-anim > span { transition: none; }
.hero__word.is-out > span { transform: translateY(-110%); }

.hero__hint {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 154px; height: 90px; padding-top: 20px;
  display: flex; flex-direction: column; align-items: center;
}
.hero__line { position: relative; width: 1px; height: 44px; margin-top: 7px; overflow: hidden; }
.hero__line i { position: absolute; left: 0; top: 7px; width: 1px; height: 40px; background: #fff; animation: bouncy 1.6s var(--ease) infinite alternate; }
@keyframes bouncy { from { transform: translateY(-8px); } to { transform: translateY(8px); } }

/* ---------- Track ---------- */
.track { position: relative; background: #e3e3e3; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center;
  width: 183px; height: 38px; border-radius: 8px; overflow: hidden;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  color: #fff;
}
.btn--light { background: rgba(26, 26, 26, .08); }
.btn--glass { background: rgba(255, 255, 255, .3); }
.btn__icon { position: relative; width: 49px; height: 38px; flex: none; display: grid; place-items: center; }
.btn__circle {
  position: absolute; left: 10px; top: 4.5px; width: 29px; height: 29px; border-radius: 91px;
  background: var(--dark); mix-blend-mode: multiply;
  transform-origin: 50% 50%; transition: transform .6s var(--ease-out);
}
.btn--glass .btn__circle { background: var(--red); }
.btn__icon svg { position: relative; width: 14px; height: 9px; overflow: visible; transition: transform .5s var(--ease-out); }
.btn__label { flex: 1; text-align: center; padding-right: 14px; position: relative; }
.btn:hover .btn__circle { transform: scale(13); }
.btn:hover .btn__icon svg { transform: translateX(4px); }
/* light buttons: dark label (white only once the dark circle has filled the button on hover) */
.btn--light .btn__label { color: var(--dark); transition: color .35s var(--ease); }
.btn--light:hover .btn__label { color: #fff; }

/* ---------- Section title (line + label) ---------- */
.section-title { padding: 0 var(--gutter); height: 37px; position: relative; color: var(--red); }
.section-title__line { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--grey); }
.section-title h2 { padding-top: 19px; }

/* ---------- Intro ---------- */
.intro {
  background: #fff;
  padding: 90px var(--gutter) 31px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.intro__lead { max-width: 870px; color: var(--dark); }
.intro__big {
  max-width: 940px; margin-top: 65px;
  font-size: 56px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase;
}
.intro .btn { margin-top: 74px; }

/* ---------- Products ---------- */
.products { background: #fff; padding: 50px 0 50px; overflow-x: clip; }
.products__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 85vh; align-items: center; }
.product { position: relative; height: 420px; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); }
.product__img { display: none; }
.product__label { display: inline-flex; align-items: flex-start; gap: 10px; transition: opacity .4s; }
.product__label .t-small { line-height: 1.35; }
.products__claim {
  max-width: 1028px; margin: 0 auto 23px; text-align: center;
  font-size: 22px; line-height: 1.2; font-weight: 300; text-transform: uppercase;
}

/* magnetic image (anchored to its column, drifts toward the pointer) */
.product__media {
  position: absolute; left: -30px; right: -30px; top: 0; bottom: 0;
  border-radius: 5px; overflow: hidden; opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease); will-change: transform;
}
.product__media img { width: 100%; height: 100%; object-fit: contain; }   /* photos are cropped around the product: show it whole */
.product:hover .product__media { opacity: 1; }
.product__label { position: relative; }

/* Desktop: product photo always visible, placed above its title (still drifts toward the
   pointer and shows the "Learn more" cursor on hover). Tablet/phone keep their image cards. */
@media (min-width: 1200px) {
  .product { height: auto; flex-direction: column; gap: 32px; }
  .product__media {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    width: min(100%, 560px); aspect-ratio: 4 / 3; opacity: 1; overflow: visible; border-radius: 0;
  }
  /* photos are cropped around the product; multiply melts their white backdrop into the page */
  .product__media img { position: absolute; inset: 0; object-fit: contain; mix-blend-mode: multiply; }
}

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* "Learn more" cursor */
.lm-cursor {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 185px; height: 185px; margin: -92.5px 0 0 -92.5px; border-radius: 200px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; scale: .5; transition: opacity .35s var(--ease), scale .5s var(--ease-out);
  will-change: transform;
}
.lm-cursor svg { width: 14px; height: 9px; }
.lm-cursor.is-visible { opacity: 1; scale: 1; }

/* ---------- What we do ---------- */
.wwd { position: relative; height: 130vh; background: var(--dark); }
.wwd__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.wwd__card {
  position: absolute; inset: 0; overflow: hidden; border-radius: 5px;
  transform: translateY(120px) scale(.5); will-change: transform;
}
.wwd__img { position: absolute; inset: 0; transform: translateY(-100px) scale(2.6); will-change: transform; }
.wwd__img img { width: 100%; height: 100%; object-fit: cover; }
.wwd__title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-bottom: 30px; }
.wwd__h {
  color: #fff; text-transform: uppercase; white-space: nowrap;
  font-size: 10vw; line-height: .8; letter-spacing: -.03em;
  transform: translateY(1328px) scale(6.5); will-change: transform;
}
.wwd__ctas {
  position: absolute; left: 0; right: 0; bottom: 0; height: 213px; padding-top: 2px;
  display: flex; justify-content: center; gap: 50px;
  transform: translateY(426px); will-change: transform;
}

/* ---------- Certifications ---------- */
.certs { background: var(--dark); color: #fff; padding: 50px 0 80px; }
.section-title--dark { color: var(--red); }
.certs__combo { position: relative; margin: -1px var(--gutter) 0; display: flex; }
.certs__sticky {
  position: sticky; top: 70px; height: 600px; flex: 1; min-width: 0;
  display: flex; gap: 50px; padding-top: 50px;
}
.certs__numbers { width: calc(25% - 37px); height: 300px; overflow: hidden; flex: none; }
.certs__reel { transition: transform .9s var(--ease-out); }
.certs__reel span {
  display: flex; align-items: center; height: 300px;
  color: var(--red); font-size: 11vw; line-height: .8; letter-spacing: -.00025em;
}
.certs__list { flex: 1; min-width: 0; }
.acc { border-bottom: 1px solid rgba(255, 255, 255, .7); }
.acc__head { position: relative; height: 128px; display: flex; align-items: center; justify-content: space-between; color: var(--grey); }
.acc__head h3 { padding-right: 60px; }
.plus { position: relative; width: 50px; height: 50px; flex: none; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 50px; height: 1px; background: #fff;
  transition: transform .6s var(--ease-out), background-color .4s;
}
.plus::after { transform: rotate(90deg); }
.acc.is-open .plus::before, .acc.is-open .plus::after { background: var(--grey); }
.acc.is-open .plus::after { transform: rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.acc__body > div { overflow: hidden; }
.acc__body p { max-width: 540px; padding: 21px 0 57px; opacity: 0; transition: opacity .5s var(--ease); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc.is-open .acc__body p { opacity: 1; transition-delay: .2s; }
.certs__steps { width: 1px; flex: none; padding: 50px 0 51px; }
.certs__steps > div { height: calc(46.1vh - 92px); }
.certs__steps > .certs__post { height: calc(32.2vh + 4px); }

/* ---------- Downloads ---------- */
.downloads {
  background: var(--dark); color: #fff; height: 500px;
  display: flex; flex-direction: column; align-items: center; padding: 117px 20px 0;
  text-align: center;
}
.downloads__widget { margin-top: 39px; height: 199px; display: flex; align-items: center; gap: 10px; font-family: "Inter", sans-serif; font-size: 14px; letter-spacing: -.01em; line-height: 1; }
.downloads__btn { background: #fff; color: #000; border-radius: 100px; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; }
.downloads__list { display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--dark); border-radius: 100px; padding: 9px 12px; font-weight: 600; }
.downloads__list a:hover { opacity: .6; }

/* ---------- Footer (sticky reveal) ---------- */
.footer {
  position: sticky; bottom: 0; z-index: 1;
  height: 460px; background: var(--dark); color: #fff;
  padding: 65px 25px 50px;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }
.footer__col { position: relative; padding: 0 25px; display: flex; flex-direction: column; justify-content: space-between; }
.footer__col--line::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .3); }
.footer__text { display: flex; flex-direction: column; }
.footer__text .muted { color: rgba(255, 255, 255, .3); }
.footer__text small { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.footer a:hover { opacity: .6; }

/* ==========================================================================
   Tablet 860–1199
   ========================================================================== */
@media (min-width: 860px) and (max-width: 1199.98px) {
  /* intro */
  .intro__big { font-size: 46px; max-width: 840px; }
  .intro .btn { margin-top: 75px; }

  /* products: blue duotone cards */
  .products__grid { height: 70vh; gap: 20px; padding: 0 20px; }
  .product { height: 290px; border-radius: 5px; overflow: hidden; padding: 0 50px; }
  .product__media { inset: 0; opacity: 1; transform: none !important; border-radius: 0; }
  .product::after { content: ""; position: absolute; inset: 0; background: var(--grey); mix-blend-mode: multiply; pointer-events: none; }
  .product__label { z-index: 1; }
  .products { padding-bottom: 0; }
  .product .t-h4 { white-space: nowrap; }
  .products__claim { margin-bottom: 73px; }
  .lm-cursor { display: none; }

  /* what we do */

  /* certifications */
  .certs__steps { padding-bottom: 49px; }
}

/* ==========================================================================
   Phone <860
   ========================================================================== */
@media (max-width: 859.98px) {
  :root { --gutter: 20px; }

  /* nav + menu */
  .nav__head { height: 68px; padding-top: 27px; }
  .menu__panel { width: calc(100% - 55px); padding: 130px 20px 0; }

  /* hero (same vw scale as desktop, no scroll hint on phone) */
  .hero__word { top: calc(50% + 12px); }
  .hero__hint { display: none; }

  /* intro – the lead keeps its fixed 870px box and is clipped, as in the original */
  .intro { padding: 50px 20px 60px; overflow: hidden; }
  .intro__lead { width: 870px; max-width: none; flex: none; }
  .intro__big { margin-top: 60px; max-width: 430px; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
  .intro .btn { margin-top: 70px; }
  .intro { padding-bottom: 59px; }

  /* products: static cards */
  .products { padding: 0; }
  .products .section-title { display: none; }
  .products__grid { height: auto; grid-template-columns: 1fr; gap: 20px; padding: 20px; max-width: 470px; margin: 0 auto; }
  .product { height: auto; aspect-ratio: 335 / 376; border-radius: 5px; overflow: hidden; padding: 0 20px; text-align: center; }
  .product__media { inset: 0; opacity: 1; transform: none !important; border-radius: 0; }
  .product::after { content: ""; position: absolute; inset: 0; background: rgba(26, 26, 26, .2); mix-blend-mode: multiply; pointer-events: none; }
  .product__label { z-index: 1; }
  .product__label .t-small { display: none; }
  .product .t-h4 { font-size: 16px; line-height: 1.1; letter-spacing: -.02em; }
  .products { padding-bottom: 11px; }
  .products__claim { margin: 0 auto; max-width: 377px; font-size: 13px; line-height: 1.25; letter-spacing: -.01em; }
  .lm-cursor { display: none; }

  /* what we do */
  .wwd__h { font-size: max(40px, 10vw); }
  .wwd__ctas { height: 271px; padding-top: 1px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 20px; }

  /* certifications: number above, accordion below */
  .certs { padding: 20px 0 80px; }
  .certs__sticky { top: 30px; height: auto; align-self: flex-start; flex-direction: column; gap: 20px; padding-top: 30px; }
  .certs__numbers { width: 100%; height: 80px; }
  .certs__reel span { height: 80px; font-size: max(65px, 11vw); }
  .acc__head { height: auto; padding: 33px 0; align-items: flex-start; }
  .acc__head h3 { max-width: 225px; padding-right: 0; }
  .acc__head .plus { margin-top: -16px; margin-bottom: -16px; align-self: center; }
  .acc__body p { max-width: 330px; padding: 11px 0 35px; }
  .certs__steps > div { height: calc(46.1vh - 81px); }

  /* downloads */
  .downloads { height: 200px; justify-content: center; padding: 0 20px; gap: 19px; }
  .downloads .t-h4 { width: 100%; }
  .downloads__widget { margin-top: 0; flex: none; }

  /* footer: stacked groups separated by lines (still revealed on scroll) */
  .footer { height: auto; padding: 35px 20px 24px; }
  .footer__cols { grid-template-columns: 1fr; height: auto; }
  .footer__col { padding: 0 0 19px; justify-content: flex-start; }
  .footer__col + .footer__col { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .3); }
  .footer__col > :first-child { min-height: 53px; }
  .footer__col--line::before { display: none; }
}

/* ==========================================================================
   Short landscape screens (phones turned sideways): the sticky blocks are
   taller than the screen, so lay them out flat instead
   ========================================================================== */
@media (max-height: 560px) and (orientation: landscape) {
  .wwd__ctas { height: auto; top: auto; bottom: 20px; padding: 0; flex-direction: row; justify-content: center; gap: 20px; }
  .certs__sticky { position: relative; top: auto; }
  .certs__steps { display: none; }
  .certs__numbers { display: none; }
  .acc__body { grid-template-rows: 1fr; }
  .acc__body p { opacity: 1; }
  .acc .plus::before, .acc .plus::after { background: var(--grey); }
  .acc .plus::after { transform: rotate(0deg); }
}

/* ==========================================================================
   Without JavaScript: show the final state of every scroll/intro effect
   ========================================================================== */
.no-js .hero__video, .no-js .page-hero__title > span { opacity: 1; transform: none; }
.no-js .hero__word--a > span, .no-js .hero__word--a { transform: translateY(-50%); }
.no-js .hero__word--a { color: #fff; }
.no-js .hero__word--b { display: none; }
.no-js .wwd__card, .no-js .wwd__img, .no-js .wwd__h, .no-js .wwd__ctas { transform: none; }
.no-js .acc__body { grid-template-rows: 1fr; }
.no-js .acc__body p { opacity: 1; }

/* Note: the original Framer site does not honour prefers-reduced-motion,
   so motion is kept identical here. Add a reduced-motion block if desired. */
