/* The Dust Protocol
   Values taken from the original theme's CSS (CodyHouse tokens + the
   Elementor page rules for the About page). */

:root {
  --bg: hsl(0, 0%, 11%);          /* #1c1c1c */
  --panel: hsl(0, 0%, 15%);       /* #262626 */
  --muted: #797979;               /* secondary text */
  --grey-sm: #959595;             /* footer small text */
  --white: hsl(0, 100%, 99%);     /* #fffafa */
  --accent: hsl(12, 85%, 58%);    /* #ef5d39 */
  --accent-dark: #ed461d;
  --line: rgba(126, 126, 126, .4);  /* #7E7E7E66 */

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-head: "Manrope", var(--font);

  --container: 1320px;
  --gutter: 40px;
  --pad: 1.25rem;
}

@media (min-width: 1380px) { :root { --pad: 12px; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { margin: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--white); padding: .7rem 1rem;
}
.skip:focus { left: 0; }

/* ---------- the ticked hairline: 10px tall, 1px top + 1px left ---------- */

.rule {
  position: relative;
  border-top: 1px solid var(--line);
}
.rule::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 10px;
  background: var(--line);
}

/* ---------- header ---------- */

.masthead { position: relative; z-index: 40; }

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 70px;
}

.logo {
  height: 24px; width: 24px;
  border-radius: 5px;
  background: var(--panel);
  flex: none;
  text-decoration: none;
}
.logo img { height: 24px; width: auto; border-radius: 5px; }

.nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}

/* menu centred on the viewport, as on the original */
@media (min-width: 1025px) {
  .masthead .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* the home header is not held to the content grid */
.masthead--full .masthead__inner {
  width: 100%;
  max-width: none;
  padding-inline: 50px;
}

@media (max-width: 767px) {
  .masthead--full .masthead__inner { padding-inline: 15px; }
}

.nav a { text-decoration: none; font-size: 16px; color: var(--white); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); color: var(--white);
  font: inherit; font-size: 14px; padding: .35rem .7rem; border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--panel); border-radius: 12px;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1rem; }
  .nav a { display: block; padding-block: .6rem; }
}

/* ---------- hero ---------- */

.hero { padding-block: 8vh; text-align: center; }

.hero h1 {
  font-size: 74px;
  line-height: 96px;
  font-weight: 900;
  text-transform: capitalize;
  word-spacing: 5px;
  max-width: 22ch;
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 2.5em; line-height: 1.4em; }
}
@media (max-width: 767px) {
  .hero h1 { font-size: 2em; line-height: 1.4em; }
}

/* ---------- section heads ---------- */

.band { padding-bottom: 8vh; }

.band__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--gutter);
  padding-top: 20px;
}

@media (min-width: 1025px) {
  .band__head { grid-template-columns: repeat(3, 1fr); }
  .band__head h2 { grid-column: 2 / -1; }
}

.label {
  font-size: 20px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 1rem;
}

@media (max-width: 767px) { .label { font-size: 16px; } }

.band h2 {
  font-family: var(--font-head);
  font-size: 60px;
  line-height: 64px;
  font-weight: 900;
  max-width: 13ch;
}

.band h2.wide { max-width: 20ch; }

@media (max-width: 1024px) {
  .band h2 { font-size: 1.8em; line-height: 1.4em; }
}
@media (max-width: 767px) {
  .band h2 { font-size: 1.6em; line-height: 1.5em; }
}

/* ---------- steps: 01/02 in columns 2–3, 03/04 in columns 1–2 ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px var(--gutter);
  margin-top: 4em;
}

@media (min-width: 1025px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps > :nth-child(1) { grid-column: 2; }
  .steps > :nth-child(2) { grid-column: 3; }
  .steps > :nth-child(3) { grid-column: 1; }
  .steps > :nth-child(4) { grid-column: 2; }
}

.step { padding-top: 20px; }

.step__no {
  font-size: 20px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 20px;
}

.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.step p { color: var(--muted); margin: 0; }

@media (max-width: 767px) {
  .step__no { font-size: 16px; }
  .step h3 { font-size: 20px; }
}

/* ---------- people ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px var(--gutter);
  margin-top: 4em;
}

.person { padding-bottom: 20px; }

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 32px;
  filter: grayscale(1);
  margin-bottom: 20px;
}

.person h3 { font-size: 24px; font-weight: 700; margin-bottom: .25rem; }
.person .role { color: var(--muted); margin: 0 0 1rem; }
.person p { color: var(--muted); }

.person .links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: 14px; }
.person .links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.person .links a:hover { border-bottom-color: var(--accent); }

@media (max-width: 767px) { .person h3 { font-size: 20px; } }

/* ---------- enquiry ---------- */

.enquiry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px var(--gutter);
  margin-top: 2em;
}

@media (min-width: 1025px) {
  .enquiry { grid-template-columns: 50% 50%; align-items: start; }
  .enquiry__intro { padding-left: 84px; }
}

.enquiry h2 {
  font-size: 42px;
  line-height: 64px;
  font-weight: 900;
  max-width: 14ch;
  margin-bottom: 1em;
}

@media (max-width: 1024px) { .enquiry h2 { font-size: 2.5em; line-height: 1.4em; } }
@media (max-width: 767px)  { .enquiry h2 { font-size: 1.5em; line-height: 1.4em; } }

.enquiry__intro p { color: var(--muted); max-width: 38ch; }

@media (max-width: 767px) { .enquiry h2 { font-size: 1.6em; margin-bottom: 1em; } }

.enquiry__contact { padding-top: .5rem; }

.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }

@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

.form input,
.form textarea {
  font: inherit;
  width: 100%;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .55rem 1rem;
}

.form textarea { min-height: 255px; resize: vertical; }

.form input::placeholder,
.form textarea::placeholder { color: var(--muted); }

.form input:focus,
.form textarea:focus { outline: none; border-color: var(--accent); }

.send {
  justify-self: start;
  font: inherit;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: .5rem 1.85rem;
  cursor: pointer;
}
.send:hover { background: var(--accent-dark); }
.send[disabled] { opacity: .6; cursor: default; }

.form__status { margin: 0; font-size: 15px; min-height: 1.2em; }
.form__status[data-state="ok"]   { color: var(--white); }
.form__status[data-state="fail"] { color: var(--accent); }

.note { color: var(--muted); margin-top: 0; font-size: 14px; }

/* ---------- footer ---------- */

.outro {
  background: var(--panel);
  border-radius: 40px 40px 0 0;
  padding-top: 3em;
  margin-top: 8vh;
}

.outro__cta {
  width: min(100%, 600px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.outro__cta h2 {
  flex: 1 1 56.8%;
  font-size: 74px;
  line-height: 1.1;
  font-weight: 400;
}
.outro__cta h2 strong { display: block; font-size: 80px; font-weight: 700; }

.pill {
  border: 1px solid currentColor;
  border-radius: 40px;
  background: transparent;
  padding: .85rem 2.5rem;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}
.pill:hover { border-color: var(--accent-dark); color: #d54949; }

@media (max-width: 767px) {
  .outro__cta { text-align: center; justify-content: center; }
  .outro__cta h2 { font-size: 2em; }
  .outro__cta h2 strong { font-size: 2em; }
}

.social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px var(--gutter);
  list-style: none;
  margin: 3em 0 0; padding: 0;
}

@media (min-width: 768px) { .social { grid-template-columns: 1fr 1fr; } }

.social li { padding-top: 20px; }

.social a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}

.social .name { display: block; font-size: 18px; }
.social .name:hover { color: var(--accent); }
.social .handle { display: block; font-size: 14px; color: var(--grey-sm); }

.social .icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(184, 184, 184, .32);
  display: grid; place-items: center;
}
.social .icon svg { width: 20px; height: 20px; fill: var(--bg); }

.copyright {
  font-size: 14px;
  color: var(--grey-sm);
  padding: 3em 0 2em;
  margin: 0;
}

@media (max-width: 767px) { .copyright { text-align: center; } }

/* ---------- back to top ---------- */

.totop {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(184, 184, 184, .32);
  border: 0;
  color: var(--white);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, background .2s ease;
  z-index: 60;
}
.totop[data-show="true"] { opacity: 1; visibility: visible; }
.totop:hover { background: var(--accent); }
.totop svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- events ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 2em 0 0; padding: 0;
}

.filters button {
  font: inherit; font-size: 16px;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 40px;
  padding: .35rem 1.25rem; cursor: pointer;
}
.filters button:hover { color: var(--white); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }

.events { list-style: none; margin: 4em 0 0; padding: 0; }

.event {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.5rem;
  padding: 20px 0 40px;
}

@media (min-width: 780px) {
  .event { grid-template-columns: 5rem 1fr 11rem; align-items: baseline; }
}

.event__year, .event__kind, .event__place { color: var(--muted); }
.event__name { font-size: 24px; font-weight: 700; }
.events__empty { color: var(--muted); padding-block: 2rem; }

/* ---------- contact details ---------- */

.details {
  display: grid; gap: 40px var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 4em;
}
.details dt { color: var(--muted); margin-bottom: .25rem; }
.details dd { margin: 0; }
.details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.details a:hover { border-bottom-color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- home slider (page-template-no-footer) ---------- */

body.is-slider { overflow: hidden; }

.masthead.over,
body:has(.slider) .masthead {
  position: absolute;
  inset: 0 0 auto 0;
}

.slider {
  position: relative;
  height: 100vh;
  min-height: 540px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide__img { position: absolute; inset: 0; }
.slide__img img { width: 100%; height: 100%; object-fit: cover; }

.slide__img::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(at center right, #FFFFFF00 50%, #00000096 100%);
}

.slide__inner {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 50px;
  color: #fff;
}

.slide__st {
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  font-size: 20px;
}

.slide__t {
  font-family: "Inter", var(--font);
  font-size: 8vw;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1em;
  text-indent: -12px;
  margin: 15px 0;
  color: #fff;
}

.slide__desc {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #FFFFFFB0;
  margin: 0 0 40px;
}

.slider__ui {
  position: absolute;
  left: 0; right: 0; bottom: 3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 50px;
  color: #fff;
}

/* transparent, blurred pills at the edges — as on the original */
.slider__nav {
  flex: none;
  width: 56px; height: 56px;
  border: 0;
  border-radius: 40px;
  background: #FFFFFF00;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.slider__nav:hover { background: #FFFFFF0D; }

.i-arrow {
  width: 34px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 01 ——————— 03, centred */
.slider__progress {
  width: 32vw;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.slider__count {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #fff;
}

.slider__bar {
  flex: 1;
  height: 2px;
  background: #FFFFFF78;
  overflow: hidden;
}

.slider__fill {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1000ms ease;
}

/* slide 3 carries a video instead of a still */
.slide__img--video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .slide__inner { align-items: center; text-align: center; padding: 0 15px; }
  .slide__t { font-size: 15vw; text-indent: 0; }
  .slider__ui { bottom: 2rem; padding-inline: 15px; }
  .slider__progress { width: 46vw; }
}

@media (max-width: 767px) {
  .slide__t { font-size: 2.8rem; }
  .slide__desc { font-size: 17px; line-height: 28px; }
  .slider__nav { width: 44px; height: 44px; }
  .i-arrow { width: 24px; height: 18px; }
  .slider__progress { width: 52vw; gap: .75rem; }
  .slider__count { font-size: 13px; }
}

/* ---------- events: video hero with ticker ---------- */

.ticker-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: -70px;
  padding-top: 70px;
}

.ticker-hero__video { position: absolute; inset: 0; pointer-events: none; }

.ticker-hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;          /* 16:9 cover */
  min-height: 100%; min-width: 177.77vh;
  transform: translate(-50%, -50%);
  border: 0;
}

/* black grain over the video, as in the original overlay */
.ticker-hero__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  filter: brightness(0) blur(.5px);
  opacity: .55;
}

.ticker {
  position: relative;
  width: 100%;
  border-top: 1px solid #fff;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

.ticker__text {
  font-size: 4vw;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
  padding-block: .1em;
}

.ticker__text em {
  font-family: "League Spartan", var(--font);
  font-size: 3.5vw;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 7.2px;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-stroke: 2px var(--accent);
}

/* ---------- events: portfolio list ---------- */

.band--events { padding-top: 4vh; margin-top: 3em; }

.filters { margin-top: 0; }

.filters button {
  font: inherit; font-size: 16px;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 40px;
  padding: .35rem 1.25rem; cursor: pointer;
}
.filters button:hover { color: var(--white); }
.filters button[aria-current="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--white);
}

.p-list { list-style: none; margin: 4vh 0 0; padding: 0; }

.p-item { border-top: 1px solid var(--line); }
.p-item:first-child { border-top: 0; }

.p-item > a,
.p-item > div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 36px 40px 56px 0;
  text-decoration: none;
  color: inherit;
}

.p-title {
  font-size: 44px;
  line-height: 46px;
  font-weight: 700;
  text-transform: uppercase;
  max-width: 22ch;
}

.p-meta { color: var(--grey-sm); font-size: 20px; line-height: 21px; }
.p-cat, .p-year { display: block; }

.p-arrow {
  position: absolute;
  right: 0; top: 36px;
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .2s ease, transform .2s ease;
}

.p-item a:hover .p-title { color: var(--accent); }
.p-item a:hover .p-arrow { stroke: var(--accent); transform: translate(3px, -3px); }

@media (max-width: 900px) {
  .p-item > a, .p-item > div {
    grid-template-columns: 1fr;
    padding: 24px 36px 32px 0;
    gap: 8px;
  }
  .p-title { font-size: 28px; line-height: 32px; }
  .p-meta { font-size: 17px; }
  .p-arrow { top: 24px; width: 18px; height: 18px; }
}

/* ---------- contact photo ---------- */

.band--contact { padding-top: 5em; padding-bottom: 5em; }

.photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 21 / 9;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) { .photo { aspect-ratio: 4 / 3; } }
