/* Home — page-specific layout. Values from Figma frame "Notate — Home" (1440 wide). */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; height: clamp(760px, 64.584vw, 930px); background: var(--bg); }
.hero__bg { position: absolute; inset: 0 0 2px 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 0%; animation: heroIn 1.8s var(--ease-out) both; }
@keyframes heroIn { from { transform: scale(1.04); opacity: 0; } to { transform: none; opacity: 1; } }
.hero__copy { position: relative; padding-top: clamp(84px, 8.26vw, 119px); width: min(484px, 38vw); display: flex; flex-direction: column; gap: 24px; }
.hero__copy .eyebrow { font-family: var(--font-display); }
.hero__copy .lead { font-size: 18px; }
.hero__btns { display: flex; gap: 12px; }
.hero__btns .btn--primary { width: 186px; }
.hero__platforms { display: flex; flex-direction: column; gap: 14px; }
.platform-icons { display: flex; gap: 16px; }
.platform-icons li { position: relative; }
.platform-icons img { width: 22px; height: 22px; transition: transform .55s var(--spring-bouncy); }

.platform-icons li::after { content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px; padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .45s var(--spring-bouncy); }

.hero__platforms p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Trusted by ---------- */
.trusted { padding: 64px 0 32px; background: var(--bg); position: relative; z-index: 1; }
.trusted__title { text-align: center; font-weight: 700; font-size: 16px; line-height: 1.55; color: var(--muted-2); padding-inline: var(--gutter); }
.marquee { --gap: 64px; margin-top: 40px; display: flex; overflow: hidden; height: 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { flex: none; display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); animation: marquee 42s linear infinite; }

@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__track img { flex: none; opacity: 0.85; filter: saturate(0); transition: opacity .3s, transform .55s var(--spring-bouncy), filter .3s; }

/* ---------- Every document ---------- */
.every { padding: 83px 0 47px; }
/* Figma 10477:49261: two equal cards; content 32px in, 24px apart */
.compare { margin-top: 39px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.compare-card { min-width: 0; min-height: 672px; border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.compare-card--without { background: #f2ede9; }
.compare-card--with { background: #fff; border: 1.5px solid var(--accent); box-shadow: 0 16px 40px rgba(0, 64, 178, 0.12); }
.compare-card .title-lg { letter-spacing: 0; }
.compare-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 100px; background: #fbe4e1; color: #cc4a40; font-family: var(--font-mono); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: 0.72px; text-transform: uppercase; }
.compare-card--with .compare-tag { background: rgba(0, 100, 255, 0.1); color: var(--accent); }
.compare-tag img { flex: none; width: 20px; height: 20px; }
.sprawl, .flow-scene { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 498.5 / 250; border-radius: var(--r-lg); overflow: hidden; }
.sprawl > *, .flow-scene > * { --u: calc(100cqw / 498.5); }
.sprawl { background: #eae4dd; }
.sprawl__arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.sprawl__tile { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(64 * var(--u)); height: calc(64 * var(--u)); border-radius: calc(15.616 * var(--u)); rotate: var(--r); box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(89, 51, 26, 0.16); }
.sprawl__chip { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); padding: calc(3 * var(--u)) calc(8 * var(--u)); border: 1px solid rgba(204, 74, 64, 0.35); border-radius: 100px; background: #fff; color: #cc4a40; font-family: var(--font-mono); font-weight: 500; font-size: calc(11 * var(--u)); line-height: 1.3; white-space: nowrap; }
.flow-scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow-scene__window { position: absolute; left: calc(70 * var(--u)); top: calc(24 * var(--u)); width: calc(360 * var(--u)); height: calc(251 * var(--u)); object-fit: cover; border: calc(3 * var(--u)) solid rgba(255, 255, 255, 0.9); border-radius: calc(12 * var(--u)); box-shadow: 0 calc(16 * var(--u)) calc(36 * var(--u)) rgba(77, 51, 26, 0.22); }
.flow-scene__pill { position: absolute; left: calc(137 * var(--u)); top: calc(196 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); padding: calc(9 * var(--u)) calc(14 * var(--u)); border-radius: 100px; background: #fff; box-shadow: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgba(0, 51, 153, 0.18); font-weight: 500; font-size: calc(14 * var(--u)); line-height: 1.3; white-space: nowrap; color: var(--accent); }
.flow-scene__pill i { font-style: normal; color: var(--muted); }
.compare-list { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.compare-list li { display: flex; gap: 12px; align-items: flex-start; }
.compare-list img { flex: none; width: 20px; height: 20px; }
.compare-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.compare-list p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.compare-list .compare-list__title { font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--ink); }
.pillars-block { margin-top: 73px; display: flex; flex-direction: column; gap: 50px; align-items: center; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.pillar { display: flex; flex-direction: column; gap: 19px; }
.pillar .media { aspect-ratio: 370.67 / 336; border-radius: var(--r-xl); box-shadow: 0 0 0 rgba(12,26,43,0); transition: box-shadow .5s var(--ease-out); }
.pillar:hover .media { box-shadow: var(--shadow-card-hover); }
.pillar__text { display: flex; flex-direction: column; gap: 8px; }
.pillar__text .title { transition: color .25s; }
.pillar:hover .pillar__text .title { color: var(--accent); }

/* ---------- Work, not storage ---------- */
.work { padding: 96px 0 69px; }
.dark-card { background: var(--navy); border-radius: var(--r-xl); padding: 41px 64px 52px; overflow: hidden; position: relative; }
.dark-card .section-heading { width: min(860px, 100%); }
.dark-card .h2 { color: #fff; }
.folders { margin: 36px auto 0; width: min(1024px, 100%); display: flex; gap: 22px; }

/* 474 / 528 split of 1024 (flex-basis in px so the .adds padding doesn't skew the ratio) */
.vault { flex: 1 1 474px; min-width: 0; position: relative; height: 782px; margin-top: 3px; }
.vault__back { position: absolute; left: 0; top: -2px; width: 100%; height: 728px; }
.vault__shield { position: absolute; top: 9px; right: 11px; width: 46px; height: 46px; transition: transform .7s var(--spring-bouncy); }

.vault__title { position: absolute; left: 24px; top: 63px; width: calc(100% - 84px); font-size: clamp(19px, 1.67vw, 24px); color: #fff; white-space: nowrap; }
.vault-layer {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 24px rgba(8, 16, 34, 0.16);
  padding-left: 24px;
  padding-right: 26px;
  cursor: default;
  transition: transform .7s var(--spring), background-color .35s var(--ease-out);
}

.vault-layer__text { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; max-width: 448px; }
.vault-layer__text .title-xs { color: #fff; }
.vault-layer__text p:last-child { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.75); max-width: 435px; }
.vault-layer:nth-of-type(1) { top: 124px; height: 573px; padding-top: 3px; }
.vault-layer:nth-of-type(2) { top: 234px; height: 454px; padding-top: 7px; }
.vault-layer:nth-of-type(3) { top: 356px; height: 370px; padding-top: 0; }
.vault-layer:nth-of-type(4) { top: 470px; height: 244px; padding-top: 4px; }
.vault-layer { border: 1px solid rgba(255, 255, 255, 0.26); border-bottom: 0; border-left-color: rgba(255, 255, 255, 0.14); border-right-color: rgba(255, 255, 255, 0.14); }
/* front pocket (Figma 10268:45974): a solid folder pocket with a smooth gradient and a soft drop shadow
   cast up onto the cards behind it (no backdrop blur: it painted a hard-edged box around the shape). */
.vault__pocket-wrap {
  position: absolute; left: 0; right: 0; top: 660px; bottom: 0; pointer-events: none;
  filter: drop-shadow(0 -6px 10px rgba(8, 16, 34, 0.22)) drop-shadow(0 -18px 28px rgba(8, 16, 34, 0.18));
}
.vault__pocket {
  --tab: 166px;
  position: absolute; inset: 0;
  background:
    radial-gradient(110% 80% at 15% 0%, rgba(140, 158, 188, 0.22), transparent 62%),
    linear-gradient(180deg, #52627e 0%, #3a4a67 26%, #23324d 58%, #15233b 84%, #111e33 100%);
  clip-path: polygon(0 calc(100% - 16px), 0 16px, 4.7px 4.7px, 16px 0, var(--tab) 0, calc(var(--tab) + 12px) 6px, calc(var(--tab) + 25px) 20px, calc(var(--tab) + 37px) 26px, calc(100% - 16px) 26px, calc(100% - 4.7px) 30.7px, 100% 42px, 100% calc(100% - 16px), calc(100% - 4.7px) calc(100% - 4.7px), calc(100% - 16px) 100%, 16px 100%, 4.7px calc(100% - 4.7px));
}
.vault__pocket-edge { --line: rgba(255, 255, 255, 0.24); position: absolute; left: 0; right: 0; top: 660px; bottom: 0; pointer-events: none; }
.vault__pocket-edge svg { position: absolute; left: 0; top: 0; overflow: visible; }
.vault__pocket-edge svg path { stroke: var(--line); }
/* top edge right of the tab, with the rounded top-right corner */
.vault__pocket-edge span { position: absolute; left: 202px; right: 0; top: 26px; height: 32px; border: 1px solid var(--line); border-bottom: 0; border-left: 0; border-top-right-radius: 16px; }
/* sides and rounded bottom, continuing the tab and top lines */
.vault__pocket-edge::after { content: ""; position: absolute; left: 0; right: 0; top: 58px; bottom: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; }

.adds { flex: 1 1 528px; min-width: 0; position: relative; min-height: 785px; padding: 62px 20px 24px 24px; }
.adds__back { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); }
.adds__plus { position: absolute; top: 11px; right: 11px; width: 46px; height: 46px; transition: transform .7s var(--spring-bouncy); }

.adds__title { position: relative; width: 211px; }
.adds__grid { position: relative; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 218px;
  filter: drop-shadow(0 15px 7px rgba(12, 26, 43, 0.08));
  transition: transform .6s var(--spring-bouncy), filter .4s var(--ease-out);
}
.add-card:nth-child(n+5) { min-height: 201px; }
.add-card img { width: 88px; height: 88px; border-radius: var(--r-xl); object-fit: cover; transition: transform .6s var(--spring-bouncy); }
.add-card h4 { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink-2); }
.add-card p { font-size: 12px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }

.trust-cards { margin-top: 51px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-card { background: rgba(255, 255, 255, 0.07); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .35s var(--ease-out), transform .7s var(--spring); }

.trust-card__content { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; }
.icon-tile { width: 84px; height: 84px; display: grid; place-items: center; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(12, 26, 43, 0.18); margin-bottom: 24px; transition: transform .7s var(--spring-bouncy), box-shadow .4s; }
.icon-tile img { width: 40px; height: 40px; object-fit: contain; }

.trust-card .title { color: #fff; }
.trust-card .body { color: rgba(255, 255, 255, 0.75); }

/* ---------- Everything people do ---------- */
.everything { padding: 96px 0; }
/* Figma 10268:45834 (563 tall): copy 464 wide, illustration 10386:6081 640 × 381 at x 512, 122px from the top */
.spotlight { margin-top: 64px; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 464fr) minmax(0, 640fr); column-gap: 48px; }
.spotlight__copy { padding-top: 89px; display: flex; flex-direction: column; gap: 48px; align-items: flex-start; }
.spotlight__copy > div { display: flex; flex-direction: column; gap: 24px; }
.spotlight__copy .btn { width: 186px; }
.spotlight__visual { position: relative; margin-top: 122px; aspect-ratio: 640 / 381; border-radius: 20px; overflow: hidden; background: #f5ebe5; }
.spotlight__visual > img { width: 100%; height: 100%; object-fit: cover; }
/* Figma 10389:40847 "Floating toolbar": a flat white panel on top of the illustration, 42.24 × 264 at (517, 65)
   in the 640 × 381 artwork. Built in HTML (Figma's export bakes its glass blur into a grey box).
   --u = the toolbar's own design unit: it is drawn at 0.58 scale, so 640 artwork px = 1103 u. */
.spotlight__visual { container-type: inline-size; }

.capabilities { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.feature-card > div { display: flex; flex-direction: column; gap: 8px; }
.ai-band { margin-top: 64px; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.ai-band__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 2s var(--ease-out); }

.ai-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 77, 179, 0.7) 0.83%, rgba(4, 13, 28, 0.7) 80.6%); }
.ai-band__col { display: flex; flex-direction: column; gap: 20px; }
.ai-band__col + .ai-band__col { gap: 16px; }
.ai-band .h4 { color: #fff; }
.ai-band .body-lg { color: #fff; }
.ai-list { display: flex; flex-direction: column; gap: 12px; }
.ai-list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.55; color: #fff; transition: transform .5s var(--spring-bouncy); }

.ai-list li img { flex: none; width: 8px; height: 17px; transition: transform .5s var(--spring-bouncy); }

.ai-list strong { font-weight: 500; }

/* ---------- Sectors ---------- */
.sectors { padding: 73px 0; }
.sector-cards { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sector { display: flex; flex-direction: column; gap: 20px; }
.sector .media { aspect-ratio: 370.67 / 280; border-radius: var(--r-lg); }
.sector__text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---------- Devices & support ---------- */
.devices { position: relative; isolation: isolate; padding-bottom: 96px; margin-top: 52px; }
.devices__bg { position: absolute; inset: 0; z-index: -1; background: url("../../assets/img/devices-bg.webp") center / cover no-repeat; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two-up .card { border-radius: var(--r-xl); padding: 24px; min-height: 518px; display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.two-up .card .media { aspect-ratio: 1918 / 820; border-radius: var(--r-md); flex: none; }
.two-up__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.two-up .card--support { gap: 20px; }
.two-up .card--support > .link { align-self: flex-start; } /* underline only as wide as the text and arrow */

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .vault-layer__text p:last-child { font-size: 13px; }
  .vault-layer__text { padding: 16px 0; }
  .ai-band { padding: 48px; gap: 40px; }
}
@media (max-width: 1024px) {
  .dark-card { padding: 64px 32px 40px; }
  .feature-card { padding: 24px; }
  .trust-card { padding: 24px; }
}
/* Small tablet (≤ 900px): everything stacks; 3-card rows become image-left rows or stay 3-up when the cards are short */
@media (max-width: 900px) {
  .compare, .spotlight, .ai-band { grid-template-columns: 1fr; }
  .spotlight__copy { padding-top: 0; }
  .spotlight__visual { width: 100%; margin-top: 40px; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .sector-cards { gap: 16px; }
  .folders { flex-direction: column; }
  .vault, .adds { flex: none; }
  .add-card, .add-card:nth-child(n+5) { min-height: 0; }

  /* pillars: one per row, picture left, text right */
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .pillar { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; }

  /* trust cards: one per row, icon tile left of the text */
  .trust-cards { grid-template-columns: 1fr; gap: 16px; }
  .trust-card__content { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; padding-bottom: 12px; }
  .trust-card__content > * { grid-column: 2; }
  .trust-card__content > .icon-tile { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
  .trust-card > .link { margin-left: 108px; }

  /* vault folder in normal flow so each card is as tall as its text at any width.
     Each card's face is drawn by its ::before, which starts at the card's own top (top: auto = static position)
     and runs on past the bottom of the folder, where the vault's clip-path cuts it off, so the translucent cards
     still stack behind one another like the desktop folder. Text is positioned to paint above earlier faces. */
  .vault { height: auto; margin-top: 0; padding: 63px 0 var(--pocket-h, 112px); clip-path: inset(-48px -48px 0 -48px round 0 0 16px 16px); }
  .vault__back { height: calc(100% - 54px); }
  .vault__title { position: relative; left: auto; top: auto; width: auto; padding: 0 64px 0 24px; margin-bottom: 30px; white-space: normal; }
  .vault > .vault-layer { position: static; top: auto; height: auto; padding: 0 26px 0 24px; background: none; border: 0; box-shadow: none; }
  .vault > .vault-layer::before {
    content: ""; position: absolute; left: 0; right: 0; height: 2000px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.26); border-bottom: 0; border-left-color: rgba(255, 255, 255, 0.14); border-right-color: rgba(255, 255, 255, 0.14);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(8, 16, 34, 0.16);
    transition: background-color .35s var(--ease-out);
  }
  .vault > .vault-layer:hover { background: none; }
  .vault > .vault-layer:hover::before { background: rgba(255, 255, 255, 0.14); }
  .vault > .vault-layer.glow::after { content: none; }
  .vault-layer__text { position: relative; padding: 20px 0 24px; max-width: 520px; }
  .vault-layer__text p:last-child { font-size: 14px; }
  .vault__pocket-wrap, .vault__pocket-edge { top: auto; height: var(--pocket-h, 112px); }
}

/* ---------- Home hero: full-bleed artwork, no fades or blur ----------
   Image = Figma frame 10492:60472 (2002×1091). The composition (source icons, tablet, phone, platform)
   spans 46.65%–88.3% of the image width. The image is anchored to the left edge and is just wide enough
   (at least the screen width) for the composition to start 64px right of the copy at every screen size;
   the composition's vertical centre (46% down the image) is level with the centre of the copy block.
   Any space above the image is filled with the image's own top-edge colours, so there is no visible edge. */
.art-hero.art-hero.hero {
  --copy-r: calc((100vw - var(--cw)) / 2 + min(500px, var(--cw) * 0.44)); /* right edge of the copy */
  --iw: max(100vw, (var(--copy-r) + 64px) / 0.4665);
  --ih: calc(var(--iw) / 1.835);
  --m: clamp(130px, 10vw, 180px); /* equal space above (from the very top) and below the copy */
  /* on very wide screens the (wider, taller) image needs a taller hero so the top icons stay 16px clear of the
     72px header while the composition stays centred on the copy: top icons sit 35.9% of the image height above it */
  min-height: calc(2 * (var(--header-h) + 16px) + 0.718 * var(--ih));
  padding: var(--m) 0;
  background: linear-gradient(90deg, #fef6c8 0%, #fdf8d7 10%, #fdf4d5 20%, #fde9cf 30%, #fde7d0 40%, #fce7d5 50%, #fce5d6 60%, #fce4d5 70%, #fce2d4 80%, #fbdfd5 90%, #fbded2 100%) 0 0 / var(--iw) 100% no-repeat, #fbded2;
}
.art-hero.art-hero.hero > .hero__bg {
  top: max(calc(50% - var(--ih) * 0.46), calc(100% - var(--ih)));
  left: 0;
  width: var(--iw);
  aspect-ratio: 2002 / 1091;
  -webkit-mask-image: none;
  mask-image: none;
}
.art-hero.art-hero.hero > .hero__bg img { object-fit: cover; object-position: left top; }
.art-hero.art-hero.hero .hero__copy { padding: 0; }
/* below 1100px the copy and the artwork stack, image full width under the text */
@media (max-width: 1100px) {
  .art-hero.art-hero.hero { min-height: 0; flex-direction: column; align-items: stretch; padding: var(--header-h) 0 0; }
  .art-hero.art-hero.hero > .hero__bg { position: relative; top: auto; left: auto; width: 100%; order: 2; margin-top: 8px; }
  .art-hero.art-hero.hero .hero__copy { width: 100%; max-width: 640px; padding: 56px 0 0; }
}

/* Dark cards: background lightens on hover + soft cursor light (.glow). No movement. */
.trust-card:hover { background: rgba(255, 255, 255, 0.14); }
.vault-layer:hover { background: rgba(255, 255, 255, 0.14); }
.trust-card.glow::after, .vault-layer.glow::after { background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(143, 181, 255, 0.28), transparent 65%); }

/* pillar cards: label + link text from the approved copy */
.pillar__text { align-items: flex-start; }
.pillar__text .link { margin-top: 4px; }
.pillar:hover .pillar__text .link { background-size: 100% 1.5px; }
.pillar:hover .pillar__text .link .arrow { transform: translateX(5px); }

/* ---------- Tablet (≤ 1023px) ---------- */
@media (max-width: 1023px) {
  /* hero: copy 48px under the header, artwork cropped to the composition so it stays large */
  .art-hero.art-hero.hero .hero__copy { padding-top: 48px; }
  .art-hero.art-hero.hero > .hero__bg {
    aspect-ratio: 3 / 2; margin-top: 16px;
    /* fade the cropped image's top edge into the hero gradient */
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%);
    mask-image: linear-gradient(180deg, transparent, #000 14%);
  }
  .art-hero.art-hero.hero > .hero__bg img { object-position: 100% 0; }

  .every { padding: 80px 0 40px; }
  .compare-card { min-height: 0; }
  .pillars-block { margin-top: 64px; gap: 40px; }
  .work { padding: 80px 0 64px; }
  .folders { margin-top: 32px; }
  .trust-cards { margin-top: 40px; }
  .trust-card > .link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
  .add-card p { font-size: 13px; }
  .everything { padding: 80px 0; }
  .spotlight { margin-top: 48px; padding-bottom: 0; }
  .capabilities, .ai-band, .sector-cards { margin-top: 48px; }
  .sectors { padding: 64px 0; }
  .devices { margin-top: 32px; padding-bottom: 80px; }
  .two-up .card { min-height: 0; }
}
/* below 900px the header no longer overlaps the hero (styles.css), so the hero needs no header padding */
@media (max-width: 900px) {
  .art-hero.art-hero.hero { padding-top: 0; }
  .dark-card { padding-top: 56px; }
}

/* ---------- Phone (≤ 767px) ---------- */
@media (max-width: 767px) {
  /* hero: artwork first, then the copy.
     The composition (46.65%–88.3% of the image width, centre 67.5%) is scaled to 86% of the screen width
     and centred; the image's lower part is blurred and fades into the hero background behind the text. */
  .art-hero.art-hero.hero {
    padding-bottom: 34px; /* space under the copy, same as the other phone heroes */
    --pw: calc(min(100vw, 560px) / 0.4165 * 0.86); /* rendered image width: composition = 86% of the screen (capped on large phones) */
    --ph: calc(var(--pw) / 1.835);     /* rendered image height */
  }
  .art-hero.art-hero.hero > .hero__bg {
    order: -1; position: relative; top: auto; left: auto; width: 100%; margin: 0;
    aspect-ratio: auto; height: calc(var(--ph) * 0.94); overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 76%, transparent 100%);
  }
  .art-hero.art-hero.hero > .hero__bg img {
    position: absolute; top: 0; left: calc(50% - var(--pw) * 0.675);
    width: var(--pw); max-width: none; height: var(--ph); object-fit: cover;
  }
  /* blurred copy of the artwork that takes over towards the bottom edge */
  .art-hero.art-hero.hero > .hero__bg::after {
    content: ""; position: absolute; inset: 0 -24px -24px;
    background: url("../../assets/img/heroes/fig-home.webp?v=1794832114") no-repeat;
    background-size: var(--pw) var(--ph);
    background-position: calc(24px + 50vw - var(--pw) * 0.675) 0; /* same spot as the sharp image (layer starts 24px further left) */
    filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, transparent 64%, #000 90%);
    mask-image: linear-gradient(180deg, transparent 64%, #000 90%);
    pointer-events: none;
  }
  .art-hero.art-hero.hero .hero__copy { position: relative; margin-top: -20px; padding-top: 0; gap: 20px; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { width: 100%; height: 56px; }

  .trusted { padding: 48px 0 16px; }
  .marquee { --gap: 40px; margin-top: 24px; height: 48px; }

  /* comparison cards: diagram runs edge to edge of the card; labels keep a readable minimum size */
  .every { padding: 64px 0 32px; }
  .compare { margin-top: 32px; gap: 16px; }
  .compare-card { padding: 24px 20px; gap: 20px; }
  .compare-card .title-lg { font-size: 24px; }
  .compare-tag { font-size: 13px; }
  .sprawl, .flow-scene { width: calc(100% + 40px); margin-inline: -20px; border-radius: 0; }
  .sprawl__chip { font-size: max(9px, calc(11 * var(--u))); }
  .flow-scene__pill { font-size: max(11px, calc(14 * var(--u))); }

  .pillars-block { margin-top: 56px; gap: 32px; }
  .pillars { gap: 40px; }
  .pillar { grid-template-columns: 1fr; gap: 16px; }

  /* dark card runs edge to edge so the folders get the full width */
  .work { padding: 48px 0; }
  .dark-card { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding: 48px var(--gutter) var(--gutter); }
  .folders { gap: 16px; }
  .vault { --pocket-h: 96px; }
  .vault__title { font-size: 20px; padding-right: 56px; margin-bottom: 24px; }
  .vault-layer__text { padding: 18px 0 22px; }
  .adds { padding: 56px 16px 16px; min-height: 0; }
  .adds__plus { width: 40px; height: 40px; }
  .adds__title { width: auto; }
  .adds__grid { grid-template-columns: 1fr; }
  .add-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; }
  .add-card img { width: 56px; height: 56px; border-radius: 14px; }
  .add-card h4 { font-size: 15px; }
  .add-card p { font-size: 14px; }

  .trust-cards { margin-top: 32px; }
  .trust-card { padding: 24px; }
  .trust-card__content { display: flex; padding-bottom: 12px; }
  .trust-card__content > .icon-tile { width: 64px; height: 64px; margin-bottom: 12px; }
  .icon-tile img { width: 32px; height: 32px; }
  .trust-card > .link { margin-left: 0; }

  .everything { padding: 64px 0; }
  .spotlight { margin-top: 40px; }
  .spotlight__copy { gap: 32px; align-items: stretch; }
  .spotlight__copy .btn { width: 100%; }
  .spotlight__visual { margin-top: 32px; border-radius: var(--r-lg); }

  /* capability cards: one per row, icon beside the text */
  .capabilities { margin-top: 40px; grid-template-columns: 1fr; gap: 12px; }
  .feature-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; }
  .feature-card .icon-88 { width: 56px; height: 56px; border-radius: 14px; }

  .ai-band { margin-top: 40px; padding: 32px 20px; gap: 32px; }
  .ai-list li { font-size: 16px; }

  .sectors { padding: 64px 0 48px; }
  .sector-cards { margin-top: 40px; grid-template-columns: 1fr; gap: 40px; }
  .sector { gap: 16px; }

  .devices { margin-top: 0; padding-bottom: 64px; }
  .two-up { grid-template-columns: 1fr; gap: 16px; }
  .two-up .card { padding: 20px; gap: 20px; }
}
