/* Tend — direction: one motif (seed 1056503056), brand palette kept */

@font-face { font-family: "Stack Sans Headline"; src: url("fonts/stack-sans-headline-latin-wght-normal.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("fonts/stack-sans-text-latin-wght-normal.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  /* Tend's own colours: indigo from the icon and the app's buttons, the cream of the heart, the coral pill */
  --bg: #f1f1ef;
  --surface: #e7e6e1;
  --ink: #1d1f2e;
  --muted: #545766;
  --accent: #4753c8;
  --accent-strong: #3640a8;
  --accent-ink: #ffffff;
  --deep: #262b78;
  --pale: #e1e3f7;
  --cream: #f8f8f6;
  --coral: #f17159;
  --green: #2f8f58;

  --display: "Stack Sans Headline", system-ui, sans-serif;
  --text: "Stack Sans Text", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 0.95rem + 1.1vw, 1.875rem);
  --step-head: clamp(2rem, 1rem + 3.6vw, 4rem);
  --step-display: clamp(3rem, 0.9rem + 6vw, 6.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7rem, 12vw, 12rem);
  --radius: 999px; /* the pill: buttons, fields, the tab corners follow the dot */
  --tile-r: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.6rem; padding: 0 1.1rem; font-size: var(--step-small); }
.button--light { background: var(--cream); color: var(--deep); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--light:hover { background: #ffffff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 1.5rem; height: 4.5rem; font-size: var(--step-small); font-weight: 500; }
.nav__mark { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; }
.nav__mark img { border-radius: 8px; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav .button { margin-left: 0; }
@media (max-width: 700px) { .nav__links { display: none; } .nav .button { margin-left: auto; } }

/* ---------- 1. hero: the giant heart ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hero__text { position: relative; z-index: 2; width: 50%; padding-top: 3rem; display: grid; gap: 2rem; justify-items: start; }
.hero__title { font-size: var(--step-display); }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
.hero__lead { max-width: 36ch; font-size: var(--step-body); }
.hero__shape { position: absolute; z-index: 0; width: 120vh; aspect-ratio: 524 / 412; left: calc(78% - 60vh); top: calc(55% - 47.2vh); color: var(--accent); }
.hero__heart { width: 100%; height: 100%; display: block; fill: currentColor; }
.hero__dot { position: absolute; left: 50%; top: 17.48%; width: 29%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); transform: translate(-50%, -50%); }
.say { position: absolute; z-index: 2; top: 50%; left: calc(78% - min(230px, 17vw)); width: min(460px, 34vw); padding: 14px; background: var(--cream); border-radius: 26px; font-family: var(--text); }
.say__field { display: flex; align-items: center; gap: 8px; background: #ffffff; border-radius: 16px; padding: 4px 6px 4px 14px; }
.say__field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: var(--step-body); color: var(--ink); outline: none; }
.say__field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.say__mic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); position: relative; }
.say__mic::before { content: ""; position: absolute; left: 14px; top: 9px; width: 8px; height: 13px; border-radius: 4px; background: #ffffff; }
.say__mic::after { content: ""; position: absolute; left: 17px; top: 23px; width: 2px; height: 5px; background: #ffffff; }
.say__out { display: grid; gap: 6px; margin-top: 10px; min-height: 5.5rem; align-content: start; }
.say__out li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #ffffff; border-radius: 14px; font-size: var(--step-body); line-height: 1.3; }
.say__out li.is-new { animation: chip-in 380ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 60ms); }
.say__kind { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pale); position: relative; }
.say__kind--pill { background: var(--coral); }
.say__kind--appt { background: var(--accent); }
.say__kind--list { background: var(--green); }
.say__kind--todo { background: var(--muted); }
.say__out .say__none { color: var(--muted); }
.say__try { margin-top: 12px; font-size: var(--step-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.say__try button { padding: 6px 12px; border-radius: var(--radius); background: var(--pale); color: var(--deep); font-size: var(--step-small); font-weight: 500; text-align: left; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.say__try button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .say__try button:hover { background: #d2d5f3; } }

/* ---------- 2. inside: the screen on the heart ---------- */
.inside { margin-top: calc(var(--section) + 4vh); position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.inside__stage { grid-column: 4 / span 7; grid-row: 1; position: relative; justify-self: center; height: min(72vh, 40vw); aspect-ratio: 524 / 412; }
.inside__heart { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--accent); transition: fill 300ms ease; }
.inside__stage[data-tint="deep"] .inside__heart { fill: var(--deep); }
.inside__stage[data-tint="pale"] .inside__heart { fill: #c9cdf2; }
.inside__screen { position: absolute; left: 50%; bottom: 10%; height: 106%; width: auto; transform: translateX(-50%); border-radius: 30px; opacity: 0; transition: opacity 300ms ease; }
.inside__screen.is-on { opacity: 1; }
.inside__list { grid-column: 1 / span 3; grid-row: 1; }
.inside__title, .inside__list button { font-family: var(--display); font-size: var(--step-lead); font-weight: 300; line-height: 1.2; letter-spacing: -0.015em; }
.inside__title { color: var(--muted); margin-bottom: 0.3em; }
.inside__list button { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.06em 0; color: var(--muted); text-align: left; transition: color var(--t-hover) ease; }
.inside__list button::before { content: ""; width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--coral); opacity: 0; transform: scale(0.5); transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.inside__list button[aria-pressed="true"] { color: var(--ink); font-weight: 400; }
.inside__list button[aria-pressed="true"]::before { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .inside__list button:hover { color: var(--ink); } }
.inside__fact { grid-column: 11 / span 2; grid-row: 1; align-self: center; max-width: 22ch; font-size: var(--step-body); justify-self: end; }

/* ---------- 3. many pills, one tap ---------- */
.many { margin-top: var(--section); }
.many__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.many__title { grid-column: 1 / span 5; font-size: var(--step-head); }
.many__intro p { grid-column: 7 / -1; max-width: 46ch; }
.many__diagram { display: block; width: 100%; height: auto; margin-top: 4rem; overflow: visible; }
.many__diagram--tall { display: none; }
.many__diagram .d1 { fill: #c9cdf2; }
.many__diagram .d2 { fill: #f6b9ac; }
.many__diagram .d3 { fill: var(--coral); }
.many__diagram .d4 { fill: var(--accent); }
.many__steps { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.many__steps li { display: grid; gap: 0.4rem; max-width: 32ch; }
.many__steps strong { font-family: var(--display); font-weight: 400; font-size: var(--step-lead); line-height: 1.15; }

/* ---------- 4. tiles ---------- */
.tiles { margin-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.tiles__head { grid-column: 1 / span 3; display: grid; gap: 1.25rem; }
.tiles__title { font-size: var(--step-head); }
.tiles__head p { max-width: 30ch; }
.tiles__grid { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 10px; }
.tile--wide { grid-column: span 2; }
.tile__stage { aspect-ratio: 4 / 5; border-radius: var(--tile-r); display: grid; place-items: center; padding: 16px; overflow: hidden; }
.tile--wide .tile__stage { aspect-ratio: auto; height: 100%; max-height: none; }
.tile--wide { display: grid; grid-template-rows: 1fr auto auto; }
.tile__stage--a { background: var(--accent); }
.tile__stage--b { background: var(--pale); }
.tile__stage--c { background: var(--surface); }
.tile__name { margin-top: 0.9rem; font-weight: 500; }
.tile__fact { color: var(--muted); font-size: var(--step-body); max-width: 30ch; }

/* interface fragments, at true size */
.frag { width: min(100%, 300px); background: #ffffff; border-radius: 20px; padding: 14px 16px; color: var(--ink); font-size: var(--step-small); line-height: 1.35; }
.frag--note { width: min(100%, 360px); background: rgba(255, 255, 255, 0.94); }
.frag__app { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.frag__app img { border-radius: 5px; }
.frag__app span { margin-left: auto; font-weight: 400; }
.frag__title { margin-top: 8px; font-weight: 600; font-size: var(--step-body); }
.frag__text { color: var(--muted); }
.frag__acts { display: flex; gap: 8px; margin-top: 12px; }
.frag__acts span { flex: 1; text-align: center; padding: 9px 0; border-radius: 12px; background: var(--surface); font-weight: 600; }
.frag__acts span:first-child { background: var(--accent); color: #ffffff; }
.frag--toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--step-body); font-weight: 500; }
.frag__switch { flex: none; width: 52px; height: 32px; border-radius: 16px; background: var(--green); position: relative; }
.frag__switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; }
.frag--siri { background: var(--deep); color: #ffffff; font-size: var(--step-body); }
.frag--siri .frag__reply { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); font-size: var(--step-small); }
.frag__where { color: var(--accent); font-weight: 600; }
.frag__what { font-size: var(--step-body); font-weight: 500; margin-top: 2px; }
.frag--scan .frag__label { font-size: var(--step-body); font-weight: 700; }
.frag--scan .frag__label span { font-weight: 400; color: var(--muted); }
.frag__rx { color: var(--muted); margin-top: 2px; }
.frag__found { margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: var(--pale); color: var(--deep); font-weight: 600; }

/* ---------- 5. price ---------- */
.price { margin-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.price__names { grid-column: 1 / span 6; display: grid; justify-items: start; }
.price__names button { position: relative; font-family: var(--display); font-size: var(--step-head); font-weight: 300; line-height: 1.12; letter-spacing: -0.022em; color: var(--muted); padding-left: 0; text-align: left; transition: color var(--t-hover) ease; }
.price__names button::before { content: ""; position: absolute; left: -0.45em; top: 50%; width: 0.3em; height: 0.3em; margin-top: -0.12em; border-radius: 50%; background: var(--coral); opacity: 0; transform: scale(0.5); transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease; }
.price__names button[aria-pressed="true"] { color: var(--ink); }
.price__names button[aria-pressed="true"]::before { transform: none; opacity: 1; }
@media (hover: hover) and (pointer: fine) { .price__names button:hover { color: var(--ink); } }
.price__stage { grid-column: 8 / span 5; display: grid; gap: 1.5rem; justify-items: start; transition: opacity 200ms ease; }
.price__stage.is-swap { opacity: 0.2; }
.price__fig { font-family: var(--display); font-weight: 300; font-size: var(--step-display); line-height: 1; letter-spacing: -0.03em; }
.price__per { display: block; margin-top: 0.6rem; font-family: var(--text); font-size: var(--step-body); letter-spacing: 0; color: var(--muted); }
.price__text { max-width: 44ch; }

/* ---------- 6. faq: index cards ---------- */
.faq { margin-top: var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq__title { grid-column: 3 / span 8; font-size: var(--step-head); }
.cards { grid-column: 3 / span 8; margin-top: 3rem; display: grid; }
.card { --tab: 0px; position: relative; padding: 52px 28px 28px; margin-top: -24px; border-radius: 0 var(--tile-r) var(--tile-r) var(--tile-r); clip-path: polygon(0 40px, var(--tab) 40px, calc(var(--tab) + 12px) 0, calc(var(--tab) + 188px) 0, calc(var(--tab) + 200px) 40px, 100% 40px, 100% 100%, 0 100%); }
.card:first-child { margin-top: 0; }
.card:nth-child(1) { --tab: 0px; background: var(--pale); color: var(--ink); }
.card:nth-child(2) { --tab: 150px; background: var(--accent); color: #ffffff; }
.card:nth-child(3) { --tab: 300px; background: var(--surface); color: var(--ink); }
.card:nth-child(4) { --tab: 450px; background: var(--pale); color: var(--ink); }
.card:nth-child(5) { --tab: 600px; background: var(--accent); color: #ffffff; }
.card:nth-child(6) { --tab: 450px; background: var(--surface); color: var(--ink); }
.card summary { list-style: none; cursor: pointer; display: block; min-height: 44px; }
.card summary::-webkit-details-marker { display: none; }
.card__q { display: block; font-size: var(--step-lead); font-family: var(--display); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.card p { margin-top: 0.9rem; max-width: 50ch; }
.card:not([open]) { padding-bottom: 32px; }

/* ---------- 7. the action tile ---------- */
.act { margin-top: var(--section); overflow: hidden; }
.act__row { display: grid; grid-template-columns: 1fr 4fr 1fr; gap: 12px; margin-inline: -4vw; }
.act__tile, .act__side { min-height: 380px; border-radius: var(--tile-r); }
.act__side { overflow: hidden; }
.act__side--photo { background: var(--surface); }
.act__side--photo img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.act__side--flat { background: var(--pale); }
.act__tile { background: var(--accent); color: #ffffff; padding: clamp(2rem, 4vw, 3.5rem); display: grid; align-content: center; gap: 1.1rem; }
.act__title { font-size: var(--step-head); }
.act__text { max-width: 46ch; }
.act__form { position: relative; width: min(100%, 440px); margin-top: 0.5rem; }
.act__form input[type="email"] { width: 100%; min-height: 3.5rem; border: 0; border-radius: var(--radius); background: var(--cream); color: var(--ink); padding: 0 8.5rem 0 1.3rem; font-size: var(--step-body); }
.act__form input[type="email"]::placeholder { color: #6b6e7b; }
.act__form input[type="email"]:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.act__form .button { position: absolute; right: 5px; top: 5px; min-height: calc(3.5rem - 10px); background: var(--deep); color: #ffffff; }
.act__msg { min-height: 1.5em; }
@media (hover: hover) and (pointer: fine) { .act__form .button:hover { background: #1b1f5c; } }

/* ---------- 8. footer: the mark, built large ---------- */
.foot { margin-top: var(--section); background: var(--deep); color: #ffffff; padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.foot__mark { height: 34svh; min-height: 220px; display: flex; align-items: flex-end; gap: 4px; }
.blk { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: var(--tile-r) var(--tile-r) 0 0; font-family: var(--display); font-weight: 300; line-height: 0.78; color: var(--deep); font-size: min(26svh, 15vw); }
.blk--1 { height: 100%; background: var(--cream); }
.blk--2 { height: 72%; background: var(--pale); }
.blk--3 { height: 84%; background: var(--accent); }
.blk--4 { height: 100%; background: var(--cream); }
.blk--heart { flex: 1.4 1 0; height: 92%; background: var(--accent); align-items: center; color: var(--cream); }
.blk--heart svg { width: 74%; height: auto; aspect-ratio: 524 / 412; flex: none; }
.foot__cols { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.foot__links { grid-column: 1 / span 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem var(--gutter); font-size: var(--step-body); }
.foot__contact { grid-column: 9 / span 4; display: grid; gap: 0.6rem; }
.foot__last { margin-top: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--step-small); }
.foot :focus-visible { outline-color: #ffffff; }

/* ---------- phone ---------- */
@media (max-width: 800px) {
  .hero { display: block; min-height: 0; padding-top: 6.5rem; }
  .hero__text { width: auto; padding-top: 0; gap: 1.25rem; }
  .say { position: relative; top: auto; left: auto; width: auto; margin: 2rem var(--margin) 0; }
  .hero__shape { position: relative; left: -15vw; top: auto; width: 130vw; margin-top: 2rem; margin-bottom: -38vw; }

  .inside { min-height: 0; grid-template-columns: 1fr; row-gap: 1.75rem; }
  .inside__stage { grid-column: 1; grid-row: 1; height: auto; width: 100%; margin: 3.5rem 0 0; }
  .inside__list { grid-column: 1; grid-row: 2; padding: 0; }
  .inside__list ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
  .inside__fact { grid-column: 1; grid-row: 3; justify-self: start; max-width: none; }

  .many__intro { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .many__title, .many__intro p { grid-column: 1; }
  .many__diagram--wide { display: none; }
  .many__diagram--tall { display: block; margin: 2.5rem auto 0; width: min(100%, 340px); }
  .many__steps { grid-template-columns: 1fr; row-gap: 1.5rem; }

  .tiles { grid-template-columns: 1fr; row-gap: 2rem; }
  .tiles__head, .tiles__grid { grid-column: 1; }
  .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 8px; }
  .tile--wide { grid-column: 1 / -1; }
  .tile--wide .tile__stage { aspect-ratio: 8 / 5; }
  .tile__stage { padding: 10px; border-radius: 20px; }
  .frag { font-size: var(--step-small); padding: 10px 12px; }
  .frag--toggle, .frag--siri { font-size: var(--step-small); }
  .tile__name { font-size: var(--step-body); }
  .tile__fact { font-size: var(--step-small); }

  .price { grid-template-columns: 1fr; row-gap: 2rem; }
  .price__names, .price__stage { grid-column: 1; }

  .faq { grid-template-columns: 1fr; }
  .faq__title, .cards { grid-column: 1; }
  .card { padding: 52px 18px 22px; clip-path: polygon(0 40px, var(--tab) 40px, calc(var(--tab) + 10px) 0, calc(var(--tab) + 112px) 0, calc(var(--tab) + 122px) 40px, 100% 40px, 100% 100%, 0 100%); }
  .card:nth-child(1) { --tab: 0px; } .card:nth-child(2) { --tab: 48px; } .card:nth-child(3) { --tab: 96px; }
  .card:nth-child(4) { --tab: 144px; } .card:nth-child(5) { --tab: 192px; } .card:nth-child(6) { --tab: 144px; }

  .act__row { grid-template-columns: 1fr 1fr; margin-inline: var(--margin); gap: 8px; }
  .act__tile { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding: 2rem 1.25rem; }
  .act__side { min-height: 120px; height: 120px; border-radius: 20px; }
  .act__form input[type="email"] { padding-right: 1.3rem; }
  .act__form .button { position: static; width: 100%; margin-top: 8px; min-height: 3.25rem; }

  .foot__mark { height: 22svh; min-height: 150px; }
  .blk { font-size: min(18svh, 22vw); border-radius: 16px 16px 0 0; }
  .foot__cols { grid-template-columns: 1fr; row-gap: 2rem; }
  .foot__links, .foot__contact { grid-column: 1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-expo) forwards; animation-delay: calc(120ms + var(--i) * 100ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero__shape { transform: translateX(12%) scale(0.94); opacity: 0; animation: shape-in 1200ms var(--ease-expo) 80ms forwards; }
  .js .hero__dot { animation: dot-in 700ms var(--ease-out) 700ms both; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .inside__stage { transform: scale(0.92); opacity: 0; transition: transform 1100ms var(--ease-expo), opacity 600ms ease; }
  .js .inside__stage.is-in { transform: none; opacity: 1; }
  .js .inside__screen { transition: opacity 1600ms ease, transform 1600ms var(--ease-out); }

  .js .many__diagram circle { transition: transform 1100ms var(--ease-expo), opacity 600ms ease; transition-delay: calc(var(--k) * 14ms); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.2); }
  .js .many__diagram.is-in circle { opacity: 1; transform: none; }

  .js .card { transition: background-color var(--t-ui) ease; }
  .js .card[open] p { animation: rise 420ms var(--ease-out) both; }

  .js .blk { transform: scaleY(0.2); transform-origin: bottom; transition: transform 1000ms var(--ease-expo); }
  .js .blk:nth-child(2) { transition-delay: 80ms; } .js .blk:nth-child(3) { transition-delay: 160ms; }
  .js .blk:nth-child(4) { transition-delay: 240ms; } .js .blk:nth-child(5) { transition-delay: 320ms; }
  .js .foot__mark.is-in .blk { transform: none; }

  @supports (animation-timeline: view()) {
    .act__side--photo img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes shape-in { to { transform: none; opacity: 1; } }
@keyframes dot-in { from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
