:root {
  color-scheme: dark;
  --black: #050505;
  --panel: #0a0a0a;
  --white: #f2f2ed;
  --grey: #9b9b96;
  --line: #2b2b2a;
  --accent: #d7fa64;
  --narrow: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--black); scroll-behavior: smooth; }
body { margin: 0; overflow: hidden; background: var(--black); color: var(--white); font: 15px/1.45 var(--sans); }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 9px 12px; background: var(--accent); color: var(--black); transform: translateY(-160%); }
.skip:focus { transform: none; }

.topbar { position: fixed; z-index: 20; inset: 0 0 auto; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--black) 90%, transparent); backdrop-filter: blur(12px); }
.wordmark img { width: clamp(180px, 16vw, 224px); height: auto; }
.nav { display: flex; align-items: center; gap: clamp(24px, 3.2vw, 54px); color: #b9b9b4; font: 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.nav a { position: relative; padding-block: 8px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right .25s ease; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--white); }
.top-actions, .lang { display: flex; align-items: center; }
.top-actions { gap: 22px; }
.lang { gap: 7px; color: #686864; font-size: 10px; letter-spacing: .1em; }
.lang button { padding: 4px 0; border: 0; background: none; color: #777772; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--accent); }
.menu-toggle { display: none; width: 34px; height: 34px; padding: 8px 5px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: var(--white); transition: transform .2s; }

.rail { height: 100dvh; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: 0 0 100vw; width: 100vw; height: 100dvh; min-height: 620px; padding: 106px clamp(28px, 5.3vw, 84px) 48px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; border-right: 1px solid var(--line); }
.panel::before { content: ""; position: absolute; pointer-events: none; inset: 74px 0 0; background-image: linear-gradient(to right, transparent calc(25% - 1px), #ffffff07 25%, transparent calc(25% + 1px)), linear-gradient(to right, transparent calc(50% - 1px), #ffffff07 50%, transparent calc(50% + 1px)), linear-gradient(to right, transparent calc(75% - 1px), #ffffff07 75%, transparent calc(75% + 1px)); }
.panel-number { position: absolute; right: 4vw; top: 94px; color: #74746f; font: 10px/1 var(--sans); letter-spacing: .15em; }
.kicker { color: var(--accent); font: 10px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }

.panel-home { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: auto 1fr auto; align-items: center; gap: 20px 4vw; }
.panel-home > .kicker { grid-column: 1 / -1; align-self: start; }
.hero-lockup { align-self: center; max-width: 780px; }
.hero-overline { margin-bottom: 18px; color: #a8a8a3; font: 12px/1 var(--sans); letter-spacing: .25em; }
.hero-lockup h1 { font: 900 clamp(62px, 8.4vw, 140px)/.76 var(--narrow); letter-spacing: -.07em; }
.hero-lockup h1 span { display: block; padding-left: .42em; color: transparent; -webkit-text-stroke: 1px var(--white); }
.hero-studio { margin-top: 16px; font: 12px/1 var(--sans); letter-spacing: 1.05em; color: #8c8c87; }
.hero-copy { width: min(440px, 90%); margin-top: 28px; color: #b8b8b3; font-size: 16px; }
.craft-object { position: relative; display: grid; place-items: center; justify-self: center; width: min(38vw, 470px); aspect-ratio: 1; perspective: 800px; }
.craft-object::after { content: ""; position: absolute; width: 55%; height: 10%; bottom: 16%; border-radius: 50%; background: #d7fa6418; filter: blur(18px); }
.craft-cube { position: relative; z-index: 2; width: 155px; height: 155px; transform-style: preserve-3d; transform: rotateX(-19deg) rotateY(35deg); animation: cube-turn 12s infinite linear; }
.cube-face { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid #bdbdb5; background: #080808e8; font: 700 75px/1 var(--narrow); }
.face-front { transform: translateZ(77px); color: var(--white); }
.face-back { transform: rotateY(180deg) translateZ(77px); color: var(--accent); }
.face-right { transform: rotateY(90deg) translateZ(77px); color: var(--accent); }
.face-left { transform: rotateY(-90deg) translateZ(77px); color: var(--white); }
.face-top { transform: rotateX(90deg) translateZ(77px); background: #151515; }
.face-bottom { transform: rotateX(-90deg) translateZ(77px); background: #101010; }
.orbit { position: absolute; border: 1px solid #4a4a46; border-radius: 50%; transform: rotateX(66deg) rotateZ(-15deg); }
.orbit-one { width: 88%; height: 45%; }
.orbit-two { width: 64%; height: 30%; transform: rotateX(70deg) rotateZ(18deg); }
.primary-link { align-self: end; justify-self: start; display: flex; align-items: center; gap: 34px; border-bottom: 1px solid #777772; padding: 9px 0; font: 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.primary-link span:last-child { color: var(--accent); font-size: 19px; }
.gesture-hint { position: absolute; right: 4vw; bottom: 31px; color: #656560; font-size: 9px; letter-spacing: .13em; }
.gesture-hint b { color: var(--accent); margin-left: 14px; }

.panel-heading { position: absolute; z-index: 2; left: 5.3vw; top: 105px; width: min(32vw, 430px); }
.panel-heading h2 { margin-top: 8px; font: 900 clamp(65px, 8vw, 130px)/.82 var(--narrow); letter-spacing: -.07em; }
.panel-heading > p:last-child { max-width: 380px; margin-top: 20px; color: var(--grey); }
.project-grid { position: absolute; inset: 95px 5vw 44px 39%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.08fr .92fr; gap: 8px; }
.project-tile { position: relative; min-width: 0; overflow: hidden; border: 1px solid #3c3c39; background: #111; }
a.project-tile { transition: border-color .2s, transform .2s; }
a.project-tile:hover { z-index: 2; border-color: var(--accent); transform: scale(.993); }
.tile-index { position: absolute; z-index: 3; top: 11px; left: 12px; color: #d7d7d0; font-size: 9px; letter-spacing: .1em; }
.tile-copy { position: absolute; z-index: 3; right: 14px; bottom: 12px; left: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; text-shadow: 0 1px 12px #000; }
.tile-copy b { font: 700 clamp(20px, 2.3vw, 38px)/.9 var(--narrow); letter-spacing: -.04em; }
.tile-copy small { font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.tile-jonto { background: #253138; }
.tile-jonto img { width: 100%; height: 100%; object-fit: cover; opacity: .73; filter: grayscale(1) contrast(1.1); }
.tile-amara { background: #7d5b49; }
.tile-amara-photo { position: absolute; inset: 0; background: linear-gradient(to top, #1a0f13a8, transparent 65%), url("amara-cover.webp") center 45% / cover; filter: saturate(.65); transition: transform .5s; }
.tile-amara:hover .tile-amara-photo { transform: scale(1.03); }
.tile-deal { background: #eee; color: #090909; }
.deal-lines { position: absolute; inset: 18% 12%; display: grid; align-content: center; gap: 8px; transform: rotate(-7deg); }
.deal-lines i { display: block; height: 18px; background: #111; }
.deal-lines i:nth-child(2) { width: 78%; }
.deal-lines i:nth-child(3) { width: 53%; background: var(--accent); }
.deal-lines i:nth-child(4) { width: 87%; }
.tile-deal .tile-copy { text-shadow: none; }
.tile-statement { display: grid; grid-template-columns: 1fr auto 1fr; place-items: center; padding: 20px; color: #c9c9c4; font: 900 clamp(24px, 3.1vw, 50px)/1 var(--narrow); letter-spacing: -.08em; }
.tile-statement b { color: var(--accent); font-weight: 300; }

.panel-services { display: grid; grid-template-columns: 29% 1fr; gap: 6vw; align-items: center; }
.panel-heading.compact { position: relative; inset: auto; width: auto; }
.service-matrix { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-matrix article { min-height: 240px; padding: 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.service-matrix article:hover { background: #10120c; }
.service-matrix article > span { color: var(--accent); font-size: 9px; letter-spacing: .12em; }
.service-matrix h3 { margin-top: 50px; font: 700 clamp(21px, 2vw, 31px)/1 var(--narrow); letter-spacing: -.035em; }
.service-matrix p { margin-top: 13px; color: var(--grey); font-size: 13px; }

.panel-studio { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr auto; gap: 30px 6vw; align-items: center; }
.studio-title { position: absolute; inset: 0 0 auto; height: 42%; display: flex; align-items: center; justify-content: center; gap: 2vw; color: #111; font: 900 clamp(80px, 13vw, 220px)/1 var(--narrow); letter-spacing: -.08em; pointer-events: none; white-space: nowrap; }
.studio-title i { color: #1c2411; font-style: normal; }
.studio-copy { position: relative; z-index: 2; align-self: end; padding-bottom: 5vh; }
.studio-copy h2 { max-width: 650px; margin-top: 12px; font: 900 clamp(44px, 5.2vw, 88px)/.9 var(--narrow); letter-spacing: -.06em; }
.studio-copy > p:last-child { max-width: 590px; margin-top: 25px; color: #bababa; font-size: 16px; }
.process { position: relative; z-index: 2; align-self: end; list-style: none; padding: 0 0 4vh; margin: 0; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.process li > span { color: var(--accent); font-size: 9px; }
.process b, .process small { display: block; }
.process b { font: 700 18px/1.1 var(--narrow); }
.process small { margin-top: 4px; color: var(--grey); }
.stack { grid-column: 1 / -1; color: #72726d; font-size: 9px; letter-spacing: .15em; }

.panel-contact { display: grid; place-items: center; }
.panel-contact > .kicker { position: absolute; top: 105px; left: 5.3vw; }
.contact-lockup { width: min(1000px, 82vw); text-align: center; }
.contact-lockup h2 { font: 900 clamp(80px, 13vw, 210px)/.73 var(--narrow); letter-spacing: -.08em; }
.contact-lockup a { display: inline-flex; gap: 16px; margin-top: 50px; padding-bottom: 7px; border-bottom: 1px solid var(--white); font-size: clamp(18px, 2.1vw, 31px); }
.contact-lockup a span { color: var(--accent); }
.contact-lockup p { max-width: 560px; margin: 25px auto 0; color: var(--grey); }
.panel-contact footer { position: absolute; right: 5.3vw; bottom: 28px; left: 5.3vw; display: flex; justify-content: space-between; color: #6e6e69; font-size: 9px; letter-spacing: .12em; }

.progress { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: 2px; background: #1b1b19; }
.progress span { display: block; width: 20%; height: 100%; background: var(--accent); transition: width .15s linear; }

.case-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--white); background: var(--black); }
.case-dialog::backdrop { background: #000; }
.case-dialog[open] { display: grid; grid-template-columns: 1.18fr .82fr; }
.case-close { position: absolute; z-index: 3; top: 23px; right: 28px; width: 42px; height: 42px; border: 1px solid #555; border-radius: 50%; background: #090909; font-size: 26px; cursor: pointer; }
.case-close:hover { border-color: var(--accent); color: var(--accent); }
.case-visual { background: #181818 center / cover no-repeat; }
.case-visual[data-case="jonto"] { background-image: linear-gradient(#0002,#0002), url("jonto.svg"); background-size: contain; background-repeat: no-repeat; }
.case-visual[data-case="amara"] { background-image: linear-gradient(to top,#201014a3,transparent), url("amara-cover.webp"); }
.case-visual[data-case="deal"] { background: linear-gradient(140deg,#f2f2ed 0 48%,#d7fa64 48% 58%,#101010 58%); }
.case-info { align-self: center; padding: 8vw; }
.case-info h2 { margin-top: 15px; font: 900 clamp(55px, 7vw, 110px)/.83 var(--narrow); letter-spacing: -.07em; }
.case-info > p:not(.kicker) { max-width: 560px; margin-top: 30px; color: #b9b9b3; font-size: 16px; }
.case-info ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 24px 0 0; padding: 0; }
.case-info li { border: 1px solid #444; padding: 5px 8px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.case-info > a { display: inline-block; margin-top: 40px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); }

@keyframes cube-turn { to { transform: rotateX(-19deg) rotateY(395deg); } }

@media (max-width: 900px) {
  .panel { padding-inline: 4vw; }
  .panel-heading { left: 4vw; }
  .project-grid { left: 35%; right: 4vw; }
  .panel-services { grid-template-columns: 24% 1fr; gap: 4vw; }
  .service-matrix article { min-height: 220px; padding: 19px 15px; }
  .service-matrix h3 { margin-top: 42px; }
}

@media (max-width: 720px) {
  body { overflow: auto; }
  .topbar { height: 64px; padding-inline: 18px; }
  .wordmark img { width: 184px; }
  .nav { position: fixed; z-index: -1; inset: 64px 0 auto; display: grid; gap: 0; padding: 14px 20px 18px; border-bottom: 1px solid var(--line); background: #050505f7; opacity: 0; pointer-events: none; transform: translateY(-15px); transition: opacity .2s, transform .2s; }
  .nav.open { z-index: 19; opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid #202020; font-size: 12px; }
  .menu-toggle { display: block; }
  .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); }
  .top-actions { gap: 13px; }

  .rail { display: block; height: auto; overflow: visible; cursor: auto; scroll-snap-type: none; }
  .panel { width: 100%; height: auto; min-height: 100svh; padding: 88px 20px 46px; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-number { top: 78px; right: 20px; }
  .panel::before { inset: 64px 0 0; background-image: linear-gradient(to right, transparent calc(50% - 1px),#ffffff07 50%,transparent calc(50% + 1px)); }

  .panel-home { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 100svh; }
  .panel-home > .kicker { margin-top: 2px; padding-right: 80px; }
  .hero-lockup { order: 2; margin-top: 45px; }
  .hero-overline { margin-bottom: 12px; font-size: 9px; }
  .hero-lockup h1 { font-size: clamp(58px, 20vw, 86px); }
  .hero-lockup h1 span { padding-left: .24em; }
  .hero-studio { font-size: 9px; letter-spacing: .8em; }
  .hero-copy { width: 100%; margin-top: 22px; font-size: 14px; }
  .craft-object { order: 3; width: 100%; max-height: 300px; margin-top: 18px; }
  .craft-cube { width: 110px; height: 110px; }
  .cube-face { font-size: 50px; }
  .face-front { transform: translateZ(55px); }
  .face-back { transform: rotateY(180deg) translateZ(55px); }
  .face-right { transform: rotateY(90deg) translateZ(55px); }
  .face-left { transform: rotateY(-90deg) translateZ(55px); }
  .face-top { transform: rotateX(90deg) translateZ(55px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(55px); }
  .primary-link { order: 4; margin-top: auto; padding-top: 20px; }
  .gesture-hint { display: none; }

  .panel-work { min-height: auto; padding-bottom: 30px; }
  .panel-heading { position: relative; inset: auto; width: auto; padding-right: 30px; }
  .panel-heading h2 { font-size: 66px; }
  .panel-heading > p:last-child { margin-top: 14px; font-size: 13px; }
  .project-grid { position: relative; inset: auto; grid-template-columns: 1fr; grid-template-rows: none; margin-top: 28px; }
  .project-tile { min-height: 235px; }
  .tile-statement { min-height: 160px; font-size: 42px; }

  .panel-services { display: block; min-height: auto; }
  .panel-heading.compact { padding-right: 60px; }
  .service-matrix { grid-template-columns: 1fr; margin-top: 30px; }
  .service-matrix article { min-height: 0; padding: 20px 18px 23px; }
  .service-matrix h3 { margin-top: 22px; font-size: 25px; }

  .panel-studio { display: block; min-height: auto; }
  .studio-title { top: 105px; height: auto; font-size: 55px; }
  .studio-copy { margin-top: 110px; padding: 0; }
  .studio-copy h2 { font-size: 49px; }
  .studio-copy > p:last-child { font-size: 14px; }
  .process { margin-top: 34px; padding: 0; }
  .stack { margin-top: 28px; line-height: 2; }

  .panel-contact { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 100svh; }
  .panel-contact > .kicker { position: static; }
  .contact-lockup { width: 100%; margin-block: auto; text-align: left; }
  .contact-lockup h2 { font-size: clamp(70px, 23vw, 106px); }
  .contact-lockup a { margin-top: 38px; font-size: 18px; }
  .contact-lockup p { margin: 20px 0 0; font-size: 14px; }
  .panel-contact footer { position: static; display: grid; gap: 7px; margin-top: auto; }

  .progress { display: none; }
  .case-dialog[open] { display: block; overflow-y: auto; }
  .case-visual { min-height: 44svh; }
  .case-info { padding: 35px 22px 60px; }
  .case-info h2 { font-size: 60px; }
  .case-close { position: fixed; top: 13px; right: 13px; }
}

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

