@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eef0f4;
  --ink: #1d1e24;
  --muted: #5a5c67;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --white: #ffffff;
  --ink-soft: #2a2c34;
  --shadow: 0 18px 50px rgba(30, 34, 48, 0.08);
  --radius: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--font);
  line-height: 1.62;
  font-weight: 400;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1.1875rem; /* 19px */
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 86% 8%, rgba(255, 255, 255, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 10% 85%, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

body > *:not(.atmosphere) { position: relative; z-index: 1; }
main { flex: 1; }

a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: #2f3140; }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.arrow { vertical-align: -0.05em; flex: none; }

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 360;
}
p, li { text-wrap: pretty; }

.shell { width: min(1160px, calc(100% - 8vw)); margin-inline: auto; }

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.muted { color: var(--muted); }

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transform: translateY(-180%);
  z-index: 5;
}
.skip:focus { transform: none; }

/* Header: plain mark + nav on the page background, not sticky */
.mast {
  position: static;
  z-index: 4;
  width: 100%;
  background: none;
}
.mast-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.brand:hover { color: var(--ink); opacity: 0.65; }
nav {
  display: flex;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
  font-size: 1rem; /* 16px */
  font-weight: 400;
}
nav a {
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
}
nav a:hover { color: var(--ink); }
nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* Hero */
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 400px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(20px, 4vw, 48px) clamp(20px, 3.5vw, 44px);
}
.hero-intro { padding-bottom: 8px; }
.profile-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  font-weight: 330;
  letter-spacing: -0.05em;
  margin: 0 0 16px;
}
.hero-role,
.hero-copy {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 330;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
}
.hero-copy {
  max-width: 28ch;
  margin-top: 0.15em;
}

/* Portrait */
.profile-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 400px);
}
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(30, 34, 48, 0.10);
}

/* About */
.profile-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding-block: 4px clamp(36px, 5vw, 68px);
}
.profile-text p { font-size: 1em; line-height: 1.65; }
.profile-text p + p { margin-top: 1em; }

/* Shared sections */
.section, .inner { padding-block: clamp(36px, 6vw, 76px); }

/* Homepage only — even, tighter gaps between blocks (not Experience, Perspectives, or footer).
   .profile-about/.home-products/.home-note also beat the shared .section padding above. */
.profile-hero { padding-bottom: clamp(24px, 3.4vw, 42px); }
.profile-about,
.home-products,
.home-note { padding-block: clamp(24px, 3.4vw, 42px); }

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px 48px;
  align-items: end;
  margin-bottom: 20px;
}
.section-head h1,
.page-title {
  font-size: clamp(2.15rem, 4vw, 3.5rem);
}
.page-title { margin-bottom: 8px; }
.invitation h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 360;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.section-head p:not(.kicker) { max-width: 46ch; font-size: 1em; }

.home-note {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: start;
  gap: 18px clamp(26px, 6vw, 80px);
}
/* Homepage Perspectives only, desktop/wide — match About’s 1fr/1fr + column-gap so the right column shares its x.
   Scoped to min-width: 861px so the existing max-width: 860px / 480px single-column rules still win. */
@media (min-width: 861px) {
  .home-note[aria-labelledby="perspectives-title"],
  .home-note[aria-labelledby="advisory-title"] {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 5vw, 72px);
  }
}
.home-note h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}
.home-note p { max-width: 58ch; }
.home-note p + p { margin-top: 0.7em; }
.advisory-detail { margin-top: 12px; color: var(--muted); }
.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 1em;
  text-decoration: none;
}
.quiet-link:hover { color: var(--ink); opacity: 0.7; }

/* Product cards */
.home-products { position: relative; }
.products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.products-heading h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 26px 24px 24px;
  color: inherit;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: background 0.25s ease;
}
.product-card:hover {
  background: var(--glass-strong);
}
.product-card-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  color: inherit;
}
.product-card-lead {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.product-category {
  margin: 0;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: none;
}
.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card-head h3 { flex: 1; min-width: 0; }
.product-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover { color: inherit; text-decoration: none; }
/* Stretched hit area so the whole card opens the site; invest/mailto links stack above. */
.product-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.product-card-link:focus-visible {
  outline: none;
}
.product-card-link:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: -3px;
}
.product-card-head .arrow {
  width: 0.55em;
  height: 0.55em;
  display: block;
  flex: none;
}
.product-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 360;
}
.product-card p {
  font-size: 1em;
  line-height: 1.58;
  color: var(--muted);
  flex: none;
}
.product-card p + p { margin-top: 0.7em; flex: none; }

/* Planned / coming-soon item: paler body and title, link stays readable */
.is-planned .product-card-main {
  opacity: 0.55;
}
.is-planned h3 {
  color: var(--muted);
  font-weight: 360;
}
.is-planned .invest-link {
  opacity: 1;
  color: var(--ink);
}
/* Discuss investment — plain text link, same as LinkedIn */
.invest-link {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
  font-size: 1em;
}

/* Experience entries — whitespace only, no rules */
.role {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px clamp(32px, 6vw, 82px);
  padding: clamp(24px, 3.4vw, 42px) 0;
}
.role h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
}
.role h2 a {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  color: inherit;
  text-decoration: none;
}
.role h2 a .arrow {
  width: 0.42em;
  height: 0.42em;
  display: block;
  flex: none;
  transform: translateY(0.02em);
}
.role h2 a:hover { color: var(--ink); opacity: 0.65; }
.role-copy { max-width: 68ch; }
.role-copy p + p { margin-top: 0.7em; }
.role h2 { max-width: none; }
.role .title { font-weight: 500; font-size: 0.98rem; }
.role .date {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 330;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.role-copy h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 26px 0 10px;
}
/* Footer — single calm block, no button, no band */
.contact-band {
  margin-top: auto;
  background: none;
}
.invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px);
}
.invitation p:not(.kicker) { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  flex: none;
  font-size: 1rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.footer-links a:hover { color: var(--ink); opacity: 0.7; }

/* Perspectives listing and article pages
   Tile grid inspired by availo.pro/blog (no images; category above title;
   whole tile is one link; featured lead then a 2-column tile row),
   rendered in this site's frosted-glass product-card language.
   Category is a small muted line like homepage product cards — not a kicker. */
.perspective-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 28px 0 0;
}
.filter-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.filter-link:hover { color: var(--ink); }
.filter-link[aria-current="true"] {
  color: var(--ink);
  font-weight: 500;
}
.publication-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.publication-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 26px 24px 24px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.publication-card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 56px rgba(30, 34, 48, 0.11);
  color: inherit;
}
.publication-card.is-featured { grid-column: 1 / -1; }
.publication-card .product-category { flex: none; }
.publication-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.publication-card h2 {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 360;
  letter-spacing: -0.03em;
  margin: 0;
}
.publication-card.is-featured h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.publication-card-head .arrow,
.publication-card h2 .arrow {
  width: 0.5em;
  height: 0.5em;
  display: inline-block;
  flex: none;
  vertical-align: baseline;
  transform: translateY(-0.05em);
}
.publication-date,
.publication-tags {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.45;
}
.publication-card .publication-desc {
  margin: 0;
  font-size: 1em;
  line-height: 1.58;
  color: var(--muted);
  flex: 1;
}
.article-back { margin: 0 0 22px; }
.article-related { padding-top: 8px; }
.article-related h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 360;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
}
.article-related .quiet-link { margin-top: 22px; }
.article .product-category { margin-bottom: 8px; }
.article .page-title { margin-top: 0; }
.article .publication-date { margin-top: 8px; }
.article .publication-tags { margin-top: 6px; }
.article-body { max-width: 68ch; margin-top: 28px; }
.article-body p + p { margin-top: 0.7em; }
.article-body h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 360;
  letter-spacing: -0.04em;
  margin: 1.4em 0 0.5em;
}
.article-body a { text-decoration: none; }
.article-body a:hover { color: var(--ink); opacity: 0.7; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 32px); }
  .profile-hero,
  .profile-about,
  .section-head,
  .home-note,
  .role {
    grid-template-columns: 1fr;
  }
  .profile-hero { padding-block: 16px 12px; gap: 18px; }
  .profile-portrait { justify-self: start; width: min(100%, 240px); }
  .profile-hero h1 { font-size: clamp(2.2rem, 10vw, 3.15rem); }
  .hero-copy { max-width: none; }
  .product-grid { grid-template-columns: 1fr; gap: 14px; }
  .publication-grid { grid-template-columns: 1fr; gap: 14px; }
  .publication-card.is-featured { grid-column: auto; }
  .products-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .product-card,
  .publication-card { padding: 22px 20px 20px; gap: 14px; }
  .section, .inner { padding-block: clamp(28px, 5vw, 76px); }
  .profile-about { padding-block: 4px clamp(28px, 5vw, 68px); }
  .quiet-link { margin-top: 14px; }
  .invitation { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 32px 28px; }
  .mast-bar { min-height: 56px; }
  .role { padding: clamp(16px, 3.8vw, 28px) 0; gap: 12px 20px; }
  .role-copy h3 { margin: 20px 0 8px; }
  /* Keep name + ↗ together; never let the arrow wrap onto its own line */
  .product-card-link {
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
  }
  .quiet-link,
  .invest-link,
  .article-back,
  .footer-links a,
  .role h2 a {
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  /* Match typography/spacing proportions of the earlier mobile design
     (body ~16px, prominent section headings and card titles) while
     keeping the current light glass look. Desktop is unchanged. */
  body { font-size: 1rem; } /* 16px */
  .profile-portrait { width: min(100%, 230px); }
  nav { gap: 12px; font-size: 0.9rem; } /* ~14.4px, close to the earlier 0.9rem */
  .brand { font-size: 0.9rem; }
  .profile-hero h1 { font-size: clamp(2rem, 8.5vw, 3.5rem); } /* ~33px at 390 */
  .hero-role { font-size: 1.2rem; } /* 19.2px */
  .hero-copy { font-size: 1rem; } /* 16px */
  .page-title { font-size: 2.35rem; } /* 37.6px, same as section headings */
  .products-heading h2,
  .home-note h2,
  .invitation h2 { font-size: 2.35rem; } /* 37.6px */
  .role h2,
  .article-related h2,
  .article-body h2 { font-size: 1.8rem; } /* 28.8px */
  .product-card h3,
  .publication-card h2 { font-size: 1.65rem; } /* 26.4px */
  .publication-card.is-featured h2 { font-size: 1.9rem; } /* 30.4px */
  .role .title { font-size: 0.93rem; }
  .role .date { font-size: 0.78rem; }
  .product-category { font-size: 0.78rem; }
}

@media print {
  .atmosphere { display: none; }
  .mast { position: static; background: none; }
  body { background: white; }
}
