  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #18160f;
    --black: #100e09;
    --paper: #f4eee0;
    --ink: #1b1810;
    --orange: #ff6a3d;
    --orange-ink: #b8431c;
    --blue: #3b82f6;
    --sub: rgba(244,238,224,.62);
    --ink-soft: rgba(27,24,16,.65);
    --ink-softer: rgba(27,24,16,.55);
    --border: rgba(244,238,224,0.14);
    --border-ink: rgba(27,24,16,0.16);
    --accent: var(--orange-ink);
    --serif: 'Bricolage Grotesque', system-ui, sans-serif;
    --sans: 'Work Sans', system-ui, sans-serif;
    --hand: 'Caveat', cursive;
    --radius: 0px;
    --max: 1120px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--paper);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--black);
    border-bottom: none;
    padding: 0 44px;
    /* One centered row whose items share a text baseline: the name, the
       links and the mail icon's bottom edge all sit on the same line. */
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: baseline;
    align-content: center;
    height: 60px;
    transition: box-shadow 0.25s ease;
  }
  nav.scrolled {
    box-shadow: 0 1px 20px rgba(0,0,0,0.35);
  }
  .nav-name {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--paper);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 10px;
    white-space: nowrap;
  }
  .nav-mark {
    width: 26px;
    height: 26px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
  }
  .nav-links {
    display: flex;
    align-items: baseline;
    gap: 28px;
    list-style: none;
  }
  .nav-links a {
    position: relative;
    font-size: 13px;
    font-weight: 500;
    color: var(--paper);
    opacity: 0.75;
    text-decoration: none;
    transition: opacity 0.2s, color 0.2s;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--orange);
    transition: width 0.25s ease;
  }
  /* Hover styles only where a real pointer exists: on a phone a tap leaves
     :hover "stuck" on the link, which read as a stray underline. */
  @media (hover: hover) {
    .nav-links a:hover { opacity: 1; }
    .nav-links a:hover::after { width: 100%; }
  }
  /* Bigger tap target: the words themselves are short and small, so an
     invisible box reaching well above and below them (and a little to each
     side, staying inside the gap between links) catches a fingertip. Also
     stops double-tap-to-zoom from swallowing quick taps. */
  .nav-links a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .nav-links a::before { content: ''; position: absolute; inset: -18px -6px; }
  /* On a touch screen the underline and color pop in at once instead of
     crawling across the word (the crawl is a hover flourish for a mouse). */
  @media (hover: none) {
    .nav-links a, .nav-links a::after { transition: none; }
  }
  /* "You are here": the Blog link on /blog/ pages, and the homepage section
     currently in view (home.js sets .is-active as you scroll). */
  .nav-links a.is-active { color: var(--orange); opacity: 1; }
  .nav-links a.is-active::after { width: 100%; }
  /* The last item is the mailto icon — styled as the nav's one highlighted
     link (was "About", which had the same job in practice: how to reach
     Chris). currentColor carries the orange into the SVG's stroke. */
  .nav-links li:last-child a {
    color: var(--orange);
    opacity: 1;
    font-weight: 600;
  }
  /* The icon sits on the same baseline as the text (its drawn bottom edge is
     about 3px above the svg box's bottom, hence the nudge). ::before keeps
     a comfortable tap target without adding layout height. */
  .nav-contact a { position: relative; display: inline-block; line-height: 0; }
  .nav-contact a::before { content: ''; position: absolute; inset: -18px -5px; }
  .nav-contact a::after { content: none; }
  .nav-contact svg { position: relative; top: 3px; }

  section { padding: 72px 44px; }
  .inner { max-width: var(--max); margin: 0 auto; }

  .hero {
    position: relative;
    padding: 88px 44px 0;
    overflow: hidden;
    border-bottom: none;
  }
  .hero::before {
    content: '';
    position: absolute;
    left: 4%;
    top: 9%;
    width: 84%;
    height: 82%;
    background: var(--orange);
    transform: skewY(-5deg);
    z-index: 0;
  }
  .hero-shell {
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 270px;
    gap: 16px;
    align-items: start;
  }
  .hero-copy { min-width: 0; }
  .hero-eyebrow-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
  }
  .hero-eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--paper);
    padding: 5px 12px;
    transform: rotate(-1deg);
    white-space: nowrap;
  }
  .hero-eyebrow-location {
    transform: rotate(1.5deg);
  }
  .hero h1,
  .hero-h1 {
    position: relative;
    z-index: 1;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  /* Three fixed lines, each its own CMS field (see renderHero): headline 1
     plain, headline 2 with the squiggle, then the subheadline chip. */
  .hero-h1-line {
    display: inline-block;
    position: relative;
    max-width: 100%;
  }
  /* Hand-drawn squiggle under headline 2. It's the line's own background
     (not a positioned pseudo-element), so it always spans exactly as wide
     as the words — and if a long headline 2 wraps, the full width of the
     copy column, which stops short of the photo. The SVG stretches
     (preserveAspectRatio none + non-scaling stroke) without distorting or
     clipping the stroke, and draws itself in once the words have landed. */
  .hero-h1-underline {
    padding-bottom: 0.3em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M4 16 Q 60 26, 120 15 T 230 17 T 296 9' stroke='%233b82f6' stroke-width='5' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke' opacity='.9'/%3E%3C/svg%3E") no-repeat left bottom / 0% 0.42em;
  }
  html.content-ready .hero-h1-underline {
    animation: squiggleDraw 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
    animation-delay: var(--squiggle-delay, 700ms);
  }
  @keyframes squiggleDraw {
    to { background-size: 100% 0.42em; }
  }
  .hero-h1-chip {
    display: inline-block;
    margin-top: 18px;
    font-style: italic;
    font-weight: 700;
    font-size: 0.55em;
    color: var(--black);
    background: var(--paper);
    padding: 2px 16px;
    transform: rotate(-1deg);
  }
  .hero h1 em,
  .hero-h1 em {
    font-style: italic;
  }
  .hero-desc {
    position: relative;
    z-index: 1;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 17px;
    color: var(--black);
    max-width: 820px;
    line-height: 1.6;
    margin: 26px 0 32px;
  }
  .hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 18px;
    align-items: center;
    padding-bottom: 56px;
  }
  .hero-eyebrow,
  .hero-desc,
  .hero-actions {
    opacity: 0;
    transform: translateY(16px);
  }
  .hero-photo-wrap {
    position: relative;
    z-index: 1;
    height: auto;
    aspect-ratio: 4 / 5;
    overflow: visible;
    border-radius: 0;
    transform: rotate(4deg);
    margin-top: -6px;
    margin-left: 4px;
    background: #e9e2d0;
    padding: 10px 10px 26px;
    box-shadow: 0 18px 36px rgba(0,0,0,.4);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }
  .hero-photo-wrap:hover {
    transform: rotate(1deg) scale(1.02);
  }
  .hero-photo-wrap::before {
    content: '';
    position: absolute;
    left: 14px;
    top: -8px;
    width: 44px;
    height: 18px;
    background: rgba(244,238,224,.55);
    transform: rotate(-8deg);
  }
  .hero-photo-wrap::after {
    content: '';
    position: absolute;
    right: 18px;
    top: -8px;
    width: 38px;
    height: 16px;
    background: rgba(244,238,224,.45);
    transform: rotate(10deg);
  }
  .hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: sepia(.15) contrast(1.05);
  }
  .btn-primary {
    background: var(--black);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 0;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
  }
  .btn-ghost {
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
    text-decoration: underline;
    transition: opacity 0.2s, transform 0.2s ease;
    display: inline-block;
  }
  .btn-ghost:hover {
    opacity: 0.65;
    transform: translateX(3px);
  }

  .stats {
    padding: 0 44px 72px;
    border-bottom: none;
    background: var(--bg);
  }
  .stats-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 12px;
    text-align: center;
  }
  .stat {
    padding: 14px;
    background: var(--paper);
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    border-right: none;
    opacity: 0;
    transform: translateY(20px) rotate(var(--tilt, 0deg));
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                transform 0.55s cubic-bezier(0.22,1,0.36,1);
  }
  .stat:nth-child(6n+1) { --tilt: -3deg; }
  .stat:nth-child(6n+2) { --tilt: 2deg; margin-top: 14px; }
  .stat:nth-child(6n+3) { --tilt: -2deg; }
  .stat:nth-child(6n+4) { --tilt: 3deg; margin-top: 20px; }
  .stat:nth-child(6n+5) { --tilt: -1deg; }
  .stat:nth-child(6n+6) { --tilt: 2deg; margin-top: 10px; }
  .stat.visible {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
  }
  .stat {
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                transform 0.25s ease,
                box-shadow 0.25s ease;
  }
  .stat:hover,
  .stat.visible:hover {
    transform: rotate(var(--tilt, 0deg)) translateY(-5px) scale(1.04);
    box-shadow: 0 16px 28px rgba(0,0,0,.4);
  }
  .stat-num {
    font-family: var(--hand);
    font-size: 34px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
  }
  .stat-label {
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ink-softer);
    text-transform: none;
    letter-spacing: normal;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: none;
    gap: 16px;
    flex-wrap: wrap;
  }
  .section-title {
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 600;
    color: inherit;
    position: relative;
    display: inline-block;
  }
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--orange);
    transition: none;
  }
  .section-title.underline-drawn::after {
    animation: drawUnderline 0.45s ease forwards;
  }
  .section-note {
    display: block;
    width: 100%;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--sub);
    margin: 8px 0 40px;
  }
  #apps .section-note { color: rgba(27,24,16,.55); }
  #strengths .section-note { color: rgba(16,14,9,.65); margin-bottom: 0; }
  .resume-link-icon { display: inline-flex; }
  .resume-link-icon svg { width: 15px; height: 15px; display: block; }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 30px;
  }
  .work-card {
    --tilt: -1.5deg;
    background: var(--paper);
    border: none;
    border-radius: var(--radius);
    padding: 26px;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,.35);
    transform: rotate(var(--tilt));
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
  }
  .work-card:nth-child(4n+2) { --tilt: 1deg; }
  .work-card:nth-child(4n+3) { --tilt: 2deg; }
  .work-card:nth-child(4n+4) { --tilt: -2deg; }
  .work-card:hover,
  .work-card:has(:focus-visible) {
    box-shadow: 0 20px 36px rgba(0,0,0,0.4);
    transform: rotate(calc(var(--tilt) * -0.4)) translateY(-6px);
  }
  .work-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
  }
  .work-logo {
    width: 56px;
    height: 56px;
    padding: 8px;
    border: none;
    border-radius: 0;
    background: none;
    object-fit: contain;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
  }
  .work-logo--wide {
    width: 78px;
    padding: 8px;
  }
  .work-card:hover .work-logo {
    transform: scale(1.08);
  }
  .work-logo--dark {
    background: #0d1628;
    border-color: rgba(13,22,40,0.25);
  }
  .work-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
  }
  .work-tag {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2054b8;
    background: none;
    border: 1.5px solid var(--blue);
    padding: 3px 9px;
    border-radius: 0;
  }
  .work-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
  }
  .work-desc {
    font-family: var(--sans);
    font-size: 13.5px;
    color: rgba(27,24,16,.75);
    line-height: 1.6;
    margin-bottom: 0;
  }
  .work-spacer { flex: 1; }
  .work-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
    border-top: none;
  }
  .work-company {
    display: none;
  }
  .work-case-study-link,
  .app-case-study-link,
  .work-visit-link,
  .app-visit-link {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--serif);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .work-case-study-link {
    margin-left: 0;
    color: rgba(27,24,16,.65);
    background: none;
    border: 1.5px solid rgba(27,24,16,.25);
  }
  .work-case-study-link:hover,
  .work-case-study-link:focus-visible {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    outline: none;
  }
  .work-visit-link {
    color: var(--orange-ink);
    background: none;
    border: 1.5px solid var(--orange);
  }
  .work-visit-link:hover,
  .work-visit-link:focus-visible {
    background: var(--orange);
    color: var(--black);
    outline: none;
  }

  .apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
  }
  .app-card {
    --tilt: 1.5deg;
    background: #1c1a17;
    border: none;
    border-radius: var(--radius);
    width: 260px;
    padding: 22px;
    text-decoration: none;
    color: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(0,0,0,.28);
    transform: rotate(var(--tilt));
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: visible;
  }
  .app-card:nth-child(4n+2) { --tilt: -2deg; margin-top: 16px; }
  .app-card:nth-child(4n+3) { --tilt: -1deg; }
  .app-card:nth-child(4n+4) { --tilt: 2deg; margin-top: 10px; }
  .app-card::before { content: none; }
  .app-card:hover,
  .app-card:has(:focus-visible) {
    box-shadow: 0 18px 32px rgba(0,0,0,0.35);
    transform: rotate(calc(var(--tilt) * -0.4)) translateY(-5px);
  }
  .app-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .app-icon {
    width: 46px;
    height: 46px;
    border-radius: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  .app-card:hover .app-icon {
    transform: scale(1.08);
  }
  .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .app-icon--padded img {
    width: 76%;
    height: 76%;
  }
  .app-name {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--paper);
    flex: 1;
    min-width: 0;
  }
  .app-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .app-tag {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8fb4f7;
    background: none;
    border: 1.5px solid var(--blue);
    padding: 3px 9px;
  }
  .app-desc {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--sub);
    line-height: 1.55;
    flex: 1;
  }
  .app-links-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .app-case-study-link {
    margin-left: 0;
    color: var(--sub);
    background: none;
    border: 1.5px solid rgba(244,238,224,.28);
  }
  .app-case-study-link:hover,
  .app-case-study-link:focus-visible {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
    outline: none;
  }
  .app-visit-link {
    color: var(--orange);
    background: none;
    border: 1.5px solid var(--orange);
  }
  .app-visit-link:hover,
  .app-visit-link:focus-visible {
    background: var(--orange);
    color: var(--black);
    outline: none;
  }

  #tools .section-header {
    margin-bottom: 36px;
  }
  .tools-group {
    margin-bottom: 30px;
  }
  .tools-group-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
  }
  /* Rotates group by group regardless of how many groups there are, not just
     "every group after the first" (which put the 2nd and 3rd in the same
     color). */
  .tools-group:nth-child(even) .tools-group-label { color: var(--blue); }
  .tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  .tool-item {
    --tilt: -2deg;
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--paper);
    background: none;
    border: 1.5px solid var(--orange);
    border-radius: 0;
    padding: 8px 16px;
    display: inline-block;
    transform: rotate(var(--tilt));
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .tools-group:nth-child(even) .tool-item { border-color: var(--blue); }
  .tool-item:nth-child(4n+2) { --tilt: 1deg; }
  .tool-item:nth-child(4n+3) { --tilt: -1deg; }
  .tool-item:nth-child(4n+4) { --tilt: 2deg; }
  .tool-item:hover,
  .tool-item.reveal.visible:hover {
    background: var(--orange);
    color: var(--black);
    transform: rotate(var(--tilt)) scale(1.06);
  }
  .tools-group:nth-child(even) .tool-item:hover,
  .tools-group:nth-child(even) .tool-item.reveal.visible:hover {
    background: var(--blue);
    color: var(--paper);
  }

  .exp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .exp-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-ink);
    align-items: start;
    transition: background 0.2s ease;
  }
  .exp-row:hover {
    background: rgba(27,24,16,.035);
  }
  .exp-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .exp-years {
    --tilt: -2deg;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    background: var(--orange);
    color: var(--black);
    padding: 4px 9px;
    display: inline-block;
    transform: rotate(var(--tilt));
    white-space: nowrap;
  }
  .exp-row:nth-child(even) .exp-years { --tilt: 2deg; }
  .exp-title {
    display: inline;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
  }
  .exp-logo {
    width: 54px;
    height: 54px;
    border-radius: 0;
    padding: 8px;
    object-fit: contain;
    border: none;
    background: none;
    transition: transform 0.25s ease;
  }
  .exp-logo--wide {
    width: 72px;
  }
  .exp-row:hover .exp-logo {
    transform: scale(1.08);
  }
  .exp-logo--dark {
    background: var(--black);
    padding: 8px;
  }
  .exp-company {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    opacity: .55;
    color: inherit;
    margin-bottom: 0;
  }
  .exp-company::before { content: ' · '; }
  /* The lead bullet (the entry's description) always shows; any additional
     bullets live in .exp-more. */
  .exp-bullets { list-style: none; }
  .exp-bullets li {
    position: relative;
    padding-left: 16px;
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(27,24,16,.75);
    line-height: 1.55;
    margin-top: 4px;
    margin-bottom: 4px;
  }
  .exp-bullets li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: .62em;
    width: 5px;
    height: 5px;
    background: var(--orange);
  }
  /* Extra bullets flow in the same list as the description. With no script
     (or for crawlers) they're simply all visible. home.js adds
     .exp-collapsible to the list and toggles .is-open on a row: hover for a
     mouse, tap for touch, one row at a time. Rows open in place (pushing the
     rows below down); home.js decides which row is open so a row sliding
     under a stationary pointer never causes a flicker. */
  .exp-more-hint { display: none; }
  .exp-row--expandable { outline: none; }
  .exp-row--expandable:focus-visible { box-shadow: inset 3px 0 0 var(--orange); }
  /* Everything that changes when a row opens or closes eases over the same
     0.45s with a soft curve, so the row grows and settles rather than
     snapping: the space opens, the bullets fade in a beat behind it, and the
     "+N more" hint folds away instead of vanishing. */
  .exp-collapsible .exp-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .exp-collapsible .exp-more-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .exp-more-inner li:first-child { margin-top: 0; } /* the description's own margin already spaces it */
  .exp-collapsible .exp-row.is-open .exp-more { grid-template-rows: 1fr; }
  .exp-collapsible .exp-row.is-open .exp-more-inner {
    opacity: 1;
    transition: opacity 0.35s ease 0.12s;
  }
  .exp-collapsible .exp-row--expandable { cursor: default; }
  .exp-collapsible .exp-more-hint {
    display: block;
    max-height: 16px;
    margin-top: 6px;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--orange-ink);
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  }
  .exp-collapsible .exp-row.is-open .exp-more-hint { max-height: 0; margin-top: 0; opacity: 0; }
  /* home.js steers the page itself, frame by frame, while rows open and
     close (holding the hovered row still on desktop, pinning a tapped row
     under the header on touch), so the browser's own "keep what's on screen
     in place" adjustment (which reacts to the row above collapsing) must not
     fight it. */
  .exp-list, .exp-list * { overflow-anchor: none; }
  @media (prefers-reduced-motion: reduce) {
    .exp-collapsible .exp-more,
    .exp-collapsible .exp-more-inner,
    .exp-collapsible .exp-more-hint { transition: none; }
  }
  .exp-impact {
    font-family: var(--sans);
    font-size: 12px;
    color: #2054b8;
    margin-top: 6px;
    font-weight: 700;
    line-height: 1.5;
  }

  .resume-links {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .resume-link-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 700;
    background: var(--orange);
    color: var(--black);
    padding: 9px 18px;
    border-radius: 0;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .resume-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(255,106,61,.35);
  }
  .resume-link-secondary {
    font-family: var(--serif);
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-ink);
    text-decoration: none;
    border: 1.5px solid var(--orange);
    padding: 9px 18px;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .resume-link-secondary:hover {
    background: var(--orange);
    color: var(--black);
  }

  /* ── Core strengths: black "sticker" tiles on the orange band, each
     with a strip of tape, so it reads differently from the outline pills
     in Tools & systems and the paper stat tiles up top. ── */
  #strengths {
    background: var(--orange);
    color: var(--black);
  }
  #strengths .section-title::after { background: var(--black); }
  #strengths .section-header { margin-bottom: 40px; }
  /* Compact tiles (icon beside the label) that wrap into as many rows as
     there are strengths without making the band much taller. */
  .strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 26px 22px;
  }
  .strength {
    --tilt: -1.5deg;
    position: relative;
    background: var(--black);
    color: var(--paper);
    padding: 16px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 24px rgba(16,14,9,.3);
    transform: rotate(var(--tilt));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .strength:nth-child(5n+2) { --tilt: 1deg; }
  .strength:nth-child(5n+3) { --tilt: -0.8deg; }
  .strength:nth-child(5n+4) { --tilt: 1.8deg; }
  .strength:nth-child(5n+5) { --tilt: -1.2deg; }
  .strength::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 40px;
    height: 14px;
    background: rgba(244,238,224,.6);
    transform: translateX(-50%) rotate(-4deg);
  }
  .strength:nth-child(even)::before { transform: translateX(-50%) rotate(5deg); }
  .strength-icon {
    display: flex;
    flex-shrink: 0;
    font-size: 30px;
    line-height: 1;
    color: var(--orange);
    transition: transform 0.25s ease;
  }
  .strength-label {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
  }
  .strength.reveal { transform: translateY(20px) rotate(var(--tilt, 0deg)); }
  .strength.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
  .strength:hover,
  .strength.reveal.visible:hover {
    transform: rotate(calc(var(--tilt) * -0.4)) translateY(-6px);
    box-shadow: 0 18px 32px rgba(16,14,9,.38);
  }
  .strength:hover .strength-icon { transform: scale(1.12) rotate(-6deg); }

  /* ── Education: dark band like Tools & systems, one outlined card per
     entry (orange/blue alternating, echoing the tool pills). ── */
  #education {
    background: var(--bg);
  }
  #education .section-header { margin-bottom: 36px; }
  .edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
  }
  .edu-card {
    --tilt: -1deg;
    --edu-accent: var(--orange);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1.5px solid var(--edu-accent);
    transform: rotate(var(--tilt));
    transition: transform 0.25s ease, background 0.25s ease;
  }
  .edu-card:nth-child(even) { --tilt: 1deg; --edu-accent: var(--blue); }
  .edu-icon {
    display: flex;
    flex-shrink: 0;
    font-size: 42px;
    line-height: 1;
    color: var(--edu-accent);
  }
  .edu-degree {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--paper);
  }
  .edu-school {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--sub);
    margin-top: 4px;
  }
  .edu-card.reveal { transform: translateY(20px) rotate(var(--tilt, 0deg)); }
  .edu-card.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
  .edu-card:hover,
  .edu-card.reveal.visible:hover {
    background: rgba(244,238,224,.04);
    transform: rotate(0deg) translateY(-4px);
  }

  .about-section {
    padding: 0;
    background: var(--orange);
    color: var(--black);
    border-top: none;
    border-bottom: none;
    overflow: hidden;
  }
  .about-inner {
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 0;
    align-items: stretch;
    padding: 0;
  }
  .about-text-col {
    padding: 72px 44px;
    max-width: 920px;
  }
  .about-mobile-photo {
    display: none;
  }
  .about-media {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    min-height: 320px;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .about-dog-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: block;
    object-fit: cover;
    object-position: center 14%;
    filter: grayscale(.35);
  }
  .about-caption {
    position: absolute;
    left: 22px;
    right: 16px;
    bottom: 20px;
    background: rgba(16,14,9,.72);
    color: var(--paper);
    padding: 8px 14px;
    font-style: italic;
    font-weight: 400;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .about-name {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 18px;
  }
  .about-name::after { display: none; }
  .about-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }
  .about-pill {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--paper);
    padding: 4px 11px;
    transform: rotate(-1deg);
  }
  .about-pill-location { transform: rotate(1.5deg); }
  .about-bio {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: none;
  }
  .about-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
  }
  .about-contact a {
    display: inline-flex;
    background: var(--black);
    color: var(--paper);
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 700;
    padding: 14px 28px;
    text-decoration: none;
    margin-left: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .about-contact a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.3);
    text-decoration: none;
  }

  footer {
    padding: 26px 44px;
    border-top: none;
    background: var(--black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
  }
  .footer-name {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 600;
    color: var(--paper);
  }
  .footer-links {
    display: flex;
    gap: 26px;
  }
  /* Each contact link stacks its logo above the label. */
  .footer-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--paper);
    opacity: .8;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .footer-links a:hover { opacity: 1; }
  .footer-icon { display: block; line-height: 0; }
  .footer-icon svg { width: 20px; height: 20px; }

  /* Word-by-word hero entrance */
  .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    animation: wordUp 0.55s cubic-bezier(0.22,1,0.36,1)
               forwards;
  }

  @keyframes wordUp {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Hold the hero entrance until the page script has set up the stats and
     the per-word animation delays, so the words don't start animating and
     then get re-timed. The script adds .content-ready to <html> once it's
     done, even if it hit an error. */
  html:not(.content-ready) .word { animation-play-state: paused; }
  html:not(.content-ready) .hero-eyebrow,
  html:not(.content-ready) .hero-desc,
  html:not(.content-ready) .hero-actions { opacity: 0; }

  /* Directional slide */
  @keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes slideFromRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes drawUnderline {
    from { width: 0; }
    to   { width: 100%; }
  }

  /* Scroll-reveal base state */
  .reveal {
    opacity: 0;
  }
  .reveal.from-left {
    transform: translateX(-30px);
  }
  .reveal.from-right {
    transform: translateX(30px);
  }
  .reveal.from-bottom {
    transform: translateY(20px);
  }
  .reveal.scale {
    transform: scale(0.95);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1),
                transform 0.55s cubic-bezier(0.22,1,0.36,1);
  }

  /* Cards/chips carry a resting rotation (--tilt) independent of the
     reveal system; without these overrides .reveal.visible's transform:none
     would flatten them back to zero rotation once they finish animating in. */
  .work-card.reveal { transform: translateY(20px) rotate(var(--tilt, 0deg)); }
  .work-card.reveal.from-left { transform: translateX(-30px) rotate(var(--tilt, 0deg)); }
  .work-card.reveal.from-right { transform: translateX(30px) rotate(var(--tilt, 0deg)); }
  .work-card.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
  .work-card.reveal.visible:hover,
  .work-card.reveal.visible:has(:focus-visible) {
    transform: rotate(calc(var(--tilt) * -0.4)) translateY(-6px);
  }
  .app-card.reveal { transform: scale(0.95) rotate(var(--tilt, 0deg)); }
  .app-card.reveal.visible { transform: rotate(var(--tilt, 0deg)); }
  .app-card.reveal.visible:hover,
  .app-card.reveal.visible:has(:focus-visible) {
    transform: rotate(calc(var(--tilt) * -0.4)) translateY(-5px);
  }
  .tool-item.reveal { transform: scale(0.95) rotate(var(--tilt, 0deg)); }
  .tool-item.reveal.visible { transform: rotate(var(--tilt, 0deg)); }

  @media (max-width: 900px) {
    :root { --max: 100%; }
    nav { padding: 0 16px; }
    .nav-name { font-size: 15px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 11.5px; }
    .nav-mark { display: none; }
    .nav-desktop-only { display: none; }

    section { padding: 48px 20px; }

    .hero { padding: 40px 20px 0; }
    .hero::before { left: 0; width: 100%; top: 6%; height: 88%; transform: skewY(-3deg); }
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    /* Centered once it stacks under the text, so it reads as a deliberate
       polaroid moment above the full-width stat tiles. */
    .hero-photo-wrap {
      transform: rotate(2deg);
      margin: 8px auto 0;
      width: 100%;
      max-width: 250px;
    }
    .hero h1,
    .hero-h1 { font-size: 34px; max-width: 100%; }
    .hero-eyebrow-row { gap: 8px; }
    .hero-eyebrow { white-space: normal; }
    .hero-desc { margin-top: 16px; }
    .hero-actions { flex-wrap: wrap; padding-bottom: 40px; }

    /* Top padding keeps the stat tiles clear of the tilted hero photo
       (and its drop shadow) sitting just above them. */
    .stats { padding: 44px 20px 48px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat { margin-top: 0 !important; }

    /* Cards keep a gentler tilt on phones (full-width cards at the desktop
       angle would poke into the side gutters) and slide up into place on
       scroll rather than in from the sides, which would cause sideways
       scrolling. */
    .work-grid { grid-template-columns: 1fr; gap: 30px; }
    .work-card { --tilt: -1deg; }
    .work-card:nth-child(4n+2) { --tilt: 0.8deg; }
    .work-card:nth-child(4n+3) { --tilt: 1.2deg; }
    .work-card:nth-child(4n+4) { --tilt: -0.8deg; }
    .work-card.reveal,
    .work-card.reveal.from-left,
    .work-card.reveal.from-right { transform: translateY(28px) rotate(calc(var(--tilt) * 2.5)); }
    .work-card.reveal.visible { transform: rotate(var(--tilt)); }

    .apps-grid { gap: 22px; }
    .app-card { width: 100%; margin-top: 0 !important; --tilt: 1deg; }
    .app-card:nth-child(4n+2) { --tilt: -1deg; }
    .app-card:nth-child(4n+3) { --tilt: -0.6deg; }
    .app-card:nth-child(4n+4) { --tilt: 0.9deg; }
    .app-card.reveal { transform: translateY(28px) rotate(calc(var(--tilt) * 2.5)); }
    .app-card.reveal.visible { transform: rotate(var(--tilt)); }

    /* Phones have no hover, so the card crossing the middle of the screen
       gets the desktop hover treatment instead: it straightens past zero
       and lifts, then settles back as it scrolls on (.is-centered is
       toggled by startPage()). */
    .work-card.reveal.visible.is-centered,
    .app-card.reveal.visible.is-centered {
      transform: rotate(calc(var(--tilt) * -1)) translateY(-6px);
      box-shadow: 0 22px 38px rgba(0,0,0,.4);
      transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease;
    }

    .strengths-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .strength { padding: 13px 12px; gap: 10px; }
    .strength-icon { font-size: 24px; }
    .strength-label { font-size: 14px; }
    .edu-grid { grid-template-columns: 1fr; gap: 18px; }
    .edu-card { padding: 18px 18px; gap: 16px; }
    .edu-icon { font-size: 36px; }
    .edu-degree { font-size: 18px; }

    .tools-row { gap: 8px; }
    .tool-item { transform: rotate(0deg); }
    .tool-item.reveal,
    .tool-item.reveal.visible { transform: none; }

    .exp-row {
      grid-template-columns: 72px 1fr;
      gap: 12px;
    }

    .section-header,
    .resume-links {
      flex-wrap: wrap;
    }
    .resume-links { gap: 10px; }
    .resume-link-primary,
    .resume-link-secondary { padding: 8px 14px; font-size: 11.5px; }

    .about-inner {
      grid-template-columns: 1fr;
    }
    .about-text-col { padding: 48px 20px; max-width: 100%; }
    .about-mobile-photo {
      display: block;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      overflow: hidden;
      margin-bottom: 16px;
      border: 2px solid var(--black);
    }
    .about-mobile-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }
    .about-media {
      clip-path: none;
      min-height: 220px;
    }
    .about-caption {
      top: 16px;
      bottom: auto;
    }
    .about-dog-photo {
      height: 100%;
    }

    footer {
      flex-direction: column;
      gap: 16px;
      padding: 24px 20px;
      text-align: center;
    }
    .footer-links { justify-content: center; }
  }

  /* Narrow phones: "Augustine" is the first thing to go, not the nav links —
     losing it keeps the name on one line (a wrap here would blow out nav's
     fixed height) and buys the links row a little more room. */
  @media (max-width: 400px) {
    .nav-name-last { display: none; }
    nav { padding: 0 14px; }
    .nav-links { gap: 12px; }
  }
