/* Jäger Analysis OÜ, Home concept "Interlace".
   The two interlocked open frames of the existing symbol are the layout
   system: the second paragraph steps right by the same proportion as the
   back frame (42 of 234 units). Both frames always keep the brand colour. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/source-serif-4-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f8f8f6;
  --ink: #0d1726;
  --navy: #001133;
  --soft: #364051;
  --muted: #5c6472;
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  /* Symbol size; --step is the back frame's offset (42 of 250 units). */
  --mark-size: 400px;
  --step: calc(var(--mark-size) * 0.168);
  --bleed: calc(var(--mark-size) * -0.032);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sans: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p { margin: 0; }

::selection { background: rgba(0, 17, 51, 0.14); }

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--navy);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(20px, 4vh, 40px);
}

.wordmark {
  display: block;
  flex: none;
  border-radius: 2px;
}
.wordmark img {
  display: block;
  width: auto;
  height: clamp(30px, 2.8vw, 40px);
}

.main-nav ul {
  display: flex;
  gap: clamp(8px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Links framed by two corners taken from the symbol ---------------------- */

.frame-link {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.frame-link::before,
.frame-link::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0 solid var(--navy);
  opacity: 0;
  transition: opacity 180ms ease-out, transform 320ms var(--ease);
}
.frame-link::before {
  top: 0;
  inset-inline-start: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  transform: translate(5px, 5px);
}
.frame-link::after {
  inset-inline-end: 0;
  bottom: 0;
  border-right-width: 2px;
  border-bottom-width: 2px;
  transform: translate(-5px, -5px);
}
.frame-link:hover::before,
.frame-link:hover::after,
.frame-link:focus-visible::before,
.frame-link:focus-visible::after,
.frame-link[aria-current="page"]::before,
.frame-link[aria-current="page"]::after {
  opacity: 1;
  transform: none;
}
.frame-link:hover,
.frame-link:focus-visible { color: var(--navy); }
.frame-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.frame-link:active::before { transform: translate(2px, 2px); }
.frame-link:active::after { transform: translate(-2px, -2px); }

.wordmark:focus-visible,
.site-footer a:focus-visible,
main:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
main:focus:not(:focus-visible) { outline: none; }

/* Composition ------------------------------------------------------------ */

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--mark-size);
  column-gap: clamp(40px, 6vw, 112px);
  align-content: center;
  padding-block: clamp(56px, 10vh, 120px) clamp(56px, 9vh, 104px);
}

.intro { grid-column: 1; grid-row: 1; }

h1 {
  font-size: clamp(2.5rem, 1.5rem + 2.9vw, 4.25rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--navy);
}

.lead {
  max-width: 21em;
  margin-top: clamp(20px, 2.6vw, 36px);
  font-size: clamp(1.375rem, 1.05rem + 1vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

.mark {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
  width: var(--mark-size);
  margin: 0;
  margin-inline-end: var(--bleed);
  color: var(--navy);
}
.mark svg { display: block; width: 100%; height: auto; overflow: visible; }

.focus {
  grid-column: 1;
  grid-row: 2;
  margin-top: clamp(40px, 7vh, 72px);
  padding-inline-start: var(--step);
}
.focus p {
  max-width: 29em;
  color: var(--soft);
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.next {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: clamp(28px, 4vh, 40px) 0 0;
  margin-inline-start: -12px;
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px clamp(24px, 4vh, 40px);
  color: var(--muted);
  font-size: 15px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}
.site-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-footer a[aria-current="page"] { color: var(--ink); }

/* The symbol -------------------------------------------------------------- */

.frame {
  fill: currentColor;
  will-change: transform;
}
.bar { transform-box: fill-box; }
.bar.h { transform-origin: left center; }
.bar.v { transform-origin: center top; }

@media (prefers-reduced-motion: no-preference) {
  .bar.h { animation: build-h 900ms var(--ease) both; animation-delay: calc(var(--d) * 0.25 + 60ms); }
  .bar.v { animation: build-v 900ms var(--ease) both; animation-delay: calc(var(--d) * 0.25 + 60ms); }
}
@keyframes build-h { from { transform: scaleX(0.92); } }
@keyframes build-v { from { transform: scaleY(0.92); } }

@media (prefers-reduced-motion: reduce) {
  .frame-link, .frame-link::before, .frame-link::after, .site-footer a { transition: none; }
}

/* Narrow screens: the symbol becomes the hinge between both paragraphs. ---- */

@media (max-width: 899px) {
  :root { --mark-size: clamp(136px, 42vw, 220px); }
  main {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-block: clamp(40px, 8vh, 72px) 56px;
  }
  .intro { grid-row: 1; }
  .mark {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: clamp(40px, 8vh, 64px) 0 0;
    margin-inline-start: var(--bleed);
  }
  .focus { grid-row: 3; margin-top: clamp(32px, 6vh, 48px); }
}

@media (max-width: 599px) {
  .site-header .nav-home { display: none; }
  .main-nav ul { margin-inline-end: -12px; }
  .site-header a.frame-link { padding-inline: 10px; font-size: 17px; }
  .site-footer { flex-direction: column; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  :root { --mark-size: 340px; }
}

/* Shared six-page composition, continued from the selected home concept. */
.site-footer { justify-content: flex-end; }
.inner-main {
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  column-gap: clamp(48px, 8vw, 120px);
  align-content: start;
  padding-top: clamp(64px, 10vh, 112px);
}
.inner-main h1 { font-size: clamp(2.7rem, 4.8vw, 4rem); }
.page-heading { min-width: 0; }
.interior-mark { width: 132px; margin: 56px 0 0; }
.interior .bar { animation: none; }
.prose { max-width: 38rem; min-width: 0; }
.prose p { margin: 0 0 1.5em; color: var(--soft); font-size: 19px; line-height: 1.65; text-wrap: pretty; }
.prose .opening { color: var(--ink); font-size: clamp(1.4rem, 2.1vw, 1.7rem); line-height: 1.4; }
.prose h2 { margin: 2.2em 0 .8em; font-weight: 400; font-size: 1.45rem; line-height: 1.25; color: var(--navy); }
.prose a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.prose a:focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
.legal-copy h2:first-child { margin-top: .25em; }
.contact-main { align-content: center; }
.contact-copy { padding-top: 5px; align-self: start; }
.contact-copy .opening { margin-bottom: 16px; }
.contact-email { display: inline-block; max-width: 100%; font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.4; overflow-wrap: anywhere; text-decoration-color: #9ba1ad; transition: text-decoration-color 200ms; }
.contact-email:hover { text-decoration-color: var(--navy); }
.contact-copy .contact-context { margin-top: 40px; max-width: 27em; }
@media (max-width: 899px) {
  .inner-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .inner-main .page-heading { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
  .inner-main h1 { font-size: clamp(2.5rem, 7vw, 3.8rem); }
  .interior-mark { flex: 0 0 58px; width: 58px; margin: 0; }
  .prose { max-width: 40rem; }
  .prose p { font-size: 18px; }
  .prose .opening { font-size: 1.4rem; }
  .site-footer { align-items: flex-start; }
  .contact-main { align-content: start; }
}
@media (prefers-reduced-motion: reduce) { .contact-email { transition: none; } }

.interior-mark { justify-self: start; }
@media (max-width: 599px) { .about-main .interior-mark { display: none; } }

/* Analytics consent: a quiet panel that leaves the page readable and gives
   both choices the same weight. */
.consent-link {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}
.consent-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.consent-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.consent-link[hidden] { display: none; }

.consent {
  position: fixed;
  inset-inline-end: var(--gutter);
  bottom: clamp(16px, 3vh, 32px);
  z-index: 20;
  width: min(30rem, calc(100vw - 2 * var(--gutter)));
  padding: 20px 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 17, 51, 0.12), 0 10px 32px rgba(0, 17, 51, 0.12);
  font-size: 15px;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent p { color: var(--soft); }
.consent a { color: var(--navy); text-underline-offset: 3px; }
.consent a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.consent-actions { display: flex; gap: 12px; margin-top: 16px; }
.consent button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}
.consent button:hover { color: var(--paper); background: var(--navy); }
.consent button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 599px) {
  .consent { inset-inline: 12px; bottom: 12px; width: auto; padding: 16px 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent button, .consent-link { transition: none; }
}
.prose code { font-family: inherit; font-size: 0.95em; color: var(--ink); }

/* Contact form: open fields on the page ground, no boxes around the form. */
.contact-form { margin-top: clamp(48px, 7vh, 72px); }
.contact-form[hidden] { display: none; }
.contact-form h2 { margin: 0 0 24px; }
.contact-form .field { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.contact-form .optional { color: var(--muted); }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #9ba1ad;
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  transition: border-color 180ms ease-out;
}
.contact-form textarea { min-height: 10em; resize: vertical; }
.contact-form input:hover,
.contact-form textarea:hover { border-color: var(--soft); }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.contact-form [aria-invalid="true"] { border-color: #8b2b1f; }
.contact-form .form-trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .form-note { margin: 4px 0 0; font-size: 15px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-actions button {
  min-height: 44px;
  padding: 8px 22px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: color 180ms ease-out, background-color 180ms ease-out;
}
.form-actions button:hover { color: var(--paper); background: var(--navy); }
.form-actions button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.form-actions button:disabled { cursor: progress; opacity: 0.7; }
.prose .form-status { margin: 0; font-size: 16px; color: var(--ink); }
.prose .form-status.is-error { color: #8b2b1f; }
@media (prefers-reduced-motion: reduce) {
  .contact-form input, .contact-form textarea, .form-actions button { transition: none; }
}
.contact-main { align-content: start; }

/* Eleven languages ------------------------------------------------------- */

/* Header: main navigation and language menu side by side. */
.header-right { display: flex; align-items: center; gap: clamp(4px, 1.5vw, 20px); }

.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
  transition: color 200ms ease-out;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border: 0 solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}
.lang-menu[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.lang-menu summary:hover,
.lang-menu[open] summary { color: var(--navy); }
.lang-menu summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.lang-menu ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 15;
  min-width: 12.5rem;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 17, 51, 0.12), 0 10px 32px rgba(0, 17, 51, 0.14);
}
.lang-menu li a {
  display: block;
  padding: 8px 18px;
  padding-inline-start: 34px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.lang-menu li a:hover,
.lang-menu li a:focus-visible { color: var(--navy); background: rgba(0, 17, 51, 0.06); outline: none; }
.lang-menu li a[aria-current="true"] { position: relative; color: var(--navy); }
.lang-menu li a[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 18px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: var(--navy);
}
.lang-short { display: none; }
@media (max-width: 599px) {
  .lang-full { display: none; }
  .lang-short { display: inline; letter-spacing: 0.04em; }
  .lang-menu summary { padding-inline: 8px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-menu summary, .lang-menu summary::after, .lang-menu li a { transition: none; }
}

/* Footer note for the English-only legal pages. */
.legal-note { margin: 0; max-width: 34em; color: var(--muted); font-size: 15px; line-height: 1.5; }
.site-footer:has(.legal-note) { justify-content: space-between; align-items: baseline; }

/* Scripts other than Latin: keep Source Serif 4 for Latin letters, numerals
   and the brand name; let the system supply the script itself. No tracking,
   a little more leading. */
html[lang="ar"] { --sans: "Instrument Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --serif: "Source Serif 4", "Noto Naskh Arabic", "Sakkal Majalla", "Geeza Pro", serif; }
html[lang="zh-Hans"] { --sans: "Instrument Sans", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --serif: "Source Serif 4", "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif; }
html[lang="ja"] { --sans: "Instrument Sans", "Hiragino Sans", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; --serif: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif; }
html[lang="hi"] { --sans: "Instrument Sans", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", Mangal, sans-serif; --serif: "Source Serif 4", "Noto Serif Devanagari", "Nirmala UI", serif; }
html[lang="th"] { --sans: "Instrument Sans", "Noto Sans Thai", Thonburi, "Leelawadee UI", Tahoma, sans-serif; --serif: "Source Serif 4", "Noto Serif Thai", Thonburi, "Leelawadee UI", serif; }
html[lang="ar"] h1, html[lang="zh-Hans"] h1, html[lang="ja"] h1, html[lang="hi"] h1, html[lang="th"] h1,
html[lang="ar"] .lead, html[lang="zh-Hans"] .lead, html[lang="ja"] .lead, html[lang="hi"] .lead, html[lang="th"] .lead { letter-spacing: 0; }
html[lang="ar"] body, html[lang="hi"] body, html[lang="th"] body { line-height: 1.7; }
html[lang="ar"] h1, html[lang="hi"] h1, html[lang="th"] h1 { line-height: 1.25; }
html[lang="ar"] .lead, html[lang="hi"] .lead, html[lang="th"] .lead { line-height: 1.45; }
html[lang="zh-Hans"] h1, html[lang="ja"] h1 { line-height: 1.2; }
html[lang="zh-Hans"] .lead, html[lang="ja"] .lead { line-height: 1.5; }
html[lang="ar"] .lang-menu li a { white-space: normal; }

/* Home v2.1 ------------------------------------------------------------- */

/* Background: a few fine light-paths that drift slowly, after the company's
   desktop background, rendered on the paper ground at very low contrast. */
.waves {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* Section headings: plain serif, no labels, no rules. */
main h2 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--navy);
}
.areas-wrap,
.steps-wrap,
.faq-wrap,
.close-wrap { grid-column: 1 / -1; margin-top: clamp(96px, 16vh, 176px); }

/* Areas inside the two interlocked frames of the symbol. The frames are drawn
   as thin lines that trace themselves when the section comes into view. */
.frames { position: relative; padding: clamp(64px, 9vw, 120px) calc(8% + clamp(28px, 4vw, 56px)); }
.sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  will-change: translate;
}
.sk {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-opacity: 0.42;
}
.sk-ghost { stroke-opacity: 0.14; }
.areas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(36px, 6vw, 88px);
}
.area h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 1.05rem + 0.6vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--navy);
}
.area p,
.steps-text,
.faq dd,
.close-wrap p { color: var(--soft); font-size: clamp(1.0625rem, 0.98rem + 0.25vw, 1.175rem); line-height: 1.65; text-wrap: pretty; }
.area p { max-width: 28em; }

/* Steps as one run-in paragraph, stepped in by the frame offset. */
.steps-wrap { padding-inline-start: var(--step); }
.steps-text { max-width: 40em; }
.steps-text strong { font-weight: 400; color: var(--navy); }

/* Questions: open, question left, answer right. */
.faq { margin: 0; max-width: 62rem; }
.qa {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px clamp(28px, 5vw, 72px);
  padding: 0 0 clamp(22px, 3vw, 32px);
}
.faq dt { font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem); line-height: 1.35; color: var(--ink); }
.faq dd { margin: 0; }

.close-wrap { padding-bottom: clamp(24px, 6vh, 64px); }
.close-wrap p { margin-bottom: 10px; }
.close-wrap .contact-email { color: var(--navy); text-decoration: none; }

/* Links: a soft underline runs in from the start on hover. */
.contact-email,
.prose a,
.site-footer a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 420ms var(--ease), color 200ms ease-out;
}
[dir="rtl"] .contact-email, [dir="rtl"] .prose a, [dir="rtl"] .site-footer a { background-position: 100% 100%; }
.contact-email { background-size: 100% 1px; background-image: linear-gradient(rgba(0, 17, 51, 0.3), rgba(0, 17, 51, 0.3)); }
.contact-email:hover { background-image: linear-gradient(var(--navy), var(--navy)); }
.prose a:hover,
.site-footer a:hover { background-size: 100% 1px; }

/* Frames trace and text lines rise, only when motion is welcome and the script ran. */
@media (prefers-reduced-motion: no-preference) {
  .js-motion .sk { stroke-dasharray: var(--len, 0) var(--len, 0); stroke-dashoffset: var(--len, 0); transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1); }
  .js-motion .sk-ghost { transition-delay: 250ms; transition-duration: 1700ms; }
  .js-motion .sketch-front .sk { transition-delay: 420ms; }
  .js-motion .sketch-front .sk-ghost { transition-delay: 650ms; }
  .js-motion [data-frames].is-visible .sk { stroke-dashoffset: 0; }

  .js-motion .line { display: inline-block; opacity: 0; transform: translateY(0.45em); transition: opacity 700ms ease-out, transform 800ms var(--ease); transition-delay: calc(var(--i) * 90ms); }
  .js-motion .is-visible .line,
  .js-motion .line-group.is-visible .line { opacity: 1; transform: none; }

  .js-motion [data-reveal],
  .js-motion .fade-block { opacity: 0; transition: opacity 900ms ease-out; }
  .js-motion [data-reveal].is-visible,
  .js-motion .fade-block.is-visible { opacity: 1; }

  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .waves { display: none; }
  .contact-email, .prose a, .site-footer a { transition: none; }
}

@media (max-width: 899px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
  .frames { padding: 0; }
  .sketch { display: none; }
  .steps-wrap { padding-inline-start: 0; }
  .qa { grid-template-columns: minmax(0, 1fr); }
}

/* Typography v2.2: Instrument Sans for reading and navigation, Source Serif 4
   only for the company name and section titles. */
h1,
main h2,
.inner-main h1 { font-family: var(--serif); }
.lead { font-family: var(--sans); font-weight: 400; letter-spacing: -0.012em; line-height: 1.32; }
.area h3 { font-family: var(--sans); font-weight: 500; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); letter-spacing: -0.005em; color: var(--ink); }
.steps-text strong { font-weight: 500; color: var(--ink); }
.faq dt { font-weight: 500; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem); }
.area p, .steps-text, .faq dd, .close-wrap p, .focus p { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); line-height: 1.7; }
.prose p { font-size: 17.5px; line-height: 1.72; }
.prose .opening { font-family: var(--sans); font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.42; letter-spacing: -0.01em; }
.site-header a.frame-link, .lang-menu summary { font-size: 15.5px; letter-spacing: 0.005em; }
.contact-email { font-family: var(--sans); letter-spacing: -0.01em; }

/* Navigation: two sketched corners instead of the solid ones. Thin strokes that
   overshoot the corner, with a faint second stroke, drawn in on hover; the
   current page keeps them. */
.frame-link::before,
.frame-link::after {
  width: 20px;
  height: 14px;
  border: 0;
  opacity: 0.75;
  transform: none;
  background-repeat: no-repeat;
  transition: background-size 420ms var(--ease), opacity 200ms ease-out;
}
.frame-link::before {
  top: -3px;
  inset-inline-start: -5px;
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(rgba(0, 17, 51, 0.28), rgba(0, 17, 51, 0.28)),
    linear-gradient(rgba(0, 17, 51, 0.28), rgba(0, 17, 51, 0.28));
  background-position: 0 3px, 4px 0, 1px 5px, 6px 2px;
  background-size: 0 1px, 1px 0, 0 1px, 1px 0;
}
.frame-link::after {
  bottom: -3px;
  inset-inline-end: -5px;
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(rgba(0, 17, 51, 0.28), rgba(0, 17, 51, 0.28)),
    linear-gradient(rgba(0, 17, 51, 0.28), rgba(0, 17, 51, 0.28));
  background-position: 100% calc(100% - 3px), calc(100% - 4px) 100%, calc(100% - 1px) calc(100% - 5px), calc(100% - 6px) calc(100% - 2px);
  background-size: 0 1px, 1px 0, 0 1px, 1px 0;
}
.frame-link:hover::before,
.frame-link:focus-visible::before,
.frame-link[aria-current="page"]::before,
.frame-link:hover::after,
.frame-link:focus-visible::after,
.frame-link[aria-current="page"]::after {
  opacity: 0.75;
  transform: none;
  background-size: 100% 1px, 1px 100%, 70% 1px, 1px 70%;
}
.frame-link:active::before,
.frame-link:active::after { transform: none; }
[dir="rtl"] .frame-link::before { background-position: 100% 3px, calc(100% - 4px) 0, calc(100% - 1px) 5px, calc(100% - 6px) 2px; }
[dir="rtl"] .frame-link::after { background-position: 0 calc(100% - 3px), 4px 100%, 1px calc(100% - 5px), 6px calc(100% - 2px); }
@media (prefers-reduced-motion: reduce) { .frame-link::before, .frame-link::after { transition: none; } }

/* Contact: a pencil outline of Estonia with Tallinn marked. */
.place { margin: clamp(36px, 5vw, 56px) 0 0; max-width: 300px; }
.place svg { display: block; width: 100%; height: auto; overflow: visible; }
.place .sk { vector-effect: none; stroke-width: 0.9; stroke-linejoin: round; stroke-opacity: 0.38; }
.place .sk-ghost { stroke-opacity: 0.12; }
.place-dot { fill: var(--navy); }
.place-ring circle { fill: var(--navy); fill-opacity: 0.4; }
.place-ring .ring-ghost { fill-opacity: 0.13; }
.place figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .place-ring { transform-box: fill-box; transform-origin: center; animation: place-turn 120s linear infinite; }
  @keyframes place-turn { to { transform: rotate(360deg); } }
}
@media (max-width: 899px) {
  .contact-main .page-heading { flex-direction: column; align-items: flex-start; }
  .place { max-width: 220px; margin-top: 20px; }
}
.steps-text .step { display: block; }
.steps-text .step + .step { margin-top: 0.7em; }

/* Profile links: plain text with the same run-in underline as other links. */
.profile-link { margin-top: 18px; font-size: 16px; }
.prose .profile-link a { color: var(--navy); }
.contact-copy .profile-link { margin: 14px 0 0; }
