/* Personal website: local material assets, responsive layout and restrained motion. */
:root {
  color-scheme: light;
  --canvas: #f6f4ef;
  --paper: #f5f3ed;
  --ink: #171d24;
  --muted: #47515a;
  --hairline: #aeb1af;
  --blue: #2756d9;
  --blue-soft: #dce5fa;
  --sans: 'Arial', 'Helvetica Neue', 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
  --max-width: 1250px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.52 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.skip-link { position: absolute; top: -90px; left: 14px; padding: 12px 16px; background: var(--ink); color: #fff; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-wrap { width: min(calc(100% - 40px), var(--max-width)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 83px; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.15rem; font-weight: 800; text-decoration: none; letter-spacing: -.05em; white-space: nowrap; }
.brand span { color: var(--blue); margin-left: .7rem; }
.main-nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.3vw, 36px); }
.main-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 4px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.main-nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.main-nav a:hover, .quiet-link:hover, .section-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 45px; padding: 68px 0 69px; }
.eyebrow, .section-header h2, .project-topline, .project-type, .index-heading, .index-id, .index-category, .status-tape, .prototype-disclaimer, .note-index-row>span:first-child, .header-aside, .site-footer, .note-label, .taped-photo figcaption { font-family: var(--mono); }
.eyebrow { margin: 0 0 20px; font-size: .72rem; font-weight: 700; letter-spacing: .025em; display: flex; align-items: center; gap: 17px; }
.eyebrow-line { width: 32px; height: 1px; background: var(--hairline); }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.55rem, 4.9vw, 4.5rem); font-weight: 790; line-height: 1.09; letter-spacing: -.07em; }
.scribble-underline { position: relative; display: inline; padding-bottom: .14em; background: url('assets/materials/brush-underline.svg') left bottom / 100% .30em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-intro { max-width: 650px; margin: 26px 0 20px; font-size: clamp(1rem, 1.38vw, 1.1rem); line-height: 1.57; color: #303b43; }
.quiet-link { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; min-width: 44px; padding-block: 8px; font-weight: 740; color: var(--blue); font-size: 1rem; text-decoration: none; }
/* Real paper and binder materials. "Haptic" is achieved with actual assets + low-key depth. */
.paper-note, .project-paper { background: var(--paper) url('assets/card-fiber.png') repeat; }
.paper-note { position: relative; width: min(100%, 350px); padding: 23px 25px 22px; transform: rotate(-2.5deg); border: 1px solid rgba(134,130,117,.20); box-shadow: 0 3px 2px rgba(52,49,43,.10), 5px 10px 19px rgba(49,44,33,.09); justify-self: center; }
.paper-note::before { content: ''; pointer-events: none; position: absolute; inset: 1px 0 auto; height: 5px; background: linear-gradient(to bottom, rgba(255,255,255,.54), transparent); }
.note-label { margin: 0 0 13px; color: #6a655a; font-size: .61rem; letter-spacing: .035em; }
.note-line { width: 66px; height: auto; color: var(--blue); display: block; margin: 13px 0 0 auto; }
.section { padding: 14px 0 54px; }
.section-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 20px; }
.section-header-group { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 0; }
.section-header h2 { font-size: .77rem; font-weight: 800; letter-spacing: .025em; margin: 0; white-space: nowrap; }
.section-rule { flex: 1; height: 1px; background: #989e9e; min-width: 20px; }
.section-link { color: var(--blue); font-size: .8rem; font-weight: 750; text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.section-link span { font-size: 1.24rem; line-height: 1; }
.featured-grid { display: grid; grid-template-columns: 1fr; gap: 42px 30px; padding-top: 20px; }
.binder-clip { width: 80px; height: 80px; object-fit: contain; position: absolute; top: -45px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.16)); }
/* One clip belongs to the working note; project sheets are fixed with status tape. */
.paper-note { padding-top: 32px; }
/* Status remains semantic text, not baked into the images. Deterministic variants. */
.status-tape { --rotation: -2deg; --tape-file: url('assets/tape-cream.png'); position: absolute; right: 16px; top: -16px; width: 136px; height: 38px; z-index: 3; display: grid; place-items: center; transform: rotate(var(--rotation)); font-size: .72rem; font-weight: 800; letter-spacing: .05em; background: var(--tape-file) center / 100% 100% no-repeat; color: #3d3c35; filter: drop-shadow(0 2px 1px rgba(49,47,39,.10)); }
.status-tape--prototype { --rotation: 3deg; --tape-file: url('assets/tape-blue.png'); color: #17419c; right: 13px; }
.status-tape--experiment { --rotation: -3.3deg; right: 27px; width: 148px; }
.status-tape--idea { --rotation: 2.6deg; }
.status-tape--progress { --rotation: -2.4deg; --tape-file: url('assets/tape-blue.png'); color: #17419c; }
.prototype-disclaimer { margin: 10px 0 0; font-size: .64rem; color: #687279; }
.topic-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.topic-list span { border: 1px solid #bec2c0; padding: 4px 10px; font-family: var(--mono); font-size: .69rem; color: #50575b; background: rgba(255,255,255,.27); }
.notes-section { padding-top: 23px; }
.header-aside { font-size: .63rem; color: #667075; }
.note-index-list { border-top: 1px solid #c1c6c4; }
.note-index-row { border-bottom: 1px solid #c1c6c4; display: grid; grid-template-columns: 77px minmax(0,1fr) 25px; align-items: center; gap: 15px; padding: 15px 0; }
.note-index-row>span:first-child { color: #515a61; font-size: .67rem; }
.note-index-row strong { font-size: .89rem; font-weight: 610; }
.contact-panel { position: relative; display: grid; gap: 7px; background: linear-gradient(95deg,rgba(208,220,244,.65),rgba(224,232,249,.76)); clip-path: polygon(0 2%,2% 1%,5% 2%,8% 0,11% 2%,32% 0,66% 1%,93% 0,100% 2%,99.6% 95%,96% 97%,85% 96%,73% 98%,42% 97%,15% 99%,0 97%); padding: 26px 65px 26px 30px; margin: 13px 0 43px; }
.contact-panel h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2.0rem); letter-spacing: -.045em; }
.contact-panel h2 span { color: var(--blue); margin-left: 11px; }
.contact-panel p { margin: 0; font-size: .9rem; }
.contact-arrow { position: absolute; right: 25px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 2rem; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0 31px; border-top: 1px solid #a9afaf; font-size: .67rem; color: #545b60; }
.site-footer b { margin: 0 9px; color: var(--blue); }




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

/* The labelled strips bridge the sheet edge and its surrounding surface. */
.project-paper > .status-tape {
  top: -24px;
  left: 47%;
  right: auto;
  width: 158px;
  height: 48px;
  transform: translateX(-50%) rotate(-2deg);
  --tape-file: url('assets/materials/tape-blue.svg');
  color: #17419c;
  filter: drop-shadow(0 1px 1px rgba(49,47,39,.08));
}
.project-paper > .status-tape--experiment {
  left: 54%;
  width: 182px;
  --tape-file: url('assets/materials/tape-natural.png');
  color: #3d3c35;
  transform: translateX(-50%) rotate(2.5deg);
}

/* Two distinct personal sections, using the existing VAR2 palette and editorial grid. */
.motivation-section { padding-top: 24px; padding-bottom: 76px; }
.motivation-content { display: grid; align-items: center; gap: 34px; padding-top: 24px; }
.motivation-content .personal-lead, .background-heading .personal-lead { margin: 0 0 24px; font-size: clamp(1.9rem, 3.6vw, 3.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.055em; }
.personal-lead span { color: var(--blue); }
.motivation-content > p:not(.personal-lead) { max-width: 720px; margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.background-section { padding-bottom: 72px; }
.background-heading { display: grid; gap: 8px; padding-top: 14px; margin-bottom: 32px; }
.background-heading .personal-lead { margin-bottom: 8px; }
.background-heading > p:not(.personal-lead) { max-width: 530px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.background-grid { display: grid; gap: 32px; }
.background-intro { max-width: 460px; }
.background-intro p { margin: 0 0 16px; line-height: 1.7; color: var(--muted); }
.background-intro .background-overline { font: 700 .7rem var(--mono); letter-spacing: .04em; color: var(--blue); margin-bottom: 20px; }
.experience { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.experience:last-child { border-bottom: 1px solid var(--hairline); }
.experience-id { font: .7rem var(--mono); color: var(--blue); padding-top: 4px; }
.experience h4 { margin: 0 0 7px; font-size: 1.05rem; letter-spacing: -.025em; line-height: 1.4; }
.experience p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.65; }


/* All four project entries use the same paper-and-tape presentation. */
.project-paper > .status-tape--idea { --tape-file: url('assets/materials/tape-natural.png'); color: #3d3c35; width: 132px; transform: translateX(-50%) rotate(2deg); }
.project-paper > .status-tape--progress { width: 172px; transform: translateX(-50%) rotate(-2.5deg); }

/* The navigation anchor introduces both personal subsections. */
.about-section { scroll-margin-top: 24px; }
.about-title { margin: 24px 0 30px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -.055em; }
.about-section .section-header h3 { font: 800 .77rem var(--mono); letter-spacing: .025em; margin: 0; }
.portrait { margin: 0 0 30px; width: min(100%, 320px); padding: 8px; background: var(--paper); border: 1px solid rgba(84,79,67,.12); box-shadow: 0 2px 6px rgba(42,39,35,.06); }

/* Discrete stages describe readiness, never a percentage of effort. */
.project-stages { display: grid; grid-template-columns: .65fr .95fr .95fr 1.45fr; gap: 7px; list-style: none; margin: 0; padding: 0; width: 100%; }
.project-stage { min-width: 0; color: #667078; font-size: .64rem; line-height: 1.4; white-space: nowrap; }
.project-stage::before { content: ''; display: block; height: 3px; margin-bottom: 8px; background: #c5c9cb; }
.project-stage.is-reached::before { background: var(--blue); }
.project-stage[aria-current="step"] { color: #17419c; font-weight: 750; }
.drawn-arrow { display: inline-block; width: 38px; height: 26px; flex-shrink: 0; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note-index-row > .drawn-arrow { width: 25px; height: 22px; }
.contact-arrow .drawn-arrow { width: 42px; height: 30px; }


/* Each readiness state shares one colour across its tape and stage indicator. */
.project-paper[data-status="idea"] { --status-color: #535f6c; --status-tape-image: url('assets/materials/tape-idea.svg'); }
.project-paper[data-status="progress"] { --status-color: #805719; --status-tape-image: url('assets/materials/tape-progress.svg'); }
.project-paper[data-status="prototype"] { --status-color: #2756b8; --status-tape-image: url('assets/materials/tape-prototype.svg'); }
.project-paper[data-status="published"] { --status-color: #3d6550; --status-tape-image: url('assets/materials/tape-published.svg'); }
.project-paper[data-status] > .status-tape { background-image: var(--status-tape-image); color: var(--status-color); }
.project-stage.is-reached::before { background: var(--status-color); }
.project-stage[aria-current="step"] { color: var(--status-color); }

.project-paper > .status-tape--published { width: 188px; transform: translateX(-50%) rotate(2.5deg); }

/* Paper framing belongs to the portrait; the personal statement remains typographic. */
.portrait-tape { position: absolute; width: 104px; height: 34px; background: url('assets/materials/tape-natural.png') center / 100% 100% no-repeat; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(42,39,35,.08)); }
.motivation-copy > p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--muted); }
.portrait { position: relative; }
.portrait-tape { top: -17px; left: 50%; width: 94px; transform: translateX(-50%) rotate(-7deg); }


.personal-statement { margin: 0; }
.personal-statement .personal-lead { margin: 0; font-size: clamp(1.9rem, 2.8vw, 2.65rem); line-height: 1.2; }

/* Motion is optional: text stays readable and reduced-motion keeps the full stroke. */
@keyframes brush-reveal {
  from { background-size: 0% .30em; }
  to { background-size: 100% .30em; }
}
@media (prefers-reduced-motion: no-preference) {
  .scribble-underline { animation: brush-reveal 650ms cubic-bezier(.22,.61,.36,1) 180ms both; }
}
@media (hover: hover) and (pointer: fine) {
  .project-paper:hover, .project-paper:focus-within {
    border-color: rgba(84,79,67,.22);
    box-shadow: 0 2px 3px rgba(40,38,35,.08), 0 8px 18px rgba(42,39,35,.085);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-paper { transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out; }
  .project-paper:hover, .project-paper:focus-within { transform: translateY(-2px) rotate(var(--card-rotate)); }
}

/* Manually curated update links, not interactive to-do controls. */
.workbench-heading { margin: 0 0 12px; font: 750 1.05rem/1.3 Arial, sans-serif; letter-spacing: -.025em; }
.workbench-updates { list-style: none; padding: 0; margin: 0; }
.workbench-updates a { display: grid; grid-template-columns: 13px 44px minmax(0,1fr); gap: 9px; align-items: center; min-height: 44px; color: var(--blue); text-decoration: none; }
.workbench-updates time { font: .66rem var(--mono); color: var(--muted); }
.workbench-updates a > span:last-child { font: italic 600 1rem/1.3 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive; }
.workbench-updates a:hover > span:last-child, .workbench-updates a:focus-visible > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.note-bullet { position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; transform: rotate(-3deg); }
#projekt-coffee, #haltung { scroll-margin-top: 42px; }

.note-bullet--done::after { content: ''; position: absolute; left: 3px; top: -4px; width: 5px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(40deg); }

.project-case { --status-color: #2756b8; }
.case-back { margin-top: 24px; }
.case-back .drawn-arrow { transform: rotate(180deg); }
.case-header { padding: 54px 0 36px; max-width: 980px; }
.case-header h1 { font-size: clamp(2.3rem, 5.8vw, 5rem); max-width: 980px; overflow-wrap: anywhere; }
.case-claim { color: var(--blue); font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.4; font-weight: 700; margin: 24px 0; letter-spacing: -.03em; }
.case-summary { max-width: 760px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.case-status { font: .75rem/1.6 var(--mono); color: #2756b8; margin-top: 24px; }
.case-status span { padding: 0 7px; }
.case-progress { max-width: 540px; margin-top: 22px; }
.case-image { margin: 0 0 56px; }
.case-image img { display: block; width: 100%; height: auto; }
.case-image figcaption { margin-top: 12px; font: .7rem/1.6 var(--mono); color: var(--muted); }
.case-image figcaption span { font-size: .65rem; }
.case-section { display: grid; gap: 18px; padding: 32px 0; border-top: 1px solid var(--hairline); }
.case-section h2 { margin: 0; max-width: 340px; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -.035em; line-height: 1.25; }
.case-copy { max-width: 740px; }
.case-copy p { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.case-bottom-back { margin: 24px 0 60px; }



/* Wide cards use 3:2; compact layouts below grow with their readable content. */
.project-paper { --card-rotate: 0deg; position: relative; isolation: isolate; container-type: inline-size; aspect-ratio: 3 / 2; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; row-gap: 10px; padding: clamp(10px,1.4vw,20px) clamp(12px,1.6vw,22px) clamp(10px,1.2vw,16px); border: 1px solid rgba(84,79,67,.12); background: linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.62)),url('assets/materials/paper-light.jpg') center / cover; box-shadow: 0 1px 2px rgba(40,38,35,.07),0 5px 12px rgba(42,39,35,.055); transform: rotate(var(--card-rotate)); }
.project-topline { grid-row: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px; font-size: clamp(.5rem,1.7cqw,.64rem); color: #59616a; letter-spacing: .03em; }
.project-text { grid-row: 2; align-self: center; min-width: 0; margin: 0; max-width: 70%; position: relative; z-index: 1; }
.project-text h3 { margin: 0 0 6px; font-size: clamp(1rem,4.6cqw,2rem); line-height: 1.08; letter-spacing: -.04em; }
.project-text p { margin: 0; font-size: clamp(.75rem,2.4cqw,.95rem); line-height: 1.3; color: #343d44; }
.project-text .project-claim { display: block; color: #2756b8; font-size: clamp(.72rem,2.6cqw,.95rem); font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.project-detail-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: clamp(.72rem,2.5cqw,.9rem); line-height: 1.3; }
.project-detail-link .drawn-arrow { width: clamp(18px,4cqw,28px); height: 20px; }
.project-detail-link--placeholder { color: var(--muted); }
.project-illustration { position: absolute; top: 27%; right: 4%; width: 23%; max-height: 43%; color: var(--blue); transform: rotate(4deg); opacity: .9; }
.print-illustration { transform: rotate(-5deg); }
.project-paper--four .project-text h3 { font-size: clamp(.9rem,4cqw,1.65rem); overflow-wrap: anywhere; }
.project-bottom { grid-row: 3; margin: 0; padding: 0; }
.project-paper .project-stage { font-size: .6rem; }
.project-paper .project-stage::before { height: 2px; margin-bottom: 4px; }
.project-paper > .status-tape { top: -26px; height: 40px; max-width: 64%; font-size: clamp(.6rem,1.7cqw,.72rem); }
.project-paper--coffee { --project-image-share: .7fr; --project-col-gap: 20px; }
.project-card-body { grid-row: 2; grid-column: 1 / -1; align-self: center; display: grid; grid-template-rows: minmax(0,1fr); grid-template-columns: minmax(0,1fr) minmax(0,var(--project-image-share)); column-gap: var(--project-col-gap); min-height: 124px; max-height: 100%; }
.project-paper--coffee .project-topline,.project-paper--coffee .project-bottom { grid-column: 1 / -1; }
.project-paper--coffee .project-text { grid-column: 1; grid-row: 1; align-self: stretch; display: grid; grid-template-rows: minmax(0,1fr) auto; contain: size; min-height: 0; max-width: none; position: static; }
.project-copy { align-self: center; min-height: 0; max-height: 100%; }
.project-text .project-excerpt { flex: 1; min-height: 0; overflow: hidden; }
.project-excerpt > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--excerpt-lines,1); overflow: hidden; }
.project-paper--coffee .project-detail-link { justify-self: start; margin-top: 0; padding-top: 8px; }
.project-paper--coffee .project-product-image { position: relative; grid-column: 2; grid-row: 1; align-self: center; justify-self: end; width: 100%; height: 100%; aspect-ratio: 1122 / 1402; max-height: 100%; min-height: 0; min-width: 0; margin: 0; }
.project-product-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-paper--coffee a.project-detail-link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.image-ai-badge { position: absolute; right: 5px; bottom: 5px; display: inline-grid; place-items: center; min-width: 22px; min-height: 20px; padding: 2px 4px; border: 1px solid rgba(23,29,36,.25); border-radius: 3px; background: rgba(250,248,242,.94); color: var(--ink); font: 700 10px/1 var(--sans); pointer-events: none; }
.case-image { position: relative; }
.case-image .image-ai-badge { right: 12px; bottom: 12px; min-width: 30px; min-height: 26px; font-size: 12px; }

/* Three size ranges, with only two boundaries: 740px and 1100px. */
/* Smartphone */
@media (max-width: 739px) {
  .site-wrap { width: min(calc(100% - 34px),570px); }
  .site-header { align-items: flex-start; flex-direction: column; min-height: 0; padding: 21px 0 0; gap: 19px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 4px; }
  .main-nav a { font-size: .875rem; padding-inline: 2px; }
  h1 { font-size: clamp(2rem,7.8vw,2.7rem); }
  .hero { padding: 60px 0 72px; }
  .paper-note { width: min(90%,340px); justify-self: center; }
  .featured-grid { gap: 42px; }
  .header-aside { display: none; }
  .project-paper { row-gap: 6px; }
  .project-paper--coffee { --project-image-share: .55fr; --project-col-gap: 12px; }
  .project-stages { gap: 5px; }
  .contact-panel { padding-left: 18px; }
}
/* Tablet and shared wide layout */
@media (min-width: 740px) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 42px; padding: 74px 0 78px; }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px 32px; }
  .paper-note { justify-self: end; }
  .background-heading,.background-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 62px; }
  .background-heading { align-items: center; }
  .motivation-content { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 60px; }
  .case-section { grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 60px; }
}
/* Desktop */
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0,1fr) 343px; gap: 55px; }
  .paper-note { width: 343px; }
}

/* Keep the two-column project grid even when only one real project is present. */
.hero-copy { max-width: 900px; }
.projects-section { padding-bottom: 72px; }
.portrait-photo { display: block; width: 100%; height: auto; }

.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 8px; }
.contact-link { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.privacy-note { padding: 22px 0; border-top: 1px solid var(--hairline); max-width: 780px; }
.privacy-note h2 { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; }
.privacy-note p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.privacy-note a { text-underline-offset: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .8rem; }
.footer-links a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding-block: 8px; text-underline-offset: 4px; }
.legal-page { max-width: 840px; margin: 0 auto; padding: 35px 0 60px; }

/* Earlier work shares the paper material, with dates instead of progress stages. */
.work-history-link { padding: 22px 0 0; border-top: 1px solid var(--hairline); }
.work-history-link p { color: var(--muted); line-height: 1.7; margin: 0 0 14px; }
.work-page h2 { font-size: clamp(1.4rem,2.5vw,2rem); line-height: 1.25; letter-spacing: -.035em; }
.work-grid, .work-text-grid, .work-gallery { display: grid; grid-template-columns: minmax(0,1fr); gap: 32px; }
.work-overview { padding-bottom: 64px; }
.work-card { min-width: 0; padding: 16px; border: 1px solid rgba(84,79,67,.16); background: linear-gradient(rgba(255,255,255,.62),rgba(255,255,255,.62)),url('assets/materials/paper-light.jpg') center / cover; box-shadow: 0 1px 2px rgba(40,38,35,.07),0 5px 12px rgba(42,39,35,.055); }
.work-card-image { display: block; }
.work-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.work-card-copy { padding: 20px 6px 8px; }
.work-meta { font: .8rem/1.7 var(--mono); color: var(--muted); margin: 0 0 12px; }
.work-card h3, .work-text-card h3 { font-size: clamp(1.35rem,2.2vw,1.8rem); line-height: 1.25; letter-spacing: -.035em; margin: 0 0 12px; }
.work-card h3 a { color: inherit; text-decoration: none; }
.work-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.work-card-copy > p:not(.work-meta), .work-text-card > p:not(.work-meta) { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.work-employment { padding: 24px 0 48px; border-top: 1px solid var(--hairline); }
.work-section-header { max-width: 760px; margin-bottom: 32px; }
.work-section-header p { color: var(--muted); line-height: 1.7; }
.work-text-card { padding: 24px 0; border-top: 1px solid var(--hairline); }
.work-text-card > a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--blue); font-weight: 700; text-underline-offset: 4px; }
.work-photo { margin-bottom: 40px; }
.work-photo figcaption { font: .8rem/1.6 var(--sans); }
.work-gallery { margin: 20px 0 32px; }
.work-gallery .work-photo { margin: 0; }
.work-end { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 28px 0 56px; border-top: 1px solid var(--hairline); }
.work-end p { color: var(--muted); line-height: 1.7; margin: 0; }
@media (min-width: 740px) {
  .work-grid, .work-text-grid, .work-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.legal-header { margin-bottom: 40px; }
.legal-header h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { margin: 0 0 12px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.02em; }
.legal-section p { margin: 0 0 14px; color: var(--muted); line-height: 1.75; overflow-wrap: anywhere; }
.legal-section a { text-underline-offset: 3px; }
.legal-back { margin-top: 18px; }

/* Small screens and narrow tablet cards: image, readable copy, then action. */
@media (max-width: 1099px) {
  .project-paper { aspect-ratio: auto; grid-template-rows: auto auto; row-gap: 18px; padding: 24px 18px 18px; }
  .project-paper .project-topline { font-size: .75rem; }
  .project-paper .project-bottom { display: none; }
  .project-paper > .status-tape { font-size: .875rem; }
  .project-paper--coffee .project-card-body { display: flex; flex-direction: column; gap: 20px; min-height: 0; max-height: none; }
  .project-paper--coffee .project-text { display: block; contain: none; max-width: none; }
  .project-copy { max-height: none; }
  .project-text h3 { font-size: 1.4rem; line-height: 1.2; }
  .project-text .project-claim { font-size: 1rem; line-height: 1.5; margin-bottom: 12px; }
  .project-text .project-excerpt { overflow: visible; font-size: 1rem; line-height: 1.6; }
  .project-excerpt > span { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .project-paper--coffee .project-product-image { order: -1; align-self: center; width: min(100%,144px); height: auto; aspect-ratio: 1122 / 1402; max-height: none; }
  .project-product-image img { object-fit: contain; }
  .project-paper--coffee .project-detail-link { margin-top: 12px; padding-block: 8px; font-size: 1rem; line-height: 1.5; }
}
.project-paper:focus-within { outline: 3px solid var(--blue); outline-offset: 5px; }
