/* ==========================================================================
   Tian Ze — single-page site
   Static HTML/CSS/JS. No build step, no external requests.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #f2efe9;
  --paper-2: #e7e2d9;
  --bone: #f7f5f0;
  --ink: #121416;
  --ink-2: #3e4446;
  --muted: #5c6365;
  --line: rgba(18, 20, 22, 0.14);
  --line-strong: rgba(18, 20, 22, 0.28);
  --blue: #1f2bd6;
  --blue-deep: #151cb0;
  --error: #a3231b;

  --sans: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --container: min(1480px, calc(100% - clamp(40px, 8vw, 128px)));
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.08vw, 1.1875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
figure { margin: 0; }

::selection {
  background: var(--blue);
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.contact :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--bone);
}

.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;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: var(--container);
  margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bone);
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bone);
}

.btn-dark {
  background: var(--ink);
  color: var(--bone);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 2px 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.text-link:hover { color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(242, 239, 233, 0.93);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.brand-dot {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-word {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  /* optical alignment: sit the wordmark on the bottom edge of the mark */
  padding-bottom: 1px;
}
.brand-sub {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-cta { min-height: 42px; padding: 0 20px; font-size: 12.5px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.menu-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 11px;
}
.menu-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.menu-toggle-icon span:first-child { top: 0; }
.menu-toggle-icon span:last-child { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
  transform: translateY(5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: calc(var(--header-h) + 24px) 0 32px;
  overflow-y: auto;
  background: var(--paper);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner {
  width: var(--container);
  min-height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav-label {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mobile-nav a {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mobile-nav a:last-of-type {
  border-bottom: 1px solid var(--line);
  color: var(--blue);
}
.mobile-nav a[aria-current="page"] { color: var(--blue); }
.mobile-nav-meta {
  margin-top: auto;
  padding-top: 48px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(56px, 7vw, 100px);
}
.hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker,
.hero-meta {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}
.hero-kicker { color: var(--ink); }
.hero-meta { color: var(--muted); text-align: right; }

.hero-title {
  margin-top: clamp(22px, 3vw, 38px);
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.04em;
}
.hero-line > span { display: block; }

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: end;
  margin-top: clamp(26px, 3.2vw, 42px);
}

.hero-copy {
  grid-column: 1 / 4;
  align-self: start;
  max-width: 35ch;
}
.hero-copy p {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.56;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
  margin-top: 28px;
}

.hero-photo {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), clip-path 1.1s var(--ease);
}
.hero-photo:hover img { transform: scale(1.025); }

.hero-photo-main {
  grid-column: 4 / 11;
  grid-row: 1;
  aspect-ratio: 3 / 2;
}
.hero-photo-small {
  grid-column: 10 / 13;
  grid-row: 1;
  align-self: end;
  z-index: 2;
  width: auto;
  aspect-ratio: 1 / 1;
  margin-right: clamp(18px, 2.2vw, 30px);
  margin-bottom: -10px;
  border: 10px solid var(--paper);
  background: var(--paper-2);
  box-shadow: 0 24px 50px -24px rgba(18, 20, 22, 0.45), 0 3px 12px rgba(18, 20, 22, 0.12);
}
.hero-photo-small:hover img { transform: scale(1.04); }

.photo-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 178px;
  padding: 13px 18px;
  background: var(--paper);
  color: var(--ink);
}
.photo-tag-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.photo-tag-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.photo-tag-action::after {
  content: "↗";
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.hero-photo:hover .photo-tag-action { color: var(--blue-deep); }

/* ---------- Capabilities strip ---------- */
.capabilities {
  padding-block: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.capability-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 24px;
}
.capability-list li {
  position: relative;
  padding-left: 15px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.capability-list li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--blue);
}

/* ---------- Section scaffolding ---------- */
.section {
  padding-block: clamp(72px, 9.5vw, 136px);
  border-top: 1px solid var(--line);
}
.capabilities + .section { border-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 48px;
  margin-bottom: clamp(40px, 5.6vw, 72px);
}
.section-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.section-head h2 {
  max-width: 15ch;
  font-size: clamp(2.3rem, 4.7vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-note {
  max-width: 36ch;
  padding-bottom: 4px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: clamp(48px, 6.5vw, 92px);
  align-items: end;
}

.project-feature {
  display: grid;
  grid-column: 1 / 13;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
  align-items: end;
}
.project-feature .project-card { grid-column: 1 / 9; }
.project-aside {
  grid-column: 10 / 13;
  align-self: end;
  padding-bottom: 6px;
}
.aside-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}
.project-aside h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  letter-spacing: -0.035em;
}
.project-aside > p:not(.aside-label):not(.aside-count) {
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.55;
}
.aside-count {
  margin-top: 16px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
}
.project-aside .text-link { margin-top: 22px; }

.project-maroubra { grid-column: 1 / 6; }
.project-marsfield { grid-column: 7 / 13; }
.project-sansouci { grid-column: 1 / 6; }
.project-south { grid-column: 7 / 13; }

.project-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.project-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ph, var(--paper-2));
}
.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.03); }

.project-caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
}
.project-index {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.project-name {
  position: relative;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.project-name::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}
.project-card:hover .project-name::after { transform: scaleX(1); }
.project-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Services ---------- */
.service {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px);
  padding-top: clamp(30px, 3.6vw, 46px);
  border-top: 1px solid var(--line);
}
.service + .service { margin-top: clamp(48px, 6vw, 80px); }

.service-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: 1 / 6;
  padding-right: clamp(0px, 3vw, 40px);
}
.service-kicker {
  margin-bottom: 16px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.service-intro h3 {
  max-width: 14ch;
  font-size: clamp(1.75rem, 3.1vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.service-intro > p {
  max-width: 40ch;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
}
.service-cta {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.service-cta-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.section-more { margin-top: clamp(30px, 4vw, 48px); }
.service-list { grid-column: 7 / 13; }
.service-list li {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(16px, 2.2vw, 32px);
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.service-list li:first-child { padding-top: 0; border-top: 0; }
.service-list h4 {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.service-list p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.service-footnote {
  grid-column: 7 / 13;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 42px);
}
.process-list li {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.process-list li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--blue);
}
.process-number {
  display: block;
  margin-bottom: clamp(26px, 3vw, 42px);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
}
.process-list h3 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.process-list p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Studio ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.studio-figure { grid-column: 1 / 8; }
.studio-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.studio-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}
.studio-copy { grid-column: 8 / 13; padding-top: 6px; }
.studio-lede {
  color: var(--ink);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.45;
}
.studio-copy > p + p { margin-top: 18px; }
.studio-facts {
  margin: 30px 0 32px;
  border-top: 1px solid var(--line);
}
.studio-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.studio-facts dt {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}
.studio-facts dd {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- Contact ---------- */
.contact {
  padding-block: clamp(72px, 9vw, 128px);
  background: var(--blue);
  color: var(--bone);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.contact-intro { grid-column: 1 / 6; }
.section-label-light { color: rgba(247, 245, 240, 0.75); }
.contact-intro h2 {
  max-width: 10ch;
  margin-bottom: 26px;
  color: var(--bone);
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.contact-intro > p:not(.section-label):not(.contact-direct) {
  max-width: 34ch;
  color: rgba(247, 245, 240, 0.82);
  font-size: 1.02rem;
  line-height: 1.6;
}
.contact-direct {
  margin-top: clamp(36px, 5vw, 64px);
  color: rgba(247, 245, 240, 0.75);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
}
.contact-direct a {
  display: inline-block;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 245, 240, 0.45);
  line-height: 24px;
  transition: border-color 0.25s var(--ease);
}
.contact-direct a:hover { border-bottom-color: var(--bone); }

.contact-form-wrap {
  grid-column: 7 / 13;
  padding: clamp(24px, 3vw, 40px);
  background: var(--bone);
  color: var(--ink);
}

.field + .field,
.field-row + .field { margin-top: 20px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.field label span { font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field select {
  padding-right: 26px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235c6365' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--blue);
  box-shadow: 0 1px 0 0 var(--blue);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--error);
  box-shadow: 0 1px 0 0 var(--error);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.field-row .field + .field { margin-top: 0; }
.field-error {
  margin-top: 6px;
  color: var(--error);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}
.btn-submit {
  width: 100%;
  margin-top: 26px;
}
.form-note {
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.5;
}
.form-status {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}
.form-status a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}
.form-status a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.form-honeypot { position: absolute; left: -9999px; }

.form-panel[hidden] { display: none; }
.form-panel { outline: 0; }
.form-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.form-panel-label {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-panel-title {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.form-panel-copy {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.6;
}
.form-panel .btn { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 6.5vw, 92px);
  overflow: hidden;
  background: var(--ink);
  color: rgba(247, 245, 240, 0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 40px;
  padding-bottom: clamp(48px, 6vw, 76px);
}
.footer-brand { grid-column: 1 / 6; }
.footer-brand p {
  max-width: 32ch;
  margin-top: 20px;
  color: rgba(247, 245, 240, 0.6);
  font-size: 1rem;
  line-height: 1.6;
}
.brand-light .brand-word { color: var(--bone); }
.brand-light .brand-sub { color: rgba(247, 245, 240, 0.5); }

.footer-nav {
  grid-column: 7 / 9;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.footer-nav a {
  position: relative;
  padding-block: 4px;
  color: rgba(247, 245, 240, 0.7);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--bone); }
.footer-nav a[aria-current="page"] { color: var(--bone); }
.footer-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  background: var(--blue);
}

.footer-contact {
  grid-column: 10 / 13;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.8;
}
.footer-label {
  margin-bottom: 10px;
  color: rgba(247, 245, 240, 0.58);
  font-size: 11.5px;
}
.footer-contact a {
  display: inline-block;
  max-width: 100%;
  padding-block: 3px;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 245, 240, 0.35);
  line-height: 24px;
  overflow-wrap: anywhere;
}
.footer-contact a:hover { border-bottom-color: var(--bone); }
.footer-contact p { color: rgba(247, 245, 240, 0.55); }

.footer-wordmark {
  padding-top: 22px;
  border-top: 1px solid rgba(247, 245, 240, 0.14);
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(3.8rem, 14vw, 12.5rem);
  font-weight: 600;
  line-height: 0.76;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(247, 245, 240, 0.14);
  color: rgba(247, 245, 240, 0.58);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}
.footer-bottom a {
  display: inline-block;
  color: rgba(247, 245, 240, 0.72);
  line-height: 24px;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--bone); }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(8, 9, 10, 0.94);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.lightbox[open] { display: block; }

.lightbox-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(16px, 2.6vw, 32px) clamp(16px, 3vw, 44px);
}
.lightbox-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.16);
}
.lightbox-label {
  margin-bottom: 6px;
  color: rgba(247, 245, 240, 0.5);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.lightbox-head h2 {
  color: var(--bone);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
}
.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lightbox-count {
  color: rgba(247, 245, 240, 0.58);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.lightbox-close {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, 0.32);
  border-radius: 50%;
  background: none;
  color: var(--bone);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lightbox-close:hover {
  border-color: var(--bone);
  background: rgba(247, 245, 240, 0.08);
}
.lightbox-close span {
  position: absolute;
  inset: 0;
}
.lightbox-close span::before,
.lightbox-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: currentColor;
}
.lightbox-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 18px 0;
}
.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s var(--ease);
}
.lightbox-image.is-loading { opacity: 0.35; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(247, 245, 240, 0.32);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.32);
  color: var(--bone);
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lightbox-nav:hover {
  border-color: var(--bone);
  background: rgba(247, 245, 240, 0.1);
}
.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }
.lightbox-nav span {
  display: block;
  width: 9px;
  height: 9px;
  border-top: 1.4px solid currentColor;
  border-right: 1.4px solid currentColor;
}
.lightbox-prev span { transform: rotate(-135deg); margin-left: 3px; }
.lightbox-next span { transform: rotate(45deg); margin-right: 3px; }

.lightbox-thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(247, 245, 240, 0.35) transparent;
}
.lightbox-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 60px;
  padding: 0;
  border: 1px solid transparent;
  background: #1a1b1d;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lightbox-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox-thumb:hover { opacity: 0.9; }
.lightbox-thumb[aria-current="true"] {
  border-color: var(--bone);
  opacity: 1;
}

/* ---------- Load motion ---------- */
.js .hero-line > span {
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.js .hero-line:nth-child(2) > span { transition-delay: 0.07s; }
.js .hero-line:nth-child(3) > span { transition-delay: 0.14s; }
.js.is-loaded .hero-line > span { transform: translateY(0); }

.js .hero-photo img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease), transform 1s var(--ease);
}
.js.is-loaded .hero-photo-main img { transition-delay: 0.18s; }
.js.is-loaded .hero-photo-small img { transition-delay: 0.32s; }
.js.is-loaded .hero-photo img { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / 5; }
  .hero-photo-main { grid-column: 5 / 11; }
  .hero-photo-small { grid-column: 10 / 13; }
  .project-aside { grid-column: 9 / 13; }
  .project-feature .project-card { grid-column: 1 / 9; }
  .studio-figure { grid-column: 1 / 7; }
  .studio-copy { grid-column: 7 / 13; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .primary-nav,
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { gap: 0; }

  .hero { padding-top: 26px; }
  .hero-title { font-size: clamp(2.7rem, 9.6vw, 5.2rem); }
  .hero-bottom {
    grid-template-columns: repeat(8, 1fr);
    row-gap: 0;
  }
  .hero-copy {
    grid-column: 1 / 9;
    max-width: 46ch;
    margin-bottom: 30px;
  }
  .hero-photo-main {
    grid-column: 1 / 7;
    grid-row: 2;
  }
  .hero-photo-small {
    grid-column: 6 / 9;
    grid-row: 2;
    margin-bottom: -8px;
    border-width: 8px;
  }

  .capability-list { grid-template-columns: repeat(2, 1fr); }

  .section-head { display: block; }
  .section-head h2 { max-width: 18ch; }
  .section-note { max-width: 46ch; margin-top: 20px; }

  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .project-feature {
    grid-column: 1 / 3;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }
  .project-feature .project-card { grid-column: 1; }
  .project-aside { grid-column: 1; padding-bottom: 0; }
  .project-aside > p:not(.aside-label):not(.aside-count) { max-width: 40ch; }
  .project-maroubra,
  .project-sansouci { grid-column: 1 / 2; }
  .project-marsfield,
  .project-south { grid-column: 2 / 3; }

  .service { display: block; }
  .service-intro { padding-right: 0; }
  .service-intro h3 { max-width: 20ch; }
  .service-cta { margin-top: 0; padding-top: 22px; border-top: 0; }
  .service-list { margin-top: 34px; }
  .service-footnote { margin-top: 24px; }

  .process-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }

  .studio-grid { display: block; }
  .studio-figure { margin-bottom: 34px; }
  .studio-copy { padding-top: 0; }

  .contact-grid { display: block; }
  .contact-intro { margin-bottom: 36px; }
  .contact-direct { margin-top: 30px; }

  .footer-brand { grid-column: 1 / 8; }
  .footer-nav { grid-column: 8 / 13; }
  .footer-contact {
    grid-column: 1 / 13;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(247, 245, 240, 0.14);
  }
  .footer-label { margin-bottom: 0; }
  .footer-contact p { margin: 0; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 40px); }

  body { font-size: 1.0625rem; line-height: 1.6; }

  .header-inner { min-height: var(--header-h); }
  .brand-word { font-size: 17px; }
  .brand-sub { font-size: 9px; }

  .hero-top { display: block; }
  .hero-meta { margin-top: 6px; text-align: left; }
  .hero-title {
    margin-top: 22px;
    font-size: clamp(2.2rem, 10.4vw, 3.9rem);
    line-height: 0.94;
  }
  .hero-bottom { display: block; }
  .hero-copy { margin-bottom: 26px; }
  .hero-actions { gap: 15px; margin-top: 24px; }
  .hero-photo-main { width: 100%; }
  .hero-photo-small {
    width: 46%;
    margin: -12vw 0 0 auto;
    border-width: 7px;
  }
  .photo-tag { min-width: 0; padding: 10px 14px; }
  .photo-tag-name { font-size: 13px; }

  .capabilities { padding-block: 16px; }
  .capability-list { grid-template-columns: 1fr; gap: 11px; }
  .capability-list li { font-size: 12px; }

  .section { padding-block: 64px; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(2.05rem, 9vw, 2.8rem); }
  .section-note { font-size: 0.96rem; }

  .work-grid { display: block; }
  .project-feature { display: block; margin-bottom: 44px; }
  .project-aside { margin-top: 24px; }
  .project-feature .project-card { margin-bottom: 0; }
  .project + .project { margin-top: 44px; }
  .project-caption { gap: 10px; }
  .project-count { font-size: 10.5px; }

  .service { padding-top: 26px; }
  .service-intro h3 { font-size: 1.9rem; }
  .service-list { margin-top: 28px; }
  .service-list li {
    display: block;
    padding: 18px 0;
  }
  .service-list h4 { margin-bottom: 7px; }
  .service-list p { font-size: 0.96rem; }

  .process-list { grid-template-columns: 1fr; row-gap: 34px; }
  .process-number { margin-bottom: 20px; }

  .studio-figure { margin-bottom: 28px; }
  .studio-facts div { grid-template-columns: 82px 1fr; gap: 14px; }

  .contact { padding-block: 64px; }
  .contact-intro h2 { font-size: clamp(2.5rem, 11.5vw, 3.5rem); }
  .contact-form-wrap { padding: 22px 20px; }
  .field-row { display: block; }
  .field-row .field + .field { margin-top: 20px; }

  .site-footer { padding-top: 52px; }
  .footer-top { display: block; padding-bottom: 44px; }
  .footer-brand { margin-bottom: 34px; }
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 30px;
  }
  .footer-contact {
    display: block;
    padding-top: 0;
    border-top: 0;
    font-size: 12px;
  }
  .footer-label { margin-bottom: 10px; }
  .footer-wordmark {
    font-size: clamp(3.4rem, 20vw, 5.2rem);
    padding-top: 18px;
  }
  .footer-bottom {
    display: block;
    padding: 16px 0 24px;
  }
  .footer-bottom a { display: inline-block; margin-top: 8px; }

  .lightbox-inner { padding: 14px 14px 10px; }
  .lightbox-head { gap: 14px; }
  .lightbox-tools { gap: 12px; }
  .lightbox-stage { padding: 12px 0; }
  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-thumb { width: 68px; height: 49px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .hero-line > span { transform: none !important; }
  .js .hero-photo img { clip-path: none !important; }
  .project-card:hover .project-media img { transform: none; }
  .hero-photo:hover img { transform: none; }
}

/* ==========================================================================
   Subpages: Portfolio, Our Process, Resources for Clients
   ========================================================================== */

/* ---------- Shared page hero ---------- */
.page-hero {
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: clamp(46px, 6vw, 86px);
}
.page-hero-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}
.page-hero-kicker { color: var(--ink); }
.page-hero-meta { color: var(--muted); text-align: right; }
.page-hero-title {
  max-width: 15ch;
  margin-top: clamp(26px, 4vw, 52px);
  font-size: clamp(3rem, 7.6vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.page-hero-foot {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: end;
  margin-top: clamp(26px, 3.4vw, 44px);
}
.page-hero-lede {
  grid-column: 1 / 6;
  max-width: 40ch;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.2vw, 1.22rem);
  line-height: 1.55;
}
.page-hero-aside {
  grid-column: 8 / 13;
  max-width: 34ch;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---------- Portfolio ---------- */
.portfolio-section { padding-bottom: clamp(56px, 7vw, 96px); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 3.6vw, 56px) clamp(18px, 2.4vw, 36px);
}
.portfolio-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.portfolio-card:nth-child(1),
.portfolio-card:nth-child(2) { grid-column: span 6; }
.portfolio-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.portfolio-card:hover .portfolio-media img { transform: scale(1.035); }
.portfolio-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.portfolio-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--sans);
}
.portfolio-name {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.portfolio-arrow {
  color: var(--blue);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.portfolio-card:hover .portfolio-arrow { transform: translate(3px, -3px); }

/* ---------- Process: numbered steps ---------- */
.steps { padding-bottom: clamp(24px, 3vw, 40px); }
.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 88px);
  margin-top: clamp(40px, 5vw, 68px);
}
.step {
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--line-strong);
}
.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.step-number {
  color: var(--blue);
  font-family: var(--sans);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.step-icon { color: var(--ink); }
.step-icon svg { display: block; width: 30px; height: 30px; }
.step h3 {
  max-width: 20ch;
  margin-top: 20px;
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.05;
}
.step p {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.step-outcome {
  max-width: 40ch;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Shared bottom CTA ---------- */
.page-cta {
  padding-block: clamp(56px, 7vw, 92px);
  background: var(--paper-2);
}
.page-cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
}
.page-cta h2 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.95;
}
.page-cta-copy { max-width: 36ch; }
.page-cta-copy p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.page-cta .btn { margin-top: 22px; }

/* ---------- Resources: cards ---------- */
.resource-section { padding-bottom: clamp(40px, 5vw, 64px); }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.resource-card {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}
.resource-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  background: var(--paper-2);
}
.resource-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.resource-card:hover .resource-media img { transform: scale(1.03); }
.resource-label {
  color: var(--blue);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.resource-card h2 {
  margin-top: 10px;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.1;
}
.resource-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.resource-card h2 a:hover { color: var(--blue); }
.resource-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.resource-more:hover { color: var(--blue-deep); }

/* ---------- Resources: guides ---------- */
.guide {
  padding-block: clamp(40px, 5vw, 68px);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.guide-inner {
  display: grid;
  grid-template-columns: 2fr 8fr;
  gap: clamp(24px, 4vw, 72px);
}
.guide-label {
  align-self: start;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.guide-label span {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}
.guide-main { max-width: 72ch; }
.guide-main h2 {
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.7vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.guide-lede {
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.35vw, 1.28rem);
  line-height: 1.5;
}
.guide-main p {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}
.guide-points {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.guide-points li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}
.guide-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.guide-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.6;
}
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 26px;
}

/* ---------- Subpage responsive ---------- */
@media (max-width: 1080px) {
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 12px; }
}

@media (max-width: 900px) {
  .page-hero-lede { grid-column: 1 / 9; }
  .page-hero-aside { grid-column: 1 / 9; margin-top: 6px; }
  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2) { grid-column: span 6; }
  .step-list { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; gap: 36px; }
  .guide-inner { grid-template-columns: 1fr; gap: 16px; }
  .guide-label span { display: inline; margin-left: 8px; }
  .page-cta-inner { display: block; }
  .page-cta-copy { margin-top: 24px; }
}

@media (max-width: 640px) {
  .page-hero-title { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .page-hero-top { display: block; }
  .page-hero-meta { margin-top: 6px; text-align: left; }
  .page-hero-lede,
  .page-hero-aside { grid-column: 1 / -1; }
  .portfolio-card,
  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(2) { grid-column: 1 / -1; }
  .resource-grid { gap: 30px; }
  .page-cta { padding-block: 56px; }
}
