/* Om os (/om-bedri/), the approved Om os design (10 Nov): every section after the hero (its team photo over the seam
   is bedri/page-hero's, sections/page-hero.css). In page order:
   .om-hvem      "Hvem er BEDRI" (pattern bedri/om-hvem, light)
   .om-team/.tc-* "Menneskerne bag BEDRI" (block bedri/team-panels, dark): the panels that open on a click
   .om-citat     the quote band (block bedri/quote-band, dark)
   .om-brev/.sig "Hvorfor jeg startede BEDRI" (block bedri/letter, light): the letter and its signature
   .om-vaerdier  "Det tror vi på" with the closing CTA row (pattern bedri/om-vaerdier, dark)
   The blocks' styles live here rather than in bedri-core, as bedri/about's do in story.css: this file loads in the
   editor too. Sizes are the design's; colours are the tokens, except the design's in-between greys (#2A3247 on
   light, #B9C1D3 on dark), which no token has. */

/* the sections' H2 (the design's size: a step under .h-lg) */
.om-h2 {
  margin: 0; font-family: var(--font-display); font-weight: var(--display-wght); letter-spacing: var(--display-track);
  font-variation-settings: "SOFT" 0, "WONK" 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; text-wrap: balance;
}

/* ---------- Hvem er BEDRI: centred, under the hero's photo (whose lower half the hero's band puts on this surface) */
.om-hvem { padding: 96px 0 clamp(80px, 9vw, 112px); }
.om-hvem-inner { text-align: center; }
.om-hvem-inner > * { max-width: 720px; margin-inline: auto; }
.om-hvem .eyebrow { margin-bottom: 14px; font-size: .9375rem; }
.om-hvem-lead { margin-top: 22px; margin-bottom: 0; font-size: 1.1875rem; line-height: 1.55; color: #2A3247; text-wrap: pretty; }
.om-hvem-inner > .om-hvem-text { margin-top: 16px; margin-bottom: 0; max-width: 620px; color: var(--muted); text-wrap: pretty; }

/* ---------- Menneskerne bag BEDRI: the panels. One photo per panel, min(100%, 300px) wide: it follows the panel's
   flex-grow with no width transition of its own (the design's tuning; a transition there made it grow, then shrink).
   The text column fades and slides in after the panel has started to open, and out at once when it closes. */
.om-team { padding: 96px 0; background: var(--bg); color: var(--ink); }
.om-team-lead { margin: 16px 0 0; max-width: 56ch; font-size: 1.125rem; color: var(--muted); }

.tc-row { --ease: cubic-bezier(.65, 0, .25, 1); --dur: .75s; --photo: 300px; display: flex; gap: 14px; height: 560px; margin-top: 48px; }
.tc-panel {
  position: relative; overflow: hidden; flex: 1 1 0; min-width: 0; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: flex-grow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
/* open: the text side is a white card (Jannik, 10 Nov), with the light tokens' ink */
.tc-panel.is-open { flex-grow: 4.2; border-color: transparent; background: #FFFFFF; } /* no border when open (Jannik, 10 Nov) */
.tc-photo { position: absolute; left: 0; top: 0; bottom: 0; width: min(100%, var(--photo)); overflow: hidden; }
.tc-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 22%;
  transform: scale(1.04); transition: transform var(--dur) var(--ease);
}
.tc-panel.is-open .tc-photo img { transform: scale(1); }
.tc-mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #1A2542;
  font-family: var(--font-display); font-size: 56px; color: var(--accent-lit); transition: opacity var(--dur) var(--ease);
}
.tc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 32, 0) 40%, rgba(10, 16, 32, .85) 100%); transition: opacity var(--dur) var(--ease); }
.tc-panel.is-open .tc-shade { opacity: 0; }
/* the button over the panel: opens it. On the open panel it stays focusable (so focus isn't lost) but lets clicks
   through to the phone and e-mail links. */
.tc-hit { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tc-hit:focus-visible { outline: 2px solid var(--accent-lit); outline-offset: -4px; border-radius: 22px; }
.tc-panel.is-open .tc-hit { pointer-events: none; cursor: default; }
/* a closed panel: the name and the role pill, read upwards */
.tc-label {
  position: absolute; left: 20px; bottom: 22px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: opacity .25s ease .35s;
}
.tc-panel.is-open .tc-label { opacity: 0; transition: opacity .15s ease 0s; }
.tc-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: #FFFFFF; }
.tc-role {
  display: inline-block; padding-block: 5px; padding-inline: 12px; border-radius: 999px; /* logical: the same pill when the closed label runs upwards */ background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
}
/* the open panel's text, beside the photo */
.tc-info {
  color: #0A1020;
  position: absolute; top: 0; bottom: 0; right: 0; left: var(--photo); z-index: 2; overflow: hidden;
  opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .2s ease, transform .3s ease;
}
.tc-panel.is-open .tc-info { opacity: 1; transform: none; pointer-events: auto; transition: opacity .45s ease .4s, transform .6s var(--ease) .35s; }
.tc-info-inner { min-width: 360px; height: 100%; padding: 32px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.tc-title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; }
.tc-title-role { margin: 14px 0 0; }
.tc-quote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; }
.tc-bio { margin: 0; font-size: 1rem; color: #535B6E; }
.tc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.tc-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color .25s, background-color .25s;
}
.tc-info .tc-btn:not(.tc-btn-solid) { border-color: #D9DDE5; color: #0A1020; }
.tc-btn:hover, .tc-info .tc-btn:not(.tc-btn-solid):hover { border-color: var(--accent); }
.tc-btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tc-btn-solid:hover { background: #2F5BEF; border-color: #2F5BEF; }
.tc-edit { align-self: center; font-size: 13px; } /* editor only: the link to the person in Bedri → Team */

/* phones: the panels stacked. A closed one is a row with the portrait as a square at its left (the face shows, not
   a strip across the forehead; Jannik, 11 Nov) and the name and role beside it, a + at the right. Opening, the
   square grows into the full-width photo on top and the text comes in below it; the open panel is as tall as the
   photo and the text (--tc-open from view.js; the design's fixed 680 px hid the phone and e-mail buttons in a scroll
   box or left a gap above them; 680 px stays as the fallback without JS). */
@media (max-width: 760px) {
  .tc-row { --strip: 104px; flex-direction: column; height: auto; gap: 10px; }
  .tc-panel { flex: none; height: var(--strip); transition: height var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .tc-panel.is-open { height: var(--tc-open, 680px); }
  .tc-photo { bottom: auto; width: var(--strip); height: 100%; transition: width var(--dur) var(--ease), height var(--dur) var(--ease); }
  .tc-panel.is-open .tc-photo { width: 100%; height: var(--photo); }
  /* closed: the photo zoomed in on the face (the portraits are wide shots), back to the whole photo when open */
  .tc-photo img { object-position: center 18%; transform-origin: 50% 25%; }
  .tc-panel:not(.is-open) .tc-photo img { transform: scale(1.35); }
  .tc-shade { opacity: 0; }
  .tc-panel:not(.is-open) .tc-mono { font-size: 30px; }
  .tc-label {
    writing-mode: horizontal-tb; transform: translateY(-50%); top: 50%; bottom: auto; left: calc(var(--strip) + 18px); right: 56px;
    flex-direction: column; align-items: flex-start; gap: 8px; white-space: normal;
  }
  .tc-name { font-size: 20px; line-height: 1.15; }
  /* the + on a closed row */
  .tc-panel::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; z-index: 2; pointer-events: none;
    border-radius: 50%; border: 1px solid var(--line);
    background: linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
    color: var(--accent-lit); transition: opacity .25s ease .35s;
  }
  .tc-panel.is-open::after { opacity: 0; transition: opacity .15s ease 0s; }
  .tc-info { left: 0; top: var(--photo); transform: translateY(16px); }
  .tc-info-inner { min-width: 0; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-panel, .tc-panel::after, .tc-photo, .tc-photo img, .tc-mono, .tc-shade, .tc-label, .tc-info { transition: none !important; }
}

/* ---------- The quote band */
.om-citat { padding: clamp(48px, 6vw, 72px) 0; background: var(--bg); color: var(--ink); }
.om-citat-figure {
  width: min(820px, 100% - 2 * clamp(16px, 4vw, 48px)); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.om-citat-mark { display: block; margin-bottom: 18px; color: var(--accent); }
.om-citat-quote { margin: 0; }
.om-citat-quote p {
  margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem);
  line-height: 1.35; letter-spacing: -0.025em; text-wrap: balance;
}
.om-citat-by { margin-top: 22px; display: flex; align-items: center; gap: 14px; text-align: left; }
.om-citat-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--line); }
.om-citat-who { display: flex; flex-direction: column; line-height: 1.35; }
.om-citat-name { font-weight: 600; font-size: 1.0625rem; }
.om-citat-role { font-size: .875rem; color: var(--muted); }

/* ---------- Hvorfor jeg startede BEDRI: the photo beside the letter (stacked when they don't fit side by side) */
.om-brev { padding: 104px 0; }
.om-brev-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.om-brev-photo { margin: 0; flex: 1 1 340px; max-width: 460px; }
.om-brev-photo img { display: block; width: 100%; height: 640px; object-fit: cover; object-position: center 30%; border-radius: 18px; }
.om-brev-body { flex: 999 1 480px; min-width: 0; max-width: 640px; }
.om-brev .om-h2 { margin-bottom: 28px; }
.om-brev-text { display: flex; flex-direction: column; gap: 18px; font-size: 1.125rem; color: #2A3247; }
.om-brev-text p { margin: 0; }
/* phones: the photo stacked above the letter is square instead of 640 px tall (Jannik, 11 Nov) */
@media (max-width: 760px) { .om-brev-photo img { height: auto; aspect-ratio: 1 / 1; object-position: center 25%; } }
.om-brev-text a { color: var(--accent-lit); }
.sig-wrap { margin-top: 40px; display: flex; flex-direction: column; gap: 2px; }
/* the signature (bedri/letter, blocks/letter/signature.php): an inline SVG, the ink under a mask of the pen's strokes,
   its underline included. A raster image (.sig-img) gets the pen line (.sig-line) under it instead. */
.sig { display: block; flex: none; align-self: flex-start; max-width: 100%; color: var(--ink); }
.sig-svg { height: 104px; width: auto; margin: -8px 0 0 -6px; overflow: visible; }
.sig-img { width: auto; height: 76px; max-width: min(280px, 100%); }
.sig-line { display: block; margin: -6px 0 0 4px; }
.sig-line path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; opacity: .75; }
.om-brev-name { margin: 14px 0 0; font-weight: 600; }
.om-brev-role { margin: 0; font-size: .9375rem; color: var(--muted); }
/* written when it scrolls into view (bedri/letter's view.js adds .is-signed). The SVG: each mask stroke draws along
   its path (dash 1 of pathLength 1, gap 2, so nothing shows before it starts) with the duration and start view.js
   gives it by its length, quicker mid-stroke as a pen is. A raster image: uncovered from the left, then the pen line
   draws. Hidden only with .js, which bedri-motion.js drops with reduced motion: then (and without JS) it is simply
   there. */
.sig-stroke { stroke-dasharray: 1 2; stroke-dashoffset: 0; transition: stroke-dashoffset var(--sig-dur, .4s) cubic-bezier(.45, .05, .55, .95) var(--sig-at, 0s); }
.sig-img { clip-path: inset(-30% -10% -30% -10%); transition: clip-path 1.7s cubic-bezier(.5, .1, .3, 1) .15s; }
.sig-line path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s cubic-bezier(.5, .1, .3, 1) 1.6s; }
.js .sig-wrap:not(.is-signed) .sig-stroke { stroke-dashoffset: 1; }
.js .sig-wrap:not(.is-signed) .sig-img { clip-path: inset(-30% 100% -30% -10%); }
.js .sig-wrap:not(.is-signed) .sig-line path { stroke-dashoffset: 1; }
@media (prefers-reduced-motion: reduce) { .sig-stroke, .sig-img, .sig-line path { transition: none; } }

/* ---------- Det tror vi på (the page ends here, no CTA) */
.om-vaerdier { padding: 96px 0 120px; background: var(--bg); color: var(--ink); }
.om-vaerdier-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; }
.om-vaerdi { border-top: 1px solid var(--line); padding-top: 22px; }
.om-vaerdi h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.om-vaerdi p { margin: 0; color: var(--muted); }
