/* Ecologies of Imagination Micro Lab — built from the Figma file "EcologiesOfImagination"
   (Entry screen 8:18, Earthbound screen 2002:83). Measurements follow the 1736px-wide frames:
   on desktop 1 design pixel = var(--u). */

:root {
  --u: calc(100vw / 1736);
  --brown: #775c4e;            /* header bar, corner marks, "exhibition plan" */
  --bar: rgba(119, 92, 78, .40);
  --red: rgba(193, 32, 32, .77); /* circle hover variant */
  --ink: #1c1b1a;
  --paper: #ffffff;
  --footer: #f3f3f3;           /* #d9d9d9 at 31% on white */
  --sans: "Gill Sans MT Pro", "Gill Sans Nova", "Gill Sans", "Gill Sans MT", Seravek, "Trebuchet MS", sans-serif;
  --serif: "Garamond Premier Pro", "EB Garamond", Garamond, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Header (sticky, translucent brown bar) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: max(56px, calc(75 * var(--u)));
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(57 * var(--u)) 0 calc(57 * var(--u));
  background: var(--bar);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.site-header .logo img { width: max(42px, calc(62 * var(--u))); height: auto; }
.site-header nav { display: flex; gap: clamp(18px, calc(56 * var(--u)), 52px); }
.site-header nav a {
  color: #fff; text-decoration: none; font-size: clamp(15px, calc(24 * var(--u)), 22px); letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.18);
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- Fixed image: stays put while everything else scrolls over it ---------- */
.backdrop {
  position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: 0;
  background-size: cover; background-position: center; pointer-events: none;
}
.page { position: relative; z-index: 1; }
.backdrop.shade::after { content: ""; position: absolute; inset: 0; background: rgba(46, 32, 24, .30); }

/* ---------- Title over the image ---------- */
.hero-title {
  color: #fff; margin: 0;
  padding: calc(400 * var(--u)) calc(147 * var(--u)) 0;
  font-weight: 500; font-size: calc(96 * var(--u)); line-height: 1.12;
  text-shadow: 0 1px 14px rgba(60,30,20,.22);
}
.hero-title b { font-weight: 700; display: block; }
.hero-title .sub { display: block; font-weight: 400; font-size: calc(64 * var(--u)); letter-spacing: .01em; }
.hero-title.eb { padding-top: calc(662 * var(--u)); padding-left: calc(80 * var(--u)); }
.hero-title.eb b { letter-spacing: .02em; }

/* ---------- Circles column ---------- */
.circles { position: relative; padding-bottom: calc(160 * var(--u)); }
.circles.entry { margin-top: calc(164 * var(--u)); }
.circles.eb    { margin-top: calc(150 * var(--u)); }
.row {
  position: relative; display: grid; grid-template-columns: 1fr calc(440 * var(--u));
  column-gap: calc(80 * var(--u)); padding-right: calc(115 * var(--u));
  margin-bottom: calc(51 * var(--u)); align-items: start;
}
.circle {
  grid-column: 2; display: block; position: relative; width: calc(440 * var(--u)); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: #d9d9d9; isolation: isolate;
}
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle::after { content: ""; position: absolute; inset: 0; background: var(--red); opacity: 0; transition: opacity .35s ease; }
a.circle:hover::after, a.circle:focus-visible::after, .row.is-hover a.circle::after { opacity: 1; }
a.circle:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.circle.faded::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.77); z-index: 1; }
.circle.faded { opacity: .49; }

/* text beside a circle, framed by the four corner marks */
.label {
  grid-column: 1; grid-row: 1; position: relative; align-self: stretch;
  margin: calc(-73 * var(--u)) 0 calc(-73 * var(--u)) calc(80 * var(--u));
  max-width: calc(788 * var(--u));
  padding: calc(110 * var(--u)) calc(67 * var(--u)) calc(60 * var(--u)) calc(67 * var(--u));
  color: #fff; text-decoration: none; text-shadow: 0 1px 12px rgba(40,20,10,.28);
}
.label .t { display: block; font-weight: 700; font-size: calc(64 * var(--u)); line-height: 1.08; }
.label .a { display: block; font-weight: 400; font-size: calc(44 * var(--u)); line-height: 1.35; margin-top: calc(18 * var(--u)); }
.label .d { display: block; font-weight: 400; font-size: calc(48 * var(--u)); line-height: 1.5; margin-top: calc(24 * var(--u)); }
.label.big .t { font-size: calc(96 * var(--u)); letter-spacing: .02em; }
.marks { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.marks i { position: absolute; width: calc(50 * var(--u)); height: calc(50 * var(--u)); min-width: 22px; min-height: 22px; }
.marks i::before, .marks i::after { content: ""; position: absolute; background: var(--brown); }
.marks i::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); }
.marks i::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-1px); }
.marks i:nth-child(1) { left: 0; top: 0; } .marks i:nth-child(2) { right: 0; top: 0; }
.marks i:nth-child(3) { left: 0; bottom: 0; } .marks i:nth-child(4) { right: 0; bottom: 0; }
.row.is-active .marks, .row:hover .marks, .no-js .marks { opacity: 1; }
.label .t, .label .a, .label .d { transition: opacity .4s ease; }


/* ---------- White panels scroll over the image ---------- */
.panel { background: var(--paper); position: relative; }
.panel-inner { max-width: 1180px; margin: 0 auto; padding: 88px 40px 96px; }
.panel h2 { font-weight: 500; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin: 0 0 28px; }
.panel h3 { font-weight: 700; font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.prose { columns: 2 22em; column-gap: 56px; }
.prose p { margin: 0 0 1em; hyphens: auto; break-inside: avoid-column; }
.lede { font-size: 26px; line-height: 1.35; margin: 0 0 40px; max-width: 30em; }
.facts { list-style: none; padding: 0; margin: 0 0 48px; font-size: 20px; }
.facts strong { font-weight: 700; }
.facts a { text-decoration-color: var(--brown); text-underline-offset: 3px; }
.rule { border: 0; border-top: 1px solid #e3ddd9; margin: 64px 0; }

/* exhibition plan: text index of the works */
.floorplan { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: 56px; align-items: start; }
.floorplan figure { margin: 0; position: sticky; top: 100px; }
ol.plan { list-style: none; margin: 0; padding: 0; }
ol.plan li { display: grid; grid-template-columns: 34px 1fr; align-items: center; border-top: 1px solid #e3ddd9; }
ol.plan li:last-child { border-bottom: 1px solid #e3ddd9; }
ol.plan .n { color: #c00000; font-size: 20px; }
ol.plan a { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 12px 0; text-decoration: none; }
ol.plan img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
ol.plan .t { font-weight: 700; display: block; line-height: 1.2; }
ol.plan .a { display: block; color: #6b625c; font-size: 16px; line-height: 1.35; }
ol.plan a:hover .t { color: var(--brown); }

/* ---------- Work pages ---------- */
.work-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 calc(147 * var(--u)) calc(120 * var(--u)); color: #fff; }
.work-hero .back { position: absolute; top: max(80px, calc(110 * var(--u))); left: calc(80 * var(--u)); color: #fff; text-decoration: none; font-size: 17px; background: var(--bar); padding: .25em .8em; border-radius: 2em; }
.work-hero .back:hover { background: var(--brown); }
.work-hero h1 { margin: 0; font-weight: 700; font-size: clamp(38px, calc(96 * var(--u)), 96px); line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 16em; }
.work-hero .artist { font-size: clamp(20px, calc(48 * var(--u)), 44px); margin-top: .35em; text-shadow: 0 1px 12px rgba(0,0,0,.35); max-width: 26em; line-height: 1.3; }
.backdrop.dim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,18,12,.62), rgba(28,18,12,.05) 55%); }
.work-body .caption { font-size: 16px; color: #6b625c; margin: 0 0 32px; max-width: 46em; }
.work-body .caption p { margin: 0 0 .3em; }
.work-body .text p { margin: 0 0 1em; }
.work-body .text { font-size: 19px; max-width: 40em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 56px 0 0; }
.gallery.five { grid-template-columns: repeat(5, 1fr); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: #6b625c; margin-top: 8px; line-height: 1.4; }
.gallery .wide { grid-column: 1 / -1; }
.film { margin: 56px 0 0; }
.film video { display: block; width: 100%; height: auto; background: #111; }
.film figcaption { font-size: 14px; color: #6b625c; margin-top: 8px; line-height: 1.4; max-width: 60em; }
.event { margin: 40px 0 0; padding: 26px 30px 24px; border-left: 4px solid var(--brown); background: #f6f2ef; max-width: 46em; }
.event .kicker { display: block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); margin-bottom: 8px; }
.event h3 { font-size: 28px; margin: 0 0 8px; }
.event p { margin: 0 0 8px; }
.event .when { margin: 12px 0 0; color: #4a4542; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { color: var(--brown); }
.event .more { margin: 10px 0 0; }
.event .more a { color: var(--brown); text-underline-offset: 3px; }
.hero-kicker { display: block; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
ol.talk-works li { grid-template-columns: 0 1fr; }
.intro { margin: -12px 0 28px; color: #6b625c; max-width: 40em; }
.opening { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.opening .film { margin: 0; }
.opening .film.main { grid-column: 1 / -1; }
.opening figcaption { font-size: 16px; color: var(--ink); }
.bios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; }
.bios p { margin: 0 0 1em; font-size: 17px; }
.bios h3 { font-size: 20px; margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pager a { text-decoration: none; display: block; max-width: 48%; }
.pager small { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.pager span { font-weight: 700; font-size: 20px; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- Contact ---------- */
.contact-title { padding-top: 34vh; }
.contact { margin-top: 30vh; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.contact-grid a { text-decoration-color: var(--brown); text-underline-offset: 3px; }
.addr { color: #6b625c; margin-top: 28px; }
.contact-form label { display: block; font-size: 15px; letter-spacing: .04em; color: #5f5c58; margin-bottom: 18px; }
.contact-form .opt { color: #9a928c; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 18px; color: var(--ink); background: #faf9f8; border: 1px solid #d8d1cc; border-radius: 2px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; border-color: var(--brown); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button { font: inherit; font-size: 18px; color: #fff; background: var(--brown); border: 0; border-radius: 2em; padding: .55em 1.5em; cursor: pointer; }
.contact-form button:hover { background: #5e483d; }
.notice { padding: 12px 16px; border-radius: 2px; margin: 0 0 22px; }
.notice.ok { background: #eef3ec; color: #2f4a2a; }
.notice.err { background: #f8ecea; color: #7a2a20; }
.site-footer a { color: inherit; text-underline-offset: 3px; }

/* ---------- Acknowledgement of Country (shown on entry, once per visit) ---------- */
.ack { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(58, 42, 34, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .5s ease; }
.ack[hidden] { display: none; }
.ack.is-leaving { opacity: 0; }
.ack-inner { max-width: 640px; color: #fff; text-align: center; }
.ack-kicker { font-weight: 500; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 22px; opacity: .85; }
.ack-inner p { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.5; margin: 0 0 34px; }
.ack-btn { font: inherit; font-size: 18px; color: var(--brown); background: #fff; border: 0; border-radius: 2em; padding: .55em 1.8em; cursor: pointer; }
.ack-btn:hover, .ack-btn:focus-visible { background: #f1e9e4; outline: 2px solid #fff; outline-offset: 3px; }
.ack-foot { flex-basis: 100%; margin: 0 0 6px; font-size: 14px; line-height: 1.5; max-width: 60em; }

/* ---------- University and School logos (Curtin always larger than the School) ---------- */
.partners { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.partners img { display: block; height: auto; }
.partners.top { position: absolute; z-index: 2; top: calc(max(56px, calc(75 * var(--u))) + calc(40 * var(--u))); right: calc(115 * var(--u)); }
.partners.top .curtin { width: clamp(170px, calc(340 * var(--u)), 340px); }
.partners.top .dbe { width: clamp(94px, calc(188 * var(--u)), 188px); }
.partners.foot { flex-direction: row; align-items: center; gap: 14px; }
.partners.foot .curtin { width: 190px; }
.partners.foot .dbe { width: 110px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer); padding: 34px calc(80 * var(--u)) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; font-size: 15px; color: #5f5c58; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.social a { display: block; line-height: 0; opacity: .82; transition: opacity .15s; }
.social a:hover, .social a:focus-visible { opacity: 1; }
.social img { width: 28px; height: 28px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 899px) {
  :root { --u: calc(100vw / 820); }
  .site-header { padding: 0 16px; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 15px; }
  .hero-title { padding: 40vh 24px 0; font-size: 44px; }
  .hero-title .sub { font-size: 24px; }
  .hero-title.eb { padding: 34vh 24px 0; }
  .circles.entry, .circles.eb { margin-top: 30vh; }
  .row { grid-template-columns: minmax(0, 1fr) 38vw; column-gap: 12px; padding: 0 16px; margin-bottom: 28px; align-items: center; }
  .circle { width: 38vw; }
  .label { margin: 0; padding: 24px 18px; max-width: none; align-self: center; min-width: 0; overflow-wrap: break-word; }
  .label .t { font-size: 22px; }
  .label.big .t { font-size: clamp(17px, 5.4vw, 24px); letter-spacing: .01em; }
  .label .a { font-size: 16px; margin-top: 6px; }
  .label .d { font-size: 16px; margin-top: 6px; }
  .marks i { min-width: 16px; min-height: 16px; }
  .panel-inner { padding: 56px 22px 64px; }
  .lede { font-size: 21px; }
  .gallery.five { grid-template-columns: repeat(2, 1fr); }
  .floorplan { grid-template-columns: 1fr; gap: 28px; }
  .opening { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .partners.top { top: 74px; right: 16px; gap: 6px; }
  .partners.top .curtin { width: 150px; }
  .partners.top .dbe { width: 82px; }
  .floorplan figure { position: static; max-width: 420px; }
  .work-hero { padding: 0 22px 56px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .circle::after, .marks, .ack { transition: none; } }
