/* ==========================================================================
   Michela Mancino · Presenza
   Off-white air, warm taupe haze, one light display serif, hairline rows.
   Burgundy only for the call to action and the closing field.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("assets/fonts/atkinson-next-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --black: #070604;
  --burgundy: #480E1D;
  --burgundy-lift: #5E1527;
  --offwhite: #F2F4F3;
  --taupe: #AA907F;
  --brown: #5D503F;

  /* derived */
  --rule: rgba(7, 6, 4, 0.5);
  --rule-soft: rgba(7, 6, 4, 0.14);
  --on-dark-soft: #D9C7BC;
  --on-dark-rule: rgba(242, 244, 243, 0.3);

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-body: "Atkinson Next", "Segoe UI", Verdana, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --top-h: 88px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wipe: cubic-bezier(0.25, 1, 0.4, 1);
  --mask-wipe: linear-gradient(90deg, #000 44%, transparent 56%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--brown) var(--offwhite);
}

/* the ground lives on body only, so the hazes (z-index -1) sit above it */
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--black);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; text-wrap: balance; }
p { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, figure { margin: 0; }
address { font-style: normal; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }

::selection { background: var(--burgundy); color: var(--offwhite); }
.contact ::selection, .foot ::selection { background: var(--offwhite); color: var(--burgundy); }

:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 4px; border-radius: 2px; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--offwhite); }

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

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--burgundy); color: var(--offwhite);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--sm { width: 1em; height: 1em; }

/* ---------- shared atoms ---------- */
.label {
  font: 700 0.875rem/1.3 var(--f-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.display {
  font: 300 clamp(2.75rem, 6vw, 5.25rem)/1 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.022em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.8em 1.5em 0.8em 1.25em;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--offwhite);
  font: 600 1.0625rem/1.1 var(--f-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), scale 0.2s var(--ease-out);
}
.pill .ico { transition: rotate 0.45s var(--ease-out); }
.pill:hover { background: var(--burgundy-lift); box-shadow: 0 12px 26px -14px rgba(72, 14, 29, 0.85); }
.pill:active { scale: 0.97; transition-duration: 0.35s, 0.35s, 0.08s; }
.pill:hover .ico { rotate: -12deg; }
.pill--ghost { background: var(--offwhite); color: var(--black); box-shadow: inset 0 0 0 1px var(--rule); }
.pill--ghost:hover { background: var(--offwhite); box-shadow: inset 0 0 0 1px var(--black); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  transition: text-decoration-color 0.3s ease;
}
.textlink:hover { text-decoration-color: currentColor; }
.textlink--arrow .ico { transition: translate 0.4s var(--ease-out); }
.textlink--arrow:hover .ico { translate: 2px -2px; }

.tag {
  display: inline-block;
  padding: 0.3em 0.9em 0.32em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font: 600 0.875rem/1.2 var(--f-body);
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: 0.25em;
}
.tag--accent { color: var(--burgundy); box-shadow: inset 0 0 0 1px currentColor; }
.tag--ico { display: inline-flex; align-items: center; gap: 0.45em; padding-left: 0.75em; vertical-align: baseline; }
.tag--ico .ico { color: var(--brown); }

.rows { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.row { border-bottom: 1px solid var(--rule); }

/* ---------- haze: the one atmospheric material ---------- */
.haze {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  aspect-ratio: 1;
  translate: 0 var(--drift, 0px);
}
.haze--warm {
  width: min(1180px, 96vw);
  right: max(-18vw, -300px);
  top: 6%;
  background: radial-gradient(closest-side, rgba(170, 144, 127, 0.8), rgba(170, 144, 127, 0.52) 38%, rgba(170, 144, 127, 0.18) 72%, rgba(170, 144, 127, 0));
  filter: blur(18px);
}
.haze--shade {
  width: min(720px, 70vw);
  left: max(-26vw, -340px);
  top: -8%;
  background: radial-gradient(closest-side, rgba(93, 80, 63, 0.2), rgba(93, 80, 63, 0));
  filter: blur(10px);
}
.haze--low {
  width: min(920px, 92vw);
  left: max(-32vw, -400px);
  top: 12%;
  background: radial-gradient(closest-side, rgba(170, 144, 127, 0.36), rgba(170, 144, 127, 0));
  filter: blur(14px);
}
.haze--glow {
  width: min(1100px, 120vw);
  right: -22%;
  top: -48%;
  background: radial-gradient(closest-side, rgba(170, 144, 127, 0.36), rgba(170, 144, 127, 0));
  filter: blur(16px);
}
.haze--svc {
  width: min(860px, 90vw);
  right: max(-14vw, -220px);
  top: -14%;
  background: radial-gradient(closest-side, rgba(170, 144, 127, 0.42), rgba(170, 144, 127, 0.14) 62%, rgba(170, 144, 127, 0));
  filter: blur(16px);
}

/* ---------- top bar ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--top-h);
}
.brand {
  padding-block: 12px;
  font: 700 1.1875rem/1 var(--f-body);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav--wide ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav--wide a {
  display: block;
  padding-block: 10px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.4em;
  transition: text-decoration-color 0.3s ease;
}
.nav--wide a:hover, .nav--wide a[aria-current] { text-decoration-color: currentColor; }

/* one hairline travels between links (main.js); the hover underline steps aside for it */
.nav--wide { position: relative; }
.nav--wide.has-line a:hover { text-decoration-color: transparent; }
.nav__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  background: currentColor;
  transform-origin: 0 50%;
  translate: var(--lx, 0) var(--ly, 0);
  scale: var(--lw, 0) 1;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.5s var(--ease-out), scale 0.5s var(--ease-out), opacity 0.25s ease;
}
.nav__line.is-on { opacity: 1; }
.nav__line.is-snap { transition: opacity 0.25s ease; }

.nav--menu { display: none; position: relative; }
.nav--menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.nav--menu summary::-webkit-details-marker { display: none; }
.nav--menu[open] summary { background: var(--black); color: var(--offwhite); box-shadow: none; }
.nav--menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 16rem;
  padding: 0.5rem;
  border-radius: 24px;
  background: var(--offwhite);
  box-shadow: 0 22px 44px -20px rgba(7, 6, 4, 0.45), inset 0 0 0 1px var(--rule-soft);
}
.nav--menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 1.0625rem;
  text-decoration: none;
}
.nav--menu a:hover { background: rgba(170, 144, 127, 0.2); }

/* ---------- hero: the name, the portrait, the orbit ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(620px, 100svh);
  padding-top: var(--top-h);
  padding-bottom: clamp(24px, 4vh, 48px);
  overflow-x: clip; /* hazes bleed down into the next section, never sideways */
}

.wrap--hero {
  margin-block: auto;
  container-type: inline-size;
}

/* every measure is a share of the stage width, so the composition holds at any size */
.stage {
  --fs: 19cqw;
  --cap-x: 30cqw;
  --cap-y: 17cqw;
  --cap-w: 44cqw;
  --first-x: 0cqw;
  --first-base: 22cqw;
  --last-x: auto;
  --last-right: 0cqw;
  --last-base: 87cqw;
  --badge-x: 0cqw;
  --badge-y: 40cqw;
  --badge-d: 25cqw;
  --intro-top: 94cqw;
  --intro-w: 100%;
  --orbit-stroke: 0.9;
  position: relative;
  min-height: calc(var(--last-base) + 4cqw);
}

.name {
  font: 300 var(--fs)/1 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.025em;
}
.name__word { position: absolute; z-index: 4; white-space: nowrap; }
.name__word--first { left: var(--first-x); top: calc(var(--first-base) - var(--fs) * 0.735); }
.name__word--last {
  left: var(--last-x);
  right: var(--last-right);
  top: calc(var(--last-base) - var(--fs) * 0.735);
}

.portrait {
  position: absolute;
  z-index: 2;
  left: var(--cap-x);
  top: var(--cap-y);
  width: var(--cap-w);
  aspect-ratio: 1 / 1.52;
  overflow: hidden;
  border-radius: 999px;
  background: var(--taupe);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.orbit {
  position: absolute;
  left: calc(var(--cap-x) - var(--cap-w) * 0.2);
  top: calc(var(--cap-y) + var(--cap-w) * 0.764);
  width: calc(var(--cap-w) * 1.4);
  height: calc(var(--cap-w) * 0.448);
  overflow: visible;
  rotate: 8deg;
  fill: none;
  stroke: var(--taupe);
  stroke-width: var(--orbit-stroke);
}
.orbit--back { z-index: 1; }
.orbit--front { z-index: 3; }

.badge {
  position: absolute;
  z-index: 4;
  left: var(--badge-x);
  top: var(--badge-y);
  display: grid;
  place-items: center;
  width: var(--badge-d);
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--black);
  text-decoration: none;
}
.badge > svg { grid-area: 1 / 1; }
.badge__ring { width: 100%; height: 100%; rotate: var(--spin, 0deg); }
.badge__ring text {
  font: 400 10.5px/1 var(--f-display);
  font-variation-settings: "opsz" 12;
  fill: currentColor;
}
.badge__arrow {
  width: 26%;
  height: 26%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: translate 0.4s var(--ease-out);
}
.badge:hover .badge__arrow { translate: 0 3px; }

.intro {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0.9rem;
  max-width: var(--intro-w);
  padding-top: var(--intro-top);
}
.intro__role { font-weight: 700; }
.intro__areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: -0.15rem; }
.intro__areas .tag { vertical-align: baseline; }
.intro__lede { max-width: 40ch; }
.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin-top: 0.4rem;
}.intro__albo { display: flex; align-items: center; gap: 0.55em; color: var(--brown); font-size: 0.9375rem; }
.intro__albo .ico { width: 1.35em; height: 1.35em; stroke-width: 1.4; }

@container (min-width: 900px) {
  .stage {
    --fs: 12cqw;
    --cap-x: 37cqw;
    --cap-y: 4cqw;
    --cap-w: 24cqw;
    --first-x: 1cqw;
    --first-base: 17.9cqw;
    --last-x: 51cqw;
    --last-right: auto;
    --last-base: 42cqw;
    --badge-x: 86cqw;
    --badge-y: 7cqw;
    --badge-d: clamp(104px, 10cqw, 140px);
    --intro-top: 25cqw;
    --intro-w: 31cqw;
    --orbit-stroke: 0.62;
    min-height: 46cqw;
  }
}

/* ---------- titoli: the proof strip under the hero ---------- */
.creds { padding-top: clamp(0.5rem, 2vw, 1.5rem); }
.creds__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}
.cred {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem) clamp(1rem, 2.2vw, 2.25rem);
}
.cred:first-child { padding-left: 0; }
.cred + .cred { border-left: 1px solid var(--rule-soft); }
.cred__v {
  font: 400 clamp(1.375rem, 1.9vw, 1.75rem)/1.12 var(--f-display);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.cred__k { max-width: 30ch; color: var(--brown); font-size: 0.9375rem; line-height: 1.45; }

/* ---------- profilo ---------- */
.approach { padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 9vw, 8rem); }
.approach__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 40px);
  row-gap: 2.5rem;
}
.approach .display { grid-column: 1 / span 8; }
.approach__text { grid-column: 7 / -1; display: grid; gap: 1.25rem; max-width: 34rem; }
.lead {
  font: 400 clamp(1.375rem, 2.1vw, 1.75rem)/1.38 var(--f-display);
  letter-spacing: -0.005em;
}

/* ---------- servizi ---------- */
.services { position: relative; overflow-x: clip; padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 9rem); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
}
.svc__name {
  font: 300 clamp(2.25rem, 4.6vw, 4.25rem)/1.04 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
}
.svc__body { display: grid; gap: 1rem; padding-top: 0.4rem; font-size: 1rem; }
.svc__meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.6rem 1.25rem;
  align-items: baseline;
}
.svc__meta > div { display: contents; }
.svc__meta dt {
  color: var(--brown);
  font: 700 0.8125rem/1.3 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.svc__meta dd { font-size: 0.9375rem; }

/* ---------- come si inizia ---------- */
.start { position: relative; overflow-x: clip; padding-block: clamp(4rem, 8vw, 7rem) clamp(5rem, 10vw, 9rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.step {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.step__n {
  margin-bottom: 0.5rem;
  color: var(--brown);
  font: 200 clamp(3.5rem, 6vw, 5.5rem)/1 var(--f-display);
  font-variation-settings: "opsz" 72;
}
.step h3 { font: 400 clamp(1.5rem, 2.2vw, 1.875rem)/1.15 var(--f-display); letter-spacing: -0.01em; }
.step p { max-width: 34ch; }

/* what every path guarantees: a compact ruled strip, quieter than the steps */
.assure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  border-block: 1px solid var(--rule);
}
.assure__item {
  --ico-d: 46px;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1rem, 2.2vw, 2rem);
}
.assure__item:first-child { padding-left: 0; }
.assure__item + .assure__item { border-left: 1px solid var(--rule-soft); }
.assure dt { display: flex; align-items: center; gap: 1rem; font: 700 1rem/1.3 var(--f-body); }
.assure__ico {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--ico-d);
  height: var(--ico-d);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--taupe);
  color: var(--brown);
}
.assure__ico .ico { width: 22px; height: 22px; stroke-width: 1.4; }
.assure dd {
  max-width: 34ch;
  margin: -0.35rem 0 0;
  padding-left: calc(var(--ico-d) + 1rem);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(4rem, 8vw, 6.5rem);
}
.call__line {
  font: 300 clamp(2rem, 4vw, 3.5rem)/1.05 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.02em;
}
.call__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }

/* ---------- percorso professionale ---------- */
.path { padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 9rem); }
.path__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.path__head p { max-width: 36ch; padding-bottom: 0.6rem; color: var(--brown); }
.path__block { margin-top: clamp(4rem, 8vw, 7rem); }

.entry {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0.75rem clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
}
.entry--wide .entry__what { grid-column: 2 / -1; max-width: 46rem; }
.entry__when {
  padding-top: 0.45rem;
  color: var(--brown);
  font: 600 0.9375rem/1.4 var(--f-body);
  font-variant-numeric: tabular-nums;
}
.entry :is(h3, h4) { font: 400 clamp(1.375rem, 2vw, 1.75rem)/1.2 var(--f-display); letter-spacing: -0.008em; }
.entry__where { margin-top: 0.4rem; color: var(--brown); font-size: 0.9375rem; }
.entry__body { display: grid; gap: 0.5rem; padding-top: 0.4rem; font-size: 1rem; }

.dash li { position: relative; padding-left: 1.1rem; }
.dash li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5rem;
  height: 1px;
  background: var(--brown);
}

.paper { grid-template-columns: 10.5rem minmax(0, 1fr); }
.paper__main { display: grid; gap: 0.9rem; max-width: 50rem; }
.paper__title { font: 400 clamp(1.5rem, 2.4vw, 2.125rem)/1.18 var(--f-display); letter-spacing: -0.01em; }
.paper__main .entry__where { margin-top: -0.4rem; }
.paper__fields { display: grid; gap: 0.75rem; margin-top: 0.25rem; }
.paper__fields div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.paper__fields dt {
  padding-top: 0.15rem;
  color: var(--brown);
  font: 700 0.8125rem/1.5 var(--f-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.skills li { padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }

/* ---------- contatti: the burgundy close ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(5.5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem);
  background: var(--burgundy);
  color: var(--offwhite);
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -20%;
  bottom: -60%;
  width: min(900px, 100vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(7, 6, 4, 0.42), rgba(7, 6, 4, 0));
  filter: blur(14px);
  pointer-events: none;
}
/* the hero orbit returns once, wide and faint, to close the page */
.contact__orbit {
  position: absolute;
  z-index: -1;
  right: -26%;
  top: 6%;
  width: min(1240px, 130vw);
  overflow: visible;
  rotate: -9deg;
  fill: none;
  stroke: rgba(170, 144, 127, 0.5);
  stroke-width: 0.17; /* ~1px at its drawn size; user units so the stroke can be drawn in */
  pointer-events: none;
}
.contact__title {
  max-width: 12ch;
  font: 300 clamp(3rem, 8.5vw, 7.5rem)/0.98 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.028em;
}
.contact__lede { max-width: 44ch; margin-top: 1.75rem; color: var(--on-dark-soft); font-size: 1.125rem; }

.crows { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--on-dark-rule); }
.crow {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.5rem clamp(1.5rem, 3.5vw, 3.5rem);
  align-items: baseline;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--on-dark-rule);
}
.crow__label {
  color: var(--on-dark-soft);
  font: 700 0.8125rem/1.3 var(--f-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.crow__tel {
  justify-self: start;
  padding-bottom: 0.06em;
  font: 300 clamp(2.75rem, 8vw, 6.75rem)/1 var(--f-display);
  font-variation-settings: "opsz" 72;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}
.crow__tel:hover { background-size: 100% 1px; }
.crow__mail {
  justify-self: start;
  font: 400 clamp(1.375rem, 3vw, 2.5rem)/1.2 var(--f-display);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--on-dark-rule);
  transition: text-decoration-color 0.3s ease;
}
.crow__mail:hover { text-decoration-color: currentColor; }
.crow__place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 2rem; font-size: 1.125rem; }
.contact .textlink { text-decoration-color: var(--on-dark-rule); }
.contact .textlink:hover { text-decoration-color: currentColor; }

/* ---------- footer ---------- */
.foot {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom));
  background: var(--black);
  color: var(--on-dark-soft);
  font-size: 0.9375rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem clamp(2rem, 4vw, 4rem);
}
.foot__id { display: grid; align-content: start; gap: 0.75rem; max-width: 26rem; }
.foot__name {
  color: var(--offwhite);
  font: 300 clamp(1.75rem, 2.6vw, 2.25rem)/1.1 var(--f-display);
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.015em;
}
.foot__col { display: grid; align-content: start; gap: 0.9rem; }
.foot__h {
  color: var(--taupe);
  font: 700 0.8125rem/1.3 var(--f-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.foot__col ul { display: grid; gap: 0.15rem; }
.foot__col a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--offwhite);
  overflow-wrap: anywhere;
  text-decoration: none;
  /* the underline is drawn in from the left and leaves to the right */
  background: linear-gradient(currentColor, currentColor) 100% calc(100% - 0.2rem) / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.foot__col a:hover { background-position-x: 0; background-size: 100% 1px; }
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 244, 243, 0.16);
  font-size: 0.875rem;
}

/* ---------- contact dock ---------- */
.dock {
  position: fixed;
  z-index: 30;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  visibility: hidden;
  translate: 0 calc(100% + 40px);
  transition: translate 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.dock.is-on { visibility: visible; translate: none; transition: translate 0.6s var(--ease-out); }
.dock .pill { flex: 1 1 0; justify-content: center; box-shadow: 0 14px 30px -14px rgba(7, 6, 4, 0.55); }
.dock .pill--ghost { box-shadow: 0 14px 30px -14px rgba(7, 6, 4, 0.4), inset 0 0 0 1px var(--rule); }
.dock__num { display: none; }

/* motion lives in motion.css */

/* ---------- responsive ---------- */
@media (min-width: 761px) {
  .dock { left: auto; right: 24px; bottom: 24px; }
  .dock .pill { flex: 0 0 auto; }
  .dock__num { display: inline; }
}

/* four links, one of them long: the menu takes over before they crowd the name */
@media (max-width: 1020px) {
  .nav--wide { display: none; }
  .nav--menu { display: block; }
}

@media (max-width: 860px) {
  .approach .display, .approach__text { grid-column: 1 / -1; }
  .creds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .assure { grid-template-columns: minmax(0, 1fr); }
  .assure__item { padding-inline: 0; }
  .assure__item + .assure__item { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__id { grid-column: 1 / -1; }
  .path__head { grid-template-columns: minmax(0, 1fr); }
  .entry, .paper { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .entry--wide .entry__what { grid-column: auto; }
  .entry__when { padding-top: 0; }
  .entry__body { padding-top: 0.5rem; }
  .skills { grid-template-columns: minmax(0, 1fr); }
  .crow { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --top-h: 72px; }
  .haze--warm { width: 150vw; right: -62vw; top: 26%; }
  .haze--shade { width: 110vw; left: -50vw; top: -6%; }
  .paper__fields div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .call { align-items: flex-start; flex-direction: column; }
  .contact__orbit { display: none; }
}

@media (max-width: 560px) {
  .creds__list { grid-template-columns: minmax(0, 1fr); }
  .cred { padding-inline: 0; border-left: 0; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
