/* ==========================================================================
   garrettlyons.com: homepage, "Case-file" direction (v2.0)
   Built from Garrett's Figma homepage (Case-file file, frame 8:2).
   Loads after styles.css, which still supplies the shared footer + disc golf
   game, the color variables and the dark-mode switch.
   ========================================================================== */
:root,
:root[data-theme="light"] {
  --panel: #FAFBF9;
  --hl: #EED9C2;
  --action: #2F5D3A;
  --on-action: #F3F5F2;
  --card-dark: #26402E;
  --on-dark: #F3F5F2;
  --dash-h: rgba(192,98,47,.5);
  --spec: #A9542A;   /* text-safe clay: 4.8:1 on ground (was #C0622F, 3.8:1) */
}
:root[data-theme="dark"] {
  --panel: #1A211B;
  --hl: rgba(224,138,91,.32);
  --action: #7FBF8E;
  --on-action: #141A15;
  --card-dark: #26402E;
  --on-dark: #F1ECE1;
  --dash-h: rgba(224,138,91,.5);
  --spec: #E08A5B;
}

body.cf {
  font-family: Inter, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}
:where(.cf) :where(h1, h2, h3, p) { margin: 0; }
.cf .m { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; line-height: 1.4; }
.cf .it { color: var(--accent-text); }
.cf-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4.2vw, 60px); position: relative; }

/* ---------- Header ---------- */
.cf-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); transition: background-color .4s ease, border-color .4s ease; }
.cf-header .cf-wrap { display: flex; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.cf-word { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.cf-nav { display: flex; align-items: center; margin-right: 8px; }
.cf-nl { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: inherit; text-decoration: none; font-size: 15px; }
.cf-nl::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.cf-nl:hover::after, .cf-nl:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.cf-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.cf-icon:hover { border-color: currentColor; }
.cf-icon:active { background: var(--text); color: var(--bg); }
.cf-icon .icon-sun { display: none; }
:root[data-theme="dark"] .cf-icon .icon-sun { display: block; }
:root[data-theme="dark"] .cf-icon .icon-moon { display: none; }
.cf-header .menu-btn { display: none; }
.cf-header .menu-btn .icon-close { display: none; }
.cf-header .menu-btn[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cf-header .menu-btn[aria-expanded="true"] .icon-burger { display: none; }
.cf-header .menu-btn[aria-expanded="true"] .icon-close { display: block; }
.cf-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: 4px 16px 20px; display: flex; flex-direction: column; }
.cf-menu a { min-height: 56px; display: flex; align-items: center; color: inherit; text-decoration: none; font-size: 28px; font-weight: 600; letter-spacing: -.03em; border-bottom: 1px dashed var(--dash-h); }

/* ---------- Grid overlay (visible design element) ---------- */
.cf-main { position: relative; }
.cf-cols { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .4; }
.cf-cols .cf-wrap { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.cf-cols span { background: var(--grid-fill); border-left: 1px solid var(--grid-line); border-right: 1px solid var(--grid-line); transform-origin: top; animation: cf-grow 1.4s var(--ease) both; }
.cf-cols span:nth-child(n) { animation-delay: calc(var(--i, 0) * 40ms); }
.cf-main > section { position: relative; z-index: 1; }

/* ---------- Spec annotations (spec-sheet notes, desktop only) ---------- */
.spec { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 3px; background: var(--bg); font-family: var(--mono); font-size: 8.5px; line-height: 1.2; letter-spacing: .02em; color: var(--spec); white-space: nowrap; vertical-align: middle; pointer-events: none; }
.spec b { font-weight: 500; color: var(--text); }
.spec i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; display: inline-block; }
.spec.green { color: var(--status); }
.spec.action { color: var(--action); }
.spec.ink { color: var(--muted); }
.spec.ink i { background: var(--text); }
.spec-dim { position: absolute; left: 0; right: 0; top: -28px; height: 16px; pointer-events: none; color: var(--spec); }
.spec-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 1px solid currentColor; }
.spec-dim::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 9px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.spec-dim .spec { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 1; }
.spec-gap { position: absolute; display: flex; align-items: center; gap: 4px; color: var(--spec); font-family: var(--mono); font-size: 9px; pointer-events: none; }
.spec-gap.v { flex-direction: row; }
.spec-gap.v::before { content: ""; width: 7px; height: var(--len, 24px); border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.spec-gap.h { flex-direction: column; }
.spec-gap.h::before { content: ""; width: var(--len, 24px); height: 7px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.spec-lead { display: inline-flex; flex-direction: column; align-items: flex-start; }
.spec-lead::before { content: ""; width: 1px; height: 14px; margin-left: 12px; background: var(--border); }

/* ---------- Hero ---------- */
.cf-hero { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding-top: clamp(40px, 11vw, 160px); padding-bottom: clamp(56px, 11vw, 160px); }
.cf-hero-l { grid-column: 1 / span 6; }
.cf-hero-r { grid-column: 8 / span 5; position: relative; }
.cf-label { display: flex; align-items: center; gap: 10px; color: var(--muted); flex-wrap: wrap; animation: cf-up 1s var(--ease) .2s both; }
.cf-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 4px var(--status-ring); flex: 0 0 8px; margin-left: 4px; }
.cf-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status); animation: cf-pulse 2.8s ease-out 1.8s infinite; }
.cf-h1 { margin-top: 18px !important; font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; }
.cf-ln { display: block; position: relative; padding-bottom: .02em; }
.cf-ln::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: 1px dashed var(--dash-h); transform-origin: left; animation: cf-draw 1.2s var(--ease) .6s both; }
.cf-ln:nth-child(2)::after { animation-delay: .75s; }
.cf-ln:nth-child(3)::after { animation-delay: .9s; }
.cf-lt { display: inline-block; animation: cf-rise 1s var(--ease) both; }
.cf-ln:nth-child(2) .cf-lt { animation-delay: .12s; }
.cf-ln:nth-child(3) .cf-lt { animation-delay: .24s; }
.cf-ln .spec { margin-left: 20px; letter-spacing: .02em; position: relative; top: -.2em; animation: cf-fade .6s ease 1.4s both; }
.cf-lede { margin-top: 28px !important; max-width: 640px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); animation: cf-up 1s var(--ease) .5s both; }
.cf-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; animation: cf-up 1s var(--ease) .65s both; }
.cf-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--action); color: var(--on-action); text-decoration: none; font-weight: 500; font-size: 17px; transition: transform .25s var(--ease), background-color .4s ease; }
.cf-btn:hover, .cf-btn:focus-visible { transform: translateY(-2px); }
.cf-btn span { transition: transform .3s var(--ease); }
.cf-btn:hover span, .cf-btn:focus-visible span { transform: translateX(4px); }
.cf-tl { color: inherit; text-decoration: none; font-weight: 500; font-size: 16px; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: border-color .25s; }
.cf-tl:hover, .cf-tl:focus-visible { border-color: var(--accent); }

/* Hero panel: one system, four steps */
.cf-panel { position: relative; border: 1px solid var(--border); background: var(--panel); border-radius: 22px; padding: 24px; animation: cf-up 1.1s var(--ease) .4s both; transition: background-color .4s ease, border-color .4s ease; }
.cf-panel-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 20px; }
.cf-stage { position: relative; height: 300px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cf-view { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cf-view[hidden] { display: none !important; }
.cf-view.on { animation: cf-view .6s var(--ease) both; }
.cf-steps { display: flex; gap: 8px; margin-top: 24px; }
.cf-step { flex: 1; min-height: 44px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0; font: 400 12px var(--mono); }
.cf-step i { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; }
.cf-step i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.cf-step[aria-pressed="true"] { color: var(--text); }
.cf-step[aria-pressed="true"] i::after { transform: scaleX(1); transition: transform .5s var(--ease); }
.cf-cap { margin-top: 24px !important; font-size: 15px; color: var(--muted); }
.cf-cap b { color: var(--text); font-weight: 500; }
.cf-tok { display: grid; gap: 16px; width: 88%; align-self: flex-start; margin-top: 20px; }
.cf-sws { display: flex; gap: 8px; }
.cf-sws span { flex: 1; height: 54px; border-radius: 10px; border: 1px solid rgba(0,0,0,.06); }
.cf-type { display: flex; align-items: flex-end; gap: 16px; border-top: 1px solid var(--border); padding-top: 26px; }
.cf-type b { font-weight: 600; font-size: 56px; line-height: .9; letter-spacing: -.04em; }
.cf-type .m { color: var(--muted); margin-bottom: 4px; margin-right: auto; }
.cf-sp { display: flex; align-items: flex-end; gap: 4px; }
.cf-sp span { display: block; width: 10px; background: var(--accent); opacity: .85; border-radius: 1px; }
.cf-sp .m { width: auto; background: none; opacity: 1; color: var(--muted); margin-left: 8px; }
.cf-comp { width: 72%; display: grid; gap: 12px; }
.cf-c-card { border-radius: 14px; padding: 16px; background: var(--card-dark); color: var(--on-dark); display: grid; gap: 18px; }
.cf-c-card div { display: flex; justify-content: space-between; }
.cf-c-row { display: flex; gap: 10px; }
.cf-c-btn { flex: 1; height: 40px; border-radius: 999px; background: var(--action); color: var(--on-action); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.cf-c-btn2 { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cf-phone { width: 150px; height: 270px; border-radius: 26px; border: 6px solid var(--text); background: var(--bg); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.cf-phone .bar { display: block; height: 8px; border-radius: 4px; background: var(--border); }
.cf-phone .cf-c-card { padding: 10px; gap: 14px; border-radius: 10px; }
.cf-phone .cf-c-btn { flex: 0 0 28px; height: 28px; font-size: 11px; }
.cf-sign { width: 70%; height: 84%; border-radius: 6px; background: var(--card-dark); color: var(--on-dark); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.cf-sign b { font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.cf-sign b em { font-style: normal; color: var(--hl); }
:root[data-theme="dark"] .cf-sign b em { color: #EED9C2; }
.cf-sign .cf-c-btn { flex: 0 0 auto; width: auto; align-self: flex-start; padding: 0 16px; white-space: nowrap; background: #EED9C2; color: #1C2A20; }

/* ---------- Sections ---------- */
.cf-sec { padding-top: clamp(80px, 9vw, 128px); }
.cf-kick { display: flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cf-kick::before { content: none; }
.cf-kick span { display: inline-block; width: 20px; height: 1px; background: currentColor; }
.cf-sh { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); align-items: end; }
.cf-sh > div { grid-column: 1 / span 7; }
.cf-sh > p { grid-column: 9 / span 4; color: var(--muted); font-size: 16px; line-height: 1.5; }
.cf-h2 { margin-top: 10px !important; font-weight: 600; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -.04em; }
.cf-h2 .spec { margin-left: 16px; position: relative; top: -6px; }


/* ---------- Project cards ----------
   Every position below comes from the Figma card (648 × 656), written in
   container units (1cqw = 6.48px at full size) so both sides line up exactly.
   No lift or zoom: the two sides cross-fade in place and only the icon moves. */
.cf-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; }
.pc { position: relative; display: block; aspect-ratio: 648 / 656; border-radius: 24px; overflow: hidden; color: #1C2A20; container-type: inline-size; isolation: isolate; animation: cf-up .8s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 90ms + 200ms); transition: box-shadow .7s var(--ease); --t: .75s; }
.pc-link { position: absolute; inset: 0; z-index: 4; border-radius: 24px; }
.pc-link:focus-visible, .pc[tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pc-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t) var(--ease); }
.pc-hover { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #FAFBF9; border-radius: 24px; opacity: 0; transition: opacity var(--t) var(--ease); }
.pc-hover > * { position: absolute; left: 4.938cqw; }
.pc-tags { top: 4.938cqw; display: flex; gap: 1.235cqw; }
.pc-tags span { display: inline-flex; align-items: center; height: 3.704cqw; padding: 0 1.235cqw; border: 1px solid #1C2A20; border-radius: .926cqw; font: 400 max(8px, 1.852cqw) / 1 var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.pc-logo { top: 12.346cqw; height: auto; }
.pc-orgname { top: 12.346cqw; font-weight: 600; font-size: 3.704cqw; line-height: 1.2; letter-spacing: -.01em; color: #121212; }
.pc-role { top: 17.901cqw; display: flex; align-items: center; font: 400 max(8px, 1.852cqw) / 1.3 var(--mono); letter-spacing: .02em; }
.pc-role.low { top: 17.438cqw; }
.pc-role i { width: 2px; height: 2px; border-radius: 50%; background: var(--dot, #0053E2); margin: 0 1.4cqw; }
.pc-out { top: 31.481cqw; margin: 0; font-weight: 600; font-size: 14.198cqw; line-height: .92; letter-spacing: -.045em; white-space: nowrap; }
.pc-line { top: 48.302cqw; width: 67.901cqw; margin: 0; font-size: max(12px, 2.623cqw); line-height: 1.47; }
.pc-inlabel { top: 67.747cqw; font: 400 max(8px, 1.852cqw) / 1.3 var(--mono); color: #000; }
.pc-tabs { top: 72.685cqw; width: 90.123cqw; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.235cqw; }
.pc-tabs > a, .pc-tabs > span { display: block; min-height: 6.79cqw; padding-top: 1.852cqw; position: relative; color: #1C2A20; text-decoration: none; font: 400 max(8px, 1.852cqw) / 1.3 var(--mono); }
.pc-tabs > *::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(var(--accent-c), var(--accent-c)) left / 0% 100% no-repeat, #D7DED6; transition: background-size .4s var(--ease); }
.pc-tabs > a:hover::before, .pc-tabs > a:focus-visible::before { background-size: 100% 100%; }
.pc-tabs > a:focus-visible { outline: none; }
.pc-rule { top: 83.179cqw; width: 90.123cqw; height: 1px; background: #D7DED6; }
.pc-status { top: 93.827cqw; display: flex; align-items: center; gap: 1.235cqw; font: 400 max(8px, 1.852cqw) / 1.3 var(--mono); }
.pc-status svg { width: 2.16cqw; height: 2.16cqw; }
.pc-pill { left: auto !important; right: 4.938cqw; top: 89.506cqw; width: 28.086cqw; height: 6.79cqw; display: flex; align-items: center; justify-content: center; gap: 1.543cqw; border: 1px solid #1C2A20; border-radius: 999px; color: #1C2A20; text-decoration: none; font-weight: 500; font-size: max(11px, 2.315cqw); white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
/* Fun 3: on the button, the + turns into an arrow */
.pc-pill-ico { position: relative; width: 1.852cqw; height: 1.852cqw; }
.pc-pill-ico svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .35s var(--ease), opacity .25s ease; }
.pc-pill-ico .arrow { opacity: 0; transform: translateX(-60%); }
.pc-pill:hover .pc-pill-ico .plus, .pc-pill:focus-visible .pc-pill-ico .plus { opacity: 0; transform: rotate(90deg) scale(.6); }
.pc-pill:hover .pc-pill-ico .arrow, .pc-pill:focus-visible .pc-pill-ico .arrow { opacity: 1; transform: none; transition-delay: .08s; }
.pc-line { overflow: hidden; padding-bottom: .2em; }
.pc-line > span { display: block; transform: translateY(110%); transition: transform .7s var(--ease); }
/* Eyebrow tags fill when hovered */
.pc-tags span { transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s; }
.pc-tags span:hover { background: #1C2A20; color: #FAFBF9; opacity: 1; cursor: pointer; }
/* Lock: a tiny shake now and then while the card is hovered */
.pc-status svg { transform-origin: 50% 35%; }
.pc-status svg.shake { animation: lock-shake .5s ease-in-out; }
@keyframes lock-shake { 0%, 100% { transform: none; } 15% { transform: translateX(-.5px) rotate(-7deg); } 30% { transform: translateX(.5px) rotate(6deg); } 45% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } 75% { transform: rotate(-1.5deg); } }
/* Creative Kit back: dot grid (2px dots on a 34px pitch, from Figma) */
.pc-dots { background-color: #FAFBF9; background-image: radial-gradient(circle, #D9D9D9 .155cqw, transparent .2cqw); background-size: 5.247cqw 5.247cqw; background-position: .154cqw -1.852cqw; }
/* Creative Kit: the card tilts toward the cursor */
.pc-tilt { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .7s var(--ease); will-change: transform; }
.pc-tilt.tilting { transition: transform .12s linear, box-shadow .7s var(--ease); }
.pc-out { overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.pc-out > span { display: inline-block; transform: translateY(105%); transition: transform .7s var(--ease); }
.pc-tabs > :nth-child(2) { --i: 1; } .pc-tabs > :nth-child(3) { --i: 2; } .pc-tabs > :nth-child(4) { --i: 3; }
@keyframes tab-sweep { 0% { background-size: 0% 100%; background-position: left center; } 50% { background-size: 100% 100%; background-position: left center; } 51% { background-size: 100% 100%; background-position: right center; } 100% { background-size: 0% 100%; background-position: right center; } }
.pc-pill:hover { background: #1C2A20; color: #FAFBF9; }
.pc-pill:active { background: #000; color: #FAFBF9; transition-duration: .05s; }

/* The icon layer sits above both sides and animates between them */
.pc-ico { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.pc-ico * { position: absolute; transition: transform var(--t) var(--ease), background-color var(--t) var(--ease), opacity var(--t) var(--ease), border-color var(--t) var(--ease); }
/* Creative Kit: the toggle switches on */
.ico-track { left: 79.630cqw; top: 12.963cqw; width: 15.278cqw; height: 6.944cqw; border-radius: 999px; background: #969795; }
.ico-knob { left: 80.401cqw; top: 13.735cqw; width: 5.401cqw; height: 5.401cqw; border-radius: 50%; background: #F3F5F2; box-shadow: 0 1px 2px rgba(0,0,0,.1), 0 4px 4px rgba(0,0,0,.09), 0 8px 5px rgba(0,0,0,.05); }
/* In-store signage: one sign becomes a row of signs */
.ico-sign { top: 12.346cqw; height: 8.025cqw; border-radius: .617cqw; }
.ico-sign.c { left: 83.951cqw; width: 11.111cqw; background: #A9DDF7; z-index: 1; }
.ico-sign.l { left: 71.605cqw; width: 4.938cqw; background: #A9DDF7; transform-origin: right center; transform: translateX(6.173cqw) scaleX(0); opacity: 0; }
.ico-sign.r { left: 90.123cqw; width: 4.938cqw; background: #A9DDF7; transform-origin: left center; transform: translateX(-1.235cqw) scaleX(0); opacity: 0; }
/* @Work: two apps merge into one */
.ico-app { top: 12.346cqw; width: 6.173cqw; height: 8.025cqw; border-radius: .617cqw; }
.ico-app.a { left: 81.944cqw; background: #152478; }
.ico-app.b { left: 88.889cqw; background: #2438A5; }
/* Oakland A's: the ball blinks across the three slots, left to right */
.ico-ring { top: 12.346cqw; width: 8.025cqw; height: 8.025cqw; border-radius: 50%; border: 1px solid #fff; }
.ico-ring.r2 { left: 78.009cqw; }
.ico-ring.r3 { left: 87.037cqw; }
.ico-ball { left: 68.981cqw; top: 12.346cqw; width: 8.025cqw; height: 8.025cqw; transition: transform .6s cubic-bezier(.65, 0, .35, 1) !important; }
.ico-ball svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes as-blink { 0%, 100% { opacity: 1; } 30%, 70% { opacity: .55; } 50% { opacity: 1; } }

/* Hover and keyboard focus show the "inside" side (devices with a real pointer only; phones keep the art) */
@media (hover: hover) and (pointer: fine) {
  .pc:hover, .pc:focus-within { box-shadow: 0 22px 50px rgba(28,42,32,.10); }
  .pc:hover .pc-hover, .pc:focus-within .pc-hover { opacity: 1; }
  .pc:hover .pc-tabs > a, .pc:hover .pc-pill { pointer-events: auto; }
  .pc:hover .pc-static, .pc:focus-within .pc-static { opacity: 0; }
  /* Fun 1: the What's Inside lines sweep across one after another, then settle */
  .pc:hover .pc-tabs > *::before { animation: tab-sweep .9s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * .1s); }
  .pc:hover .pc-tabs > a:hover::before { animation: none; background-size: 100% 100%; }
  /* Fun 2: the headline slides up from behind a mask, a beat after the fade */
  .pc:hover .pc-out > span, .pc:focus-within .pc-out > span { transform: none; transition-delay: .12s; }
  .pc:hover .pc-line > span, .pc:focus-within .pc-line > span { transform: none; transition-delay: .26s; }
  .pc:hover .pc-tags span, .pc:hover .pc-status:has(svg) { pointer-events: auto; cursor: pointer; }
  .pc:hover .ico-track, .pc:focus-within .ico-track { background: #33BBFF; }
  .pc:hover .ico-knob, .pc:focus-within .ico-knob { transform: translateX(8.333cqw); }
  .pc:hover .ico-sign.c, .pc:focus-within .ico-sign.c { transform: translateX(-6.173cqw); background: #0053E2; }
  .pc:hover .ico-sign.l, .pc:focus-within .ico-sign.l, .pc:hover .ico-sign.r, .pc:focus-within .ico-sign.r { transform: none; opacity: 1; transition-delay: .12s; }
  .pc:hover .ico-app.a, .pc:focus-within .ico-app.a { transform: translateX(6.944cqw); opacity: 0; }
  .pc:hover .ico-app.b, .pc:focus-within .ico-app.b { background: #0053E2; }
  .pc:hover .ico-ball, .pc:focus-within .ico-ball { transform: translateX(18.056cqw); animation: as-blink .6s ease-in-out; }
  .pc:hover .ico-ring, .pc:focus-within .ico-ring { opacity: 0; transition-delay: .3s; }
}
.cf-status-spec { margin-bottom: 20px; animation: cf-fade .6s ease 1.2s both; }
.cf-ctas { position: relative; }
.cf-ctas .spec-margin { top: 50%; transform: translateY(-50%); left: calc(-1 * clamp(16px, 4.2vw, 60px)); }
.cf-nda { display: flex; align-items: center; gap: 8px; margin-top: 24px !important; color: var(--muted); }
.cf-gap-v { left: 50%; top: calc((50% - 12px) * .46); margin-left: -12px; }
.cf-gap-h { left: 23.9%; top: calc(50% - 12px); }
.spec-margin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--spec); font-family: var(--mono); font-size: 9px; pointer-events: none; width: 60px; }
.spec-margin::after { content: ""; width: 100%; height: 7px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.spec-margin.l { left: -60px; }
.spec-margin.r { right: -60px; }
@media (max-width: 1429px) { .spec-margin { display: none; } }


/* ---------- Archive ---------- */
.cf-arch { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.cf-arch-l { grid-column: 1 / span 3; }
.cf-count { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.cf-count > b { font-weight: 600; font-size: clamp(72px, 7vw, 96px); line-height: .9; letter-spacing: -.06em; }
.cf-count > b span { color: var(--accent); }
.cf-arch-l p { margin-top: 12px !important; color: var(--muted); font-size: 16px; }
.cf-arch ul { grid-column: 4 / span 9; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.cf-arch li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 19px; transition: padding .3s var(--ease); }
.cf-arch li:hover { padding-left: 10px; }
.cf-arch li .m { color: var(--muted); text-align: right; }

/* ---------- Path ---------- */
.cf-path-wrap { position: relative; }
.cf-path { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.cf-path li { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.cf-path .org { grid-column: 1 / span 3; font-weight: 600; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.cf-path .role { grid-column: 4 / span 3; color: var(--muted); }
.cf-path .what { grid-column: 7 / span 4; font-size: 16px; line-height: 1.5; }
.cf-path .when { grid-column: 11 / span 2; justify-self: end; color: var(--muted); }
.cf-path li.now .org::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--status); box-shadow: 0 0 0 4px var(--status-ring); }
.cf-rule-spec { position: absolute; right: 0; top: -22px; }

/* ---------- Contact ---------- */
.cf-contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.cf-contact-l { grid-column: 1 / span 6; }
.cf-contact-l > p { margin-top: 24px !important; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 660px; }
.cf-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.cf-mail .spec-lead { position: absolute; margin-top: 52px; margin-left: 14px; }
.cf-nb { grid-column: 7 / span 6; border-top: 1px solid var(--text); }
.cf-nb div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.cf-nb .m { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cf-nb a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--border); }
.cf-nb a:hover { text-decoration-color: var(--accent); }

/* ---------- Colophon ---------- */
.cf-colo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 22px 0 96px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; line-height: 1.5; }
.cf-colo .m { display: block; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; color: var(--text); }

/* Footer: Inter. The CTA row is hidden on pages that already end in a contact ask */
body.cf .site-footer { font-family: Inter, Arial, sans-serif; }
body.cf.no-footer-cta .footer-row { display: none; }
body.cf .footer-row h2 { font-family: inherit; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
body.cf .footer-row .cta { font-family: inherit; }
.cf-nl[aria-current="page"]::after { transform: scaleX(1); }
/* Copy-email button: the address, with a small "Copy" tag that turns into "Copied" */
.cf-copy { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: 500 16px Inter, Arial, sans-serif; text-align: left; }
.cf-copy .addr { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: border-color .25s; }
.cf-copy .tip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); transition: background-color .25s, color .25s, border-color .25s; }
.cf-copy .tip svg { width: 13px; height: 13px; }
.cf-copy:hover .addr, .cf-copy:focus-visible .addr { border-color: var(--accent); }
.cf-copy:hover .tip, .cf-copy:focus-visible .tip { border-color: var(--text); color: var(--text); }
.cf-copy.done .tip { background: var(--text); border-color: var(--text); color: var(--bg); }
.cf-copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ip-rows .cf-copy { min-height: 0; font-size: 16px; font-weight: 400; }
.cf-menu a[aria-current="page"] { color: var(--accent-text); }

/* ==========================================================================
   Inner pages (About, Contact, password page) in the Case-file style
   ========================================================================== */
.ip-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.ip-hero .cf-h1 { max-width: 900px; }
.ip-hero .cf-h1 .spec { margin-left: 20px; position: relative; top: -.2em; animation: cf-fade .6s ease 1.4s both; }
.ip-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.ip-l { grid-column: 1 / span 5; }
.ip-r { grid-column: 7 / span 6; }
.ip-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--text); }
.ip-body { display: grid; gap: 16px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

/* About: portrait */
.ip-portrait { margin: 0; position: relative; animation: cf-up 1.1s var(--ease) .4s both; }
.ip-portrait .ip-frame { position: relative; border: 1px solid var(--border); background: var(--panel); border-radius: 22px; padding: 18px; }
.ip-portrait .top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 14px; }
.ip-portrait .img { border-radius: 14px; overflow: hidden; background: var(--surface); }
.ip-portrait img { width: 100%; height: auto; }
.ip-portrait figcaption { margin-top: 12px; font-family: var(--hand); font-weight: 600; font-size: 24px; color: var(--accent-text); }
.ip-portrait .spec-dim { top: -28px; }

/* Lists in the archive / info-row style */
.ip-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.ip-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 19px; transition: padding .3s var(--ease); }
.ip-list li:hover { padding-left: 10px; }
.ip-list li .m { color: var(--muted); }
.ip-rows { border-top: 1px solid var(--text); }
.ip-rows > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.ip-rows .m { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ip-rows a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--border); }
.ip-rows a:hover { text-decoration-color: var(--accent); }
.ip-rows .ph { color: var(--muted); }

/* Panel (same as the hero panel) holding a form */
.ip-panel { position: relative; border: 1px solid var(--border); background: var(--panel); border-radius: 22px; padding: 24px; animation: cf-up 1.1s var(--ease) .4s both; transition: background-color .4s ease, border-color .4s ease; }
.ip-panel-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 20px; }
.ip-form { display: grid; gap: 18px; }
.ip-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ip-field { display: grid; gap: 8px; }
.ip-form .ip-field label, .ip-form legend { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; }
.ip-field .optional { text-transform: none; letter-spacing: 0; }
.ip-form .ip-field input, .ip-form .ip-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: 400 16px/1.4 Inter, Arial, sans-serif; transition: border-color .2s, box-shadow .2s; }
.ip-form .ip-field textarea { resize: vertical; min-height: 140px; }
.ip-form .ip-field input:hover, .ip-form .ip-field textarea:hover { border-color: var(--muted); }
.ip-form .ip-field input:focus, .ip-form .ip-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.ip-form .ip-field [aria-invalid="true"] { border-color: var(--error); }
.ip-form .field-err { font-size: 14px; color: var(--error); }
.ip-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.ip-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-topics label { position: relative; cursor: pointer; }
.ip-topics input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ip-topics span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px; transition: background-color .2s, color .2s, border-color .2s; }
.ip-topics label:hover span { border-color: var(--text); }
.ip-topics input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.ip-topics input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.ip-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ip-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.ip-send button { border: 0; cursor: pointer; font-family: inherit; }
.ip-send button:disabled { opacity: .6; cursor: progress; }
.ip-send .note { font-size: 14px; color: var(--muted); }
.ip-panel .form-status { color: var(--error); font-size: 15px; }
.ip-panel .sent { display: grid; gap: 12px; padding: 24px 0; outline: none; }
.ip-panel .sent .hand { font-family: var(--hand); font-weight: 600; font-size: 34px; color: var(--accent-text); }
.ip-panel .sent p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.ip-panel .link-btn { justify-self: start; border: 0; background: none; padding: 0 0 2px; border-bottom: 1px solid currentColor; color: var(--text); font: 500 16px Inter, Arial, sans-serif; cursor: pointer; }
.ip-lock { width: 16px; height: 16px; transform-origin: 50% 35%; }
.ip-panel:hover .ip-lock { animation: lock-shake .5s ease-in-out; }

@media (max-width: 760px) {
  .ip-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ip-l, .ip-r { grid-column: 1; }
  .ip-form .two { grid-template-columns: 1fr; }
  .ip-rows > div { grid-template-columns: 96px minmax(0, 1fr); }
  .ip-rows .cf-copy { flex-wrap: wrap; row-gap: 6px; text-align: left; }
  .ip-panel { padding: 18px; }
}

/* ---------- Scroll reveal (progressive: only hides things once JS is running) ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Motion ---------- */
@keyframes cf-rise { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
@keyframes cf-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cf-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cf-pulse { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
@keyframes cf-view { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cf *, .cf *::before, .cf *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1180px) {
  .spec, .spec-dim, .spec-gap, .spec-lead { display: none !important; }
}
@media (max-width: 760px) {
  .cf-nav { display: none; }
  .cf-header .menu-btn { display: inline-flex; }
  .cf-cols .cf-wrap { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .cf-cols span:nth-child(n+5) { display: none; }
  .cf-hero, .cf-sh, .cf-arch, .cf-contact { grid-template-columns: 1fr; gap: 28px; }
  .cf-hero { gap: 40px; }
  .cf-hero-l, .cf-hero-r, .cf-sh > div, .cf-sh > p, .cf-arch-l, .cf-arch ul, .cf-contact-l, .cf-nb { grid-column: 1; }
  .cf-h1 { font-size: min(11vw, 52px); }
  .cf-panel { padding: 18px; }
  .cf-stage { height: 260px; }
  .cf-cards { grid-template-columns: 1fr; }
  .cf-arch li { font-size: 17px; }
  .cf-path li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cf-path .org { grid-column: 1; }
  .cf-path .when { grid-column: 2; grid-row: 1; }
  .cf-path .role, .cf-path .what { grid-column: 1 / -1; }
  .cf-nb div { grid-template-columns: 96px 1fr; }
  .cf-colo { grid-template-columns: 1fr 1fr; padding-bottom: 64px; }
}

/* Intro: text is readable on arrival; a short rise only (decoration keeps its slower draw) */
@keyframes cf-rise-v { from { opacity: .4; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes cf-up-v { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cf-label { animation: cf-up-v .5s var(--ease) both; }
.cf-lt { animation: cf-rise-v .6s var(--ease) both; }
.cf-ln:nth-child(2) .cf-lt { animation-delay: .06s; }
.cf-ln:nth-child(3) .cf-lt { animation-delay: .12s; }
.cf-lede { animation: cf-up-v .6s var(--ease) .15s both; }
.cf-ctas { animation: cf-up-v .6s var(--ease) .2s both; }

/* Phones and tablets (no hover): keep the card front, but show the top-right icon in its hover state */
@media not ((hover: hover) and (pointer: fine)) {
  .ico-track { background: #33BBFF; }
  .ico-knob { transform: translateX(8.333cqw); }
  .ico-sign.c { transform: translateX(-6.173cqw); background: #0053E2; }
  .ico-sign.l, .ico-sign.r { transform: none; opacity: 1; }
  .ico-app.a { transform: translateX(6.944cqw); opacity: 0; }
  .ico-app.b { background: #0053E2; }
  .ico-ball { transform: translateX(18.056cqw); }
  .ico-ring { opacity: 0; }
}

/* Archive: rows that open a project page (whole row is the link) */
.cf-arch li { position: relative; }
.cf-arch li a { color: inherit; text-decoration: none; }
.cf-arch li a::after { content: ""; position: absolute; inset: 0; }
.cf-arch li:has(a) .m { white-space: nowrap; }
.cf-arch li:has(a) .m::after { content: " →"; color: var(--accent); }
.cf-arch li a:focus-visible { outline: none; }
.cf-arch li:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }

/* More work: browsable project cards (replaces the old Archive list) */
.mw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mw-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.mw-img { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: #E9E9E6; }
.mw-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mw-body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.mw-tag { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mw-body b { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.mw-go { margin-top: 6px; color: var(--accent); font-weight: 500; font-size: 15px; }
.mw-go span { display: inline-block; transition: transform .3s var(--ease); }
a.mw-card:hover, a.mw-card:focus-visible { border-color: var(--text); }
a.mw-card:hover .mw-img img, a.mw-card:focus-visible .mw-img img { transform: scale(1.03); }
a.mw-card:hover .mw-go span, a.mw-card:focus-visible .mw-go span { transform: translateX(4px); }
a.mw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.mw-card.is-soon { background: transparent; border-style: dashed; }
.mw-card.is-soon { padding: 20px; gap: 14px; }
.mw-soon { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mw-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--border); }
.mw-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mw-list li:last-child { border-bottom: 0; }
.mw-list b { font-weight: 500; font-size: 17px; letter-spacing: -.01em; color: var(--muted); }
.mw-list .m { color: var(--muted); opacity: .8; }
@media (max-width: 960px) { .mw { grid-template-columns: 1fr 1fr; gap: 16px; } .mw > li:has(.is-soon) { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .mw { grid-template-columns: 1fr; }
}

/* Hero without the right-hand panel (panel removed 2026-11-30; markup saved in Desktop\Claude\removed\home-hero-panel.html) */
.cf-hero { padding-bottom: clamp(48px, 8vw, 120px); }
.cf-hero-l { grid-column: 1 / span 10; }
.cf-hero .cf-h1 { font-size: clamp(38px, 8.2vw, 120px); }
.cf-hero .cf-lede { max-width: 560px; }

/* Hero, centered variant (tried 2026-11-30, parked: Garrett wants to revisit). Turn on by adding "is-center" to the hero section in index.html */
.cf-hero.is-center .cf-hero-l { grid-column: 1 / -1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cf-hero.is-center .cf-lede { margin-left: auto; margin-right: auto; max-width: 680px; text-wrap: balance; }
.cf-hero.is-center .cf-ctas { justify-content: center; }
.cf-hero.is-center .cf-ctas .spec-margin, .cf-hero.is-center .cf-h1 .spec, .cf-hero.is-center .cf-status-spec { display: none; }
