* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f3eafc;
  --cream: #fffafc;
  --paper: var(--cream);
  --surface: #e9d9f8;
  --surface-strong: #d9b8f0;
  --purple: #c79ae7;
  --purple-soft: #faf3ff;
  --purple-deep: #6a4d8d;
  --ink: #20192d;
  --muted: #5b4b6e;
  --line: #d7c7ee;
  --line-strong: var(--line);
  --page-pad: clamp(22px, 6vw, 92px);
  --content-width: 1440px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body,
button,
a,
textarea {
  font-family: var(--sans);
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-shell {
  position: relative;
  width: 100%;
  overflow: clip;
  min-height: 100vh;
  background: var(--bg);
}

.grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.section-pad {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding-inline: var(--page-pad);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 12;
}

.monogram,
.footer-mark {
  font: 500 25px/1 var(--serif);
  letter-spacing: -2px;
  text-decoration: none;
}

.monogram span,
.footer-mark span {
  color: var(--purple-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
  margin-left: auto;
}

.nav-links a,
.top-contact {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.top-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.top-contact span {
  color: var(--purple-deep);
  font-size: 16px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}

.hero {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: 38px var(--page-pad) 30px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 24px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.hero-kicker-rule {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}

.hero-meta i,
.project-category i,
.project-bottomline i,
.timeline-item small i {
  color: var(--purple-deep);
  font-style: normal;
}

.hero-stage {
  min-height: clamp(570px, 54vw, 720px);
  position: relative;
  isolation: isolate;
}

.hero-title {
  position: absolute;
  z-index: 1;
  top: clamp(52px, 8vw, 116px);
  left: -0.035em;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  font-size: clamp(92px, 13vw, 184px);
  font-weight: 500;
  letter-spacing: -0.105em;
  line-height: 0.78;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-title > span:last-child {
  color: var(--purple-deep);
  margin-left: 0.29em;
  margin-top: 0.1em;
}

.hero-title > span {
  display: block;
}

.hero-image-wrap {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 1%;
  width: min(42vw, 550px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.portrait-disc {
  position: absolute;
  z-index: -1;
  top: 11%;
  right: 2%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--purple-soft);
}

.hero-image-wrap img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 42px;
  width: min(590px, 57%);
}

.display-copy {
  max-width: 540px;
  margin: 0;
  font: 500 clamp(26px, 3.1vw, 41px)/1.12 var(--serif);
  letter-spacing: -1.2px;
}

.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-top: 24px;
}

.body-copy {
  max-width: 215px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button span {
  color: var(--purple-deep);
  font-size: 15px;
  transition: transform 220ms ease;
}

.button:hover span {
  transform: translate(2px, -2px);
}

.button--dark {
  background: var(--ink);
  color: var(--paper);
}

.button--dark span {
  color: #c7acd9;
}

.button--dark:hover {
  border-color: var(--purple-deep);
  background: var(--purple-deep);
}

.button--line {
  background: transparent;
}

.button--line:hover {
  border-color: var(--purple-deep);
  background: var(--purple-soft);
}

.hero-footnote {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.hero-footnote b {
  padding-left: 5px;
  color: var(--purple-deep);
  font-size: 13px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.eyebrow {
  display: block;
  color: var(--purple-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font: 500 clamp(34px, 4.6vw, 65px)/0.98 var(--serif);
  letter-spacing: -2px;
}

.section-heading h2 em,
.contact-copy h2 em {
  color: var(--purple-deep);
  font-weight: 500;
}

.section-note {
  max-width: 265px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.selected-work {
  padding-top: 85px;
  padding-inline: clamp(22px, 4vw, 58px);
  margin: 0 auto;
  width: min(100%, calc(var(--content-width) + 116px));
  background: var(--paper);
}

.project-story {
  position: relative;
  padding: 21px 0 31px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 44px;
  --project-accent: var(--purple-deep);
}

.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.project-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.project-index {
  color: var(--project-accent);
  font: 500 18px/1 var(--serif);
}

.project-heading h3 {
  margin: 0;
  font: 500 clamp(34px, 5.3vw, 72px)/0.95 var(--serif);
  letter-spacing: -2px;
}

.project-period {
  color: var(--project-accent);
}

.project-category {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.project-category i {
  padding-inline: 4px;
}

.project-layout--teamcut {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}

.project-story-copy {
  max-width: 360px;
  padding-block: 18px;
}

.project-lead {
  margin: 0;
  font: 500 clamp(22px, 2.6vw, 34px)/1.18 var(--serif);
  letter-spacing: -0.65px;
}

.project-facts {
  margin-top: 29px;
  border-top: 1px solid var(--line);
}

.project-facts > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.project-facts span {
  color: var(--project-accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.project-facts p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 21px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}

.project-link span {
  color: var(--project-accent);
  font-size: 16px;
  transition: transform 180ms ease;
}

.project-link:hover span {
  transform: translate(2px, -2px);
}

.teamcut-gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 22px);
  overflow: visible;
  padding: 16px 0 6px;
}

.project-shot {
  min-width: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.project-shot > img { display: block; width: 100%; height: auto; }
.project-shot figcaption {
  padding-top: 9px;
  color: var(--purple-deep);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.project-shot--mobile {
  width: min(23%, 216px);
}

.project-shot--mobile img {
  border-radius: 7px;
}

.project-shot--offset {
  margin-top: 36px;
}

.project-bottomline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  margin-top: 23px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.dua-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.55fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
}

.project-shot--desktop img {
  width: 100%;
  height: auto;
}

.dua-caption {
  max-width: 330px;
}

.project-quiet {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.dua-caption .project-link {
  margin-top: 27px;
}

.dua-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
  margin: 27px 10% 0;
}

.dua-gallery .project-shot:last-child {
  grid-column: 1 / -1;
  width: 72%;
  margin: 0 auto;
}

.bagong-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(165px, 0.56fr) minmax(130px, 0.36fr);
  align-items: center;
  gap: clamp(20px, 3.7vw, 56px);
}

.project-shot--bagong-mobile {
  width: 100%;
  max-width: 210px;
  justify-self: center;
}

.bagong-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 70%;
  margin: 25px 0 0 auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.bagong-gallery .project-shot--mobile {
  width: 100%;
  max-width: 200px;
  justify-self: center;
}

.archive-section {
  padding-top: 62px;
  padding-bottom: 98px;
}

.archive-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.archive-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .68fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
.archive-layout > * { min-width: 0; }
.archive-entry { width: 100%; padding: 0; color: inherit; text-align: left; background: transparent; cursor: pointer; }
.archive-entry.is-active { padding-inline: 10px; background: rgba(255,250,252,.7); }
.archive-arrow { justify-self: end; color: var(--purple-deep); }
.archive-preview { position: sticky; top: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--paper); }
.archive-preview img { display: block; width: 100%; height: clamp(150px, 18vw, 230px); object-fit: cover; transition: opacity 180ms ease, transform 600ms cubic-bezier(.2,.7,.2,1); }
.archive-preview img[hidden] { display: none; }
.archive-preview.is-changing img { opacity: .35; transform: scale(.985); }
.archive-preview-caption { padding: 16px 20px 20px; }
.archive-preview-caption > span { font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: var(--purple-deep); }
.archive-preview-caption h3 { margin: 9px 0 4px; font: 500 24px/1.1 var(--serif); }
.archive-preview.is-text-only { min-height: 190px; display: grid; align-content: center; }
.archive-preview.is-text-only .archive-preview-caption { padding: 25px; }

.archive-entry {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 250ms ease, background-color 250ms ease;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  padding-inline: 10px;
  background: rgba(255, 250, 252, 0.7);
}

.archive-entry:focus-visible { outline: 2px solid var(--purple-deep); outline-offset: -2px; }

.archive-number {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

.archive-name {
  font: 500 clamp(17px, 2vw, 24px)/1.15 var(--serif);
}

.about-section {
  padding-top: 55px;
  padding-bottom: 106px;
}

.timeline {
  position: relative;
  margin: 8px 0 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 22px;
  bottom: 30px;
  width: 1px;
  background: var(--purple);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 190px minmax(0, 1fr);
  gap: 14px;
  padding: 25px 0 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-index {
  z-index: 1;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--purple-deep);
  border-radius: 50%;
  background: var(--bg);
  color: var(--purple-deep);
  font: 500 12px/1 var(--serif);
}

.timeline-label {
  padding-top: 8px;
  color: var(--purple-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.timeline-item h3 {
  margin: 0;
  font: 500 clamp(20px, 2.4vw, 31px)/1.15 var(--serif);
  letter-spacing: -0.55px;
}

.timeline-item p {
  max-width: 650px;
  margin: 9px 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.timeline-item small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.credentials {
  padding: 20px clamp(16px, 3vw, 34px);
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.credential-list a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 500 14px/1.2 var(--serif);
  text-decoration: none;
}

.credential-list img { width: 35px; height: 35px; flex: 0 0 35px; object-fit: cover; border: 1px solid var(--line); }

.credential-list a:hover {
  color: var(--purple-deep);
}

.credential-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font: 8px/1.4 var(--sans);
}

.process-section {
  padding-top: 75px;
  padding-bottom: 100px;
}

.process-sequence {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.process-sequence::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.process-step {
  position: relative;
  min-height: 205px;
  padding: 0 19px 0 0;
}

.process-step > span {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid var(--purple-deep);
  border-radius: 50%;
  background: var(--bg);
  color: var(--purple-deep);
  font: 500 13px/1 var(--serif);
  transition: background-color 250ms ease, color 250ms ease, transform 300ms ease;
}

.process-step:hover > span {
  transform: scale(1.06);
  background: var(--purple-deep);
  color: var(--paper);
}

.process-step h3 {
  max-width: 155px;
  margin: 20px 0 9px;
  font: 500 21px/1.08 var(--serif);
  text-transform: uppercase;
}

.process-step p {
  max-width: 175px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.now-section {
  padding-top: 45px;
  padding-bottom: 94px;
}

.now-list {
  border-top: 1px solid var(--line-strong);
}

.now-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1.5fr);
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.now-item > span {
  color: var(--purple-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.now-item p {
  margin: 0;
  font: 500 clamp(19px, 2.35vw, 29px)/1.18 var(--serif);
}

.contact-section {
  position: relative;
  width: min(calc(100% - 2 * var(--page-pad)), var(--content-width));
  display: grid;
  grid-template-columns: 72px minmax(0, 1.4fr) minmax(210px, 0.6fr);
  align-items: center;
  gap: 28px;
  padding: 42px clamp(24px, 4vw, 60px);
  margin: 0 auto 80px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.contact-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--purple-deep);
  border-radius: 50%;
  color: var(--purple-deep);
  font-size: 24px;
}

.contact-copy h2 {
  margin: 12px 0 0;
  font: 500 clamp(38px, 5vw, 68px)/0.99 var(--serif);
  letter-spacing: -2.1px;
}

.contact-action {
  padding-left: 27px;
  border-left: 1px solid rgba(106, 77, 141, 0.28);
}

.button--light {
  border-color: var(--purple-deep);
  background: var(--purple-deep);
  color: var(--paper);
}

.button--light span {
  color: #e3d3ed;
}

.button--light:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-action p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) 1fr 1fr;
  gap: 28px;
  padding-top: 35px;
  padding-bottom: 27px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-mark {
  margin-bottom: 7px;
  font-size: 34px;
}

.footer-brand > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.footer-brand small {
  color: var(--muted);
  font-size: 9px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-links .eyebrow {
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--purple-deep);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--purple-deep);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* The reveal state is enabled only after JavaScript starts. */
.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-title span,
.hero-image-wrap,
.hero-copy,
.hero-kicker {
  will-change: transform, opacity;
}

.project-card,
.process-step,
.timeline-item,
.now-item,
.archive-entry {
  translate: 0 var(--scroll-drift, 0px);
  transition: translate 180ms ease-out;
  will-change: translate;
}

/* Portfolio assistant */
.portfolio-assistant {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.assistant-launcher,
.assistant-close,
.assistant-form button,
.assistant-suggestions button {
  border: 0;
  font: inherit;
}

.assistant-launcher {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid var(--purple-deep);
  border-radius: 2px;
  background: var(--purple-deep);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(45, 32, 52, 0.14);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 200ms ease, background-color 200ms ease;
  animation: assistant-launcher-pulse 5s ease-in-out infinite;
}

.assistant-launcher span {
  color: #d6c5e1;
  font-size: 15px;
}

.assistant-launcher:hover {
  transform: translateY(-2px);
  background: var(--ink);
  animation-play-state: paused;
}

.assistant-panel {
  width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100dvh - 104px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(38, 33, 29, 0.2);
  transform-origin: bottom right;
  animation: assistant-panel-in 260ms ease-out both;
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-panel.is-closing {
  display: flex;
  animation: assistant-panel-out 190ms ease-in both;
  pointer-events: none;
}

.assistant-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 17px 13px;
  border-bottom: 1px solid var(--line);
}

.assistant-panel__head h2 {
  margin: 7px 0 5px;
  font: 500 25px/1 var(--serif);
  letter-spacing: -0.6px;
}

.assistant-panel__head p {
  max-width: 245px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.assistant-close {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 21px;
}

.assistant-close:hover {
  background: var(--purple-soft);
  color: var(--ink);
}

.assistant-messages {
  min-height: 90px;
  max-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px 16px;
}

.assistant-message {
  width: fit-content;
  max-width: 92%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 2px 10px 10px 10px;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
  animation: assistant-message-in 220ms ease-out both;
}

.assistant-message--assistant {
  background: var(--purple-soft);
}

.assistant-message--user {
  align-self: flex-end;
  border-radius: 10px 2px 10px 10px;
  background: var(--surface);
}

.assistant-message.is-thinking {
  color: var(--muted);
  font-style: italic;
  animation: assistant-message-in 220ms ease-out both, assistant-typing 1.2s ease-in-out 220ms infinite;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line);
}

.assistant-suggestions button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--purple-deep);
  font-size: 8px;
  text-align: left;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.assistant-suggestions button:hover {
  transform: translateY(-1px);
  border-color: var(--purple-deep);
  background: var(--purple-soft);
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 39px;
  gap: 8px;
  padding: 11px 12px;
}

.assistant-form textarea {
  width: 100%;
  min-height: 39px;
  max-height: 90px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 10px;
}

.assistant-form textarea::placeholder {
  color: var(--muted);
}

.assistant-form button {
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--purple-deep);
  color: var(--paper);
  transition: background-color 180ms ease, transform 180ms ease;
}

.assistant-form button:hover {
  background: var(--ink);
}

.assistant-form button:active {
  transform: scale(0.96);
}

.assistant-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.assistant-send-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.assistant-launcher:focus-visible,
.assistant-close:focus-visible,
.assistant-suggestions button:focus-visible,
.assistant-form textarea:focus-visible,
.assistant-form button:focus-visible,
.button:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 3px;
}

@keyframes assistant-launcher-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}

@keyframes assistant-panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes assistant-panel-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(9px); }
}

@keyframes assistant-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes assistant-typing {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* Smaller desktops */
@media (max-width: 1050px) {
  .hero-title {
    font-size: clamp(84px, 13vw, 150px);
  }

  .hero-image-wrap {
    width: min(45vw, 480px);
  }

  .hero-copy {
    width: 61%;
  }

  .project-layout--teamcut {
    grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1.6fr);
    gap: 28px;
  }

  .bagong-feature {
    grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.56fr) minmax(108px, 0.35fr);
    gap: 22px;
  }
}

@media (max-width: 780px) {
  :root {
    --page-pad: clamp(20px, 5vw, 40px);
  }

  .topbar {
    min-height: 72px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .top-contact {
    padding-left: 17px;
    font-size: 8px;
  }

  .hero-stage {
    min-height: 600px;
  }

  .hero-title {
    top: 90px;
    font-size: clamp(82px, 14vw, 122px);
  }

  .hero-image-wrap {
    width: min(48vw, 390px);
  }

  .hero-copy {
    width: 67%;
    bottom: 34px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 17px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section-note {
    max-width: 430px;
  }

  .project-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .project-layout--teamcut {
    grid-template-columns: 1fr;
  }

  .project-story-copy {
    max-width: 560px;
    padding-block: 0;
  }

  .teamcut-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding: 12px 3px 17px;
  }

  .teamcut-gallery .project-shot--mobile {
    flex: 0 0 min(33%, 205px);
    scroll-snap-align: start;
  }

  .project-shot--offset {
    margin-top: 20px;
  }

  .dua-feature {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .dua-caption {
    max-width: 600px;
  }

  .dua-gallery {
    margin-inline: 0;
  }

  .bagong-feature {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.38fr);
    align-items: start;
  }

  .bagong-feature > .project-shot:first-child {
    grid-column: 1 / -1;
  }

  .bagong-intro {
    align-self: center;
  }

  .bagong-gallery {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-item {
    grid-template-columns: 55px 140px minmax(0, 1fr);
  }

  .timeline::before {
    left: 17px;
  }

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

  .contact-section {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
  }

  .contact-action {
    grid-column: 2;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --page-pad: 20px;
  }

  html {
    scroll-padding-top: 16px;
  }

  .topbar {
    min-height: 66px;
    gap: 12px;
  }

  .monogram {
    font-size: 22px;
  }

  .menu-toggle {
    display: grid;
    order: 3;
    margin-left: 2px;
  }

  .top-contact {
    order: 2;
    margin-left: auto;
    border-left: 0;
    padding: 0;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 15;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5px var(--page-pad) 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 9px;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 25px;
    padding-bottom: 23px;
  }

  .hero-kicker {
    flex-wrap: wrap;
    gap: 9px;
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  .hero-kicker-rule {
    min-width: 25px;
  }

  .hero-meta {
    white-space: nowrap;
  }

  .hero-stage {
    min-height: 810px;
  }

  .hero-title {
    top: 34px;
    left: -0.045em;
    font-size: clamp(68px, 18vw, 110px);
    line-height: 0.81;
  }

  .hero-title span:last-child {
    margin-left: 0.16em;
  }

  .hero-image-wrap {
    top: 150px;
    right: 0;
    width: min(83vw, 340px);
    height: 400px;
  }

  .portrait-disc {
    top: 7%;
    right: 0;
    width: 82%;
  }

  .hero-copy {
    left: 0;
    right: 0;
    bottom: 12px;
    width: 100%;
  }

  .display-copy {
    max-width: 410px;
    font-size: clamp(24px, 7.3vw, 32px);
    letter-spacing: -0.8px;
  }

  .hero-bottom {
    gap: 12px;
    margin-top: 12px;
  }

  .body-copy {
    max-width: 290px;
    font-size: 10px;
  }

  .hero-actions {
    width: 100%;
    gap: 7px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding-inline: 11px;
    font-size: 8px;
  }

  .hero-footnote {
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .selected-work {
    padding-top: 57px;
  }

  .section-heading {
    padding-bottom: 16px;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    margin-top: 9px;
    font-size: clamp(33px, 9vw, 45px);
    letter-spacing: -1.3px;
  }

  .section-note {
    font-size: 10px;
  }

  .project-story {
    padding-top: 17px;
    padding-bottom: 22px;
    margin-bottom: 32px;
  }

  .project-title-row {
    gap: 10px;
  }

  .project-heading h3 {
    font-size: clamp(34px, 10vw, 48px);
    letter-spacing: -1.5px;
  }

  .project-index {
    font-size: 15px;
  }

  .project-category {
    font-size: 8px;
  }

  .project-lead {
    font-size: 24px;
  }

  .project-facts {
    margin-top: 18px;
  }

  .teamcut-gallery {
    width: calc(100% + var(--page-pad));
    gap: 12px;
    margin-right: calc(-1 * var(--page-pad));
  }

  .teamcut-gallery .project-shot--mobile {
    flex-basis: 58%;
    max-width: 220px;
  }

  .project-shot--offset {
    margin-top: 15px;
  }

  .project-shot figcaption {
    font-size: 7px;
  }

  .project-bottomline {
    flex-direction: column;
    gap: 7px;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .dua-gallery {
    gap: 9px;
    margin-top: 18px;
  }

  .dua-gallery .project-shot:last-child {
    width: 86%;
  }

  .bagong-feature {
    grid-template-columns: minmax(0, 1fr) minmax(95px, 0.36fr);
    gap: 14px;
  }

  .bagong-intro .project-lead {
    margin-top: 10px;
    font-size: 19px;
  }

  .bagong-intro .project-quiet {
    font-size: 8px;
  }

  .project-shot--bagong-mobile {
    max-width: 135px;
  }

  .bagong-gallery {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .bagong-gallery .project-shot--mobile { width: 70%; grid-column: 1 / -1; }

  .archive-section {
    padding-top: 52px;
    padding-bottom: 78px;
  }

  .archive-layout { grid-template-columns: 1fr; }
  .archive-preview { position: relative; top: auto; display: grid; grid-template-columns: minmax(120px, .8fr) 1fr; align-items: center; }
  .archive-preview img { height: 155px; }
  .archive-preview.is-text-only { min-height: 110px; grid-template-columns: 1fr; }
  .archive-preview-caption { padding: 14px; }

  .archive-entry {
    min-height: 68px;
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 7px;
  }

  .archive-entry:hover,
  .archive-entry:focus-visible {
    padding-inline: 5px;
  }

  .archive-number {
    font-size: 7px;
    letter-spacing: 0.5px;
  }

  .archive-name {
    font-size: 18px;
  }

  .archive-entry {
    min-height: 64px;
    align-items: center;
  }

  .archive-number,
  .archive-name {
    align-self: center;
    padding-bottom: 0;
  }

  .about-section {
    padding-top: 42px;
    padding-bottom: 78px;
  }

  .timeline {
    margin-top: 2px;
  }

  .timeline::before {
    left: 16px;
    top: 18px;
  }

  .timeline-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px 13px;
    padding: 18px 0 20px;
  }

  .timeline-index {
    grid-row: 1 / span 2;
    width: 33px;
    height: 33px;
    font-size: 11px;
  }

  .timeline-label {
    padding-top: 0;
    font-size: 8px;
  }

  .timeline-item > div {
    grid-column: 2;
  }

  .timeline-item h3 {
    font-size: 22px;
  }

  .timeline-item p {
    margin: 7px 0;
    font-size: 10px;
  }

  .timeline-item small {
    font-size: 7px;
    letter-spacing: 0.8px;
  }

  .credential-list {
    grid-template-columns: 1fr 1fr;
  }

  .credential-list a {
    min-height: 65px;
    font-size: 12px;
  }

  .process-section {
    padding-top: 45px;
    padding-bottom: 72px;
  }

  .process-sequence {
    grid-template-columns: 1fr;
    margin-top: 5px;
    padding-left: 1px;
  }

  .process-sequence::before {
    top: 16px;
    bottom: 20px;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-step {
    min-height: 120px;
    display: grid;
    grid-template-columns: 47px 1fr;
    gap: 0 15px;
    padding: 0 0 24px;
  }

  .process-step > span {
    grid-row: 1 / span 2;
    width: 43px;
    height: 43px;
    font-size: 12px;
  }

  .process-step h3 {
    max-width: none;
    margin: 3px 0 7px;
    font-size: 20px;
  }

  .process-step p {
    max-width: 290px;
    font-size: 9px;
  }

  .now-section {
    padding-top: 24px;
    padding-bottom: 70px;
  }

  .now-item {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 15px 0;
  }

  .now-item > span {
    font-size: 8px;
  }

  .now-item p {
    font-size: 21px;
  }

  .contact-section {
    width: calc(100% - 2 * var(--page-pad));
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 25px 17px;
    margin-bottom: 52px;
  }

  .contact-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .contact-copy h2 {
    margin-top: 9px;
    font-size: clamp(34px, 10vw, 45px);
    letter-spacing: -1.4px;
  }

  .contact-action {
    grid-column: 2;
  }

  .contact-action p {
    font-size: 9px;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 23px 16px;
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-mark {
    font-size: 30px;
  }

  .footer-brand > span {
    font-size: 9px;
  }

  .footer-links a {
    font-size: 9px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 7px;
  }

  .portfolio-assistant {
    right: max(13px, env(safe-area-inset-right));
    bottom: max(13px, env(safe-area-inset-bottom));
  }

  .assistant-launcher {
    min-height: 41px;
    padding-inline: 12px;
    font-size: 8px;
  }

  .assistant-panel {
    max-height: min(540px, calc(100dvh - 82px));
  }

  .assistant-suggestions {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .assistant-suggestions button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 370px) {
  .hero-stage {
    min-height: 790px;
  }

  .hero-title {
    font-size: 17vw;
  }

  .hero-image-wrap {
    width: 85vw;
    right: -3%;
  }

  .hero-actions .button {
    gap: 8px;
    padding-inline: 9px;
    font-size: 7px;
  }

  .project-category {
    letter-spacing: 1px;
  }
}

@media (hover: none) {
  .process-step:hover > span {
    transform: none;
  }
}

@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-motion .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .assistant-launcher {
    animation: none !important;
  }
}
