@font-face {
  font-family: "Poiret One";
  src: url("assets/fonts/PoiretOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Anti Grotesk";
  src: local("Anti Grotesk"), local("AntiGrotesk");
  /* Add url("assets/fonts/AntiGrotesk.woff2") format("woff2") to src when supplied. */
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #493e4c;
  --foreground: #d1edda;
  --secondary: #c1bec3;
  --line: #d1edda36;
  --hover: #d1edda0c;
  --display-font: "Anti Grotesk", "Poiret One", sans-serif;
}

:root[data-mood="mint"] {
  color-scheme: light;
  --background: #d1edda;
  --foreground: #493e4c;
  --secondary: #615968;
  --line: #493e4c40;
  --hover: #493e4c0a;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 600ms ease, color 600ms ease;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.87' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='white' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--foreground); outline-offset: 7px; }
button:disabled { cursor: default; opacity: 0.5; }
p { margin: 0; }
::selection { background: var(--foreground); color: var(--background); }

.page-shell { max-width: 1920px; min-height: 100svh; margin: 0 auto; padding: 0 4.45%; display: flex; flex-direction: column; }
.site-header { min-height: 124px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display-font); font-size: 2.6rem; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 25px; }
.wordmark-star { display: inline-block; font-family: Arial, sans-serif; font-size: 2.1rem; font-weight: 400; transition: transform 700ms ease; }
.wordmark:hover .wordmark-star { transform: rotate(180deg); }
.header-caption { color: var(--secondary); font-size: 0.875rem; line-height: 1.5; margin-right: 80px; }
.text-link { font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 26px; }
.text-link span[aria-hidden] { font-size: 1.45rem; transition: transform 200ms ease; }
.text-link:hover span[aria-hidden] { transform: translate(3px, -3px); }
.main { flex: 1; }
.intro-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 41px; }
.eyebrow, .edition, .artwork-topline, .drag-hint, .closing-line > p { font-family: "Courier New", monospace; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.075em; line-height: 1.5; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--hover); }
.edition { color: var(--secondary); }
.hero { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; padding-top: 47px; column-gap: 2%; }
.hero-copy { z-index: 1; pointer-events: none; }
h1 { margin: 0 0 0 -5px; font-family: var(--display-font); font-size: clamp(5.5rem, 9.6vw, 11rem); font-weight: 400; line-height: 1.03; letter-spacing: -0.057em; }
.title-line { display: block; }
.final-line { padding-bottom: 0.08em; }
.title-period { display: inline-block; }
.writing-letter { position: relative; }
.artwork { position: relative; min-width: 0; display: flex; flex-direction: column; margin-top: 1px; }
.artwork-topline { position: absolute; top: 5px; left: 10px; right: 3px; display: flex; justify-content: space-between; gap: 20px; color: var(--secondary); font-size: 0.75rem; }
.canvas-wrap { position: relative; width: 100%; flex: 1; min-height: clamp(440px, 40vw, 650px); }
#sculpture { display: block; width: 100%; height: 100%; position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
#sculpture.is-dragging { cursor: grabbing; }
.art-cross { position: absolute; font: 300 1.35rem "Courier New", monospace; opacity: 0.4; pointer-events: none; }
.art-cross-top { top: 62px; right: 0; }
.art-cross-bottom { left: 6px; bottom: 25px; }
.drag-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--secondary); font-size: 0.75rem; pointer-events: none; transition: opacity 200ms ease; }
.drag-hint > span { font-size: 1.2rem; }
.canvas-wrap:has(.is-dragging) .drag-hint { opacity: 0; }
.artwork-controls { display: flex; align-items: center; justify-content: center; gap: 17px; padding-top: 12px; }
.form-button { border: 1px solid var(--line); border-radius: 999px; min-height: 46px; background: transparent; display: inline-flex; align-items: center; gap: 11px; padding: 0 18px; font-size: 0.8125rem; transition: background 200ms ease, border-color 200ms ease; }
.form-button:hover { background: var(--hover); border-color: var(--foreground); }
.form-icon { font-size: 1.2rem; transition: transform 500ms ease; }
.form-button:hover .form-icon { transform: rotate(90deg); }
.form-counter { font-family: "Courier New", monospace; margin-left: 14px; font-size: 0.75rem; color: var(--secondary); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: transparent; transition: background 200ms ease; }
.icon-button:hover { background: var(--hover); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.play-icon, .icon-button[aria-pressed="true"] .pause-icon { display: none; }
.icon-button[aria-pressed="true"] .play-icon { display: block; }
.hero-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 39px 0 63px; }
.intro-copy { color: var(--secondary); font-size: 1rem; line-height: 1.65; }
.work-link { display: inline-flex; align-items: center; gap: 25px; font-size: 0.9375rem; }
.work-link > span:first-child { position: relative; }
.work-link > span:first-child::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 250ms ease; }
.work-link:hover > span:first-child::after { transform: scaleX(1); }
.link-circle { display: grid; place-items: center; width: 51px; height: 51px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.5rem; transition: transform 250ms ease, background 250ms ease; }
.work-link:hover .link-circle { transform: rotate(45deg); background: var(--hover); }
.closing-line { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing-line > p { color: var(--secondary); }
.disciplines { display: flex; align-items: center; gap: 20px; font-size: 0.8125rem; }
.tiny-star { font-size: 0.85rem; opacity: 0.7; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 90px; color: var(--secondary); font-size: 0.75rem; }
.mood-button { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; background: transparent; padding: 10px 0 10px 10px; min-height: 44px; }
.mood-swatch { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--foreground); background: linear-gradient(90deg, var(--foreground) 50%, var(--background) 50%); transition: transform 400ms ease; }
.mood-button:hover .mood-swatch { transform: rotate(180deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 12px 20px; background: var(--foreground); color: var(--background); z-index: 10; }
.skip-link:focus { top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .is-writing .writing-letter { animation: write-letter 100ms ease-out var(--write-delay) both; }
  .is-writing .writing-letter::after {
    content: "";
    position: absolute;
    right: -0.04em;
    top: 0.2em;
    width: 1px;
    height: 0.75em;
    background: currentColor;
    animation: writing-caret var(--write-step) step-end var(--write-delay) both;
  }
  .is-writing .last-letter::after { animation: caret-finish 900ms step-end var(--write-delay) both; }
  .reveal { animation: fade-in 1100ms ease both; animation-delay: 250ms; }
  .artwork { animation-delay: 350ms; }
  .hero-bottom, .closing-line, .site-footer { animation-delay: 450ms; }
  @keyframes write-letter { from { opacity: 0; } to { opacity: 1; } }
  @keyframes writing-caret { 0% { opacity: 0.65; } 100% { opacity: 0; } }
  @keyframes caret-finish { 0%, 50% { opacity: 0.65; } 25%, 75%, 100% { opacity: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}

@media (min-width: 1500px) {
  .hero { padding-top: 65px; }
  .hero-bottom { margin-top: 55px; margin-bottom: 70px; }
}

@media (max-width: 1100px) {
  .header-caption { margin-right: 0; }
  .hero { grid-template-columns: 1.08fr 1fr; padding-top: 55px; }
  h1 { font-size: clamp(5rem, 10.2vw, 7rem); }
  .canvas-wrap { min-height: 390px; }
  .artwork-topline { font-size: 0.75rem; }
  .artwork-topline > span:last-child { display: none; }
  .closing-line { align-items: flex-start; }
  .disciplines { gap: 12px; }
  .closing-line > p { max-width: 200px; }
  .site-footer { flex-wrap: wrap; padding: 20px 0; gap: 15px 25px; }
  .location { margin-left: auto; }
}

@media (max-width: 700px) {
  .page-shell { padding: 0 6%; }
  .site-header { min-height: 96px; gap: 15px; }
  .wordmark { font-size: 2rem; gap: 13px; }
  .wordmark-star { font-size: 1.7rem; }
  .header-caption { display: none; }
  .header-link { font-size: 0.8125rem; gap: 9px; }
  .header-link span[aria-hidden] { font-size: 1.2rem; }
  .intro-line { padding-top: 29px; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.035em; gap: 10px; }
  .edition { display: none; }
  .hero { display: flex; flex-direction: column; padding-top: 32px; }
  h1 { font-size: clamp(4.4rem, 15.2vw, 6.9rem); line-height: 1.03; letter-spacing: -0.05em; margin-left: -3px; }
  .title-line:nth-child(2), .title-line:nth-child(3) { display: inline; }
  .title-line:nth-child(2)::after { content: " "; }
  .artwork { margin-top: 27px; }
  .artwork-topline { top: 4px; left: 0; }
  .artwork-topline > span:last-child { display: block; font-size: 0.75rem; letter-spacing: 0; }
  .canvas-wrap { width: calc(100% + 24px); margin-left: -12px; min-height: 390px; }
  .art-cross-top { top: 42px; }
  .art-cross-bottom { left: 0; }
  .artwork-controls { padding-top: 8px; }
  .hero-bottom { align-items: flex-start; flex-direction: column; margin: 35px 0 36px; gap: 24px; }
  .intro-copy { font-size: 1rem; }
  .work-link { width: 100%; justify-content: space-between; gap: 15px; font-size: 0.875rem; }
  .link-circle { width: 44px; height: 44px; }
  .closing-line { flex-direction: column; gap: 19px; padding: 23px 0; }
  .closing-line > p { max-width: none; font-size: 0.75rem; letter-spacing: 0.025em; }
  .disciplines { font-size: 0.75rem; gap: 11px; flex-wrap: wrap; }
  .site-footer { min-height: 120px; padding: 17px 0 23px; gap: 0 15px; }
  .location { order: 3; margin-left: 0; width: 100%; padding-top: 10px; }
  .mood-button { margin-left: auto; font-size: 0.75rem; gap: 7px; }
}

@media (max-width: 370px) {
  .wordmark { font-size: 1.8rem; gap: 8px; }
  .header-link { font-size: 0.75rem; }
  h1 { font-size: 15vw; }
  .canvas-wrap { min-height: 340px; }
  .artwork-topline > span:last-child { display: none; }
  .mood-button { margin-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
