/* Nicole McGinnis — portfolio
   Layout: photos-first. Work = masonry of selects, Index = ruled list of jobs,
   Job = title + contact sheet (uniform film grid) + selects (masonry). */
:root {
  --paper: #EEECE7;      /* page ground, warm grey paper */
  --ink: #141414;        /* text */
  --ink-2: #5E5C57;      /* secondary text */
  --rule: #141414;       /* hairlines */
  --sheet: #111111;      /* contact sheet ground */
  --sheet-ink: #E0892B;  /* edge-print orange on the sheet */
  --accent: #C8321E;     /* grease-pencil red */
  --f-display: 'Archivo', 'Arial Black', Impact, sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Special Elite', 'Courier New', ui-monospace, monospace;
  --f-pixel: 'Silkscreen', ui-monospace, monospace;
  --f-script: 'Permanent Marker', 'Marker Felt', cursive;
  --f-wide: 'Unbounded', 'Archivo', 'Arial Black', sans-serif;
  --brand: #1414F4;      /* NM logo blue */
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --gap: 14px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter-l: max(28px, env(safe-area-inset-left, 0px)); --gutter-r: max(28px, env(safe-area-inset-right, 0px)); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; }

/* film grain over everything, never catches clicks */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- header ---------- */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; padding-block: 12px 8px; }
.nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.n-top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.nav a { text-decoration: none; line-height: 1.2; min-height: 23px; display: inline-flex; align-items: center; }
.nav .name { gap: 12px; font-weight: 800; font-stretch: 125%; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 0; }
.nav .name .soft-logo { flex: none; }
.nav .name:hover { color: var(--ink); }
.nav .n-about { font-size: 17px; font-weight: 600; font-stretch: 110%; }
.nav .n-work { font-family: var(--f-wide); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.nav .n-index { font-family: var(--f-pixel); font-size: 15px; letter-spacing: .12em; }
.nav .n-contact { font-family: var(--f-mono); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.nav a[aria-current="page"] { font-family: var(--f-script); font-size: 24px; font-weight: 400; font-stretch: 100%; letter-spacing: .01em; color: var(--brand); text-transform: none; min-height: 40px; }
.nav a:hover { color: var(--brand); }
.nav .n-work[aria-current="page"] { font-family: var(--f-wide); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.head-note { font-family: var(--f-mono); font-size: 12px; line-height: 1.6; text-transform: uppercase; color: var(--ink-2); text-align: right; white-space: pre-line; }
@media (max-width: 520px) { .head-note { text-align: left; width: 100%; } }

main { padding-bottom: 120px; min-height: 60vh; }

/* ---------- masonry (Work + selects) ---------- */
.masonry { display: flex; gap: var(--gap); align-items: flex-start; }
.masonry .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tile { display: block; text-decoration: none; color: var(--ink-2); cursor: pointer; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.tile .ph { position: relative; background: #2B2A27; overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: filter .25s ease, transform .6s ease; }
.tile .cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-family: var(--f-wide); font-weight: 500; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.tile .cap span:last-child { text-align: right; }
.tile:hover .cap { color: var(--ink); }

/* ---------- index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 18px; }
.filters button { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.filters button[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--accent); }
.filters button .ct { color: var(--ink-2); font-size: 11px; margin-left: 4px; }
.rows { border-bottom: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 40px 72px minmax(0, 1fr) auto; align-items: center; gap: 8px 22px; padding: 12px 8px; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; }
.row .no { font-family: var(--f-pixel); font-size: 13px; color: var(--ink-2); }
.row .th { width: 72px; height: 48px; object-fit: cover; background: #2B2A27; }
.row .ttl { min-width: 0; }
.row .ttl b { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(20px, 3vw, 34px); line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.row .ttl small { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.row .meta { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-align: right; white-space: nowrap; }
.row .meta span { display: block; }
.row .meta .cat { color: var(--ink-2); }
.row:hover, .row:focus-visible { background: var(--ink); color: var(--paper); }
.row:hover .no, .row:hover .ttl small, .row:hover .meta .cat { color: #BDB9B0; }
@media (max-width: 600px) {
  .row { grid-template-columns: 56px minmax(0, 1fr); }
  .row .no { display: none; }
  .row .th { width: 56px; height: 56px; }
  .row .meta { grid-column: 2; text-align: left; white-space: normal; }
  .row .meta span { display: inline; margin-right: 12px; }
}
.peek { position: fixed; z-index: 55; width: 260px; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.peek.on { opacity: 1; }
@media (hover: none) { .peek { display: none; } }

/* ---------- job page ---------- */
.job { display: flex; flex-direction: column; gap: 48px; }
.job-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.job-top h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(40px, 7.4vw, 116px); line-height: .92; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; max-width: 16ch; overflow-wrap: anywhere; }
.job-top .client { display: block; font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.facts { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 28px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
.job-notes { max-width: 62ch; font-size: 16px; margin: 0; }
.hero { width: 100%; max-height: 86vh; object-fit: contain; object-position: left center; cursor: zoom-in; background: transparent; }
.hero-btn { background: none; border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.clip { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.clip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.sheet { background: var(--sheet); padding: 18px 18px 26px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .14em; color: var(--sheet-ink); text-transform: uppercase; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
.frame { position: relative; background: none; border: 0; padding: 0; cursor: zoom-in; text-align: left; }
.frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #222; }
.frame .fno { margin-top: 5px; font-family: var(--f-pixel); font-size: 10px; letter-spacing: .1em; color: var(--sheet-ink); }
.sec-label { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 400; }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--rule); padding-top: 18px; text-decoration: none; }
.next span:first-child { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.next span:last-child { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 4.4vw, 48px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.next:hover span:last-child { color: var(--accent); }
.back { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 12px 0; display: inline-block; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about-photo { margin: 0 0 32px; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; overflow: hidden; background: #DDDAD3; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about h1 { margin: 0 0 24px; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(40px, 6vw, 88px); line-height: .92; text-transform: uppercase; }
.about .bio p { max-width: 58ch; font-size: 17px; margin: 0 0 1em; }
.clients h2 { font-family: var(--f-pixel); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.clients ul { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--rule); }
.clients li { border-bottom: 1px solid var(--rule); padding: 7px 0; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.contact-block { font-family: var(--f-mono); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.contact-block .copy { background: none; border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; align-self: flex-start; min-height: 40px; }
.contact-block .copy:hover { background: var(--ink); color: var(--paper); }

/* ---------- footer ---------- */
.site-foot { position: sticky; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-pixel); font-size: 13px; letter-spacing: .1em; mix-blend-mode: difference; color: #FFFFFF; }
.site-foot a { color: #FFFFFF; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(12,12,11,.96); display: flex; align-items: center; justify-content: center; padding: calc(56px + env(safe-area-inset-top, 0px)) var(--gutter-r) calc(56px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.lb[hidden] { display: none !important; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb .lb-bar { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); display: flex; justify-content: space-between; align-items: center; padding: 10px var(--gutter-r) 10px var(--gutter-l); color: var(--sheet-ink); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.lb button { background: none; border: 0; color: #EEECE7; cursor: pointer; min-width: 44px; min-height: 44px; font-family: var(--f-mono); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.lb .prev, .lb .nxt { position: absolute; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb .prev { left: var(--gutter-l); }
.lb .nxt { right: var(--gutter-r); }

.empty { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; color: var(--ink-2); padding: 40px 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- name in soft-focus type (letters tight enough to bleed together) ---------- */
.soft-name { position: relative; display: inline-block; font-family: 'Archivo', 'Arial Black', sans-serif; font-weight: 900; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.075em; word-spacing: .02em; line-height: .9; padding-right: .1em; white-space: nowrap; }
/* lens focused on the middle: a blurred copy underneath, the sharp copy on top fades out toward both ends */
.soft-name::before { content: attr(data-text); position: absolute; left: 0; top: 0; filter: blur(.06em); }
.soft-name .sn-sharp { position: relative; display: inline-block; filter: blur(.012em);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
.soft-logo { position: relative; display: inline-block; flex: none; }
.soft-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.soft-logo .sl-blur { filter: blur(var(--lb, 1.6px)); }
.soft-logo .sl-sharp { -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); }
.about .lockup .soft-logo { --lb: 2.6px; }
.nav .name .soft-name { font-size: 26px; letter-spacing: -.075em; }
.about .lockup { display: flex; align-items: center; gap: 18px; margin: 0 0 32px; }
.about .lockup .soft-name { font-size: clamp(34px, 5vw, 58px); }

  mask-image: radial-gradient(circle var(--fr) at var(--fx) var(--fy), rgba(0,0,0,1.000) 0%, rgba(0,0,0,0.976) 10%, rgba(0,0,0,0.905) 20%, rgba(0,0,0,0.794) 30%, rgba(0,0,0,0.655) 40%, rgba(0,0,0,0.500) 50%, rgba(0,0,0,0.345) 60%, rgba(0,0,0,0.206) 70%, rgba(0,0,0,0.095) 80%, rgba(0,0,0,0.024) 90%, rgba(0,0,0,0.000) 100%); }

/* a photo whose job name shows on hover */
.tg { position: relative; display: block; text-decoration: none; transition: opacity .5s ease; }
.tg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tg-name { position: absolute; left: 0; top: calc(100% + 6px); font-family: var(--f-wide); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity .35s, transform .35s; pointer-events: none; }
.tg-name i { font-style: normal; opacity: .6; margin-left: 6px; }
.tg:hover .tg-name, .tg:focus-visible .tg-name { opacity: 1; transform: none; }

/* home: the spiral */
.sp { position: relative; height: min(88vh, 860px); overflow: hidden; outline: none; }
main.home { padding-bottom: 24px; }
.home .sp { height: calc(100vh - 190px); height: calc(100svh - 190px); min-height: 460px; max-height: 1100px; }
.sp-item { position: absolute; left: 0; top: 0; width: 60px; height: 40px; will-change: transform; transition: transform 1.2s cubic-bezier(.65,0,.25,1), width 1.2s cubic-bezier(.65,0,.25,1), height 1.2s cubic-bezier(.65,0,.25,1), opacity .5s; }
.sp-item img { box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.sp:not(.lined) .tg-name { display: none; }
.sp-toggle { position: absolute; right: var(--gutter-r); bottom: 14px; z-index: 2; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); border: 1px dashed var(--ink); padding: 8px 12px; cursor: pointer; }
.sp-toggle:hover { color: var(--brand); border-color: var(--brand); }

/* opens into a light table */
.sp-sheet { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.sp[data-mode="table"] { touch-action: pan-y; transition: background-color 1s ease; }
.sp[data-mode="table"].lined { background: #F7F6F2; }
.sp-no { position: absolute; left: 0; top: calc(100% + 5px); font-family: var(--f-pixel); font-weight: 400; font-size: 10px; letter-spacing: .04em; color: var(--sheet-ink); opacity: 0; transition: opacity .6s; }
.sp[data-mode="table"].lined .sp-no { opacity: .7; }
.sp[data-mode="table"] .tg-name { left: 3.6em; top: calc(100% + 4px); }
.sp[data-mode="table"] .sp-toggle { opacity: .75; } .sp[data-mode="table"] .sp-toggle:hover { opacity: 1; }
.sp[data-mode="table"] .sp-sheet { transition: none; }   /* moved smoothly by the script */

/* ---------- "About" in Syne, with a smiling O ---------- */
:root { --f-fun: 'Syne', 'Archivo', sans-serif; }
.ab-word { display: inline-flex; align-items: baseline; font-family: var(--f-fun); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.smile-o { width: .86em; height: .72em; margin: 0 .03em; align-self: baseline; overflow: visible; fill: none; stroke: currentColor; stroke-width: 15; stroke-linecap: round; transform: translateY(.02em); }
.smile-o .eye { fill: currentColor; stroke: none; }
.smile-o .mouth { stroke-width: 9; }
.nav .n-about, .nav .n-about[aria-current="page"] { font-family: var(--f-fun); font-stretch: 100%; text-transform: none; }
.nav .n-about { font-size: 17px; }
.nav .n-about[aria-current="page"] { font-size: 24px; color: var(--brand); }
.nav .n-about:hover .smile-o .mouth { d: path("M33 55 Q55 84 77 55"); }
.about h1 .ab-word { font-size: inherit; letter-spacing: -.02em; }
.about h1 { font-family: var(--f-fun); font-stretch: 100%; }

.soft-name::before { filter: blur(var(--edge, .06em)); }
/* ---------- name in a soft blue box (live header) ---------- */
.name-box { position: relative; display: inline-block; padding: .34em .5em .28em .46em; color: #fff; isolation: isolate; line-height: 1; }
.name-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bx, var(--brand)); filter: blur(.12em); }
.soft-name.sn-gentle { --edge: .026em; }
/* the header word: near-crisp at the plus (or the middle), easing out on a long cos-squared curve to about 12% at the ends.
   JS sets --fx to where the plus sits */
.soft-name.sn-gentle .sn-sharp { --fx: 50%; filter: blur(.0003125em); -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.120) calc(var(--fx) * 0.00), rgba(0,0,0,0.204) calc(var(--fx) * 0.20), rgba(0,0,0,0.424) calc(var(--fx) * 0.40), rgba(0,0,0,0.696) calc(var(--fx) * 0.60), rgba(0,0,0,0.9675) calc(var(--fx) * 0.80), #000 var(--fx), rgba(0,0,0,0.9675) calc(var(--fx) + (100% - var(--fx)) * 0.20), rgba(0,0,0,0.696) calc(var(--fx) + (100% - var(--fx)) * 0.40), rgba(0,0,0,0.424) calc(var(--fx) + (100% - var(--fx)) * 0.60), rgba(0,0,0,0.204) calc(var(--fx) + (100% - var(--fx)) * 0.80), rgba(0,0,0,0.120) calc(var(--fx) + (100% - var(--fx)) * 1.00)); mask-image: linear-gradient(90deg, rgba(0,0,0,0.120) calc(var(--fx) * 0.00), rgba(0,0,0,0.204) calc(var(--fx) * 0.20), rgba(0,0,0,0.424) calc(var(--fx) * 0.40), rgba(0,0,0,0.696) calc(var(--fx) * 0.60), rgba(0,0,0,0.9675) calc(var(--fx) * 0.80), #000 var(--fx), rgba(0,0,0,0.9675) calc(var(--fx) + (100% - var(--fx)) * 0.20), rgba(0,0,0,0.696) calc(var(--fx) + (100% - var(--fx)) * 0.40), rgba(0,0,0,0.424) calc(var(--fx) + (100% - var(--fx)) * 0.60), rgba(0,0,0,0.204) calc(var(--fx) + (100% - var(--fx)) * 0.80), rgba(0,0,0,0.120) calc(var(--fx) + (100% - var(--fx)) * 1.00)); }
.nav .name .name-box { font-size: 19px; }
.nav .name .name-box .soft-name { font-size: inherit; }

/* ---------- home: title and the way to client work ---------- */

/* ---------- work: a plain, still grid of client jobs ---------- */
.wk-grid { --gap: clamp(20px, 2.6vw, 40px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .wk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; text-decoration: none; color: #fff; background: #DDDAD3; }
.wk-ph { position: absolute; inset: 0; }
.wk-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.wk-tile::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)); pointer-events: none; }
.wk-cap { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.wk-t { font-weight: 600; font-size: 13px; line-height: 1.25; }
.wk-c { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .9; }
.wk-tile:hover .wk-ph img, .wk-tile:focus-visible .wk-ph img { transform: scale(1.03); }
.wk-tile:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* header home icon */
.nav .n-home { min-height: 36px; padding: 2px 0; color: var(--ink); }
.nav .n-home svg { display: block; transform: rotate(-5deg); transform-origin: 50% 80%; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.nav .n-home:hover svg, .nav .n-home:focus-visible svg { transform: rotate(4deg) scale(1.08); }
.nav .n-home .h-smoke { animation: h-puff 2.8s ease-in-out infinite; transform-origin: 22px 3px; }
@keyframes h-puff { 0%, 100% { opacity: .35; transform: translateY(1px); } 50% { opacity: 1; transform: translateY(-1px); } }
.nav .n-home[aria-current="page"] { color: var(--brand); min-height: 36px; font-size: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- phones ---------- */
.nav .n-menu { display: none; }
.n-links { display: contents; }
@media (max-width: 699px) {
  .site-head { padding-block: 12px 8px; gap: 8px; }
  .head-note { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 14px; width: 100%; }
  .nav .name { margin-bottom: 0; }
  .nav .name .soft-name { font-size: 20px; }
  .nav .name .name-box { font-size: 20px; }   /* a little bigger on phones (was 17px) */
  .n-top { margin-bottom: 0; gap: 12px; }
  .nav .n-menu { margin-left: auto; }
  .nav .n-menu { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; background: var(--paper); color: var(--ink); border: 1px dashed var(--ink); cursor: pointer; }
  .n-links { display: none; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 14px 0 6px; }
  .nav.open .n-links { display: flex; }
  .nav .n-links a { min-height: 40px; }

  /* home: a smaller spiral that opens into two rows of photos you swipe left and right */
  .home .sp { min-height: 380px; height: calc(100svh - 135px); max-height: 760px; }
  .sp.is-phone .tg-name { left: 3.4em; top: calc(100% + 6px); opacity: 1; transform: none; white-space: nowrap; right: auto; }
  .sp.is-phone .sp-toggle { opacity: 1; }
  /* the open strip scrolls with the phone's own swipe and momentum, not the script */
  .sp.is-phone.lined .sp-sheet { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: none; transform: none !important; }
  .sp.is-phone.lined .sp-sheet::-webkit-scrollbar { display: none; }
  .sp.is-phone.lined { touch-action: pan-x pan-y; }
  .sp.is-phone .sp-item { will-change: auto; }

  /* work: two columns of squares */
  .wk-grid { --gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-cap { left: 8px; right: 8px; bottom: 8px; }
  .wk-t { font-size: 12px; }
  .wk-c { font-size: 9.5px; }
}
/* touch screens have no hover, so project names always show */
@media (hover: none) { .tg-name { opacity: 1; transform: none; } }
