@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f7f7f5;
  --silver: #e4e4e2;
  --ink: #191a1b;
  --muted: #595b5c;
  --rule: #cbcdca;
  --charcoal: #202122;
  --page-gutter: clamp(22px, 4.5vw, 78px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --feedback-duration: 180ms;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 "Space Grotesk", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
::selection { color: white; background: #414447; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e5e5e2; }
::-webkit-scrollbar-thumb { background: #858787; border-radius: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(55px, 6.4vw, 94px); letter-spacing: -.04em; }
h2 { font-size: clamp(38px, 4vw, 61px); letter-spacing: -.035em; }
h3 { font-size: 30px; letter-spacing: -.03em; }
h4 { font-size: 23px; letter-spacing: -.02em; }
.section-shell { padding-inline: var(--page-gutter); max-width: 1720px; margin-inline: auto; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 10; background: white; padding: 12px 20px; }
.skip-link:focus { top: 10px; }
.site-header { height: 88px; padding: 0 var(--page-gutter); display: flex; justify-content: space-between; align-items: center; background: var(--paper); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-symbol { width: 35px; height: 35px; object-fit: contain; }
.brand-name { width: 183px; height: 22px; }
nav { display: flex; gap: 32px; align-items: center; }
nav > a { text-decoration: none; font-size: 14px; }
nav > a:not(.button):hover { text-decoration: underline; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 29px; padding: 11px 23px; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 5px; text-decoration: none; font-size: 14px; transition: background .2s; }
.button:hover { background: #3d4042; }
.button-small { min-height: 40px; padding: 8px 17px; gap: 23px; }
.button-light { background: #f4f4f1; color: #181a1b; border-color: #f4f4f1; }
.button-light:hover { background: #d8dcda; }
.arrow { display: inline-block; width: 17px; height: 12px; position: relative; flex: 0 0 auto; }
.arrow::before { content: ""; position: absolute; top: 5px; left: 0; right: 1px; height: 1px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.menu-toggle { display: none; }

.hero { height: clamp(730px, 62vw, 900px); min-height: 730px; position: relative; background: #e2e2e2; margin: 0 14px; overflow: visible; }
.hero-copy { padding: 44px 22px 0; text-align: center; position: relative; z-index: 2; }
.hero-copy p { font-size: 17px; line-height: 1.5; margin: 22px auto 22px; }
.art-window { position: absolute; inset: 265px 0 0; overflow: hidden; mask-image: linear-gradient(transparent, black 10%); -webkit-mask-image: linear-gradient(transparent, black 10%); }
.art-movement { position: absolute; width: 100%; top: -125px; height: 100%; transform: translate3d(var(--art-x, 0px), var(--art-y, 0px), 0) rotate(var(--art-tilt, 0deg)); transition: transform 1.2s cubic-bezier(.19,1,.22,1); }
.art-movement img { width: 100%; height: 100%; object-fit: cover; object-position: center 68%; filter: grayscale(1); transform-origin: 50% 68%; animation: drift 13s ease-in-out infinite alternate; }
#ribbon { display: block; width: 100%; height: 100%; position: absolute; inset: 0; opacity: 0; touch-action: pan-y pinch-zoom; }
.ribbon-ready #ribbon { opacity: 1; }
.ribbon-ready .art-movement { visibility: hidden; }
.ribbon-controls { position: absolute; left: 26px; bottom: 104px; z-index: 3; display: flex; align-items: center; gap: 16px; }
.ribbon-controls[hidden] { display: none; }
.shape-toggle { background: #f4f4f1ed; color: #303434; border: 0; border-radius: 4px; padding: 8px 13px; font-size: 12px; }
.shape-toggle:hover { background: white; }
.ribbon-hint { font-size: 11px; color: #494d4b; }
@keyframes drift { from { transform: translateY(0) scale(1.045); } to { transform: translateY(-9px) scale(1.065); } }
.motion-toggle { position: absolute; right: 25px; bottom: 104px; z-index: 3; border: none; background: #f4f4f1e8; padding: 7px 11px; border-radius: 4px; display: inline-flex; align-items: center; gap: 9px; font-size: 11px; line-height: 1.2; color: #333637; }
.pause-icon { width: 8px; height: 8px; border-left: 2px solid; border-right: 2px solid; }
.motion-paused .pause-icon { width: 0; height: 0; border-right: 0; border-left: 7px solid; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.motion-paused .art-movement img { animation-play-state: paused; }
.motion-paused .art-movement { transition: none; }
.hero-links { position: absolute; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); bottom: -35px; left: 4.8%; right: 4.8%; background: #fff; box-shadow: 0 12px 30px #1419190c; }
.hero-links > a { position: relative; padding: 25px 48px 26px 26px; min-height: 118px; text-decoration: none; }
.hero-links > a + a { border-left: 1px solid #e2e4e1; }
.hero-links > a > span:not(.round-arrow) { display: block; margin-top: 8px; color: #595c5b; font-size: 13px; }
.hero-links strong { display: block; font-size: clamp(15px, 1.6vw, 22px); font-weight: 400; letter-spacing: -.025em; }
.round-arrow { position: absolute; right: 21px; top: 27px; }
.hero-links > a:hover strong { text-decoration: underline; text-underline-offset: 6px; }

.section-art { margin: 0; overflow: hidden; background: #dededb; }
.section-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.approach { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; padding-top: 155px; padding-bottom: 110px; }
.approach-copy { max-width: 580px; padding-top: 30px; }
.discovery-photo { aspect-ratio: 4 / 3; }
.approach-copy p:first-child { font-size: 24px; line-height: 1.4; letter-spacing: -.02em; margin-bottom: 20px; }
.approach-copy p + p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 22px; font-size: 14px; text-decoration: none; border-bottom: 1px solid #a2a6a3; padding-bottom: 5px; }
.approach .text-link { margin-top: 25px; }
.text-link:hover { border-color: currentColor; }
.example-section { padding-bottom: 120px; }
.section-intro { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; margin-bottom: 36px; }
.section-intro > p { color: var(--muted); max-width: 370px; padding-bottom: 4px; }
.example-panel { background: var(--charcoal); color: #f7f7f5; min-height: 560px; border-radius: 15px; display: grid; grid-template-columns: 56% 44%; position: relative; overflow: hidden; }
.pattern-window { position: relative; min-height: 460px; }
.workflow-copy { position: relative; padding: 46px 50px 100px 0; align-self: center; }
.workflow-state { min-height: 105px; }
.workflow-state h3 { font-size: 34px; }
.workflow-state > p { font-size: 15px; color: #d0d2d0; margin-top: 13px; max-width: 35ch; }
.sample-record { padding: 19px 21px; margin: 19px 0 24px; background: #303234; border-radius: 9px; max-width: 370px; min-height: 128px; }
.record-heading { display: flex; justify-content: space-between; align-items: center; color: #d0d3d1; font-size: 11px; }
.record-dot { width: 6px; height: 6px; background: #d8dcd9; border-radius: 50%; }
.sample-record p { margin-top: 16px; line-height: 1.5; font-size: 14px; white-space: pre-line; }
.workflow-steps { position: absolute; bottom: 0; left: 36px; right: 36px; display: grid; grid-template-columns: repeat(4,1fr); }
.workflow-steps button { border: 0; border-top: 1px solid #55595a; padding: 20px 10px; background: transparent; color: #b9bdbc; text-align: left; font-size: 13px; }
.workflow-steps button span { font-size: 10px; color: inherit; margin-right: 14px; }
.workflow-steps button.active { color: white; border-top-color: white; }
.workflow-steps button:hover { background: #ffffff08; }
.workflow-steps button { position: relative; }
.workflow-steps.autoplay button.active { border-top-color: #55595a; }
.workflow-steps.autoplay button.active::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: white; transform-origin: left; animation: step-progress var(--step-ms, 2200ms) linear both; }
@keyframes step-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.services { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); padding-top: 30px; padding-bottom: 120px; gap: 30px; }
.services-intro { padding-right: 50px; }
.services-intro p { max-width: 37ch; color: var(--muted); margin: 25px 0; }
.workplace-photo { margin-top: 38px; aspect-ratio: 5 / 4; }
.workplace-photo img { object-position: center; }
.service-list { padding-right: 30px; }
.services.is-pinned > .services-intro, .services.is-pinned > .service-list { position: sticky; top: var(--pin-top, 40px); align-self: start; }
.service-list details { border-top: 1px solid var(--rule); }
.service-list details:last-child { border-bottom: 1px solid var(--rule); }
.service-list summary { list-style: none; display: flex; align-items: center; min-height: 97px; gap: 30px; cursor: pointer; }
.service-list summary::-webkit-details-marker { display: none; }
.service-number { font-size: 12px; color: var(--muted); }
.service-list summary h3 { font-size: 36px; flex: 1; }
.expand-icon { width: 17px; height: 17px; position: relative; }
.expand-icon::before, .expand-icon::after { content: ""; display: block; position: absolute; top: 8px; height: 1px; width: 17px; background: currentColor; }
.expand-icon::after { transform: rotate(90deg); }
details[open] .expand-icon::after { transform: rotate(0); }
.service-content { padding: 5px 40px 36px 47px; }
.service-content > p { margin: 15px 0 22px; color: var(--muted); max-width: 49ch; }
.deliverables { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; margin-bottom: 26px; }
.deliverables > span { padding-bottom: 5px; border-bottom: 1px solid #c2c6c2; }
.service-content .text-link { font-size: 12px; }

.possibilities { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; padding-top: 75px; padding-bottom: 75px; background: #e9eae7; }
.learning-photo { aspect-ratio: 1; }
.possibility-list { display: grid; gap: 24px; margin-top: 35px; }
.possibility-list > div { border-top: 1px solid #a9aeaa; padding-top: 19px; }
.possibility-list h3 { font-size: 23px; line-height: 1.2; }
.possibility-list p { color: #4e5450; font-size: 14px; max-width: 48ch; margin-top: 10px; }
.contact-section { padding-top: 115px; padding-bottom: 115px; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.contact-intro p { max-width: 36ch; color: var(--muted); margin-top: 25px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: block; font-size: 12px; }
input, textarea { display: block; width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid #999f99; padding: 12px 0; font-size: 15px; border-radius: 0; outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: 2px solid #555c58; }
textarea { margin-bottom: 25px; resize: vertical; }
input { margin-bottom: 30px; }
textarea::placeholder { color: #6a716b; opacity: 1; }
.prototype-note { font-size: 11px; color: #616761; margin-top: 13px; }
.enquiry-preview { margin-top: 20px; padding: 18px 20px; background: #e5e8e2; font-size: 14px; }
.enquiry-preview strong { display: block; margin-bottom: 10px; font-weight: 500; }
.enquiry-preview p { white-space: pre-wrap; overflow-wrap: anywhere; }
.site-footer { padding-block: 45px 35px; border-top: 1px solid var(--rule); }
.footer-brand { display: block; }
.footer-brand img { width: 100%; max-height: 130px; object-fit: contain; object-position: left; }
.site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 35px; font-size: 12px; }
.site-footer > div > span { color: var(--muted); }
.site-footer a:last-child { text-decoration: none; display: inline-flex; gap: 16px; align-items: center; }

@media (min-width: 1720px) { .hero { max-width: 1692px; margin-inline: auto; } }
@media (max-width: 1100px) {
  nav { gap: 22px; }
  .hero { height: 750px; }
  .hero-copy { padding-top: 50px; }
  .art-window { inset: 215px 0 0; }
  .hero-links > a { padding-inline: 20px 35px; }
  .round-arrow { right: 13px; }
  .workflow-copy { padding-right: 30px; }
  .example-panel { grid-template-columns: 52% 48%; }
  .services { grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); }
  .services-intro { padding-right: 20px; }
  .possibility-list { gap: 30px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 25px; }
  .site-header { height: 74px; }
  .brand-symbol { width: 28px; height: 28px; }
  .brand-name { width: 150px; height: 20px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 40px; height: 40px; border: 0; background: transparent; }
  .menu-toggle span { display: block; height: 1px; width: 24px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  nav { display: none; position: absolute; left: 0; right: 0; top: 74px; background: var(--paper); padding: 25px var(--page-gutter) 30px; border-bottom: 1px solid var(--rule); align-items: stretch; gap: 24px; }
  nav.open { display: flex; flex-direction: column; }
  nav .button { align-self: flex-start; }
  .hero { margin: 0 9px; min-height: 690px; height: 690px; }
  .hero-copy { padding: 35px 14px 0; }
  h1 { font-size: clamp(40px, 7.8vw, 59px); }
  .hero-copy p { font-size: 14px; max-width: 36ch; margin: 20px auto; }
  .desktop-break { display: none; }
  .hero-copy .button { min-height: 44px; font-size: 12px; padding: 10px 18px; }
  .art-window { inset: 230px 0 0; }
  .art-movement { top: -70px; width: 145%; left: -22.5%; }
  .art-movement img { object-position: center 75%; }
  .motion-toggle { bottom: 34px; font-size: 10px; right: 16px; }
  .ribbon-controls { bottom: 34px; left: 16px; }
  .shape-toggle { font-size: 11px; padding: 8px 11px; }
  .ribbon-hint { display: none; }
  .hero-links { bottom: auto; top: 100%; left: 13px; right: 13px; grid-template-columns: 1fr; }
  .hero-links > a { min-height: auto; padding: 16px 44px 16px 18px; }
  .hero-links > a + a { border-left: 0; border-top: 1px solid #e2e4e1; }
  .hero-links > a > span:not(.round-arrow) { margin-top: 4px; font-size: 12px; }
  .hero-links strong { font-size: 17px; }
  .round-arrow { top: 28px; right: 20px; }
  .approach { grid-template-columns: 1fr; gap: 35px; padding-top: 340px; padding-bottom: 75px; }
  h2 { font-size: clamp(35px, 7vw, 50px); }
  .approach-copy p:first-child { font-size: 21px; }
  .approach-copy p + p { font-size: 15px; }
  .section-intro { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 30px; }
  .section-intro p { font-size: 15px; max-width: 36ch; }
  .example-panel { display: block; border-radius: 12px; padding-bottom: 65px; }
  .pattern-window { min-height: 320px; }
  .workflow-copy { padding: 0 26px 30px; }
  .workflow-state h3 { font-size: 30px; }
  .workflow-state { min-height: 95px; }
  .sample-record { max-width: none; margin-bottom: 22px; }
  .workflow-steps { left: 20px; right: 20px; }
  .workflow-steps button { padding: 18px 5px; font-size: 11px; }
  .workflow-steps button span { display: block; margin-bottom: 3px; margin-right: 0; }
  .example-section { padding-bottom: 75px; }
  .services { grid-template-columns: 1fr; gap: 40px; padding-top: 0; padding-bottom: 75px; }
  .services-intro { padding-right: 0; }
  .service-list { padding: 0; }
  .service-list summary { gap: 20px; min-height: 85px; }
  .service-list summary h3 { font-size: 31px; }
  .service-content { padding-left: 35px; padding-right: 15px; }
  .service-content > p { font-size: 15px; }
  .service-content h4 { font-size: 21px; }
  .possibilities { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 55px; }
  .learning-photo { grid-row: 2; }
  .possibility-list { grid-template-columns: 1fr; gap: 30px; margin-top: 37px; }
  .possibility-list h3 { font-size: 25px; }
  .contact-section { grid-template-columns: 1fr; gap: 40px; padding-block: 75px; }
  .contact-intro p { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { padding-top: 30px; }
  .site-footer > div { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; }
.arrow { transition: transform var(--feedback-duration) var(--ease-out); }
.button { transition: background var(--feedback-duration), transform 120ms var(--ease-out); }
.button:active { transform: translateY(1px); }
.expand-icon::after { transition: transform 230ms var(--ease-out); }
details[open].is-collapsing .expand-icon::after { transform: rotate(90deg); }
.shape-toggle, .motion-toggle { min-height: 36px; }
@media (hover: hover) {
  .button:hover .arrow, .text-link:hover .arrow, .hero-links > a:hover .arrow { transform: translateX(4px); }
}
.motion-paused .arrow, .motion-paused .button, .motion-paused .expand-icon::after { transition: none; }
.motion-paused .arrow, .motion-paused .button:active { transform: none !important; }

@media (max-width: 760px) {
  .shape-toggle, .motion-toggle { min-height: 42px; }
}

.service-links { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.needs-info { background: #fff1a8; color: #191a1b; padding: 1px 5px; border-radius: 3px; font-style: normal; font-weight: 500; }

/* Pixel-square artwork (pixels.js) */
.pixel-art { display: block; width: 100%; height: 100%; }
.art-window .pixel-art { position: absolute; inset: 0; }
.pixel-tile { overflow: hidden; }
.pixel-tile .pixel-art { border-radius: inherit; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Home hero (chosen 24 November 2026). Desktop: headline on the left, the pixel logo forms on the right.
   Phones: the logo forms above the centred headline. The canvas fills the hero; pixels.js fits the logo
   into .logo-slot and reads --hero-field for where the grey squares gather. The stage stops above the link panels. */
.hero.home-hero { height: clamp(640px, min(52vw, 100svh + 30px), 800px); min-height: 0; --hero-field: right; }
.home-hero .hero-canvas { position: absolute; inset: 0; }
.home-hero .hero-stage { position: absolute; inset: 0 4.8% 122px; z-index: 2; display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: 3%; align-items: center; }
.home-hero .hero-copy { padding: 0; text-align: left; grid-column: 1; grid-row: 1; }
.home-hero h1 { font-size: clamp(46px, 4.5vw, 74px); }
.home-hero .hero-copy p { margin: 24px 0 30px; }
.home-hero .logo-slot { grid-column: 2; grid-row: 1; height: 70%; pointer-events: none; }
.home-hero .hero-copy { position: relative; }
.scroll-cue { position: absolute; left: 2px; top: calc(100% + 34px); width: 12px; height: 46px; color: var(--ink, #111); opacity: 0; transition: opacity 600ms ease; }
.scroll-cue::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 1px; width: 1px; background: currentColor; }
.scroll-cue::after { content: ""; position: absolute; left: 1px; bottom: 2px; width: 8px; height: 8px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(45deg); }
.logo-formed .scroll-cue { opacity: 1; animation: cue-bounce 1.6s ease-in-out infinite; }
.motion-paused .scroll-cue { animation: none; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (max-width: 760px) {
  .hero.home-hero { height: 690px; --hero-field: sides; }
  .home-hero .hero-stage { inset: 0 14px 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .home-hero .hero-copy { text-align: center; }
  .home-hero h1 { font-size: clamp(40px, 7.8vw, 59px); }
  .home-hero .hero-copy p { margin: 20px auto; }
  .home-hero .logo-slot { flex: 0 0 auto; width: 100%; height: 160px; margin-bottom: 26px; }
  .scroll-cue { display: none; }
}
