@font-face { font-family: Instrument; src: url("assets/instrument.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Instrument; src: url("assets/instrument-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: DM; src: url("assets/dm-sans.woff2") format("woff2"); font-display: swap; }
:root {
  --ink: #100f0e;
  --paper: #eee9df;
  --copper: #efb589;
  --serif: Instrument, Georgia, serif;
  --gutter: clamp(26px, 4.5vw, 100px);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: DM, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, p, figure { margin: 0; }
.scene { isolation: isolate; position: relative; overflow: hidden; }
.hero { height: 100vh; height: 100svh; min-height: 580px; background: #0c0c0c; }
.light { position: absolute; inset: -7% -6%; z-index: -1; background: url("assets/copper-light.webp") center / 100% 100% no-repeat; }
.mast, .hero-base, .endbar { position: absolute; inset-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; z-index: 3; }
.mast { top: 0; padding: 19px 0; border-bottom: 1px solid #ffffff2e; }
.brand { display: grid; place-items: center; min-height: 40px; }
.monogram { display: block; width: 40px; color: var(--copper); }
nav { display: flex; align-items: center; gap: clamp(15px, 2.3vw, 40px); }
nav a, .site-link { font-size: 12px; letter-spacing: .065em; }
nav a { padding-block: 12px; }
nav a:hover, .email:hover { text-decoration: underline; text-underline-offset: 5px; }
h1 { position: absolute; top: 13%; inset-inline: 0; text-align: center; font: 400 20.6vw/.95 var(--serif); letter-spacing: -.055em; white-space: nowrap; }
h1 i { color: var(--copper); font-weight: 400; }
h1 span { margin-left: .025em; }
.portrait { position: absolute; top: 32%; width: min(43vw, 74vh); left: 50%; display: block; }
.portrait img { width: 100%; height: auto; display: block; }
.hero::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0c0c0c30 30%, #0c0c0ce8 98%); pointer-events: none; }
.hero-base { bottom: 5.8%; align-items: flex-end; }
.location { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.intro { margin-top: 12px; font: 400 clamp(26px, 3.2vw, 59px)/1.08 var(--serif); letter-spacing: -.025em; }
.down, .back { width: 45px; height: 45px; border: 1px solid #ffffff65; border-radius: 50%; display: grid; place-items: center; font: 22px/1 Arial, sans-serif; }
.down:hover, .back:hover { border-color: currentColor; }

.project { min-height: max(650px, 100vh); min-height: max(650px, 100svh); display: grid; align-items: center; gap: 3vw; padding: 8vh var(--gutter); }
.state { grid-template-columns: 34% 1fr; color: #14161a; background: radial-gradient(ellipse at 76% 44%, #eaedef, #d1d6d9 55%, #c4cace); }
.grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg,#48576126 1px,transparent 1px), linear-gradient(#48576126 1px,transparent 1px); background-size: clamp(45px,6vw,110px) clamp(45px,6vw,110px); mask-image: linear-gradient(115deg, transparent 7%, #0007 35%, #000 98%); }
.details { position: relative; z-index: 1; }
h2 { font: 400 clamp(76px, 9vw, 180px)/.95 var(--serif); letter-spacing: -.055em; }
.details p { margin-top: 24px; max-width: 32ch; text-wrap: pretty; font-size: clamp(16px,1.3vw,22px); line-height: 1.55; }
.site-link, .email { display: inline-flex; align-items: center; gap: 22px; padding: 12px 0; border-bottom: 1px solid currentColor; }
.site-link { margin-top: 24px; }
.site-link span, .email span { font: 18px/1 Arial, sans-serif; }
.state .site-link { color: #8b3a1e; }
.lockup { display: block; width: min(100%, 420px); height: auto; }
.device-stage { position: relative; perspective: 1250px; margin: 0 8% 4% 0; }
.record { position: absolute; width: 28%; top: 32%; right: -9%; padding: clamp(3px,.44vw,7px); background: linear-gradient(130deg,#c1c6ca,#444c50 28%,#293036 70%,#878f92); border-radius: clamp(8px,1vw,17px); border: 1px solid #929da3; box-shadow: 4px 18px 26px #07121a66; transform: rotate(5deg); }
.record img { border-radius: clamp(4px,.55vw,10px); display: block; width: 100%; height: auto; }
.device { padding: clamp(8px, 1.05vw, 20px); border-radius: 1.9vw; border: 1px solid #c4d8e1; background: linear-gradient(130deg,#354955,#101a20 22%,#091017 75%,#40515b); box-shadow: 1px 2px #7894a6,2px 5px #080e12,3px 7px #52717f,14px 35px 50px #030b1290; transform: rotateY(-12deg) rotateZ(3deg); }
.screen { display: block; overflow: hidden; border-radius: .8vw; background: white; }
.screen img, .print img { display: block; width: 100%; height: auto; }
.intelliva { grid-template-columns: 58% 1fr; gap: 6vw; background: #e1d7c4; color: #2e251c; }
.prints { position: relative; aspect-ratio: 1.24; }
.print { position: absolute; background: #f7f1e4; box-shadow: 0 2px 4px #463d3229, 5px 17px 32px #4a352b47; padding: clamp(6px,.8vw,16px); }
.teaching { width: 80%; left: 2%; top: 1%; transform: rotate(-6deg); }
.room { width: 53%; right: 0; bottom: 0; transform: rotate(7deg); }
.intelliva::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(119deg, #fff6e745 12%,transparent 43%,#8f735726 52%,transparent 74%), repeating-linear-gradient(0deg, transparent 0 3px,#70562809 3px 4px); }
.intelliva .site-link { color: #724020; }
.contact { min-height: max(540px,100vh); min-height: max(540px,100svh); background: #171511; display: grid; grid-template-columns: 1fr minmax(0,440px); gap: 5vw; align-items: center; padding: 120px var(--gutter) 110px; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/copper-light.webp") center / cover; opacity: .36; mask-image: linear-gradient(100deg,transparent 10%,black 85%); }
.signature { position: absolute; left: 49%; top: 49%; width: 48%; transform: translateY(-50%) rotate(-9deg); }
.signature .monogram { width: 100%; color: #6d482e; }
.contact-body { position: relative; }
.signoff { font: italic 400 clamp(74px,8vw,155px)/1.15 var(--serif); letter-spacing: -.04em; }
.email { font-size: clamp(16px,1.35vw,23px); }
.booking { position: relative; }
@media (max-width: 1060px) {
  .contact { grid-template-columns: 1fr; gap: 64px; }
  .booking { width: min(440px,100%); }
}

.booking .location { margin-bottom: 16px; }
.cal { position: relative; min-height: 460px; border: 1px solid #ffffff21; border-radius: 16px; background: #12110fd9; box-shadow: 0 30px 80px #00000073, inset 0 1px #ffffff14; overflow: hidden; }
.cal iframe { display: block; }
.cal-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(16px,1.35vw,23px); color: var(--copper); }
.cal.ready .cal-fallback { display: none; }
.endbar { bottom: 22px; border-top: 1px solid #ffffff38; padding-top: 14px; }
.back { width: 40px; height: 40px; }
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .mast { padding: 10px 0; }
  .monogram { width: 31px; }
  nav { gap: 17px; }
  nav a { font-size: 11px; }
  .hero { min-height: 540px; }
  h1 { inset: 0; z-index: 2; white-space: normal; pointer-events: none; }
  h1 i, h1 span { position: absolute; left: var(--gutter); }
  h1 i { top: 10%; font-size: min(44vw,24svh); }
  h1 span { margin-left: 0; bottom: calc(18% - .22em); padding-bottom: .22em; font-size: 28.5vw; letter-spacing: -.055em; }
  .portrait { top: 21%; left: 15%; width: min(99vw, 70svh); mask-image: linear-gradient(#000 68%,transparent 99%); }
  .hero::after { inset: 45% 0 0; background: linear-gradient(transparent, #0c0c0c30 30%, #0c0c0c 95%); }
  .light { inset: 1% -52% 10%; }
  .hero-base { bottom: 5.5%; align-items: center; }
  .intro { font-size: clamp(22px,6vw,34px); }
  .location { font-size: 9px; letter-spacing: .14em; }
  .down { width: 39px; height: 39px; flex-shrink: 0; }
  .project { min-height: max(630px,100svh); display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(48px,8.5svh,94px); padding-block: 58px; }
  .state { flex-direction: column-reverse; }
  .device-stage { margin: 0 8% 6% 4px; }
  .record { width: min(32%, 148px); right: -5%; top: 28%; }
  .device { padding: 8px; border-radius: 13px; }
  .screen { border-radius: 6px; }
  .grid { mask-image: linear-gradient(#000 12%,transparent 100%); }
  h2 { font-size: clamp(75px,21vw,130px); }
  .lockup { width: min(86%, 380px); }
  .details p { margin-top: 15px; font-size: 16px; }
  .site-link { margin-top: 14px; }
  .prints { width: 93%; align-self: center; }
  .signature { width: 72%; left: 31%; top: 33%; }
  .contact { grid-template-columns: 1fr; gap: 64px; align-items: start; padding: 110px var(--gutter) 96px; }
  .cal { min-height: 420px; border-radius: 12px; }
  .signoff { font-size: 18vw; }
  .endbar { bottom: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .scene { view-timeline-name: --scene; }
    h1, .portrait, .light, .device, .record, .teaching, .room {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --scene;
    }
    h1, .portrait, .light { animation-range: exit 0% exit 100%; }
    h1 { animation-name: title-drift; }
    .portrait { animation-name: portrait-drift; }
    .light { animation-name: light-drift; }
    .device, .record, .teaching, .room { animation-range: entry 0% exit 100%; }
    .device { animation-name: turn; }
    .record { animation-name: record-lift; }
    .teaching { animation-name: print-left; }
    .room { animation-name: print-right; }
    @keyframes title-drift { to { transform: translateY(-9vh); } }
    @keyframes portrait-drift { to { transform: translateY(14vh); } }
    @keyframes light-drift { to { transform: translate(4%,7%); opacity: .64; } }
    @keyframes turn { from { transform: rotateY(-23deg) rotateZ(6deg) translateY(5%); } to { transform: rotateY(-2deg) rotateZ(-2deg) translateY(-5%); } }
    @keyframes record-lift { from { transform: translate(2%,19%) rotate(8deg); } to { transform: translate(0,-12%) rotate(2deg); } }
    @keyframes print-left { from { transform: translateY(6%) rotate(-3deg); } to { transform: translateY(-6%) rotate(-9deg); } }
    @keyframes print-right { from { transform: translateY(12%) rotate(11deg); } to { transform: translateY(-5%) rotate(3deg); } }
  }
}

/* The light passes over the existing copper exposure, catching its brightest lines. */
@media (prefers-reduced-motion: no-preference) {
  .filaments {
    position: absolute;
    inset: 0;
    overflow: hidden;
    mask: url("assets/copper-light.webp") center / 100% 100% luminance;
  }
  .filaments::before {
    content: "";
    position: absolute;
    inset: -22% auto -22% 0;
    width: 48vw;
    background: linear-gradient(90deg, transparent 12%, #c78350aa 38%, #ffe1ad 49%, #d99a68ac 58%, transparent 80%);
    transform: translateX(var(--beam-x, 12vw)) skewX(-12deg);
  }
  .portrait img { transform: translate(var(--depth-x, 0px), var(--depth-y, 0px)); }
  @supports (background-clip: text) {
    h1 i, h1 span {
      --metal: #c28a67;
      --sheen: #fff0d3;
      --strip: clamp(150px, 35vw, 660px);
      color: transparent;
      background-color: var(--metal);
      background-image: linear-gradient(110deg, transparent 8%, var(--sheen) 49%, transparent 90%);
      background-repeat: no-repeat;
      background-size: var(--strip) 100%;
      background-position: calc(var(--key-x, 40vw) - var(--word-left, 0px) - var(--strip) / 2) center;
      background-clip: text;
    }
    h1 span { --metal: #d6c8b8; --sheen: #fffbed; }
  }
}
@media (forced-colors: active) {
  h1 i, h1 span { color: CanvasText; background: none; }
}
