/* kairotic.tech: about.css (v1.15). Used only by the About us page (about-us.html).
   Holds: the logo mark (a button that replays its animation), the About card and the "Why Kairotic" cards.
   Colours, sizes and fonts are the variables at the top of site.css; shared pieces (buttons, cards, header, footer, dark theme basics)
   are in site.css. The dark theme versions of these rules sit in this file too, written as :root[data-theme="dark"] ...
   Loaded AFTER site.css, so a rule here wins over an equal rule there. */

/* about: the meaning of the mark */
.about { background: var(--paper-2); border-radius: 36px; margin: 0 max(14px, env(safe-area-inset-left)); }

.about .cols { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }

.mark-card { background: var(--card); border: 1px solid var(--rule); border-radius: 28px; aspect-ratio: 1; display: grid; place-items: center; padding: 12%; max-width: 440px; width: 100%; margin: 0 auto; }

.mark-card svg { width: 100%; height: auto; display: block; overflow: visible; }

.dot { transform-origin: 50px 50px; animation: arrive 2.6s cubic-bezier(.22,.7,.2,1) .3s both; }

@keyframes arrive { from { transform: rotate(-330deg); } to { transform: rotate(0); } }

.about .body p { margin: 0 0 18px; font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); }

.about .body p b { color: var(--ink); font-weight: 600; }

.word { font-family: var(--display); font-style: italic; font-weight: 600; color: var(--ink); }

.about h2 { margin-bottom: 26px; }

.about .sec-no { margin-bottom: 16px; }

@media (max-width: 1060px) {
  .about .cols { gap: 40px; }
}

@media (max-width: 900px) {
  .about .cols { grid-template-columns: 1fr; }
  .mark-card { max-width: 300px; }
  .about { border-radius: 28px; }
}

@media (max-width: 620px) {
  .about { margin: 0 8px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

.mark-card, .about {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}

.about { -webkit-backdrop-filter: var(--blur-lg); backdrop-filter: var(--blur-lg); }

.about { border-radius: 36px; }

.mark-card { background: var(--glass-hi); }

.mark-card { color: var(--green); }

/* Why Kairotic: name, mark and motto */
.why { padding: 40px 0 56px; }

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }

.why-card { border-radius: var(--r); padding: 34px 30px 32px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

.why-card .k { margin: 0 0 14px; font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

.why-card h3 { margin: 0 0 14px; font: 600 clamp(28px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.005em; color: var(--ink); }

.why-card p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }

.why-card p b { color: var(--ink); font-weight: 600; }

.why-card.lead-card { background: var(--glass-deep); border-color: rgba(255,255,255,.22); box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 28px 60px -28px rgba(10,40,28,.7); }

.why-card.lead-card .k { color: #9fdcbc; }

.why-card.lead-card h3 { color: var(--on-green); font-style: italic; font-size: clamp(30px, 3vw, 38px); }

.why-card.lead-card p { color: var(--on-green-soft); }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .why-card { padding: 28px 24px; }
  .why { padding: 24px 0 40px; }
}

@media (min-width: 640px) and (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-card.lead-card { grid-column: 1 / -1; }
}

:root[data-theme="dark"] .mark-card { color: var(--accent); }

/* ===== added in v1.14 ===== */
/* the mark: a button that looks like the card it was before */
button.mark-card { font: inherit; color: var(--green); cursor: pointer; -webkit-appearance: none; appearance: none; }
:root[data-theme="dark"] button.mark-card { color: var(--accent); }
button.mark-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button.mark-card:active { transform: scale(.985); }
@media (hover: hover) { button.mark-card:hover { border-color: var(--accent); } }

/* the replay */
.mark-card .ring { transform-origin: 50px 50px; }
.mark-card.playing .ring { stroke-dasharray: 100; stroke-dashoffset: 100; animation: intro-draw .95s cubic-bezier(.65, 0, .25, 1) forwards; }
.mark-card.playing .dot { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: intro-pop .45s cubic-bezier(.3, 1.6, .5, 1) .85s forwards; }
/* If the visitor asked their device for less motion (on Windows: Settings > Accessibility > Visual effects > Animation effects off),
   nothing moves. The logo just fades in again, so the click still shows something. */
@media (prefers-reduced-motion: reduce) {
  .mark-card.playing .ring, .mark-card.playing .dot { animation: mark-fade .7s ease both; stroke-dasharray: none; stroke-dashoffset: 0; transform: none; }
}
@keyframes mark-fade { from { opacity: 0; } to { opacity: 1; } }
