/* Owls, pre-launch page (2026). Brand: round 18 of brand/; layout after hex.inc. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Fraunces, self-hosted (was Google Fonts): opsz 9-144, weight 700, normal and italic */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-opsz-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  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: "Fraunces"; src: url("/fonts/fraunces-latin-ext-opsz-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-opsz-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap;
  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: "Fraunces"; src: url("/fonts/fraunces-latin-ext-opsz-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0e0508; --roost: #4b0716; --ember: #f01b33; --dawn: #f6addc; --moth: #f5eaec; --dusk: #d2c5dd; --moon: #a5b8e8; --pine: #05302a;
  --gold: #ffd166; --mute: #a99ea2; --mute-on-moth: #6b5960; --panel: #151517; --rim: rgba(245, 234, 236, .16);
  --page: #080305;
  --label: #d2c9cb; --label-on-moth: #54484c;   /* the mono labels' grey: solid, warm, a notch up from moth at 72% (user, B) */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Fraunces", "Iowan Old Style", Georgia, serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1); --edge: clamp(12px, 2.2vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* with JS, scroll.js does the gliding; the browser must jump so the two never fight */
.js { scroll-behavior: auto; }
/* the browser's scrollbar is hidden where a mouse or trackpad drives the page (the head adds .own-sb); scroll.js draws ours */
.own-sb { scrollbar-width: none; }
.own-sb::-webkit-scrollbar, .own-sb body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.scrollbar { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: 12px; mix-blend-mode: difference; }   /* the blend sits here: this box is what meets the page */
.scrollbar.is-none { display: none; }
/* a thin thumb, inverted against what is under it: light on night, dark on moth */
.scrollbar__thumb { position: absolute; top: 0; right: 3px; width: 3px; border-radius: 3px; background: var(--moth); opacity: 0; will-change: transform;
  transition: opacity .7s var(--ease), width .25s var(--ease); }
.scrollbar.is-on .scrollbar__thumb { opacity: .5; transition-duration: .15s, .25s; }
.scrollbar:hover .scrollbar__thumb, .scrollbar.is-drag .scrollbar__thumb { opacity: .85; width: 6px; transition-duration: .15s, .25s; }
.sb-drag, .sb-drag * { -webkit-user-select: none; user-select: none; }
.about, .svc { scroll-margin-top: 88px; }
[tabindex="-1"]:focus { outline: none; }   /* a section a link glided to takes focus for the keyboard, without a ring */
/* our own pointer (cursor.js): the system cursor is hidden only once ours is on screen.
   One shape that becomes what it points at (a dot, a pill around a link, a caret), drawn by script on springs.
   It shows the page under it in negative and in grey (a backdrop filter), so it reads on night, moth and ember alike. */
.own-cursor, .own-cursor * { cursor: none !important; }
.cursor { position: fixed; z-index: 60; left: 0; top: 0; width: 14px; height: 14px; border-radius: 7px; pointer-events: none; opacity: 0; contain: strict; will-change: transform;
  -webkit-backdrop-filter: grayscale(1) invert(1); backdrop-filter: grayscale(1) invert(1); }
.no-bdf .cursor { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--moth); mix-blend-mode: difference; }
/* a solid button the pointer has poured into: a soft light follows the hand across it (cursor.js sets --sa, --hx, --hy) */
/* a tap shows no grey box; plain text links dim while pressed on touch, the buttons press in (:active below) */
a, button, label { -webkit-tap-highlight-color: transparent; }
@media (hover: none) { .intro__nav a:active, .ct__x:active, .ct__mail:active, .foot__contact > a:not(.pill):active { opacity: .6; } }
/* with reduced motion the logo answers the pointer by dimming a little (no tilt) */
@media (hover: hover) and (prefers-reduced-motion: reduce) { .top__logo:hover { opacity: .8; } }
.own-cursor :is(.pill, .dock, .ct__send) { background-image: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgb(var(--sheen, 255 255 255) / calc(var(--sa, 0) * var(--sheen-a, .85))), rgb(var(--sheen, 255 255 255) / 0) 72%); }
.pill--night { --sheen: 245 234 236; --sheen-a: .16; }
body { margin: 0; background: var(--page); color: var(--moth); font: 500 16px/1.4 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ol { margin: 0; padding: 0; }
a { color: inherit; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--moth); color: var(--night); padding: 8px 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.024em; line-height: .98; font-optical-sizing: auto; }
.serif i { font-style: italic; letter-spacing: -.03em; }

/* the box, fixed at the top, as on hex.inc */
.top { position: fixed; z-index: 30; top: 14px; left: 50%; transform: translateX(-50%); }
.top__logo { display: block; border-radius: 2px; background: transparent; transition: background-color .35s var(--ease), padding .35s var(--ease); }
/* over the hero: the plain lockup in one colour, ember.
   past the hero: the same lockup, night, in a moth box, as on hex.inc */
.top .lockup { height: 30px; width: auto; transition: height .35s var(--ease); }
.top .lk-m, .top .lk-w { fill: #b11a29; transition: fill .35s var(--ease); }   /* ember two notches back (76% ember, 24% page): calmer than the owl (user, round C) */
.top.is-boxed .top__logo { background: var(--moth); padding: 6px 9px; }
.top.is-boxed .lockup { height: 22px; }
.top.is-boxed .lk-m, .top.is-boxed .lk-w { fill: var(--night); }
.lk-m { fill: var(--ember); } .lk-w { fill: currentColor; }

/* first screen */
.intro { position: relative; z-index: 2; padding: 104px var(--edge) 0; text-align: center; pointer-events: none; }
.intro a { pointer-events: auto; }
.intro__nav { display: inline-flex; gap: 16px; font-size: 12.5px; }
.intro__nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 1px; }
.intro__lede { max-width: 19em; margin: 12px auto 0; font-weight: 600; font-size: 13.5px; line-height: 1.22; text-wrap: balance; }
.intro__line { margin: clamp(40px, 5.2vw, 76px) 0 clamp(28px, 3vw, 44px); font-size: clamp(34px, 4.6vw, 76px); white-space: nowrap; }

/* the stage: points drift like a night sky, then gather into the mark (owl.js) */
/* the hero is one screen: the particle canvas fills it, the slogan sits on top, the owl gathers under it */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1200px; overflow: hidden; }
.stage__gl { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }
/* the particle scene's light runs on past the hero's bottom edge and dies away there, instead of stopping at a line
   (owl-scene.js adds .has-glow and keeps framing the owl on the hero itself) */
.stage { --glow: clamp(140px, 22vh, 260px); }
@supports (overflow-x: clip) { .stage.has-glow { overflow-x: clip; overflow-y: visible; } }
.stage.has-glow .stage__gl { inset: 0 0 auto; height: calc(100% + var(--glow)); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--glow) * 1.3), rgb(0 0 0 / .62) calc(100% - var(--glow) * .75), rgb(0 0 0 / .24) calc(100% - var(--glow) * .35), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--glow) * 1.3), rgb(0 0 0 / .62) calc(100% - var(--glow) * .75), rgb(0 0 0 / .24) calc(100% - var(--glow) * .35), transparent); }
.stage.has-glow + section { position: relative; z-index: 1; }      /* its words stay above the light */
.stage .tag { z-index: 2; }
.stage__still { position: absolute; left: 50%; top: 62%; width: min(46%, 640px); height: auto; transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s var(--ease); }
.stage__still path { fill: var(--ember); }
.stage.no-gl .stage__still { opacity: 1; }
.tag { position: absolute; font: 500 11px/1.2 var(--mono); color: var(--label); }
.tl { left: var(--edge); top: 14px; } .tr { right: var(--edge); top: 14px; } .bl { left: var(--edge); bottom: 14px; } .br { right: var(--edge); bottom: 14px; text-align: right; }

/* the studio, in one narrow column */
.about { width: min(31em, calc(100% - 40px)); margin: clamp(48px, 5.6vw, 88px) auto clamp(144px, 17vw, 260px); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.008em; }
.about h2 { font: inherit; margin-bottom: 1.1em; }
.about p + p { margin-top: 1.1em; }
.term { color: var(--mute); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 2em; padding: 10px 16px; border-radius: 99px; background: var(--moth); color: var(--night); font: 600 13px/1 var(--sans); text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .pill:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); } }
.pill:active { transform: translateY(0) scale(.98); }
.pill--night { background: var(--night); color: var(--moth); }

/* slogans: the first line of the studio text, right where the hero ends, still in the owl's light that runs on below it;
   one at a time, each in its own colour (sections.js turns them). The box keeps one height so the text under it never jumps. */
.slg { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 1.12em; margin-bottom: clamp(72px, 7vw, 104px); font-size: clamp(27px, 2.3vw, 34px); pointer-events: none; }
.slg .slg__line { display: inline-block; flex: none; margin: 0; text-align: center; font-size: 1em; line-height: 1.12; white-space: nowrap; color: var(--slg-ink); text-shadow: 0 2px 28px rgba(8, 3, 5, .75); }
.slg[data-c="dawn"] { --slg-ink: var(--dawn); }
.slg[data-c="moth"] { --slg-ink: var(--moth); }
.slg[data-c="ember"] { --slg-ink: #ff4d5e; }
.slg[data-c="moon"] { --slg-ink: var(--moon); }
.slg__line .wd { display: inline-block; }
/* with scripts, the words wait until the line is in view and rise in (sections.js) */
.js .slg:not(.is-set) { visibility: hidden; }

/* services: a bento of five near-black cards (3 + 2), Inter for words, JetBrains Mono for labels. Each card plays the old studio
   site's Rive animation, laid out as that site laid it out: a short box between the title and the text, the animation two
   to two and a half times the card's width centred on a point of that box, running behind everything and cut by the card */
.svc { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.svc__head { display: grid; gap: 12px; padding-bottom: clamp(28px, 3.4vw, 48px); }
.svc__kicker { font: 500 11px/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--label); }
.svc__kicker span { color: var(--mute); }
.svc__title { font-weight: 600; font-size: clamp(30px, 3.5vw, 50px);   /* a step under the hero line (66 px), each sentence on its own line */ line-height: 1.02; letter-spacing: -.035em; max-width: 13em; text-wrap: balance; }
.svc__title i { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.08em; line-height: 0; letter-spacing: -.03em; font-optical-sizing: auto; }   /* the one word in the hero's Fraunces italic (user, C) */
.svc__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc__card { position: relative; z-index: 0; grid-column: span 2; display: flex; flex-direction: column; gap: 24px; padding: 22px 26px 26px; overflow: hidden; background: #131313; }
.svc__card--b { grid-column: span 3; }
.svc__name { font-weight: 600; font-size: clamp(21px, 1.75vw, 25px); line-height: 1.1; letter-spacing: -.025em; }
.svc__box { position: relative; width: 100%; margin: auto 0; aspect-ratio: 344 / 101; }
.svc__card--b .svc__box { aspect-ratio: 549 / 130; }
/* the animation's grey ground (#313131) is mapped to the card's black and its lines kept light, on the poster and the canvas alike */
.svc__media { position: absolute; z-index: -1; left: var(--x); top: var(--y); width: var(--w); max-width: none; aspect-ratio: 1642 / 1200;
  transform: translate(-50%, -50%); pointer-events: none; filter: brightness(.828) contrast(1.249); }
.svc__card--b .svc__media { aspect-ratio: 2300 / 1046; }
.svc__media img, .svc__media canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.svc__media canvas { opacity: 0; transition: opacity .5s ease; }
.svc__media.is-ready canvas { opacity: 1; }
.svc__media.is-ready img { opacity: 0; transition: opacity .5s ease .2s; }
.svc--branding { --x: 60%; --y: 55%; --w: 240%; }
.svc--product-ui-ux { --x: 55%; --y: 95%; --w: 250%; }
.svc--full-stack-development { --x: 61%; --y: 80%; --w: 212%; }
.svc--landing-pages { --x: 60%; --y: 40%; --w: 202%; }
.svc--full-websites { --x: 20%; --y: 100%; --w: 195%; }
.svc__text { max-width: 34em; color: var(--mute); font-weight: 500; font-size: 15.5px; line-height: 1.5; letter-spacing: -.005em; text-wrap: pretty; }
.svc__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__tags li { padding: 8px 10px 7px; background: #080808; font: 500 11px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: color-mix(in oklab, var(--label) 60%, var(--moth)); }

/* the end: light, as on hex.inc */
.foot { background: var(--moth); color: var(--night); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 40px clamp(24px, 4vw, 64px); padding: clamp(48px, 5vw, 80px) var(--edge) 0; }
.foot h3 { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.foot__side { display: grid; gap: 28px; align-content: start; font-size: 14px; color: var(--mute-on-moth); }
.foot__side b { color: var(--night); font-weight: 600; }
.foot__big { font-weight: 600; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.02; letter-spacing: -.035em; max-width: 16em; text-wrap: balance; }
.foot__contact { margin-top: clamp(32px, 4vw, 56px); display: grid; justify-items: start; gap: 2px; }
.foot__contact > a:not(.pill) { font-weight: 600; font-size: 18px; text-underline-offset: 3px; }
.foot__contact .pill { margin-top: 18px; }
.foot__mark { grid-column: 1 / -1; margin: clamp(48px, 7vw, 112px) calc(-1 * var(--edge)) 0; overflow: hidden; }
/* the mark as a blueprint: centred, big, its lower half below the edge of the page; drawn, never filled */
.fd { width: min(1180px, 88vw); height: auto; display: block; margin: 0 auto; }
.fd-grid { fill: none; stroke: var(--night); stroke-opacity: .13; stroke-width: .1; }
.fd-line { fill: none; stroke: var(--night); stroke-width: .24; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fd-hot { fill: none; stroke: var(--ember); stroke-width: .17; stroke-dasharray: .01 .9; stroke-linecap: round; }
.fd-soft { fill: none; stroke: var(--roost); stroke-width: .17; stroke-dasharray: .01 .9; stroke-linecap: round; }
.fd-guides circle { fill: var(--roost); } .fd-nodes rect { fill: var(--night); }
.fd-lab { font: 500 2.2px var(--mono); fill: var(--roost); }
/* drawn once it comes into view: the grid, then the outline, then the measures */
@media (prefers-reduced-motion: no-preference) {
  .js .fd-grid, .js .fd-guides { opacity: 0; } .js .fd-line { stroke-dashoffset: 1; }
  .fd.is-on .fd-grid { animation: fd-in 1.2s var(--ease) forwards; }
  .fd.is-on .fd-line { animation: fd-draw 2.4s var(--ease) .3s forwards; }
  .fd.is-on .fd-guides { animation: fd-in 1.4s var(--ease) 1.8s forwards; }
}
@keyframes fd-in { to { opacity: 1; } }
@keyframes fd-draw { to { stroke-dashoffset: 0; } }
.foot__legal { grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 56px); display: flex; justify-content: space-between; gap: 16px; font: 500 11px/1.2 var(--mono); color: var(--label-on-moth); }

/* contact: a card over the dimmed page, as on hex.inc */
.ct { padding: 0; margin: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--moth); }
.ct[open] { display: grid; place-items: center; }
.ct::backdrop { background: rgba(14, 5, 8, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ct-open { overflow: hidden; }
.ct__card { position: relative; width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  background: #0a0406; border: 1px solid var(--rim); border-radius: 8px; padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px) clamp(28px, 3.6vw, 44px); }
.ct__x { position: absolute; top: 16px; right: 18px; padding: 4px; border: 0; background: none; color: var(--mute); font: 600 13px/1 var(--sans); cursor: pointer; transition: color .2s; }
@media (hover: hover) { .ct__x:hover { color: var(--moth); } }
.ct h2 { font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -.02em; }
.ct__sub { margin-top: 4px; font-weight: 600; font-size: 16px; line-height: 1.15; letter-spacing: -.02em; }
.ct__types { border: 0; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct__types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct__types span { display: inline-block; padding: 9px 15px; border: 1px solid rgba(245, 234, 236, .3); border-radius: 999px; font: 600 14px/1 var(--sans); letter-spacing: -.01em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .ct__types label:hover span { border-color: rgba(245, 234, 236, .7); } }
.ct__types input:checked + span { background: var(--moth); color: var(--night); border-color: var(--moth); }
.ct__types input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 3px; }
.ct__fields { margin-top: 26px; display: grid; }
.ct__fields input, .ct__fields textarea { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--moth); caret-color: var(--ember);
  font: 700 clamp(26px, 2.4vw, 34px)/1.16 var(--sans); letter-spacing: -.02em; outline: none; resize: none; border-radius: 0; }
.ct__fields ::placeholder { color: rgba(245, 234, 236, .3); opacity: 1; transition: color .25s; }
.ct__fields :focus::placeholder { color: rgba(245, 234, 236, .92); }
/* a picked type wakes the whole form, and the field in use stays a step brighter than the rest */
.ct__card:has(.ct__types input:checked) .ct__fields ::placeholder { color: rgba(245, 234, 236, .58); }
.ct__card:has(.ct__types input:checked) .ct__fields :focus::placeholder { color: rgba(245, 234, 236, .92); }
.ct__fields :focus-visible { box-shadow: -14px 0 0 -12px var(--ember); }
/* a field the form asks for again: the same mark in dawn, and its name in dawn until it is filled */
.ct__fields [aria-invalid="true"] { box-shadow: -14px 0 0 -12px var(--dawn); }
.ct__card .ct__fields :is(input, textarea)[aria-invalid="true"]:not(:focus)::placeholder { color: var(--dawn); }
.ct__send { margin-top: clamp(36px, 4.6vw, 56px); display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 30px; background: var(--moth); color: var(--night); font: 600 16px/1 var(--sans); letter-spacing: -.02em; cursor: pointer; transition: transform .25s var(--ease); }
@media (hover: hover) { .ct__send:hover { transform: translateY(-1px); } } .ct__send:active { transform: scale(.98); }
.ct__note, .ct__mail, .ct__done { display: block; margin-top: 16px; font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; }
.ct__mail { margin-top: 6px; text-decoration: none; }
.ct__done { color: var(--dawn); } .ct__done[hidden], .ct__err[hidden] { display: none; }
.ct__err { display: block; margin-top: 16px; font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; color: var(--dawn); }
.ct__send:disabled { opacity: .6; cursor: progress; transform: none; }
/* sent: the fields give way to the thank-you, set as big as the fields were */
.ct__card.is-sent .ct__types, .ct__card.is-sent .ct__fields, .ct__card.is-sent .ct__send { display: none; }
.ct__card.is-sent .ct__done { margin-top: clamp(40px, 5vw, 64px); font: 700 clamp(26px, 2.4vw, 34px)/1.16 var(--sans); letter-spacing: -.02em; color: var(--moth); outline: none; }
/* the field only bots fill in */
.ct__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .ct[open] .ct__card { animation: ct-in .4s var(--ease); }
  .ct[open]::backdrop { animation: ct-fade .3s ease; }
}
@keyframes ct-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes ct-fade { from { opacity: 0; } }
.foot__clocks { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 14px; }

/* the button that stays, bottom centre */
.dock { position: fixed; z-index: 30; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--moth); color: var(--night); font: 600 13px/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .65); transition: transform .3s var(--ease), opacity .3s var(--ease); }
@media (hover: hover) { .dock:hover { transform: translate(-50%, -1px); } }
.dock.is-off { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }

/* entrance: the drawing draws itself once */
@media (prefers-reduced-motion: no-preference) {
  .intro__nav, .intro__lede, .intro__line { animation: rise .9s var(--ease) both; }
  .intro__lede { animation-delay: .06s; } .intro__line { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pill, .dock { transition: none; } }

@media (max-width: 900px) {
  .intro__line { white-space: normal; text-wrap: balance; font-size: clamp(34px, 6.6vw, 56px); }
}
@media (max-width: 1000px) {
  .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__card, .svc__card--b { grid-column: span 1; }
  .svc__card:last-child { grid-column: 1 / -1; }
  .svc__card--a .svc__box { aspect-ratio: 344 / 145; }
  .svc--branding { --x: 48%; --y: 61%; } .svc--product-ui-ux { --x: 51%; --y: 86%; } .svc--full-stack-development { --x: 54%; --y: 66%; }
  .svc--landing-pages { --x: 52%; --y: 40%; --w: 250%; } .svc--full-websites { --x: 21%; --y: 87%; --w: 150%; }
}
@media (max-width: 640px) {
  .svc__grid { grid-template-columns: 1fr; gap: 12px; }
  .svc__card:last-child { grid-column: auto; }
  .svc__card--b .svc__box { aspect-ratio: 344 / 125; }
  .svc--full-websites { --x: 12%; --y: 95%; --w: 250%; }
}
@media (max-width: 760px) {
  .intro { padding-top: 92px; }
  .intro__line { font-size: clamp(34px, 9.4vw, 50px); }
  .stage { min-height: 560px; }
  .tag { font-size: 10px; } .stage .tl, .stage .tr, .stage .bl { display: none; }
  .stage .br { right: auto; left: 50%; transform: translateX(-50%); bottom: 72px; text-align: center; white-space: nowrap; }
  .slg { height: 2.24em; font-size: clamp(26px, 7.4vw, 32px); }
  .slg__line { white-space: normal; text-wrap: balance; }
  .foot { grid-template-columns: 1fr; } .foot__side { order: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__main { order: 1; } .foot__legal { order: 3; } .foot__mark { order: 4; } .fd { width: 150vw; margin-left: 50%; transform: translateX(-50%); }
}

/* ---- polish (outside the slogans and the services, which have their own rules above) ---- */
:root { color-scheme: dark; }
.foot { color-scheme: light; }
::selection { background: var(--ember); color: var(--moth); }
.foot ::selection { background: var(--night); color: var(--moth); }

/* the logo's box turns dark over the light footer, so it never melts into the moth or sits on the words bare */
.top.is-boxed.on-light .top__logo { background: var(--night); }
.top.is-boxed.on-light .lk-m, .top.is-boxed.on-light .lk-w { fill: var(--moth); }

/* buttons: a 44 px target around the 33 px pill, and a press you can feel (fast in, back on release) */
.pill { position: relative; }
.pill::after, .dock::after { content: ""; position: absolute; inset: -6px -4px; border-radius: inherit; }
.pill:active { transform: scale(.96); box-shadow: none; transition-duration: .1s; }
.dock:active { transform: translate(-50%, 0) scale(.96); transition-duration: .1s; }
.ct__send:active { transform: scale(.96); transition-duration: .1s; }
.ct__types span { transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.ct__types label:active span { transform: scale(.96); transition-duration: .1s; }
.ct__x { top: 6px; right: 8px; padding: 14px; }          /* the same word, a finger-sized target */

/* the footer: steady clocks, an address underline that warms on hover */
.foot__clocks { font-variant-numeric: tabular-nums; }
.foot__contact > a:not(.pill) { text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in oklab, var(--night) 32%, transparent);
  transition: text-decoration-color .25s var(--ease); }
/* text links, one hover everywhere: a line draws in under the words from the left. The two addresses also keep a
   faint line at rest, so they read as links before the pointer arrives; the drawn line runs over it. */
.intro__nav a, .ct__x, .ct__mail, .foot__contact > a:not(.pill) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 var(--ul, 1px) no-repeat,
    linear-gradient(var(--ul-rest, transparent), var(--ul-rest, transparent)) 0 100% / 100% var(--ul, 1px) no-repeat;
  background-origin: content-box;
  transition: background-size .4s var(--ease), color .2s var(--ease); }
.ct__mail, .foot__contact > a:not(.pill) { --ul: 1.5px; }
.ct__mail { --ul-rest: rgba(245, 234, 236, .28); }
.foot__contact > a:not(.pill) { --ul-rest: color-mix(in oklab, var(--night) 30%, transparent); }
@media (hover: hover) {
  :is(.intro__nav a, .ct__x, .ct__mail, .foot__contact > a:not(.pill)):hover { background-size: 100% var(--ul, 1px), 100% var(--ul, 1px); }
}
@media (prefers-reduced-motion: reduce) { .intro__nav a, .ct__x, .ct__mail, .foot__contact > a:not(.pill) { transition: none; } }

/* parts of a section rise into place the first time it is seen, one after another (main.js adds .rise-ready) */
@media (prefers-reduced-motion: no-preference) {
  .rise-ready [data-rise] { opacity: 0; transform: translateY(18px); }
  .rise-ready.is-in [data-rise] { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
}

/* touch: the hero's three links get finger-sized targets without moving */
@media (pointer: coarse) { .intro__nav a { padding-block: 13px; margin-block: -13px; } }

@media (max-width: 760px) {
  .fd { width: 118vw; }                                  /* the whole mark across the phone, ears in view */
}

/* the 404: the hero's night sky (the owl almost gathers, never quite), the site's header and corner tags, the line, the way back */
.nf { display: grid; justify-items: center; align-content: start; }
.stage.nf.has-glow { overflow: hidden; }                             /* nothing below it for the light to run into */
.nf__in { position: relative; z-index: 2; display: grid; justify-items: center; padding: clamp(150px, 27vh, 280px) var(--edge) 0; text-align: center; }
.nf__line { margin-bottom: clamp(30px, 3.4vw, 44px); font-size: clamp(40px, 6.4vw, 92px); }
.nf__line span { display: block; text-wrap: balance; }                /* each sentence on its own lines, no word left alone */
.nf .pill { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) { .nf__in > * { animation: rise .9s var(--ease) both; } .nf .pill { animation-delay: .12s; } }
@media (max-width: 760px) { .nf__in { padding-top: 128px; } .stage.nf .tr { display: none; } }

/* mono labels in capitals, opened up a little (user): the hero's corner tags, the footer's last line, the 404 tag */
.tag, .foot__legal, .nf__tag { text-transform: uppercase; letter-spacing: .07em; font-size: 10.5px; }
@media (max-width: 760px) { .tag { font-size: 10px; } }

/* ---- touches (touches.js; the decode is scramble.js) ---- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* the logo's owl tilts its head under the pointer, as owls do */
  .top .lk-m { transform-box: fill-box; transform-origin: 50% 85%; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), fill .35s var(--ease); }
  .top__logo:hover .lk-m { transform: rotate(-9deg); }
  /* "wide" in the hero's line widens under the pointer */
  .intro__line i { pointer-events: auto; transition: letter-spacing .8s var(--ease); }
  .intro__line i:hover { letter-spacing: .07em; }
}
/* a copied address says so, in mono, beside itself */
a[href^="mailto:"] { position: relative; }
.ct .ct__mail { display: inline-block; }
.copied { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); font: 500 10.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--label); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.copied.is-on { opacity: 1; transition-duration: .12s; }
.foot .copied { color: var(--label-on-moth); }
/* the footer's drawing: an ember pen runs once round the owl */
.fd-pen { fill: none; stroke: var(--ember); stroke-width: .45; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .07 1.2; stroke-dashoffset: .07; opacity: 0; }
.fd.is-pen .fd-pen { animation: fd-pen 1.8s cubic-bezier(.45, 0, .2, 1) forwards; }
@keyframes fd-pen { 0% { opacity: 0; stroke-dashoffset: .07; } 8%, 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -1; } }

/* ---- the footer's drawing, editable (drawing.js): construction lines, handles, the grid's squares under the pointer ---- */
.fd { overflow: visible; -webkit-user-select: none; user-select: none; }
.fd-axis { fill: none; stroke: var(--roost); stroke-width: .14; stroke-dasharray: 2.4 .9 .3 .9; opacity: .5; }
.fd-cons circle { fill: none; stroke: var(--roost); stroke-width: .16; stroke-dasharray: .01 .72; stroke-linecap: round; opacity: .6; }
.fd-cons path, .fd-dim, .fd-ang { fill: none; stroke: var(--roost); stroke-width: .13; }
.fd-nodes rect { fill: var(--moth); stroke: var(--night); stroke-width: .22; }
.fd.is-editable .fd-nodes { display: none; }
.fd-guides .fd-hit { fill: transparent; stroke: none; }          /* a finger-sized target, never drawn */
.fd-h { cursor: grab; touch-action: none; }
.fd-sq { fill: var(--moth); stroke: var(--night); stroke-width: .22; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease), fill .2s, stroke .2s; }
@media (hover: hover) { .fd-h:hover .fd-sq { transform: scale(1.5); } }
.fd-h.is-held { cursor: grabbing; }
.fd-h.is-held .fd-sq { fill: var(--ember); stroke: var(--ember); transform: scale(1.6); }
.fd-hot, .fd-soft, .fd-guides > circle, .fd-cons { transition: opacity .6s var(--ease); }
.fd.is-editing :is(.fd-hot, .fd-soft, .fd-cons), .fd.is-editing .fd-guides > circle { opacity: .15; }
.fd-cell { fill: var(--night); fill-opacity: .07; opacity: 0; pointer-events: none; transition: opacity 1.2s var(--ease); }
.fd-cell.is-lit { opacity: 1; transition-duration: .08s; }
/* the bar a mono label arrives under (scramble.js) */
.m-bar { position: absolute; z-index: 1; pointer-events: none; transform: scaleX(0); }
.m-hide { color: transparent !important; }

/* ---- touches, second round ---- */
/* buttons: the arrow leans on hover; the button leans toward the pointer (touches.js sets --mx, --my) */
.pill > span[aria-hidden], .dock > span[aria-hidden], .ct__send > span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pill, .dock, .ct__send { translate: var(--mx, 0) var(--my, 0); }
  .pill { transition: transform .25s var(--ease), box-shadow .25s var(--ease), translate .45s var(--ease); }
  .dock { transition: transform .3s var(--ease), opacity .3s var(--ease), translate .45s var(--ease); }
  .ct__send { transition: transform .25s var(--ease), translate .45s var(--ease); }
  :is(.pill, .dock, .ct__send):hover > span[aria-hidden] { transform: translateX(3px); }
}
/* where you are, top left, once the hero has gone */
.where { position: fixed; z-index: 30; left: calc(var(--edge) - 8px); top: 18px; margin: 0; padding: 7px 8px 6px; border-radius: 2px; background: var(--page); font: 500 10.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--label);
  font-variant-numeric: tabular-nums; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease), color .35s var(--ease), background-color .35s var(--ease); }
.where.is-on { opacity: 1; }
.where.on-light { color: var(--label-on-moth); background: var(--moth); }
@media (max-width: 760px) { .where { display: none; } }
/* sent: the mark draws itself in ember and fills, above the thank-you */
.ct__owl { display: none; }
.ct__card.is-sent .ct__owl { display: block; width: 112px; height: auto; margin-top: clamp(40px, 5vw, 64px); overflow: visible; }
.ct__card.is-sent .ct__owl + .ct__done { margin-top: 24px; }
.ct__owl path { fill: var(--ember); fill-opacity: 0; stroke: var(--ember); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ct-owl-draw 1.5s var(--ease) .15s forwards, ct-owl-fill .7s var(--ease) 1.45s forwards; }
@keyframes ct-owl-draw { to { stroke-dashoffset: 0; } }
@keyframes ct-owl-fill { to { fill-opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct__owl path { animation: none; stroke-dashoffset: 0; fill-opacity: 1; } }

/* the sticker on the footer's drawing (sticker.js) */
.foot__mark { position: relative; }
.sticker { position: absolute; left: 0; top: 0; z-index: 3; width: clamp(58px, 6.2vw, 88px); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
  opacity: 0; transition: opacity .18s ease; will-change: transform;
  filter: drop-shadow(0 1px 1px rgba(14, 5, 8, .2)) drop-shadow(0 calc(3px + var(--lift, 0) * 110px) calc(5px + var(--lift, 0) * 160px) rgba(14, 5, 8, .14)); }
.sticker.is-in { opacity: 1; }
.sticker.is-held { cursor: grabbing; }
.sticker svg { display: block; width: 100%; height: auto; overflow: visible; }



/* dawn at the footer's edge (touches.js draws it). The dark gap under the services is the room for it. At first the night
   meets the footer on its straight edge; scrolling on, the bands form out of the edge and the middle is pulled down past
   it, into the footer's top, under the footer's words; the owl's light rises in the middle. The footer's words come up
   at different speeds, run by the browser off the main thread where it can. */
:root { --dawn-gap: clamp(220px, 34vh, 400px); }
.svc { position: relative; z-index: 1; margin-bottom: var(--dawn-gap); }      /* the light may sit behind the services */
.foot { position: relative; isolation: isolate; view-timeline: --foot block; }
.dawn { position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * (var(--dawn-gap) + 160px)); height: calc(var(--dawn-gap) * 1.65 + 160px); overflow: hidden; pointer-events: none; }
.dawn__sky { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }   /* drawn at a third of the size; the browser's smooth scaling softens it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .lifts { animation: dawn-lift linear both; animation-timeline: --foot; animation-range: entry 0% entry 70%; }
  }
}
@keyframes dawn-lift { from { translate: 0 var(--lift, 0px); } to { translate: 0 0; } }
