/* ---------- reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { text-decoration: none; color: inherit; }

:root {
  --black: #000000;
  --ink: #221f20;
  --grey-light: #e6e7e8;
  --grey: #a7a9ac;
  --grey-mid: #bcbec0;
  --grey-border: #d1d3d4;
  --grey-dark: #898989;
  --white: #ffffff;

  /* text greys that pass contrast on white; --grey is kept for dark sections */
  --text-muted: #757678;   /* 4.55:1 on white  (was --grey,     2.36:1) */
  --ui-muted:   #86878a;   /* 3.59:1 on white  — icons & state indicators only */

  /* content stays at 15% gutters until the viewport gets wide, then caps at 1280px */
  --gutter: max(15%, (100% - 1280px) / 2);

  /* vertical rhythm — three steps, redefined once for small screens */
  --space-m: 96px;
  --space-l: 120px;
  --space-xl: 144px;

  --font-display: 'Karla', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.fullscreen-menu :focus-visible,
.ourstudios :focus-visible,
.footer :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 60;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 16px;
  transform: translateY(-200%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.titlestyle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 4vw, 2.625rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}
.titlestyle::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  margin-top: 18px;
  background: var(--black);
}

/* ---------- entrance & reveal animations ---------- */
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger siblings that reveal together */
.service-lists .reveal:nth-child(2) { transition-delay: .1s; }
.pods .reveal:nth-child(2) { transition-delay: .08s; }
.pods .reveal:nth-child(3) { transition-delay: .16s; }
.pods .reveal:nth-child(4) { transition-delay: .24s; }
.contact-grid .reveal:nth-child(2) { transition-delay: .08s; }
.contact-grid .reveal:nth-child(3) { transition-delay: .16s; }
#studiosAccordion .reveal:nth-child(2) { transition-delay: .08s; }
#projectsAccordion .reveal:nth-child(2) { transition-delay: .06s; }
#projectsAccordion .reveal:nth-child(3) { transition-delay: .12s; }
#projectsAccordion .reveal:nth-child(4) { transition-delay: .18s; }

/* ---------- header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.logo img {
  width: 64px;
  height: 64px;
  animation: fade-in-down .6s ease both;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  border: 0;
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  animation: fade-in-down .6s ease .1s both;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--black);
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- fullscreen nav ---------- */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 32px 32px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .4s ease, visibility 0s linear .4s;
}
.fullscreen-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .4s ease, visibility 0s;
}

.fullscreen-menu__links { display: flex; flex-direction: column; gap: 18px; }
.fullscreen-menu__links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey);
  transition: color .2s ease;
}
.fullscreen-menu__links a:hover { color: var(--white); }

.fullscreen-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--grey);
}
.fullscreen-menu__footer .social-networks { display: flex; gap: 18px; }
.fullscreen-menu__footer a:hover { color: var(--white); }

/* scroll lock while the menu is open (was an inline style on body) */
html.menu-is-open, html.menu-is-open body { overflow: hidden; }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide figcaption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--grey-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
  transform: translateY(10px);
  transition: transform .8s ease .15s;
}
.hero-slide.is-active figcaption { transform: translateY(0); }
/* scrim so captions and dots stay legible over light photos */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
  pointer-events: none;
}
.hero-slide figcaption { z-index: 1; }

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: fade-in .8s ease .3s both;
}
.hero-pause {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--grey-light);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: var(--grey-light);
  cursor: pointer;
  padding: 0;
}
.hero-pause:hover { color: var(--white); border-color: var(--white); }
.hero-pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero-pause .icon-play { display: none; }
.hero-pause[data-paused="true"] .icon-play { display: block; }
.hero-pause[data-paused="true"] .icon-pause { display: none; }

.hero-dots {
  display: flex;
  gap: 10px;
}
/* 10px dot kept, but the hit area is padded out to a 24px touch target */
.hero-dots button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hero-dots button::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--grey-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.hero-dots button.is-active::before { background: var(--grey-light); }

/* ---------- about us ---------- */
.aboutus {
  padding-block: var(--space-l) var(--space-m);
  padding-inline: var(--gutter);
  text-align: center;
}
.aboutus p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: .5px;
  color: var(--ink);
  max-width: 24em;
  margin-inline: auto;
}

/* ---------- what we do ---------- */
.whatwedo {
  padding-block: 0 var(--space-xl);
  padding-inline: var(--gutter);
}
.service-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
  max-width: 860px;
  margin: 60px auto 0;
}
.service-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--grey-border);
  padding: 12px 0;
}
.muchmore {
  margin-top: 60px;
}
.muchmore a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--black);
  border-bottom: 3px solid var(--black);
  padding-bottom: 6px;
  transition: color .2s ease, border-color .2s ease;
}
.muchmore a:hover {
  color: var(--text-muted);
  border-color: var(--text-muted);
}

/* ---------- our studios (dark) ---------- */
.ourstudios {
  background: var(--black);
  color: var(--white);
  padding-block: var(--space-l) var(--space-m);
  padding-inline: var(--gutter);
}
.ourstudios .titlestyle { color: var(--grey-light); }
.ourstudios .titlestyle::after { background: var(--grey-light); }

.ourstudios-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.tag-list {
  text-align: right;
  border-right: 3px solid var(--white);
  padding-right: 16px;
}
.tag-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--grey);
  text-transform: uppercase;
}

/* ---------- accordions (shared) ---------- */
.accordion { margin-top: 60px; }
.accordion-item { border-bottom: 1px solid var(--grey-border); }
.ourstudios .accordion-item { border-bottom-color: #333; }
.ourstudios .item-number { color: var(--grey-mid); }

.accordion-heading {
  margin: 0;
  font: inherit;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  background: none;
  border: 0;
  padding: 22px 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.item-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
}
.item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.375rem, 3.4vw, 2.375rem);
  color: var(--ink);
  flex: 1;
  transition: color .2s ease, transform .2s ease;
}
.ourstudios .item-title { color: var(--grey); }
.accordion-trigger:hover .item-title { color: var(--white); }
.ourprojects .item-title { color: var(--text-muted); }
.ourprojects .accordion-trigger:hover .item-title { color: var(--ink); }
.accordion-trigger:hover .item-title { transform: translateX(6px); }

/* fixed box + contain, so 100x80 and 90x90 marks carry equal visual weight */
.item-logo {
  width: 80px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.item-logo--mono {
  filter: brightness(0);
  transition: filter .25s ease;
}
.accordion-trigger:hover .item-logo--mono,
.accordion-trigger:focus-visible .item-logo--mono {
  filter: none;
}
.item-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.item-icon::before, .item-icon::after {
  content: '';
  position: absolute;
  background: var(--ui-muted);
  transition: transform .3s ease;
}
.ourstudios .item-icon::before,
.ourstudios .item-icon::after { background: var(--grey); }
.item-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.item-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.accordion-item.is-open .item-icon::after { transform: scaleY(0); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel__inner {
  overflow: hidden;
  padding-left: 56px;
  opacity: 0;
  transition: opacity .25s ease;
}
.accordion-item.is-open .accordion-panel__inner {
  opacity: 1;
  transition: opacity .3s ease .12s;
}

.accordion-panel h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: 24px;
}
.accordion-panel p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 12px;
}
.ourstudios .accordion-panel p { color: var(--grey); }
.ourstudios .accordion-panel p { font-size: 1.1875rem; }
.accordion-panel .puline { text-decoration: underline; }
.accordion-panel ul, .accordion-panel ol {
  margin-top: 12px;
  padding-left: 18px;
}
.accordion-panel ul { list-style: disc; }
.accordion-panel ol { list-style: decimal; }
.accordion-panel ul li, .accordion-panel ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.ourstudios .accordion-panel li { color: var(--grey); }
.accordion-panel > .accordion-panel__inner > a {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--grey-mid);
  padding: 24px 0 12px;
}
.accordion-panel a:hover { text-decoration: underline; }
.accordion-panel > .accordion-panel__inner > a span[aria-hidden] {
  display: inline-block;
  transition: transform .25s ease;
}
.accordion-panel > .accordion-panel__inner > a:hover span[aria-hidden] { transform: translateX(4px); }
.ourprojects .accordion-panel > .accordion-panel__inner > a { color: var(--text-muted); }
.ourprojects .accordion-panel > .accordion-panel__inner > a:hover { color: var(--black); }

.panel-images {
  display: flex;
  gap: 2%;
  margin-top: 24px;
}
.panel-images img { width: 49%; height: auto; }

/* ---------- our projects ---------- */
.ourprojects {
  padding-block: var(--space-l) var(--space-xl);
  padding-inline: var(--gutter);
}

/* ---------- team ---------- */
.ourteam {
  padding-block: 0 var(--space-xl);
  padding-inline: var(--gutter);
}
.pods {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.pod--directors { padding-right: 40px; border-right: 1px solid var(--grey-border); }
.member { border-bottom: 1px solid var(--grey-border); padding: 12px 0; }
.pod--directors .member h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.3;
}
.pod--secondary .member h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.3;
}
.member p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* ---------- footer / contact ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding-block: var(--space-m) var(--space-l);
  padding-inline: var(--gutter);
}
.footer .titlestyle { color: var(--white); }
.footer .titlestyle::after { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.contact h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--white);
  margin-bottom: 12px;
}
.contact p,
.contact address {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--grey);
  line-height: 1.6;
}
.contact a { color: var(--grey); transition: color .2s ease; }
.contact a:hover { color: var(--white); }
.connect-icons { display: none; }

/* ---------- responsive ---------- */

/* tablet / small laptop: the 4-column team grid can't hold long names */
@media screen and (max-width: 1100px) {
  .pods { grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
  .pod--directors { grid-row: span 2; }
}
@media screen and (max-width: 900px) {
  .pods { grid-template-columns: 1fr 1fr; }
  .pod--directors { grid-row: auto; }
  .ourstudios-head { gap: 16px; }
}

@media screen and (max-width: 768px) {
  :root {
    --gutter: 8%;
    --space-m: 48px;
    --space-l: 56px;
    --space-xl: 64px;
  }

  .titlestyle::after { height: 2px; margin-top: 10px; }


  .whatwedo { grid-template-columns: 1fr; }
  .whatwedo > .titlestyle,
  .service-lists,
  .muchmore { grid-column: 1; }
  .service-lists { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .service-list li { font-size: 0.875rem; }
  .muchmore a { font-size: 0.875rem; }

  .ourstudios-head { flex-direction: column; align-items: flex-start; }
  .tag-list { text-align: left; border-right: 0; border-left: 0; padding-left: 0; padding-right: 0; }

  .accordion { margin-top: 30px; }
  .accordion-trigger { gap: 14px; padding: 16px 0; }
  .item-number { width: 22px; font-size: 0.625rem; }
  .item-title { font-size: 1.0625rem; }
  .item-logo { width: 38px; height: 30px; }
  .accordion-panel__inner { padding-left: 36px; }
  .accordion-panel p, .accordion-panel ul li, .accordion-panel ol li { font-size: 0.875rem; }
  .panel-images { flex-direction: column; gap: 12px; }
  .panel-images img { width: 100%; }
  .hero-controls { right: 16px; bottom: 16px; gap: 10px; }
  .hero-slide figcaption { left: 16px; bottom: 20px; font-size: 0.8125rem; max-width: 55%; }


  .pods { grid-template-columns: 1fr 1fr; row-gap: 0; column-gap: 20px; }
  .pod--directors { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
  .pod--secondary:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .connect-links { display: none; }
  .connect-icons {
    display: flex;
    gap: 14px;
    margin-top: 8px;
  }
  .connect-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--grey-mid);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    text-transform: uppercase;
  }
}
