/* /about/ — same system as the landing: big calm type, air, few words. Pass 9: the IOVO theme, and the four
   "What IOVO does" cards come alive on hover / touch (about.js). */
.ab-hero { padding: clamp(150px, 18vw, 240px) 0 clamp(64px, 8vw, 110px); }
.ab-hero h1 { font-size: clamp(42px, 6.4vw, 100px); line-height: 1.02; letter-spacing: -.045em; max-width: 11em; margin-bottom: 32px; }
.ab-hero .lede { max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); }

.ab-section { padding: clamp(64px, 8vw, 120px) 0; }
.ab-h { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.04em; }
.ab-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); padding-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--line); }
.ab-section h3 { font-weight: 400; margin: 0; }
.ab-section p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.6; font-weight: 300; }

/* 2 · What IOVO does: four cards, a live little moment over a big numeral and one line */
.ab-does { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ab-does li { display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; -webkit-tap-highlight-color: transparent; }
.ab-art { position: relative; aspect-ratio: 640 / 440; margin: 0 0 20px; }
.ab-n { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(64px, 6.4vw, 104px); line-height: .9; letter-spacing: -.06em; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--text); transition: color .4s var(--ease-out); }
.ab-does li.play .ab-n { color: var(--accent); }
.ab-does h3 { margin-top: 14px; font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -.02em; color: var(--text); }
.ab-does p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; max-width: 17em; }

/* The moment tiles: a graphite panel that tilts toward the cursor (--rx/--ry from about.js); layers ride a little parallax */
.dz { --rx: 0deg; --ry: 0deg; --px: 0; --py: 0; perspective: 900px; }
.dz-in { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; background: var(--ink-1); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease-out), border-color .4s; }
.ab-does li:hover .dz-in, .ab-does li.play .dz-in { border-color: var(--line-strong); }
.ab-does li.tilting .dz-in { transition-duration: .12s, .4s; }
.dz svg { display: block; width: 100%; height: 100%; }

/* 1 · Field: a door pin drops on the map */
.z-blk rect { fill: #13151A; }
.z-old circle { fill: var(--text-3); }
.dz-field svg { transform: translate(calc(var(--px) * -4px), calc(var(--py) * -4px)) scale(1.04); transition: transform .6s var(--ease-out); }
.z-pin { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 100%; }
.z-pin circle { fill: var(--ink-1); }
.z-hit { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
li.play .z-pin { animation: z-drop .62s var(--ease-snap) both; }
li.play .z-hit { animation: z-hit .7s .34s var(--ease-out) both; }
@keyframes z-drop { 0% { transform: translateY(-46px); opacity: 0; } 20% { opacity: 1; } 62% { transform: translateY(1px) scale(1.06, .92); } 100% { transform: none; } }
@keyframes z-hit { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.6); } }

/* 2 · Proposal: the page turns, then it's signed */
.dz-prop .dz-in { perspective: 700px; display: grid; place-items: center; }
.pg { position: absolute; top: 12%; left: 27%; width: 46%; height: 76%; border-radius: 8px; background: #16181D; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 14px 30px -14px rgba(0, 0, 0, .9);
  display: flex; flex-direction: column; gap: 7%; padding: 9% 10%; transform: translate(calc(var(--px) * 5px), calc(var(--py) * 5px)); }
.pg i { display: block; height: 4%; min-height: 3px; border-radius: 2px; background: #2A2D33; }
.pg i.short { width: 60%; }
.pg-top { transform-origin: 0 50%; backface-visibility: hidden; background: #1A1C21; }
.pg-img { display: block; height: 46%; border-radius: 5px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #24272D, #111317); }
.pg-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5) translateY(4%); }
.pg-under svg { position: absolute; left: 10%; right: 10%; bottom: 20%; width: 80%; height: auto; overflow: visible; }
.pg-sig { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pg-line { position: absolute; left: 10%; right: 10%; bottom: 18%; height: 1px; background: #33363C; }
.pg-ok { position: absolute; right: 8%; top: 8%; width: 18%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: scale(.6);
  background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='m2.6 5.2 1.6 1.6 3.3-3.4' fill='none' stroke='%23062014' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
li.play .pg-top { animation: pg-turn .7s var(--ease-water) both; }
li.play .pg-sig { animation: pg-sign .8s .62s cubic-bezier(.5, 0, .3, 1) forwards; }
li.play .pg-ok { animation: pg-ok .4s 1.36s var(--ease-snap) both; }
@keyframes pg-turn { 0% { transform: rotateY(0); } 100% { transform: rotateY(-172deg); } }
@keyframes pg-sign { to { stroke-dashoffset: 0; } }
@keyframes pg-ok { to { opacity: 1; transform: none; } }

/* 3 · AQUIS: calm and matte. It blinks and speaks a ring. */
.dz-aq .dz-in { display: grid; place-items: center; }
.aq-face { position: relative; width: 46%; aspect-ratio: 1; transform: translate(calc(var(--px) * 6px), calc(var(--py) * 5px)); transition: transform .6s var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 88%); mask-image: linear-gradient(180deg, #000 72%, transparent 88%); }
.aq-face img { width: 100%; height: 100%; filter: brightness(.85) saturate(.9); }
.lid { position: absolute; top: 47.4%; width: 9.4%; height: 8.2%; border-radius: 50%; background: #020306; transform: scaleY(0); transform-origin: 50% 20%; }
.lid.l { left: 37.3%; }
.lid.r { left: 53.6%; }
.aq-ring { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; }
li.play .lid { animation: aq-blink .36s .05s ease-in-out both; }
li.play .aq-ring { animation: aq-say 1s .38s var(--ease-out) both; }
li.play .aq-ring.r2 { animation-delay: .6s; }
@keyframes aq-blink { 0%, 100% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } }
@keyframes aq-say { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.3); } }

/* 4 · Install & office: an install block snaps into the calendar */
.dz-cal .dz-in { padding: 9% 8%; }
.c-grid { position: relative; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(4, 1fr); gap: 6%  4%;
  transform: translate(calc(var(--px) * -4px), calc(var(--py) * -3px)); transition: transform .6s var(--ease-out); }
.c-grid::before { content: ""; position: absolute; inset: -6% 0; background: repeating-linear-gradient(180deg, transparent 0 calc(25% - 1px), rgba(244, 241, 236, .05) calc(25% - 1px) 25%); pointer-events: none; }
.c-grid i { grid-column: var(--c); grid-row: var(--r) / span var(--s); border-radius: 5px; background: #1B1D22; }
.c-new { position: relative; grid-column: var(--c); grid-row: var(--r) / span var(--s); border-radius: 5px; background: var(--accent); }
.c-ok { position: absolute; right: 10%; top: 8%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='m2.6 5.2 1.6 1.6 3.3-3.4' fill='none' stroke='%23FF9A27' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; opacity: 0; }
li.play .c-new { animation: c-snap .56s var(--ease-snap) both; }
li.play .c-ok { animation: pg-ok .3s .5s var(--ease-snap) both; }
@keyframes c-snap { 0% { transform: translate(-60%, -70%) rotate(-6deg) scale(.9); opacity: 0; } 30% { opacity: 1; } 75% { transform: translateY(4%) scale(1.03); } 100% { transform: none; } }

/* 3 · The team: a group, not a biography. Lead line, then the field | the code, then a quiet close */
.ab-team .eyebrow { margin-bottom: 18px; }
.ab-team-h { max-width: 14em; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.04; }
.ab-section .ab-team-lead { max-width: 30em; margin-top: clamp(28px, 3vw, 40px); font-family: var(--font-display); font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: -.02em; color: var(--text-2); }
.ab-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 72px); }
.ab-side { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-3); border: 1px solid var(--line); background: var(--ink-1); }
.ab-icon { display: block; width: 48px; height: 48px; margin-bottom: 22px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ab-icon .q { stroke: var(--text-3); }
.ab-icon .amb { stroke: var(--accent); fill: var(--accent); }
.ab-side h3 { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; color: var(--text); }
.ab-side p { margin-top: 12px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; max-width: 26em; }
.ab-section .ab-team-end { margin-top: clamp(36px, 4vw, 56px); font-size: 15px; color: var(--text-3); }

/* 4 · Different: five short lines on hairlines */
.ab-list { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.ab-list li { counter-increment: d; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 27px); line-height: 1.3; letter-spacing: -.025em; color: var(--text); }
.ab-list li:first-child { padding-top: 4px; }
.ab-list li::before { content: counter(d, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); }

/* 5 · Who: one row of quiet chips */
.ab-who { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.ab-who li { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 15px; color: var(--text); background: var(--ink-1); }

/* 6 · How: five steps on one hairline; the last step is the amber node */
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; }
.ab-steps::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 1px; background: var(--line-strong); }
.ab-steps li { position: relative; padding-top: 30px; display: grid; gap: 10px; align-content: start; }
.ab-steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-0); border: 1.5px solid var(--text-2); }
.ab-steps li:last-child::before { background: var(--accent); border-color: var(--accent); }
.ab-steps .mono { color: var(--text-3); font-size: 10.5px; }
.ab-steps h3 { font-size: 17px; line-height: 1.4; }
.ab-support { margin-top: 36px !important; }
.ab-support a { color: var(--accent); text-decoration: none; }
.ab-support a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 7 · FAQ: accordion */
.ab-faq { border-top: 1px solid var(--line); }
.ab-faq details { border-bottom: 1px solid var(--line); }
.ab-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0;
  font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -.015em; color: var(--text); }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px; background:
  linear-gradient(var(--accent), var(--accent)) center / 12px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 12px no-repeat; transition: transform .35s var(--ease-out); }
.ab-faq details[open] summary::after { transform: rotate(45deg); }
.ab-faq summary:hover { color: #fff; }
.ab-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.ab-faq details p { padding: 0 40px 24px 0; max-width: 40em; }
.ab-faq details[open] p { animation: ab-open .45s var(--ease-out); }
@keyframes ab-open { from { opacity: 0; transform: translateY(-6px); } }
.ab-faq a { color: var(--accent); }

.ab-end { padding: clamp(32px, 4vw, 56px) 0 clamp(96px, 11vw, 150px); }
.ab-end .wrap { display: flex; justify-content: flex-end; }
.ab-end .text-link { font-size: 17px; }

@media (max-width: 1000px) {
  .ab-does { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .ab-steps { grid-template-columns: 1fr; gap: 0; }
  .ab-steps::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .ab-steps li { padding: 0 0 26px 34px; grid-template-columns: 34px minmax(0, 1fr); gap: 0 8px; }
  .ab-steps li::before { top: 4px; }
  .ab-steps .mono { padding-top: 4px; }
}
@media (max-width: 860px) {
  .ab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Phone: a compact list, the numeral and line on the left, the moment on the right */
  .ab-does { grid-template-columns: 1fr; row-gap: 0; margin-top: 28px; }
  .ab-does li { grid-template-columns: minmax(0, 1fr) 46%; grid-template-rows: auto auto 1fr; column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
  .ab-does li:last-child { border-bottom: 1px solid var(--line); }
  .ab-art { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .dz-in { border-radius: 14px; }
  .ab-n { grid-column: 1; font-size: 56px; padding-top: 0; border-top: 0; }
  .ab-does h3 { grid-column: 1; margin-top: 8px; font-size: 20px; }
  .ab-does p { grid-column: 1; font-size: 14.5px; }
  .ab-split { grid-template-columns: 1fr; gap: 16px; }
  .ab-icon { width: 40px; height: 40px; margin-bottom: 16px; }
  .ab-end .wrap { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-faq details[open] p { animation: none; } .ab-faq summary::after { transition: none; }
  .dz-in, .dz svg, .pg, .aq-face, .c-grid { transform: none !important; transition: none; }
  li.play .z-pin, li.play .z-hit, li.play .pg-top, li.play .pg-sig, li.play .pg-ok, li.play .lid, li.play .aq-ring, li.play .c-new, li.play .c-ok { animation: none; }
}
