/* Cormorant Garamond, self-hosted (SIL OFL 1.1, licence in public/fonts) so it loads where Google Fonts is blocked */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}

:root {
  --paper: #e9e6df;
  --paper-light: #f2efe8;
  --ink: #171918;
  --muted: #64645e;
  --line: rgba(23, 25, 24, 0.2);
  --rule: var(--ink);
  --body: #3f403c;
  --shell: 1160px;
  --blue: #72a9b8;
  --blue-dark: #4f8797;
  --accent-text: var(--blue-dark);
  --on-accent: var(--ink);
  --orbit-line: rgba(83, 110, 115, 0.28);
  --phase-saturate: 0.92;
  --dg-hi: rgba(114, 169, 184, 0.2);
  --serif: var(--mono);
  --sans: var(--mono);
  --mono: "SFMono-Regular", "Roboto Mono", "Courier New", monospace;
  /* only the three big headlines (hero, work, contact) use the display serif */
  --display: "Cormorant Garamond", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  /* phones show the desktop layout zoomed out; stop iOS / Android from inflating paragraph text */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The paper sits on its own fixed layer instead of a fixed body background: phones ignore
   background-attachment: fixed and would stretch the sheet over the whole page height.
   Its size is spelled out (rather than "cover") so the header can repeat it exactly; only the clean top
   of the sheet ever shows. */
:root {
  --paper-size: max(100vw, 150vh) auto;
}

body::after {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 100vh;
  content: "";
  pointer-events: none;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(233, 230, 223, 0.16), rgba(233, 230, 223, 0.16)),
    url("./assets/moon-tide-paper-field-v1.jpg");
  background-size: cover, var(--paper-size);
  background-position: center top, center top;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.34;
  z-index: 99;
  background:
    repeating-linear-gradient(92deg, transparent 0 22px, rgba(21, 22, 20, 0.012) 23px),
    repeating-linear-gradient(1deg, transparent 0 15px, rgba(255, 255, 255, 0.025) 16px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: var(--on-accent);
  background: var(--blue);
}

.section-shell {
  width: min(100% - 64px, var(--shell));
  margin: 0 auto;
}

/* the bar is cut from the same paper as the page: it sits at the top of the viewport, so the same size and
   position line the two up exactly */
.site-header,
.site-header::after {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(233, 230, 223, 0.16), rgba(233, 230, 223, 0.16)),
    url("./assets/moon-tide-paper-field-v1.jpg");
  background-size: cover, var(--paper-size);
  background-position: center top, center top;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: 44px;
  align-items: center;
  height: 68px;
  padding: 0 max(32px, calc((100vw - var(--shell)) / 2));
}

/* once the page moves, content dissolves under a short paper fade instead of meeting a hard line */
.site-header::after {
  position: absolute;
  inset: 100% 0 auto 0;
  height: 36px;
  content: "";
  pointer-events: none;
  opacity: 0;
  /* the strip starts 68px down the viewport; shift its paper up to stay in register */
  background-position: center top, center -68px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  transition: opacity 260ms ease;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a.is-active::after {
  transform: scaleX(1);
}

.site-header nav a.is-active {
  color: var(--accent-text);
}

.site-header nav a.is-active::after {
  background: var(--accent-text);
}

.nav-contact {
  position: relative;
  justify-self: end;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.nav-contact::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-contact:hover::after,
.nav-contact:focus-visible::after,
.nav-contact.is-active::after {
  transform: scaleX(1);
}

.nav-contact.is-active {
  color: var(--accent-text);
}

.nav-num,
.nav-progress {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 6vw, 96px);
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 72px;
  align-items: center;
}

.hero-copy {
  align-self: center;
  transform: translateY(-12px);
}

.eyebrow {
  display: flex;
  gap: 14px;
  margin-bottom: clamp(36px, 6vh, 64px);
  color: var(--muted);
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.18em;
}

.eyebrow span + span::before {
  margin-right: 14px;
  content: "—";
  color: var(--blue);
}

.hero-kicker {
  margin: 0 0 26px;
  font: 400 clamp(13px, 1.1vw, 16px)/1.5 var(--serif);
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(55px, 6vw, 99px)/1.04 var(--display);
  letter-spacing: -0.015em;
}

/* the three display headlines sit back a little: softer ink, and the blue line slightly see-through */
.hero h1,
.work-heading h2,
.contact h2 {
  color: rgba(23, 25, 24, 0.74);
}

/* the Courier headings below them step back too, a little less than the display lines */
.project-content h3,
.experience-heading,
.section-title-row h2,
.method-intro h2 {
  color: rgba(23, 25, 24, 0.8);
}

.hero h1 em,
.work-heading h2 em,
.contact h2 em {
  position: relative;
  color: var(--accent-text);
  font-style: italic;
  font-weight: 400;
  opacity: 0.82;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  margin: 44px 0 0;
}

.credentials div {
  padding: 2px 28px;
  border-left: 1px solid var(--line);
}

.credentials div:first-child {
  padding-left: 0;
  border-left: 0;
}

.credentials dt {
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
}

.credentials dd {
  margin: 9px 0 0;
  font: 400 15px/1.3 var(--serif);
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 44px;
}

.primary-link,
.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 16px 18px;
  border: 1px solid var(--blue);
  color: var(--blue-dark);
  background: rgba(242, 239, 232, 0.48);
  font: 500 12.5px/1 var(--mono);
  letter-spacing: 0.08em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--on-accent);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.text-link {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
  font: 500 12.5px/1 var(--mono);
}

.availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  color: var(--muted);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.14em;
}

.availability span:last-child {
  margin-left: 14px;
}

.signal-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.signal-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--blue);
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(1.4); }
}

.hero-art {
  width: min(100%, 230px);
  margin: 0;
  justify-self: center;
}








.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-4deg);
}

.scroll-note {
  position: absolute;
  bottom: 38px;
  left: 0;
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.18em;
  transform: rotate(-90deg) translateY(-100%);
  transform-origin: left bottom;
}

.scroll-note i {
  display: block;
  width: 45px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-note i::after {
  display: block;
  width: 50%;
  height: 1px;
  content: "";
  background: var(--blue);
  animation: tide-line 2.5s ease-in-out infinite;
}

@keyframes tide-line {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(200%); }
}

.signal-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px 24px;
  border-block: 1px solid var(--rule);
  color: var(--ink);
  background: rgba(233, 230, 223, 0.34);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.signal-strip i {
  color: var(--accent-text);
  font-size: 8px;
}

.section-index {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.16em;
}

.about {
  position: relative;
  padding-top: 120px;
  padding-bottom: 20px;
}

.about .section-index {
  margin-bottom: 0;
}

/* two mirrored notes around an open centre, carried over from the earlier Moon Tide draft */
.profile-pair {
  display: grid;
  grid-template-columns:
    minmax(64px, 1fr)
    minmax(230px, 350px)
    clamp(88px, 9vw, 132px)
    minmax(230px, 350px)
    minmax(64px, 1fr);
  margin-top: clamp(88px, 11svh, 128px);
}

.profile-note {
  display: grid;
  grid-template-rows: 18px 104px 18px 104px auto;
  align-content: start;
  min-height: 290px;
}

.profile-note--left {
  grid-column: 2;
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line);
  text-align: right;
}

.profile-note--right {
  grid-column: 4;
  padding: 28px 0 0 28px;
  border-left: 1px solid var(--line);
}

.micro-label {
  color: var(--muted);
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.16em;
}

.profile-note p {
  align-self: start;
  margin: 8px 0 0;
  font: 400 14px/1.7 var(--serif);
}

.coordinate {
  margin-top: 36px;
  color: var(--muted);
  font: 400 10px/1 var(--mono);
  letter-spacing: 0.12em;
}

.profile-note .coordinate {
  align-self: end;
  margin-top: 0;
}

.capability-section {
  padding: 0 0 130px;
}

.section-title-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.section-title-row h2 {
  max-width: 780px;
  margin: -10px 0 0;
  font: 400 clamp(26px, 2.7vw, 40px)/1.25 var(--serif);
  letter-spacing: -0.03em;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.capability-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.capability-card:last-child {
  border-right: 0;
}

.cap-number {
  color: var(--muted);
  font: 400 10px/1 var(--mono);
}

.capability-art {
  position: relative;
  width: min(78%, 250px);
  aspect-ratio: 1;
  margin: 18px auto 26px;
}


.capability-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.capability-card:hover .capability-art img {
  transform: scale(1.04);
}

.cap-en {
  margin: 0 0 10px;
  color: var(--accent-text);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
}

.capability-card h3 {
  margin: 0 0 16px;
  font: 400 18px/1.3 var(--serif);
}

.capability-card > p:last-child {
  max-width: 320px;
  margin: 0;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.75;
}

.work {
  padding-top: 120px;
  padding-bottom: 130px;
}

.work .section-index {
  margin-bottom: 56px;
}

.work-heading {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.work-heading h2 {
  max-width: 760px;
  margin: 0;
  font: 400 clamp(44px, 4.9vw, 73px)/1.06 var(--display);
  letter-spacing: -0.015em;
}

.work-heading > p {
  max-width: 380px;
  margin: 0 0 8px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}

.project-list {
  border-top: 1px solid var(--rule);
}

.project {
  padding: 36px 0 64px;
  border-bottom: 1px solid var(--rule);
}






.project-content {
  min-width: 0;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
}

.project-meta-end {
  display: flex;
  gap: 22px;
  align-items: baseline;
}

.project-link {
  border-bottom: 1px solid transparent;
  color: var(--accent-text);
  transition: border-color 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  border-bottom-color: var(--accent-text);
}

.project-content h3 {
  margin: 0 0 12px;
  font: 400 clamp(30px, 3vw, 44px)/1.1 var(--serif);
  letter-spacing: -0.035em;
}

.project-subtitle {
  margin: 0 0 22px;
  color: var(--accent-text);
  font: 400 15.5px/1.55 var(--serif);
}

.project-description {
  max-width: 560px;
  margin: 0;
  color: #55564f;
  font-size: 15px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
}

.project-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: end;
  padding: 4px 0 4px 28px;
  border-left: 1px solid var(--line);
}

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
  gap: 48px;
  margin-top: 32px;
}

.project-result strong {
  color: var(--accent-text);
  font: 400 40px/1 var(--serif);
  letter-spacing: -0.03em;
}

.project-result span {
  max-width: 300px;
  color: var(--body);
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.04em;
}

.case-link {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.14em;
}

.case-link span {
  transition: transform 180ms ease;
}

.case-link:hover span,
.case-link:focus-visible span {
  transform: translate(3px, -3px);
}

.project-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  margin-top: 28px;
}

.diagram {
  min-width: 0;
  margin: 0;
}

.diagram-canvas {
  max-width: 840px;
  margin: 0 auto;
  padding: 8px 0 20px;
}

.diagram-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.diagram figcaption {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 6px 20px;
  align-items: baseline;
  max-width: 840px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 10px/1.6 var(--mono);
  letter-spacing: 0.06em;
}

.diagram figcaption strong {
  color: var(--ink);
  font: 400 13.5px/1.4 var(--serif);
  letter-spacing: 0;
}

.diagram figcaption span:last-child {
  color: var(--body);
  font-size: 12.5px;
  letter-spacing: 0;
}

.diagram-canvas svg * { vector-effect: non-scaling-stroke; }
.dg-line { fill: none; stroke: var(--accent-text); stroke-width: 1; }
.dg-line-ghost { stroke: var(--muted); stroke-dasharray: 3 4; }
.dg-guide { fill: none; stroke: var(--accent-text); stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.5; }
.dg-axis { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.6; }
.dg-arrowhead { fill: var(--accent-text); }
.dg-arrowhead-muted { fill: var(--muted); }
.dg-box { fill: none; stroke-width: 1; }
.dg-box-plain { stroke: rgba(23, 25, 24, 0.55); }
.dg-box-hi { stroke: var(--accent-text); }
.dg-box-ghost { stroke: var(--muted); stroke-dasharray: 3 4; }
.dg-plane { fill: none; stroke: rgba(23, 25, 24, 0.55); stroke-width: 1; }
.dg-plane-hi { stroke: var(--accent-text); }
.dg-leader { fill: none; stroke: rgba(23, 25, 24, 0.4); stroke-width: 1; stroke-dasharray: 2 4; }
.dg-leader-hi { stroke: var(--accent-text); }
.dg-axis-dashes { fill: none; stroke: rgba(23, 25, 24, 0.35); stroke-width: 1; }
.dg-guide-soft { stroke: rgba(23, 25, 24, 0.3); opacity: 1; }
.dg-label.dg-label-ink { fill: var(--ink); }
.dg-slab, .dg-slab * { fill: none; stroke: rgba(23, 25, 24, 0.5); stroke-width: 1; }
.dg-slab-hi, .dg-slab-hi * { stroke: var(--accent-text); }
.dg-bar { fill: none; stroke: var(--accent-text); stroke-width: 1; }
.dg-bar-muted { fill: none; stroke: rgba(23, 25, 24, 0.4); stroke-width: 1; }
.dg-label { fill: var(--accent-text); font: 500 13.5px var(--mono); letter-spacing: 0.06em; }
.dg-label-ghost { fill: var(--muted); }
.dg-note { fill: var(--muted); font: 400 12px var(--mono); letter-spacing: 0.04em; }
.dg-star { fill: rgba(23, 25, 24, 0.3); stroke: none; }
.dg-star-link { fill: none; stroke: rgba(23, 25, 24, 0.15); stroke-width: 1; }
.dg-note-faint { fill: rgba(100, 100, 94, 0.7); font-size: 11px; }
.dg-route-old { fill: none; stroke: rgba(23, 25, 24, 0.3); stroke-width: 1; stroke-linejoin: round; }
.dg-route-new { fill: none; stroke: var(--accent-text); stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; opacity: 0.72; }
.dg-route-side { stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.dg-node-old { fill: rgba(23, 25, 24, 0.36); stroke: none; }
.dg-node-new { fill: var(--accent-text); stroke: none; opacity: 0.85; }
.dg-node-center { fill: rgba(23, 25, 24, 0.55); stroke: none; }
.dg-core { fill: none; stroke: rgba(23, 25, 24, 0.42); stroke-width: 1; }
.dg-core-halo { fill: none; stroke: rgba(23, 25, 24, 0.16); stroke-width: 1; }
.dg-halo { fill: none; stroke: var(--accent-text); stroke-width: 1; opacity: 0.26; }

.experience {
  padding-bottom: 130px;
}

.experience .section-index {
  margin-bottom: 56px;
}

.experience-heading {
  max-width: none;
  text-wrap: balance;
  margin: 0 0 48px;
  font: 400 clamp(28px, 3.2vw, 46px)/1.18 var(--serif);
  letter-spacing: -0.035em;
}

.experience-heading em {
  color: var(--accent-text);
  font-style: italic;
}

.timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr) 170px;
  gap: 40px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-org h3 {
  margin: 0;
  font: 400 20px/1.25 var(--serif);
  letter-spacing: -0.01em;
}

.timeline-org p {
  margin: 8px 0 0;
  color: var(--muted);
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: 0.08em;
}

.timeline-note {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.7;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  color: var(--muted);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.timeline-type {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--accent-text);
  letter-spacing: 0.14em;
}

.awards {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr) 170px;
  gap: 40px;
  padding-top: 30px;
}

.awards ul {
  grid-column: 2 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 400 14px/1.8 var(--serif);
}

.method {
  padding-bottom: 130px;
}

.method .section-index {
  margin-bottom: 64px;
}

.method-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(60px, 10vw, 160px);
}

.method-intro h2 {
  margin: 26px 0 26px;
  font: 400 clamp(26px, 2.5vw, 36px)/1.22 var(--serif);
  letter-spacing: -0.035em;
}

.method-intro h2 em {
  color: var(--accent-text);
  font-style: italic;
  font-weight: 400;
}

.method-intro > p:last-child {
  max-width: 360px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}

.process-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 60px 42px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 112px;
  border-bottom: 1px solid var(--line);
}

.phase {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper-light);
}

.phase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(2.35);
  filter: contrast(1.02) saturate(var(--phase-saturate));
  mix-blend-mode: multiply;
}

.process-number {
  color: var(--muted);
  font: 500 10px/1 var(--mono);
}

.process-en {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-text);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.15em;
}

.process-list h3 {
  display: inline;
  margin: 0 18px 0 0;
  font: 400 19px/1.3 var(--serif);
}

.process-list p {
  display: inline;
  margin: 0;
  color: var(--body);
  font-size: 14.5px;
}

.toolbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 72px;
  padding: 18px 0;
  border-block: 1px solid var(--rule);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
}

.toolbox span:not(:first-child)::before {
  margin-right: 12px;
  content: "·";
  color: var(--blue);
}

.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72svh;
  padding-top: 110px;
  padding-bottom: 110px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.contact h2 {
  position: relative;
  z-index: 1;
  margin: 40px 0 28px;
  font: 400 clamp(42px, 5.5vw, 83px)/1.1 var(--display);
  letter-spacing: -0.015em;
}

.contact-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 0 40px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
}

.email-link {
  position: relative;
  z-index: 1;
  min-width: min(420px, 92vw);
}

.contact-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* flat gray glyphs beside the email box; no frame and no highlight */
.contact-icon {
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  color: var(--muted);
  background: transparent;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.wechat .contact-icon svg {
  width: 26px;
  height: 26px;
}

/* the "in" glyph fills its whole box as a solid block, while the WeChat bubbles only cover ~19px of their
   26px box and sit a little high; 18px nudged up 1px matches WeChat in size and optical centre */
.contact-icon .icon-linkedin {
  width: 18px;
  height: 18px;
  transform: translateY(-1px);
}

.contact-icon:hover,
.contact-icon:focus-visible,
.contact-icon[aria-expanded="true"] {
  opacity: 0.85;
}

.wechat {
  position: relative;
  display: flex;
}

/* the original WeChat card pops up above the button: square corners, a wide soft shadow, and a light
   aged-paper wash so the white card sits in the page; the QR itself stays sharp enough to scan */
.wechat-pop {
  position: absolute;
  bottom: calc(100% + 16px);
  left: 50%;
  z-index: 5;
  margin: 0;
  box-shadow:
    0 2px 6px -2px rgba(23, 25, 24, 0.1),
    0 26px 60px -18px rgba(23, 25, 24, 0.28);
  transform: translateX(-50%);
}

.wechat-pop[hidden] {
  display: none;
}

.wechat-pop img {
  display: block;
  width: 200px;
  height: auto;
  filter: sepia(0.06) saturate(0.95) brightness(0.99);
}

.wechat-pop::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: url("./assets/moon-tide-paper-field-v1.jpg") center / 420px auto;
  mix-blend-mode: multiply;
  opacity: 0.22;
}

.contact-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(66vw, 820px);
  aspect-ratio: 2.2 / 1;
  border: 1px solid var(--orbit-line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-9deg);
}

.contact-orbit i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.075;
  transform: translate(-50%, -50%);
}

.contact-orbit span {
  position: absolute;
  top: 6%;
  left: 22%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.edit-hint {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: var(--muted);
  font: 400 8px/1.5 var(--mono);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px 32px;
  border-top: 1px solid var(--rule);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
}

footer span:nth-child(2) { text-align: center; }
footer a { text-align: right; }

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1.1fr 0.8fr;
    gap: 38px;
  }

  .hero h1 { font-size: clamp(52px, 7.3vw, 75px); }
  .timeline li,
  .awards { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 150px; gap: 28px; }
  .project-head { grid-template-columns: minmax(0, 1.5fr) minmax(200px, 0.6fr); gap: 32px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Phones lay the page out at 1224px wide (see the viewport tag): the 1160px column plus its 32px gutters, so
   the column fills the screen. A tall portrait screen then measures ~2800 css px high, and 1vw is smaller
   than on a 1440 laptop, so the sizes that follow the viewport are pinned to what a 1440×900 desktop shows. */
@media (max-aspect-ratio: 1/1) {
  /* a portrait screen is taller than the clean part of the sheet: use a tall, mirrored copy of that clean
     part at desktop grain instead of blowing the original up */
  :root {
    --paper-size: 1440px auto;
    /* one device pixel is already as thin as a line can get at this zoom, so make the rules quieter instead */
    --rule: rgba(23, 25, 24, 0.24);
    --line: rgba(23, 25, 24, 0.16);
  }

  body::after,
  .site-header,
  .site-header::after {
    background-image:
      linear-gradient(rgba(233, 230, 223, 0.16), rgba(233, 230, 223, 0.16)),
      url("./assets/moon-tide-paper-tall.jpg");
  }

  .hero { min-height: 900px; gap: 86px; }
  /* the vertical "scroll" note lives in the side margin, which the phone layout trims away */
  .scroll-note { display: none; }
  .eyebrow { margin-bottom: 54px; }
  .hero-kicker { font-size: 15.8px; }
  .hero h1 { font-size: 86px; }
  .profile-pair {
    grid-template-columns: minmax(64px, 1fr) minmax(230px, 350px) 130px minmax(230px, 350px) minmax(64px, 1fr);
    margin-top: 99px;
  }
  .section-title-row h2 { font-size: 39px; }
  .work-heading h2 { font-size: 70.5px; }
  .project-content h3 { font-size: 43px; }
  .experience-heading { font-size: 46px; }
  .method-layout { gap: 144px; }
  .method-intro h2 { font-size: 36px; }
  .contact { min-height: 648px; }
  .contact h2 { font-size: 79px; }
  .contact-orbit { width: 820px; }
}
