/* Marta Albergaria: concept study by Zigna. "Quiet and literary".
   A book-like reading column with notes in the margin, warm paper, ink
   brown-black, one terracotta accent from Porto's roofs. */

:root {
  --paper: #f3eee6;
  --paper-2: #ebe4d8;
  --ink: #2a2420;
  --ink-2: #6a5f57;
  --line: #d8cfc2;
  --terra: #a44d2a;     /* AA on paper */
  --terra-soft: #e9d5c8;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --wrap: 76rem;
  --col: 36rem;
  --gut: clamp(1.15rem, 5vw, 3.5rem);
  --ease: cubic-bezier(.22, .7, .12, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.1875rem/1.65 var(--serif); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.fict { color: var(--ink-2); font-size: .85em; font-family: var(--sans); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.label { font: 500 .75rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.h2 { font: 300 clamp(2.2rem, 4.6vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.02em; }
.h2 span, h1 span { display: block; }

/* Concept label */
.concept { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: center; padding: .55rem var(--gut); background: var(--ink); color: #f1ebe3; font: 400 .8125rem/1.4 var(--sans); text-align: center; }
.concept a { color: #fff; }
.concept-en { opacity: .65; }
@media (max-width: 30rem) { .concept-long, .concept-en { display: none; } }
@media (min-width: 30.01rem) { .concept-short { display: none; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.top.is-stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { margin-right: auto; text-decoration: none; font: 400 1.375rem/1.1 var(--serif); letter-spacing: -0.01em; }
.brand span { display: block; font: 400 .75rem/1.3 var(--sans); color: var(--ink-2); letter-spacing: .02em; }
.nav { display: flex; gap: 1.6rem; font: 400 .9375rem/1 var(--sans); }
.nav a { text-decoration: none; color: var(--ink-2); padding: .3rem 0; }
.nav a:hover { color: var(--ink); }
.write { font: 500 .9375rem/1 var(--sans); text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid var(--terra); color: var(--terra); }
.write:hover { color: var(--ink); border-color: var(--ink); }
.menu-btn { display: none; font: 400 .9375rem/1 var(--sans); background: none; border: 0; padding: .4rem 0; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 60rem) {
  .nav { display: none; }
  .js .menu-btn { display: block; }
  .nav.is-open { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1.25rem; }
  .nav.is-open a { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font: 300 1.5rem/1.2 var(--serif); }
  .top-in { gap: 1.1rem; }
}
@media (max-width: 26rem) { .brand span { display: none; } }

/* Hero: a sentence, set like a book's opening line */
.hero { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.kicker { font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); margin-bottom: 1.25rem; }
.hero h1 { font: 300 clamp(2.9rem, 7.4vw, 6.6rem)/1.02 var(--serif); letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero-foot { display: grid; grid-template-columns: minmax(0, var(--col)) auto; justify-content: space-between; gap: 2rem 4rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: end; }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--ink-2); }
.facts { margin: 0; display: grid; gap: .6rem; font: 400 .9375rem/1.4 var(--sans); min-width: 16rem; }
.facts div { display: grid; grid-template-columns: 6rem 1fr; border-top: 1px solid var(--line); padding-top: .6rem; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; }
@media (max-width: 52rem) { .hero-foot { grid-template-columns: 1fr; } }

/* Photo frames */
.frame { margin: 0; overflow: hidden; position: relative; background: var(--paper-2); }
.frame-in { position: absolute; inset: -8% 0; }
.frame-in img { width: 100%; height: 100%; object-fit: cover; }
.wide { height: clamp(26rem, 78vh, 52rem); margin: 0 var(--gut); }
.wide img { object-position: 50% 62%; }

/* Reading: one column, notes in the margin on wide screens */
.read { padding-top: clamp(5rem, 11vw, 8.5rem); }
.read > .h2 { max-width: var(--col); margin-bottom: clamp(2rem, 4vw, 3rem); }
.prose { display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 15rem); column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.25rem; align-items: start; }
.prose > p { grid-column: 1; }
.prose .first::first-letter { float: left; font: 300 4.6em/.8 var(--serif); margin: .08em .1em 0 -.03em; color: var(--terra); }
.margin { grid-column: 2; font: 400 .875rem/1.55 var(--sans); color: var(--ink-2); border-top: 1px solid var(--terra); padding-top: .75rem; }
.mark { display: block; font: italic 400 1rem/1 var(--serif); color: var(--terra); margin-bottom: .4rem; }
@media (max-width: 52rem) {
  .prose { grid-template-columns: 1fr; }
  .margin { grid-column: 1; margin: .25rem 0 .75rem; padding-left: 1rem; border-top: 0; border-left: 1px solid var(--terra); padding-top: 0; }
}

.topics { margin-top: clamp(3rem, 6vw, 4.5rem); max-width: calc(var(--col) + 21rem); border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.topics ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 0; font: 300 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--serif); }
.topics li:not(:last-child)::after { content: "·"; color: var(--terra); margin: 0 .55em; }

/* The pause: rain on the window and a minute of breathing */
.pause { position: relative; margin-top: clamp(5rem, 11vw, 8.5rem); }
.pause-photo { height: clamp(32rem, 90vh, 50rem); }
.pause-card {
  position: absolute; right: clamp(1rem, 6vw, 6rem); top: 50%; transform: translateY(-50%);
  width: min(calc(100% - 2rem), 24rem); background: var(--paper); padding: 2rem 2rem 2.25rem;
  display: grid; justify-items: center; text-align: center; gap: 1.25rem;
}
.breath { position: relative; width: 11rem; height: 11rem; display: grid; place-items: center; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--terra); background: radial-gradient(circle, var(--terra-soft) 0%, transparent 70%); transform: scale(.55); transition: transform 4s cubic-bezier(.45, 0, .55, 1); }
.breath.is-in .breath-ring { transform: scale(1); }
.breath.is-out .breath-ring { transform: scale(.55); transition-duration: 6s; }
.breath-word { position: relative; font: italic 300 1.5rem/1 var(--serif); }
.breath-note { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); max-width: 18rem; }
.btn-quiet { font: 500 .9375rem/1 var(--sans); background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: .85rem 1.4rem; cursor: pointer; transition: background .3s, color .3s; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.still .breath-ring { transition: none; }
@media (max-width: 40rem) {
  .pause-photo { height: 20rem; }
  .pause-card { position: relative; top: auto; right: auto; transform: none; margin: -4rem auto 0; }
}

/* First appointment: three steps, numbered like chapters */
.steps { list-style: none; margin: 0; padding: 0; max-width: calc(var(--col) + 6rem); display: grid; gap: 2rem; }
.steps li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.roman { font: italic 300 2rem/1 var(--serif); color: var(--terra); }
.steps strong { font-weight: 500; }

/* Prices: a plain table */
.prices { width: 100%; max-width: calc(var(--col) + 6rem); border-collapse: collapse; font: 400 1rem/1.4 var(--sans); }
.prices th, .prices td { padding: 1rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.prices tr:first-child th, .prices tr:first-child td { border-top: 1px solid var(--ink); }
.prices th { font: 400 1.25rem/1.3 var(--serif); }
.prices td { color: var(--ink-2); }
.prices td:last-child { text-align: right; color: var(--ink); font: 400 1.25rem/1.3 var(--serif); }
.prose--after { margin-top: 2rem; }

/* About */
.about { margin-top: clamp(5rem, 11vw, 8.5rem); background: var(--paper-2); }
.about-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; padding-top: clamp(4.5rem, 9vw, 7rem); padding-bottom: clamp(4.5rem, 9vw, 7rem); align-items: center; }
.about-photo { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.about-text { grid-column: 7 / span 6; display: grid; gap: 1.25rem; max-width: var(--col); }
.about-text .h2 { margin-bottom: .75rem; }
.signature { font: italic 300 2.4rem/1 var(--serif); color: var(--terra); margin-top: .5rem; }
.small { font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 52rem) { .about-photo, .about-text { grid-column: 1 / -1; } .about-photo { aspect-ratio: 4 / 3; margin-bottom: 2.5rem; } }

/* Contact */
.contact { padding-top: clamp(5rem, 11vw, 8.5rem); display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 17rem); column-gap: clamp(2rem, 6vw, 6rem); row-gap: 2rem; }
.contact-head { grid-column: 1 / -1; }
.contact-head p { margin-top: 1rem; color: var(--ink-2); }
.form { grid-column: 1; display: grid; gap: 1.6rem; }
.field { display: grid; gap: .4rem; font: 400 .875rem/1.4 var(--sans); color: var(--ink-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.field em { font-style: normal; opacity: .8; }
.field input, .field textarea { font: 400 1.1875rem/1.5 var(--serif); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0; padding: .5rem 0; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); box-shadow: 0 1px 0 var(--terra); }
.reply legend { padding: 0; margin-bottom: .5rem; }
.reply { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.reply legend { flex-basis: 100%; }
.reply label { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1rem; cursor: pointer; }
.reply input { accent-color: var(--terra); width: 1.05rem; height: 1.05rem; }
.btn { justify-self: start; text-decoration: none; display: inline-block; font: 500 1rem/1 var(--sans); background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 1.05rem 1.8rem; cursor: pointer; transition: background .3s; }
.btn:hover { background: var(--terra); }
.form-error { color: #8a2f1e; font: 400 .9375rem/1.4 var(--sans); }
.form-done { display: grid; gap: .6rem; }
.form-done[hidden] { display: none; }
.done-title { font: 300 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--serif); }
.form.is-done > :not(.form-done) { display: none; }
.private { grid-column: 2; align-self: start; display: grid; gap: 1rem; font: 400 .875rem/1.55 var(--sans); color: var(--ink-2); border-top: 1px solid var(--terra); padding-top: .9rem; }
.private strong { color: var(--ink); font-weight: 500; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } .form, .private { grid-column: 1; } }

/* Where */
.where { position: relative; margin-top: clamp(5rem, 11vw, 8.5rem); }
.where-photo { height: clamp(28rem, 70vh, 44rem); }
.where-in { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: clamp(1.5rem, 4vw, 3rem); pointer-events: none; }
.where-card { pointer-events: auto; background: var(--paper); padding: clamp(1.5rem, 3vw, 2.25rem); width: min(100%, 26rem); display: grid; gap: .8rem; }
@media (max-width: 40rem) { .where-photo { height: 18rem; } .where-in { position: static; padding: 0; } .where-card { width: auto; margin: -3rem var(--gut) 0; position: relative; } }

.foot { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.5rem; row-gap: 1rem; padding-top: 2.25rem; padding-bottom: 2.75rem; font: 400 .875rem/1.5 var(--sans); color: var(--ink-2); }
.foot-brand { grid-column: 1 / span 4; font: 400 1.375rem/1 var(--serif); color: var(--ink); }
.foot-legal { grid-column: 6 / span 7; }
@media (max-width: 48rem) { .foot-brand, .foot-legal { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- motion */
/* the mask leaves room above for accents (À, É) and below for descenders */
.js:not(.still) [data-lines] .ln { display: block; overflow: hidden; padding: .22em 0 .12em; margin: -.22em 0 -.12em; }
.js:not(.still) [data-lines] .ln > span { display: block; transform: translateY(105%); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i, 0) * 130ms); }
.js:not(.still) [data-lines].is-in .ln > span { transform: none; }
.js:not(.still) [data-reveal] { opacity: 0; transform: translateY(1.25rem); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js:not(.still) [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.still) .margin[data-reveal] { transform: translateX(1rem); }
.js:not(.still) .margin[data-reveal].is-in { transform: none; }
.js:not(.still) [data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.8s var(--ease); }
.js:not(.still) [data-clip].is-in { clip-path: inset(0 0 0 0); }

/* ===================================================================== V2 */
/* Opening: the room is seen only through the word "frase." cut out of the
   paper; scrolling zooms through the word into the room. --p (0–1) is the
   scroll progress through the section, set by app.js. */
.intro-mask { position: relative; height: 270vh; --p: 0; }
.mask-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.mask-photo { position: absolute; inset: 0; display: block; }
.mask-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--p) * .18)); }
.mask-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--z, 1)); opacity: var(--mo, 1); will-change: transform; }
.mask-white { fill: #fff; }
.mask-word { fill: #000; font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 300; letter-spacing: -0.035em; }
.mask-paper { fill: var(--paper); }
.mask-top { position: absolute; z-index: 2; left: 0; right: 0; top: clamp(6.25rem, 14vh, 9rem); max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); opacity: calc(1 - var(--p) * 3.2); }
.mask-top .kicker { margin-bottom: 1rem; }
.mask-top h1 { font: 300 clamp(1.7rem, 3.4vw, 3.1rem)/1.12 var(--serif); letter-spacing: -0.02em; max-width: 21ch; }
.js:not(.still) .sr-frase { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mask-card {
  position: absolute; z-index: 3; bottom: clamp(1.25rem, 5vh, 3rem);
  left: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  width: min(calc(100% - 2 * var(--gut)), 27rem); background: var(--paper);
  padding: clamp(1.4rem, 2.4vw, 2rem); display: grid; gap: 1.1rem;
  opacity: var(--card, 0); transform: translate3d(0, calc((1 - var(--card, 0)) * 2.5rem), 0);
  pointer-events: var(--card-events, none);
}
.mask-card .lede { font-size: 1.125rem; color: var(--ink); }
.mask-card .facts { min-width: 0; }
.mask-card .btn { justify-self: start; }
.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 1.5rem; transform: translateX(-50%); margin: 0; font: 500 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); opacity: calc(1 - var(--p) * 5); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 2.25rem; margin: .75rem auto 0; background: currentColor; transform-origin: top; animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
/* Without JS or with reduced motion: headline, then the photo, then the card */
html:not(.js) .intro-mask, .still .intro-mask { height: auto; --p: 0; }
html:not(.js) .mask-pin, .still .mask-pin { position: relative; height: auto; display: flex; flex-direction: column; background: var(--paper); }
html:not(.js) .mask-svg, .still .mask-svg, html:not(.js) .scroll-hint, .still .scroll-hint { display: none; }
html:not(.js) .mask-top, .still .mask-top { position: static; order: 0; opacity: 1; padding-top: 4rem; padding-bottom: 2.5rem; width: 100%; }
html:not(.js) .mask-photo, .still .mask-photo { position: relative; order: 1; height: 70vh; }
html:not(.js) .mask-card, .still .mask-card { position: relative; order: 2; left: auto; bottom: auto; opacity: 1; transform: none; pointer-events: auto; margin: -5rem auto 0 var(--gut); }
.still .sr-frase, html:not(.js) .sr-frase { font-style: italic; color: var(--terra); }

/* What I can help with: the line in the middle of the screen comes into focus */
.focus { margin-top: clamp(4rem, 9vw, 6.5rem); }
.focus-list { list-style: none; margin: 1.25rem 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.focus-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 1rem 3rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--line); }
.focus-t { font: 300 clamp(2rem, 5.2vw, 4.4rem)/1.12 var(--serif); letter-spacing: -0.025em; transition: color .6s var(--ease), transform .8s var(--ease), opacity .6s var(--ease); }
.focus-n { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-2); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js:not(.still) .focus-list li .focus-t { opacity: .22; }
.js:not(.still) .focus-list li .focus-n { opacity: 0; transform: translateY(.5rem); }
.js:not(.still) .focus-list li.is-on .focus-t { opacity: 1; color: var(--terra); transform: translateX(.6rem); }
.js:not(.still) .focus-list li.is-on .focus-n { opacity: 1; transform: none; }
@media (max-width: 52rem) { .focus-list li { grid-template-columns: 1fr; } }

/* First appointment: three pages that stack like sheets of paper */
.stack { display: block; max-width: 46rem; }
.stack li {
  position: sticky; top: calc(6.5rem + var(--i, 0) * 1.4rem);
  display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; align-items: start;
  min-height: min(26rem, 52vh); margin-bottom: 28vh; padding: clamp(1.75rem, 4vw, 3rem);
  background: #f8f4ed; border: 1px solid var(--line); border-top: 1px solid var(--line);
  box-shadow: 0 1.25rem 2.5rem rgba(42, 36, 32, .07);
  transform: rotate(var(--r, 0deg)) scale(var(--s, 1)); transform-origin: 50% 0;
}
.stack li:nth-child(1) { --r: -.6deg; }
.stack li:nth-child(2) { --r: .5deg; }
.stack li:nth-child(3) { --r: -.25deg; margin-bottom: 0; }
.stack .roman { font-size: clamp(3rem, 6vw, 4.5rem); line-height: .9; }
.stack p { font-size: clamp(1.1875rem, 1.8vw, 1.4rem); line-height: 1.55; }
.stack strong { display: block; font: 300 clamp(1.9rem, 3.4vw, 2.8rem)/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: .9rem; }
@media (max-width: 40rem) { .stack li { grid-template-columns: 1fr; gap: .75rem; top: calc(5.5rem + var(--i, 0) * 1rem); } }
html:not(.js) .stack li, .still .stack li { position: relative; top: auto; margin-bottom: 1.5rem; transform: none; }

/* The breathing minute, full screen over the rain */
.pause { margin-top: clamp(5rem, 11vw, 8.5rem); }
.pause-photo { height: 100vh; height: 100svh; }
.pause-photo::after { content: ""; position: absolute; inset: 0; background: rgba(14, 18, 14, .38); transition: background 1.2s var(--ease); }
.is-breathing .pause-photo::after { background: rgba(10, 13, 10, .62); }
.pause-card { position: absolute; inset: 0; top: 0; right: 0; transform: none; width: auto; margin: 0; background: none; padding: var(--gut); display: grid; place-content: center; justify-items: center; text-align: center; gap: 1.5rem; color: #f4efe6; }
.pause-card .label { color: rgba(244, 239, 230, .75); }
.breath { width: min(56vmin, 30rem); height: min(56vmin, 30rem); }
.breath-ring { border: 1px solid rgba(244, 239, 230, .55); background: radial-gradient(circle, rgba(233, 213, 200, .42) 0%, rgba(233, 213, 200, .08) 55%, transparent 70%); box-shadow: 0 0 6rem rgba(233, 213, 200, .18); }
.breath-word { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; }
.breath-note { color: rgba(244, 239, 230, .8); max-width: 22rem; }
.btn-quiet { color: #f4efe6; border-color: rgba(244, 239, 230, .7); }
.btn-quiet:hover { background: #f4efe6; color: var(--ink); }
.top, .concept, .float-write { transition: opacity 1s var(--ease); }
.is-breathing .top, .is-breathing .concept, .is-breathing .float-write { opacity: .12; }
@media (max-width: 40rem) { .pause-photo { height: 100svh; } .pause-card { position: absolute; margin: 0; } }

/* Floating "write to me" */
.float-write {
  position: fixed; z-index: 30; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  font: 500 .9375rem/1 var(--sans); text-decoration: none; padding: 1rem 1.35rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: 0 .75rem 2rem rgba(42, 36, 32, .25);
  transform: translate3d(0, 180%, 0); transition: transform .7s var(--ease), background .3s, opacity 1s var(--ease);
}
.float-write.is-on { transform: none; }
.float-write:hover { background: var(--terra); }

/* Footer: details, then her name across the page */
.foot { overflow: hidden; }
.foot-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-top: clamp(2.5rem, 5vw, 4rem); font: 400 1rem/1.5 var(--sans); }
.foot-top .label { margin-bottom: .6rem; }
.clock { font: 300 clamp(2rem, 3.5vw, 3rem)/1 var(--serif) !important; }
.foot-word { margin: clamp(1rem, 3vw, 2rem) 0 0; padding-bottom: .12em; text-align: center; white-space: nowrap; font: italic 300 31vw/.8 var(--serif); letter-spacing: -0.045em; color: var(--terra); }
.foot-word .wl { display: inline-block; }
.js:not(.still) .foot-word .wl { transform: translate3d(0, 55%, 0) rotate(4deg); opacity: 0; transition: transform 1.5s var(--ease), opacity 1.5s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.js:not(.still) .foot-word.is-in .wl { transform: none; opacity: 1; }
.foot-in { display: block; padding-top: 1.5rem; padding-bottom: 2.5rem; }
.foot-legal { max-width: 44rem; font-size: .8125rem; }
@media (max-width: 48rem) { .foot-top { grid-template-columns: 1fr; } }
