/* DONK. site styles — matched to the original Squarespace layout
   (desktop measured at 1440px: 4vw side margins, 106px header,
    4-column grid; mobile below 768px). */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #d9d9d9;
  --line: rgba(217, 217, 217, .55);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 4vw;           /* page side margin (58px at 1440) */
  --header-h: 106px;
  --col-gap: 4.17vw;       /* gap between the two columns (60px at 1440) */
  --label: #808080;
  color-scheme: dark;
}
@media (max-width: 767px) {
  :root { --gutter: 6vw; --header-h: 82px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---------- header ---------- */
header { position: absolute; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 10; }
.header-inner {
  position: absolute; top: 37px; left: var(--gutter); right: var(--gutter); height: 31px;
  display: flex; align-items: center; justify-content: space-between;
}
.header-title-logo img { width: 89px; height: 31px; }
.header-nav { display: flex; gap: 9px; }
.header-nav a, .filter-bar button {
  font: 700 11.68px/20px var(--font); text-transform: uppercase; color: var(--fg); text-decoration: none;
}
.header-nav a[aria-current="page"], .header-nav a:hover {
  background: linear-gradient(var(--fg), var(--fg)) 0 100% / 100% 1px no-repeat;
}
.header-burger { display: none; width: 34px; height: 34px; margin-right: -4px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.header-burger span, .header-burger::before, .header-burger::after {
  content: ""; position: absolute; left: 4px; right: 4px; height: 1px; background: var(--fg); transition: transform .3s, opacity .3s;
}
.header-burger::before { top: 11px; } .header-burger span { top: 17px; } .header-burger::after { top: 23px; }
.menu-open .header-burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .header-burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-open .header-burger span { opacity: 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 9; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font: 700 54px/1 var(--font); text-transform: uppercase; text-decoration: none; }

@media (max-width: 767px) {
  .header-inner { top: 27px; left: 6vw; right: 6vw; height: 28px; }
  .header-title-logo img { width: 80px; height: 28px; }
  .header-nav { display: none; }
  .header-burger { display: block; }
}

/* ---------- homepage grid ---------- */
#page { padding-top: var(--header-h); }
body:has(.filter) #page { min-height: 100vh; }
.header-right { position: relative; display: flex; align-items: center; }

/* filter dropdown (homepage only), sits under the main navigation */
.filter { position: absolute; top: calc(100% + 6px); right: 0; }
.filter-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 11.68px/20px var(--font); text-transform: lowercase; color: rgba(255, 255, 255, .5);
  transition: color .2s;
}
.filter-toggle:hover, .filter-toggle:focus-visible, .filter-toggle[aria-expanded="true"] { color: var(--fg); }
.filter-toggle:hover .filter-label, .filter-toggle[aria-expanded="true"] .filter-label {
  background: linear-gradient(var(--fg), var(--fg)) 0 100% / 100% 1px no-repeat;
}
.filter-icon { position: relative; width: 9px; height: 9px; }
.filter-icon::before, .filter-icon::after { content: ""; position: absolute; background: currentColor; transition: transform .25s; }
.filter-icon::before { left: 0; right: 0; top: 4px; height: 1px; }
.filter-icon::after { top: 0; bottom: 0; left: 4px; width: 1px; }
.filter-toggle[aria-expanded="true"] .filter-icon::after { transform: scaleY(0); }
.filter-panel {
  position: absolute; top: calc(100% + 8px); right: -16px; z-index: 20; min-width: 150px;
  background: #000; padding: 12px 16px 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s;
}
.filter-panel[hidden] { display: flex; visibility: hidden; pointer-events: none; }
.filter.is-open .filter-panel { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.filter-panel button {
  background: none; border: 0; padding: 0; cursor: pointer; text-align: right;
  font: 700 11.68px/22px var(--font); text-transform: uppercase; color: var(--muted);
}
.filter-panel button:hover { color: var(--fg); }
.filter-panel button[aria-pressed="true"] { color: var(--fg); background: linear-gradient(var(--fg), var(--fg)) 100% 100% / 100% 1px no-repeat; }
@media (max-width: 767px) {
  .filter { top: calc(100% + 4px); right: 4px; }
}

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 29px 25px; padding: 0 var(--gutter);
}
.donk-tile { position: relative; display: block; text-decoration: none; }
.donk-tile[hidden] { display: none; }
.tile-media { position: relative; z-index: 2; aspect-ratio: 309 / 313; overflow: hidden; transition: transform .2s, filter .2s; background: #111; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-caption {
  position: absolute; z-index: 1; top: 0; left: 0; right: 0;
  font: 400 14.272px/21.408px var(--font); color: var(--fg);
}
.tile-caption strong { font-weight: 700; }
@media (hover: hover) and (min-width: 768px) {
  .donk-tile:hover .tile-media, .donk-tile:focus-visible .tile-media { transform: translateY(22px); filter: brightness(.8); }
}
/* "add your project" tile at the end of the grid */
.donk-cta {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  aspect-ratio: 309 / 313; border: 1px solid var(--line); color: var(--fg); text-decoration: none;
  transition: border-color .25s, background .25s;
}
.cta-plus { position: relative; width: 44px; height: 44px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.cta-plus::before, .cta-plus::after { content: ""; position: absolute; background: currentColor; }
.cta-plus::before { left: 0; right: 0; top: calc(50% - 1px); height: 2px; }
.cta-plus::after { top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; }
.cta-label { font: 700 14.272px/1 var(--font); text-transform: uppercase; }
.donk-cta:hover, .donk-cta:focus-visible { border-color: var(--fg); background: #0d0d0d; }
.donk-cta:hover .cta-plus { transform: rotate(90deg); }
@media (max-width: 767px) { .donk-cta { aspect-ratio: 325 / 336; } }
.tile-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.tile-media.is-playing .tile-video { opacity: 1; }
.tile-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.tile-media.is-playing .tile-anim { opacity: 1; }

/* tile -> project transition */
.tile-flight { position: fixed; z-index: 30; overflow: hidden; pointer-events: none; background: #111; }
.tile-flight img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-flight .to { opacity: 0; }
body.is-leaving #page, body.is-leaving footer.sections { opacity: 0; transition: opacity .35s ease; }
body.is-leaving .filter { opacity: 0; transition: opacity .25s ease; }
.grid-empty { padding: 0 var(--gutter); color: var(--muted); }

@media (max-width: 767px) {
  .grid { grid-template-columns: 1fr; gap: 48px; padding: 0 25px; }
  .tile-media { aspect-ratio: 325 / 336; }
  .donk-tile { display: flex; flex-direction: column; }
  .tile-caption { position: static; order: 2; padding-top: 6px; }
}

/* ---------- project page ---------- */
.carousel { position: relative; padding: 20px var(--gutter) 0; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: var(--col-gap); will-change: transform; }
.carousel-track.is-animating { transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: 0 0 calc((100% - var(--col-gap)) / 2); aspect-ratio: 630 / 631; overflow: hidden; background: #111; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-arrows { display: flex; justify-content: center; gap: 80px; margin-top: 40px; }
.carousel-arrows button {
  width: 44px; height: 32px; padding: 0; border: 0; cursor: pointer;
  background: none; color: var(--fg); display: grid; place-items: center; transition: opacity .2s, transform .2s;
}
.carousel-arrows svg { width: 12px; height: 22px; overflow: visible; }
.carousel-arrows path { fill: none; stroke: currentColor; stroke-width: 2.25px; stroke-linecap: square; vector-effect: non-scaling-stroke; }
.carousel-arrows button:hover { opacity: .6; }
.carousel-arrows .prev:hover { transform: translateX(-3px); }
.carousel-arrows .next:hover { transform: translateX(3px); }

/* shared info blocks: grey lowercase label above a white value */
.info-label { margin: 0 0 6px; font: 400 13.7px/1.3 var(--font); color: var(--label); }
.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); align-items: start; }

.project-info {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--col-gap);
  margin: 44px var(--gutter) 0; padding: 28px 0 150px; border-top: 1px solid var(--line);
}
.project-head { grid-column: 1; }
.project-head > p:not(.info-label), .project-title { margin: 0 0 26px; }
.project-title, .project-client { font: 700 24.4px/1.25 var(--font); }
.project-tags { font: 700 15.2px/1.4 var(--font); }
.project-text { grid-column: 2; font: 400 15.2px/1.15 var(--font); }
.project-text p { margin: 0; }
.project-text p + p { margin-top: 1.15em; }
.project-text .info-label + p { margin-top: 6px; }

@media (max-width: 767px) {
  .carousel { padding: 0 15px; }
  .carousel-track { gap: 15px; }
  .slide { flex-basis: 100%; }
  .carousel { padding-top: 0; }
  .carousel-arrows { gap: 64px; margin-top: 18px; }
  .carousel-arrows button { width: 48px; height: 44px; }
  .split, .project-info { grid-template-columns: 1fr; }
  .project-info { margin: 28px 25px 0; padding: 24px 0 80px; }
  .project-text { grid-column: 1; margin-top: 10px; }
  .project-title, .project-client { font-size: 20px; }
}

/* ---------- about + contact ---------- */
.page-section { padding: 0 var(--gutter); }
.page-section--first { padding-top: 52px; }
.section-title { margin: 0 0 20px; font: 700 22.912px/1.3 var(--font); }
.page-section .split { border-top: 1px solid var(--line); padding-top: 48px; }

.about-intro { padding: 44px var(--gutter) 0; }
.about-lede { margin: 0; max-width: 77%; font: 400 clamp(22px, 2.12vw, 36px)/1.97 var(--font); }
.about-services { padding: 120px var(--gutter) 0; text-align: right; }
.about-services-intro { margin: 0 0 30px; font: 400 clamp(16px, 1.39vw, 24px)/1.4 var(--font); color: var(--label); }
.about-services ul { list-style: none; margin: 0; padding: 0; font: 700 clamp(16px, 1.46vw, 25px)/1.38 var(--font); }
.about .page-section { padding-top: 130px; }
.who-photo { width: 50%; aspect-ratio: 1; overflow: hidden; }
.who-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-big { margin: 0 0 26px; font: 700 22.912px/1.25 var(--font); }
.info-text { font: 400 14.272px/1.22 var(--font); }
.info-text p { margin: 0; }
.info-text p + p { margin-top: 1.22em; }
.about .split .info { padding-top: 4px; }

.contact-lede { margin: 0; max-width: 240px; font: 700 21.3px/1.38 var(--font); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form label { display: block; }
.contact-form .info-label { display: block; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; height: 31px; padding: 4px 10px; font: 15px/1.4 var(--font); color: var(--fg);
  background: transparent; border: 1px solid var(--label); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.contact-form textarea { height: 154px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--fg); }
.form-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 4px; }
.contact-form button {
  flex: none; background: var(--label); color: #000; border: 0; border-radius: 0;
  padding: 3px 10px 4px; font: 400 18.3px/20px var(--font); cursor: pointer; transition: background .2s;
}
.contact-form button:hover { background: var(--fg); }
.contact-form .status { margin: 0; font-size: 14.272px; color: var(--label); }
.contact-form .status a { color: var(--fg); }
.hp { position: absolute; left: -9999px; }
.contact-page { min-height: calc(100vh - 297px); }

@media (max-width: 767px) {
  .page-section, .about-intro, .about-services { padding-left: 25px; padding-right: 25px; }
  .page-section--first { padding-top: 40px; }
  .about-intro { padding-top: 30px; }
  .about-lede { max-width: none; font-size: 21px; line-height: 1.7; }
  .about-services { padding-top: 70px; text-align: left; }
  .about .page-section { padding-top: 80px; }
  .page-section .split { row-gap: 40px; padding-top: 32px; }
  .who-photo { width: 70%; }
}

/* ---------- footer ---------- */
footer.sections { padding: 82px var(--gutter) 0; height: 297px; display: flex; flex-direction: column; align-items: flex-start; }
footer .flogo { width: 44px; height: 15px; }
footer .touch { margin-top: 18px; color: var(--muted); line-height: 24px; }
footer .ig { display: block; width: 28px; height: 28px; margin-top: 15px; line-height: 0; }
footer .ig svg { width: 28px; height: 28px; }
@media (max-width: 767px) {
  footer.sections { padding: 26px 23px 0; height: 323px; }
  footer .flogo { width: 117px; height: 41px; }
  footer .touch { margin-top: 29px; }
  footer .ig { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* hide the filter while the mobile menu is open */
.menu-open .filter { opacity: 0; visibility: hidden; }
main.about, main.contact-page { padding-bottom: 60px; }

/* tiles waiting to slide in as you scroll */
.reveal-wait { opacity: 0; }

/* ---------- about: centre-line timeline ---------- */
.about-tl { position: relative; padding-top: 70px; --tl-gap: max(40px, var(--col-gap)); }
.tl-line { position: absolute; left: 50%; top: 0; width: 1px; margin-left: -0.5px; height: calc(100% - 60px); pointer-events: none; }
.tl-fill { position: absolute; inset: 0; background: #fff; transform-origin: 50% 0; }
.tl-end { position: absolute; left: 50%; bottom: -4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(var(--tl-gap) * 2); padding: 0 var(--gutter); }
.tl-gap { margin-top: 90px; }
.tl-gap-lg { margin-top: 150px; }
.tl-tick { position: absolute; top: 17px; height: 1px; width: calc(var(--tl-gap) - 14px); background: #fff; }
.tl-left .tl-tick { right: calc(50% + 7px); transform-origin: 100% 50%; }
.tl-right .tl-tick { left: calc(50% + 7px); transform-origin: 0 50%; }
.tl-who .tl-tick { left: calc(50% - var(--tl-gap) + 7px); width: calc(var(--tl-gap) * 2 - 14px); transform-origin: 50% 50%; top: 20px; }
.tl-left .tl-clip { grid-column: 1; text-align: right; clip-path: inset(-30px 0 -30px -50vw); }
.tl-right .tl-clip { grid-column: 2; text-align: left; clip-path: inset(-30px -50vw -30px 0); }
.tl-who .tl-clip--photo { grid-column: 1; clip-path: inset(-30px 0 -30px -50vw); display: flex; justify-content: flex-end; }
.tl-who .tl-clip--info { grid-column: 2; clip-path: inset(-30px -50vw -30px 0); }
.tl-clip--photo .tl-body { width: 100%; display: flex; justify-content: flex-end; }
.about-tl .about-lede { max-width: none; line-height: 1.6; }
.about-tl .about-lede--more { font-size: clamp(18px, 1.6vw, 27px); }
.about-tl .about-services-intro { margin: 0; }
.tl-services { list-style: none; margin: 34px 0 0; padding: 0; }
.tl-services .tl-item { margin-top: 6px; }
.tl-service { font: 700 clamp(16px, 1.46vw, 25px)/1.38 var(--font); }
.tl-services .tl-tick { top: calc(clamp(16px, 1.46vw, 25px) * .69); }
.tl-item:has(.about-lede) .tl-tick { top: calc(clamp(22px, 2.12vw, 36px) * .8); }
.tl-item:has(.about-lede--more) .tl-tick { top: calc(clamp(18px, 1.6vw, 27px) * .8); }
.tl-who .who-photo { width: 78%; }
.tl-who .section-title { margin-bottom: 26px; }
.about-tl .info-text { max-width: 440px; }
/* hidden until the line reaches them (only when the motion version is running) */
.tl-on .tl-body, .tl-on .tl-tick, .tl-on .tl-end { opacity: 0; }
.tl-on .tl-in .tl-body, .tl-on .tl-in .tl-tick, .tl-on .tl-end.tl-in { opacity: 1; }
.tl-on .tl-fill { transform: scaleY(0); }

@media (max-width: 767px) {
  .about-tl { padding-top: 40px; --tl-gap: 26px; }
  .tl-line { left: 25px; }
  .tl-item { grid-template-columns: 1fr; padding: 0 25px 0 calc(25px + var(--tl-gap) + 4px); }
  .tl-left .tl-clip, .tl-right .tl-clip, .tl-who .tl-clip--photo, .tl-who .tl-clip--info { grid-column: 1; text-align: left; clip-path: inset(-30px -50vw -30px 0); justify-content: flex-start; }
  .tl-left .tl-tick, .tl-right .tl-tick, .tl-who .tl-tick { left: 32px; right: auto; width: calc(var(--tl-gap) - 10px); transform-origin: 0 50%; }
  .tl-clip--photo .tl-body { justify-content: flex-start; }
  .tl-who .tl-clip--info { margin-top: 36px; }
  .tl-who .who-photo { width: 80%; }
  .tl-gap { margin-top: 50px; }
  .tl-gap-lg { margin-top: 80px; }
  .about-tl .about-lede { font-size: 21px; line-height: 1.6; }
  .about-tl .about-lede--more { font-size: 18px; }
}
