/* Child’s Lane — Creative Incubation Laboratory
   Colours from the official web logo pack v1.0 */
:root {
  --black: #181818;
  --blue: #7896A5;          /* logo muted blue: large text, lines, fills */
  --blue-text: #4E6C7B;     /* darker blue for small text on light grounds (AA) */
  --deep: #223943;          /* dark ground */
  --deep-2: #2E4A56;
  --mist: #C7D3D9;          /* light text on deep */
  --paper: #F3F3F1;         /* page ground */
  --line: #D9DCDD;
  --white: #FFFFFF;
  --ink-2: #4A4F52;         /* body copy */

  --display: "Jost", "Anuphan", "Inter Tight", system-ui, sans-serif;
  --text: "Inter Tight", "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;

  --content: 1120px;
  --gutter: clamp(20px, 5vw, 60px);
  --section: clamp(72px, 10vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--black);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-text); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.more::after { content: ""; width: 56px; height: 1px; background: currentColor; }
.slash::before { content: "/ "; color: var(--blue); }

/* ---------- Header (logo centred, menu split left / right) ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; padding-block: 22px;
}
.logo { grid-column: 2; display: block; }
.logo img { width: 112px; height: auto; }
.nav { display: flex; gap: 34px; font-size: 15px; }
.nav.left { grid-column: 1; grid-row: 1; }
.nav.right { grid-column: 3; grid-row: 1; justify-content: flex-end; }
.nav a[aria-current="page"] { color: var(--blue-text); }
.nav a[aria-current="page"]::before { content: "/ "; }

.menu { display: none; grid-column: 3; grid-row: 1; justify-self: end; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: flex-end; font-size: 15px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: fixed; inset: 0; z-index: 40; background: var(--deep); color: var(--white);
  padding: 96px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: space-between;
}
.menu-panel ul { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1.35; }
.menu-panel a:hover { color: var(--mist); }
.menu-panel .contact { font-size: 14px; line-height: 1.7; color: var(--mist); display: flex; flex-wrap: wrap; gap: 16px 40px; }
.menu-close {
  position: absolute; top: 22px; right: var(--gutter); min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: flex-end; font-size: 15px; cursor: pointer; color: var(--white);
}

.on-dark .nav a, .on-dark .menu summary { color: var(--white); }
.on-dark .nav a:hover { color: var(--mist); }
.on-dark .nav a[aria-current="page"] { color: var(--mist); }

@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: auto 1fr; }
  .logo { grid-column: 1; }
  .logo img { width: 96px; }
  .nav { display: none; }
  .menu { display: block; grid-column: 2; }
}

/* ---------- Home: full-screen slideshow ---------- */
.home { background: var(--deep); }
.stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: var(--white); overflow: hidden; }
.stage .site-header { position: relative; }
.slides { position: absolute; inset: 0; }
.slides figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slides figure.on { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.58); }
.stage-body { position: relative; z-index: 1; margin-top: auto; padding-bottom: clamp(32px, 7vh, 72px); }
.stage-body .wrap { display: flex; flex-direction: column; gap: 22px; }
.statement {
  font-family: var(--display); font-weight: 300; max-width: 860px;
  font-size: clamp(28px, 3.6vw, 46px); line-height: 1.18;
}
.featured { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 15px; color: var(--mist); }
.featured a { color: var(--white); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.featured a:hover { color: var(--mist); }
.dots { display: flex; gap: 8px; margin-left: auto; }
.dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center;
}
.dots button::before { content: ""; width: 100%; height: 2px; background: rgba(255,255,255,.4); transition: background .3s; }
.dots button[aria-current="true"]::before { background: var(--white); }
.home-foot { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--mist); }
.home-foot a:hover { color: var(--white); }

/* ---------- Page intro ---------- */
.intro { padding-top: clamp(48px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.intro p {
  font-family: var(--display); font-weight: 300; max-width: 900px;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.25;
}
.intro p a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.intro .kicker { font-family: var(--text); font-size: 14px; color: var(--blue-text); margin-bottom: 18px; display: block; }

/* ---------- Side-label rows (label left, content right) ---------- */
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 40px; padding-block: 48px; border-top: 1px solid var(--line); }
.row > h2 { font-family: var(--text); font-size: 14px; font-weight: 500; color: var(--blue-text); }
.row > h2::before { content: "/ "; }
.row .body { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; padding-block: 36px; } }

/* ---------- Work list (big pictures, caption below) ---------- */
.list { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); padding-bottom: var(--section); }
.item { display: flex; flex-direction: column; gap: 14px; }
.item .media { overflow: hidden; background: var(--deep); }
.item .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.item:hover .media img { transform: scale(1.02); }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-cine { aspect-ratio: 21 / 9; }
.ratio-tall { aspect-ratio: 4 / 5; }
.cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.cap h3 { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.cap .type { font-size: 14px; color: var(--blue-text); }
.cap p { flex-basis: 100%; max-width: 680px; font-size: 15px; color: var(--ink-2); }
.credit { font-size: 12px; color: #7C8487; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair.uneven { grid-template-columns: 3fr 2fr; }
@media (max-width: 600px) { .pair, .pair.uneven { grid-template-columns: 1fr; } }
.bg-blue { background: var(--blue) !important; }
.bg-grey { background: #7F7F7F !important; }
.bg-black { background: #000 !important; }
.media.contain { display: flex; align-items: flex-end; justify-content: center; }
.media.contain img { width: auto; height: 94%; object-fit: contain; }

/* ---------- Research tracks ---------- */
.track { padding-block: var(--section) 0; }
.track-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 40px; margin-bottom: 40px; }
.track-head .label { font-size: 14px; font-weight: 500; color: var(--blue-text); }
.track-head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.track-head p { grid-column: 2; max-width: 680px; color: var(--ink-2); }
.projects { border-top: 1px solid var(--black); }
.project {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 6px 40px;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.project .year { font-size: 14px; color: var(--blue-text); }
.project h3 { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.25; }
.project p { margin-top: 6px; font-size: 15px; color: var(--ink-2); max-width: 640px; }
.project .meta { font-size: 13px; color: var(--blue-text); text-align: right; white-space: nowrap; }
.track-note { margin-top: 18px; font-size: 14px; color: var(--blue-text); }
.track-media { margin-top: 48px; }
@media (max-width: 760px) {
  .track-head, .project { grid-template-columns: 1fr; }
  .track-head p { grid-column: 1; }
  .project .meta { text-align: left; }
}

/* ---------- What we do ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: var(--section); }
.cols h2 { font-family: var(--display); font-weight: 300; font-size: 30px; margin-bottom: 14px; }
.cols p { font-size: 16px; color: var(--ink-2); }
.cols ul { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.cols li { padding-block: 8px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: 48px; } }
.case { padding-bottom: clamp(56px, 8vw, 104px); display: flex; flex-direction: column; gap: 18px; }
.case h3 { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; max-width: 820px; }
.case h3 b { font-weight: 400; }
.tile-art { display: flex; align-items: center; justify-content: center; background: var(--deep); }
.tile-art svg { width: 46%; height: auto; }

/* ---------- Lab ---------- */
.people-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.people-strip a { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.people-strip img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 30%; background: #E2E6E8; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; }
.partners li { padding-block: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.partners b { font-weight: 400; color: var(--black); }
.partners span { font-size: 14px; }
.dated li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.dated li > span:first-child { color: var(--blue-text); }
.pubs li { padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.pubs i { color: var(--black); font-style: normal; }
.pubs .src { display: block; font-size: 13px; color: var(--blue-text); margin-top: 2px; }
.band { margin-block: 48px; }

/* ---------- People ---------- */
.director { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: var(--white); margin-bottom: var(--section); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.director-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.director-body h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.director-body .th { color: var(--ink-2); }
.director-body p { color: var(--ink-2); font-size: 16px; }
.cv { border-top: 1px solid var(--black); }
.cv div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cv dt { color: var(--blue-text); }
.cv dd { color: var(--ink-2); }
@media (max-width: 860px) { .director { grid-template-columns: 1fr; } }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; padding-bottom: var(--section); }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; } }
.member { display: flex; flex-direction: column; gap: 6px; }
.member img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 30%; background: #E2E6E8; margin-bottom: 8px; }
.member h3 { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.2; }
.member .th { font-size: 15px; color: var(--ink-2); }
.member .role { font-size: 13px; color: var(--blue-text); }
.member .focus { font-size: 14px; color: var(--ink-2); }
.member a { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--mist); overflow: hidden; }
.site-footer .cols-f {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px;
  padding-block: 64px 48px; font-size: 14px; line-height: 1.8;
}
.site-footer .cols-f div { display: flex; flex-direction: column; }
.site-footer b { color: var(--white); font-weight: 400; margin-bottom: 6px; }
.site-footer a:hover { color: var(--white); }
.footer-mark { padding-block: 24px 56px; border-top: 1px solid var(--deep-2); }
.footer-mark img { width: min(520px, 100%); height: auto; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-bottom: 32px; font-size: 12px; color: #93A6AF; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides figure, .item .media img { transition: none; }
}
@media (max-width: 600px) { body { font-size: 16px; } }

/* Video loops in works */
.item .media video, .case .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap .links { font-size: 14px; color: var(--ink-2); }
.cap .links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.media.embed { aspect-ratio: 16 / 9; background: #000; }
.media.embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Student work */
.students { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.students-head { display: grid; grid-template-columns: 280px 1fr; gap: 24px; margin-bottom: 48px; align-items: baseline; }
.students-head h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 40px); margin: 0; }
.students-head p { color: var(--ink-2); margin: 0; max-width: 46ch; }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.sw .media { overflow: hidden; background: var(--deep); margin-bottom: 14px; }
.sw .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw h3 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.sw h3 span { font-family: var(--text); font-size: 13px; color: var(--blue-text); margin-left: 6px; }
.sw .who { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; line-height: 1.5; }
.sw .who span { color: #7C8487; }
.sw .aw { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.sw .aw li { padding-left: 14px; position: relative; }
.sw .aw li::before { content: "/"; position: absolute; left: 0; color: var(--blue); }
.sw .watch { font-size: 13px; color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.more-aw { margin-top: 72px; }
.dated a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .students-head { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 600px) { .sw-grid { grid-template-columns: 1fr; } }
