/* Gate page: two doors. Neutral ground between the two brands. */
@property --split { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  --ink: #121013;
  --paper: #F2EDE6;
  --paper-2: #E6DFD5;
  --muted: #6E655E;
  --line: #D3CABE;
  --cream: #F7F1E8;
  --rose: #F0C3CC;            /* the artist's colour: a light tint of the wine */
  --wine-rgb: 107, 30, 50;
  --gold: #E2C07C;            /* the composer's colour */
  --gold-rgb: 226, 192, 124;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(20px, 4.5vw, 72px);
  --brand: "Archivo", system-ui, sans-serif;
  --modern: "Young Serif", Georgia, serif;
  --fancy: "DM Serif Display", Georgia, serif;
}
body { background: var(--ink); color: var(--cream); font-family: var(--brand); font-size: 17px; line-height: 1.55; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.noscript { padding: 40px var(--pad); }

/* The name, in the brand's condensed caps (same as the old site) */
.gbar__name, .intro__name {
  font-family: var(--brand); font-stretch: 62%; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .86;
}

/* ===== Top bar ===== */
.gbar {
  position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px var(--pad); color: var(--cream); transition: background-color .4s, color .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.gbar.is-solid { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); padding-block: 14px; border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gbar__name { font-size: 34px; text-decoration: none; padding: 4px 6px; }
.gbar__link {
  justify-self: start; text-decoration: none; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  padding: 12px 0; position: relative;
}
.gbar__link--r { justify-self: end; }
.gbar__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.gbar__link:hover::after { transform: scaleX(1); }
.js .gbar__link { opacity: 0; transition: opacity .8s var(--ease) .2s; }
.js .gbar__name { visibility: hidden; }
html.intro-done .gbar__link { opacity: 1; }
html.intro-done .gbar__name { visibility: visible; }

/* ===== Intro ===== */
.intro { display: none; }
.js .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 60; background: var(--ink); pointer-events: none; }
.intro__name { margin: 0; font-size: 30vw; white-space: nowrap; transform-origin: 50% 50%; color: var(--cream); }
.intro__name .ch { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .04em; }
.intro__name .ch > span { display: inline-block; }
/* the montage: photos flash inside the letters, cut by cut */
.intro__name.is-montage .ch > span {
  color: transparent; -webkit-background-clip: text; background-clip: text; background-image: var(--img); background-repeat: no-repeat;
  background-size: calc(var(--bw) * var(--z, 1)) calc(var(--bh) * var(--z, 1));
  background-position: calc(var(--bx) - var(--bw) * (var(--z, 1) - 1) / 2) calc(var(--by) - var(--bh) * (var(--z, 1) - 1) / 2);
  transition: color .4s ease;
}
.intro__name.is-montage.is-solid .ch > span { color: var(--cream); }
html.intro-done .intro { display: none; }

/* ===== The gate: two doors that share the screen ===== */
.gate { position: relative; height: 100svh; min-height: 560px; display: flex; overflow: hidden; transition: --split 1.1s var(--ease); }
.gate[data-hot="artist"] { --split: 58%; }
.gate[data-hot="composer"] { --split: 42%; }
.gate[data-go="artist"] { --split: 100%; transition-duration: .9s; }
.gate[data-go="composer"] { --split: 0%; transition-duration: .9s; }
.door { position: relative; display: grid; place-items: center; overflow: hidden; text-decoration: none; color: var(--cream); isolation: isolate; }
.door--artist { width: var(--split); }
.door--composer { width: calc(100% - var(--split)); }

.door__img { position: absolute; inset: 0; z-index: -2; transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.js .door__img { transform: scale(1.14); }
html.intro-open .door__img { transform: scale(1.02); }
.door:hover .door__img, .door:focus-visible .door__img { transform: scale(1.07); }
.gate[data-hot] .door:not(:hover) .door__img { filter: saturate(.35) brightness(.7); }
.door__img .ph { --ink: #F7F1E8; justify-content: flex-start; padding-top: 92px; }
.door--artist .door__img img { object-position: 50% 34%; filter: saturate(.62) sepia(.1) contrast(1.06); }
.door--composer .door__img img { object-position: 42% 24%; filter: sepia(.16) saturate(.82) contrast(1.05); }
.door__img .ph__tag, .door__img .ph__note { position: relative; z-index: 2; }

.door__veil { position: absolute; inset: 0; z-index: -1; transition: opacity .9s var(--ease); }
.door--artist .door__veil { background: radial-gradient(70% 60% at 50% 55%, rgba(var(--wine-rgb), .18), rgba(26,8,16,.62)), linear-gradient(180deg, rgba(26,8,16,.5), rgba(26,8,16,.1) 40%, rgba(26,8,16,.6)); }
.door--composer .door__veil { background: radial-gradient(70% 60% at 50% 55%, rgba(26,19,16,.25), rgba(26,19,16,.68)), linear-gradient(180deg, rgba(26,19,16,.5), rgba(26,19,16,.15) 40%, rgba(26,19,16,.7)); }
.gate[data-hot] .door:not(:hover) .door__veil { opacity: 1; }
.door:hover .door__veil { opacity: .75; }

.door__text { position: relative; display: grid; justify-items: center; gap: 14px; padding: 0 24px; text-align: center; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.door__title { margin: 0; line-height: 1; white-space: nowrap; transition: color .5s var(--ease), text-shadow .5s var(--ease); }
.door__title .l { display: inline-block; transform-origin: 50% 85%; will-change: transform; }
.door__title .w { display: inline-block; white-space: nowrap; }
.door__title .sp { display: inline-block; width: .26em; }
/* the artist: modern, friendly */
.door--artist .door__title { font-family: var(--modern); font-weight: 400; letter-spacing: -.03em; font-size: clamp(48px, 6.6vw, 120px); }
.door--artist:hover .door__title, .door--artist:focus-visible .door__title { color: var(--rose); }
/* the composer: fancy, a little magic */
.door--composer .door__title { font-family: var(--fancy); font-style: italic; font-weight: 400; letter-spacing: -.005em; font-size: clamp(52px, 7vw, 128px); }
.door--composer:hover .door__title, .door--composer:focus-visible .door__title { color: var(--gold); text-shadow: 0 0 36px rgba(var(--gold-rgb), .55), 0 2px 30px rgba(0,0,0,.35); }

.door__line { margin: 0; max-width: 32ch; font-size: clamp(17px, 1.4vw, 21px); color: color-mix(in srgb, var(--cream) 93%, transparent); text-shadow: 0 1px 14px rgba(0,0,0,.55); }

/* The title is the way in: a hairline under it says "link", a small arrow says "go".
   On hover the line draws across in the side's colour and the arrow steps forward. */
.door__title { position: relative; padding-bottom: .14em; }
.door__title::before {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 1.5px; border-radius: 2px;
  background: currentColor; opacity: .45; transform: scaleX(.38); transition: transform .7s var(--ease), opacity .4s;
}
.door__title::after {
  content: ""; position: absolute; left: 100%; top: .12em; width: .3em; height: .3em; margin-left: .1em;
  background: currentColor; opacity: .75; transition: transform .5s var(--ease), opacity .4s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.door:hover .door__title::before, .door:focus-visible .door__title::before { transform: scaleX(1); opacity: .9; }
.door:hover .door__title::after, .door:focus-visible .door__title::after { transform: translate(.08em, -.08em); opacity: 1; }
.js .door__title::before, .js .door__title::after { opacity: 0; }
html.intro-open .door__title::before { opacity: .45; transition-delay: .8s; }
html.intro-open .door__title::after { opacity: .75; transition-delay: .8s; }
html.intro-open .door:hover .door__title::before { opacity: .9; transition-delay: 0s; }
html.intro-open .door:hover .door__title::after { opacity: 1; transition-delay: 0s; }

/* intro hand-off: titles rise once the name settles */
.js .door__title .l, .js .door__line { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
.js .door__title .l { transition-delay: calc(var(--i) * 28ms + .1s); }
.js .door__line { transition-delay: .45s; }
html.intro-open .door__title .l, html.intro-open .door__line { opacity: 1; translate: 0 0; }

/* the seam between the doors */
.gate__or {
  position: absolute; z-index: 5; left: var(--split); top: 0; bottom: 0; width: 1px; translate: -50% 0;
  background: linear-gradient(180deg, transparent, rgba(247,241,232,.42) 18%, rgba(247,241,232,.42) 82%, transparent);
  pointer-events: none; transition: opacity .5s;
}
/* the seam is alive: a slow glow breathes along it, and now and then a thread of light runs down it */
.gate__or::before, .gate__or::after { content: ""; position: absolute; pointer-events: none; }
.gate__or::before {
  left: 50%; top: 0; bottom: 0; width: 90px; translate: -50% 0;
  background: radial-gradient(40% 50% at 50% 50%, rgba(255,236,206,.22), rgba(255,236,206,0) 70%);
  animation: seam-breathe 6.5s ease-in-out -2s infinite;
}
.gate__or::after {
  left: 50%; top: 0; width: 1px; height: 26%; translate: -50% 0;
  background: linear-gradient(180deg, rgba(255,246,228,0), rgba(255,246,228,.95) 55%, rgba(255,246,228,0));
  box-shadow: 0 0 10px 1px rgba(255,232,196,.45);
  animation: seam-run 8s cubic-bezier(.45,0,.35,1) -1s infinite;
}
@keyframes seam-breathe { 0%, 100% { opacity: .35; transform: scaleY(.85); } 50% { opacity: 1; transform: scaleY(1.05); } }
@keyframes seam-run { 0% { transform: translateY(-110%); opacity: 0; } 12% { opacity: 1; } 55% { opacity: 1; } 70%, 100% { transform: translateY(390%); opacity: 0; } }
.gate[data-go] .gate__or, .gate[data-go] .gate__cue { opacity: 0; }
.js .gate__or { opacity: 0; transition: opacity .8s .9s; }
html.intro-open .gate__or { opacity: 1; }

.gate__cue {
  position: absolute; z-index: 5; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 10px;
  color: var(--cream); text-decoration: none; font-size: 13px; letter-spacing: .04em; opacity: .85; transition: opacity .5s;
}
.gate__cue i { width: 1px; height: 38px; background: linear-gradient(var(--cream), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* sparkles on the composer door */
.spark { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #FFF3D6 0, rgba(var(--gold-rgb), .9) 35%, rgba(var(--gold-rgb), 0) 70%);
  animation: spark 1.8s var(--ease) forwards; }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); } }

/* ===== Say hello ===== */
.hello {
  position: relative; background: var(--paper); color: var(--ink);
  padding: clamp(96px, 12vw, 180px) var(--pad) clamp(72px, 9vw, 140px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 120px); align-items: start;
}
.hello__title { margin: 0 0 24px; font-stretch: 62%; font-weight: 800; text-transform: uppercase; line-height: .86; font-size: clamp(64px, 10vw, 176px); }
.hello__lead { margin: 0 0 16px; max-width: 34ch; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; }
.hello__mail { margin: 0; color: var(--muted); }
.hello__mail a { color: var(--ink); font-weight: 600; }

.hform { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; padding-top: 12px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; min-height: 48px; background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0;
  font-size: 20px; transition: border-color .3s;
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--ease), border-color .3s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; background-size: 100% 1.5px; }
.field input::placeholder, .field textarea::placeholder { color: #A89E94; }
.field__error { display: none; margin: 0; font-size: 14px; color: #B3261E; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #B3261E; }
.send {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 17px; font-weight: 650; transition: gap .35s var(--ease), background-color .3s;
}
.send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.send:hover { gap: 20px; background: #2A2528; }
.sent { grid-column: 2; padding: 32px; background: var(--paper-2); border-radius: 12px; }
.sent__title { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.sent__text { margin: 0 0 20px; max-width: 52ch; }
.sent__again { min-height: 46px; padding: 0 20px; border-radius: 999px; background: transparent; border: 1px solid var(--ink); }

/* ===== Footer ===== */
.gfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 28px var(--pad); background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); font-size: 15px; }
.gfoot p { margin: 0; }
.gfoot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.gfoot a { color: var(--ink); text-decoration: none; }
.gfoot a:hover { text-decoration: underline; }

/* ===== Phones and tablets: the doors stack ===== */
@media (max-width: 760px) {
  .gbar { padding: 14px var(--pad); }
  .gbar__name { font-size: 26px; }
  .gbar__link { font-size: 13px; letter-spacing: .08em; }
  .gate { flex-direction: column; }
  .door--artist, .door--composer { width: 100%; height: 50%; }
  .gate[data-go="artist"] .door--artist, .gate[data-go="composer"] .door--composer { height: 100%; }
  .gate[data-go="artist"] .door--composer, .gate[data-go="composer"] .door--artist { height: 0; }
  .door { transition: height .9s var(--ease); }
  .door__text { gap: 8px; padding-top: 40px; }
  .door__line { font-size: 16px; }
  .door--artist .door__title { font-size: clamp(40px, 12.5vw, 64px); }
  .door--composer .door__title { font-size: clamp(42px, 12.5vw, 66px); }
  .door__img .ph { padding-top: 70px; }
  .door__img .ph__note { display: none; }
  .gate__or { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; translate: 0 -50%; background: linear-gradient(90deg, transparent, rgba(247,241,232,.42) 15%, rgba(247,241,232,.42) 85%, transparent); }
  .gate__or::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 70px; translate: 0 -50%; background: radial-gradient(50% 40% at 50% 50%, rgba(255,236,206,.22), rgba(255,236,206,0) 70%); animation-name: seam-breathe-x; }
  .gate__or::after { top: 0; left: 0; width: 30%; height: 1px; translate: 0 0; background: linear-gradient(90deg, rgba(255,246,228,0), rgba(255,246,228,.95) 55%, rgba(255,246,228,0)); animation-name: seam-run-x; }
  .door__title::after { top: .1em; }
  .gate__cue { display: none; }
  .hello { grid-template-columns: 1fr; }
  .hform { grid-template-columns: 1fr; }
  .sent { grid-column: 1; }
}
@keyframes seam-breathe-x { 0%, 100% { opacity: .35; transform: scaleX(.85); } 50% { opacity: 1; transform: scaleX(1.05); } }
@keyframes seam-run-x { 0% { transform: translateX(-110%); opacity: 0; } 12% { opacity: 1; } 55% { opacity: 1; } 70%, 100% { transform: translateX(340%); opacity: 0; } }
