/* ==========================================================================
   Suman Suvasiya — personal site
   Direction: paper, ink and pine. Bold grotesk display, editorial grid,
   full-bleed role rows, an inverting expertise index and a pine contact.
   Dependencies: none. Fonts and portrait are self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("assets/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------- Tokens -------------------------------- */

:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-2: #eae4d7;
  --ink: #0f1311;
  --ink-2: #1b201d;
  --pine: #214a3b;
  --pine-deep: #17372c;
  --pine-tint: #9dbfb0;
  --pine-soft: #dbe9e2;
  --pine-muted: #cddfd6;
  --muted: #5b615d;
  --muted-2: #626864;
  --muted-on-ink: #a7aea9;
  --muted-on-ink-2: #c6c4ba;
  --line: rgba(15, 19, 17, 0.14);
  --line-strong: rgba(15, 19, 17, 0.28);
  --line-on-ink: rgba(244, 240, 231, 0.16);
  --line-on-ink-strong: rgba(244, 240, 231, 0.34);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
  --shell: 1360px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------- Base ---------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.section-ink :focus-visible,
.section-pine :focus-visible,
.menu :focus-visible,
.site-foot :focus-visible {
  outline-color: #fff;
}

::selection {
  background: var(--pine);
  color: #fff;
}

::-moz-selection {
  background: var(--pine);
  color: #fff;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--pine);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* ------------------------------ Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s,
    border-color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.btn-line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.btn .arr,
.role-firm svg,
.rail-link svg,
.head-cta svg {
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arr,
a:hover > .role-firm svg,
.role-firm:hover svg,
.rail-link:hover svg,
.head-cta:hover svg {
  transform: translate(3px, -3px);
}

/* ------------------------------- Header -------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

@supports (backdrop-filter: blur(1px)) {
  .site-head {
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
  }
}

.site-head.scrolled {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  border-bottom-color: var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  background: var(--pine);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.brand:hover .brand-mark {
  background: var(--ink);
  transform: translateY(-2px);
}

.brand-text {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.brand-role {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  gap: clamp(18px, 2.1vw, 30px);
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

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

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.head-cta:hover {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}

.menu-btn {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.25s;
}

.menu-btn:hover {
  border-color: var(--pine);
  background: var(--pine);
}

.menu-btn:hover span {
  background: #fff;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--pine);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

/* ------------------------------ Menu ----------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-in {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  min-height: 100%;
  margin-inline: auto;
  padding: 20px var(--gutter) 40px;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-on-ink);
}

.menu-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}

.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-on-ink-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.menu-close:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  margin: clamp(20px, 5vh, 48px) 0 auto;
}

.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: clamp(12px, 2vh, 18px) 0;
  border-bottom: 1px solid var(--line-on-ink);
  color: var(--paper);
  font-size: clamp(32px, 7.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
    color 0.25s;
}

.menu-nav a span {
  flex: 0 0 auto;
  width: 2.2ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--pine-tint);
}

.menu-nav a:hover {
  color: var(--pine-tint);
  transform: translateX(6px);
}

.menu.open .menu-nav a {
  opacity: 1;
  transform: none;
}

.menu.open .menu-nav a:nth-child(1) {
  transition-delay: 0.08s;
}

.menu.open .menu-nav a:nth-child(2) {
  transition-delay: 0.13s;
}

.menu.open .menu-nav a:nth-child(3) {
  transition-delay: 0.18s;
}

.menu.open .menu-nav a:nth-child(4) {
  transition-delay: 0.23s;
}

.menu.open .menu-nav a:nth-child(5) {
  transition-delay: 0.28s;
}

.menu.open .menu-nav a:nth-child(6) {
  transition-delay: 0.33s;
}

.menu.open .menu-nav a:nth-child(7) {
  transition-delay: 0.38s;
}

.menu-foot {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-ink);
}

.menu-email {
  width: fit-content;
  color: var(--paper);
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-bottom: 1px solid var(--line-on-ink-strong);
  padding-bottom: 3px;
  overflow-wrap: anywhere;
}

.menu-email:hover {
  color: var(--pine-tint);
  border-color: var(--pine-tint);
}

.menu-foot p {
  color: var(--muted-on-ink);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
}

.menu-socials a {
  color: var(--muted-on-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-socials a:hover {
  color: var(--paper);
}

/* -------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  padding: clamp(26px, 3.4vw, 44px) 0 0;
  overflow: hidden;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--pine);
}

.kicker-quiet {
  color: var(--muted-2);
}

.name {
  margin-top: clamp(20px, 3.6vw, 48px);
  font-size: clamp(46px, 12.4vw, 182px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.82;
  text-transform: uppercase;
}

.name-row {
  display: block;
  overflow: hidden;
  padding-bottom: 0.045em;
}

.name-in {
  display: block;
  transform: translateY(112%);
}

.js .name-in {
  animation: nameIn 1.05s var(--ease-out) 0.06s forwards;
}

.js .name-row:nth-child(2) .name-in {
  animation-delay: 0.16s;
}

.name-row-accent .name-in {
  color: var(--pine);
}

.name-row-accent em {
  font-style: normal;
  color: var(--ink);
}

.hero-grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 64px);
  margin-top: clamp(28px, 3.8vw, 52px);
  align-items: start;
}

.hero-copy {
  max-width: 600px;
}

.hero-lede {
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.5;
}

.hero-lede em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12em;
  letter-spacing: 0;
  color: var(--pine);
}

.roles {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.roles li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.role-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--pine);
}

.role-body {
  display: grid;
  gap: 3px;
}

.role-body b {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.role-firm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--ink);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 0.25s;
}

.role-firm:hover {
  color: var(--pine);
}

.role-firm-plain {
  cursor: default;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 24px;
}

.socials a {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s, border-color 0.25s;
}

.socials a:hover {
  color: var(--pine);
  border-color: var(--pine);
}

/* Portrait */

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  right: -14px;
  bottom: 34px;
  z-index: 0;
  width: 58%;
  height: 52%;
  background: var(--pine);
}

.photo-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 32%;
  filter: grayscale(1) contrast(1.05) brightness(1.01);
  transform: scale(1.005);
  transition: filter 0.65s ease, transform 0.9s var(--ease);
}

.hero-photo:hover img,
.hero-photo:focus-within img {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.025);
}

.photo-index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 9px;
  background: var(--paper);
  color: var(--ink);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-photo figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-photo figcaption span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 64px);
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}

.scroll-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-note:hover {
  color: var(--pine);
}

.scroll-bar {
  position: relative;
  display: block;
  width: 52px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 1px;
  background: var(--pine);
  animation: scrollLine 2.4s var(--ease) infinite;
}

.hero-coord {
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ------------------------------ Marquee -------------------------------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 17px 26px 17px 0;
}

.marquee-group span {
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-group i {
  font-style: normal;
  font-size: 9px;
  color: var(--pine-tint);
}

/* ------------------------------ Sections ------------------------------- */

.section {
  padding: clamp(74px, 9vw, 132px) 0;
  border-top: 1px solid var(--line);
}

.section-ink {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}

.section-paper-2 {
  background: var(--paper-2);
}

.section-pine {
  background: var(--pine);
  color: #fff;
  border-top: 0;
}

.sec-head {
  display: grid;
  gap: 18px;
  max-width: 960px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--pine);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.sec-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

h2 {
  max-width: 18ch;
  font-size: clamp(40px, 6.2vw, 86px);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.95;
}

h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.012em;
  color: var(--pine);
}

.sec-intro {
  max-width: 56ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.section-ink .sec-label {
  color: var(--pine-tint);
}

.section-ink h2 em {
  color: var(--pine-tint);
}

.section-ink .sec-intro {
  color: var(--muted-on-ink);
}

.section-pine .sec-label {
  color: var(--pine-muted);
}

.section-pine .sec-intro {
  color: var(--pine-muted);
}

.section-pine h2 {
  color: #fff;
}

.section-pine h2 em {
  color: var(--pine-muted);
}

/* ------------------------------- Profile ------------------------------- */

.profile-grid {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.prose p {
  max-width: 66ch;
  margin-bottom: 1.15em;
  color: var(--ink-2);
  font-size: clamp(16px, 1.2vw, 17.5px);
  line-height: 1.78;
}

.prose p:first-of-type {
  color: var(--ink);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.52;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--pine);
  padding-bottom: 1px;
  transition: color 0.25s;
}

.prose a:hover {
  color: var(--pine);
}

.rail {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line-strong);
}

.rail-block {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.rail-block > span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rail-block b {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.rail-block b a {
  width: fit-content;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s, border-color 0.25s;
  overflow-wrap: anywhere;
}

.rail-block b a:hover {
  color: var(--pine);
  border-color: var(--pine);
}

.rail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 20px;
  color: var(--pine);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.25s;
}

.rail-link:hover {
  border-color: var(--pine);
}

/* -------------------------------- Work --------------------------------- */

.jobs {
  border-top: 1px solid var(--line-on-ink);
  margin-top: 8px;
}

.job {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "num body"
    "period period"
    "desc desc";
  gap: 8px 12px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-on-ink);
}

.job::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--pine-tint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.job:hover::after {
  transform: scaleX(1);
}

.job-num {
  grid-area: num;
  padding-top: 5px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--pine-tint);
}

.job-body {
  grid-area: body;
  display: grid;
  gap: 7px;
}

.job-role {
  color: var(--muted-on-ink);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.job-name {
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.job-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  color: var(--pine-tint);
}

.job-period {
  grid-area: period;
  justify-self: start;
  align-self: start;
  padding-top: 6px;
  color: var(--pine-soft);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-desc {
  grid-area: desc;
  max-width: 62ch;
  color: var(--muted-on-ink);
  font-size: 13px;
  line-height: 1.7;
}

/* ------------------------------ Expertise ------------------------------ */

.expertise-grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 64px);
}

.acc {
  border-top: 1px solid var(--line-strong);
}

.acc-item {
  margin: 0 -16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.35s ease, color 0.35s ease,
    border-color 0.35s ease;
}

.acc-item:hover,
.acc-item.is-open {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line-on-ink);
}

.acc-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 19px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.acc-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--pine);
  transition: color 0.3s;
}

.acc-item:hover .acc-num,
.acc-item.is-open .acc-num {
  color: var(--pine-tint);
}

.acc-title {
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.15;
}

.acc-icon {
  position: relative;
  justify-self: end;
  width: 16px;
  height: 16px;
}

.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: 0.75;
  transition: transform 0.35s var(--ease), opacity 0.3s;
}

.acc-icon::before {
  top: 7.5px;
  left: 0;
  width: 16px;
  height: 1px;
}

.acc-icon::after {
  top: 0;
  left: 7.5px;
  width: 1px;
  height: 16px;
}

.acc-item.is-open .acc-icon::after {
  transform: rotate(90deg) scaleY(0);
}

.acc-item:hover .acc-icon::before,
.acc-item:hover .acc-icon::after {
  opacity: 1;
}

.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
}

.js .acc-panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.js .is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
}

.acc-panel p {
  max-width: 62ch;
  padding: 0 0 22px 44px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  transition: color 0.3s;
}

.acc-item:hover .acc-panel p,
.acc-item.is-open .acc-panel p {
  color: var(--muted-on-ink-2);
}

/* ------------------------------ Project -------------------------------- */

.project-grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
}

.project-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--pine);
  background: var(--paper);
}

.project-kicker {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 20ch;
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.project-card > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
  border-top: 1px solid var(--line-strong);
}

.project-stats > div {
  display: grid;
  gap: 6px;
  padding: 16px 12px 0 0;
}

.project-stats dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-stats dd {
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-stats dd span {
  display: block;
  margin-top: 6px;
  color: var(--pine);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.project-notes {
  display: grid;
  align-content: start;
  gap: 26px;
}

.project-lead {
  max-width: 24ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.project-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.project-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.project-list li > span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--pine);
}

.project-list p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ------------------------------ Approach ------------------------------- */

.principles {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.principle {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.principle-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--pine);
}

.principle h3 {
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.principle p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.statement {
  max-width: 21ch;
  margin-top: clamp(44px, 6vw, 84px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 5.1vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.statement em {
  color: var(--pine);
  font-style: italic;
}

/* ------------------------------ Education ------------------------------ */

.education-grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 60px);
  align-items: start;
}

.education-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--pine);
  background: var(--paper);
}

.education-kicker {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.education-card h3 {
  max-width: 18ch;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.education-school {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.education-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 6px;
  border-top: 1px solid var(--line-strong);
}

.education-facts > div {
  display: grid;
  gap: 4px;
  padding: 14px 0 0;
}

.education-facts dt {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.education-facts dd {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}

.education-side {
  display: grid;
  gap: 30px;
  align-content: start;
}

.education-block {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
}

.languages li {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

.languages li + li::before {
  content: "·";
  margin-right: 28px;
  color: var(--pine);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6em;
  vertical-align: 0.22em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.chips li {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ------------------------------- Contact ------------------------------- */

.contact-head h2 {
  max-width: 14ch;
}

.contact-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding-bottom: clamp(28px, 4vw, 42px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.email {
  max-width: 100%;
  padding-bottom: 6px;
  border-bottom: 3px solid #fff;
  color: #fff;
  font-size: clamp(22px, 5.4vw, 74px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.25s, border-color 0.25s;
}

.email:hover {
  color: var(--pine-soft);
  border-color: var(--pine-soft);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.copy-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--pine);
}

.copy-btn.copied {
  background: #fff;
  border-color: #fff;
  color: var(--pine);
}

.copy-status {
  flex: 1 1 100%;
  min-height: 0.9em;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.contact-details {
  display: grid;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 44px);
}

.contact-item {
  display: grid;
  align-content: start;
  gap: 8px;
}

.contact-label {
  color: var(--pine-muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-value {
  color: #fff;
  font-size: 14.5px;
  line-height: 1.5;
}

.contact-item > a {
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

.contact-item > a:hover {
  border-color: #fff;
  color: var(--pine-soft);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-socials a {
  width: fit-content;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: #fff;
  font-size: 14.5px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

.contact-socials a:hover {
  border-color: #fff;
  color: var(--pine-soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.contact-links a {
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s;
}

.contact-links a:hover {
  border-color: #fff;
}

/* -------------------------------- Footer ------------------------------- */

.site-foot {
  padding: 40px 0 46px;
  background: var(--ink);
  color: var(--paper);
}

.foot-in {
  display: grid;
  gap: 20px;
}

.foot-brand .brand-mark {
  background: var(--pine);
}

.foot-brand .brand-name {
  color: var(--paper);
}

.foot-brand .brand-role {
  color: var(--muted-on-ink);
}

.foot-note {
  max-width: 86ch;
  color: var(--muted-on-ink);
  font-size: 11.5px;
  line-height: 1.7;
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-on-ink);
}

.foot-copy {
  color: var(--muted-on-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.foot-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-on-ink);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s;
}

.foot-link:hover {
  color: var(--paper);
}

/* ------------------------------- Motion -------------------------------- */

/* No JS: leave every panel open and hide controls that need script. */
html:not(.js) .menu-btn,
html:not(.js) .copy-btn,
html:not(.js) .acc-icon {
  display: none;
}

html:not(.js) .acc-trigger {
  cursor: default;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

[data-magnetic] {
  will-change: transform;
}

@keyframes nameIn {
  to {
    transform: none;
  }
}

@keyframes scrollLine {
  0% {
    transform: translateX(-22px);
  }
  60%,
  100% {
    transform: translateX(52px);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------ Responsive ----------------------------- */

@media (min-width: 560px) {
  .hero-photo figcaption {
    font-size: 9px;
  }

  .contact-details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 760px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.4vw, 44px);
    border-top: 0;
  }

  .principle {
    align-content: start;
    padding: 26px 0 6px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 0;
  }

  .job {
    grid-template-columns: 52px minmax(0, 1fr) 190px;
    grid-template-areas:
      "num body period"
      "desc desc desc";
    gap: 18px 30px;
    align-items: center;
    padding: 34px 0;
  }

  .job-name {
    font-size: clamp(28px, 4.3vw, 58px);
  }

  .job-period {
    justify-self: end;
    padding-top: 3px;
    text-align: right;
  }

  .job-desc {
    font-size: 13.5px;
  }

  .foot-in {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .foot-note {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .foot-meta {
    grid-column: 1 / -1;
    margin-top: 6px;
  }
}

@media (min-width: 880px) {
  .project-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }

  .education-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: clamp(40px, 6vw, 90px);
  }

  .hero-photo {
    justify-self: end;
  }

  .profile-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  }

  .rail {
    position: sticky;
    top: 108px;
  }
}

@media (min-width: 1000px) {
  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

@media (min-width: 1000px) {
  .expertise-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .expertise-head {
    position: sticky;
    top: 112px;
    margin-bottom: 0;
  }

  .job {
    grid-template-columns: 64px minmax(0, 1fr) 210px;
    gap: 20px 36px;
    padding: 38px 0;
  }

  .job-name {
    font-size: clamp(38px, 4.4vw, 58px);
  }
}

@media (max-width: 999px) {
  .head-in {
    height: 74px;
  }
}

@media (max-width: 639px) {
  .kicker-quiet {
    display: none;
  }

  .hero-photo {
    max-width: 100%;
  }

  .hero-photo::before {
    right: -8px;
    bottom: 30px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 0 18px;
  }

  .email {
    border-bottom-width: 2px;
  }

  .copy-btn {
    order: 3;
  }

  .copy-status {
    order: 4;
  }
}

@media (max-width: 559px) {
  .brand-name {
    font-size: 10.5px;
  }

  .head-cta {
    display: none;
  }

  .hero-coord {
    display: none;
  }

  .name {
    font-size: clamp(44px, 12.8vw, 74px);
  }

  .acc-item {
    margin: 0 -12px;
    padding: 0 12px;
  }

  .acc-trigger {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    gap: 10px;
  }

  .acc-panel p {
    padding-left: 34px;
  }

  .project-stats {
    gap: 0 8px;
  }

  .project-stats > div {
    padding-right: 4px;
  }

  .project-list li {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  .languages {
    gap: 8px 18px;
  }

  .languages li + li::before {
    margin-right: 18px;
  }

  .foot-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .statement {
    max-width: 100%;
  }
}

@media (max-width: 379px) {
  .brand-role {
    display: none;
  }

  .education-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .name-in {
    transform: none;
    animation: none;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track,
  .scroll-bar::after {
    animation: none;
  }

  .menu-nav a {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .job::after,
  .photo-frame img,
  .js .acc-panel {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  [data-magnetic] {
    transform: none !important;
  }
}
