:root {
  color-scheme: light;
  --paper: #f7f2e8;
  --paper-deep: #eee6d7;
  --ink: #171512;
  --ink-soft: #575048;
  --muted: #847a6d;
  --line: rgba(23, 21, 18, 0.16);
  --line-strong: rgba(23, 21, 18, 0.34);
  --card: rgba(255, 252, 244, 0.78);
  --card-solid: #fffaf0;
  --yellow: #ffe15c;
  --blue: #9bc7ff;
  --green: #b9e875;
  --coral: #ffac93;
  --shadow: 0 26px 70px rgba(45, 35, 22, 0.14);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 10%, rgba(255, 225, 92, 0.32), transparent 24rem),
    radial-gradient(circle at 16% 72%, rgba(155, 199, 255, 0.22), transparent 28rem),
    linear-gradient(180deg, var(--paper), #fbf7ef 42%, var(--paper-deep));
  color: var(--ink);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 72%);
  content: "";
}

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

.paper-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image:
    repeating-radial-gradient(circle at 10% 20%, #16120d 0 1px, transparent 1px 5px),
    repeating-linear-gradient(105deg, #16120d 0 1px, transparent 1px 11px);
}

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(23, 21, 18, 0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  translate: -50% -50%;
  transition: width 180ms ease, height 180ms ease, opacity 180ms ease, background 180ms ease;
}

.cursor-dot.is-active {
  width: 48px;
  height: 48px;
  background: rgba(255, 225, 92, 0.26);
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 12;
  display: flex;
  width: 150px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.82);
  padding: 28px 24px;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: block;
  width: fit-content;
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
}

.photo-mark {
  width: 58px;
}

.photo-mark img {
  display: block;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 32%;
  filter: saturate(0.92) contrast(1.04);
  box-shadow: 4px 4px 0 rgba(23, 21, 18, 0.14);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.photo-mark:hover img {
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.16);
  transform: translate(-2px, -2px) rotate(-2deg);
}

.brand-mark::after {
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 20px;
  background: var(--ink);
  content: "";
}

.rail-nav {
  display: grid;
  gap: 20px;
}

.rail-nav a {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rail-nav a::before {
  color: var(--ink);
  content: attr(data-section);
  font-size: 10px;
}

.rail-nav a::after {
  position: absolute;
  left: -24px;
  top: 8px;
  width: 3px;
  height: 0;
  background: var(--ink);
  content: "";
  transition: height 220ms ease;
}

.rail-nav a:hover,
.rail-nav a.is-current {
  color: var(--ink);
}

.rail-nav a.is-current::after {
  height: 28px;
}

.rail-footer {
  display: grid;
  gap: 38px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-indicator {
  writing-mode: vertical-rl;
}

.scroll-indicator::before {
  display: block;
  width: 1px;
  height: 74px;
  margin: 0 auto 16px;
  background: linear-gradient(var(--ink), transparent);
  content: "";
  animation: pulse-line 2.8s ease-in-out infinite;
}

main {
  margin-left: 150px;
}

.section-shell {
  width: min(100%, 1460px);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 72px);
  scroll-margin-top: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.72);
  padding: 0 clamp(24px, 4vw, 72px);
  backdrop-filter: blur(20px);
}

.menu-toggle {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 36px;
  gap: 4px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 4px 4px 0 rgba(23, 21, 18, 0.13);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.menu-toggle:hover {
  background: var(--card-solid);
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.15);
  transform: translate(-2px, -2px);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  top: 88px;
  left: 174px;
  z-index: 18;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card-solid);
  box-shadow: var(--shadow), 7px 7px 0 rgba(23, 21, 18, 0.12);
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 200ms ease, transform 200ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.menu-panel a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 14px 16px;
  text-transform: uppercase;
}

.menu-panel a:hover {
  background: rgba(255, 225, 92, 0.24);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0 22px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(23, 21, 18, 0.16);
  transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.button:hover {
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.18);
  transform: translate(-2px, -2px);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.5fr);
  align-items: center;
  gap: clamp(42px, 7vw, 116px);
  padding-top: 38px;
  padding-bottom: 76px;
}

.section-number {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1040px;
  font-family: var(--serif);
  font-size: clamp(76px, 10.8vw, 172px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: clamp(38px, 5vw, 78px);
}

h1 span {
  display: block;
  width: fit-content;
}

h1 .nick {
  position: relative;
  margin-left: clamp(28px, 8vw, 128px);
  padding-inline: 0.05em;
}

h1 .nick::before {
  position: absolute;
  inset: 62% -0.1em 7%;
  z-index: -1;
  border: 1px solid rgba(23, 21, 18, 0.22);
  background: rgba(255, 225, 92, 0.28);
  content: "";
  transform: rotate(-1.5deg);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0;
}

h3 {
  letter-spacing: 0;
}

.hero-line {
  max-width: 910px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 24px;
}

.hero-summary {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.66;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-system {
  display: grid;
  gap: 22px;
  transform: translateY(var(--scroll-drift, 0));
  transition: transform 120ms linear;
}

.notion-window {
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card-solid);
  box-shadow: var(--shadow), 8px 8px 0 rgba(23, 21, 18, 0.12);
  transform: rotate(1.2deg);
  transform-origin: 50% 52%;
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.notion-window:hover {
  box-shadow: var(--shadow), 12px 12px 0 rgba(23, 21, 18, 0.14);
  transform: rotate(0.35deg) translateY(-4px);
}

.window-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1.5px solid var(--ink);
  background: #fff;
  padding: 14px;
}

.window-bar span {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.window-bar span:nth-child(1) { background: var(--coral); }
.window-bar span:nth-child(2) { background: var(--yellow); }
.window-bar span:nth-child(3) { background: var(--green); }

.window-row {
  display: grid;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.window-row:last-child {
  border-bottom: 0;
}

.window-row span,
.margin-note,
.post-card time,
.post-kicker,
.project-index,
.card-link,
.timeline-meta,
.certs-panel > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.window-row strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.28;
}

.window-row.large strong {
  font-family: var(--serif);
  font-size: clamp(33px, 3.6vw, 56px);
  font-weight: 400;
  line-height: 0.98;
}

.margin-note {
  max-width: 430px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 0 20px;
}

.projects,
.experience,
.writing,
.contact,
.skills {
  padding-top: clamp(84px, 10vw, 146px);
  padding-bottom: clamp(84px, 10vw, 146px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 90px);
  margin-bottom: 44px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background:
    radial-gradient(circle at 90% 12%, rgba(155, 199, 255, 0.38), transparent 26%),
    var(--card-solid);
  padding: clamp(24px, 4vw, 42px);
  padding-bottom: clamp(88px, 7vw, 104px);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.project-card::after,
.post-card::after,
.capability-grid article::after,
.timeline-item::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.44), transparent 34%);
  content: "";
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-card::before {
  position: absolute;
  right: 30px;
  bottom: 28px;
  z-index: -1;
  width: 128px;
  height: 128px;
  border: 2px solid rgba(23, 21, 18, 0.16);
  border-radius: 24px;
  content: "";
  transform: rotate(12deg);
  transition: transform 300ms ease;
}

.project-card:hover {
  box-shadow: 10px 10px 0 rgba(23, 21, 18, 0.13), var(--shadow);
  transform: translate(-3px, -5px);
}

.project-card:hover::before {
  transform: rotate(18deg) scale(1.05);
}

.project-card:hover::after,
.post-card:hover::after,
.capability-grid article:hover::after,
.timeline-item:hover::after {
  opacity: 1;
}

.project-card.cooked {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 172, 147, 0.38), transparent 26%),
    var(--card-solid);
}

.project-card h3 {
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 84px);
  font-weight: 400;
  line-height: 0.94;
  margin: 58px 0 20px;
}

.project-logo {
  display: block;
  max-width: min(420px, 80%);
  height: auto;
  margin: 50px 0 22px;
}

.scout-logo {
  filter: drop-shadow(0 12px 24px rgba(45, 35, 22, 0.14));
}

.cooked-logo {
  max-width: min(250px, 62%);
  border-radius: 28px;
  filter: drop-shadow(0 14px 28px rgba(45, 35, 22, 0.12));
  mix-blend-mode: multiply;
}

.scout-lockup,
.cooked-lockup {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 210px;
  margin: 38px auto 24px;
  text-align: center;
}

.scout-lockup .project-logo {
  max-width: min(430px, 82%);
  margin: 0;
}

.cooked-lockup .project-logo {
  max-width: 128px;
  margin: 0;
}

.cooked-lockup span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(50px, 5vw, 82px);
  line-height: 0.9;
}

.project-card p {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.58;
}

.card-link {
  position: absolute;
  left: clamp(24px, 4vw, 42px);
  bottom: 34px;
  color: var(--ink);
}

.card-link::after {
  color: var(--ink);
  content: "  ->";
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  border-bottom: 1px solid var(--line-strong);
  padding: 34px 0;
  transition: transform 220ms ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 12px;
}

.timeline-meta time {
  color: var(--ink-soft);
}

.timeline-body h3 {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  margin-bottom: 16px;
}

.timeline-body p,
.timeline-body li {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.timeline-body ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.education-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.education-card,
.capability-grid article {
  position: relative;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.72);
  padding: 24px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.education-card:hover,
.capability-grid article:hover {
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.12);
  transform: translate(-2px, -4px);
}

.education-card span,
.capability-grid article span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.education-card h3,
.capability-grid h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 14px;
}

.education-card p,
.capability-grid p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
}

.certs-panel {
  display: inline-grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.56);
  padding: 12px 14px;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 225, 92, 0.18);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-grid article:nth-child(1) { background: rgba(185, 232, 117, 0.26); }
.capability-grid article:nth-child(2) { background: rgba(155, 199, 255, 0.24); }
.capability-grid article:nth-child(3) { background: rgba(255, 225, 92, 0.24); }
.capability-grid article:nth-child(4) { background: rgba(255, 172, 147, 0.22); }

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.writing-grid {
  display: grid;
  gap: 20px;
}

.blog-feature {
  position: relative;
  overflow: hidden;
  min-height: 386px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 12%, rgba(155, 199, 255, 0.34), transparent 28%),
    rgba(255, 250, 240, 0.76);
  padding: clamp(30px, 4vw, 52px);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.blog-feature::after {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(23, 21, 18, 0.14);
  border-radius: 999px;
  content: "";
  transform: rotate(-10deg);
}

.blog-feature:hover {
  box-shadow: 9px 9px 0 rgba(23, 21, 18, 0.13);
  transform: translate(-3px, -5px);
}

.blog-feature h3 {
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  margin: 34px 0 22px;
}

.blog-feature p {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.62;
}

.card-link.inline {
  position: static;
  display: inline-block;
  margin-top: 26px;
}

.post-card {
  position: relative;
  overflow: hidden;
  min-height: 183px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.74);
  padding: 30px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.post-card:hover {
  box-shadow: 8px 8px 0 rgba(23, 21, 18, 0.13);
  transform: translate(-3px, -5px);
}

.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1;
  margin: 28px 0 16px;
}

.post-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  border-top: 1px solid var(--line-strong);
  min-height: auto;
  padding-top: clamp(48px, 6vw, 82px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 64px);
}

.contact-links {
  display: grid;
  align-content: start;
  gap: 16px;
}

.contact-links a {
  border-bottom: 1px solid var(--line-strong);
  font-size: 18px;
  font-weight: 800;
  padding-bottom: 16px;
}

.contact-links a:hover {
  color: #000;
}

.copyright {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 12px 0 0;
  text-transform: uppercase;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 540ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-line {
  0%, 100% {
    opacity: 0.28;
    transform: scaleY(0.82);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cursor-dot {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

@media (max-width: 1180px) {
  .side-rail {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .menu-panel {
    left: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .notion-window {
    transform: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: sticky;
    min-height: auto;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .section-heading,
  .timeline-item,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .blog-layout,
  .education-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 62px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(60px, 18vw, 88px);
  }

  .hero-line {
    font-size: 32px;
  }

  .button {
    width: 100%;
  }

  .topbar .button {
    display: none;
  }

  .project-card {
    min-height: 340px;
    padding-bottom: 96px;
  }

  .project-card h3 {
    font-size: 46px;
  }

  .project-logo {
    max-width: 100%;
    margin-top: 48px;
  }

  .cooked-logo {
    max-width: 72%;
  }

  .blog-feature {
    min-height: auto;
  }

  .blog-feature h3 {
    font-size: 40px;
  }
}

.blog-home,
.blog-list,
.article-page {
  padding-top: clamp(70px, 9vw, 132px);
  padding-bottom: clamp(70px, 9vw, 132px);
}

.blog-home h1,
.article-header h1 {
  font-size: clamp(58px, 8vw, 126px);
  line-height: 0.88;
  margin-bottom: 0;
}

.blog-home .section-heading {
  align-items: start;
}

.blog-feature h2 {
  max-width: 780px;
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  margin: 34px 0 22px;
}

.blog-index-grid {
  max-width: 820px;
}

.article-header {
  display: grid;
  gap: 26px;
  max-width: 1050px;
}

.article-dek {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.54;
  margin-bottom: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta span,
.article-meta time {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 225, 92, 0.18);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 11px;
  text-transform: uppercase;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 0.34fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(46px, 7vw, 88px);
}

.article-content {
  border-top: 1px solid var(--line-strong);
  padding-top: 34px;
}

.article-content p,
.article-content li {
  color: var(--ink-soft);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.76;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: clamp(38px, 4vw, 60px);
  margin: 54px 0 20px;
}

.article-content pre {
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(23, 21, 18, 0.94), rgba(23, 21, 18, 0.86)),
    var(--ink);
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.12);
  color: #fff7df;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.62;
  margin: 24px 0 32px;
  padding: clamp(18px, 3vw, 28px);
}

.article-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.article-content p code,
.article-content li code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 225, 92, 0.18);
  color: var(--ink);
  font-size: 0.92em;
  padding: 0.12em 0.32em;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 7px 7px 0 rgba(23, 21, 18, 0.1);
  margin: 26px 0 36px;
  overflow: hidden;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: rgba(255, 225, 92, 0.24);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-table td {
  color: var(--ink-soft);
  line-height: 1.55;
}

.article-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.article-content hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line-strong);
  margin: 44px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--ink);
  background: rgba(255, 225, 92, 0.14);
  margin: 26px 0 34px;
  padding: 18px 24px;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content ol,
.article-content ul {
  color: var(--ink-soft);
  padding-left: 1.45rem;
}

.article-content ol li,
.article-content ul li {
  margin-bottom: 14px;
}

.article-aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 110px;
}

.article-aside .notion-window {
  transform: none;
}

@media (max-width: 860px) {
  .article-header {
    max-width: 760px;
  }

  .article-header h1 {
    line-height: 0.94;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .blog-home,
  .blog-list,
  .article-page {
    padding-top: 54px;
    padding-bottom: 64px;
  }

  .blog-home h1,
  .article-header h1 {
    font-size: clamp(42px, 13.5vw, 64px);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .article-header {
    gap: 20px;
  }

  .article-dek {
    font-size: 18px;
    line-height: 1.62;
  }

  .article-meta {
    gap: 8px;
  }

  .article-meta span,
  .article-meta time {
    font-size: 9px;
    line-height: 1.25;
    padding: 7px 9px;
  }

  .article-shell {
    gap: 34px;
    margin-top: 38px;
  }

  .article-content {
    padding-top: 28px;
  }

  .article-content p,
  .article-content li {
    font-size: 17px;
    line-height: 1.78;
  }

  .article-content p {
    margin-bottom: 20px;
  }

  .article-content h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
    margin: 44px 0 18px;
  }

  .article-content pre {
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.58;
    margin: 22px 0 28px;
    padding: 16px;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .article-content p code,
  .article-content li code,
  .article-aside strong {
    overflow-wrap: anywhere;
  }

  .article-content blockquote {
    margin: 22px 0 28px;
    padding: 16px 18px;
  }

  .article-content ol,
  .article-content ul {
    padding-left: 1.2rem;
  }

  .article-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-feature h2 {
    font-size: 40px;
  }
}
