/* ---------- Tokens ---------- */
:root {
  --cream: #F5EFE1;
  --paper: #FBF8F1;
  --ink: #1C1A17;
  --muted: #8A8377;
  --line: #D8D0C0;

  --butter: #F2E59A;
  --merlot: #5A1A2B;
  --rose: #E8A5A8;
  --periwinkle: #A9B4E8;
  --cobalt: #3446C9;
  --olive: #6B6A2A;
  --green: #2FA84F;

  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 3vw, 36px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; } /* hidden hover postcards must not widen the page on phones */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
.star { color: var(--cobalt); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(8px);
  border-color: var(--line);
}
/* One colour per section, the same as its folder on the desktop */
#top, .nav [data-section="top"] { --sec: var(--ink); }
#work, .nav [data-section="work"] { --sec: var(--merlot); }
#about, .nav [data-section="about"] { --sec: var(--rose); }
#random, .nav [data-section="random"] { --sec: var(--olive); }
#contact, .nav [data-section="contact"] { --sec: var(--cobalt); }

.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { position: relative; padding-left: 0; transition: padding .25s, color .25s; }
.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  background: var(--sec, var(--rose));
  transform: scale(0);
  transition: transform .25s;
}
.nav a:hover { color: var(--cobalt); }
.nav a.active { padding-left: 13px; }
.nav a.active::before { transform: scale(1); }

.header-name {
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.scrolled .header-name { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }

.arc-name { position: absolute; top: -6px; right: -4px; width: clamp(220px, 26vw, 340px); pointer-events: none; }
.arc-name text { font: 500 48px var(--sans); letter-spacing: -1.5px; fill: var(--ink); }
.arc-name .star { fill: var(--cobalt); }

.status { position: absolute; left: 26%; top: 20%; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: ping 2.2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(47,168,79,.5); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(47,168,79,0); }
}

.greeting {
  position: absolute;
  left: 36%;
  top: 42%;
  transform: translate(-30%, -50%);
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.55;
  white-space: pre;
}
.greeting .line { display: block; min-height: 1.55em; }
.cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.18em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.photo {
  position: relative;
  width: clamp(110px, 10vw, 150px);
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(45deg, transparent 0 9px, rgba(0,0,0,.05) 9px 10px), #D8CFBF;
  border: 5px solid var(--paper);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.4);
  transform: rotate(6deg);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--muted);
}
.photo::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 62px;
  height: 20px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(242,229,154,.8);
  z-index: 1;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Vintage black & white for the candid photo */
[data-photo="candid"] img { filter: grayscale(1) sepia(.22) contrast(1.18) brightness(1.04); }
[data-photo="candid"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero .photo { position: absolute; left: 55%; top: 31%; }

.scribble { position: absolute; left: 66%; top: 52%; width: clamp(120px, 13vw, 190px); }
.scribble svg { width: 100%; animation: wobble 6s ease-in-out 2s infinite; }
.scribble path { fill: none; stroke: var(--ink); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw .45s ease-out forwards; }
.scribble path:nth-child(2) { animation-delay: .5s; }
.scribble path:nth-child(3) { animation-delay: .9s; }
.scribble path:nth-child(4) { animation-delay: 1.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wobble { 50% { transform: rotate(12deg); } }

.drag { cursor: grab; touch-action: none; user-select: none; }
.drag.dragging { cursor: grabbing; }

.tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  background: var(--paper);
  border: 1px solid var(--ink);
  font: 12px var(--sans);
  white-space: nowrap;
  opacity: 0;
  animation: drop .5s cubic-bezier(.2,.9,.3,1.3) forwards;
}
.tag::before { content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; background: var(--m, var(--merlot)); }
.tag.dragging { box-shadow: 3px 3px 0 var(--ink); }
a.tag:hover { background: var(--butter); }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; } }

.corner { position: absolute; bottom: 62px; /* above the view switch */ font-size: 11px; display: flex; gap: 10px; align-items: center; }
.corner.left { left: var(--gutter); }
.corner.right { right: var(--gutter); }
.corner .pill { width: 18px; height: 8px; border-radius: 99px; background: var(--rose); }
.corner a:hover { color: var(--cobalt); }

/* ---------- Sections ---------- */
.section { padding: 120px var(--gutter) 100px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.section-head h2 {
  font: 500 clamp(28px, 3.2vw, 40px) / 1 var(--sans); /* quieter titles: the editorial is the serious view */
  letter-spacing: -0.03em;
}
.section-head .num { font: 13px var(--mono); letter-spacing: 0; vertical-align: super; color: var(--muted); }
.section-head .num::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; vertical-align: 1px; background: var(--sec); }
.section-head p { font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Work ---------- */
.work-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 1fr 100px 40px;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  transition: padding .35s cubic-bezier(.6,0,.2,1), color .25s;
}
/* Project colour wipes in from the left */
.work-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.6,0,.2,1);
}
.work-row:hover { padding: 26px 18px; color: var(--fc); }
.work-row:hover::after { transform: scaleX(1); }
.work-row:hover .n, .work-row:hover .meta { color: inherit; opacity: .8; }
.work-row:hover .title::before { background: currentColor; }
.work-list { position: relative; z-index: 0; }
.work-row .n { color: var(--muted); }
.work-row .title { position: relative; padding-left: 20px; font: 500 clamp(19px, 1.9vw, 26px) / 1.1 var(--sans); letter-spacing: -0.02em; }
.work-row .title::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; background: var(--c); }
.work-row .meta { color: var(--muted); }
.work-row .soon { justify-self: end; padding: 2px 9px; border: 1px solid; border-radius: 99px; font-size: 10px; text-transform: uppercase; }
.work-row .personal-tag { background: var(--butter); color: var(--merlot); border-color: var(--butter); white-space: nowrap; }
.work-row .arrow { justify-self: end; font-size: 16px; transition: transform .3s; }
.work-row:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.peek {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  width: 240px;
  aspect-ratio: 4 / 3;
  padding: 6px;
  background: var(--paper);
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x), var(--y)) rotate(-4deg) scale(.85);
  transition: opacity .2s, transform .12s ease-out;
  box-shadow: 0 16px 30px -16px rgba(0,0,0,.4);
}
.peek.show { opacity: 1; transform: translate(var(--x), var(--y)) rotate(-4deg) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo { position: sticky; top: 110px; }
/* One photo, straight and quiet: the editorial stays clean */
.about-photo .photo { width: 100%; max-width: 260px; transform: none; border: 0; box-shadow: none; font-size: 12px; }
.about-photo .photo::before { display: none; }

.about-lead { max-width: 24ch; font: 400 clamp(24px, 2.6vw, 34px) / 1.2 var(--sans); letter-spacing: -0.02em; }
/* About's accent: a soft rose band under the words */
.about-lead .hl { white-space: nowrap; background: linear-gradient(transparent 60%, rgba(232,165,168,.6) 60%, rgba(232,165,168,.6) 92%, transparent 92%); }
.about-text { margin-top: 28px; max-width: 58ch; font: 18px / 1.6 var(--sans); color: #4A453E; }

/* Phrases that expand the story inline */
.more-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #C9BFAE;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: text-decoration-color .2s;
}
.more-link:hover, .more-link[aria-expanded="true"] { text-decoration-color: var(--ink); }
/* Opened text sits on a rose highlight, so it reads apart from the story (ink on rose passes contrast) */
.more-text { display: none; color: var(--ink); }
.more-hl { background: rgba(232,165,168,.38); padding: 1px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.more-text.open { display: inline; animation: reveal .45s ease-out; }
@keyframes reveal { from { opacity: 0; filter: blur(3px); } }

/* Place words that reveal a postcard */
.place {
  position: relative;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #C9BFAE;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
  outline: none;
}
.place:hover { text-decoration-color: var(--ink); }
.postcard {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  z-index: 30;
  width: 250px;
  padding: 8px 8px 12px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0,0,0,.04), 0 22px 40px -18px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) rotate(2deg) scale(.92);
  transition: opacity .25s, transform .4s cubic-bezier(.2,.9,.3,1.3);
}
.place:hover .postcard, .place:focus-visible .postcard, .place.open .postcard {
  opacity: 1;
  transform: translateX(-50%) rotate(-3deg);
}
.postcard .art { position: relative; display: block; height: 130px; overflow: hidden; }
.postcard .art img { width: 100%; height: 100%; object-fit: cover; }
.postcard .art.ar { display: grid; place-items: center; background: linear-gradient(#74ACDF 0 33.3%, #FFFFFF 33.3% 66.6%, #74ACDF 66.6%); }
.postcard .sun { width: 46px; fill: #F6B40E; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.postcard .art.bcn {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23A39C8F' stroke-width='1.6'%3E%3Cellipse cx='20' cy='11' rx='4.5' ry='7'/%3E%3Cellipse cx='20' cy='29' rx='4.5' ry='7'/%3E%3Cellipse cx='11' cy='20' rx='7' ry='4.5'/%3E%3Cellipse cx='29' cy='20' rx='7' ry='4.5'/%3E%3Ccircle cx='20' cy='20' r='2.5'/%3E%3Cpath d='M0 6A6 6 0 0 0 6 0M34 0A6 6 0 0 0 40 6M40 34A6 6 0 0 0 34 40M6 40A6 6 0 0 0 0 34'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 40px 40px,
    #D9D3C7;
}
.postcard .stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--paper);
  outline: 2px dotted var(--paper);
  outline-offset: 1px;
  font: 500 11px var(--mono);
  color: var(--merlot);
  transform: rotate(5deg);
}
.postcard .postmark {
  position: absolute;
  top: 60px;
  right: 30px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(90,26,43,.75);
  border-radius: 50%;
  font: 9px / 1.2 var(--mono);
  text-align: center;
  text-transform: uppercase;
  color: rgba(90,26,43,.85);
  background: rgba(251,248,241,.6);
  transform: rotate(-14deg);
}
.postcard .pc-text { display: block; padding: 10px 4px 0; font: 11px / 1.4 var(--mono); color: var(--muted); }
.postcard .pc-text b { display: block; font: 500 16px / 1.2 var(--sans); color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Big postcard ---------- */
.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(28,26,23,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}
.pc-modal.show { opacity: 1; }
.pc-modal[hidden] { display: none; }
.pc-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; perspective: 1600px; }

.pc-card {
  position: relative;
  width: 600px;
  height: 400px;
  margin: calc((var(--s, 1) - 1) * 200px) calc((var(--s, 1) - 1) * 300px);
  padding: 0;
  transform-style: preserve-3d;
  transform: scale(var(--s, 1)) rotate(-2deg) translateY(30px);
  transition: transform .8s cubic-bezier(.3,1.3,.5,1);
  cursor: pointer;
  text-align: left;
}
.pc-modal.show .pc-card { transform: scale(var(--s, 1)) rotate(-2deg); }

.pc-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.6);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pc-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pc-actions button {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--paper);
  font-size: 12px;
  transition: background .2s, color .2s;
}
.pc-actions button:hover { background: var(--ink); color: var(--paper); }

.pc-music { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-music[hidden] { display: none; }
.pc-music-label { font-size: 11px; color: var(--paper); letter-spacing: .06em; }
.pc-music iframe { border-radius: 12px; }

/* Shared paper + one accent ink for both faces */
.pc-face { --pc-paper: #F2EDD9; --pc-ink: var(--merlot); --pc-ink-2: var(--cobalt); background: var(--pc-paper); }

/* Back: one red ink, lots of air */
.pcb {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 600px;
  height: 400px;
  padding: 30px 30px 26px;
  background: var(--pc-paper);
  color: var(--pc-ink);
  overflow: hidden;
}
.pcb-divider { position: absolute; left: 50%; top: 34px; bottom: 34px; width: 1px; background: var(--pc-ink); opacity: .55; }
.pcb-water { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; margin: -125px 0 0 -110px; opacity: .16; }
.pcb-water path { fill: none; stroke: var(--rose); stroke-width: 13; stroke-linecap: round; }
.pcb-seal { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; }

.pcb-left { position: relative; display: flex; flex-direction: column; padding-right: 58px; }
.pcb-msg { font: 400 11px / 1.5 var(--mono); }
.pcb-msg p + p { margin-top: 4px; }
.pcb-hello { margin-bottom: 4px; font-weight: 500; font-size: 13px; }

.pcb-bottom { position: absolute; left: 30px; bottom: 26px; width: 200px; height: 74px; }
.pcb-postmark { position: absolute; left: 0; bottom: 0; width: 170px; height: 74px; }
.pcb-stamp {
  position: absolute;
  left: 92px;
  bottom: 4px;
  width: 56px;
  height: 68px;
  padding: 5px;
  background:
    radial-gradient(circle, var(--pc-paper) 2.5px, transparent 3px) -4px -4px / 8px 8px,
    var(--pc-ink);
  transform: rotate(-3deg);
}
.pcb-stamp-art { display: grid; place-items: center; width: 100%; height: 100%; background: var(--pc-ink); border: 1px solid rgba(251,248,241,.6); }
.pcb-stamp-art svg { width: 34px; height: 34px; }
.pcb-stamp-art path { fill: none; stroke: var(--pc-paper); stroke-width: 14; stroke-linecap: round; }

.pcb-right { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding-left: 40px; }
.pcb-photo { position: absolute; top: -14px; right: -16px; width: 262px; display: flex; flex-direction: column; align-items: flex-end; }
/* Same cream as the photos' paper, so the photo reads as printed on the card */
.pcb-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 222px; }
.pcb-photo figcaption { margin: -14px 18px 0 0; font: 500 8.5px var(--mono); letter-spacing: .12em; text-align: right; }
.pcb-line { height: 34px; border-bottom: 1px solid var(--pc-ink); opacity: .6; font: 400 11px var(--mono); display: flex; align-items: flex-end; padding-bottom: 5px; }
.pcb-line:nth-last-child(n+2) { opacity: 1; }

.mini-title { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.mini-title { margin: 56px 0 10px; }
.rows { border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.rows li span:first-child { color: var(--muted); }
.rows a { border-bottom: 1px solid var(--rose); }
.rows a:hover { color: var(--cobalt); }

/* How I work: four principles */
.how { margin-top: 110px; }
.how-flow { position: relative; padding-top: 80px; }
.how-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.how-path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.how-path.loop { stroke: var(--merlot); stroke-width: 3; }
.how-loop-label { font: 12px var(--mono); fill: var(--merlot); }

.how-list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.how-list li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.how-dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 12px;
  transition: background .2s, color .2s;
}
.how-list li:hover .how-dot { background: var(--ink); color: var(--paper); }
.how-list h4 { margin-top: 16px; font: 500 21px / 1.1 var(--sans); letter-spacing: -0.025em; }
.how-list p { margin-top: 8px; max-width: 24ch; font: 14px / 1.5 var(--sans); color: #4A453E; }
.how-note { margin: 34px auto 0; max-width: 60ch; text-align: center; font-size: 12px; color: var(--merlot); }
.how-note::before { content: "↺ "; }

/* ---------- Random: a row of small, same-size cards ---------- */
.moodboard { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.mood-card { margin: 0; }
.mood-img { aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.05) 10px 11px), #E6DECD; font-size: 11px; color: var(--muted); }
.mood-img img { width: 100%; height: 100%; object-fit: cover; }
.mood-swatch { place-items: end start; align-content: end; padding: 12px; background: var(--c); color: var(--fc); }
.mood-swatch strong { font: 500 17px / 1.1 var(--sans); letter-spacing: -0.02em; }
.mood-swatch small { font-size: 10px; opacity: .8; }
.mood-card figcaption { margin-top: 8px; font-size: 10px; line-height: 1.4; }
.mood-tag { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); }
.mood-tag::before { content: ""; width: 8px; height: 8px; background: var(--m); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 40px; }
.contact-hey .accent { color: var(--cobalt); } /* Contact's colour */
.contact-hey { font: 500 clamp(44px, 7vw, 96px) / .9 var(--sans); letter-spacing: -0.04em; }
.contact-mail { display: inline-block; margin-top: 28px; font-size: clamp(16px, 2vw, 22px); border-bottom: 1px solid; }
.contact-mail:hover { color: var(--cobalt); }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 120px; padding-top: 16px; padding-bottom: 60px; border-top: 1px solid var(--ink); font-size: 11px; }

/* ---------- View toggle ---------- */
/* Leaving for desktop: the page steps back into a browser window on her desktop.
   The desktop's look (menu bar, dotted cream) shows behind it while it shrinks. */
html.stepping-back {
  overflow: hidden;
  background:
    linear-gradient(var(--ink) 0 30px, transparent 30px) 0 0 / 100% 30px no-repeat,
    var(--cream) url("../assets/wallpaper-film.jpg") center 30px / cover;
}
.ghost-window { position: fixed; z-index: -1; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 7px 7px 0 var(--ink); }
.ghost-window .bar { height: 31px; border-bottom: 1.5px solid var(--ink); background: var(--cream); }

/* Inside the desktop's browser window, and when coming back from it */
.embed .view-toggle { display: none; }
.no-intro .scribble path { animation: none; stroke-dashoffset: 0; }
.no-intro .tag { animation: none; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-row { grid-template-columns: 40px 1fr 96px; }
  .work-row .meta, .work-row .arrow { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 240px; }
  .how-list { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .peek { display: none; }
}

@media (max-width: 760px) {
  .site-header { font-size: 10px; padding: 14px 16px; }
  .nav { gap: 6px 14px; max-width: 56%; }
  .header-name { display: none; }
  .arc-name { top: 34px; width: 150px; }
  .status { left: 16px; top: 24%; }
  .greeting { left: 16px; top: 34%; transform: none; font-size: 14px; }
  .hero .photo { left: auto; right: 22px; top: 54%; width: 110px; }
  .scribble { left: 12%; top: 60%; width: 110px; }
  .corner { bottom: 70px; }
  .corner.right { display: none; }

  .section { padding: 90px 16px 70px; }
  .section-head { flex-direction: column; gap: 8px; }
  .section-head p { text-align: left; }
  .how-flow { padding-top: 0; }
  .how-list { grid-template-columns: 1fr; gap: 26px; }
  .how-list li { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; column-gap: 14px; }
  .how-list h4 { margin-top: 0; }
  .how-list p { flex-basis: 100%; max-width: none; padding-left: 60px; }
  .how-note { text-align: left; }
  .rows li { grid-template-columns: 1fr; gap: 2px; }

  .moodboard { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scribble path { animation: none; stroke-dashoffset: 0; }
  .scribble svg, .status i { animation: none; }
  .tag { animation: none; opacity: 1; }
}
