/* Monument Grotesk: licensed webfonts (Dinamo order 2021-534228).
   Concrette: trial files installed on this Mac; needs a web licence before launch. */
@font-face { font-family: "Monument"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/ABCMonumentGrotesk-Light.woff2") format("woff2"); }
@font-face { font-family: "Monument"; font-weight: 300; font-style: italic; font-display: swap; src: url("fonts/ABCMonumentGrotesk-LightItalic.woff2") format("woff2"); }
@font-face { font-family: "Monument"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ABCMonumentGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Monument"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ABCMonumentGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Concrette"; font-weight: 300; font-style: normal; src: local("ConcretteMTRIAL-Light"), local("Concrette M TRIAL Light"); }
@font-face { font-family: "Concrette"; font-weight: 300; font-style: italic; src: local("ConcretteMTRIAL-LightItalic"), local("Concrette M TRIAL Light Italic"); }

:root {
  --ink: #303030;
  --paper: #f7f6f2;
  --bg: var(--paper);
  --fg: var(--ink);
  --serif: "Concrette", Georgia, "Times New Roman", serif;
  --sans: "Monument", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --soft: cubic-bezier(.4, 0, .2, 1);
}
/* The page dims for "Where do you find yourself?" */
html.dark { --bg: var(--ink); --fg: var(--paper); }
/* Prototype switch: set display type in Monument instead of Concrette. */
html.mono { --serif: "Monument", "Helvetica Neue", Helvetica, Arial, sans-serif; }
html.mono h1, html.mono h2, html.mono .close-link { letter-spacing: -.035em; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color 1.6s var(--soft), color 1.6s var(--soft);
  overflow-x: clip;
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: color-mix(in srgb, currentColor 55%, transparent); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, currentColor 55%, transparent);
  margin-bottom: clamp(36px, 6vh, 64px);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Living layer: slow light under the page, grain over it ---------- */
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
/* Colours from the logo file's gradient: rose, sand, lilac. */
.glow.g1 { width: 80vmax; height: 80vmax; background: radial-gradient(closest-side, rgba(229, 200, 196, .55), rgba(229, 200, 196, 0)); }
.glow.g2 { width: 66vmax; height: 66vmax; background: radial-gradient(closest-side, rgba(194, 165, 199, .26), rgba(194, 165, 199, 0)); }
html.dark .glow.g1 { opacity: .5; }
.glow { transition: opacity 1.6s var(--soft); }
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 1.6s var(--soft);
}
html.dark .grain { filter: invert(1); mix-blend-mode: screen; opacity: .06; }

/* ---------- Surfacing: things come into focus ---------- */
@keyframes surface { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.js .surface {
  opacity: 0; transform: translateY(18px); filter: blur(8px);
  transition: opacity 1.3s var(--soft), transform 1.6s var(--ease), filter 1.3s var(--soft);
}
.js .surface.in { opacity: 1; transform: none; filter: blur(0); }
.w { display: inline-block; }
.words .w {
  opacity: 0; filter: blur(8px); transform: translateY(.22em);
  animation: surface 1.4s var(--ease) forwards; animation-delay: calc(var(--i) * 38ms);
}

/* ---------- Nav ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: #fff; mix-blend-mode: difference; }
.site-nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 84px; }
.logo { display: block; line-height: 0; }
.logo svg { width: 118px; height: auto; display: block; }
.nav-links { display: flex; gap: 32px; font-size: 13px; }
.nav-links a { opacity: .7; transition: opacity .4s; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; }

/* ---------- Arrow link ---------- */
.arrow-link { display: inline-flex; align-items: baseline; gap: .5em; font-size: 15px; }
.arrow-link .t {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .8s var(--ease);
}
.arrow-link:hover .t { background-size: 0 1px; background-position: 100% 100%; }
.arr { display: inline-block; transition: transform .8s var(--ease); }
.arrow-link:hover .arr, .close-link:hover .arr { transform: translateX(.3em); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: 140px; padding-bottom: clamp(56px, 10vh, 120px);
}
.hero .label { margin-bottom: clamp(28px, 5vh, 48px); }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 5.5vw, 92px); line-height: 1.07; letter-spacing: -.022em;
  max-width: 19ch;
}
h1 em, h2 em { font-style: italic; }
.intro h1:not(.split) { opacity: 0; }
.hero h1.words .w { animation-duration: 1.8s; animation-delay: calc(var(--i) * 75ms + 200ms); }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 28px 56px;
  margin-top: clamp(40px, 7vh, 80px); max-width: 1100px;
}
.hero-sub { max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); }
.intro .hero .after { opacity: 0; animation: fade 1.6s var(--soft) forwards; animation-delay: 1.5s; }

/* ---------- Sections ---------- */
section { padding: clamp(96px, 15vh, 190px) 0; position: relative; }
h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 4.4vw, 72px); line-height: 1.06; letter-spacing: -.02em; max-width: 20ch;
}

/* ---------- Form ---------- */
.gap-line { font-size: clamp(32px, 4.3vw, 76px); max-width: none; }
.gap-line span { display: block; will-change: transform; text-wrap: balance; }
.beats { margin-top: clamp(72px, 12vh, 140px); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px var(--gutter); align-items: end; }
.beat-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .34em; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.15; letter-spacing: -.015em; }
.beat { position: relative; white-space: nowrap; color: color-mix(in srgb, currentColor 34%, transparent); transition: color .9s var(--soft); }
.beat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.beat:hover { color: color-mix(in srgb, currentColor 70%, transparent); }
.beat.sel { color: var(--fg); }
.beat.sel::after { transform: scaleX(1); }
.plus { color: color-mix(in srgb, currentColor 34%, transparent); font-size: .7em; }
.beat-out { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; max-width: 30ch; min-height: 3em; transition: opacity .3s var(--soft); }

/* ---------- Practice ---------- */
.practice .intro-line { margin-top: 20px; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); }
.svc-list { list-style: none; margin-top: clamp(56px, 9vh, 104px); }
.svc {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 16px var(--gutter);
  align-items: baseline; padding: clamp(26px, 4vh, 40px) 0;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.svc:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.svc h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.1; letter-spacing: -.012em; transition: transform 1.1s var(--ease); }
.svc p { color: color-mix(in srgb, currentColor 58%, transparent); max-width: 36ch; transition: color .8s var(--soft); }
.svc .plus { font-family: var(--serif); font-size: 26px; transition: transform 1.1s var(--ease), color .8s var(--soft); }
.svc:hover::before { transform: scaleX(1); }
.svc:hover h3 { transform: translateX(.4em); }
.svc:hover p { color: var(--fg); }
.svc:hover .plus { transform: rotate(90deg); color: var(--fg); }

/* ---------- Tags ---------- */
.tags { min-height: 100svh; display: flex; align-items: center; }
.tags .wrap { width: 100%; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(44px, 7vh, 72px); max-width: 980px; }
.tag {
  font-size: 15px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: background-color .6s var(--soft), color .6s var(--soft), border-color .6s var(--soft);
}
.tag:hover { border-color: currentColor; }
.tag[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag.agency { margin-left: 18px; position: relative; }
.tag.agency::before {
  content: ""; position: absolute; left: -15px; top: 20%; bottom: 20%; width: 1px;
  background: color-mix(in srgb, currentColor 22%, transparent);
}
.tag-reply { margin-top: clamp(48px, 8vh, 88px); min-height: 10.5em; }
.reply-text { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.8vw, 62px); line-height: 1.1; letter-spacing: -.018em; max-width: 21ch; }
.reply-text.placeholder { color: color-mix(in srgb, currentColor 40%, transparent); }
.tag-reply .arrow-link { margin-top: 28px; opacity: 0; pointer-events: none; transition: opacity .8s var(--soft) .5s; }
.tag-reply.has-sel .arrow-link { opacity: 1; pointer-events: auto; }

/* ---------- Selected work ---------- */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 56px; }
.work-note { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, currentColor 50%, transparent); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vh, 96px) clamp(24px, 3.4vw, 56px); margin-top: clamp(56px, 9vh, 104px); }
.work-item:nth-child(even) { margin-top: clamp(80px, 16vh, 200px); }
.work-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; isolation: isolate; }
.art-layer { position: absolute; inset: -6%; transition: transform 2.4s var(--ease); }
.work-item:hover .art-layer { transform: scale(1.05) translate3d(-1.5%, -1%, 0); }
.art-name { position: absolute; left: 7%; bottom: 6%; z-index: 1; font-size: clamp(22px, 2.4vw, 38px); line-height: 1; transition: transform 1.6s var(--ease); }
.work-item:hover .art-name { transform: translateY(-6px); }
.work-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-top: 20px; }
.work-meta h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 1.9vw, 30px); letter-spacing: -.01em; }
.work-meta span { font-size: 13px; color: color-mix(in srgb, currentColor 55%, transparent); }
.work-line { margin-top: 10px; max-width: 40ch; color: color-mix(in srgb, currentColor 70%, transparent); }

/* Placeholder art direction, one quiet world per project */
.art-halden .art-layer { background: linear-gradient(180deg, #b9a0bf 0%, #d9c1c8 42%, #efdcd6 63%, #f6ebe4 100%); }
.art-halden .art-layer::after { content: ""; position: absolute; left: 0; right: 0; top: 61%; height: 1px; background: rgba(255, 255, 255, .7); }
.art-halden .art-layer::before { content: ""; position: absolute; width: 34%; aspect-ratio: 1; left: 33%; top: 44%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 246, 238, .95), rgba(255, 246, 238, 0)); }
.art-halden .art-name { color: #fff; font-weight: 300; letter-spacing: -.02em; }

.art-quillon .art-layer { background: radial-gradient(circle, rgba(48, 48, 48, .32) 1px, transparent 1.6px) 0 0 / 22px 22px, #ecebe6; }
.art-quillon .art-layer::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; right: 22%; top: 26%; background: #2e2eff; }
.art-quillon .art-name { color: var(--ink); font-weight: 500; letter-spacing: -.03em; }

.art-ondine .art-layer { background: #252423; }
.art-ondine .art-layer::after {
  content: ""; position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 16%; border-radius: 50%;
  background: radial-gradient(circle, #252423 0 9%, rgba(229, 200, 196, .9) 9.5% 10.5%, #2d2b2a 11% 46%, rgba(229, 200, 196, .35) 47%, rgba(229, 200, 196, 0) 70%);
}
.art-ondine .art-name { color: #f3dfdf; font-family: "Concrette", Georgia, serif; font-style: italic; font-weight: 300; }

.art-marrow .art-layer { background: radial-gradient(60% 45% at 35% 40%, rgba(120, 128, 88, .55), rgba(120, 128, 88, 0)), radial-gradient(50% 40% at 70% 70%, rgba(176, 150, 120, .6), rgba(176, 150, 120, 0)), #d8c9b8; }
.art-marrow .art-name { color: #2f2c26; font-family: "Concrette", Georgia, serif; font-weight: 300; }

/* ---------- Close ---------- */
.close { padding-bottom: clamp(100px, 16vh, 180px); }
.close-link { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.6vw, 112px); line-height: 1.04; letter-spacing: -.024em; max-width: 15ch; }
.close-link .t { background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat; transition: background-size 1.1s var(--ease); }
.close-link:hover .t { background-size: 100% 1px; }
.carry { margin-top: 28px; font-size: 14px; min-height: 1.5em; }

/* ---------- Footer ---------- */
footer { padding: 48px 0 40px; font-size: 13px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 56px; }
.foot-top p { max-width: 46ch; font-size: 15px; }
.foot-links { display: flex; gap: 28px; }
.foot-links a { opacity: .6; transition: opacity .4s; }
.foot-links a:hover { opacity: 1; }
.legal { margin-top: 48px; color: color-mix(in srgb, currentColor 50%, transparent); }

/* The mirror: the wordmark and its reflection, moving like water. */
.mirror { margin-top: clamp(72px, 12vh, 140px); line-height: 0; }
.mirror svg { display: block; width: 100%; height: auto; }
.mirror .reflection {
  transform: scaleY(-1); margin-top: 6px; opacity: .2;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
}

/* Prototype type switch */
.type-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; font-size: 11px; letter-spacing: .06em;
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
.type-switch button { padding: 6px 12px; border-radius: 999px; opacity: .55; transition: opacity .3s, background-color .3s; }
.type-switch button[aria-pressed="true"] { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }

/* ---------- Contact ---------- */
.contact { min-height: 100svh; padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(80px, 12vh, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(40px, 8vw, 140px); }
.contact h1 { font-size: clamp(56px, 8vw, 132px); line-height: 1; }
.contact-intro .lede { margin-top: 28px; font-size: clamp(17px, 1.4vw, 21px); }
.contact-intro .meta { margin-top: 48px; display: grid; gap: 6px; font-size: 15px; }
.topic { border: 0; margin-bottom: 40px; }
.topic legend, .field span { display: block; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: color-mix(in srgb, currentColor 55%, transparent); margin-bottom: 14px; }
.seg { display: inline-flex; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span {
  display: inline-block; cursor: pointer; font-size: 15px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  transition: background-color .5s var(--soft), color .5s var(--soft), border-color .5s var(--soft);
}
.seg label:hover span { border-color: currentColor; }
.seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 1px solid currentColor; outline-offset: 4px; }
.carried { display: flex; align-items: center; gap: 10px; margin: -22px 0 40px; font-size: 14px; color: color-mix(in srgb, currentColor 62%, transparent); }
.carried b { font-weight: 400; color: var(--fg); }
.carried button { font-size: 16px; line-height: 1; opacity: .5; transition: opacity .3s; padding: 2px 4px; }
.carried button:hover { opacity: 1; }
.field { display: block; position: relative; margin-bottom: 36px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 19px; color: inherit; background: transparent;
  border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 0; padding: 8px 0 12px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.form-end { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-end .arrow-link { font-size: 17px; }
.sent h2 { font-size: clamp(36px, 4.4vw, 64px); }
.sent p { margin-top: 20px; max-width: 36ch; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 22px; }
  .beats, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .work-item:nth-child(even) { margin-top: 0; }
  .svc { grid-template-columns: minmax(0, 1fr) auto; }
  .svc p { grid-column: 1 / -1; grid-row: 2; }
  .tag { font-size: 14px; padding: 10px 16px; }
  .tag.agency { margin-left: 0; }
  .tag.agency::before { display: none; }
  .agency-item { flex-basis: 100%; padding-top: 10px; margin-top: 6px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
  .tag-reply { min-height: 12em; }
  .glow.g1 { width: 120vmax; height: 120vmax; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .surface, .words .w { opacity: 1; transform: none; filter: none; }
}
