/* =====================================================================
   Home (Figma 12884:5779, "1 - Home Desktop (1920)"). Figma measurements at 1920 px wide.
   ===================================================================== */
html, body { background: var(--white); }
main { overflow: clip; }

.t-head-56 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 2.9167vw, 56px); line-height: 1.04; letter-spacing: 0.01em; text-transform: uppercase; }
.h-tag { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ice-blue); color: var(--orange); }
.h-tag::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--orange); }
.h-tag--center { display: inline-flex; border-bottom-color: rgba(21, 21, 21, 0.08); }
.h-tag--dark { border-bottom-color: rgba(255, 255, 255, 0.08); }
.h-tag--blue-text { color: var(--light-blue); }
.h-mesh { position: absolute; left: 0; width: 100%; height: auto; pointer-events: none; opacity: 0.62; }
/* The mesh fades at the edges: without this the end of the image showed as a straight line across the section. */
.h-mesh { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 62%, transparent 100%); }

/* button secondary (white outline or text with arrow) */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 8px 0 16px;
  border: 1px solid var(--white); border-radius: var(--radius-md); color: var(--white); letter-spacing: 0.01em; white-space: nowrap;
}
.btn-outline--sm { height: 40px; padding: 0 0 0 0; border: 0; }
.btn-outline svg { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover svg { transform: translate(2px, -2px); }
}

/* ---------- 01 · Hero ---------- */
.home-hero { position: relative; height: max(640px, min(912px, 100svh)); padding: 16px; }
.home-hero__media { position: absolute; inset: 16px; overflow: hidden; border-radius: 16px; background: var(--black); }
.home-hero__video { width: 100%; height: 100%; object-fit: cover; }
/* Figma gradients over the video: dark base for the white text, light shadow at the top for the menu. */
.home-hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(21, 21, 21, 0.3) 0%, rgba(21, 21, 21, 0) 20%, rgba(21, 21, 21, 0) 42%, rgba(21, 21, 21, 0.6) 66%, rgba(21, 21, 21, 0.9) 100%); }
.home-hero__copy {
  position: absolute; left: var(--page-gutter); right: var(--page-gutter); bottom: clamp(56px, 5.8333vw, 112px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; color: var(--white);
}
.home-hero__tag { display: inline-block; margin-bottom: 40px; padding: 12px 16px; border-left: 2px solid var(--light-blue); }
.home-hero__title { max-width: 1005px; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 3.75vw, 72px); line-height: 1.04; text-transform: uppercase; }
.home-hero__title span { color: var(--light-blue); }
.home-hero__side { display: flex; flex-direction: column; gap: 64px; max-width: 595px; }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; }
.home-hero__actions .btn-primary { width: 231px; }
.home-hero__actions .btn-primary__label { width: 180px; }

/* ---------- Numbers ---------- */
.numbers { display: flex; justify-content: center; gap: 0; padding: 56px var(--page-gutter); border-bottom: 1px solid var(--ice-blue); }
.stat { display: flex; flex-direction: column; gap: 24px; padding: 0 76px; }
.stat__text { max-width: 305px; }
.stat + .stat { border-left: 1px solid var(--ice-blue); }
.stat__head { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 3.3333vw, 64px); line-height: 0.96; text-transform: uppercase; }
.stat__caption { color: var(--blue); }
.stat__text { opacity: 0.64; }

/* ---------- 02 · Why we exist (Figma: section 2) ---------- */
/* Thin vertical lines (black 8%) aligned with the margin, running through this section and the next. */
.lined {
  position: relative;
  background-image: linear-gradient(rgba(21, 21, 21, 0.08), rgba(21, 21, 21, 0.08)), linear-gradient(rgba(21, 21, 21, 0.08), rgba(21, 21, 21, 0.08));
  background-size: 1px 100%, 1px 100%; background-repeat: no-repeat;
  background-position: left var(--page-gutter) top 0, right var(--page-gutter) top 0;
}
/* Blue cross (12 x 12) where the lines meet. */
.cross { position: absolute; z-index: 1; width: 13px; height: 13px; margin: -6px 0 0 -6px; pointer-events: none;
  background: linear-gradient(var(--blue), var(--blue)) center / 1px 100% no-repeat, linear-gradient(var(--blue), var(--blue)) center / 100% 1px no-repeat; }
.why { padding: clamp(120px, 11.46vw, 220px) var(--page-gutter) 0; }
/* Light dot grid in the background (Figma layer "background > malha", i.e. mesh, 30%), fading towards the edges. */
.why::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(21, 21, 21, 0.14) 1px, transparent 1.6px) 0 0 / 37px 37px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 100%);
}
.why > * { position: relative; }
.why__grid { display: grid; grid-template-columns: 795fr 143fr 822fr; align-items: start; }
.why__media { grid-column: 1; aspect-ratio: 795 / 517; overflow: hidden; border-radius: var(--radius-sm); }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__body { grid-column: 3; display: flex; flex-direction: column; align-items: flex-start; }
.why__body .h-tag { align-self: stretch; }
.why__title { max-width: 631px; margin-top: clamp(56px, 6.6vw, 127px); }
.why__text { max-width: 708px; margin-top: clamp(24px, 2.45vw, 47px); opacity: 0.72; }
.why__body .btn-primary { width: 267px; height: 54px; margin-top: clamp(40px, 5.2vw, 100px); }
.why__body .btn-primary__label { width: 216px; }
.why__body .btn-primary__icon, .why__body .btn-primary__label { height: 54px; }
/* Section footer divider: mirrored stepped line, mark in the centre (8%) and crosses where it meets the lines. */
.lined-divider { position: relative; height: 59px; margin: clamp(72px, 6.25vw, 120px) calc(-1 * var(--page-gutter)) 0; }
.lined-divider img { position: absolute; top: 0; width: 48.23%; max-width: none; height: auto; }
.lined-divider img:first-child { left: 0; }
.lined-divider .lined-divider__mirror { right: 0; transform: scaleX(-1); }
.lined-divider .lined-divider__mark { left: 50%; top: 27px; width: 35px; transform: translateX(-50%); }
.cross--left { left: var(--page-gutter); top: 1px; }
.cross--right { left: calc(100% - var(--page-gutter)); top: 1px; }
.cross--platform { left: calc(100% - var(--page-gutter)); top: 49px; }

/* ---------- 03 · The platform (cards that swap with Medical / Operations) ---------- */
.platform { padding: 120px var(--page-gutter) 104px; text-align: center; }
.platform__head { display: flex; flex-direction: column; align-items: center; }
.platform__title { max-width: 868px; margin-top: 40px; font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 3.3333vw, 64px); line-height: 1.04; text-transform: uppercase; }
.platform__sub { max-width: 662px; margin-top: 32px; opacity: 0.64; }
.platform__tabs { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
/* Tabs (Figma: wheel 2 > item 1 / item 3): active has a blue 8% background, double marker (14 px at 8% + 6 px) and
   16 px corner brackets on all four corners (blue, 64%); inactive is just the text at 16%. */
.platform__tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 203px; height: 54px; padding: 0 20px 0 16px; border-radius: 2px; color: var(--black); opacity: 0.16; transition: opacity 200ms ease; }
.platform__tab[aria-selected="true"] { min-width: 224px; background: rgba(102, 116, 164, 0.08); color: var(--blue); opacity: 1; }
.platform__tab[aria-selected="true"]::before { content: ""; width: 14px; height: 14px; background: linear-gradient(var(--blue), var(--blue)) center / 6px 6px no-repeat, rgba(102, 116, 164, 0.08); }
.platform__tab[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.64;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 16px 1px, linear-gradient(var(--blue), var(--blue)) 0 0 / 1px 16px,
    linear-gradient(var(--blue), var(--blue)) 100% 0 / 16px 1px, linear-gradient(var(--blue), var(--blue)) 100% 0 / 1px 16px,
    linear-gradient(var(--blue), var(--blue)) 0 100% / 16px 1px, linear-gradient(var(--blue), var(--blue)) 0 100% / 1px 16px,
    linear-gradient(var(--blue), var(--blue)) 100% 100% / 16px 1px, linear-gradient(var(--blue), var(--blue)) 100% 100% / 1px 16px;
  background-repeat: no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .platform__tab[aria-selected="false"]:hover { opacity: 0.4; }
}
.wheel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1520px; margin: 64px auto 0; text-align: left; }
.wheel__card { position: relative; aspect-ratio: 748 / 560; overflow: hidden; border-radius: var(--radius-sm); color: var(--white); transition: transform 700ms var(--ease-out); }
.wheel__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Figma darkening (card > mask): from the bottom (35% to 93% of the height) and from the left (edge to 65% of the width). */
.wheel__card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 21, 21, 0) 35.3%, rgb(21, 21, 21) 93%), linear-gradient(90deg, rgb(21, 21, 21) 0%, rgba(21, 21, 21, 0) 65.1%); }
.wheel__mask { position: absolute; inset: 0; background: rgba(230, 234, 242, 0.88); opacity: 0; transition: opacity 500ms var(--ease-out); }
.wheel__head { position: absolute; top: 40px; left: 32px; display: flex; align-items: center; gap: 8px; }
.wheel__head i { width: 4px; height: 4px; background: var(--blue); }
.wheel__body { position: absolute; left: 32px; right: 78px; bottom: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.wheel__desc { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 0.9375vw, 18px); line-height: 1.5; letter-spacing: 0.04em; }
.wheel__teaser { position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; flex-direction: column; gap: 16px; color: var(--black); opacity: 0; transition: opacity 500ms var(--ease-out); }
.wheel__teaser h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.12; text-transform: uppercase; }
.wheel__card.is-off .wheel__mask, .wheel__card.is-off .wheel__teaser { opacity: 1; }
.wheel__card.is-off .wheel__head, .wheel__card.is-off .wheel__body { opacity: 0; pointer-events: none; }
.wheel__head, .wheel__body { transition: opacity 400ms var(--ease-out); }
/* Operations active: the cards swap places. */
.wheel[data-line="ops"] .wheel__card--med { transform: translateX(calc(100% + 24px)); }
.wheel[data-line="ops"] .wheel__card--ops { transform: translateX(calc(-100% - 24px)); }
.platform__more { margin-top: 32px; }
.platform__more .btn-primary { width: 238px; }
.platform__more .btn-primary__label { width: 187px; }

/* ---------- Full-screen video ("Built for real…"); a video in Figma, its frame here ---------- */
/* Video aspect ratio (1920 × 912) at any width: the embedded text is never cropped. */
.film { position: relative; aspect-ratio: 1920 / 912; background: #0a0a0a; }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 05 · Proven in the field ---------- */
.proven { position: relative; overflow: hidden; padding: 142px var(--page-gutter) 77px; background: var(--surface-dark); color: var(--white); }
.proven .h-mesh { top: 46px; }
.proven__inner { position: relative; }
.proven .h-tag { padding-bottom: 24px; }
.proven__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; margin-top: 51px; }
.proven__title { max-width: 649px; }
.proven__stat { display: flex; gap: 16px; max-width: 548px; margin-top: 32px; }
.proven__num { flex: none; font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 5vw, 96px); line-height: 0.88; letter-spacing: -0.01em; color: var(--light-blue); }
.proven__info { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.5; letter-spacing: 0.04em; opacity: 0.64; }
.proven__grid { display: grid; grid-template-columns: 1017fr 137fr 606fr; align-items: center; margin-top: 95px; }
.proven__media { grid-column: 1; aspect-ratio: 1017 / 640; overflow: hidden; }
.proven__media img { width: 100%; height: 100%; object-fit: cover; }
.proven__quote { grid-column: 3; position: relative; margin: 0; }
/* Quote mark: Figma vector (148 x 106, blue at 4%), 113 px to the left and 53 px above the testimonial. */
.proven__quote::before { content: ""; position: absolute; left: -113px; top: -53px; width: 148px; height: 106px; background: url("../assets/quote-mark.svg") 0 0 / contain no-repeat; pointer-events: none; }
.proven__quote blockquote { max-width: 535px; margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.0833vw, 40px); line-height: 1.04; letter-spacing: 0.02em; }
.proven__quote figcaption { margin-top: 48px; color: var(--orange); }

/* ---------- 06 · In service with ---------- */
.units { position: relative; overflow: hidden; padding: 173px var(--page-gutter) 105px; background: var(--surface-dark); color: var(--white); text-align: center; }
.units .h-mesh { top: 140px; }
.units__head { position: relative; display: flex; flex-direction: column; align-items: center; }
.units .h-tag { padding-bottom: 24px; }
.units__title { max-width: 1005px; margin-top: 64px; }
.units__sub { max-width: 570px; margin-top: 22px; opacity: 0.64; }
.units__grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 31px; margin-top: 89px; }
.unit { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 273px; padding: 50px 16px 30px; border: 1px solid rgba(255, 255, 255, 0.16); }
.unit img { width: auto; height: 120px; max-width: 127px; object-fit: contain; }
.unit p { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.unit--more { justify-content: center; gap: 70px; padding-top: 80px; }
.unit--more strong { font-family: var(--font-display); font-weight: 700; font-size: 80px; line-height: 0.96; }

/* ---------- 07 · From the field (Instagram) ---------- */
.field-feed { padding: 119px var(--page-gutter) 119px; background: var(--surface-dark); color: var(--white); }
.field-feed__head { display: flex; justify-content: space-between; gap: 48px; margin-top: 48px; }
.field-feed__title { max-width: 719px; font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 3.3333vw, 64px); line-height: 1.04; text-transform: uppercase; }
.field-feed__side { max-width: 571px; }
.field-feed__side p { opacity: 0.64; }
.field-feed__follow { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.field-feed__follow svg { transition: transform 200ms var(--ease-out); }
.posts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 113px; }
.post { display: flex; flex-direction: column; gap: 12px; }
.post__head { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 16px; }
.post__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--light-blue) url("../../shared/assets/logo-mark.svg") center / 18px no-repeat; }
.post__media { aspect-ratio: 336 / 400; overflow: hidden; border-radius: 12px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .field-feed__follow:hover svg { transform: translate(2px, -2px); }
  .post:hover .post__media img { transform: scale(1.04); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-hero__copy { flex-direction: column; align-items: flex-start; gap: 32px; }
  .home-hero__side { gap: 32px; }
  .numbers { flex-direction: column; align-items: stretch; gap: 32px; }
  .stat { max-width: none; padding: 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--ice-blue); padding-top: 32px; }
  .why { padding-top: 80px; }
  .lined-divider { margin-top: 56px; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .why__body { grid-column: 1; }
  .why__title { margin-top: 40px; }
  .why__text { margin-top: 24px; }
  .why__body .btn-primary { margin-top: 40px; }
  .platform { padding-top: 96px; }
  .wheel { grid-template-columns: 1fr; }
  .wheel[data-line="ops"] .wheel__card--med { transform: translateY(calc(100% + 24px)); }
  .wheel[data-line="ops"] .wheel__card--ops { transform: translateY(calc(-100% - 24px)); }
  .proven { padding-top: 96px; }
  .proven__head { flex-direction: column; }
  .proven__grid { grid-template-columns: 1fr; gap: 56px; margin-top: 56px; }
  .proven__quote { grid-column: 1; }
  .proven__quote::before { left: -8px; top: -60px; }
  .units { padding-top: 112px; }
  .units__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
  .unit { min-height: 200px; padding: 32px 12px 20px; }
  .unit img { height: 88px; }
  .unit--more { gap: 32px; padding-top: 40px; }
  .unit--more strong { font-size: 56px; }
  .field-feed { padding: 96px var(--page-gutter); }
  .field-feed__head { flex-direction: column; gap: 24px; }
  .field-feed__follow { margin-top: 24px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; }
}
@media (max-width: 640px) {
  .wheel__body { right: 24px; left: 24px; bottom: 24px; }
  .wheel__head { left: 24px; top: 24px; }
  .wheel__desc { font-size: 14px; }
  .wheel__card { aspect-ratio: auto; min-height: 440px; }
  .wheel[data-line="ops"] .wheel__card--med { transform: translateY(calc(100% + 24px)); }
  .unit p { font-size: 13px; }
}
@media (max-width: 480px) {
  .platform__tab, .platform__tab[aria-selected="true"] { min-width: 0; flex: 1; }
}

/* Card layer order: photo, darkening, light mask (inactive card), text. Without this the photo,
   positioned after the ::before, covered the darkening. */
.wheel__card::before { z-index: 1; }
.wheel__mask { z-index: 2; }
.wheel__head, .wheel__body, .wheel__teaser { z-index: 3; }

/* Mobile: the hero content sits 16 px inside the card (which already has a 16 px margin) and the outline button
   may wrap instead of overflowing the card edge. */
@media (max-width: 640px) {
  .home-hero__copy { left: 32px; right: 32px; }
  /* "INFRASTRUCTURE." is the longest word: the title shrinks slightly so it fits the card width. */
  .home-hero__title { font-size: clamp(26px, 8.4vw, 36px); }
  .home-hero__actions { width: 100%; }
  .home-hero .btn-outline { max-width: 100%; height: auto; min-height: 50px; padding-top: 12px; padding-bottom: 12px; white-space: normal; text-align: left; }
}
