/* The home page's own look: Modern Editorial.
   Near-white paper, charcoal ink, denim blue, a pale blue Point of view field.
   Instrument Sans for the positioning lines and item titles, Newsreader for
   the name and the statements, Satoshi for everything else.

   Nothing here is shared with the intro, the workshop or the admin area, so
   this file (and this folder) can be redesigned on its own. The first screen
   is the one the intro ends on, and Point of view follows the approved
   Modern Editorial source.
   Fonts are served from /home/fonts: no third party requests. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/home/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/home/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/home/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/home/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/home/fonts/newsreader.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fcfcfa;
  --ink: #1e2c36;
  --blue: #466a87;
  --muted: #596974;
  --rule: #d3dee5;
  --wash: #f0f4f6;
  --perspective-paper: #edf3f6;

  /* The dark band near the end of the page. */
  --ink-2: #2a3b47;
  --on-ink: #f3f5f6;
  --on-ink-muted: #b6c2cb;
  --on-ink-rule: rgb(243 245 246 / 0.2);
  --blue-light: #a9c3d7;

  --gutter: clamp(24px, 4.6vw, 72px);
  /* The side column and the space beside it, shared by the two lines under
     the first screen, Exploring AI and Point of view, so their writing
     starts on one line down the page. */
  --side: 240px;
  --side-gap: clamp(48px, 6.25vw, 90px);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Satoshi", Arial, sans-serif;
  --headline: "Instrument Sans", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.75, 0.3, 1);

  /* The first screen is composed like a 16:9 frame fitted inside the window,
     so it keeps one set of proportions on every landscape screen.
       --u     1% of that frame's width
       --edge  from the side of the window to the frame's left or right margin
       --mast  the height of the bar across the top */
  --u: min(1vw, 1.7778vh, 21px);
  --edge: calc((100vw - var(--u) * 100) / 2 + var(--u) * 9.375);
  --mast: calc(var(--u) * 6.9271);
}
@supports (height: 1svh) {
  :root {
    --u: min(1vw, 1.7778svh, 21px);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul {
  margin: 0;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

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

.content-width {
  width: calc(100% - var(--gutter) * 2);
  max-width: 1160px;
  margin-inline: auto;
}

.icon-set {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- masthead ---------- */

.masthead {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 104px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  padding-top: 5px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.wordmark span {
  color: var(--blue);
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.desktop-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 14px;
}
.desktop-navigation a::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s;
}
.desktop-navigation a:hover::after {
  transform: scaleX(1);
}
.desktop-navigation .nav-door {
  gap: 7px;
}
.desktop-navigation .nav-door .icon {
  font-size: 15px;
  opacity: 0.72;
}
.desktop-navigation .nav-door:hover {
  color: var(--blue);
}

.mobile-navigation {
  display: none;
}

/* ---------- the first screen ---------- */

/* This is the screen the intro ends on. On a landscape screen it is laid out
   in units of --u (see the top of this file), so it has the proportions of
   the intro's last frame at any window size and fills the window down to the
   fold. The headshot stands on the bottom edge. Narrow and tall screens stack
   the same parts instead.

   The multipliers are the reference frame's own measurements divided by 19.2,
   which is --u when the window is 1920 by 1080. 5.5208 is a 106 pixel
   headline, 41.6667 an 800 pixel headshot, and so on. At that size every part
   lands on the same pixel as in the frame. */

.masthead--cover {
  width: auto;
  max-width: none;
  min-height: var(--mast);
  margin-inline: var(--edge);
  padding-top: calc(var(--u) * 1.4583);
}
.masthead--cover .wordmark {
  padding-top: 0;
  font-size: max(30px, calc(var(--u) * 2.2917));
  letter-spacing: -0.02em;
}
.masthead--cover .desktop-navigation {
  gap: max(24px, calc(var(--u) * 2.3958));
  font-size: max(14px, calc(var(--u) * 1.0417));
  font-weight: 500;
}
.masthead--cover .desktop-navigation .nav-door .icon {
  font-size: 1.07em;
}

.profile {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--mast));
  min-height: calc(100svh - var(--mast));
  padding-inline: var(--edge);
  overflow: hidden;
  /* A rule drawn just below the fold, so the first screen itself ends clean. */
  box-shadow: 0 1px 0 var(--rule);
}

.profile-writing {
  /* Above the headshot. Not positioned, so that "Play intro" inside it can
     be placed against the first screen itself. */
  z-index: 1;
  min-width: 0;
  /* Slightly more room below than above lifts the lines a little off centre. */
  padding-block: calc(var(--u) * 2) calc(var(--u) * 6.1667);
}

.profile h1 {
  font-family: var(--headline);
  font-size: max(34px, calc(var(--u) * 5.52084));
  font-weight: 600;
  font-synthesis: none;
  line-height: 1.03;
  letter-spacing: -0.046em;
}
.profile h1 > span {
  display: block;
  white-space: nowrap;
}
.profile .blue-position {
  color: var(--blue);
}

.profile-biography {
  max-width: calc(var(--u) * 41.6667);
  margin-top: calc(var(--u) * 2.1073);
  font-family: var(--serif);
  font-size: max(19px, calc(var(--u) * 1.9792));
  line-height: 1.3;
}
/* A phrase that stays on one line: "business-to-business" would otherwise
   break after a hyphen. */
.keep {
  white-space: nowrap;
}

/* The way down the page: a solid bar, in place of a text link. */
.cta {
  display: inline-flex;
  align-items: stretch;
  min-height: 56px;
  margin-top: 30px;
  background: var(--blue);
  color: var(--paper);
  font-size: 16px;
  font-weight: 500;
  transition: background 0.22s;
}
.cta-label {
  display: flex;
  align-items: center;
  padding: 0 30px 0 24px;
}
.cta-arrow {
  display: grid;
  place-items: center;
  width: 56px;
  border-left: 1px solid rgb(252 252 250 / 0.28);
  font-size: 20px;
}
.cta-arrow .icon {
  transition: transform 0.3s var(--ease);
}
.cta:hover {
  background: var(--ink);
}
.cta:hover .cta-arrow .icon {
  transform: translateY(4px);
}
.profile .cta {
  min-height: max(52px, calc(var(--u) * 4.4271));
  margin-top: calc(var(--u) * 3.1146);
  font-size: max(15px, calc(var(--u) * 1.3021));
}
.profile .cta-label {
  padding-inline: max(22px, calc(var(--u) * 1.9792));
}
.profile .cta-arrow {
  width: max(52px, calc(var(--u) * 3.75));
  font-size: 1.2em;
}

/* Plays the intro again. Quiet, in the bottom corner of the first screen,
   across from where the intro's own "Skip intro" sits. Out of the flow, so
   the lines, the bio and the button stay where the intro's last frame has
   them. */
.replay {
  position: absolute;
  left: var(--edge);
  bottom: calc(var(--u) * 2.2);
  display: inline-flex;
  align-items: center;
  gap: 0.72em;
  min-height: 44px;
  color: var(--muted);
  font-size: max(13px, calc(var(--u) * 0.78));
  font-weight: 500;
  transition: color 0.22s;
}
.replay-mark {
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--blue);
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.replay-mark .icon {
  /* A triangle looks centred a little to the right of its box. */
  margin-left: 0.14em;
  font-size: 0.9em;
}
.replay:hover {
  color: var(--ink);
}
.replay:hover .replay-mark {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--paper);
}

.profile-portrait {
  position: absolute;
  right: calc(var(--edge) - var(--u) * 3.125);
  bottom: calc(var(--u) * -3.6458);
  width: calc(var(--u) * 41.6667);
}
.portrait-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
/* The zero-offset shadow gently deepens the pencil only. */
.profile-portrait img {
  width: 100%;
  filter: drop-shadow(0 0 0 rgb(30 44 54 / 0.14));
}

/* Narrow or tall screens: the lines, the bio and the button at the top, and
   the headshot standing on the fold at the bottom right. (On phones it is
   centered: see the 760 pixel rules further down.) */
@media (max-width: 899px), (max-aspect-ratio: 5/4) {
  :root {
    --edge: var(--gutter);
    --mast: 83px;
  }
  .masthead--cover {
    padding-top: 0;
  }
  .masthead--cover .wordmark {
    padding-top: 5px;
    font-size: 30px;
    letter-spacing: -0.04em;
  }
  .masthead--cover .desktop-navigation {
    gap: 23px;
    font-size: 14px;
    font-weight: 400;
  }
  .profile {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-writing {
    padding-block: clamp(24px, 5.6vw, 52px) 0;
  }
  .profile h1 {
    font-size: clamp(28px, min(9.4vw, 11vh), 76px);
    line-height: 1.05;
    letter-spacing: -0.042em;
  }
  .profile-biography {
    max-width: 32ch;
    margin-top: clamp(16px, 3.6vw, 28px);
    font-size: clamp(20px, min(5.4vw, 6.4vh), 34px);
  }
  .profile .cta {
    min-height: 56px;
    margin-top: clamp(22px, 5vw, 36px);
    font-size: 16px;
  }
  .profile .cta-label {
    padding: 0 30px 0 24px;
  }
  .profile .cta-arrow {
    width: 56px;
    font-size: 20px;
  }
  .replay {
    position: static;
    display: flex;
    width: fit-content;
    margin-top: 12px;
    font-size: 14px;
  }
  .profile-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: min(76vw, 50vh, 540px);
    margin: auto -3vw -5vw 0;
    padding-top: 20px;
  }
}
@media (max-width: 600px) {
  :root {
    --mast: 73px;
  }
  .masthead--cover .wordmark {
    font-size: 29px;
  }
}

/* ---------- exploring AI ---------- */

/* A personal interest, said large. The statement is set in the face of the
   three lines at the top of the page and in the blue of "AI Enthusiast.",
   because it is that line said in full. Under it, the title sits in the side
   column and the paragraph in the writing column, as in Point of view.
   This is the section straight after the first screen, whose own rule is the
   line above it. "Learn more" scrolls here, to the very top of the section
   (the negative margin takes back the page's scroll padding). */
.exploring {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: clamp(30px, 3.5vw, 48px) var(--side-gap);
  padding-block: clamp(56px, 6.2vw, 88px) clamp(64px, 7vw, 100px);
  scroll-margin-top: -32px;
}

.exploring-statement {
  grid-column: 1 / -1;
  grid-row: 1;
  font-family: var(--headline);
  font-size: clamp(36px, 4.5vw, 66px);
  font-weight: 600;
  font-synthesis: none;
  line-height: 1.03;
  letter-spacing: -0.046em;
}
.exploring-statement span + span {
  color: var(--blue);
}

.exploring-title {
  grid-column: 1;
  grid-row: 2;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.exploring-note {
  grid-column: 2;
  grid-row: 2;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* A quiet link with an arrow. The not found page uses it. */
.text-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
}
.text-link .icon {
  font-size: 17px;
  transition: transform 0.3s var(--ease);
}
.text-link:hover .icon {
  transform: translateY(3px);
}

/* ---------- point of view ---------- */

.perspective {
  background: var(--perspective-paper);
  border-block: 1px solid var(--rule);
}

.perspective-layout {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  gap: var(--side-gap);
  padding-block: 94px 101px;
}

.perspective-title {
  padding-top: 4px;
}
.perspective-title h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.perspective-intro {
  max-width: 27ch;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.perspective-writing {
  position: relative;
  min-width: 0;
}

.quote-mark {
  position: absolute;
  top: -12px;
  left: -36px;
  font-family: var(--serif);
  font-size: 70px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.35;
  pointer-events: none;
}

.perspective blockquote {
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(42px, 4.3vw, 58px);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.perspective-thought {
  display: block;
  text-wrap: balance;
}
.perspective strong {
  display: block;
  font-weight: 400;
  color: var(--blue);
}

.perspective-rule {
  width: 128px;
  height: 1px;
  margin-top: 38px;
  background: var(--rule);
}
.perspective-rule span {
  display: block;
  height: 100%;
  background: var(--blue);
  transform: scaleX(var(--rule-progress, 0.18));
  transform-origin: left;
}

/* ---------- work ---------- */

.work {
  padding-block: clamp(72px, 8vw, 118px) clamp(84px, 9.5vw, 140px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 20px 56px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.section-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.plates {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 72px clamp(28px, 3.6vw, 52px);
  padding: 0;
  list-style: none;
}

.plate {
  position: relative;
  grid-column: span 7;
}
.plate:nth-child(even) {
  grid-column: span 5;
  margin-top: clamp(64px, 9vw, 132px);
}
/* A plate left on its own row takes the full width. */
.plate:last-child:nth-child(odd) {
  grid-column: span 12;
}

.plate-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--wash);
}
.plate-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.plate-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(30 44 54 / 0.1);
  pointer-events: none;
}
.plate:hover .plate-art img,
.plate:focus-within .plate-art img {
  transform: scale(1.035);
}

/* A plate with no picture yet: its initials, set large. */
.plate-monogram {
  position: absolute;
  left: 0.06em;
  bottom: -0.22em;
  font-family: var(--serif);
  font-size: clamp(150px, 20vw, 300px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgb(70 106 135 / 0.2);
  white-space: nowrap;
  pointer-events: none;
}

.plate-go {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--ink);
  color: var(--paper);
  font-size: 22px;
  transition: background 0.25s;
}
.plate-go .icon {
  transition: transform 0.3s var(--ease);
}
.plate:hover .plate-go,
.plate:focus-within .plate-go {
  background: var(--blue);
}
.plate:hover .plate-go .icon,
.plate:focus-within .plate-go .icon {
  transform: translate(3px, -3px);
}

.plate-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--blue);
}
.plate-status {
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
}

.plate-title {
  margin-top: 8px;
  font-family: var(--headline);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  word-spacing: 0.06em;
}
/* The title is the link, stretched over the whole plate. */
.plate-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.plate-title a:focus-visible {
  outline: none;
}
.plate:focus-within .plate-art {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.plate-synopsis {
  max-width: 48ch;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- available in the workshop ---------- */

/* With data-plate-label on the work section a plate is a picture and its
   words, and nothing more. The label sits quietly in the picture's top left
   corner, the title is not a link, and nothing moves on hover. The rules
   above for the arrow, the status and the stretched link are for plates
   that open, and come back into use when the attribute is removed. */
.plate-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.work[data-plate-label] .plate:hover .plate-art img,
.work[data-plate-label] .plate:focus-within .plate-art img {
  transform: none;
}

/* ---------- the workshop door ---------- */

.door {
  background: var(--ink);
  color: var(--on-ink);
}
.door a:focus-visible {
  outline-color: var(--blue-light);
}
.door ::selection {
  background: var(--blue-light);
  color: var(--ink);
}

.door-inner {
  padding-block: clamp(76px, 8.4vw, 120px) clamp(76px, 8.4vw, 116px);
}

.door-lead {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: start;
}
.door-lead h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.door-note {
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-ink-muted);
}

.door-tag {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.door-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 32px;
}

.door-enter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-height: 56px;
  padding: 0 20px 0 24px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: background 0.22s;
}
.door-enter .icon {
  font-size: 18px;
}
.door-enter:hover {
  background: var(--blue-light);
}

.door-request {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--on-ink-rule);
  font-size: 15px;
  transition: border-color 0.22s;
}
.door-request:hover {
  border-bottom-color: var(--on-ink);
}

/* By invitation only: one line, standing on the baseline of the heading.
   The note, the tag line and the request link above are for an open door,
   and come back into use with it. */
.door[data-door="invitation"] .door-lead {
  align-items: baseline;
}
.door-only {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

/* ---------- contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
}

.contact-figure {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(48vw, 720px);
  pointer-events: none;
}
/* The picture fades into the page on its left and bottom edges. */
.contact-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 55%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to top, transparent 0, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 40%), linear-gradient(to top, transparent 0, #000 24%);
  mask-composite: intersect;
}

.contact-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(520px, 50vw, 700px);
  padding-block: clamp(84px, 10vw, 148px) clamp(64px, 7vw, 104px);
}

.contact h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-lead {
  max-width: 34ch;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.availability {
  display: inline-block;
  margin-top: 20px;
  padding: 9px 16px 9px 14px;
  border-left: 3px solid var(--blue);
  background: var(--wash);
  font-size: 15px;
  line-height: 1.5;
}

.contact-list {
  max-width: min(580px, 58%);
  margin-top: 44px;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 6px 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-kind {
  font-size: 14px;
  color: var(--blue);
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.contact-link {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 0.22s, text-decoration-color 0.22s;
}
.contact-link:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.22s, border-color 0.22s;
}
.copy-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.copy-button:focus-visible {
  outline-offset: 3px;
}

.copy-status {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- sign-off ---------- */

.signoff {
  overflow: hidden;
}

.signoff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}

.signoff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.back-to-top {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  font-size: 18px;
  transition: background 0.22s;
}
.back-to-top:hover {
  background: var(--wash);
}

/* The name, set exactly as wide as the column above it. The size is tied
   to the column's own width, so it fits at every screen size. */
.signoff-fit {
  container-type: inline-size;
  padding-bottom: clamp(18px, 2.6vw, 40px);
}
.signoff-name {
  margin: clamp(2px, 1vw, 14px) 0 0 -0.035em;
  font-family: var(--serif);
  font-size: 19vw;
  font-size: 23.5cqw;
  line-height: 0.86;
  letter-spacing: -0.055em;
  white-space: nowrap;
  user-select: none;
}
.signoff-name span {
  color: var(--blue);
}

/* ---------- the not found page ---------- */

.lost {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100dvh - 105px);
  padding-block: 64px 96px;
}
.lost-code {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
}
.lost h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.045em;
}
.lost-text {
  max-width: 44ch;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}
.lost-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 34px;
}
.lost-actions .cta {
  margin-top: 0;
}
.lost-actions .cta:hover .cta-arrow .icon {
  transform: translateX(4px);
}

/* ---------- motion ---------- */

/* A deliberate, one-time sequence: the three positioning lines arrive. */
@media (prefers-reduced-motion: no-preference) {
  .profile h1 > span {
    animation: headline-arrive 760ms var(--ease) 180ms backwards;
  }
  .profile h1 > span:nth-child(2) {
    animation-delay: 400ms;
  }
  .profile h1 > span:nth-child(3) {
    animation-delay: 620ms;
  }
  @keyframes headline-arrive {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Plates rise into place as they come into view. Only when the page's
     script is running, so nothing is ever left hidden without it. */
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js .reveal:nth-child(2) {
    transition-delay: 0.12s;
  }
  .js .reveal:nth-child(3) {
    transition-delay: 0.24s;
  }
}

/* ---------- wider and narrower screens ---------- */


@media (max-width: 1080px) {
  :root {
    --side: 195px;
    --side-gap: 52px;
  }

  .exploring-title {
    font-size: 26px;
  }
  .exploring-note {
    font-size: 18px;
  }

  .perspective-layout {
    padding-block: 77px 84px;
  }
  .perspective-intro {
    font-size: 16px;
  }
  .perspective blockquote {
    font-size: clamp(39px, 4.5vw, 48px);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 25px;
  }

  /* Phones: the headshot stands on the fold in the middle of the screen,
     rather than at the bottom right as on wider screens. */
  .profile-portrait {
    align-self: center;
    margin-right: 0;
  }

  .masthead {
    min-height: 83px;
  }
  .wordmark {
    font-size: 30px;
  }
  .desktop-navigation {
    gap: 23px;
  }

  /* One column: the statement, then the title, then the paragraph. */
  .exploring {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-block: 44px 50px;
  }
  .exploring-title {
    grid-column: 1;
    grid-row: 2;
    margin-top: 26px;
    padding-top: 0;
  }
  .exploring-note {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
    font-size: 17px;
  }
  .text-link {
    align-self: auto;
  }

  .perspective-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 62px 68px;
  }
  .perspective-title {
    padding: 0;
  }
  .perspective-title h2 {
    font-size: 26px;
  }
  .quote-mark {
    top: -7px;
    left: -21px;
    font-size: 44px;
  }
  .perspective blockquote {
    max-width: 29ch;
    font-size: 44px;
  }
  .perspective-intro {
    max-width: 49ch;
    margin-top: 19px;
    font-size: 17px;
    line-height: 1.65;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .plates {
    gap: 52px 0;
  }
  .plate,
  .plate:nth-child(even),
  .plate:last-child:nth-child(odd) {
    grid-column: span 12;
    margin-top: 0;
  }

  .door-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact {
    display: flex;
    flex-direction: column-reverse;
  }
  .contact-figure {
    position: relative;
    width: 100%;
    height: 300px;
  }
  .contact-figure img {
    object-position: 30% 62%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%), linear-gradient(to top, transparent 0, #000 20%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 34%), linear-gradient(to top, transparent 0, #000 20%);
  }
  .contact-inner {
    min-height: 0;
    padding-block: 64px 12px;
  }
  .contact-list {
    max-width: 580px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 24px;
  }

  .masthead {
    min-height: 73px;
  }
  .wordmark {
    font-size: 29px;
  }
  .desktop-navigation {
    display: none;
  }

  .mobile-navigation {
    display: block;
  }
  .mobile-navigation summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    list-style: none;
    cursor: pointer;
  }
  .mobile-navigation summary::-webkit-details-marker {
    display: none;
  }
  .mobile-navigation summary span {
    width: 23px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .mobile-navigation[open] summary span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .mobile-navigation[open] summary span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .mobile-navigation nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 13px 23px 17px;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 16px 30px rgb(30 44 54 / 0.06);
  }
  .mobile-navigation nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 49px;
    padding: 10px 0;
    font-size: 16px;
  }
  .mobile-navigation .icon {
    font-size: 17px;
    opacity: 0.72;
  }
  .mobile-navigation nav a:last-child {
    margin-top: 4px;
    border-top: 1px solid var(--rule);
    font-size: 14px;
    color: var(--blue);
  }

  .cta {
    margin-top: 24px;
  }

  .exploring {
    padding-block: 38px 42px;
  }
  .exploring-statement {
    font-size: clamp(28px, 9.6vw, 40px);
    line-height: 1.05;
  }
  .exploring-statement span {
    display: block;
  }
  .exploring-title {
    margin-top: 22px;
    font-size: 24px;
  }
  .exploring-note {
    font-size: 16px;
  }

  .perspective-layout {
    gap: 32px;
    padding-block: 53px 60px;
  }
  .perspective-intro {
    max-width: 36ch;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.65;
  }
  .perspective blockquote {
    max-width: 100%;
    font-size: clamp(34px, 9.25vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }
  .perspective-rule {
    width: 98px;
    margin-top: 29px;
  }

  .work {
    padding-block: 56px 68px;
  }
  .section-head p {
    font-size: 16px;
  }
  .plate-go {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }
  .plate-meta {
    margin-top: 18px;
  }

  .door-inner {
    padding-block: 60px 64px;
  }
  .door-note {
    font-size: 17px;
  }
  .door-tag,
  .door-only {
    font-size: 21px;
  }
  .door-enter {
    width: 100%;
  }

  .contact-inner {
    padding-block: 56px 8px;
  }
  .contact-list {
    margin-top: 34px;
  }
  .contact-list li {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 0 18px;
  }
  .contact-figure {
    height: 250px;
  }

  .signoff-row {
    align-items: flex-start;
    padding-block: 20px;
  }
  .signoff-meta {
    flex-direction: column;
    gap: 2px;
  }

  .lost {
    min-height: calc(100dvh - 74px);
    padding-block: 40px 72px;
  }
}

@media (max-width: 374px) {
  :root {
    --gutter: 21px;
  }
  .cta-label {
    padding: 0 22px 0 20px;
  }
  .perspective blockquote {
    font-size: 34px;
  }
  .contact-link {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .perspective-rule span {
    transform: scaleX(1) !important;
  }
}
