:root {
  color-scheme: light;
  --paper: #f3efe3;
  --paper-2: #e8e4d8;
  --ink: #11130f;
  --ink-soft: #272b25;
  --muted: #687168;
  --line: rgba(17, 19, 15, 0.13);
  --line-strong: rgba(17, 19, 15, 0.28);
  --jade: #29493f;
  --steel: #52666a;
  --copper: #9b6c45;
  --panel: rgba(246, 243, 234, 0.64);
  --focus: #263f37;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(243, 239, 227, 0.92), rgba(232, 228, 216, 0.92)),
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.76), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: rgba(41, 73, 63, 0.18);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    repeating-linear-gradient(0deg, rgba(17, 19, 15, 0.024) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(17, 19, 15, 0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: multiply;
}

#frontier-field,
.visual-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#frontier-field {
  opacity: 0;
  transition: opacity 900ms ease;
}

body.is-enhanced #frontier-field {
  opacity: 1;
}

.visual-fallback {
  object-fit: cover;
  object-position: 64% 0%;
  opacity: 0.62;
  filter: saturate(0.84) contrast(1.02);
  transform: scale(1.05);
}

body.is-enhanced .visual-fallback {
  display: none;
}

#article-background-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  filter: grayscale(0.72) sepia(0.18) saturate(0.82) contrast(1.02) brightness(1.01);
  mix-blend-mode: multiply;
  transition: opacity 700ms ease;
}

body.writing-surface.is-article-bg-ready #article-background-field {
  opacity: 0.88;
}

body.writing-surface .paper-grain {
  opacity: 0.2;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(22px, 4.5vw, 64px);
  color: rgba(17, 19, 15, 0.78);
  pointer-events: none;
}

.wordmark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(243, 239, 227, 0.56);
  backdrop-filter: blur(18px);
  font-family: ui-serif, Georgia, serif;
  font-size: 0.9rem;
  pointer-events: auto;
}

.site-nav {
  display: flex;
  gap: clamp(10px, 1.9vw, 22px);
  align-items: center;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(17, 19, 15, 0.13);
  border-radius: 999px;
  background: rgba(246, 243, 234, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 32px rgba(17, 19, 15, 0.06);
  font-size: 0.84rem;
  pointer-events: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-subscribe {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(17, 19, 15, 0.13);
  border-radius: 999px;
  background: rgba(246, 243, 234, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 32px rgba(17, 19, 15, 0.06);
  pointer-events: auto;
}

.header-subscribe label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-subscribe span {
  padding-left: 10px;
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 700;
}

.header-subscribe input {
  width: 142px;
  border: 0;
  border-left: 1px solid rgba(17, 19, 15, 0.14);
  background: transparent;
  padding: 6px 6px 6px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
}

.header-subscribe button,
.newsletter-form button {
  border: 1px solid rgba(17, 19, 15, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.header-subscribe button {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 0.8rem;
}

.header-subscribe .newsletter-message {
  position: absolute;
  top: calc(100% + 6px);
  right: 8px;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(243, 239, 227, 0.88);
}

.header-subscribe button:hover,
.newsletter-form button:hover {
  border-color: rgba(17, 19, 15, 0.38);
  background: rgba(255, 255, 255, 0.92);
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 100svh;
  padding: 126px clamp(22px, 5vw, 72px) 58px;
  grid-template-columns: minmax(0, 760px);
  align-items: end;
  justify-items: start;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 17% 38%, rgba(243, 239, 227, 0.34) 0%, rgba(243, 239, 227, 0.24) 42%, rgba(243, 239, 227, 0.08) 72%, transparent 94%),
    linear-gradient(90deg, rgba(243, 239, 227, 0.28) 0%, rgba(243, 239, 227, 0.1) 48%, rgba(243, 239, 227, 0.02) 86%);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background-image: url("assets/superai-background.webp?v=20260615-scale1");
  background-repeat: no-repeat;
  background-size: clamp(1024px, 98vw, 1424px) auto;
  background-position: clamp(-340px, -13vw, -150px) 0%;
  filter: grayscale(1) sepia(0.24) saturate(0.44) contrast(0.88) brightness(1.08);
  -webkit-mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 24%, rgba(0, 0, 0, 0.46) 36%, rgba(0, 0, 0, 0.12) 46%, transparent 54%),
    linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 58%, rgba(0, 0, 0, 0.48) 78%, transparent 96%);
  mask-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 24%, rgba(0, 0, 0, 0.46) 36%, rgba(0, 0, 0, 0.12) 46%, transparent 54%),
    linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 58%, rgba(0, 0, 0, 0.48) 78%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  mix-blend-mode: multiply;
  opacity: 0.43;
  transition: opacity 420ms ease;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(560px, 100%);
  padding-bottom: clamp(8px, 2.2vh, 30px);
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: clamp(1.72rem, 3.28vw, 3.25rem);
  line-height: 1.04;
  text-shadow: 0 1px 22px rgba(243, 239, 227, 0.58);
}

h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3.2vw, 3.35rem);
  line-height: 1.03;
}

.lede {
  width: min(500px, 100%);
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.88rem, 0.94vw, 0.96rem);
  line-height: 1.66;
  text-shadow: 0 1px 14px rgba(243, 239, 227, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions a,
.post-card,
.archive-link {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(246, 243, 234, 0.62);
  backdrop-filter: blur(18px);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.hero-actions a,
.archive-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-size: 0.92rem;
}

.hero-actions a:hover,
.archive-link:hover,
.post-card:hover {
  border-color: rgba(17, 19, 15, 0.46);
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-1px);
}

.thesis,
.portfolio,
.writing {
  position: relative;
  padding: clamp(86px, 13vw, 176px) clamp(22px, 6vw, 92px);
  border-top: 1px solid rgba(17, 19, 15, 0.1);
}

.thesis {
  background:
    linear-gradient(90deg, rgba(246, 243, 234, 0.58) 0%, rgba(246, 243, 234, 0.32) 46%, rgba(246, 243, 234, 0.08) 78%, transparent 100%);
}

.split {
  display: grid;
  max-width: 760px;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.prose {
  display: grid;
  gap: 18px;
  max-width: 650px;
  padding-top: 0;
}

.prose p,
.writing p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  line-height: 1.68;
}

.prose p {
  padding-left: 16px;
  border-left: 1px solid rgba(41, 73, 63, 0.26);
}

.portfolio-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.94rem, 1.08vw, 1.02rem);
  line-height: 1.68;
}

.portfolio {
  background:
    linear-gradient(90deg, rgba(246, 243, 234, 0.42) 0%, rgba(243, 239, 227, 0.2) 46%, rgba(243, 239, 227, 0.03) 76%, transparent 100%);
}

.portfolio-layout {
  display: grid;
  max-width: 760px;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.portfolio-copy {
  max-width: 640px;
  padding-top: 0;
}

.portfolio-copy h2 {
  margin-bottom: 20px;
}

.company-list {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  overflow: visible;
  border-top: 1px solid rgba(17, 19, 15, 0.14);
  padding: 0 0 32px;
}

.portfolio-logo {
  position: relative;
  display: grid;
  min-height: 92px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(17, 19, 15, 0.14);
  border-radius: 0;
  background: transparent;
  color: rgba(17, 19, 15, 0.76);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.7rem, 0.84vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  overflow: visible;
  padding: 16px 14px;
  text-align: left;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.portfolio-logo::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb, 41, 73, 63), 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.38), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.portfolio-logo::after {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 18px;
  height: 1px;
  content: "";
  background: rgb(var(--accent-rgb, 41, 73, 63));
  opacity: 0.34;
}

.portfolio-logo:hover {
  border-color: rgba(17, 19, 15, 0.22);
  background: rgba(255, 253, 247, 0.42);
  box-shadow: none;
  color: var(--ink);
  transform: translateX(3px);
  z-index: 12;
}

.portfolio-logo:hover::before,
.portfolio-logo:focus-visible::before {
  opacity: 1;
}

.portfolio-logo:focus-visible {
  z-index: 12;
}

.theme-ai {
  --accent-rgb: 41, 73, 63;
}

.theme-space {
  --accent-rgb: 82, 102, 106;
}

.theme-infra {
  --accent-rgb: 78, 91, 114;
}

.theme-market {
  --accent-rgb: 122, 89, 60;
}

.theme-security {
  --accent-rgb: 92, 52, 48;
}

.theme-climate,
.theme-maps {
  --accent-rgb: 85, 113, 75;
}

.portfolio-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
}

.portfolio-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(17, 19, 15, 0.16);
  border-radius: 0;
  background: transparent;
  color: rgba(var(--accent-rgb, 41, 73, 63), 0.82);
  font-family: ui-serif, Georgia, serif;
  font-size: 0.8rem;
}

.portfolio-identity {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding-right: 10px;
}

.portfolio-identity strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.1vw, 1.08rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-identity small {
  color: rgba(17, 19, 15, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
}

.portfolio-meta {
  position: relative;
  z-index: 1;
  align-self: end;
  color: rgba(17, 19, 15, 0.52);
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: none;
}

.portfolio-screen {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  z-index: 20;
  display: grid;
  width: min(314px, calc(100vw - 44px));
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(17, 19, 15, 0.16);
  border-radius: 2px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 18px 46px rgba(17, 19, 15, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-6px);
  transform-origin: center left;
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    visibility 180ms ease;
  visibility: hidden;
}

.portfolio-screen::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb, 41, 73, 63), 0.08), transparent 45%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.88), rgba(232, 228, 216, 0.32));
  mix-blend-mode: multiply;
}

.portfolio-logo:hover .portfolio-screen,
.portfolio-logo:focus-visible .portfolio-screen {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  visibility: visible;
}

.screen-header,
.screen-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.screen-header {
  border-bottom: 1px solid rgba(17, 19, 15, 0.14);
  padding-bottom: 7px;
  color: rgb(var(--accent-rgb, 41, 73, 63));
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-row {
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.screen-row b {
  color: rgba(17, 19, 15, 0.52);
  font-size: 0.64rem;
  text-transform: uppercase;
}

.screen-row span {
  max-width: 190px;
  text-align: right;
}

.writing {
  min-height: 72svh;
  background:
    linear-gradient(90deg, rgba(243, 239, 227, 0.5) 0%, rgba(243, 239, 227, 0.24) 44%, rgba(243, 239, 227, 0.05) 72%, transparent 100%);
}

.writing-layout {
  display: grid;
  max-width: 760px;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.writing-copy {
  justify-self: start;
}

.writing h2 {
  max-width: 520px;
}

.writing p {
  max-width: 480px;
  margin-top: 18px;
}

.writing-panel {
  width: min(520px, 100%);
  justify-self: start;
  padding-top: 0;
}

.post-list {
  display: grid;
  gap: 6px;
}

.newsletter-card {
  margin-bottom: 8px;
}

.newsletter-form {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 520px;
  padding: 16px;
  border: 1px solid rgba(17, 19, 15, 0.14);
  border-radius: 6px;
  background: rgba(246, 243, 234, 0.72);
  backdrop-filter: blur(18px);
}

.newsletter-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
}

.newsletter-form label span {
  color: var(--jade);
  font-weight: 700;
}

.newsletter-form input {
  min-height: 42px;
  border: 1px solid rgba(17, 19, 15, 0.16);
  border-radius: 4px;
  background: rgba(255, 253, 247, 0.74);
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
}

.newsletter-form button {
  width: max-content;
  min-height: 40px;
  padding: 8px 15px;
}

.newsletter-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--jade);
  font-size: 0.78rem;
}

.newsletter-message.is-error {
  color: #8f3c28;
}

.newsletter-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-popover {
  position: fixed;
  right: clamp(18px, 4vw, 48px);
  bottom: 28px;
  z-index: 14;
  width: min(360px, calc(100vw - 36px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.newsletter-popover.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.newsletter-popover .newsletter-form {
  padding-top: 18px;
  box-shadow: 0 24px 64px rgba(17, 19, 15, 0.14);
}

.article-subscribe .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  max-width: 640px;
  align-items: end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.article-subscribe .newsletter-form label:first-of-type {
  flex: 1 1 260px;
}

.article-subscribe .newsletter-form input {
  min-height: 40px;
}

.article-subscribe .newsletter-form button {
  min-height: 40px;
}

.article-subscribe .newsletter-message {
  flex-basis: 100%;
}

.newsletter-close {
  position: absolute;
  top: 8px;
  right: 9px;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
}

.subscription-result {
  width: min(520px, calc(100% - 44px));
  margin: 0 auto;
  padding: 160px 0;
  color: var(--ink);
}

.subscription-result a {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-card {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(72px, 0.22fr) minmax(0, 1fr);
  gap: 3px 12px;
  align-content: center;
  padding: 10px 12px;
  border-color: rgba(17, 19, 15, 0.16);
  background: rgba(246, 243, 234, 0.42);
  box-shadow: 0 10px 28px rgba(17, 19, 15, 0.035);
}

.post-card span,
.post-card small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.post-card span {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 2px;
}

.post-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(22px, 5vw, 72px) 34px;
  border-top: 1px solid rgba(17, 19, 15, 0.12);
  color: rgba(17, 19, 15, 0.58);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (max-width: 980px) {
  .header-subscribe {
    display: none;
  }

  .hero {
    align-items: end;
  }

  .split,
  .portfolio-layout,
  .writing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 18px;
  }

  .wordmark {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    display: flex;
    gap: 10px;
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 104px 18px 56px;
  }

  .hero-kicker {
    display: none;
  }

  .hero-copy {
    padding-top: 30px;
    padding-bottom: 44px;
  }

  h1 {
    max-width: 15rem;
    font-size: clamp(1.6rem, 6.6vw, 2rem);
  }

  h2 {
    font-size: clamp(1.45rem, 6.4vw, 2.1rem);
  }

  .lede {
    max-width: 16.5rem;
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .hero::before {
    background:
      radial-gradient(ellipse at 30% 48%, rgba(243, 239, 227, 0.72) 0%, rgba(243, 239, 227, 0.56) 48%, rgba(243, 239, 227, 0.2) 80%, transparent 100%),
      linear-gradient(90deg, rgba(243, 239, 227, 0.58) 0%, rgba(243, 239, 227, 0.34) 58%, rgba(243, 239, 227, 0.08) 100%);
  }

  .hero::after {
    background-size: clamp(520px, 138vw, 620px) auto;
    background-position: clamp(-230px, -42vw, -142px) 0%;
    -webkit-mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.2) 40%, transparent 52%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.36) 78%, transparent 100%);
    mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 24%, rgba(0, 0, 0, 0.2) 40%, transparent 52%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.84) 58%, rgba(0, 0, 0, 0.36) 78%, transparent 100%);
    opacity: 0.36;
  }

  .thesis,
  .portfolio,
  .writing {
    padding: 82px 18px;
    background: rgba(243, 239, 227, 0.42);
  }

  .company-list {
    gap: 7px;
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }

  .portfolio-logo {
    min-height: 104px;
    padding: 12px;
    font-size: 0.72rem;
  }

  .portfolio-screen {
    top: calc(100% - 8px);
    right: 8px;
    left: 8px;
    width: auto;
    transform: translateY(-8px);
    transform-origin: top left;
  }

  .portfolio-logo:hover .portfolio-screen,
  .portfolio-logo:focus-visible .portfolio-screen {
    transform: translateY(0);
  }

  .writing-panel {
    justify-self: start;
  }

  .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .newsletter-popover {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
