@font-face {
  font-family: 'Geomini';
  src: url('./assets/fonts/Geomini-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Geomini';
  src: url('./assets/fonts/Geomini-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Geomini';
  src: url('./assets/fonts/Geomini-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Geomini';
  src: url('./assets/fonts/Geomini-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f8f4ee;
  --panel: #fffefa;
  --ink: #1e1e1e;
  --muted: #77756f;
  --line: rgba(30, 30, 30, .11);
  --line-strong: rgba(30, 30, 30, .2);
  --surface-soft: #f4f2ed;
  --concrete: #d7d5cf;
  --purple: #4132db;
  --acid: #daf15d;
  --lilac: #c7baff;
  --header-height: 76px;
  --panel-width: 480px;
  --projects-control-size: 62px;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  background: #0f0f0f;
}

body { min-height: 100dvh; }
[hidden] { display: none !important; }

body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior: none;
  color: var(--ink);
  background: #0f0f0f;
  font-family: 'Geomini', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.app-main {
  width: 100%;
  max-width: 100%;
  min-height: calc(100dvh - var(--header-height));
  overflow-x: hidden;
}

.brand-button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.brand-button:hover { transform: translateY(-1px) scale(1.025); }
.brand-button:active { transform: translateY(0); }
.brand-button:focus-visible { outline: 2px solid var(--purple); outline-offset: 6px; }

.brand-stage {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  isolation: isolate;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.brand-logo--base {
  padding: 5px;
  opacity: 1;
  filter: invert(1);
  transition: opacity 180ms ease;
}

.brand-logo--variation {
  opacity: 0;
  filter: none;
  transform: scale(1.04);
  transition: opacity 180ms ease;
}

.brand-logo--variation.is-visible { opacity: 1; }
.brand-button.is-previewing .brand-logo--base { opacity: 0; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  place-items: center;
  border-bottom: 1px solid #ddd9d2;
  background: rgba(248, 244, 238, .94);
  backdrop-filter: blur(18px);
}

.app-toast {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 18px 48px rgba(24, 24, 24, .2);
  font-size: 12px;
  animation: toast-in 180ms both;
}

.app-toast svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--acid);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-stack {
  position: fixed;
  top: 92px;
  left: 15px;
  z-index: 72;
  width: 62px;
}

.menu-orb {
  position: relative;
  z-index: 10;
  height: 62px;
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #181818;
  box-shadow: 0 22px 34px rgba(0, 0, 0, .16);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.menu-orb:hover {
  color: var(--ink);
  background: var(--acid);
  transform: scale(1.04);
}

.menu-orb:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.menu-orb[aria-expanded="true"] {
  color: var(--ink);
  background: var(--acid);
}

.menu-orb:active { transform: scale(.98); }
.menu-orb:focus-visible { outline: 2px solid #4b28ff; outline-offset: 2px; }

.menu-orb__icon {
  position: absolute;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1);
}

.menu-orb__icon--close { opacity: 0; transform: rotate(-70deg) scale(.72); }
.menu-orb[aria-expanded="true"] .menu-orb__icon--menu { opacity: 0; transform: rotate(70deg) scale(.72); }
.menu-orb[aria-expanded="true"] .menu-orb__icon--close { opacity: 1; transform: rotate(0) scale(1); }

.quick-nav {
  position: absolute;
  top: 54px;
  left: 0;
  z-index: auto;
  width: 62px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.quick-nav.is-open { pointer-events: auto; }

.quick-nav button {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-top: -6px;
  padding: 0;
  border: 1px solid rgba(24, 24, 24, .1);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(24, 24, 24, .15);
  opacity: 0;
  cursor: pointer;
  transform: translateY(-18px) scale(.7);
  transition: color 160ms ease, background 160ms ease, opacity 160ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
}

.quick-nav button:first-child { z-index: 5; transition-delay: 0ms; }
.quick-nav button:nth-child(2) { z-index: 4; transition-delay: 15ms; }
.quick-nav button:nth-child(3) { z-index: 3; transition-delay: 30ms; }
.quick-nav.is-open button { opacity: 1; transform: translateY(0) scale(1); }
.quick-nav.is-open button:first-child { transition-delay: 35ms; }
.quick-nav.is-open button:nth-child(2) { transition-delay: 70ms; }
.quick-nav.is-open button:nth-child(3) { transition-delay: 105ms; }

.quick-nav button:hover,
.quick-nav button:focus-visible {
  z-index: 12;
  color: var(--ink);
  background: var(--lilac);
  transform: scale(1.05);
}

.quick-nav button:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }

.quick-nav svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-view {
  position: relative;
  height: calc(100dvh - var(--header-height));
  min-height: 580px;
  overflow: hidden;
  background: #dce8f2;
}

.home-view__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.home-view__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 18, 26, .25), rgba(2, 18, 26, .06) 54%, rgba(2, 18, 26, .2));
}

.home-view__content {
  position: absolute;
  bottom: clamp(48px, 9vh, 92px);
  left: 50%;
  width: min(980px, calc(100% - 96px));
  z-index: 2;
  display: grid;
  justify-items: center;
  padding: 0;
  text-align: center;
  transform: translateX(-50%);
}

.home-view__eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.home-view h1 {
  max-width: 980px;
  margin: 0 0 27px;
  color: #f6fbfd;
  font-size: 68px;
  font-weight: 400;
  line-height: .96;
  letter-spacing: 0;
  text-shadow: 0 3px 24px rgba(1, 12, 17, .82);
}

.home-view h1 span { display: block; }

.home-cta {
  min-width: 174px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 15px 0 18px;
  border: 1px solid rgba(24, 24, 24, .08);
  border-radius: 8px;
  color: #181818;
  background: var(--acid);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.home-cta:hover,
.home-cta:focus-visible { background: #e1f674; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(24,24,24,.16); }
.home-cta:active { transform: translateY(0); }
.home-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.home-cta__arrow {
  width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-5px);
  transition: width 180ms ease, margin-left 180ms ease, opacity 150ms ease, transform 180ms ease;
}

.home-cta:hover .home-cta__arrow,
.home-cta:focus-visible .home-cta__arrow { width: 19px; margin-left: 10px; opacity: 1; transform: translateX(0); }

.home-cta__arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects-view {
  min-height: calc(100dvh - var(--header-height));
  background: var(--panel);
}

.projects-container {
  width: auto;
  max-width: none;
  margin: 0 clamp(96px, 9.85vw, 126px);
  padding: 16px 0 34px;
}

.projects-heading {
  min-height: var(--projects-control-size);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.projects-heading h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.gallery-search {
  width: var(--projects-control-size);
  height: var(--projects-control-size);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: #1b1b1b;
  box-shadow: 0 14px 34px rgba(24, 24, 24, .12);
  transition: width 300ms cubic-bezier(.22, 1, .36, 1), box-shadow 220ms ease, transform 220ms ease;
}

.gallery-search:hover,
.gallery-search:focus-within,
.gallery-search.is-open,
.gallery-search.has-value { width: min(290px, 38vw); box-shadow: 0 18px 42px rgba(24, 24, 24, .17); }

.gallery-search__trigger {
  flex: 0 0 var(--projects-control-size);
  width: var(--projects-control-size);
  height: var(--projects-control-size);
  display: grid;
  place-items: center;
  order: 2;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.gallery-search__trigger:hover { color: var(--acid); }
.gallery-search__trigger:active { transform: scale(.92); }
.gallery-search__trigger:focus-visible { outline: 2px solid var(--acid); outline-offset: -4px; }

.gallery-search__trigger svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-search__input {
  min-width: 0;
  width: 0;
  height: 100%;
  order: 1;
  padding: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: width 300ms cubic-bezier(.22, 1, .36, 1), padding 300ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease;
}

.gallery-search__input::-webkit-search-cancel-button { filter: invert(1); cursor: pointer; }
.gallery-search__input::placeholder { color: rgba(255,255,255,.58); }

.gallery-search:hover .gallery-search__input,
.gallery-search:focus-within .gallery-search__input,
.gallery-search.is-open .gallery-search__input,
.gallery-search.has-value .gallery-search__input {
  width: calc(100% - var(--projects-control-size));
  padding: 0 4px 0 20px;
  opacity: 1;
  pointer-events: auto;
}

.gallery-search__empty {
  margin: 48px 0 80px;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.gallery-search__empty[hidden] { display: none; }

.projects-divider {
  display: none;
}

.bento-gallery {
  position: relative;
  padding-top: 24px;
}

.bento-gallery__hint {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bento-gallery__hint[hidden] { display: none; }

.bento-gallery__hint svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bento-gallery__viewport {
  position: relative;
  width: 100%;
  overflow: visible;
  touch-action: pan-y;
  user-select: auto;
  -webkit-user-select: auto;
  overscroll-behavior: auto;
}

.bento-gallery__track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: clamp(18px, 1.7vw, 26px);
  padding: 6px 0 52px;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.project-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.28 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(24, 24, 24, .05);
  border-radius: 22px;
  color: #fff;
  background: #eeeeeb;
  background-clip: padding-box;
  box-shadow:
    0 2px 4px rgba(24, 24, 24, .045),
    0 14px 30px rgba(24, 24, 24, .08),
    0 34px 68px rgba(24, 24, 24, .09);
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow 260ms cubic-bezier(.22, 1, .36, 1), transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.bento-card--hero {
  grid-column: auto;
  grid-row: auto;
}

.project-card:hover {
  z-index: 2;
  box-shadow:
    0 3px 7px rgba(24, 24, 24, .045),
    0 20px 42px rgba(24, 24, 24, .1),
    0 42px 82px rgba(24, 24, 24, .13);
  transform: translateY(-4px) scale(1.004);
}

.project-card:active { transform: translateY(-1px) scale(.985); }
.project-card:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

.project-card__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #f3f3f1;
}

.project-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  pointer-events: none;
  transform: scale(1.001);
  transition: filter 420ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.project-card:hover .project-card__visual img {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.055);
}

.project-card__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08) 35%, rgba(0, 0, 0, .82) 100%);
  opacity: .86;
  transition: opacity 300ms ease;
}

.project-card:hover .project-card__wash { opacity: 1; }

.project-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 52px 20px 19px;
}

.project-card__body h2 {
  max-width: 360px;
  margin: 0 0 7px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
}

.project-card__body p {
  margin: 0;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  letter-spacing: .03em;
}

.project-card__arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  color: #fff;
  background: rgba(18, 18, 18, .38);
  backdrop-filter: blur(10px);
  transform: translateX(-4px);
  transition: color 220ms ease, background 220ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
}

.project-card__arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card:hover .project-card__arrow {
  color: #181818;
  background: var(--acid);
  transform: translateX(0);
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .76);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 260ms ease;
}

.gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  height: min(720px, calc(100dvh - 48px));
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: 22px;
  background: #111;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .18),
    0 28px 70px rgba(0, 0, 0, .34),
    0 54px 130px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(24px) scale(.965);
  transition: opacity 240ms ease, transform 460ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-modal.is-open .gallery-modal__backdrop { opacity: 1; }
.gallery-modal.is-open .gallery-modal__dialog { opacity: 1; transform: translateY(0) scale(1); }
.gallery-modal__dialog:focus { outline: none; }

.gallery-modal__media {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #080808;
}

.gallery-modal__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 320ms ease;
}

.gallery-modal__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.gallery-modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  image-rendering: auto;
  filter: none;
  transform: scale(1.04);
  transition: transform 800ms cubic-bezier(.22, 1, .36, 1);
}

.gallery-modal.is-open .gallery-modal__media img { transform: scale(1); }

.gallery-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(24, 24, 24, .12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(248, 244, 238, .9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 220ms ease;
}

.gallery-modal__close:hover { color: #fff; background: var(--ink); transform: rotate(4deg) scale(1.05); }
.gallery-modal__close:active { transform: scale(.96); }
.gallery-modal__close:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }

.gallery-modal__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.gallery-modal__cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: auto;
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
}

.gallery-modal__cta:hover,
.gallery-modal__cta:focus-visible { transform: translateX(-50%) translateY(-1px); }
.gallery-modal__cta:active { transform: translateX(-50%); }

body.gallery-modal-open { overflow: hidden; }

.prompt-screen {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: var(--panel-width) minmax(0, 1fr);
}

.prompt-panel {
  min-width: 0;
  height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 34px 116px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.prompt-panel__heading { flex: 0 0 auto; }

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-panel h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.prompt-box {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #cbc7bf;
  border-radius: 9px;
  overflow: hidden;
  background: var(--paper);
}

.prompt-box__topline {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.prompt-box__content {
  min-height: 0;
  flex: 1 1 auto;
  padding: 17px 18px 21px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #56534e;
  font-size: 13px;
  line-height: 1.58;
  scrollbar-width: thin;
  scrollbar-color: #aaa69d transparent;
}

.prompt-box__content:focus { outline: none; }
.prompt-box__content p { margin: 0 0 15px; }

.prompt-box__content p:first-child {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}

.prompt-box__content p:last-child { margin-bottom: 0; }
.prompt-box__content::-webkit-scrollbar { width: 4px; }
.prompt-box__content::-webkit-scrollbar-thumb { background: #aaa69d; }

.prompt-box__footer {
  flex: 0 0 auto;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #f7f5f0;
}

.prompt-box__actions { display: none; }

.copy-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible { color: var(--ink); background: var(--acid); box-shadow: 0 10px 24px rgba(24,24,24,.12); }
.copy-button:active { transform: translateY(1px); }
.copy-button:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.copy-button.is-copied { color: var(--ink); background: var(--acid); }

.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.visual-panel {
  position: relative;
  min-width: 0;
  height: calc(100dvh - var(--header-height));
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--concrete);
}

.visual-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 320ms ease;
}

.visual-slide.is-active { opacity: 1; }

.visual-slide img {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter: none;
}

.visual-panel__shade {
  display: none;
}

.visual-panel__meta {
  display: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 900px) {
  :root {
    --panel-width: 420px;
    --projects-control-size: 54px;
  }
  .prompt-panel { padding-left: 103px; padding-right: 21px; }
  .menu-stack { width: 54px; }
  .menu-orb { width: 54px; height: 54px; }
  .projects-container { padding-top: 16px; }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
    --projects-control-size: 50px;
  }
  .brand-stage { width: 52px; height: 52px; }
  .app-header.is-menu-open .brand-button { transform: translateX(calc(50vw - 42px)); }
  .app-header.is-menu-open .brand-button:hover { transform: translateX(calc(50vw - 42px)) translateY(-1px) scale(1.025); }
  .app-header.is-menu-open .brand-button:active { transform: translateX(calc(50vw - 42px)); }
  .home-view { min-height: 500px; }
  .menu-stack { top: 9px; left: 14px; width: 50px; }
  .menu-orb { width: 50px; height: 50px; }
  .quick-nav {
    top: 3px;
    left: 56px;
    width: auto;
    flex-direction: row;
    gap: 6px;
  }
  .quick-nav button {
    width: 44px;
    height: 44px;
    margin: 0;
    transform: translateX(-12px) scale(.7);
  }
  .quick-nav.is-open button { transform: translateX(0) scale(1); }
  .quick-nav svg { width: 19px; height: 19px; }
  .prompt-screen { display: flex; flex-direction: column; }
  .projects-container { width: min(100% - 32px, 540px); margin: 0 auto; padding-top: 14px; }
  .projects-heading { align-items: center; flex-direction: row; }
  .projects-heading h1 { font-size: 34px; }
  .gallery-search,
  .gallery-search__trigger {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
  }
  .gallery-search { flex-basis: 50px; }
  .gallery-search__trigger { flex-basis: 50px; }
  .gallery-search:hover,
  .gallery-search:focus-within,
  .gallery-search.is-open,
  .gallery-search.has-value { width: min(250px, 52vw); }
  .bento-gallery { padding-top: 20px; }
  .bento-gallery__track {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 36px;
  }
  .bento-gallery__hint { font-size: 8px; }
  .project-card__body { padding: 44px 17px 16px; }
  .project-card__body h2 { font-size: 19px; }
  .gallery-modal { padding: 12px; }
  .gallery-modal__dialog {
    height: calc(100dvh - 24px);
    border-radius: 13px;
  }
  .gallery-modal__close { top: 14px; right: 14px; }
  .gallery-modal__cta { bottom: 20px; }
  .prompt-panel {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    gap: 16px;
    padding: 24px 18px 26px;
    align-items: stretch;
    border-right: 0;
  }
  .prompt-panel__heading { text-align: center; }
  .prompt-panel h1 { font-size: 28px; line-height: 1.04; }
  .prompt-box {
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(24, 24, 24, .08);
  }
  .prompt-box__topline {
    justify-content: center;
    padding: 13px 16px;
    font-size: 10px;
  }
  .prompt-box__content {
    position: relative;
    flex: 0 0 auto;
    max-height: 218px;
    padding: 18px 18px 24px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.56;
  }
  .prompt-box__content::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 72px;
    content: '';
    pointer-events: none;
    background: linear-gradient(transparent, var(--paper));
  }
  .prompt-box.is-expanded .prompt-box__content {
    max-height: none;
    overflow: visible;
  }
  .prompt-box.is-expanded .prompt-box__content::after { display: none; }
  .prompt-box__actions {
    display: block;
    padding: 0 14px 8px;
    background: var(--paper);
  }
  .prompt-expand-button {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--ink);
    background: #fffefa;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .prompt-expand-button:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
  }
  .prompt-box__footer {
    padding: 0 14px 14px;
    border-top: 0;
    background: var(--paper);
  }
  .copy-button { min-height: 50px; border-radius: 9px; font-size: 13px; }
  .visual-panel {
    order: 2;
    width: 100%;
    height: clamp(360px, 58dvh, 520px);
    min-height: 360px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .home-view__content {
    top: auto;
    bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
    width: calc(100% - 32px);
    padding: 0;
  }
  .home-view__image { object-position: center center; }
  .home-view__shade {
    background: linear-gradient(180deg, rgba(2, 18, 26, .14), rgba(2, 18, 26, .05) 42%, rgba(2, 18, 26, .72));
  }
  .home-view h1 {
    margin-bottom: 18px;
    font-size: clamp(30px, 9.5vw, 38px);
    line-height: .98;
    letter-spacing: -.025em;
  }
  .home-view h1 span { white-space: nowrap; }
  .home-cta {
    min-width: 184px;
    min-height: 50px;
    padding-inline: 20px;
    border-radius: 10px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .menu-stack { left: 12px; }
  .prompt-box__topline span:last-child { display: none; }
  .bento-gallery__track { grid-template-columns: minmax(0, 1fr); }
  .bento-gallery__hint span { max-width: 210px; text-align: right; }
  .project-card__body h2 { font-size: 17px; }
}

@media (max-width: 360px), (max-height: 700px) {
  .home-view__content { bottom: max(18px, env(safe-area-inset-bottom)); }
  .home-view h1 { margin-bottom: 14px; }
  .home-cta { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .visual-slide { transform: none; }
  .quick-nav button { transform: none; }
  .bento-gallery__track { will-change: auto; }
  .gallery-modal__media img { transform: none; }
}
