/* AIWorkVN — main stylesheet. Colors are taken from the brand logo. */

/* Inter variable font, self-hosted (SIL Open Font License, see ../fonts/OFL.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-vietnamese-wght-normal.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  --navy-950: #020f22;
  --navy-900: #021d3a;
  --navy-800: #06305f;
  --blue: #0b63e5;
  --blue-bright: #1e9bff;
  --cyan: #19c3fb;
  --orange: #ff8a14;
  --orange-deep: #ff6a1a;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #071a33;
  --muted: #51607a;
  --border: #dde5f0;
  --link: #0a57cc;
  --tint: #e6f0ff;
  --tint-text: #0a4fb8;
  --warm: #fff1e0;
  --warm-text: #9a4a00;
  --header-bg: rgba(255, 255, 255, 0.88);
  --solid: var(--navy-900);
  --shadow: 0 1px 2px rgba(7, 26, 51, 0.05), 0 10px 28px rgba(7, 26, 51, 0.07);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: var(--font);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #03101f;
    --surface: #081b33;
    --surface-2: #0b2342;
    --text: #e8eef8;
    --muted: #a3b1c9;
    --border: #183255;
    --link: #7dbbff;
    --tint: #0c2c57;
    --tint-text: #9ccbff;
    --warm: #3a2208;
    --warm-text: #ffc078;
    --header-bg: rgba(3, 16, 31, 0.86);
    --solid: var(--blue);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--navy-900); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand img { width: auto; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; }
.brand-name b { font-weight: inherit; color: var(--orange); }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.97rem; text-decoration: none;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--orange); border-radius: 8px 8px 0 0; }

.lang { display: inline-flex; align-items: center; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang a {
  min-width: 40px; padding: 4px 10px; border-radius: 999px; text-align: center;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--solid); color: #fff; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 0 10px; }
  .brand { gap: 8px; }
  .brand img { height: 30px; }
  .brand-name { font-size: 1.12rem; }
  .js .nav-toggle { display: inline-flex; order: 3; }
  .lang { order: 2; }
  .nav { order: 4; flex-basis: 100%; padding: 6px 0 14px; }
  .js .nav { display: none; }
  .js .nav.is-open { display: block; }
  .nav ul { flex-wrap: wrap; }
  .js .nav ul { flex-direction: column; align-items: stretch; }
  .js .nav a { padding: 12px; font-size: 1.05rem; }
  .js .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange); border-radius: 0 8px 8px 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2.25; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0a55c8; }
.btn-accent { background: linear-gradient(180deg, #ff9a1f, var(--orange-deep)); color: #2a1200; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue-bright); }
.on-dark .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; stroke-width: 2.25; transition: transform 0.15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Hero ---------- */

.on-dark { color: #fff; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(30, 155, 255, 0.34), transparent 65%),
    radial-gradient(520px 360px at 96% 92%, rgba(255, 138, 20, 0.16), transparent 70%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 78%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: 48px; padding-block: clamp(56px, 8vw, 104px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tint-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.on-dark .eyebrow { color: #9fd4ff; }

.hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
html[lang="vi"] .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: -0.025em; }
.hero h1 em {
  font-style: normal; color: var(--orange);
  background: linear-gradient(95deg, #ffb02e, var(--orange-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: #c7d6ea; }
.hero .btn-row { margin-top: 32px; }

.orbit { width: 100%; max-width: 520px; margin-inline: auto; }
.orbit text { font-family: var(--font); font-size: 15px; font-weight: 600; fill: #dbe8f8; }
.orbit .ring { transform-origin: 260px 262px; animation: spin 80s linear infinite; }
.orbit .ring.rev { animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .orbit { max-width: 400px; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  background:
    radial-gradient(600px 300px at 88% 0%, rgba(30, 155, 255, 0.28), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.page-hero .wrap { padding-block: clamp(48px, 7vw, 84px); }
.page-hero h1 { margin-top: 16px; max-width: 20em; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
.page-hero .lead { margin-top: 16px; max-width: 40em; font-size: 1.15rem; color: #c7d6ea; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin-top: 14px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
.section-head .lead { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; max-width: none; }

.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { font-size: 1.2rem; font-weight: 700; }
.card p { color: var(--muted); font-size: 1rem; }
.card .text-link { margin-top: auto; padding-top: 8px; }
.card.link { transition: transform 0.18s ease, border-color 0.18s ease; }
.card.link:hover { transform: translateY(-3px); border-color: var(--blue-bright); }
/* Make the whole card clickable through its single link. */
.card.link .text-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.tile {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px;
  border-radius: 12px; background: var(--tint); color: var(--tint-text);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 3px 10px; border-radius: 999px; background: var(--warm); color: var(--warm-text);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge.blue { background: var(--tint); color: var(--tint-text); }

/* Split text + points */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .prose p + p { margin-top: 16px; }
.split .prose p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.points { display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.section.alt .points li { background: var(--bg); }
.points .icon { grid-row: span 2; margin-top: 2px; color: var(--blue-bright); stroke-width: 2.25; }
.points strong { font-size: 1.05rem; }
.points span { color: var(--muted); font-size: 0.98rem; }

.checks { display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.checks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--blue-bright); stroke-width: 2.5; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px 32px; }
.audience li { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.audience .tile { grid-row: span 2; margin: 2px 0 0; }
.audience h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.audience p { color: var(--muted); font-size: 0.98rem; }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; counter-reset: v; }
.values li { counter-increment: v; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.section.alt .values li { background: var(--bg); }
.values li::before { content: "0" counter(v); display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; letter-spacing: 0.08em; color: var(--orange); }
.values h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
.values p { margin-top: 6px; color: var(--muted); font-size: 0.97rem; }

/* Status note */
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 24px 26px;
  border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); background: var(--surface);
}
.note .icon { grid-row: span 2; color: var(--orange); margin-top: 2px; }
.note h2, .note h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.note p { color: var(--muted); max-width: 62em; }

/* Solutions */
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--border); }
.pillar:first-of-type { border-top: 0; padding-top: 0; }
.pillar-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.pillar-head .tile { margin: 0; }
.pillar h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.pillar .desc { color: var(--muted); font-size: 1.08rem; }
.pillar .panel { padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.pillar .panel h3 { margin-bottom: 14px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .pillar { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 26px 26px 78px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.steps li::before {
  content: counter(s); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--solid); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 0.98rem; }

/* Tools */
.toolbar { display: none; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 14px; }
.js .toolbar { display: flex; }
.search { position: relative; flex: 1 1 260px; max-width: 380px; }
.search .icon { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--text); background: var(--surface);
}
.search input::placeholder { color: var(--muted); opacity: 0.85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--blue-bright); }
.chip[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: #fff; }
.count { display: none; margin-bottom: 20px; color: var(--muted); font-size: 0.95rem; }
.js .count { display: block; }
.tool-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tool .part { margin-top: auto; padding-top: 12px; font-size: 0.88rem; color: var(--muted); }
.tool .part a { font-weight: 600; }
.empty { padding: 36px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

/* Blog */
.post-card .meta, .article .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.88rem; color: var(--muted); }
.on-dark .meta { color: #b7c9e0; }
.post-card h3 { font-size: 1.22rem; line-height: 1.3; }
.post-card h2 { font-size: 1.3rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; }

.article .wrap { max-width: 760px; }
.article-body { padding-block: clamp(40px, 6vw, 72px); font-size: 1.125rem; }
.article-body p + p, .article-body ul + p, .article-body p + ul { margin-top: 18px; }
.article-body h2 { margin: 40px 0 14px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.015em; }
.article-body ul { display: grid; gap: 10px; padding-left: 22px; list-style: disc; }
.article-body li::marker { color: var(--orange); }
.article-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-foot .text-link .icon { transform: rotate(180deg); }
.article-foot .text-link:hover .icon { transform: rotate(180deg) translateX(3px); }

/* About */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.duo .card { padding: 32px; }
.duo .card h2 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint-text); }
.duo .card p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--text); }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.traits li { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 0.95rem; }
/* The logo artwork is dark-on-light, so it always sits on a white plate. */
.logo-plate { display: grid; place-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.logo-plate img { width: min(100%, 440px); }

/* Contact */
.contact-list { display: grid; gap: 0; }
.contact-list div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.contact-list div:first-child { border-top: 0; padding-top: 0; }
.contact-list dt { color: var(--muted); font-size: 0.95rem; }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list dd a + a { margin-left: 14px; }
@media (max-width: 520px) { .contact-list div { grid-template-columns: 1fr; gap: 2px; } }
.stack { display: grid; gap: 20px; align-content: start; }
.link-list { display: grid; gap: 10px; }

/* CTA band */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: clamp(32px, 5vw, 52px); border-radius: 24px;
  background:
    radial-gradient(480px 260px at 100% 0%, rgba(30, 155, 255, 0.4), transparent 70%),
    linear-gradient(140deg, var(--navy-800), var(--navy-950));
}
.cta h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; }
.cta p { margin-top: 10px; max-width: 34em; color: #c7d6ea; }

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

.site-footer { background: var(--navy-950); color: #b9c8dc; font-size: 0.97rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-block: 56px 40px; }
.site-footer .brand { color: #fff; margin: 0; }
.footer-tag { margin-top: 14px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.footer-blurb { margin-top: 8px; max-width: 30em; }
.footer-address { margin-top: 14px; max-width: 30em; font-size: 0.92rem; color: #8ea3bf; }
address { font-style: normal; }
.site-footer h2 { margin-bottom: 14px; font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #7f95b3; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: #dce7f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.88rem; color: #8ea3bf; }
.footer-bottom p:last-child { max-width: 46em; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */

.notfound { display: grid; place-items: center; min-height: 62vh; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--blue-bright); }
.notfound h1 { margin-top: 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.notfound p { margin: 10px auto 26px; color: var(--muted); max-width: 30em; }
.notfound .block + .block { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--border); }

/* ---------- Motion ---------- */

/* Only elements the script marks as below the fold start hidden, so nothing depends on JS to be visible. */
.reveal { transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.pending { opacity: 0; transform: translateY(14px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toolbar, .cta { display: none; }
  body { background: #fff; color: #000; }
}
