/*
  Cosmin portfolio prototype
  --------------------------
  Dependency-free, responsive and intentionally easy to move into WordPress.
  Global design tokens live here so the visual direction can be changed quickly.
*/

:root {
  --ink: #101715;
  --ink-soft: #26302d;
  --muted: #67706d;
  --paper: #f4f1e9;
  --paper-deep: #ebe6da;
  --white: #fffefa;
  --line: rgba(16, 23, 21, 0.14);
  --line-strong: rgba(16, 23, 21, 0.25);
  --lime: #d9ff79;
  --lime-deep: #b8e64d;
  --blue: #7894ff;
  --coral: #ff8267;
  --mint: #a8d8c4;
  --navy: #14243b;
  --dark: #101715;
  --dark-2: #17211e;
  --dark-line: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 12px 35px rgba(30, 36, 32, 0.08);
  --shadow-md: 0 28px 70px rgba(30, 36, 32, 0.14);
  --shadow-lg: 0 40px 120px rgba(10, 18, 15, 0.25);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 38px;
  --radius-pill: 999px;
  --shell: min(1440px, calc(100vw - 64px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --header-height: 90px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--paper);
}

html :where(.wp-site-blocks),
html :where(.wp-block-post-content) {
  margin: 0;
}

body.admin-bar .site-header {
  top: 50px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 6%, rgba(217, 255, 121, 0.18), transparent 23rem),
    radial-gradient(circle at 2% 38%, rgba(120, 148, 255, 0.08), transparent 31rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body .is-layout-flow > * + * {
  margin-block-start: 0;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

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

p,
h1,
h2,
h3,
dl,
dd,
ul,
ol {
  margin-top: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-noise {
  position: fixed;
  z-index: 9998;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 540px;
  height: 540px;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: .45;
  background: radial-gradient(circle, rgba(217, 255, 121, .16), rgba(217, 255, 121, 0) 66%);
  transform: translate3d(calc(var(--mouse-x, -800px) - 50%), calc(var(--mouse-y, -800px) - 50%), 0);
  transition: opacity .3s ease;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1420px, calc(100vw - 36px));
  min-height: 66px;
  padding: 10px 12px 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), top .35s var(--ease);
}

.site-header.is-scrolled,
.site-header:has(.site-nav.is-open) {
  top: 10px;
  border-color: rgba(16, 23, 21, .11);
  background: rgba(250, 248, 241, .86);
  box-shadow: 0 18px 50px rgba(26, 31, 28, .1);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav > a {
  position: relative;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--ink);
  background: rgba(16, 23, 21, .055);
}

.site-nav .nav-cta {
  margin-left: 5px;
  padding-inline: 20px;
  color: var(--paper);
  background: var(--ink);
}

.site-nav .nav-cta:hover {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .25s var(--ease), top .25s var(--ease);
}

.menu-toggle span:nth-child(2) { top: 17px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Shared type and buttons */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 130, 103, .12);
}

.eyebrow--light {
  color: rgba(255, 255, 255, .62);
}

.eyebrow--light > span {
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(217, 255, 121, .12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}

.button svg,
.project-open svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform .25s var(--ease);
}

.button:hover svg,
.project-open:hover svg {
  transform: translateX(4px);
}

.button--primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(16, 23, 21, .15);
}

.button--primary:hover {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 18px 42px rgba(61, 72, 48, .16);
  transform: translateY(-2px);
}

.button--lime {
  color: var(--ink);
  background: var(--lime);
}

.button--lime:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 850;
  transition: border-color .2s ease, gap .2s ease;
}

.text-link:hover {
  gap: 12px;
  border-color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr);
  align-items: center;
  gap: clamp(50px, 7vw, 116px);
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 65px);
  padding-bottom: 86px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero h1 {
  max-width: 950px;
  margin-bottom: 34px;
  font-size: clamp(4rem, 7.8vw, 8.75rem);
  font-weight: 760;
  letter-spacing: -.073em;
  line-height: .86;
}

.hero h1 > span {
  display: block;
  margin-bottom: .13em;
  color: var(--muted);
  font-size: .36em;
  font-weight: 780;
  letter-spacing: -.04em;
  line-height: 1;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.065em;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -.035em;
  bottom: .03em;
  left: -.02em;
  height: .22em;
  border-radius: 999px;
  background: var(--lime);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
  letter-spacing: -.018em;
}

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

.hero-disciplines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-disciplines li {
  display: grid;
  gap: 7px;
  padding: 17px 22px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.hero-disciplines li span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 520px);
  padding: 32px 0 52px;
}

.portrait-stage {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  width: min(100%, 470px);
  margin-left: auto;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}

.portrait-stage::before {
  position: absolute;
  z-index: -2;
  inset: -34px 30px 48px -42px;
  border: 1px solid rgba(16, 23, 21, .2);
  border-radius: 44% 56% 42% 58% / 48% 35% 65% 52%;
  content: "";
  transform: rotate(-6deg) translateZ(-30px);
}

.portrait-stage::after {
  position: absolute;
  z-index: -1;
  right: -43px;
  bottom: -42px;
  width: 58%;
  height: 48%;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  opacity: .26;
  filter: blur(2px);
  transform: translateZ(-25px);
}

.portrait-stage > img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 800 / 980;
  object-fit: cover;
  border: 1px solid rgba(16, 23, 21, .12);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
  transform: translateZ(18px);
}

.portrait-halo {
  position: absolute;
  z-index: -1;
  top: -48px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--lime);
  opacity: .78;
  filter: blur(.5px);
  transform: translateZ(-40px);
}

.portrait-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(255, 254, 250, .86);
  box-shadow: 0 20px 45px rgba(19, 28, 24, .18);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transform: translateZ(52px);
}

.portrait-card--top {
  top: 28px;
  right: -52px;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46c878;
  box-shadow: 0 0 0 5px rgba(70, 200, 120, .14);
}

.portrait-card--bottom {
  right: -25px;
  bottom: 28px;
  display: grid;
  min-width: 250px;
  padding: 17px 20px;
  border-radius: 20px;
}

.portrait-card--bottom small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portrait-card--bottom strong {
  font-size: 13px;
  letter-spacing: -.01em;
}

.orbit-tag {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(16, 23, 21, .13);
  border-radius: var(--radius-pill);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateZ(40px);
}

.orbit-tag--one { top: 30%; left: -70px; transform: rotate(-8deg) translateZ(40px); }
.orbit-tag--two { top: 58%; right: -75px; transform: rotate(7deg) translateZ(40px); }
.orbit-tag--three { bottom: 12%; left: -42px; transform: rotate(5deg) translateZ(40px); }

.hero-note {
  position: absolute;
  right: 8px;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 98px 1fr;
  gap: 16px;
  width: min(410px, 90%);
  padding: 18px 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(244, 241, 233, .9);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-note__label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-note p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

/* Tech rail */
.tech-rail {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .45);
}

.tech-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 15px 0;
  animation: rail 34s linear infinite;
  will-change: transform;
}

.tech-track span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tech-track i {
  color: var(--coral);
  font-size: 10px;
  font-style: normal;
}

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

/* Shared section headings */
.work,
.approach,
.about,
.contact {
  padding-top: clamp(110px, 11vw, 180px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 64px;
}

.section-heading h2,
.fit-heading h2,
.about-copy h2,
.contact-panel h2 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(3rem, 5.5vw, 6.4rem);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .96;
}

.section-heading > p {
  max-width: 530px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(16, 23, 21, .12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 25px 70px rgba(25, 31, 28, .08);
  transform: perspective(1500px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .35s var(--ease), border-color .35s ease;
}

.project-card:hover {
  border-color: rgba(16, 23, 21, .24);
  box-shadow: 0 34px 95px rgba(25, 31, 28, .14);
}

.project-card--large {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  grid-template-rows: 1fr;
}

.project-media {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 52px 48px;
  background: #dce3e6;
}

.project-card--large .project-media {
  min-height: 630px;
}

.project-card--navy .project-media {
  background:
    radial-gradient(circle at 10% 15%, rgba(217, 255, 121, .36), transparent 17rem),
    linear-gradient(145deg, #345274, #112641);
}

.project-card--warm .project-media {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .75), transparent 16rem),
    linear-gradient(145deg, #eadac7, #c6ab8e);
}

.project-card--mint .project-media {
  background:
    radial-gradient(circle at 15% 15%, rgba(217, 255, 121, .62), transparent 16rem),
    linear-gradient(145deg, #b5d7ca, #6c9c8e);
}

.project-card--blue .project-media {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 130, 103, .35), transparent 16rem),
    linear-gradient(145deg, #99adea, #667dbf);
}

.browser-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(16, 23, 21, .25);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(6, 16, 28, .32);
  transform: translateZ(28px) rotate(-1.2deg);
  transition: transform .55s var(--ease);
}

.project-card:nth-child(even) .browser-frame {
  transform: translateZ(28px) rotate(1.1deg);
}

.project-card:hover .browser-frame {
  transform: translateZ(42px) rotate(0deg) scale(1.015);
}

.browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding-inline: 11px;
  border-bottom: 1px solid rgba(16, 23, 21, .11);
  background: #f4f4f1;
}

.browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9cbc8;
}

.browser-bar b {
  position: absolute;
  left: 50%;
  color: #8a8e8b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateX(-50%);
}

.browser-frame > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.project-card--large .browser-frame > img {
  aspect-ratio: 4 / 3;
}

.project-number {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: #fff;
  background: rgba(16, 23, 21, .32);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.project-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px 40px 36px;
  transform: translateZ(18px);
}

.project-card--large .project-body {
  justify-content: center;
  padding: 62px 54px;
}

.project-tags,
.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.project-tags span,
.dialog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-body h3 {
  margin-bottom: 17px;
  font-size: clamp(2rem, 3vw, 3.8rem);
  font-weight: 730;
  letter-spacing: -.055em;
  line-height: 1;
}

.project-card:not(.project-card--large) .project-body h3 {
  font-size: clamp(2rem, 2.8vw, 3.1rem);
}

.project-body > p {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  margin-bottom: 31px;
  border-top: 1px solid var(--line);
}

.project-meta div {
  display: grid;
  gap: 3px;
}

.project-meta dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.project-open {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .2s ease, gap .2s ease;
}

.project-open:hover {
  gap: 15px;
  border-color: var(--ink);
}

/* More work */
.more-work {
  display: grid;
  grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr);
  gap: 80px;
  padding: 72px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.more-work__intro h3 {
  max-width: 350px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -.055em;
  line-height: 1.02;
}

.more-work__list {
  display: grid;
}

.more-work__list button {
  display: grid;
  grid-template-columns: 44px minmax(150px, .7fr) minmax(190px, 1fr) 28px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: padding .25s var(--ease), color .2s ease;
}

.more-work__list button:last-child {
  border-bottom: 1px solid var(--line);
}

.more-work__list button:hover {
  padding-left: 12px;
  color: #4057a4;
}

.more-work__list button > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.more-work__list button strong {
  font-size: 14px;
}

.more-work__list button small {
  color: var(--muted);
  font-size: 12px;
}

.more-work__list button i {
  justify-self: end;
  font-size: 18px;
  font-style: normal;
  transition: transform .25s var(--ease);
}

.more-work__list button:hover i {
  transform: translate(4px, -4px);
}

/* Fit section */
.fit {
  position: relative;
  overflow: hidden;
  margin-top: clamp(110px, 12vw, 190px);
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 10%, rgba(217, 255, 121, .12), transparent 32rem),
    radial-gradient(circle at 5% 85%, rgba(120, 148, 255, .11), transparent 28rem),
    var(--dark);
}

.fit::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.fit-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(110px, 11vw, 170px);
  padding-bottom: clamp(110px, 11vw, 160px);
}

.fit-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 70px;
}

.fit-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.fit-heading h2 {
  max-width: 900px;
  color: var(--paper);
}

.fit-heading > p {
  max-width: 500px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .61);
  font-size: 16px;
  line-height: 1.75;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 28px;
  background: var(--dark-line);
}

.fit-card {
  position: relative;
  min-height: 390px;
  padding: 35px 30px 32px;
  background: rgba(16, 23, 21, .92);
  transition: background .3s ease, transform .3s var(--ease);
}

.fit-card:hover {
  background: rgba(29, 40, 36, .97);
}

.fit-card__number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: rgba(255, 255, 255, .34);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.fit-card svg {
  width: 44px;
  height: 44px;
  margin: 24px 0 76px;
  fill: none;
  stroke: var(--lime);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.fit-card h3 {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: 22px;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.fit-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  line-height: 1.7;
}

.tenrec-note {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
  padding: 50px 0 0;
  margin-top: 58px;
  border-top: 1px solid var(--dark-line);
}

.tenrec-note span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tenrec-note p {
  max-width: 1030px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.45;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 45px;
  padding: 33px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), background .25s ease;
}

.process-list li:hover {
  padding-left: 22px;
  padding-right: 22px;
  background: rgba(255, 254, 250, .36);
}

.process-list > li > span {
  padding-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.process-list li > div {
  display: grid;
  grid-template-columns: minmax(180px, .6fr) minmax(300px, 1.4fr);
  align-items: start;
  gap: 60px;
}

.process-list h3 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1;
}

.process-list p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* About */
.about-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1.28fr);
  gap: clamp(55px, 8vw, 130px);
  overflow: hidden;
  padding: clamp(48px, 6vw, 90px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.about-art {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px),
    var(--navy);
  background-size: 44px 44px;
}

.about-art::before,
.about-art::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.about-art::before {
  top: -90px;
  left: -95px;
  width: 310px;
  height: 310px;
  background: var(--lime);
  opacity: .92;
}

.about-art::after {
  right: -80px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  background: var(--coral);
  opacity: .7;
}

.about-art__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.about-art__ring::before,
.about-art__ring::after {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  content: "";
}

.about-art__ring::after {
  inset: 85px;
}

.about-art__code {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  color: var(--paper);
  font-size: clamp(60px, 7vw, 105px);
  font-weight: 900;
  letter-spacing: -.08em;
  transform: translate(-50%, -50%);
}

.about-art__label {
  position: absolute;
  bottom: 28px;
  left: 28px;
  z-index: 2;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.about-copy {
  align-self: center;
}

.about-copy h2 {
  max-width: 750px;
  margin-bottom: 30px;
  font-size: clamp(3rem, 5vw, 5.8rem);
}

.about-lede {
  max-width: 760px;
  margin-bottom: 35px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
  letter-spacing: -.018em;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.about-columns p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.about-links a {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 900;
  transition: gap .2s ease, border-color .2s ease;
}

.about-links a:hover {
  gap: 13px;
  border-color: var(--ink);
}

/* Contact */
.contact {
  padding-bottom: clamp(95px, 10vw, 150px);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 116px);
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 10%, rgba(217, 255, 121, .22), transparent 28rem),
    var(--dark);
}

.contact-panel::before {
  position: absolute;
  top: -45%;
  right: -8%;
  width: 56%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  content: "";
}

.contact-panel::after {
  position: absolute;
  right: 13%;
  bottom: -32%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lime);
  content: "";
  opacity: .18;
  filter: blur(1px);
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel h2 {
  max-width: 1000px;
  margin-bottom: 31px;
  color: var(--paper);
}

.contact-panel > p:not(.eyebrow) {
  max-width: 690px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .64);
  font-size: 17px;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  color: var(--paper);
  background: rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.copy-email svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.copy-email:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  padding-top: 34px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
}

.brand--footer {
  margin-bottom: 19px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-meta a {
  color: var(--ink);
}

/* Dialog */
.project-dialog {
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 32px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 45px 140px rgba(0, 0, 0, .5);
}

.project-dialog::backdrop {
  background: rgba(5, 10, 8, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: backdrop-in .3s ease both;
}

.project-dialog[open] {
  animation: dialog-in .38s var(--ease) both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell {
  position: relative;
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dialog-close {
  position: absolute;
  z-index: 10;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(16, 23, 21, .68);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease;
}

.dialog-close:hover {
  background: var(--ink);
  transform: rotate(4deg);
}

.dialog-close span {
  position: absolute;
  top: 22px;
  left: 13px;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
}

.dialog-close span:first-child { transform: rotate(45deg); }
.dialog-close span:last-child { transform: rotate(-45deg); }

.dialog-visual {
  min-height: 520px;
  padding: 55px 75px;
  background:
    radial-gradient(circle at 12% 10%, rgba(217, 255, 121, .48), transparent 25rem),
    linear-gradient(145deg, #446481, #13243b);
}

.browser-frame--dialog {
  max-width: 970px;
  margin-inline: auto;
  box-shadow: 0 35px 90px rgba(4, 11, 18, .42);
  transform: none;
}

.browser-frame--dialog > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dialog-content {
  padding: clamp(40px, 6vw, 78px);
}

.dialog-eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dialog-content h2 {
  max-width: 900px;
  margin-bottom: 23px;
  font-size: clamp(3rem, 5vw, 6rem);
  font-weight: 720;
  letter-spacing: -.065em;
  line-height: .96;
}

.dialog-summary {
  max-width: 810px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
}

.dialog-tags {
  margin-bottom: 52px;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 65px;
  padding-top: 39px;
  border-top: 1px solid var(--line);
}

.dialog-grid section {
  min-width: 0;
}

.dialog-section--wide {
  grid-column: 1 / -1;
}

.dialog-grid h3 {
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: -.01em;
}

.dialog-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.function-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 38px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.function-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.function-list li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  content: "";
}

.review-access {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: 45px;
  align-items: center;
  padding: 28px;
  margin-top: 50px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}

.review-access__label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.review-access strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.review-access p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.credential-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.credential-grid label > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 10px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.credential-grid code {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.credential-grid button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--paper);
  background: var(--ink);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 40px;
}

/* Toast */
.toast {
  position: fixed;
  z-index: 10020;
  right: 22px;
  bottom: 22px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-pill);
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Large desktop tuning */
@media (min-width: 1500px) {
  .hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(470px, .82fr);
  }

  .hero h1 {
    font-size: 8.8rem;
  }
}

/* Tablet and small desktop */
@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 44px, 1120px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
    gap: 50px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8.5vw, 7rem);
  }

  .portrait-card--top {
    right: -18px;
  }

  .portrait-card--bottom {
    right: -8px;
  }

  .orbit-tag--two {
    right: -25px;
  }

  .project-card--large {
    grid-template-columns: 1.15fr .85fr;
  }

  .project-card--large .project-media {
    min-height: 560px;
    padding: 44px 34px;
  }

  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-panel {
    grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
    gap: 60px;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    top: 10px;
    width: calc(100vw - 22px);
    min-height: 60px;
    border-color: rgba(16, 23, 21, .1);
    background: rgba(250, 248, 241, .9);
    box-shadow: 0 16px 44px rgba(26, 31, 28, .09);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .menu-toggle {
    position: relative;
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(16, 23, 21, .1);
    border-radius: 24px;
    background: rgba(250, 248, 241, .98);
    box-shadow: 0 24px 65px rgba(26, 31, 28, .15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.985);
    transform-origin: top;
    transition: opacity .25s ease, transform .25s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav > a {
    padding: 13px 15px;
  }

  .site-nav .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 145px;
    padding-bottom: 105px;
  }

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

  .hero h1 {
    font-size: clamp(4.2rem, 12vw, 7.2rem);
  }

  .hero-visual {
    justify-self: center;
    width: min(88vw, 510px);
    margin-top: 25px;
  }

  .section-heading,
  .fit-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .fit-heading .eyebrow {
    margin-bottom: -8px;
  }

  .section-heading > p,
  .fit-heading > p {
    max-width: 680px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card--large {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .project-card--large .project-media,
  .project-media {
    min-height: 480px;
  }

  .project-card--large .project-body,
  .project-body {
    padding: 38px 40px 40px;
  }

  .more-work {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .tenrec-note {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .process-list li > div {
    grid-template-columns: minmax(170px, .6fr) minmax(0, 1.4fr);
    gap: 38px;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .about-art {
    min-height: 430px;
  }

  .dialog-visual {
    min-height: 430px;
    padding: 50px 42px;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .page-noise {
    opacity: .13;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    gap: 45px;
    padding-top: 128px;
    padding-bottom: 80px;
  }

  .hero h1 {
    margin-bottom: 27px;
    font-size: clamp(3.5rem, 16vw, 5.4rem);
    line-height: .89;
  }

  .hero h1 > span {
    font-size: .39em;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 42px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-disciplines {
    grid-template-columns: 1fr;
  }

  .hero-disciplines li {
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 9px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual {
    width: calc(100% - 18px);
    padding-bottom: 80px;
  }

  .portrait-stage::before {
    inset: -22px 20px 40px -20px;
  }

  .portrait-stage > img {
    border-radius: 30px;
  }

  .portrait-halo {
    top: -30px;
    right: -35px;
    width: 190px;
    height: 190px;
  }

  .portrait-card--top {
    top: 14px;
    right: -4px;
  }

  .portrait-card--bottom {
    right: -5px;
    bottom: 18px;
    min-width: 220px;
  }

  .orbit-tag {
    min-width: auto;
    min-height: 29px;
    padding: 6px 9px;
    font-size: 8px;
  }

  .orbit-tag--one { left: -13px; }
  .orbit-tag--two { right: -10px; }
  .orbit-tag--three { left: -9px; bottom: 16%; }

  .hero-note {
    right: -3px;
    bottom: 5px;
    grid-template-columns: 1fr;
    gap: 4px;
    width: 90%;
  }

  .tech-track {
    gap: 22px;
    padding-block: 12px;
  }

  .work,
  .approach,
  .about,
  .contact {
    padding-top: 100px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .fit-heading h2,
  .about-copy h2,
  .contact-panel h2 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .section-heading > p,
  .fit-heading > p {
    font-size: 14px;
  }

  .project-card,
  .project-card--large {
    border-radius: 28px;
  }

  .project-card--large .project-media,
  .project-media {
    min-height: 315px;
    padding: 42px 17px 32px;
  }

  .browser-frame {
    border-radius: 10px;
  }

  .browser-bar {
    height: 25px;
  }

  .browser-bar b {
    font-size: 7px;
  }

  .project-card--large .project-body,
  .project-body {
    padding: 30px 24px 28px;
  }

  .project-body h3,
  .project-card:not(.project-card--large) .project-body h3 {
    font-size: 2.25rem;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .more-work {
    padding-top: 52px;
  }

  .more-work__list button {
    grid-template-columns: 34px 1fr 24px;
    gap: 10px;
  }

  .more-work__list button small {
    display: none;
  }

  .fit {
    margin-top: 110px;
  }

  .fit-inner {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .fit-card {
    min-height: 330px;
  }

  .fit-card svg {
    margin-bottom: 58px;
  }

  .tenrec-note p {
    font-size: 21px;
  }

  .process-list li {
    grid-template-columns: 38px 1fr;
    gap: 15px;
    padding: 25px 0;
  }

  .process-list li:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  .process-list li > div {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .process-list h3 {
    font-size: 2.6rem;
  }

  .about-panel {
    gap: 45px;
    padding: 20px;
    border-radius: 29px;
  }

  .about-art {
    min-height: 330px;
    border-radius: 21px;
  }

  .about-art__ring {
    width: 250px;
    height: 250px;
  }

  .about-copy {
    padding: 4px 4px 16px;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .contact {
    padding-bottom: 90px;
  }

  .contact-panel {
    padding: 47px 25px;
    border-radius: 29px;
  }

  .contact-panel > p:not(.eyebrow) {
    font-size: 15px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 30px;
  }

  .footer-meta {
    justify-content: flex-start;
  }

  .project-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100svh - 14px);
    border-radius: 24px;
  }

  .dialog-shell {
    max-height: calc(100svh - 14px);
  }

  .dialog-close {
    top: 12px;
    right: 12px;
  }

  .dialog-visual {
    min-height: 280px;
    padding: 68px 13px 28px;
  }

  .dialog-content {
    padding: 34px 23px 42px;
  }

  .dialog-content h2 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .dialog-summary {
    font-size: 16px;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dialog-section--wide {
    grid-column: auto;
  }

  .function-list {
    grid-template-columns: 1fr;
  }

  .review-access {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }

  .credential-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .dialog-actions .text-link {
    align-self: flex-start;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .tech-track {
    animation: none;
  }

  .cursor-glow {
    display: none;
  }
}
