:root {
  --black: #0b0b0b;
  --white: #f4f4f2;
  --grey: #8c8c87;
  --line: rgba(255, 255, 255, .14);
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: max(16px, 1.8vw);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--black); color: var(--white); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Display type: compressed, heavy, uppercase */
.d { font-stretch: 62%; font-weight: 900; text-transform: uppercase; line-height: .84; letter-spacing: -.01em; }
.d i { font-style: italic; }

/* ───────── Nav ───────── */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 50; padding: 12px var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--white); background: var(--black); border-bottom: 1px solid var(--line);
}
.mark { display: block; aspect-ratio: 513 / 70; color: inherit; overflow: visible; }
.logo { display: block; }
.logo .mark { height: 26px; width: auto; }
.links { display: flex; gap: 22px; }
.links a, .clock, .menu-btn, .pill, .btn, .lbl {
  font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; line-height: 1;
}
.links a { position: relative; padding: 4px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-r { justify-self: end; display: flex; gap: 10px; align-items: center; }
.clock { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid currentColor; padding: 9px 11px; font-variant-numeric: tabular-nums; }
.clock svg { width: 15px; height: 15px; }
.menu-btn { display: none; border: 1.5px solid currentColor; padding: 9px 12px; }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--black); display: flex; align-items: flex-end; padding: 0 var(--pad) 8vh; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu { overflow: hidden; }
.menu nav { max-width: 100%; }
.menu a { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: min(calc((100vw - 2 * var(--pad)) / 5.4), 150px); line-height: .88; overflow: hidden; }
.menu a span { display: inline-block; transform: translateY(100%); animation: up .7s var(--ease) forwards; }
.menu a:nth-child(2) span { animation-delay: .05s; }
.menu a:nth-child(3) span { animation-delay: .1s; }
.menu a:nth-child(4) span { animation-delay: .15s; }
.menu a:nth-child(5) span { animation-delay: .2s; }

/* ───────── Hero ───────── */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 90px var(--pad) 90px; overflow: hidden; }
.hero-h { font-size: min(10.2vw, 220px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.line { display: flex; align-items: center; justify-content: center; gap: .2em; white-space: nowrap; }
.m { display: inline-block; overflow: hidden; white-space: nowrap; padding: .02em .05em .04em; margin: -.02em -.05em -.04em; }
.m > span { display: inline-block; transform: translateY(105%); animation: up 1.1s var(--ease) forwards; }
.line:nth-child(1) .m:nth-child(2) > span { animation-delay: .08s; }
.line:nth-child(2) .m:nth-child(1) > span { animation-delay: .16s; }
.line:nth-child(2) .m:nth-child(3) > span { animation-delay: .24s; }
@keyframes up { to { transform: none; } }
.pic {
  position: relative; display: inline-block; width: .8em; height: .8em; flex: none;
  transform: scale(0) rotate(-12deg); animation: grow 1s .45s var(--ease) forwards;
}
@keyframes grow { to { transform: none; } }
.pic > * { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.pic > .on { opacity: 1; }
.hero-foot { position: absolute; left: var(--pad); bottom: 22px; font-size: 16px; color: #d8d8d4; max-width: 70vw; }
.down { position: absolute; right: var(--pad); bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid currentColor; transition: background-color .3s, color .3s; }
.down svg { width: 18px; height: 18px; }
.down:hover { background: var(--white); color: var(--black); }

/* ───────── Tiles (project artwork) ───────── */
.tile { position: relative; display: grid; place-items: center; }
.tile .ic { width: 100%; aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; box-shadow: 0 0 0 1px rgba(127, 127, 127, .18); }
.tile .ic img, .tile .ic svg { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ───────── Reel ───────── */
.reel { padding: 8vh 0 10vh; display: grid; gap: 5vh; overflow: hidden; }
.track { display: flex; gap: 3vw; width: max-content; animation: slide 60s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 70s; }
.track .tile { width: 15vw; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; cursor: pointer; }
.track .tile .ic { transition: transform .6s var(--ease); }
.track .tile:hover .ic { transform: scale(1.08) rotate(-3deg); }
.track .tile .cap { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ───────── Capabilities ───────── */
.build { background: var(--white); color: var(--black); padding: 16vh var(--pad) 18vh; text-align: center; }
.pill { display: inline-block; border: 1.5px solid currentColor; padding: 8px 10px; margin-bottom: 4vh; }
.pill-dark { color: var(--white); }
.words { font-size: clamp(64px, 12vw, 230px); display: flex; flex-direction: column; align-items: center; }
.word { display: flex; align-items: center; gap: .12em; }
.word .w { display: inline-block; overflow: hidden; padding: .02em .04em; }
.word .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.word .img { height: .86em; aspect-ratio: 1; flex: none; clip-path: inset(50% 0 50% 0); transition: clip-path 1s .1s var(--ease); }
.word .img .tile { width: 100%; height: 100%; }
.word.in .w > span { transform: none; }
.word.in .img { clip-path: inset(0); }
.build-p { max-width: 560px; margin: 8vh auto 32px; font-size: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 70px;
  background: var(--black); color: var(--white); padding: 17px 18px; border: 1.5px solid var(--black);
  transition: background-color .3s, color .3s;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover { background: transparent; color: var(--black); }
.btn:hover span { transform: translateX(5px); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-light:hover { background: var(--black); color: var(--white); }

/* ───────── The name ───────── */
.origin { background: var(--white); color: var(--black); padding: 16vh var(--pad) 18vh; }
.origin-word { display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw; padding-bottom: 3vh; margin-bottom: 7vh; border-bottom: 1.5px solid var(--black); }
.origin-word .d { font-size: clamp(96px, 22vw, 420px); line-height: .78; }
.origin-word .ar { font-family: "Amiri", "Geeza Pro", serif; font-weight: 700; font-size: clamp(72px, 15vw, 280px); line-height: .9; }
.ar-in { font-family: "Amiri", "Geeza Pro", serif; font-weight: 400; font-size: 1.12em; }
.origin-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw; align-items: start; }
.origin-p { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.32; letter-spacing: -.012em; max-width: 30ch; }
.origin-p i, .r-word i { font-style: italic; }
.roots { list-style: none; border-top: 1.5px solid var(--black); }
.roots li { display: grid; gap: 8px; padding: 20px 0 22px; border-bottom: 1.5px solid rgba(0, 0, 0, .14); }
.roots .lbl { font-size: 14px; }
.r-word { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 26px; }
.r-word .ar-in { font-size: 34px; line-height: 1; }
.r-mean { font-size: 16px; color: #55554f; }

/* ───────── Index ───────── */
.index { padding: 14vh var(--pad) 16vh; position: relative; }
.index-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2vh; }
.index-head .pill { margin: 0; }
.index-count { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; color: var(--grey); }
.rows { list-style: none; border-top: 1.5px solid var(--line); }
.rows li { border-bottom: 1.5px solid var(--line); }
.row { width: 100%; display: grid; grid-template-columns: 1fr 220px 200px 30px; align-items: center; gap: 20px; padding: 14px 0 12px; text-align: left; transition: opacity .3s, padding-left .5s var(--ease); }
.rows:hover .row { opacity: .3; }
.rows .row:hover { opacity: 1; padding-left: 18px; }
.row .nm { font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 5.8vw, 104px); line-height: .88; }
.row .meta { font-size: 14.5px; color: #c9c9c4; }
.row .st { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 14px; color: var(--grey); }
.row .ar { font-size: 22px; justify-self: end; transition: transform .4s var(--ease); }
.row:hover .ar { transform: translateX(4px) rotate(-45deg); }
.peek {
  position: fixed; left: 0; top: 0; width: 180px; aspect-ratio: 1; z-index: 40; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .3s, scale .4s var(--ease);
}
.peek.on { opacity: 1; }
.peek .tile { width: 100%; height: 100%; }

/* ───────── Contact ───────── */
.contact {
  background: var(--black); color: var(--white); padding: 14vh var(--pad) 16vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: start;
}
.c-left { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 22px; }
.c-left .pill { margin-bottom: 0; align-self: flex-start; }
.c-title { font-size: clamp(46px, 5.2vw, 88px); }
.c-sub { font-size: 18px; color: #c9c9c4; max-width: 32ch; }
.contact .details { grid-template-columns: 1fr; gap: 18px; margin-top: 3vh; border-top-color: var(--line); }
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 14vh; text-align: left; border-top: 1.5px solid var(--black); padding-top: 22px; }
.details > div { display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.lbl { color: var(--grey); }
.cform { text-align: left; display: grid; gap: 30px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { display: flex; flex-direction: column; gap: 10px; border: 0; min-width: 0; }
.field .lbl { font-size: 15px; padding: 0; }
.field .lbl small { font-size: 13px; letter-spacing: 0; text-transform: none; font-stretch: 100%; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 22px; color: var(--black); background: transparent; width: 100%;
  border: 0; border-bottom: 1.5px solid var(--black); border-radius: 0; padding: 8px 0 10px; outline: none; resize: vertical;
  transition: border-color .2s;
}
.field textarea { min-height: 140px; line-height: 1.4; }
.field input:focus, .field textarea:focus { border-bottom-width: 3px; padding-bottom: 8.5px; }
.field.bad input, .field.bad textarea { border-bottom-color: #d4361c; }
.field.bad .lbl { color: #d4361c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; border: 1.5px solid var(--black); padding: 10px 14px;
  font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1;
  transition: background-color .2s, color .2s;
}
.chip:hover span { background: rgba(0, 0, 0, .06); }
.chip input:checked + span { background: var(--black); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.f-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.f-foot .btn:disabled { opacity: .5; cursor: wait; }
.f-status { font-size: 16px; }
.f-status[data-kind="err"] { color: #d4361c; }
/* Form on the dark contact section */
.contact .field input, .contact .field textarea { color: var(--white); border-bottom-color: rgba(255, 255, 255, .45); }
.contact .field input:focus, .contact .field textarea:focus { border-bottom-color: var(--white); }
.contact .field.bad input, .contact .field.bad textarea { border-bottom-color: #ff7a5c; }
.contact .field.bad .lbl, .contact .f-status[data-kind="err"] { color: #ff7a5c; }
.contact .chip span { border-color: rgba(255, 255, 255, .55); }
.contact .chip:hover span { background: rgba(255, 255, 255, .08); }
.contact .chip input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.contact .chip input:focus-visible + span { outline-color: var(--white); }
#navClock { display: inline-block; font-variant-numeric: tabular-nums; }
.details a, .link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-align: left; font-size: 18px; }

/* ───────── Footer ───────── */
.foot { border-top: 1.5px solid var(--line); padding: 56px var(--pad) 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.foot-logo { grid-column: 1 / -1; width: min(381px, 100%); height: auto; margin-bottom: 28px; }
.foot-contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px 64px; font-style: normal; margin-bottom: 30px; }
.foot-contact div { display: flex; flex-direction: column; gap: 8px; }
.foot-contact a { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 6px; text-decoration-thickness: 1.5px; transition: text-decoration-color .2s; }
.foot-contact a:hover { text-decoration-color: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a, .foot-c { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-c { color: var(--grey); }

/* ───────── Drawer ───────── */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .4s; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(720px, 100%); overflow-y: auto;
  background: var(--white); color: var(--black); padding: 22px var(--pad) 60px;
  animation: slideIn .6s var(--ease);
}
.drawer.closing .drawer-panel { animation: slideOut .45s var(--ease) forwards; }
.drawer.closing .drawer-bg { animation: fade .45s reverse forwards; }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes slideOut { to { transform: translateX(100%); } }
.drawer-x { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; border: 1.5px solid currentColor; padding: 9px 11px; margin-bottom: 26px; }
.drawer-x:hover { background: var(--black); color: var(--white); }
.dr-title { font-size: clamp(56px, 10vw, 140px); margin-bottom: 14px; max-width: 100%; }
.dr-tag { font-size: 20px; margin-bottom: 26px; }
.dr-icon { width: 140px; margin-bottom: 26px; }
.dr-art { margin-bottom: 28px; }
.dr-art.shots { display: flex; gap: 10px; overflow-x: auto; aspect-ratio: auto; }
.dr-art.shots img { height: 380px; width: auto; flex: none; }
.dr-desc { font-size: 18px; margin-bottom: 30px; max-width: 58ch; }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; border-top: 1.5px solid var(--black); padding-top: 20px; }
.dr-grid h4 { font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 15px; color: var(--grey); margin-bottom: 10px; }
.dr-grid ul { list-style: none; display: grid; gap: 8px; font-size: 16px; }
.dr-grid li { padding-left: 18px; position: relative; }
.dr-grid li::before { content: "→"; position: absolute; left: 0; }
.dr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-tags span { border: 1.5px solid var(--black); padding: 5px 8px; font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 13px; }

/* ───────── Reveal ───────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .links, .clock { display: none; }
  .menu-btn { display: inline-block; }
  .nav { grid-template-columns: 1fr auto; }
  .row { grid-template-columns: 1fr auto; }
  .row .meta, .row .ar { display: none; }
  .details { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .c-left { position: static; }
  .origin-body { grid-template-columns: 1fr; gap: 48px; }
  .origin-word { flex-direction: column; align-items: flex-start; gap: 2vh; }
  .f-row { grid-template-columns: 1fr; }
  .dr-grid { grid-template-columns: 1fr; }
  .track .tile { width: 24vw; }
}
@media (max-width: 700px) {
  .hero-h { font-size: 15.5vw; }
  .pic { width: .8em; }
  .line { flex-wrap: wrap; white-space: normal; column-gap: .2em; }
}
@media (max-width: 560px) {
  .logo .mark { height: 22px; }
  .hero-foot { max-width: calc(100vw - 100px); font-size: 14px; }
  .btn { gap: 40px; }
}
@media (hover: none) { .peek { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .track { animation: none; }
}
