/* aftermodern.lab — static studio shell v4 */
/* highlight-adjacent: black/white, editorial hierarchy, asymmetrical grid */
/* all visible copy is lowercase; no text-transform used to force case */

/* base tokens */

:root {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --text: #111111;
  --muted: #5c5c5c;
  --accent: #ff6a3d;   /* adjust to your salmon if needed */
  --border: #e4e4e4;

  --max-width: 1120px;
  --gutter: 2.4rem;
}

/* global reset-ish */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* if your adobe kit defines a family, override here, e.g.:
body { font-family: "aktiv-grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
*/

/* typography */

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 1.4rem;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  max-width: 60ch;
}

/* scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 640ms ease-out, transform 640ms ease-out;
}


.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* layout helpers */

.section {
  width: 100%;
}

.section--padded {
  padding: 5rem 1.5rem 4.2rem;
}

.section__header {
  max-width: var(--max-width);
  margin: 0 auto 2.4rem;
}

.section__header p {
  max-width: 46ch;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}



.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__wordmark {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.logo__wordmark:hover {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* links */
.nav a {
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

/* dropdown container */
.nav__dropdown {
  position: relative;
}

/* toggle button */
.nav__dropdown-toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle:focus-visible {
  color: var(--text);
}

/* dropdown menu: hidden by default */
/* dropdown menu: hidden + ready to animate */
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.75rem 0;
  background: #ffffff;
  border: 1px solid var(--border);
  z-index: 30;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);

  /* fade / slide in */
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out,
    visibility 0ms linear 180ms;
}


/* dropdown menu items */
.nav__dropdown-menu a {
  display: block;
  padding: 0.35rem 1rem;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

/* show on hover / focus with fade / slide */
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out,
    visibility 0ms linear 0ms;
}


/* show on hover / focus */
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  display: block;
}



/* hero */

.hero {
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 3.5rem;
  align-items: stretch;
}

.hero__visual {
  position: relative;
}

.hero__image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__meta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
}

.hero__meta {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 32ch;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.7rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--text);
  text-decoration: none;
  color: var(--text);
  background: transparent;
}

.btn--primary {
  background: var(--text);
  color: #ffffff;
}

.btn--primary:hover {
  background: #000000;
}

.btn--ghost:hover {
  background: #f8f8f8;
}

/* work section */

.section--work {
  border-bottom: 1px solid var(--border);
}

/* work grid */

.work-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.75rem;
}

.work-grid-stagger {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.75rem;
}

.section--work .work-grid-stagger {
  margin-top: 1.75rem;
}

.section--work .work-grid {
  margin-top: 1.75rem;
}

.work-item {
  background: var(--bg-alt);
  border-radius: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.work-item__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-item__image {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

/* full-width colour bands */

.work-item__label {
  display: block;
  width: 100%;
  padding: 0.85rem 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #111111;
  background: #f2f2f2; /* default, overridden per block below */
  box-sizing: border-box;
}

.work-item__meta {
  padding: 1.1rem 1.5rem 1.4rem;
}

.work-item__meta p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.work-item__tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #9a9a9a;
}

.work-item__portfolio-link {
  color: inherit;
  text-decoration: underline;
}

.work-item__portfolio-link:hover {
  color: var(--accent);
}

/* per-block accent colours */
/* tweak these to match your real project palettes */

.work-item--section-architects .work-item__label {
  background: #00ffd6;
}

.work-item--festivals-events .work-item__label {
  background: #ffe9aa;
}

.work-item--product-design .work-item__label {
  background: #fbe6dd;
}
.work-item--typography .work-item__label {
  background: #cfcfcf;
}
.work-item--visual-identity .work-item__label {
  background: #00ffd6;
}

.work-item--interior-architectural .work-item__label {
  background: #e4f2ea;
}

.work-item--books-publications .work-item__label {
  background: #eae7e2;
}

/* asymmetry rules */

.work-item--featured {
  grid-column: 1 / -1;
}

.work-item--small-left {
  grid-column: 1 / 2;
}

.work-item--small-right {
  grid-column: 2 / 3;
}

.work-item--wide {
  grid-column: 1 / 2;
}

.work-item--small {
  grid-column: 2 / 3;
}

/* ensure typography (block 5) sits in the right column, aligned with block 4 */
.work-item--typography {
  grid-column: 2 / 3;
}

/* approach section */

.section--approach {
  border-bottom: 1px solid var(--border);
  background-color: #828282;
}

.approach-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.8fr);
  gap: 2.5rem;
}

.kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #9a9a9a;
  margin: 0.2rem 0 0;
}
.kicker-approach {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #fff;
  margin: 0.2rem 0 0;
}
.approach-layout__body h2 {
  max-width: 36ch;
  color: #fff;
}

.approach-layout__body p {
  max-width: 60ch;
  color: #e8e8e8;
}

/* studio section */

.section--studio {
  background: var(--bg-alt);
}

.studio-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 3rem;
}

.studio-layout__column--text p:first-child {
  font-size: 1rem;
}

dl {
  margin: 0;
}

dl div {
  margin-bottom: 1.4rem;
}

dt {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  color: #9a9a9a;
}

dd {
  margin: 0;
  font-size: 0.92rem;
}

/* contact */

.section--contact {
  background: var(--bg);
}

.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  padding-top: 0.5rem;
}

.contact-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.2rem;
  color: #9a9a9a;
}

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

/* team page */

.section--team {
  border-bottom: 1px solid var(--border);
}

.team-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 3rem;
}

.team-layout__column h2 {
  margin-bottom: 1.2rem;
}

.team-block {
  margin-bottom: 1.2rem;
}

.team-name {
  font-weight: 500;
}

.team-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: -1.0rem;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.6rem 1.5rem 1.9rem;
  background: #fafafa;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer p {
  font-size: 0.78rem;
  margin: 0;
}

/* responsive tweaks */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--featured,
  .work-item--small-left,
  .work-item--small-right,
  .work-item--wide,
  .work-item--small {
    grid-column: auto;
  }

  .approach-layout,
  .studio-layout,
  .contact-layout,
  .team-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-inline: 1rem;
  }

  .hero__inner {
    padding-inline: 1rem;
  }

  .section--padded {
    padding-inline: 1rem;
  }

  .nav {
    gap: 0.9rem;
  }
}


/* section architects hybrid page
   -------------------------------------------------- */

.sa-hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.sa-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.sa-hero__title h1 {
  margin-bottom: 0.6rem;
}

.sa-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin: 0 0 0.2rem;
  color: var(--muted);
}

.sa-hero__meta-line {
  font-size: 0.86rem;
  color: var(--muted);
}

.sa-hero__meta dl {
  margin: 0;
}

.sa-hero__meta dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
  color: #9a9a9a;
}

.sa-hero__meta dd {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.sa-section {
  border-bottom: 1px solid var(--border);
}

.sa-two-col {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.4rem;
}

.sa-two-col__text h3 {
  margin-bottom: 0.75rem;
}

.sa-two-col__detail {
  align-self: flex-start;
}

.sa-list {
  padding-left: 1.2rem;
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.sa-list li + li {
  margin-top: 0.3rem;
}

/* figures */

.sa-figure {
  border: 1px solid var(--border);
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: #fafafa;
}

.sa-figure__media img {
  display: block;
  width: 100%;
  height: auto;
}

.sa-figure__caption {
  font-size: 0.78rem;
  color: #7a7a7a;
  margin: 0;
}

/* note/closing */

.sa-section--closing {
  border-bottom: none;
}

.sa-closing {
  max-width: var(--max-width);
  margin: 0 auto;
}

.sa-closing h2 {
  margin-bottom: 0.5rem;
}

/* reveal behaviour */

.sa-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.sa-reveal.sa-is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */

@media (max-width: 960px) {
  .sa-two-col {
    grid-template-columns: 1fr;
  }

  .sa-hero__inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .sa-figure {
    padding-inline: 0.8rem;
  }
}


/* case pages (case-study, typography, etc.)
   ---------------------------------------- */

.section--case-intro {
  border-bottom: 1px solid var(--border);
}

.case-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: none;
  color: #9a9a9a;
  margin: 0 0 0.4rem;
}

.case-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.case-meta {
  max-width: var(--max-width);
  margin: 1.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-meta__block h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #9a9a9a;
  margin: 0 0 0.25rem;
}

.case-meta__block p {
  margin: 0;
}

.case-section {
  border-bottom: 1px solid var(--border);
}

.case-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-section__inner > h2 {
  margin-top: 0;
}

.case-section__inner > p {
  max-width: 68ch;
}

/* figures + gallery */

.case-figure {
  margin: 1.5rem 0 2.25rem;
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* align key Nabua figures to a common height */
.case-figure--nabua-pair img {
  max-height: 520px;      /* tweak up/down to taste */
  width: 100%;
  object-fit: cover;
}


.case-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  max-width: 62ch;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* two-up / responsive galleries for case pages */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* tighten vertical rhythm on stacked case sections */
.case-section.section--padded {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.case-section .case-figure {
  margin: 1.25rem 0 1.75rem;
}


/* case pages: intro, meta, sections, figures
   shared across case-study, typography, festivals-events, product-design */

.section--case-intro {
  border-bottom: 1px solid var(--border);
}

.case-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.case-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.case-meta {
  max-width: var(--max-width);
  margin: 1.8rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.case-meta__block h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: #9a9a9a;
}

.case-meta__block p {
  margin: 0;
}

.case-section {
  border-bottom: 1px solid var(--border);
}

.case-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-section__inner > h2 {
  margin-top: 0;
}

.case-section__inner > p {
  max-width: 68ch;
}

/* figures + galleries */

.case-figure {
  margin: 1.5rem 0 1.75rem;
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.case-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  max-width: 62ch;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* thumbnail images from presentations, max 300px wide */
.case-thumb {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* motion grid + video */

.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.case-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000000;
  border-radius: 0.25rem;
}

/* inverted if-m section */

.section--inverted {
  background: #111111;
  color: #f5f5f5;
}

.section--inverted .section__header h1,
.section--inverted .section__header p {
  color: inherit;
}

.section--inverted a {
  color: #ffffff;
  text-decoration: underline;
}

.section--inverted a:hover {
  text-decoration: none;
}

.motion-partner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}

.motion-partner__video {
  position: relative;
}

.motion-partner__copy p {
  color: #e0e0e0;
  max-width: 62ch;
}

.motion-partner__copy strong {
  color: #ffffff;
}

@media (max-width: 768px) {
  .motion-partner {
    grid-template-columns: 1fr;
  }
}

.case-video {
  cursor: pointer;
  position: relative;
}

.case-video::after {
  content: "tap / click for sound";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-radius: 999px;
  pointer-events: none;
}

/* ----------------------------------------
   VIDEO AUDIO LABEL
----------------------------------------- */

.case-video {
  position: relative;
  cursor: pointer;
  outline: none;
}

.case-video-label {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
  white-space: nowrap;
}

.case-video:hover .case-video-label,
.case-video:focus .case-video-label {
  opacity: 1;
}

/* Let’s chat modal */

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.chat-modal.is-open {
  display: flex;
}

.chat-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.chat-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: min(960px, 94vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* keep iframe inside */
  outline: none;
}

.chat-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.chat-modal__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-height: 0; /* allow frame to size inside */
}

.chat-modal__intro {
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-modal__intro--secondary {
  opacity: 0.8;
}

.chat-modal__frame-wrap {
  margin-top: 1rem;
  flex: 1;
  min-height: 460px;
  position: relative;
}

.chat-modal__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .chat-modal__dialog {
    padding: 1.5rem 1rem;
    width: 94vw;
    max-height: 90vh;
  }
}
