:root {
  --paper: #fbfaf5;
  --cream: #f6efdc;
  --grid: rgba(86, 136, 196, .17);
  --ink: #1f2430;
  --muted: #6b7280;
  --accent: #1f4fd6;
  --accent-soft: rgba(31, 79, 214, .1);
  --title: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --hand: Caveat, cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  color: var(--ink); font: 700 16px/1.9 var(--mono); -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
}
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }

section { padding: 0 6vw; }

/* ---------- Titles: thin + bold italic ---------- */
.title { font-family: var(--title); line-height: .9; letter-spacing: -.05em; color: var(--ink); font-weight: 300; }
.title .thin { font-weight: 300; }
.title .bold { font-weight: 800; font-style: italic; color: var(--accent); }
.hero .title { text-align: right; }
.hero .title .thin { display: block; font-size: clamp(44px, 6.2vw, 92px); }
.hero .title .bold { display: inline-block; font-size: clamp(54px, 7.8vw, 116px); margin-right: -.18em; }
.title.small { font-size: clamp(40px, 5vw, 68px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: 3vh; padding-bottom: 7vh; overflow: hidden; }
.objects { position: relative; height: clamp(360px, 54vh, 500px); }
.obj { position: absolute; left: clamp(calc(var(--s) * var(--k, 1) / 2), var(--x), calc(100% - var(--s) * var(--k, 1) / 2)); top: calc(var(--y) * var(--ys, 1)); width: var(--s); margin: 0; transform: translateX(-50%) rotate(var(--r)); cursor: pointer;
  animation: drop 1.1s cubic-bezier(.18, .9, .32, 1.12) both; animation-delay: var(--d); outline: none; }
.obj img { width: 100%; height: auto; display: block; transition: transform .35s cubic-bezier(.2, .9, .3, 1.5), filter .35s; user-select: none; -webkit-user-drag: none;
  filter: saturate(var(--sat, 1.45)) contrast(var(--con, 1.12)) drop-shadow(2px 4px 0 rgba(31, 36, 48, .14)) drop-shadow(0 10px 12px rgba(31, 36, 48, .18)); }
.obj:hover img, .obj:focus img, .obj.open img { filter: saturate(var(--sat, 1.45)) contrast(var(--con, 1.12)) drop-shadow(3px 6px 0 rgba(31, 36, 48, .14)) drop-shadow(0 22px 18px rgba(31, 36, 48, .2)); }
.obj:hover img, .obj:focus img, .obj.open img { transform: translateY(-10px) rotate(calc(var(--r) * -1)) scale(1.06); }
.obj figcaption { position: absolute; left: 50%; top: 92%; transform: translateX(-50%) rotate(calc(var(--r) * -1)); white-space: nowrap;
  font: 700 16px/1.2 var(--mono); letter-spacing: .02em; color: var(--accent); opacity: 0; transition: opacity .25s, top .25s; pointer-events: none; }
.obj:hover figcaption, .obj:focus figcaption, .obj.open figcaption { opacity: 1; top: 100%; }
@keyframes drop { from { opacity: 0; transform: translate(calc(-50% + var(--fx, 0px)), var(--fy, -34px)) rotate(calc(var(--r) + var(--fr, 0deg))); } }

.words { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.tagline { max-width: 400px; font-size: 15px; line-height: 2; text-transform: uppercase; letter-spacing: .05em; }
.tagline .caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scroll { position: absolute; left: 50%; bottom: 2.4vh; transform: translateX(-50%); font: 600 26px var(--hand); text-decoration: none; color: var(--accent); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: 6vw; align-items: start; padding-top: 14vh; padding-bottom: 10vh; scroll-margin-top: 40px; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: rgba(255,255,255,.8); box-shadow: 5px 5px 0 var(--accent); }
.stat { padding: 22px 22px 18px; border-left: 1.5px solid var(--ink); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: italic 800 clamp(40px, 4.4vw, 60px)/1 var(--title); letter-spacing: -.05em; color: var(--accent); }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.6; text-transform: uppercase; letter-spacing: .05em; }
.about-body p { margin-bottom: 18px; max-width: 640px; }
.about-body p:first-child { font: 500 clamp(20px, 2vw, 26px)/1.35 var(--title); letter-spacing: -.02em; margin-bottom: 22px; }
.cv { margin-top: 34px; padding: 24px 26px; max-width: 640px; background: rgba(255,255,255,.75); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); }
.cv p { margin: 0 0 16px !important; font: inherit !important; }
.cv .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; font: 700 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--accent); border: 1.5px solid var(--accent); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.copy { font: 700 15px var(--mono); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.copy:hover { color: var(--accent); }

/* ---------- Shared section rhythm ---------- */
section[id] { scroll-margin-top: 56px; }
.services, .experience, .work { padding-top: 10vh; padding-bottom: 10vh; }
.services > .title, .experience > .title, .work > .title { margin-bottom: 48px; }
.label { font: 700 14.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; }

/* ---------- What I do ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; padding: 26px 26px 24px; background: var(--cream); border: 1.5px solid var(--accent); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; filter: saturate(1.45) contrast(1.12) drop-shadow(2px 3px 0 rgba(31, 36, 48, .14)); transition: transform .35s cubic-bezier(.2, .9, .3, 1.5); }
.card:hover img { transform: rotate(-10deg) scale(1.08); }
.card h3 { font: 500 24px/1.15 var(--title); letter-spacing: 1px; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.8; color: #3b4150; }

/* ---------- Experience ---------- */
.timeline { list-style: none; max-width: 1060px; border-left: 3px solid var(--accent); }
.job { display: grid; grid-template-columns: 190px 1fr; gap: 32px; padding: 0 0 44px 32px; position: relative; }
.job::before { content: ""; position: absolute; left: -10px; top: 8px; width: 14px; height: 14px; background: var(--paper); border: 3px solid var(--accent); border-radius: 50%; }
.job:first-child::before { background: var(--accent); }
.job:last-child { padding-bottom: 6px; }
.when { font-size: 14.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--accent); }
.when span { display: block; color: var(--muted); }
.job h3 { font: 500 clamp(22px, 2.2vw, 28px)/1.15 var(--title); letter-spacing: 1px; margin-bottom: 10px; }
.job .at { font-weight: 800; font-style: italic; color: var(--accent); }
.job .sep { font-weight: 300; color: var(--muted); margin: 0 .3em; }
.job ul { list-style: none; }
.job ul li { position: relative; padding-left: 20px; font-size: 15.5px; line-height: 1.8; margin-bottom: 6px; color: #3b4150; }
.job ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Selected work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 26px; }
.case { grid-column: span 3; display: flex; flex-direction: column; padding: 26px; text-decoration: none; background: var(--cream); border: 1.5px solid var(--ink); transition: transform .2s, box-shadow .2s; }
.case:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.case .kicker { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.case .big { margin: 14px 0 4px; font: italic 800 clamp(44px, 5vw, 72px)/1 var(--title); letter-spacing: -.05em; color: var(--accent); }
.case h3 { margin: 12px 0 10px; font: 500 24px/1.15 var(--title); letter-spacing: 1px; }
.case p { font-size: 15px; line-height: 1.8; color: #3b4150; }
.case .read { margin-top: auto; padding-top: 14px; font: 600 21px var(--hand); color: var(--accent); }

/* ---------- Toolkit + outside work ---------- */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; padding-top: 4vh; padding-bottom: 10vh; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 4px 12px; font-size: 14.5px; border: 1.5px solid var(--ink); background: rgba(255,255,255,.8); }
.beyond { list-style: none; }
.beyond li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px; line-height: 1.8; }
.beyond li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Contact ---------- */
.contact { padding-top: 12vh; padding-bottom: 14vh; display: grid; grid-template-columns: minmax(220px, 1fr) 1.6fr; gap: 6vw; align-items: start; }
.contact .title .thin { font-size: clamp(48px, 6vw, 92px); }
.contact .title .bold { font-size: clamp(58px, 7.4vw, 112px); margin-left: .12em; }
.contact .lead { font: 500 clamp(20px, 2vw, 26px)/1.35 var(--title); letter-spacing: -.02em; max-width: 640px; }
.contact .cv { margin-top: 0; }
.contact .copy { margin-top: 16px; }

/* ---------- Top nav ---------- */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 6vw; background: rgba(251, 250, 245, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); transform: translateY(-110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.topnav.show, .topnav:focus-within { transform: none; }
.topnav a { text-decoration: none; }
.topnav .brand { font: italic 800 20px var(--title); letter-spacing: -.04em; color: var(--accent); white-space: nowrap; }
.topnav .links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em; overflow-x: auto; scrollbar-width: none; }
.topnav .links::-webkit-scrollbar { display: none; }
.topnav .links a { white-space: nowrap; border-bottom: 1.5px solid transparent; }
.topnav .links a:hover, .topnav .links a.here { border-color: var(--accent); color: var(--accent); }
.topnav .nav-cta { padding: 4px 12px; background: var(--accent); color: #fff; border: 0 !important; }
.topnav .nav-cta:hover, .topnav .nav-cta.here { color: #fff !important; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 60; padding: 8px 14px; background: var(--accent); color: #fff; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Blog ---------- */
.blog { padding-top: 6vh; padding-bottom: 14vh; }
.blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.all { font: 700 15px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--accent); border-bottom: 1.5px solid currentColor; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; min-height: 250px; padding: 24px 24px 20px; text-decoration: none; background: rgba(255,255,255,.82); border: 1.5px solid var(--ink); transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); border-color: var(--accent); }
.post .date { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.post h3 { margin: 10px 0 12px; font: 500 26px/1.1 var(--title); letter-spacing: 1px; }
.post p { font-size: 15px; line-height: 1.8; color: #3b4150; flex: 1; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post .read { margin-top: 16px; font: 600 21px var(--hand); color: var(--accent); }
.post img.cover { width: calc(100% + 48px); margin: -24px -24px 18px; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1.5px solid var(--ink); }
.empty { grid-column: 1 / -1; padding: 40px 0; text-align: center; font: 600 26px var(--hand); color: var(--muted); }

/* ---------- Footer ---------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 6vw 34px; border-top: 3px solid var(--accent); font-size: 14.5px; text-transform: uppercase; letter-spacing: .05em; }
.foot a { text-decoration: none; border-bottom: 1px solid currentColor; }
.foot a:hover { color: var(--accent); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 8px 16px; background: var(--accent); color: var(--paper); font-size: 15px; opacity: 0; pointer-events: none; transition: .25s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translate(var(--rx, 0px), var(--ry, 18px)) rotate(var(--rr, 0deg)); transition: opacity .6s ease var(--rd, 0s), transform 1s cubic-bezier(.2, .8, .2, 1) var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .posts, .cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .case { grid-column: span 1; }
  .case:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .topnav .brand { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .objects { height: 230px; --ys: .58; }
  .obj { --k: .52; width: calc(var(--s) * .52); }
  .tagline { max-width: 100%; }
  .hero { justify-content: flex-start; gap: 7vh; }
  .obj figcaption { font-size: 14px; }
  .words { flex-direction: column-reverse; align-items: flex-start; gap: 26px; }
  .hero .title { text-align: left; }
  .about { grid-template-columns: 1fr; gap: 26px; padding-top: 10vh; padding-bottom: 10vh; }
  .posts, .cards, .work-grid, .extras, .contact { grid-template-columns: 1fr; }
  .case, .case:nth-child(-n+2), .case:last-child:nth-child(odd) { grid-column: auto; }
  .services, .experience, .work { padding-top: 7vh; padding-bottom: 7vh; }
  .services > .title, .experience > .title, .work > .title { margin-bottom: 30px; }
  .stat { padding: 16px 14px 14px; }
  .job { padding-left: 22px; }
  .extras { gap: 40px; }
  .contact { gap: 26px; padding-top: 8vh; padding-bottom: 10vh; }
  .topnav { padding: 10px 16px; }
  .topnav .links { gap: 16px; font-size: 13.5px; }
  .blog-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- Quick email form ---------- */
.mailform { max-width: 640px; }
.mailform .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mailform label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.mailform input, .mailform textarea { width: 100%; padding: 10px 12px; font: 700 15px/1.6 var(--mono); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0; text-transform: none; letter-spacing: 0; resize: vertical; }
.mailform input:focus, .mailform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.mailform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mailform .btn { cursor: pointer; }
.mailform .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { min-height: 1.6em; margin: 12px 0 0 !important; font-size: 14px; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0392b; }

/* ---------- Cookie banner + footer link ---------- */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 360px; padding: 18px 20px 16px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--accent); font-size: 14px; line-height: 1.7; animation: consent-in .5s cubic-bezier(.2, .9, .3, 1.2); }
.consent b { display: block; font: italic 800 20px var(--title); letter-spacing: -.02em; color: var(--accent); margin-bottom: 4px; }
.consent div { display: flex; gap: 10px; margin-top: 12px; }
.consent .btn { padding: 8px 16px; font-size: 13px; cursor: pointer; }
.consent.bye { opacity: 0; transform: translateY(14px); transition: .35s; }
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } }
.cookie-link { font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; cursor: pointer; }
.cookie-link:hover { color: var(--accent); }

/* ---------- Cornell notes popup ---------- */
html.modal-open { overflow: hidden; }
.notes { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); overflow: auto; overscroll-behavior: contain; }
.notes[open] { animation: notes-in .45s cubic-bezier(.2, .9, .3, 1.15); }
.notes::backdrop { background: rgba(31, 36, 48, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes notes-in { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg) scale(.97); } }
.notes-close { position: sticky; top: 0; float: right; z-index: 2; width: 48px; height: 48px; font: 400 32px/1 var(--title); color: var(--ink); background: var(--paper); border: 0; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); cursor: pointer; }
.notes-close:hover { color: #fff; background: var(--accent); }
.notes-body { padding: 30px 34px 34px; }
.notes .muted { color: var(--muted); }
.notes-top { display: flex; align-items: center; gap: 20px; margin: 0 40px 24px 0; }
.notes-top img { width: 84px; height: 84px; object-fit: contain; filter: saturate(1.45) contrast(1.12) drop-shadow(2px 3px 0 rgba(31, 36, 48, .14)); }
.notes-top .kicker, .post-list .date { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.notes-top h2 { font: italic 800 clamp(30px, 4vw, 46px)/1 var(--title); letter-spacing: -.04em; color: var(--accent); }
.post-top h2 { font-style: normal; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }

/* The sheet: ruled paper, blue cue column, summary strip at the bottom */
.cornell { border: 1.5px solid var(--ink); background-color: #fffdf6;
  background-image: repeating-linear-gradient(transparent 0 29px, rgba(86, 136, 196, .22) 29px 30px); }
.cornell-head, .c-row { display: grid; grid-template-columns: minmax(150px, 30%) 1fr; }
.cornell-head span { padding: 8px 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.cornell-head span:first-child, .c-cue { border-right: 2px solid var(--accent); }
.c-row + .c-row .c-cue, .c-row + .c-row .c-note { border-top: 1px dashed rgba(31, 36, 48, .25); }
.c-cue { padding: 16px 18px; font-size: 15px; line-height: 1.6; color: var(--accent); }
.c-note { padding: 16px 20px; font-size: 15px; line-height: 1.85; min-width: 0; }
.c-note p, .c-summary p { margin: 0 0 10px; }
.c-note p:last-child, .c-summary p:last-child { margin-bottom: 0; }
.c-note ul, .c-note ol { margin: 0 0 10px 20px; }
.c-note img, .c-note video, .c-note iframe { max-width: 100%; height: auto; }
.c-note a { color: var(--accent); }
.c-note pre { white-space: pre-wrap; }
.c-summary { padding: 16px 20px 18px; border-top: 2px solid var(--accent); background: var(--cream); font-size: 15px; line-height: 1.8; }
.c-summary > span { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }

.notes .topic-posts { margin-top: 30px; padding: 0; }
.post-list { list-style: none; display: grid; gap: 12px; }
.post-list button { display: grid; gap: 4px; width: 100%; padding: 14px 18px; text-align: left; font: inherit; color: inherit; background: var(--cream); border: 1.5px solid var(--accent); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.post-list button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.post-list b { font: 500 21px/1.2 var(--title); letter-spacing: 1px; }
.post-list .ex { font-size: 14px; color: #3b4150; }
.notes .back { margin-bottom: 18px; font: 700 14px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.notes .all { display: inline-block; margin-top: 22px; }

@media (max-width: 700px) {
  .mailform .fields { grid-template-columns: 1fr; gap: 0; }
  .consent { right: 16px; max-width: none; }
  .notes { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); box-shadow: 5px 5px 0 var(--accent); }
  .notes-body { padding: 22px 18px 26px; }
  .notes-top { gap: 14px; margin-right: 40px; }
  .notes-top img { width: 58px; height: 58px; }
  .cornell-head { display: none; }
  .c-row { grid-template-columns: 1fr; }
  .c-cue { border-right: 0; padding: 14px 16px 0; font-size: 14px; }
  .c-note { padding: 6px 16px 14px; }
  .c-row + .c-row .c-note { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .notes[open], .consent { animation: none; } }
