/* The two typefaces are served from this site, so nothing loads from Google. Licenses: fonts/OFL-*.txt */
@font-face{font-family:"Young Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/youngserif-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Karla";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/karla-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --navy:#131a27; --navy-2:#1a2335; --navy-3:#0d1320; --navy-line:#2a3446; --frame:#3d4a63;
  --light:#ffcd57; --light-hi:#ffdb80; --glow:rgba(255,205,87,.5);
  --white:#ffffff; --paper:#f4f5f7; --ink:#151c28; --muted:#586274; --line:#dde1e8; --dim:#a0a9ba;
  --field-line:#6b7894; /* form field edges: 3:1 or better on the navy card */
  --serif:"Young Serif",Georgia,"Times New Roman",serif;
  --sans:"Karla","Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
html:has(.help[open]){overflow:hidden}
body{display:flex;flex-direction:column;min-height:100svh;margin:0;background:var(--white);color:var(--ink);font:400 17px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
main{flex:1}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
a{color:inherit}
:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
.skip{position:absolute;left:-9999px;top:12px;z-index:10;padding:8px 14px;border-radius:6px;background:var(--light);color:var(--navy);font-weight:700}
.skip:focus{left:16px}
.btn{display:inline-block;padding:14px 22px;border:0;border-radius:8px;background:var(--light);color:var(--navy);font:700 1rem/1.2 var(--sans);text-decoration:none;cursor:pointer}
.btn:hover{background:var(--light-hi)}
.btn:disabled{opacity:.6;cursor:progress}
.btn:focus-visible{outline-color:var(--light)}
.link{font-weight:500;text-decoration-color:var(--frame);text-decoration-thickness:2px;text-underline-offset:5px}
.link:hover{text-decoration-color:var(--light)}

/* Dark bands: header, hero, footer */
.dark{background:var(--navy);color:var(--white)}
.top{padding-block:18px}
.top .wrap{display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"brand tag actions";align-items:center;gap:12px 24px}
.brand{grid-area:brand;justify-self:start;display:inline-flex;align-items:center;gap:12px;font:400 1.25rem/1 var(--serif);text-decoration:none}
.tagline{grid-area:tag;margin:0;font:600 .78rem/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--light);white-space:nowrap}
.actions{grid-area:actions;justify-self:end;display:flex;align-items:center;gap:10px}
/* Too narrow for the tagline in the header: it shows above the homepage headline instead */
@media (max-width:1079px){
  .top .wrap{grid-template-columns:1fr auto;grid-template-areas:"brand actions"}
  .tagline{display:none}
}
@media (min-width:1080px){
  .home .intro .eyebrow{display:none}
  .home h1{margin-top:0}
}
/* The logo (5d, light d1): an arched white door with a navy knob, and a 1px light as wide as the door */
/* The logo: the arched door propped open 25°, the lit room behind it and a small wedge of light on the floor */
.brand-door{flex:none;display:block;width:auto;height:24px}
.top .btn{flex:none;padding:10px 16px;font-size:.95rem;white-space:nowrap}
/* Header buttons for the other pages: outlined, beside the gold "Get help" */
.nav{display:flex;gap:10px}
.nav a{padding:9px 14px;border:1px solid var(--frame);border-radius:8px;color:var(--white);font:500 .95rem/1.2 var(--sans);text-decoration:none;white-space:nowrap}
.nav a:hover{border-color:var(--light)}
.nav a[aria-current="page"]{border-color:var(--light);color:var(--light)}
.nav a:focus-visible{outline-color:var(--light)}

/* Hero: the pitch on the left, the door with its light of code on the right */
.hero{padding-top:clamp(36px,6vw,80px)}
/* Page 1 of the homepage is the hero. It stops a little short of the screen, so the dark room of page 2 shows under it.
   The whole page sits on one navy surface, so no hairline can show between the header, the hero and the dark room. */
.home{background:var(--navy)}
.home main{position:relative;display:flex;flex-direction:column;background:var(--navy)}
.home .hero{flex:1;display:flex;align-items:flex-start;padding-block:clamp(52px,10vh,116px) clamp(36px,6vh,68px)}
.home .hero-grid{position:relative;z-index:2;flex:1;align-items:end}
.hero-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(32px,5vw,72px);align-items:end}
.intro{min-width:0}
.eyebrow{margin:0;font:600 .8rem/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--light)}
h1{margin:18px 0 0;font:400 clamp(2.2rem,min(1.2rem + 4vw,9vh),6rem)/1.04 var(--serif);letter-spacing:-.01em;text-wrap:balance}
.lede{max-width:34em;margin:24px 0 32px;font-size:clamp(1.05rem,1rem + .3vw,1.35rem);color:var(--dim)}
.btns{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px}

.door{display:flex;flex-direction:column;align-items:center;min-width:0}
/* Arched top, like the logo: a 999px radius on the top corners clamps to a half circle */
.door-frame{position:relative;width:clamp(130px,min(15vw,20vh),220px);aspect-ratio:8 / 15;background:var(--navy-2);border:5px solid var(--frame);border-bottom:0;border-radius:999px 999px 0 0;cursor:pointer}
.door{position:relative}
.door-frame{container-type:inline-size}
/* The lit room, seen through the doorway when the door swings open (same gradient as the logo) */
.doorway{position:absolute;inset:0;overflow:hidden;border-radius:999px 999px 0 0;perspective:460cqw;perspective-origin:50% 62%;background:linear-gradient(#ffe39a,#ffcd57 62%,#f7b733)}
/* The door itself, hinged on the left; "Knock" swings it 25° into the room */
/* The door is never quite shut: it sways slowly between 15° and 25° */
/* On the homepage, scrolling into page 2 sets --open from 0 to 1 and the door swings a further 58° */
@property --sway{syntax:"<angle>";inherits:false;initial-value:20deg}
.leaf{--sway:20deg;position:absolute;inset:-1px;border-radius:999px 999px 0 0;background:var(--navy-2);transform-origin:0 50%;transform:rotateY(calc(var(--sway) + var(--open,0) * 58deg));backface-visibility:hidden;animation:sway 10s ease-in-out infinite}
@keyframes sway{0%,100%{--sway:15deg}50%{--sway:25deg}}
.leaf::before,.leaf::after{content:"";position:absolute;left:14%;right:14%;border:3px solid var(--frame)}
.leaf::before{top:8%;height:30%;border-radius:999px 999px 0 0}
.leaf::after{top:47%;height:40%}
.shade{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,transparent,rgba(0,0,0,.4));opacity:.8;animation:sway-shade 10s ease-in-out infinite}
@keyframes sway-shade{0%,100%{opacity:.6}50%{opacity:1}}
/* The light on the floor and in the room is one cone: an SVG over the page, drawn by the page script. The hero's own content sits above it. */
.light{position:absolute;left:0;top:0;z-index:1;pointer-events:none}
@media (forced-colors:active),print{.light{display:none}}
.knob{position:absolute;right:6%;top:41%;width:9%;aspect-ratio:1;border-radius:50%;background:var(--frame)}
.gap{position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(var(--light),var(--light)) center/calc(100% - 1px) 100% no-repeat;box-shadow:0 0 22px 4px var(--glow);clip-path:inset(-40px 0);animation:light-on 1.8s .3s ease-out both}
/* The lit room behind the door is code: the page's own script, in dark ink on the light (see pourLight() at the end of the page).
   It is sized with the door, and the swinging leaf hides most of it until the door opens. */
.in{position:absolute;inset:0;margin:0;padding:2cqw 0 0 1cqw;font:500 6.8cqw/8.8cqw ui-monospace,"SF Mono",Menlo,Consolas,monospace;color:rgba(26,35,53,.58);white-space:pre;overflow:hidden}
/* Bare floor under the door, where the light falls */
.floor{align-self:stretch;min-height:52px;padding-bottom:12px}
@keyframes light-on{from{opacity:.35}to{opacity:1}}

/* The help form: a modal drawn as the door, lit from under */
/* No position here: a modal <dialog> is position:fixed, which keeps it centred on a scrolled page */
.help{width:min(560px,calc(100% - 32px));max-width:none;max-height:none;margin:auto;padding:0;overflow:visible;border:0;background:transparent;color:var(--white)}
.help:not([open]){display:none} /* also hides it in browsers without <dialog> */
.help::backdrop{background:rgba(13,19,32,.8);backdrop-filter:blur(3px)}
.help[open]{animation:door-in .22s ease-out}
/* Motion only, never opacity: if the animation does not run, the form is still fully visible */
@keyframes door-in{from{transform:translateY(12px) scale(.985)}to{transform:none}}
.help::after{content:"";position:absolute;left:5px;right:5px;bottom:0;height:6px;background:linear-gradient(var(--light),var(--light)) center/calc(100% - 1px) 100% no-repeat;box-shadow:0 0 22px 4px var(--glow);clip-path:inset(-40px 0);pointer-events:none}
.help-card{position:relative;display:flex;flex-direction:column;gap:16px;max-height:calc(100dvh - 40px);overflow:auto;padding:26px 28px 34px;background:var(--navy-2);border:5px solid var(--frame);border-bottom:0}
.help h2{margin:0;padding-right:44px;font:400 clamp(1.7rem,1.3rem + 1.2vw,2.2rem)/1.1 var(--serif)}
.close{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--frame);border-radius:50%;background:transparent;color:var(--white);font:400 1.5rem/1 var(--sans);cursor:pointer}
.close:hover{border-color:var(--light)}
.close:focus-visible{outline-color:var(--light)}
.help form{display:grid;gap:16px}
.field{display:grid;gap:8px}
.label,.help legend{font:600 .78rem/1 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.help fieldset{margin:0;padding:0;border:0;min-width:0}
.help legend{padding:0;margin-bottom:12px}
.opt{text-transform:none;letter-spacing:0;font-weight:400}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative}
.chip input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.chip span{display:block;padding:8px 14px;border:1px solid var(--frame);border-radius:999px;font:500 .95rem/1.1 var(--sans);color:var(--white)}
.chip input:checked + span{background:var(--light);border-color:var(--light);color:var(--navy)}
.chip input:focus-visible + span{outline:2px solid var(--light);outline-offset:2px}
@media (forced-colors:active){.chip input:checked + span{background:Highlight;color:HighlightText;border-color:Highlight}}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.help textarea,.help input[type="text"]{width:100%;padding:12px 14px;border:1px solid var(--field-line);border-radius:8px;background:var(--navy);color:var(--white);font:400 1rem/1.45 var(--sans)}
.help textarea{min-height:110px;resize:vertical}
.help textarea:focus,.help input[type="text"]:focus{outline:2px solid var(--light);outline-offset:1px;border-color:transparent}
.send-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px}
.status{margin:0;min-height:1.5em;font-size:.98rem;color:var(--light)}
.status.error{color:#ffb4a6}
.promise{margin:0;font-size:.9rem;color:var(--dim)}
.promise b{color:var(--white);font-weight:600}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* After sending: only the thank-you, centred in the same-sized door */
.help.is-sent h2{display:none}
.sent{display:grid;justify-items:center;gap:12px;margin-block:auto;text-align:center}
.sent:focus{outline:none}
.sent p{margin:0;color:var(--dim);overflow-wrap:anywhere}
.sent .big{font:400 2rem/1.15 var(--serif);color:var(--white)}
.sent .btn{margin-top:12px}

/* Inner pages: a dark title band, light content, a dark band that opens the form */
.page-head{padding-block:clamp(40px,6vw,72px) clamp(36px,5vw,56px)}
.page-head h1{max-width:16em}
.page-head .lede{margin-bottom:0}
.section{padding-block:clamp(48px,7vw,80px)}
.section h2{margin:0 0 28px;font:400 clamp(1.8rem,1.3rem + 1.6vw,2.4rem)/1.1 var(--serif);text-wrap:balance}
.prose{max-width:36em;display:grid;gap:16px;font-size:1.1rem}
.prose p{margin:0}
.prose p:first-child{font:400 1.6rem/1.3 var(--serif)}
.legal{max-width:40em;display:grid;gap:14px;font-size:1.08rem}
.legal p,.legal ul{margin:0}
.legal ul{display:grid;gap:10px;padding-left:1.2em}
.legal h2{margin:22px 0 0;font:400 1.4rem/1.2 var(--serif)}
.legal .updated{color:var(--muted);font-size:.95rem}
.legal a{color:inherit;text-decoration:underline;text-decoration-color:var(--light);text-decoration-thickness:2px;text-underline-offset:3px}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px;margin:0;padding:0;list-style:none;counter-reset:step}
.steps li{counter-increment:step}
.steps li::before{content:counter(step);display:block;width:max-content;margin-bottom:14px;padding-bottom:6px;border-bottom:3px solid var(--light);font:400 2.2rem/1 var(--serif)}
.steps h3{margin:0;font:600 1.1rem/1.3 var(--sans)}
.steps p{margin:8px 0 0;color:var(--muted)}
.cta{padding-block:clamp(40px,6vw,64px)}
.cta .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px}
.cta h2{margin:0;font:400 clamp(1.7rem,1.3rem + 1.4vw,2.3rem)/1.1 var(--serif)}
.cta p{margin:8px 0 0;color:var(--dim)}
/* Page 2 of the homepage: What I do, in the room behind the door (/what-i-do redirects here).
   The room is lit. The cone of light (.light) darkens it until the cone reaches it, and the top padding is where the old strip of light was. */
.room{scroll-margin-top:clamp(44px,5vw,72px);padding-block:calc(clamp(44px,5vw,72px) + clamp(10px,2vw,24px)) clamp(52px,7vw,88px);background:linear-gradient(#ffcd57,#ffe39a 75%);color:var(--navy)}
.room .eyebrow{color:#5c4200}
.room h2{max-width:20em;margin:10px 0 0;font:400 clamp(1.8rem,1.3rem + 1.6vw,2.6rem)/1.1 var(--serif);text-wrap:balance}
.room .lede{margin:12px 0 30px;color:#4a3c14}
.service-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.service-list li{display:flex;flex-direction:column;padding:20px 20px 18px;border-radius:12px;background:rgba(255,255,255,.55)}
.service-list h3{margin:0;font:400 1.45rem/1.15 var(--serif)}
.service-list p{flex:1;margin:8px 0 0;color:#463d27;font-size:.98rem}

.work{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.project{display:grid;gap:10px;align-content:start}
.project h3{margin:8px 0 0;font:400 1.35rem/1.15 var(--serif)}
.project p{margin:0;color:var(--muted);font-size:.98rem}
.shot{display:grid;place-items:center;aspect-ratio:4 / 3;border:1px dashed var(--line);border-radius:10px;background:var(--paper);color:var(--muted);font-size:.9rem}

.foot{padding-block:24px;background:var(--navy-3);color:var(--dim);font-size:.9rem}
.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.foot a{text-decoration:none}
.foot-nav{display:flex;gap:20px}
.foot a:hover{color:var(--white)}

/* Each service opens the form with its own topic ticked */
.more{align-self:flex-start;margin-top:16px;padding:10px 14px;border:0;border-radius:7px;background:var(--navy);color:var(--light);font:700 .92rem/1.2 var(--sans);cursor:pointer}
.more:hover{background:#26324a}
.more:focus-visible{outline-color:var(--navy)}
/* 11: the About story as four stops on a gold line (phones only) */
.timeline{display:none;position:relative;margin:0;padding:4px 0 4px 30px;list-style:none;gap:22px}
.timeline::before{content:"";position:absolute;left:6px;top:10px;bottom:10px;width:2px;background:#e6d6a6}
.timeline li{position:relative}
.timeline li::before{content:"";position:absolute;left:-30px;top:5px;width:14px;height:14px;border-radius:50%;background:var(--light);box-shadow:0 0 0 4px rgba(255,205,87,.25)}
.timeline h3{margin:0;font:400 1.3rem/1.2 var(--serif)}
.timeline p{margin:4px 0 0;color:var(--muted)}
@keyframes sheet-in{from{transform:translateY(48px)}to{transform:none}}

@media (max-width:900px){
  .service-list,.work,.steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .hero-grid{grid-template-columns:minmax(0,1fr)}
  .intro{padding-bottom:0}
  .door-frame{width:112px}
  .help-card{padding:22px 20px 30px}
}
/* One column, centred: tablets held upright, and wide phones (521 to 720 px). The phone layout is centred too, so nothing jumps between them. */
@media (min-width:521px) and (max-width:720px), (min-width:721px) and (max-width:1100px) and (max-aspect-ratio:4/5){
  .home .hero-grid{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
  .home .lede{margin-inline:auto}
  .home .btns{justify-content:center}
  .home .door{justify-self:stretch}
  .floor{align-self:center;width:min(100%,560px)}
}
/* Tablets held upright: a larger door */
@media (min-width:721px) and (max-width:1100px) and (max-aspect-ratio:4/5){
  .door-frame{width:clamp(130px,18vw,200px)}
}

@media (max-width:520px){
  .service-list,.work,.pair,.steps{grid-template-columns:minmax(0,1fr)}
  /* The section heading repeats the hero, so on phones it is hidden (the h2 stays for screen readers).
     The cards stack, in reverse: Websites on top, Custom software last. They are centred and not full width. */
  .room .eyebrow,.room .lede{display:none}
  .room h2{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .service-list{display:flex;flex-direction:column-reverse;align-items:center}
  .service-list li{width:min(100%,19rem)}
  /* Phones: the header is only the logo and "Get help". "What I do" and "About" are in the footer. */
  .top{padding-block:14px}
  .brand{font-size:1.05rem;gap:10px}
  .top .nav{display:none}
  .home .hero{padding-block:clamp(20px,4svh,44px) 28px}
  /* The main button spans the width, the two page links sit side by side under it */
  .btns{gap:14px 28px}
  .btns .btn{flex:1 1 100%;text-align:center}
}
/* The smallest phones: a smaller "Get help" so it still fits beside the logo */
@media (max-width:360px){
  .top .btn{padding:8px 12px;font-size:.9rem}
}
/* Phones: 9 the form as a bottom sheet, 10 services as stacked cards, 11 the timeline */
@media (max-width:520px){
  .home .hero-grid{gap:20px}
  .home .intro{display:contents}
  .home .intro .eyebrow,.home .lede{display:none}
  .home h1{order:1;margin:0;text-align:center}
  .home .door{order:2}
  /* No hero button on phones: the door, the header's "Get help" and the services open the form */
  .home .btns{display:none}
  /* A smaller door on short screens, so the light of page 2 still peeks in at the bottom */
  .door-frame{width:clamp(88px,15svh,120px)}

  .help{width:100%;margin:auto 0 0}
  .help[open]{animation:sheet-in .26s ease-out}
  .help::after{display:none}
  .help-card{max-height:calc(100dvh - 24px);padding:12px 18px calc(24px + env(safe-area-inset-bottom,0px));border:0;border-top:3px solid var(--light);border-radius:16px 16px 0 0;box-shadow:0 -10px 26px 2px var(--glow)}
  .help-card::before{content:"";flex:none;align-self:center;width:40px;height:4px;border-radius:2px;background:var(--frame)}
  .close{top:18px}

  .service-list{gap:12px}
  .service-list li{padding:18px 16px}
  .more{align-self:stretch;padding:12px;text-align:center}

  .about-story .prose{display:none}
  .about-story .timeline{display:grid}
}
/* Short phones (an iPhone SE with Safari's bars showing): a tighter hero, so the light of page 2 still shows */
@media (max-width:520px) and (max-height:620px){
  .home .hero-grid{gap:14px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .gap,.help[open]{animation:none}
  .leaf,.shade{animation:none}
}
