@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #191819;
  --accent: #6847ab;
  --light-accent: #c5abff;
  --header-height: 76px;
  --space: clamp(4rem, 7vw, 7rem);
  --display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); overscroll-behavior-y: none; background: #161616; }
body { margin: 0; color: var(--ink); background: white; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
main section[tabindex="-1"]:focus-visible { outline: none; }
.skip { position: fixed; z-index: 5; left: 1rem; padding: .7rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  color: #000;
  background: #fff;
}
.header.over-hero {
  color: #fff;
  background: transparent;
  top: var(--header-lift, 0px);
}
.header.over-hero:has(:focus-visible, .menu[aria-expanded="true"]) { top: 0; }
.header.over-hero :focus-visible { outline-color: var(--light-accent); }
.header.enter-content { animation: header-enter .36s ease-out; }
@keyframes header-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.header-inner, .narrow { width: min(90%, 69rem); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 1rem; }
.brand { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.04em; text-transform: uppercase; }
.header-brand { display: inline-grid; align-content: center; gap: .18rem; min-height: 44px; font: 400 clamp(1.3rem, 2.3vw, 1.85rem)/1 'Montserrat', sans-serif; white-space: nowrap; }
.wordmark { display: flex; align-items: baseline; gap: .16em; }
.wordmark strong { font-weight: 700; letter-spacing: -.025em; }
.wordmark > span { letter-spacing: .025em; }
.wordmark-caption {
  display: grid;
  grid-template-columns: minmax(.7em, 1fr) auto;
  align-items: center;
  gap: .65em;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wordmark-caption::before { content: ""; height: 2px; background: currentColor; }
#site-nav { display: flex; gap: 0; font: 400 13px 'Montserrat', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
#site-nav a { position: relative; margin-inline: 15px; }
#site-nav a[aria-current="location"]::after { opacity: .72; }
#site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .4s ease-in-out;
}
#site-nav a:hover::after,
#site-nav a:focus-visible::after,
#site-nav a[aria-current="location"]::after { transform: scaleX(1); }
footer a:hover { text-decoration: underline; text-underline-offset: .35em; }
.menu { display: none; }
h1, h2, h3, p { margin: 0; }
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; isolation: isolate; overflow: hidden; padding: 6rem 1rem 4rem; color: white; text-align: center; background: #161616; }
.hero-art, .contact-art { position: absolute; inset: 0; z-index: -1; }
.hero-art { overflow: hidden; }
.hero-wallpaper {
  position: absolute;
  inset: 0;
  animation: wallpaper-drift 22s ease-in-out infinite alternate;
  translate: var(--wallpaper-x, 0%) var(--wallpaper-y, 0%);
  transition: translate .45s ease-out;
}
.hero-fill {
  position: absolute;
  inset: -3rem;
  background: var(--image, none) center / cover;
  filter: blur(2px) brightness(.72);
}
.hero-wallpaper::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(86%, 108svh);
  aspect-ratio: 25 / 18;
  background: var(--image, none) center / contain no-repeat;
  filter: brightness(.78);
  mask-image:
    linear-gradient(to right, transparent 2%, #0002 8%, #0008 16%, #000e 24%, #000 30%, #000 70%, #000e 76%, #0008 84%, #0002 92%, transparent 98%),
    linear-gradient(to bottom, transparent 2%, #0002 7%, #0008 13%, #000e 20%, #000 26%, #000 74%, #000e 80%, #0008 87%, #0002 93%, transparent 98%);
  mask-composite: intersect;
  translate: -50% -50%;
}
@keyframes wallpaper-drift {
  from { transform: scale(1.035); }
  to { transform: translate(-1.5%, 1%) scale(1.13); }
}
.hero-art::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: radial-gradient(ellipse at center, #0004 15%, #0008 65%, #000b 100%);
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url('waye/film-grain-slow.gif') repeat top left;
  mask-image: linear-gradient(transparent var(--header-height), #000 calc(var(--header-height) + 64px));
  opacity: .04;
  pointer-events: none;
}
.contact-art {
  background: var(--image, none) left 42% / cover;
  filter: grayscale(1);
}
.hero-copy { opacity: var(--hero-opacity, 1); }
.hero-copy.enter > * { animation: enter .8s ease .6s both; }
.label { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .99; }
h1 { font-size: clamp(2.75rem, 10vw, 9rem); letter-spacing: -.035em; margin: .23em 0; }
h2 { font-size: clamp(2.1rem, 5.2vw, 4.75rem); letter-spacing: -.035em; }
.button { display: inline-flex; justify-content: center; padding: .72rem 1.4rem; border: 1px solid #fffa; background: #16161685; color: white; font-size: .875rem; font-weight: 700; }
.button:hover { background: white; color: var(--ink); }
.hero-rule {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 50px;
  pointer-events: none;
}
.hero-rule::before, .divider::before {
  content: "";
  display: block;
  width: 100%;
  background: white;
  transform-origin: bottom;
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { height: 0; }
  50% { height: 100%; transform: scaleY(1); }
  70% { height: 100%; transform: scaleY(.5); }
  100% { height: 100%; transform: scaleY(0); }
}
.divider { display: block; width: 1px; height: clamp(2rem, 5vw, 4.25rem); margin: 2.5rem auto 0; }
.divider::before { background: #bbb; }
.about, .work, .process { text-align: center; }
.about { padding-top: var(--space); }
.section-title { margin-bottom: clamp(1.4rem, 3vw, 2.5rem); }
.section-title .label { margin-top: .75rem; color: #605b64; }
@media (prefers-reduced-motion: no-preference) {
  .section-enter { animation: section-enter .6s ease-out; }
}
@keyframes section-enter {
  from { opacity: .25; transform: translateY(.75rem); }
  to { opacity: 1; transform: translateY(0); }
}
.about > p { max-width: 76ch; margin: 0 auto 1.05rem; line-height: 1.6; color: #524f55; }
.work { padding: var(--space) clamp(1rem, 2vw, 2rem); }
.projects { display: grid; gap: clamp(1rem, 3vw, 2rem); max-width: 74rem; margin-inline: auto; isolation: isolate; }
.project-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; background: white; }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ddd; background: white; color: #1e1b22; text-align: left; }
.project-preview { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; background: #26232a; }
.project-image { display: block; width: 100%; height: auto; }
.project-preview > .project-image { height: 100%; object-fit: contain; }
.project-preview > :is(.project-image, .project-devices) { transition: transform .6s ease; }
.project-preview:is(:hover, :focus-visible) > :is(.project-image, .project-devices) { transform: scale(1.035); }
.project-devices {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background: radial-gradient(ellipse at 46% 38%, #68402b 0%, #37231c 56%, #201512 100%);
}
.project-monitor, .project-tablet {
  position: absolute;
  box-sizing: border-box;
  background: #201a1a;
  border: 1px solid #8f776b;
  box-shadow: 0 .8rem 1.7rem #120a08a0;
}
.project-monitor {
  inset: 18% auto auto 7%;
  width: 76%;
  aspect-ratio: 16 / 10;
  padding: 1.3% 1.1% 3.4%;
  border-radius: 2% / 3%;
}
.project-monitor::before, .project-monitor::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); }
.project-monitor::before { width: 16%; height: 17%; top: 100%; background: linear-gradient(#3c3533, #6e5d55); }
.project-monitor::after { width: 34%; height: 3%; top: 116%; border-radius: 70% 70% 18% 18%; background: #7d6e68; }
.project-tablet {
  inset: auto 7% 11% auto;
  width: 28%;
  aspect-ratio: 3 / 4;
  padding: 1%;
  overflow: hidden;
  border-radius: 7% / 5%;
  background: #161313;
}
.project-devices img { width: 100%; height: 100%; object-fit: cover; }
.project-tablet img { object-position: 49% center; border-radius: 5% / 4%; }
.project-preview:focus-visible img { transform: scale(1.035); }
.project-preview:focus-visible { outline-offset: -4px; }
.project-caption { display: flex; flex: 1; flex-direction: column; gap: .35rem; padding: clamp(.9rem, 3vw, 1.5rem); }
.project-caption > span { font: 400 .875rem 'Oswald', sans-serif; color: #59545e; }
.project-caption h3 { font: 600 clamp(1.35rem, 2.9vw, 2rem)/1.2 'Oswald', sans-serif; margin: 0; }
.project-caption p { margin: .25rem 0 .55rem; line-height: 1.55; }
.project-link { display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; margin-top: auto; color: #38254c; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.services { display: grid; grid-template-columns: 1fr 1fr; background: #f4f3f5; }
.service-art { min-height: 22rem; background: var(--image, none) center 18% / cover #242326; filter: grayscale(1); }
.service-copy { align-self: center; padding: clamp(2rem,6vw,6rem); }
.service-copy ul { padding-left: 1.3rem; margin: 0; line-height: 1.65; }
.process { padding-block: var(--space); }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; padding: 0; margin: 0; text-align: left; list-style: none; }
.process li { display: flex; gap: .9rem; align-items: flex-start; cursor: pointer; }
.step-number { font-family: var(--display); color: var(--accent); font-size: 3.6rem; line-height: .95; }
.process h3 { text-transform: uppercase; font-size: 1rem; margin-bottom: .45rem; }
.step-description {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #524f55;
  font: inherit;
  line-height: 1.5;
  text-align: left;
  cursor: inherit;
}
.step-description > span { grid-area: 1 / 1; }
.step-alternate,
.step-description[aria-pressed="true"] .step-default { visibility: hidden; }
.step-description[aria-pressed="true"] .step-alternate { visibility: visible; }
@media (hover: hover) {
  .process li:hover .step-default { visibility: hidden; }
  .process li:hover .step-alternate { visibility: visible; }
}
.contact { background: #101011; padding: clamp(1rem,6vw,6rem); color: white; text-align: center; }
.contact-panel {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem,6vw,6rem) 1rem;
  background: radial-gradient(ellipse at 86% 16%, #2c2039, transparent 62%), #18161b;
}
.contact-art { opacity: .24; mask-image: linear-gradient(105deg, #000 8%, #0007 48%, transparent 88%); }
.contact-art::after { content: ''; position: absolute; inset: 0; background: url('waye/film-grain-slow.gif') repeat; opacity: .25; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .contact-art::after { display: none; }
}
.contact-video { width: 100%; height: 100%; object-fit: cover; object-position: 40% center; opacity: 0; }
.contact-video.is-ready { opacity: 1; }
.contact .label { color: #fff; }
.enquiry { width: min(100%, 38rem); margin: 1.5rem auto 0; text-align: left; }
#enquiry-chat { max-height: min(26rem, 55vh); overflow-y: auto; scrollbar-width: none; overscroll-behavior-y: contain; display: grid; gap: .7rem; list-style: none; padding: .65rem 0; margin: 0 0 1rem; }
#enquiry-chat li { justify-self: start; white-space: pre-wrap; overflow-wrap: anywhere; width: 100%; padding: .7rem .9rem; line-height: 1.5; background: #2b282f; border-radius: .25rem .9rem .9rem .9rem; }
#enquiry-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.enquiry-typing { display: inline-flex; gap: .3rem; padding: .35rem 0; }
.enquiry-typing i { width: .38rem; height: .38rem; border-radius: 50%; background: #decaff; animation: enquiry-dot .75s ease-in-out infinite alternate; }
.enquiry-typing i:nth-child(2) { animation-delay: .15s; }
.enquiry-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes enquiry-dot { from { opacity: .35; } to { opacity: 1; transform: translateY(-.15rem); } }
.enquiry-speaker { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 700; color: #decaff; }
#enquiry-chat .visitor { justify-self: end; width: fit-content; max-width: min(88%, 31rem); background: #493063; border-radius: .9rem .25rem .9rem .9rem; }
#enquiry-form label { display: block; margin-bottom: .45rem; }
#enquiry-form :is(textarea, input) { display: block; width: 100%; padding: .7rem; border: 1px solid #bbb; background: #1e1c22; color: white; font: inherit; }
#enquiry-form :is(textarea, input):focus { outline: 2px solid #fff; outline-offset: -2px; }
#enquiry-form [aria-invalid="true"]:focus { outline-color: var(--light-accent); }
#enquiry-form:has([aria-invalid="true"]) #enquiry-status { padding: .7rem .9rem; border-inline-start: 2px solid var(--light-accent); border-radius: .25rem; background: #2b2334; color: #eadbff; }
#enquiry-form textarea { resize: vertical; }
#enquiry-form [hidden] { display: none; }
.enquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: .85rem; }
.enquiry-actions:has(.enquiry-verification:not([hidden])) > .button { flex: 1 1 0; min-width: 0; padding-inline: .5rem; text-align: center; white-space: normal; }
.enquiry-verification { pointer-events: none; }
#enquiry-check { display: flex; justify-content: flex-end; }
.enquiry-reset { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff50; border-radius: 50%; background: transparent; color: white; font: 1.4rem/1 system-ui; cursor: pointer; }
.enquiry-reset:hover { background: #ffffff17; }
#enquiry-check:not(:empty), #enquiry-status:not(:empty) { margin-top: .75rem; }
footer { display: grid; justify-items: center; gap: .8rem; padding: 2.5rem 1rem; }
dialog { width: min(91%, 44rem); max-height: calc(100dvh - 7.5rem); padding: 0; border: 0; border-radius: .65rem; }
dialog::backdrop { background: #15131bca; }
.close, #project-link { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #bbb; border-radius: .45rem; background: white; font: 1.4rem/1 system-ui; text-decoration: none; cursor: pointer; }
.close {
  position: fixed;
  z-index: 1;
  top: .65rem;
  right: max(4.5vw, calc((100vw - 44rem) / 2));
  border-color: #ffffffa6;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#project-link { margin-top: .75rem; }
.close:hover { background: #ffffff24; }
#project-link:hover { background: #f2edf7; }
.dialog-copy { padding: 1.4rem; }
.dialog-copy h2 { margin: .15em 0; }
.dialog-copy p { line-height: 1.5; }
@keyframes enter { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .menu { display: grid; gap: 4px; padding: 10px; background: none; color: inherit; border: 0; }
  .menu span { width: 22px; height: 2px; background: currentColor; }
  #site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: .5rem 5%;
    background: white;
    color: black;
    text-shadow: none;
  }
  #site-nav a { width: fit-content; margin: 0; padding: 10px 15px; }
  #site-nav a::after { inset: auto 15px 5px; }
  #site-nav :focus-visible { outline-color: var(--accent); }
  .menu[aria-expanded="true"] + #site-nav { display: grid; }
}
@media (max-width: 660px) {
  .services, .process ol { grid-template-columns: 1fr; }
  .service-art { min-height: 14rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-rule::before, .divider::before { height: 100%; }
  .hero-grain { display: none; }
}

/* Typography and bracket controls from the Waye reference. */
:root { --display: 'Oswald', sans-serif; font-family: 'Raleway', sans-serif; }
h1, h2, .brand { font-weight: 700; }
.label { font-family: 'Oswald', sans-serif; }
.step-number { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.hero h1 { font-size: clamp(3rem, 9vw, 115px); letter-spacing: -.02em; }
.hero .label { font-weight: 400; letter-spacing: .15em; }
.button {
  position: relative;
  min-height: 38px;
  align-items: center;
  padding: 0 46px;
  border: 0;
  background: transparent;
  color: white;
  text-transform: uppercase;
  font: 500 10px 'Raleway', sans-serif;
  letter-spacing: .1em;
}
.button:hover { background: transparent; color: white; }
.button::before, .button::after {
  content: "";
  position: absolute;
  top: 0;
  box-sizing: border-box;
  width: 15px;
  height: 100%;
  border: 1px solid currentColor;
  pointer-events: none;
  transition: width .5s linear;
}
.button::before { left: 0; border-right: 0; }
.button::after { right: 0; border-left: 0; }
.button:hover::before, .button:hover::after,
.button:focus-visible::before, .button:focus-visible::after { width: 100%; }
@media (min-width: 1920px) {
  .hero-rule { height: 60px; }
  .button { min-height: 47px; font-size: 11px; letter-spacing: .25em; }
  .button::before, .button::after { width: 20px; }
}
.cursor-accent {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor-accent::before, .cursor-accent::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor-accent::before {
  left: var(--ring-x, 0px);
  top: var(--ring-y, 0px);
  transition: scale .24s ease-out;
  width: 3rem;
  height: 3rem;
  border: 1px solid #bb252f;
}
.cursor-accent::after {
  left: var(--dot-x, 0px);
  top: var(--dot-y, 0px);
  width: .6rem;
  height: .6rem;
  background: #bb252f;
}
.cursor-accent.is-hovering::before { scale: 1.1; }

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .cursor-accent { display: none; }
}

@media (max-width: 660px) {
  .project-row { display: contents; }
}
.projects :is(button, a) { scroll-margin-top: calc(var(--header-height) + 1rem); }
@media (min-width: 661px) and (prefers-reduced-motion: no-preference) {
  .project-row {
    position: sticky;
    top: min(calc(var(--header-height) + 1rem), calc(100svh - var(--project-height, 100svh) - 1rem));
  }
}
@media (max-width: 660px) and (prefers-reduced-motion: no-preference) {
  .project-card {
    position: sticky;
    top: min(calc(var(--header-height) + 1rem), calc(100svh - var(--project-height, 100svh) - 1rem));
  }
}
.projects:has(:is(.project-preview, .project-link):focus-visible) :is(.project-row, .project-card) {
  position: static;
}
