/* Shared site foundation. Blog-specific styles live in blogs/blog.css. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, .card strong, .vids strong { text-wrap: balance; }

.portrait { position: relative; overflow: hidden; }
.portrait span { position: absolute; inset: 0; display: grid; place-content: center; opacity: 0.55; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.timeline-details summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.timeline-details summary::-webkit-details-marker { display: none; }
.timeline-details summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s; }
.timeline-details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.timeline { margin-top: 18px; }
.timeline-item { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 2px 24px; padding: 13px 0; }
.timeline-when { font-variant-numeric: tabular-nums; }

body { background: #f6f6f4; color: #0e0f12; font-family: 'Switzer', sans-serif; font-size: 1rem; line-height: 1.6; }
.page { --ink-2: #454851; --ink-3: #6a6e78; --rule: #d6d7db; --accent: #1f3fd6; --display: 'Cabinet Grotesk', sans-serif; width: min(100% - 48px, 840px); margin: 0 auto; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
em { font-style: normal; }
p { color: var(--ink-2); }
p strong { color: #0e0f12; font-weight: 600; }
p a, .sec-head a { color: #0e0f12; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: color 0.15s; }
p a:hover, .sec-head a:hover { color: var(--accent); }

.hero { display: flex; gap: 36px; align-items: center; padding: 88px 0 72px; }
.portrait { flex-shrink: 0; width: 140px; aspect-ratio: 1; border-radius: 50%; background: #e6e7ea; }
.portrait span { font-family: var(--display); font-weight: 800; font-size: 2.4rem; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 16px; }
.sub { max-width: 34em; margin-bottom: 24px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 500; font-size: 0.93rem; }
.links a { transition: color 0.15s; }
.links a:hover { color: var(--accent); }

.sec { padding: 52px 0; border-top: 3px solid #0e0f12; }
h2 { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; margin-bottom: 26px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.sec-head a { font-size: 0.93rem; font-weight: 500; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #0e0f12; }
.pillars article { padding: 24px; border-left: 1px solid #0e0f12; }
.pillars article:first-child { border-left: 0; }
.pillars h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; letter-spacing: -0.035em; margin-bottom: 14px; }
.pillars p { font-size: 0.95rem; line-height: 1.55; }
.pillars p + p { margin-top: 10px; }
.more { color: var(--accent); font-weight: 600; text-decoration: none; transition: color 0.15s; }
.more:hover { color: #0e0f12; }
.pillars .soon { color: var(--accent); font-weight: 600; }
.hire { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: center; margin-top: 28px; padding: 32px 36px; background: #0e0f12; }
.hire-label { margin-bottom: 10px; color: #a9b6ff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hire h3 { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.12; letter-spacing: -0.03em; }
.hire h3 + p { margin-top: 8px; color: #c7c9d0; }
.hire-cta { padding: 11px 18px; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.93rem; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.hire-cta:hover { background: #fff; color: #0e0f12; }


.shot img { border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 28px 56px -32px rgba(14, 20, 60, 0.4); }
.shot figcaption { margin-top: 12px; color: var(--ink-3); font-size: 0.8rem; }
/* Hallvi stands on its section's rule and says hello: hallvi.com's flat mascot and its bubble.
   The rule is the stand's bottom border, so the section drops its own. The heading and the link follow under it. */
#hallvi { border-top: 0; padding-top: 0; }
.hallvi-stand { display: flex; align-items: flex-start; margin: -8px 0 52px; border-bottom: 3px solid #0e0f12; }
.hallvi-mascot { flex: none; display: block; width: 150px; aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer; transform: translateY(7px); }
.hallvi-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* The raised arm waves about the shoulder, rests, and waves again, as on hallvi.com. */
.hallvi-mascot .wave { transform-origin: 298px 204px; animation: hallvi-wave 5s ease-in-out 0.3s infinite; }
@keyframes hallvi-wave { 0%, 32%, 100% { transform: rotate(0deg); } 5.5%, 16%, 26.5% { transform: rotate(-14deg); } 10.5%, 21% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .hallvi-mascot .wave { animation: none; } }
.hallvi-says { position: relative; margin: 4px 0 0 -14px; padding: 12px 17px; background: #0f1520; color: #eef2fa; border-radius: 14px 14px 14px 5px; white-space: nowrap; font-size: 0.94rem; font-weight: 500; line-height: 1.45; box-shadow: 0 10px 26px rgba(15, 21, 32, 0.18); }
.hallvi-says::after { content: ""; position: absolute; left: 2px; top: calc(100% - 1px); width: 26px; height: 16px; background: #0f1520; clip-path: polygon(0 100%, 30% 0, 100% 0); }
.hallvi-head h2 em { color: var(--accent); }
.product-cta { margin-top: 22px; }
.product-cta a { display: inline-block; padding: 10px 18px; background: #0e0f12; color: #fff; font-weight: 600; font-size: 0.93rem; text-decoration: none; transition: background 0.15s; }
.product-cta a:hover { background: var(--accent); color: #fff; }

.card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 0; border-top: 1px solid var(--rule); }
.card:last-child { border-bottom: 1px solid var(--rule); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #f6f6f4; border: 1px solid var(--rule); transition: border-color 0.15s; }
.card:hover img { border-color: var(--accent); }
.card img.wide-thumbnail { aspect-ratio: 5 / 2; }
.card strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 8px; transition: color 0.15s; }
.card em { display: block; color: var(--ink-2); font-size: 0.95rem; }
.card:hover strong, .vids a:hover strong { color: var(--accent); }

.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vids img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 10px; background: #e6e7ea; transition: opacity 0.15s; }
.vids a:hover img { opacity: 0.88; }
.vids strong { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.3; transition: color 0.15s; }

.about { max-width: 40em; }
.timeline-details { margin-top: 24px; }
.timeline-details summary { font-weight: 500; transition: color 0.15s; }
.timeline-details summary:hover { color: var(--accent); }
.timeline-item { border-bottom: 1px solid var(--rule); }
.timeline-role { font-weight: 600; }
.timeline-when, .timeline-org, .timeline-aside { color: var(--ink-3); font-size: 0.92rem; font-weight: 400; }
.foot { border-top: 3px solid #0e0f12; padding: 40px 0 72px; }
.foot .links { justify-content: center; color: var(--ink-3); }

.subhead { padding: 40px 0 64px; }
.back-link { display: inline-block; margin-bottom: 64px; color: var(--ink-2); font-weight: 500; font-size: 0.93rem; transition: color 0.15s; }
.back-link:hover { color: var(--accent); }
.lead { max-width: 32em; font-size: 1.2rem; line-height: 1.5; }
.rows-intro { margin: -8px 0 18px; }
.rows li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows div p + p { margin-top: 8px; }
.row-name { color: #0e0f12; font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.02em; }
.rows-foot { margin-top: 18px; }

@media (max-width: 720px) {
    .hero { flex-direction: column; align-items: flex-start; gap: 24px; padding: 56px 0 48px; }
    .portrait { width: 104px; }
    .sec { padding: 40px 0; }
    .pillars { grid-template-columns: 1fr; }
    .pillars article { border-left: 0; border-top: 1px solid #0e0f12; }
    .pillars article:first-child { border-top: 0; }
    .hire { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
    .hire-cta { justify-self: start; }
    .hallvi-stand { margin-bottom: 40px; }
    .hallvi-mascot { width: 112px; transform: translateY(5px); }
    .hallvi-head { flex-direction: column; gap: 0; }
    .hallvi-head h2 { margin-bottom: 12px; }
    .hallvi-head a { margin-bottom: 24px; }
    .card { grid-template-columns: 1fr; gap: 14px; }
    .vids { grid-template-columns: 1fr; gap: 24px; }
    .timeline-item { grid-template-columns: 1fr; }
    .subhead { padding: 28px 0 44px; }
    .back-link { margin-bottom: 44px; }
    .rows li { grid-template-columns: 1fr; }
    .foot { padding-bottom: 48px; }
    h2 { font-size: 1.75rem; }
}
