/* grantmcnulty.com: Imagine personal edition. Tokens from the Design handoff, 20 Oct 2026. */
@font-face{font-family:'Schibsted Grotesk';src:url(fonts/schibsted-grotesk-latin-400-normal.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Schibsted Grotesk';src:url(fonts/schibsted-grotesk-latin-500-normal.woff2) format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:'Schibsted Grotesk';src:url(fonts/schibsted-grotesk-latin-600-normal.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Schibsted Grotesk';src:url(fonts/schibsted-grotesk-latin-700-normal.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'DM Mono';src:url(fonts/dm-mono-latin-500-normal.woff2) format('woff2');font-weight:500;font-display:swap}
:root{--ink:#0c0a14;--ink-raised:#17131f;--ink-band:#15111d;--ink-bezel:#1d1828;--ink-hover:#241e30;--paper:#f5f2ea;--white:#fff;--lav:#f2efff;--md:#b7b0c8;--md2:#8f88a3;--ml:#5d5869;--rule-l:rgba(12,10,20,.12);--rule-d:rgba(242,239,255,.14);--ease:cubic-bezier(.2,.8,.2,1)}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:72px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Schibsted Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:#7c4dff;text-decoration:none}a:hover{color:var(--ink)}
img{max-width:100%}
h1,h2,h3,p{margin:0}
.skip{position:absolute;left:-9999px;top:8px;z-index:9;background:var(--lav);color:var(--ink);padding:10px 16px;border-radius:999px}.skip:focus{left:16px}
:focus-visible{outline:2px solid #ff5ca8;outline-offset:3px;border-radius:8px}
.wrap{max-width:1200px;margin:0 auto;padding-left:32px;padding-right:32px}
.dark{background:var(--ink);color:var(--lav)}.paper{background:var(--paper)}.white{background:var(--white)}
.mono{font-family:'DM Mono',ui-monospace,monospace;font-weight:500;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--ml)}
.mono.sm{font-size:12px}.mono.xs{font-size:10.5px}
.dark .mono{color:var(--md)}
.stack12{display:flex;flex-direction:column;gap:12px}
h2{font-weight:700;font-size:44px;letter-spacing:-.03em;line-height:1.05;text-wrap:balance}
.lede{font-size:20px;line-height:1.55;color:var(--md);max-width:540px;text-wrap:pretty}
.dot{width:12px;height:12px;border-radius:50%;display:inline-block;flex:none}
.trio{display:inline-flex;align-items:flex-end}.trio>span{border-radius:50%;display:block}
.btns{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:14px 24px;border-radius:999px;font-weight:600;font-size:16px;transition:background .2s,color .2s}
.btn.lav{background:var(--lav);color:var(--ink)}.btn.lav:hover{background:#fff;color:var(--ink)}
.btn.out{box-shadow:inset 0 0 0 1.5px var(--lav);color:var(--lav)}.btn.out:hover{background:var(--ink-hover);color:var(--lav)}
.btn.ink{background:var(--ink);color:var(--paper)}.btn.ink:hover{background:#241e30;color:var(--paper)}
.btn.ghost{box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}.btn.ghost:hover{background:var(--paper);color:var(--ink)}
.btn.sm{padding:10px 18px;font-size:14px}

/* Wordmark */
.wm{display:inline-flex;align-items:flex-end;color:var(--lav)}
.wm-n{font-weight:700;letter-spacing:-.04em;line-height:1}
.wm-box{position:relative;display:block}
.wm-b{position:absolute;border-radius:50%}
.wm-b.pop{animation:floatpop 2.4s ease-out infinite}
@keyframes floatpop{0%{transform:translate(0,2px) scale(.3);opacity:0}15%{transform:translate(0,0) scale(1);opacity:1}70%{transform:translate(1px,-3px) scale(1);opacity:1}80%{transform:translate(1.5px,-4px) scale(1.35);opacity:0}100%{opacity:0}}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}

/* Header */
.hdr{position:sticky;top:0;z-index:5;background:var(--ink);color:var(--lav)}
.hdr-in{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.wm-link{display:flex}
.nav{display:flex;flex-wrap:nowrap;gap:4px}
.hdr-r{display:flex;align-items:center;gap:16px}.hdr-cta{display:flex;gap:8px}.hdr-cta .btn{white-space:nowrap}
.btn.icon{width:38px;height:38px;padding:0;justify-content:center;flex:none}.btn.icon svg{display:block}
@media (max-width:480px){.hdr-mail{display:none}}
@media (max-width:430px){.hdr-gh{display:none}}
@media (max-width:380px){.hdr-li{display:none}}
@media (max-width:340px){.hdr-in{gap:12px}.hdr-cta{gap:6px}}
/* Header actions: Book a call plus CV, email, LinkedIn and GitHub icons; on the narrowest phones email, GitHub and LinkedIn drop out (they stay in the hero and footer); CV always stays. */
.nav a{padding:8px 14px;border-radius:999px;color:var(--lav);font-size:15px;font-weight:500}
.nav a:hover{background:var(--ink-hover);color:var(--lav)}

/* Hero */
.hero{position:relative;overflow:hidden}
.hero-in{padding-top:72px;padding-bottom:96px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:56px;align-items:center}
.hero-txt{display:flex;flex-direction:column;gap:24px}
.hero h1{font-weight:700;font-size:clamp(44px,6vw,80px);letter-spacing:-.04em;line-height:1;text-wrap:balance}
.hero .btns{margin-top:8px}
.portrait{position:relative;justify-self:center;width:min(100%,440px);container-type:inline-size}
.portrait .ph{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:50%;position:relative}
.pb{position:absolute;border-radius:50%;z-index:1}
/* Trio sized and placed as fractions of the photo, so it scales with it: centres on one line rising at 33deg,
   equal gaps, purple centred on the photo edge. Solved for the tightest layouts (phones; 960-1280px wide) so nothing clips. */
.p1{width:7%;aspect-ratio:1;background:#8b5cf6;right:21.5%;top:3.2%}
.p2{width:10.73%;aspect-ratio:1;background:#ff5ca8;right:10.63%;top:-4.51%}
.p3{width:15.87%;aspect-ratio:1;background:#ffb020;right:-4.65%;top:-15.34%}
/* Same motion as the wordmark (floatpop, 2.4s, 0/.35/.7s). Drift is in cqw (photo width) so it scales with the trio,
   and is identical for all three bubbles so the 33deg line holds. Reduced motion: the global rule stops it, bubbles stay put. */
@keyframes floatpopL{0%{transform:translate(0,2.27cqw) scale(.3);opacity:0}15%{transform:translate(0,0) scale(1);opacity:1}70%{transform:translate(1.14cqw,-3.18cqw) scale(1);opacity:1}80%{transform:translate(1.59cqw,-4.32cqw) scale(1.35);opacity:0}100%{opacity:0}}
.pb{animation:floatpopL 2.4s ease-out infinite}.p2{animation-delay:.35s}.p3{animation-delay:.7s}

/* About */
.about-in{padding-top:96px;padding-bottom:96px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:48px}
.about-p{display:flex;flex-direction:column;gap:20px;font-size:18px;line-height:1.6}.about-p p{text-wrap:pretty}
.tiles{padding-bottom:96px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
.tile{background:var(--white);border-radius:22px;padding:24px 26px;display:flex;flex-direction:column;gap:10px}
.tile-h{font-weight:700;font-size:clamp(22px,2.3vw,30px);letter-spacing:-.035em;line-height:1;white-space:nowrap}
.tile-c{font-size:15px;line-height:1.4;color:var(--ml)}

/* Personal OS */
.os{overflow:hidden}
.os-intro{padding-top:104px;padding-bottom:56px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:32px}
.os-intro-t{display:flex;flex-direction:column;gap:14px;max-width:640px}
.os-intro .lede{max-width:none}
.lbl{display:flex;align-items:center;gap:10px}
.os-h2{font-size:clamp(44px,6vw,72px);letter-spacing:-.04em;line-height:1}
.os-band.alt{background:var(--ink-band)}
.os-wrap{padding-top:88px;padding-bottom:96px}
.os-ex{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:56px}
.claude-mark{position:absolute;top:-56px;right:0;z-index:3;width:40px;height:40px;display:block}
.os-text{flex:1 1 320px;display:flex;flex-direction:column;gap:22px;min-width:0}
.os-meta{display:flex;flex-direction:column;gap:6px}
.os-sub{font-size:15px;color:var(--md2)}
.os-copy{display:grid}
.os-copy-i{grid-area:1/1;display:flex;flex-direction:column;gap:14px;transition:opacity .6s var(--ease),transform .8s var(--ease)}
.os-copy-i h3{font-weight:700;font-size:clamp(40px,4.6vw,60px);letter-spacing:-.04em;line-height:1}
.os-copy-i p{font-size:18px;line-height:1.55;color:var(--md);text-wrap:pretty}
.os-copy-i.on{opacity:1;transform:translateY(0)}
.os-copy-i.past{opacity:0;transform:translateY(-16px)}
.os-copy-i.next{opacity:0;transform:translateY(16px)}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{position:relative;overflow:hidden;display:flex;align-items:center;gap:8px;padding:11px 18px;border:0;border-radius:999px;cursor:pointer;font-family:'DM Mono',ui-monospace,monospace;font-weight:500;font-size:13px;letter-spacing:.08em;text-transform:uppercase;background:var(--ink-bezel);color:var(--md);transition:background .3s,color .3s}
.pill .dot{width:8px;height:8px}
.pill.on{background:var(--lav);color:var(--ink)}
.pill .bar{position:absolute;left:0;bottom:0;height:3px;width:0}
.pill.on.run .bar{width:100%;transition:width var(--dur,6000ms) linear}
.stage{flex:1.7 1 480px;min-width:0;position:relative;aspect-ratio:10/7.2}
.bob{position:absolute;aspect-ratio:1;border-radius:50%}
.b1{left:-4%;bottom:6%;width:9%;background:#8b5cf6;animation:bob 5s ease-in-out infinite}
.b2{left:4%;bottom:15%;width:13%;background:#ff5ca8;animation:bob 5s ease-in-out .5s infinite}
.b3{right:20%;top:-7%;width:18%;background:#ffb020;animation:bob 6s ease-in-out 1s infinite}
.tablet{position:absolute;left:3%;top:0;width:84%;background:var(--ink-bezel);border-radius:30px;padding:14px;box-shadow:0 50px 100px rgba(0,0,0,.55),inset 0 0 0 1px rgba(242,239,255,.08)}
.tablet .scr{position:relative;aspect-ratio:2732/2048;border-radius:16px;overflow:hidden;background:var(--paper)}
.phone{position:absolute;right:0;bottom:0;width:25%;background:var(--ink-bezel);border-radius:34px;padding:8px;box-shadow:0 40px 80px rgba(0,0,0,.6),inset 0 0 0 1px rgba(242,239,255,.1);transform:translateY(0) rotate(1.5deg);transition:transform 1.2s var(--ease)}
.phone.tilt{transform:translateY(-10px) rotate(-1.5deg)}
.phone .scr{position:relative;aspect-ratio:1290/2796;border-radius:27px;overflow:hidden;background:var(--paper)}
.shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .6s var(--ease),transform .8s var(--ease)}
.phone .shot{transition-delay:.15s}
.shot.on{opacity:1;transform:translateY(0) scale(1)}
.shot.past{opacity:0;transform:translateY(-4%) scale(.96)}
.shot.next{opacity:0;transform:translateY(6%) scale(1.02)}
@media (max-width:640px){.tablet{border-radius:18px;padding:7px}.tablet .scr{border-radius:11px}.phone{border-radius:20px;padding:5px}.phone .scr{border-radius:16px}}

/* Experience */
.exp-in{padding-top:96px;padding-bottom:96px;display:flex;flex-direction:column;gap:40px}
.xlist{display:flex;flex-direction:column}
.xrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px 32px;padding:28px 0;border-top:1px solid var(--rule-l)}
.xrow.last{border-bottom:1px solid var(--rule-l)}
.x-l{display:flex;flex-direction:column;gap:4px}
.x-co{font-weight:700;font-size:22px}.x-d{font-size:14px;color:var(--ml)}
.x-r{display:flex;flex-direction:column;gap:6px;grid-column:span 2}
.x-role{font-weight:600;font-size:17px}.x-sum{font-size:16px;line-height:1.55;color:var(--ml)}
@media (max-width:620px){.x-r{grid-column:auto}}

/* Ventures */
.vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.vcard{background:var(--ink-raised);border-radius:22px;padding:32px;display:flex;flex-direction:column;gap:14px}
.v-n{font-weight:700;font-size:26px;letter-spacing:-.02em}.v-b{font-size:16px;line-height:1.55;color:var(--md)}

/* Footer */
.ftr{color:var(--md)}
.ftr-in{padding-top:56px;padding-bottom:56px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}
.ftr-l{display:flex;flex-wrap:wrap;align-items:center;gap:0 24px;font-size:15px}.ftr-l a{color:var(--lav)}.ftr-l a:hover{color:#ffb020}

@media (max-width:560px){.wrap{padding-left:20px;padding-right:20px}h2{font-size:36px}.hero-in{padding-top:48px;padding-bottom:72px}.os-wrap{padding-top:72px;padding-bottom:72px}.os-ex{gap:64px}.nav a{padding:8px 10px;font-size:14px}.tile-h{white-space:normal}}
@media (max-width:820px){.nav{display:none}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* Booking dialog */
[hidden]{display:none!important}
.book{width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;border:0;border-radius:22px;padding:36px;background:var(--ink-raised);color:var(--lav);box-shadow:0 40px 100px rgba(0,0,0,.6),inset 0 0 0 1px rgba(242,239,255,.08)}
.book::backdrop{background:rgba(12,10,20,.72);backdrop-filter:blur(4px)}
.book h2{font-size:34px;margin:12px 0 8px}
.book-sub{color:var(--md);font-size:16px;margin-bottom:22px}
.book-x{position:absolute;top:14px;right:14px}.book-x button{width:40px;height:40px;border-radius:50%;border:0;background:var(--ink-hover);color:var(--lav);font-size:24px;line-height:1;cursor:pointer}
.book-day{margin-top:16px}.book-day:first-child{margin-top:0}
.book-day .mono{color:var(--md);margin-bottom:8px}
.book-times{display:flex;flex-wrap:wrap;gap:8px}
.book-time{border:0;border-radius:999px;padding:11px 18px;background:var(--ink-bezel);color:var(--lav);font:600 15px 'Schibsted Grotesk',sans-serif;cursor:pointer;transition:background .2s}
.book-time:hover{background:var(--lav);color:var(--ink)}
.book-msg{color:var(--md);font-size:15px;line-height:1.5}.book-msg a{color:var(--lav);text-decoration:underline}
.book-form{display:flex;flex-direction:column;gap:14px}
.book-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:var(--md)}
.book-form input,.book-form textarea{font:16px 'Schibsted Grotesk',sans-serif;color:var(--lav);background:var(--ink);border:1px solid var(--rule-d);border-radius:12px;padding:12px 14px}
.book-form input:focus,.book-form textarea:focus{outline:2px solid #ff5ca8;outline-offset:1px;border-color:transparent}
.book-chosen{font-weight:700;font-size:18px}
.book-form .btns{margin-top:6px}.book-form .btn{border:0;cursor:pointer;font-family:inherit}
.book-form .btn.out{background:transparent}
.book-done{font-size:18px;line-height:1.55;margin-bottom:20px}
.hp{position:absolute!important;left:-9999px!important}
@media (max-width:560px){.book{padding:28px 22px}.book h2{font-size:28px}}
@media (max-width:560px){.os-meta .mono{font-size:11px;letter-spacing:.06em}.pill{padding:10px 14px;font-size:12px}.book-times .book-time{padding:12px 20px}}
/* Symmetry + touch: three across from tablet up, one column on phones; 40px tap areas */
.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.vgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.tile{padding:22px 20px}.vcard{padding:26px 22px}.v-n{font-size:22px}}
@media (max-width:760px){.tiles,.vgrid{grid-template-columns:1fr}.tile-h{font-size:26px}}
.nav a{min-height:40px;display:inline-flex;align-items:center}
.ftr-l a{padding:10px 0}
.wm-link{min-height:44px;align-items:center}
.tile-h{font-size:clamp(17px,2.15vw,30px)}@media (max-width:760px){.tile-h{font-size:26px}}

/* ---------- Writing ---------- */
.writing{color:var(--ink);min-height:calc(100vh - 72px - 140px)}
.post-wrap{max-width:760px;padding-top:72px;padding-bottom:96px;display:flex;flex-direction:column;gap:32px}
.post-h1{font-weight:700;font-size:clamp(36px,5vw,56px);letter-spacing:-.035em;line-height:1.05;text-wrap:balance}
.post-list{display:flex;flex-direction:column;gap:16px}
.post-card{display:flex;flex-direction:column;gap:10px;background:var(--white);border-radius:22px;padding:28px 30px;color:var(--ink);text-decoration:none;transition:box-shadow .2s}
.post-card:hover{box-shadow:0 0 0 1.5px var(--ink);color:var(--ink)}
.post-card h2{font-size:clamp(24px,3vw,30px);line-height:1.15;letter-spacing:-.025em}
.post-card p{color:var(--ml);font-size:17px;line-height:1.55;margin:0}
.post-more{font-weight:600;color:#7c4dff}
.writing .mono{color:var(--ml)}
.post-back{color:var(--ml);text-decoration:none}.post-back:hover{color:#7c4dff}
.post-head{display:flex;flex-direction:column;gap:14px}
.post-sum{font-size:21px;line-height:1.5;color:var(--ml);margin:0}
.post-body{font-size:19px;line-height:1.7}
.post-body>*+*{margin-top:1.1em}
.post-body h2{font-size:28px;letter-spacing:-.025em;line-height:1.2;margin-top:1.8em}
.post-body h3{font-size:22px;letter-spacing:-.02em;margin-top:1.5em}
.post-body ul,.post-body ol{padding-left:1.3em}.post-body li+li{margin-top:.4em}
.post-body blockquote{margin:1.6em 0;padding:4px 0 4px 22px;border-left:3px solid #ff3d96;font-size:21px;color:var(--ink)}
.post-body a{color:#7c4dff;text-decoration:underline;text-underline-offset:3px}
.post-body code{font-family:'DM Mono',ui-monospace,monospace;font-size:.88em;background:var(--white);padding:2px 6px;border-radius:6px}
.post-cta{background:var(--ink);color:var(--lav);border-radius:22px;padding:32px;display:flex;flex-direction:column;gap:14px;margin-top:24px}
.post-cta .mono{color:var(--md)}.post-cta p{font-size:19px;margin:0}
.draft-bar{background:#ff9a00;color:var(--ink);text-align:center;font:600 14px/1 'Schibsted Grotesk',sans-serif;padding:10px}
@media (max-width:560px){.post-wrap{padding-top:48px;padding-bottom:72px}.post-body{font-size:18px}.post-card{padding:22px 20px}.post-cta{padding:26px 22px}}
.book-form textarea::placeholder,.book-form input::placeholder{color:var(--md2);opacity:1}
