/* /about/ and /profile/ on the new design system: loaded on top of site.css (build.mjs, newDesign).
   About: the company page (Nov 2026), with the "from idea to working tool" animation, the work as rows and the founder's portrait in the margin.
   Profile: a printable one-page profile, with the career. */

/* ---------- About ---------- */
/* Head (redesign, 13 Nov 2026): the H1, lead and booking button in columns 1 to 9, the founder's portrait (220px), its caption
   and three career facts in the margin. Phones: H1, then the portrait (96px) beside its caption, lead, button, facts. */
.about-side { align-self: start; }
.about-founder img { width: 100%; max-width: 220px; border-radius: 2px; }
.about-founder figcaption { margin-top: var(--s1); font-size: var(--t-small); color: var(--muted); }
.about-facts-label { margin-top: var(--s3); font-size: var(--t-small); color: var(--muted); }
.about-facts { margin-top: var(--s1); gap: var(--s1); }
.about-profile { margin-top: var(--s1); }
/* What we stand for: rows, the commitment in columns 1 to 4, what it means in 5 to 9, the evidence in the margin */
.stand-rows .row { padding-block: var(--s3); }
.stand-rows .row-title { font-size: var(--t-lead); line-height: 1.3; }
.stand-rows .row-side { align-self: start; }
.stand-rows .row-side .text-link { margin-block: -10px; }
/* How we work opens with the "from idea to working tool" drawing, then the stages */
#how-we-work .itt-figure { margin-top: var(--s4); }
.head p a, .panel p a { font-weight: 600; text-underline-offset: 4px; }
.legal-note { font-size: var(--t-small); color: var(--muted); }
/* "From idea to working tool" (#idea-to-tool): the designer's animation (Documents/Arvanu/about-2026-11/animation), merged
   here and scoped to .itt-*. The SVG's own attributes describe the FINAL frame, so without JavaScript, without the motion
   rules, or with reduced motion, the finished still shows at once. app.js adds .itt-armed up front and .itt-play the first
   time the figure comes into view. Only opacity, transform and stroke-dashoffset animate. One play, about 7.6s, never loops.
   Desktop crop: the viewBox is 1600 x 1000 with "xMidYMid slice", and the drawing spans y 226 to 760 (measured in Edge,
   every animation state). A 1600 x 620 box shows y 190 to 810, so the white above and below shrinks to a modest margin
   without touching the SVG. Phones keep the designer's own 2:3 recomposition below a 600px figure. */
.itt-figure {
  container-type: inline-size;
  margin: 0;
}
.itt-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 620;
  color: var(--ink, #1F3329);
  font-family: inherit;               /* Schibsted Grotesk from the page */
}
.itt-svg text { font-family: inherit; }
.itt-svg .itt-muted { fill: var(--muted, #55605A); }
.itt-svg .itt-muted-s { stroke: var(--muted, #55605A); }
.itt-svg .itt-swash { stroke: var(--mark, #FFE45C); }
.itt-figure figcaption {
  margin-top: var(--s2, 16px);
  font-size: var(--t-small, 14px);
  color: var(--muted, #55605A);
  text-wrap: pretty;
}

/* Phones: the same drawing, recomposed so its text stays readable. The frame becomes 2:3 (the SVG crops to the
   middle 667 units), the note moves above the screen and the margin notes sit under it. */
@container (max-width: 599.98px) {
  .itt-svg { aspect-ratio: 2 / 3; }
  .itt-l-note { transform: translate(340px, -255px); }
  .itt-l-screen { transform: translate(-20px, 85px); }
  .itt-desk { display: none; }
  .itt-phone { display: inline; }
}

@media (prefers-reduced-motion: no-preference) {
  .itt-armed .itt-draw { stroke-dasharray: 1 1; }
  .itt-armed .itt-draw { animation: itt-draw var(--d, 500ms) cubic-bezier(0.45, 0, 0.25, 1) var(--t, 0ms) both paused; }
  .itt-armed .itt-in { animation: itt-in var(--d, 400ms) ease-out var(--t, 0ms) both paused; }
  .itt-armed .itt-out { animation: itt-out var(--d, 400ms) ease-in var(--t, 0ms) both paused; }
  .itt-armed .itt-pin { animation: itt-pin var(--d, 450ms) cubic-bezier(0.3, 1.4, 0.5, 1) var(--t, 0ms) both paused; transform-box: fill-box; transform-origin: center; }
  .itt-armed.itt-play .itt-draw,
  .itt-armed.itt-play .itt-in,
  .itt-armed.itt-play .itt-out,
  .itt-armed.itt-play .itt-pin { animation-play-state: running; }
}
@keyframes itt-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes itt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes itt-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes itt-pin { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
/* Michael's portrait shows once on About, in the page head: the shared close ({{site-talk}}) drops its copy here only. */
body[data-page="about"] #talk .talk-face { display: none; }
/* What we've built: the status line sits above each title, in the rule's title columns */
.about-built .rule > .rule-title { grid-column: 1 / 5; }
.about-built .rule-title h3 { font-size: var(--t-lead); font-weight: 600; line-height: 1.3; }
.about-built .rule-title .status + h3 { margin-top: 4px; }

/* ---------- Profile ---------- */
.profile-page { padding-top: var(--s4); }
.profile-page > * { max-width: calc((100% - 11 * var(--gap)) / 12 * 9 + 8 * var(--gap)); }
.profile-print-actions { display: flex; justify-content: flex-end; }
.profile-header { display: flex; justify-content: space-between; gap: var(--s4); align-items: flex-start; margin-top: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.profile-header h1 { font-size: 52px; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.profile-header .lead { margin-top: var(--s2); }
.profile-header img { width: 130px; flex: none; border-radius: 2px; }
.profile-page section { margin-top: var(--s4); }
.profile-page section > * + * { margin-top: var(--s2); }
.profile-page h2 { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; }
.checklist, .career-list { display: grid; gap: 6px; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 10px; border-top: 1px solid var(--rule); }
/* the career list reads in two columns on wide screens and in print, one on phones; an entry never splits */
.profile-career .career-list { display: block; column-count: 2; column-gap: 28px; }
.profile-career .career-list li { break-inside: avoid; }
@media (max-width: 640px) { .profile-career .career-list { column-count: 1; } }
.career-list li { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--gap); padding-block: 6px; border-top: 1px solid var(--rule); }
.career-list li span { color: var(--muted); }
.profile-contact { margin-top: var(--s4); }
.profile-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.profile-page .actions { margin-top: var(--s3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }

@media (max-width: 899px) {
  /* one column on phones: the nine-column measure does not apply */
  .profile-page > * { max-width: none; }
  /* The About head becomes one column in reading order: H1, portrait beside its caption, lead, button, facts */
  .about-intro, .about-side { display: contents; }
  .about-head h1 { order: 1; }
  .about-founder { order: 2; display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
  .about-founder img { width: 96px; flex: none; }
  .about-founder figcaption { margin-top: 0; }
  .about-head .lead { order: 3; }
  .about-head .head-ctas { order: 4; }
  .about-facts-label { order: 5; }
  .about-facts { order: 6; }
  .about-profile { order: 7; }
  .stand-rows .row-side .text-link { margin-block: 0; }
  #how-we-work .itt-figure { margin-top: var(--s3); }
  .about-built .rule > .rule-title { margin-top: 0; }
  #how-we-work .side-note { margin-top: var(--s2); }
  .profile-header h1 { font-size: clamp(32px, 9vw, 36px); }
  .profile-header img { width: 96px; }
  .profile-print-actions { justify-content: flex-start; }
  .career-list li { grid-template-columns: 6.5em minmax(0, 1fr); }
}
/* Printing the profile: just the profile, on white, without the site's header, footer, banner or buttons */
@media print {
  .site-header, .site-footer, .skip-link, .profile-print-actions, .profile-page .actions, #talk { display: none !important; }
  .profile-page { padding: 0; max-width: none; }
  .profile-page > * { max-width: none; }
  .profile-page section { margin-top: 18px; break-inside: avoid; }
  a { color: inherit; }
}
/* the founder row on /profile/ carries its two detail lines (Michael, 6 Nov 2026) */
.career-list small { display: block; font-size: var(--t-small); color: var(--muted); }
