:root {
  --cloud: #f7fafc;
  --sky: #b9e2fa;
  --route: #246bce;
  --route-dark: #164d9c;
  --ink: #102033;
  --outline: #5b84ad;
  --outline-strong: #2f6ea6;
  --shadow-tint: #c5e6f8;
  --sand: #f1d28a;
  --pink: #f1a4c7;
  --mint: #86dbb4;
  --lilac: #c4afea;
  --white: #ffffff;
  --line: 2px solid var(--outline);
  --shadow: 9px 9px 0 var(--shadow-tint);
  --page: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  margin: 0;
  color: var(--ink);
  background-color: var(--cloud);
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 107, 206, 0.16) 1px, transparent 0);
  background-size: 22px 22px;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 2px solid var(--outline);
  background: var(--white);
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 4px solid var(--sand);
  outline-offset: 3px;
}

.micro-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--route-dark);
}

.micro-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 4px;
  background: transparent;
}

.reading-progress span {
  display: block;
  height: 100%;
  background: var(--route);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 22px;
  z-index: 50;
  width: var(--page);
  margin: 22px auto 0;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 8px 10px;
  border: var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 6px 6px 0 var(--shadow-tint);
  backdrop-filter: blur(10px);
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  color: var(--ink);
  background: var(--sky);
  box-shadow: 2px 2px 0 var(--shadow-tint);
  font: 800 21px/1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.5vw, 18px);
}

.tab-trigger {
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.tab-trigger {
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.tab-trigger:hover {
  background: #edf8fe;
}

.tab-trigger.is-active {
  border-color: var(--outline);
  color: var(--route-dark);
  background: var(--sky);
  box-shadow: 2px 2px 0 var(--shadow-tint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(48px, 6vw, 86px);
  align-items: center;
  width: var(--page);
  min-height: calc(100dvh - 112px);
  margin: 0 auto;
  padding: 96px 0 110px;
}

.hero-copy {
  animation: hero-arrive 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-note,
.section-heading > p,
.now-label {
  width: fit-content;
  margin: 0 0 24px;
  padding: 8px 13px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--sand);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Bahnschrift Condensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
  font-stretch: condensed;
  letter-spacing: -0.045em;
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 30px;
  font-size: clamp(56px, 7vw, 102px);
  font-weight: 900;
  line-height: 0.92;
}

h1 span {
  position: relative;
}

.title-strip {
  z-index: 0;
  margin: 8px 0;
  padding: 2px 10px 8px;
  color: var(--white);
  transform: rotate(-1deg);
}

.title-strip::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid var(--outline);
  background: var(--route);
  box-shadow: 5px 5px 0 var(--shadow-tint);
  content: "";
}

.hero-summary {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.profile-meta li {
  padding: 7px 12px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--outline);
  border-radius: 12px;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary {
  color: var(--ink);
  background: var(--sky);
  box-shadow: 5px 5px 0 var(--route);
}

.button-secondary {
  background: var(--white);
  box-shadow: 5px 5px 0 var(--shadow-tint);
}

.button:hover {
  box-shadow: 2px 2px 0 var(--shadow-tint);
  transform: translate(3px, 3px);
}

.portrait-stage {
  position: relative;
  perspective: 1100px;
  animation: portrait-arrive 820ms 100ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.portrait-shadow {
  position: absolute;
  inset: 36px 18px -24px 26px;
  border: var(--line);
  border-radius: 44% 56% 48% 52% / 30% 38% 62% 70%;
  background: var(--sky);
  transform: rotate(5deg);
}

.portrait-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin: 0;
  border: var(--line);
  border-radius: 46% 54% 42% 58% / 34% 32% 68% 66%;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1.5deg);
  transform-style: preserve-3d;
  transition: transform 140ms ease-out;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
}

.portrait-card figcaption {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 2px solid var(--outline);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--shadow-tint);
  font-weight: 900;
}

.portrait-card figcaption small {
  color: var(--route-dark);
  font-size: 11px;
  font-weight: 800;
}

.portrait-stamp {
  position: absolute;
  top: 22px;
  right: 0;
  z-index: 3;
  margin: 0;
  padding: 11px 15px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--sand);
  box-shadow: 4px 4px 0 var(--shadow-tint);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  transform: rotate(7deg);
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel.is-active {
  animation: panel-enter 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.page-panel {
  width: var(--page);
  min-height: calc(100dvh - 112px);
  margin: 0 auto;
  padding: 92px 0 118px;
}

.tab-intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(46px, 6vw, 84px);
  align-items: center;
  margin-bottom: 86px;
}

.tab-intro-compact {
  align-items: start;
  margin-bottom: 48px;
}

.page-index {
  width: fit-content;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--route-dark);
  background: #edf8fe;
  font-size: 13px;
  font-weight: 800;
}

.tab-intro h2 {
  margin-bottom: 28px;
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 900;
  line-height: 0.98;
  text-wrap: balance;
}

.tab-lead {
  max-width: 660px;
  margin-bottom: 26px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
  text-wrap: pretty;
}

.motif-card {
  position: relative;
  display: grid;
  min-height: 390px;
  margin: 0;
  place-items: center;
}

.motif-card::before {
  position: absolute;
  inset: 11% 5% 7% 13%;
  z-index: -1;
  border: 1px solid var(--outline);
  border-radius: 48% 52% 43% 57% / 48% 37% 63% 52%;
  background: rgba(185, 226, 250, 0.42);
  content: "";
  transform: rotate(5deg);
}

.motif-card img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(12px 18px 22px rgba(47, 110, 166, 0.13));
}

.motif-experience img {
  width: min(92%, 470px);
}

.motif-cases img {
  width: min(96%, 540px);
}

.about-focus {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(320px, 7fr);
  gap: 72px;
  align-items: end;
  padding: 64px 0 76px;
  border-top: var(--line);
}

.about-focus h3 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.08;
  text-wrap: balance;
}

.about-skills {
  padding-top: 82px;
  border-top: var(--line);
}

.experience-page .career-list {
  margin-left: 15%;
}

.cases-page {
  display: grid;
  align-content: center;
}

.cases-intro {
  margin-bottom: 0;
}

.cases-intro .tab-intro-copy {
  align-self: center;
}

.cases-intro h2 {
  margin-bottom: 0;
}

.section-shell {
  width: var(--page);
  margin: 0 auto;
  padding: 116px 0;
  border-top: var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 68px;
}

.section-heading h2,
.now h2 {
  margin-bottom: 0;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.02;
}

.career-list {
  position: relative;
  margin-left: 24%;
}

.career-list::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 29px;
  width: 3px;
  background: var(--outline);
  content: "";
}

.career-entry {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(110px, 1.8fr) minmax(0, 6fr);
  gap: 24px;
  align-items: start;
  padding: 0 0 58px;
}

.career-entry:last-child {
  padding-bottom: 0;
}

.career-marker {
  position: relative;
  z-index: 2;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: var(--line);
  border-radius: 50%;
  background: var(--white);
  font-family: "Bahnschrift", Arial, sans-serif;
  font-weight: 900;
}

.career-period {
  padding-top: 18px;
  color: var(--route-dark);
  font-family: "Bahnschrift", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.career-copy {
  padding: 2px 0 32px;
  border-bottom: 2px solid var(--outline);
}

.career-phase {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
}

.career-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.15;
}

.career-copy > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  line-height: 1.75;
}

.skills {
  overflow: hidden;
}

.skill-bands {
  display: grid;
  gap: 20px;
}

.skill-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 2.1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 34px;
  border: var(--line);
  box-shadow: 7px 7px 0 var(--shadow-tint);
}

.skill-band-1 {
  width: 92%;
  background: var(--sky);
  transform: rotate(-0.5deg);
}

.skill-band-2 {
  width: 96%;
  margin-left: auto;
  color: var(--white);
  background: var(--route);
  transform: rotate(0.35deg);
}

.skill-band-3 {
  width: 88%;
  margin-left: 5%;
  background: var(--sand);
  transform: rotate(-0.25deg);
}

.skill-band h3 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 38px);
}

.skill-band ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-band li {
  padding: 7px 11px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.skill-band-2 li {
  border-color: rgba(255, 255, 255, 0.78);
}

.now-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: end;
}

.focus-list {
  display: grid;
  gap: 14px;
}

.focus-list p {
  margin: 0;
  padding: 22px 24px;
  border: var(--line);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--route);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
}

.about-principle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  margin-top: 82px;
  padding: 28px 34px 28px 46px;
  border: var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--sky);
}

.about-principle::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--sky);
  content: "";
}

.about-principle p {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  width: var(--page);
  margin: 0 auto;
  padding: 38px 0 48px;
  border-top: var(--line);
  font-size: 13px;
  font-weight: 750;
}

footer p {
  margin: 0;
}

footer a,
footer button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-underline-offset: 4px;
}

footer button:hover {
  color: var(--route-dark);
  text-decoration: underline;
}

/* Waterfall content system. The navigation above intentionally stays unchanged. */
.waterfall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 20px;
  align-items: start;
}

.waterfall-card {
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  break-inside: avoid;
  grid-row-end: span var(--masonry-span, 1);
  border: 1px solid var(--outline);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--shadow-tint);
  vertical-align: top;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.waterfall-card:hover {
  box-shadow: 4px 4px 0 var(--shadow-tint);
  transform: translate(3px, 3px);
}

.waterfall-card:nth-child(3n + 2) {
  border-radius: 42px 18px 34px 22px;
}

.waterfall-card:nth-child(3n) {
  border-radius: 18px 34px 20px 40px;
}

.home-page,
.page-panel {
  min-height: calc(100dvh - 112px);
  padding: 76px 0 110px;
}

.intro-card,
.profile-card,
.focus-card,
.section-title-card,
.skill-card,
.timeline-card,
.quote-card {
  padding: clamp(24px, 3vw, 38px);
}

.intro-card-home {
  padding: clamp(30px, 4vw, 48px);
  background: linear-gradient(145deg, #ffffff 0%, #eff8fe 100%);
}

.intro-card-home h1 {
  margin-bottom: 26px;
  font-size: clamp(48px, 5.2vw, 74px);
}

.intro-card h2,
.profile-card h2,
.section-title-card h2,
.cases-title-card h2 {
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  text-wrap: balance;
}

.image-card {
  position: relative;
  margin-top: 0;
  background: #eaf6fd;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.home-image-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
}

.home-image-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
}

.image-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--outline);
  color: var(--route-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 850;
}

.home-image-card figcaption span {
  color: var(--ink);
  font-size: 17px;
}

.home-image-card figcaption small {
  color: var(--route-dark);
  font-weight: 800;
}

.anime-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.anime-card-about img,
.anime-card-experience img {
  object-position: center top;
}

.anime-card-cases img {
  aspect-ratio: 4 / 5;
  object-position: center 36%;
}

.card-eyebrow,
.card-number {
  margin-bottom: 16px;
  color: var(--route-dark);
  font-family: "Bahnschrift", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-card {
  background: #eef8fd;
}

.profile-card .profile-meta {
  margin-bottom: 0;
}

.quote-card {
  color: var(--route-dark);
  background: var(--sand);
}

.quote-card span {
  display: block;
  margin-bottom: 22px;
  font-size: 54px;
  font-weight: 900;
  line-height: 0.8;
}

.quote-card p {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.05;
}

.focus-card h3 {
  margin-bottom: 28px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
}

.focus-card .focus-list p {
  padding: 16px 18px;
  box-shadow: 4px 4px 0 var(--shadow-tint);
  font-size: 18px;
}

.section-title-card {
  background: #eef8fd;
}

.section-title-card > p {
  margin-bottom: 18px;
  color: var(--route-dark);
  font-size: 13px;
  font-weight: 900;
}

.skill-card {
  padding-bottom: 30px;
}

.skill-card-1 {
  background: #e5f5fd;
}

.skill-card-2 {
  background: #f8e9bd;
}

.skill-card-3 {
  background: #edf4ff;
}

.skill-card h3 {
  margin-bottom: 20px;
  font-size: clamp(25px, 2.4vw, 34px);
}

.skill-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-card li {
  padding: 7px 10px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
}

.waterfall .download-panel {
  align-items: flex-start;
  flex-direction: column;
  margin-top: 0;
  padding: 28px 28px 30px 36px;
}

.waterfall .download-panel a {
  width: 100%;
  text-align: center;
}

.timeline-card {
  padding: 28px 24px 30px;
}

.timeline-card .career-list,
.experience-page .career-list {
  margin-left: 0;
}

.timeline-card .career-list::before {
  left: 21px;
  background: var(--outline);
}

.timeline-card .career-entry {
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding-bottom: 36px;
}

.timeline-card .career-marker {
  width: 44px;
  height: 44px;
  font-size: 11px;
}

.timeline-card .career-period {
  padding-top: 11px;
  font-size: 14px;
}

.timeline-card .career-copy {
  grid-column: 2;
  margin-top: -2px;
  padding-bottom: 26px;
}

.timeline-card .career-copy h3 {
  font-size: clamp(23px, 2.2vw, 31px);
}

.timeline-card .career-copy > p:last-child {
  font-size: 14px;
  line-height: 1.72;
}

.cases-title-card {
  min-height: 360px;
  background: linear-gradient(160deg, #ffffff 0%, #eef8fd 100%);
}

.empty-case-lines {
  display: grid;
  gap: 14px;
  margin-top: 70px;
}

.empty-case-lines span {
  display: block;
  height: 18px;
  border: 1px solid #a8c8e2;
  border-radius: 999px;
  background: #e3f3fc;
}

.empty-case-lines span:nth-child(2) {
  width: 76%;
}

.empty-case-lines span:nth-child(3) {
  width: 48%;
}

@media (max-width: 900px) {
  .waterfall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .waterfall {
    grid-template-columns: 1fr;
  }

  .home-page,
  .page-panel {
    padding: 56px 0 86px;
  }

  .intro-card-home h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .cases-title-card {
    min-height: 270px;
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes portrait-arrive {
  from {
    opacity: 0;
    transform: translateX(24px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .tab-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 76px;
  }

  .tab-intro {
    gap: 30px;
  }

  .motif-card {
    min-height: 320px;
  }

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

  .portrait-stage {
    width: min(520px, 88vw);
    margin: 12px auto 0;
  }

  .career-list {
    margin-left: 0;
  }

  .now-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100vw - 28px);
    --line: 2px solid var(--outline);
    --shadow: 6px 6px 0 var(--shadow-tint);
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
  }

  .nav-shell {
    grid-template-areas:
      "brand"
      "tabs";
    grid-template-columns: 1fr;
    min-height: 58px;
    gap: 7px 12px;
    padding: 7px;
    border-radius: 24px;
    box-shadow: 4px 4px 0 var(--shadow-tint);
  }

  .brand {
    grid-area: brand;
    width: 44px;
    height: 44px;
    justify-self: start;
  }

  .nav-tabs {
    display: grid;
    grid-area: tabs;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding-top: 6px;
    border-top: 1px solid var(--shadow-tint);
  }

  .tab-trigger {
    padding: 8px 3px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    gap: 52px;
    padding: 76px 0 90px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 72px);
  }

  .hero-summary {
    font-size: 15px;
    line-height: 1.75;
  }

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

  .button {
    justify-content: center;
  }

  .portrait-stage {
    width: calc(100% - 22px);
  }

  .page-panel {
    min-height: calc(100dvh - 144px);
    padding: 76px 0 88px;
  }

  .tab-intro {
    margin-bottom: 64px;
  }

  .tab-intro h2 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .motif-card {
    min-height: 270px;
  }

  .motif-card img {
    width: min(96%, 430px);
  }

  .about-focus {
    padding: 54px 0 62px;
  }

  .about-skills {
    padding-top: 62px;
  }

  .experience-page .career-list {
    margin-left: 0;
  }

  .portrait-stamp {
    right: -2px;
  }

  .section-shell {
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 52px;
  }

  .section-heading h2,
  .now h2 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .career-list::before {
    left: 21px;
  }

  .career-entry {
    grid-template-columns: 44px 1fr;
    gap: 15px;
  }

  .career-marker {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  .career-period {
    padding-top: 11px;
    font-size: 16px;
  }

  .career-copy {
    grid-column: 2;
    margin-top: -6px;
  }

  .skill-band,
  .skill-band-1,
  .skill-band-2,
  .skill-band-3 {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    padding: 24px 22px;
  }

  .about-principle {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 58px;
    padding: 24px 24px 24px 34px;
  }

  footer {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

/* Editorial route layout inspired by the reference site's composition.
   The existing light palette and navigation remain the visual foundation. */
.page-stack {
  display: grid;
  gap: clamp(82px, 9vw, 128px);
}

.hero-composition,
.about-composition,
.experience-composition,
.cases-composition {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: clamp(42px, 6vw, 82px);
  align-items: center;
}

.hero-composition {
  min-height: calc(100dvh - 190px);
}

.home-page .hero-composition {
  grid-template-columns: minmax(0, 7.6fr) minmax(300px, 4.4fr);
}

.hero-board {
  position: relative;
  align-self: end;
  padding: 40px 0 54px;
}

.hero-board::after {
  position: absolute;
  right: 3%;
  bottom: 8px;
  width: 42%;
  height: 16px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 5px 5px 0 var(--shadow-tint);
  content: "";
  transform: rotate(-1.5deg);
}

.hero-portrait,
.experience-composition figure,
.cases-composition figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-portrait {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: min(100%, 440px);
  justify-self: end;
  border-radius: 42% 20px 34% 22px;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(1.5deg);
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.hero-portrait::before {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  content: "↗";
  display: grid;
  place-items: center;
  color: var(--route-dark);
  font-size: 28px;
  font-weight: 900;
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero-portrait figcaption,
.experience-composition figcaption,
.cases-composition figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--outline);
  color: var(--route-dark);
  background: var(--white);
}

.hero-portrait figcaption {
  flex-direction: column;
  align-items: flex-start;
}

.hero-portrait figcaption strong {
  color: var(--ink);
  font-size: 18px;
}

.hero-portrait figcaption span {
  font-size: 12px;
  font-weight: 800;
}

.layout-section {
  position: relative;
}

.section-heading-line {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--outline);
}

.section-heading-line > p {
  margin: 0;
  color: var(--route-dark);
  font-size: 14px;
  font-weight: 850;
}

.section-heading-line h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 0.98;
}

.recent-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 24px 0 30px;
}

.recent-flow::before {
  position: absolute;
  top: 50%;
  right: 2%;
  left: 2%;
  z-index: -1;
  border-top: 2px dashed #8db1cc;
  content: "";
}

.recent-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
  stroke: var(--outline-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.recent-connectors path:not(.connector-dashed) {
  marker-end: none;
}

.recent-connectors .connector-dashed {
  stroke: var(--pink);
  stroke-dasharray: 9 11;
  stroke-width: 4;
}

.update-card {
  position: relative;
  z-index: 1;
  min-height: 180px;
  padding: 22px 24px 26px;
  border: var(--line);
  background: var(--white);
  box-shadow: 7px 7px 0 var(--shadow-tint);
}

.update-card::after {
  position: absolute;
  right: 18px;
  bottom: -22px;
  color: var(--route);
  content: "✦";
  font-size: 30px;
  font-weight: 900;
  transform: rotate(8deg);
}

.update-card:nth-of-type(3)::after {
  right: auto;
  left: -20px;
  color: var(--mint);
  font-size: 38px;
}

.update-card:nth-of-type(1) {
  grid-column: 1 / span 5;
  min-height: 246px;
  border-radius: 18px 38px 20px 24px;
  transform: rotate(-1deg);
}

.update-card:nth-of-type(2) {
  grid-column: 6 / span 4;
  min-height: 216px;
  margin-top: 48px;
  border-radius: 34px 18px 30px 18px;
  transform: rotate(0.6deg);
}

.update-card:nth-of-type(3) {
  grid-column: 10 / -1;
  min-height: 186px;
  margin-top: 96px;
  border-radius: 20px 28px 42px 18px;
  transform: rotate(1deg);
}

.update-blue {
  background: #e7f5fd;
}

.update-sand {
  background: #f8e9bd;
}

.update-index,
.card-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--outline);
  border-radius: 50%;
  color: var(--route-dark);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.update-top,
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.update-top .update-index,
.card-meta .card-number {
  margin-bottom: 0;
}

.update-card-icon,
.capability-card-icon {
  display: inline-grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 17px 9px 17px 9px;
  background: var(--sky);
  box-shadow: 5px 5px 0 var(--shadow-tint);
  transform: rotate(3deg);
}

.update-card-icon .micro-icon,
.capability-card-icon .micro-icon {
  width: 32px;
  height: 32px;
}

.update-card:nth-of-type(1) .update-card-icon {
  background: var(--lilac);
}

.update-card:nth-of-type(2) .update-card-icon {
  background: var(--pink);
  transform: rotate(-4deg);
}

.update-card:nth-of-type(3) .update-card-icon {
  background: var(--mint);
}

.capability-card:nth-child(1) .capability-card-icon {
  background: var(--pink);
}

.capability-card:nth-child(2) .capability-card-icon {
  background: var(--mint);
  transform: rotate(-4deg);
}

.capability-card:nth-child(3) .capability-card-icon {
  background: var(--lilac);
}

.update-card p {
  margin-bottom: 7px;
  color: var(--route-dark);
  font-size: 13px;
  font-weight: 750;
}

.update-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.08;
}

.route-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
  overflow: hidden;
  padding: clamp(34px, 5vw, 66px);
  border: var(--line);
  border-radius: 26px 68px 26px 26px;
  background: linear-gradient(125deg, #ffffff 0%, #edf8fe 72%);
  box-shadow: var(--shadow);
}

.featured-case-teaser {
  grid-template-columns: minmax(0, 8fr) minmax(180px, 4fr);
  min-height: 340px;
  align-items: center;
}

.featured-case-teaser::before {
  position: absolute;
  right: clamp(28px, 6vw, 78px);
  bottom: 34px;
  color: var(--route-dark);
  content: "CASE / 01";
  font-family: "Bahnschrift", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.route-teaser::after {
  position: absolute;
  top: -42px;
  right: 14%;
  width: 150px;
  height: 150px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--sand);
  content: "";
  opacity: 0.6;
}

.route-teaser h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.98;
}

.route-link {
  position: relative;
  z-index: 1;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--outline);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sky);
  box-shadow: 4px 4px 0 var(--shadow-tint);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.about-composition {
  grid-template-columns: minmax(0, 6.4fr) minmax(340px, 5.6fr);
  align-items: start;
}

.title-accent {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 10px 6px;
  color: var(--route-dark);
  transform: rotate(-1deg);
}

.title-accent::before {
  position: absolute;
  inset: 4px 0 0;
  z-index: -1;
  border: 1px solid var(--outline);
  background: var(--sky);
  box-shadow: 4px 4px 0 var(--shadow-tint);
  content: "";
}

.about-copy,
.experience-composition > article,
.cases-composition > article {
  padding-top: 26px;
}

.about-copy h2,
.experience-composition h2,
.cases-composition h2 {
  margin-bottom: 28px;
  font-size: clamp(50px, 6vw, 84px);
  font-weight: 900;
  line-height: 0.96;
  text-wrap: balance;
}

.about-copy .tab-lead,
.experience-composition > article > p:last-child,
.cases-composition > article > p:last-child {
  max-width: 680px;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.85;
}

.focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.focus-list p {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--route-dark);
  background: #edf8fe;
  font-size: 13px;
  font-weight: 800;
}

.identity-stage {
  position: relative;
  display: grid;
  min-height: 0;
  gap: 22px;
  justify-items: end;
  margin-top: 24px;
  padding: 0 18px 10px 0;
}

.identity-portrait {
  width: min(86%, 430px);
  margin: 0 auto 0 0;
  overflow: hidden;
  border: var(--line);
  border-radius: 42px 18px 42px 18px;
  background: var(--sky);
  box-shadow: var(--shadow);
  transform: rotate(0.6deg);
}

.identity-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 24%;
}

.identity-card {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2;
  width: min(100%, 500px);
  padding: 24px;
  border: var(--line);
  border-radius: 18px 34px 18px 28px;
  background: #ffffff;
  box-shadow: 8px 8px 0 var(--shadow-tint);
  transform: rotate(-0.4deg);
}

.identity-card::before {
  position: absolute;
  top: -40px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  color: var(--route-dark);
  background: var(--pink);
  box-shadow: 7px 7px 0 var(--shadow-tint);
  content: "✦";
  font-size: 38px;
  transform: rotate(8deg);
}

.identity-card::after {
  position: absolute;
  right: 10px;
  bottom: 82px;
  z-index: 3;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  color: var(--route-dark);
  background: var(--mint);
  box-shadow: 6px 6px 0 var(--shadow-tint);
  content: "NOW";
  font-family: "Bahnschrift", Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

.identity-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -24px -24px 20px;
  padding: 16px 22px;
  border-bottom: 2px solid var(--outline);
  border-radius: 16px 32px 0 0;
  color: var(--route-dark);
  background: var(--mint);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.identity-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--shadow-tint);
  font-size: 23px;
  transform: rotate(7deg);
}

.identity-card h3 {
  margin-bottom: 12px;
  font-size: 34px;
}

.identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.identity-tag {
  padding: 7px 11px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  color: var(--route-dark);
  background: var(--sand);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.identity-tag:nth-child(2) {
  background: var(--sky);
  transform: rotate(1.5deg);
}

.identity-info-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.identity-info-block {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 15px;
  border: 2px solid var(--outline);
  border-radius: 13px 7px 13px 7px;
  background: var(--sky);
  box-shadow: 4px 4px 0 var(--shadow-tint);
}

.identity-info-block:nth-child(1) {
  grid-row: 1 / span 2;
  background: var(--sand);
}

.identity-info-block:nth-child(2) {
  background: var(--lilac);
  transform: rotate(-0.6deg);
}

.identity-info-block:nth-child(3) {
  background: var(--pink);
  transform: rotate(0.6deg);
}

.identity-card dt {
  margin-bottom: 6px;
  color: var(--route-dark);
  font-size: 11px;
  font-weight: 800;
}

.identity-card dd {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.identity-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #8db1cc;
}

.identity-code > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.identity-code small {
  color: var(--route-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.identity-code strong {
  font-family: "Bahnschrift", Arial, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.identity-barcode {
  display: block;
  height: 34px;
  border: 1px solid var(--outline);
  border-radius: 7px;
  background-color: var(--white);
  background-image: repeating-linear-gradient(90deg, var(--outline-strong) 0 2px, transparent 2px 5px, var(--outline) 5px 6px, transparent 6px 10px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.capability-card {
  min-height: 260px;
  padding: 26px 26px 30px;
  border: var(--line);
  border-radius: 18px 38px 20px 24px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--shadow-tint);
}

.capability-card:nth-child(1) {
  grid-column: 1 / span 5;
  min-height: 318px;
}

.capability-card:nth-child(2) {
  grid-column: 6 / span 4;
  min-height: 286px;
  margin-top: 52px;
  border-radius: 38px 18px 30px 18px;
  background: #f8e9bd;
}

.capability-card:nth-child(3) {
  grid-column: 10 / -1;
  min-height: 254px;
  margin-top: 104px;
  border-radius: 18px 28px 42px 18px;
  background: #edf4ff;
}

.capability-card h3 {
  margin-bottom: 26px;
  font-size: clamp(25px, 2.6vw, 36px);
}

.capability-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-card li {
  padding: 7px 10px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
}

.experience-composition,
.cases-composition {
  align-items: stretch;
}

.experience-composition {
  grid-template-columns: minmax(0, 4.6fr) minmax(380px, 7.4fr);
}

.experience-composition > article,
.cases-composition > article {
  align-self: center;
}

.experience-composition figure,
.cases-composition figure {
  border-radius: 32px 18px 44px 20px;
}

.experience-composition figure {
  align-self: center;
}

.experience-composition figure img,
.cases-composition figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.experience-composition figure img {
  aspect-ratio: 4 / 3;
  object-position: center top;
}

.cases-composition figure img {
  object-position: center 34%;
}

.experience-composition figcaption,
.cases-composition figcaption {
  font-size: 13px;
  font-weight: 850;
}

.experience-summary {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(170px, 1.3fr);
  gap: 0;
  max-width: 470px;
  margin-top: 38px;
  border-block: 1px solid var(--outline);
}

.experience-summary div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px 18px 0;
}

.experience-summary div + div {
  padding-left: 22px;
  border-left: 1px solid var(--outline);
}

.experience-summary strong {
  color: var(--route-dark);
  font-family: "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.experience-summary span {
  font-size: 12px;
  font-weight: 800;
}

.career-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.career-topline > .micro-icon {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 56px;
  height: 56px;
  padding: 12px;
  border: 2px solid var(--outline);
  border-radius: 17px 9px 17px 9px;
  background: var(--sky);
  box-shadow: 5px 5px 0 var(--shadow-tint);
  transform: rotate(5deg);
}

.career-map .career-entry:nth-child(odd) .career-topline > .micro-icon {
  right: auto;
  left: -24px;
  transform: rotate(-5deg);
}

.career-map .career-entry:nth-child(2) .career-topline > .micro-icon,
.career-map .career-entry:nth-child(6) .career-topline > .micro-icon {
  background: var(--pink);
}

.career-map .career-entry:nth-child(3) .career-topline > .micro-icon {
  background: var(--mint);
}

.career-map .career-entry:nth-child(4) .career-topline > .micro-icon {
  background: var(--lilac);
}

.career-map .career-entry:nth-child(5) .career-topline > .micro-icon {
  background: var(--sand);
}

.career-topline .career-period {
  margin-bottom: 0;
}

.about-principle > div {
  max-width: 720px;
}

.about-principle span {
  display: block;
  margin-bottom: 8px;
  color: var(--route-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.about-principle p {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
  text-wrap: balance;
}

.journey-heading {
  grid-template-columns: 2fr 7fr;
}

.career-map {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 20px 0;
}

.career-map::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--outline);
  content: "";
  transform: translateX(-1px);
}

.career-map::after {
  position: absolute;
  bottom: -11px;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  content: "";
  transform: translateX(-50%);
}

.career-map .career-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.career-map .career-marker {
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  color: var(--route-dark);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  font-size: 11px;
  font-weight: 900;
}

.career-map .career-copy {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  padding: 30px 30px 28px;
  border: var(--line);
  border-radius: 18px 34px 18px 22px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--shadow-tint);
}

.career-map .career-entry:nth-child(odd) .career-copy {
  grid-column: 1;
  border-radius: 34px 18px 22px 18px;
  text-align: right;
}

.career-map .career-entry:nth-child(3n + 2) .career-copy {
  background: #edf8fe;
}

.career-map .career-entry:nth-child(3n) .career-copy {
  background: #f8e9bd;
}

.career-map .career-period {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--route-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.career-map .career-phase {
  margin-bottom: 6px;
  color: var(--route-dark);
  font-size: 13px;
  font-weight: 800;
}

.career-map .career-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(23px, 2.6vw, 34px);
}

.career-map .career-copy > p:last-child {
  margin: 0;
  line-height: 1.72;
}

.case-library {
  padding-bottom: 26px;
}

.case-shelf {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 46px);
  align-items: start;
}

.cases-composition {
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
}

.cases-composition > article {
  grid-column: 2;
  grid-row: 1;
  padding-left: clamp(8px, 2vw, 30px);
}

.cases-composition > figure {
  grid-column: 1;
  grid-row: 1;
  transform: translateY(46px) rotate(-0.8deg);
}

.case-work-card {
  overflow: visible;
  min-width: 0;
  margin: 0;
  border: var(--line);
  border-radius: 22px 46px 24px 30px;
  background: var(--white);
  box-shadow: 8px 8px 0 var(--shadow-tint);
}

.case-work-card:first-child {
  grid-column: 1 / span 8;
}

.case-work-card:nth-child(2) {
  grid-column: 9 / -1;
  margin-top: 112px;
  border-radius: 46px 22px 38px 20px;
}

.case-work-image {
  position: relative;
  min-width: 0;
  padding: 14px;
  border-radius: inherit;
  background: #edf8fe;
}

.case-work-mark {
  position: absolute;
  top: -30px;
  right: -24px;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 22px 11px 22px 11px;
  color: var(--route-dark);
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--shadow-tint);
  transform: rotate(4deg);
}

.case-work-card:nth-child(2) .case-work-mark {
  right: auto;
  left: -24px;
  background: var(--mint);
  transform: rotate(-4deg);
}

.case-work-mark .micro-icon {
  width: 34px;
  height: 34px;
}

.case-work-card:nth-child(2) .case-work-image {
  background: #f8e9bd;
}

.case-work-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid #a8c8e2;
  border-radius: 13px 30px 14px 20px;
  object-fit: contain;
  background: var(--white);
}

.case-work-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--outline);
}

.case-work-card figcaption span {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 900;
}

.case-work-card figcaption small {
  color: var(--route-dark);
  font-size: 12px;
  font-weight: 800;
}

.case-slot {
  position: relative;
  min-height: 280px;
  padding: 78px 28px 28px;
  border: 2px dashed #8db1cc;
  border-radius: 20px 42px 22px 28px;
  background: rgba(255, 255, 255, 0.66);
}

.case-slot:nth-child(2) {
  border-radius: 42px 20px 34px 20px;
  transform: translateY(24px);
}

.case-slot:nth-child(3) {
  border-radius: 22px 30px 46px 18px;
}

.case-slot::before {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--outline);
  border-radius: 50%;
  background: var(--sky);
  content: "";
}

.case-slot span {
  display: block;
  height: 14px;
  margin-top: 13px;
  border: 1px solid #a8c8e2;
  border-radius: 999px;
  background: #e3f3fc;
}

.case-slot span:nth-child(2) {
  width: 72%;
}

.case-slot span:nth-child(3) {
  width: 46%;
}

@media (max-width: 980px) {
  .home-page .hero-composition,
  .about-composition,
  .experience-composition,
  .cases-composition {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-composition {
    min-height: auto;
  }

  .cases-composition > article,
  .cases-composition > figure {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }

  .cases-composition > article {
    order: 1;
  }

  .cases-composition > figure {
    order: 2;
    width: min(72%, 620px);
    justify-self: start;
    transform: translateY(0) rotate(-0.8deg);
  }

  .recent-flow,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .recent-flow .update-card:nth-of-type(1),
  .recent-flow .update-card:nth-of-type(2),
  .capability-grid .capability-card:nth-child(1),
  .capability-grid .capability-card:nth-child(2) {
    grid-column: auto;
  }

  .recent-flow .update-card:nth-of-type(1) {
    min-height: 220px;
  }

  .recent-flow .update-card:nth-of-type(2) {
    min-height: 206px;
    margin-top: 44px;
  }

  .recent-flow .update-card:nth-of-type(3) {
    grid-column: 1 / -1;
    width: min(62%, 460px);
    min-height: 168px;
    margin-top: 2px;
    justify-self: center;
  }

  .recent-flow::before {
    top: 24px;
    right: auto;
    bottom: 20px;
    left: 50%;
    border-top: 0;
    border-left: 2px dashed #8db1cc;
  }

  .recent-connectors {
    display: none;
  }

  .capability-grid .capability-card:nth-child(1),
  .capability-grid .capability-card:nth-child(2) {
    min-height: 270px;
  }

  .capability-grid .capability-card:nth-child(2) {
    margin-top: 48px;
  }

  .capability-grid .capability-card:nth-child(3) {
    grid-column: 1 / -1;
    width: min(62%, 460px);
    min-height: 240px;
    margin-top: 0;
    justify-self: end;
  }

  .case-shelf {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
    gap: 26px;
  }

  .case-shelf .case-work-card:first-child,
  .case-shelf .case-work-card:nth-child(2) {
    grid-column: auto;
  }

  .case-shelf .case-work-card:nth-child(2) {
    margin-top: 72px;
  }

  .identity-stage {
    width: 100%;
    max-width: 760px;
    min-height: 0;
    gap: 24px;
    margin: 20px auto 0;
  }

  .identity-portrait {
    width: min(54%, 390px);
    margin-right: auto;
    margin-left: 5%;
  }

  .identity-card {
    right: auto;
    width: min(72%, 500px);
  }

  .identity-card::before {
    right: 12px;
  }

  .identity-card::after {
    right: 10px;
  }
}

@media (max-width: 760px) {
  .page-stack {
    gap: 78px;
  }

  .home-page .hero-composition,
  .about-composition,
  .experience-composition,
  .cases-composition {
    grid-template-columns: 1fr;
  }

  .hero-composition {
    min-height: auto;
  }

  .hero-board {
    padding-top: 8px;
  }

  .hero-board::after {
    width: 55%;
  }

  .hero-portrait {
    width: calc(100% - 18px);
    margin: 0 auto;
  }

  .section-heading-line,
  .journey-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .recent-flow,
  .capability-grid,
  .case-shelf {
    grid-template-columns: 1fr;
  }

  .recent-flow .update-card:nth-of-type(1),
  .recent-flow .update-card:nth-of-type(2),
  .recent-flow .update-card:nth-of-type(3),
  .capability-grid .capability-card:nth-child(1),
  .capability-grid .capability-card:nth-child(2),
  .capability-grid .capability-card:nth-child(3),
  .case-shelf .case-work-card:first-child,
  .case-shelf .case-work-card:nth-child(2) {
    grid-column: 1;
    width: auto;
    min-height: auto;
    margin-top: 0;
    justify-self: stretch;
  }

  .recent-flow::before {
    top: 5%;
    right: auto;
    bottom: 5%;
    left: 24px;
    border-top: 0;
    border-left: 2px dashed #8db1cc;
  }

  .update-card,
  .update-card:nth-of-type(1),
  .update-card:nth-of-type(2),
  .update-card:nth-of-type(3),
  .capability-card:nth-child(2),
  .case-slot:nth-child(2) {
    transform: none;
  }

  .case-work-card:nth-child(2) {
    margin-top: 0;
  }

  .cases-composition > article,
  .cases-composition > figure {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
    transform: none;
  }

  .cases-composition > article {
    order: 1;
  }

  .cases-composition > figure {
    order: 2;
  }

  .route-teaser {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .route-link {
    justify-self: start;
  }

  .identity-stage {
    min-height: 0;
    margin-top: 0;
    padding-bottom: 0;
    gap: 18px;
  }

  .identity-portrait {
    width: calc(100% - 22px);
  }

  .identity-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 12px);
    margin: 0 0 0 auto;
  }

  .capability-card {
    min-height: auto;
  }

  .career-map::before {
    left: 23px;
  }

  .career-map::after {
    left: 23px;
  }

  .career-map .career-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .career-map .career-marker {
    grid-column: 1;
  }

  .career-map .career-copy,
  .career-map .career-entry:nth-child(odd) .career-copy {
    grid-column: 2;
    text-align: left;
  }

  .case-slot {
    min-height: 220px;
  }

  .recent-connectors {
    display: none;
  }

  .update-card-icon,
  .capability-card-icon {
    width: 56px;
    height: 56px;
  }

  .identity-card::before {
    top: -32px;
    right: 10px;
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .identity-card::after {
    right: 8px;
    width: 62px;
    height: 62px;
  }

  .career-topline > .micro-icon,
  .career-map .career-entry:nth-child(odd) .career-topline > .micro-icon {
    top: -18px;
    right: -12px;
    left: auto;
    width: 50px;
    height: 50px;
    padding: 10px;
  }

  .case-work-mark {
    top: -20px;
    right: 12px;
    width: 58px;
    height: 58px;
  }

  .case-work-card:nth-child(2) .case-work-mark {
    right: auto;
    left: 12px;
  }
}

@media (max-width: 460px) {
  .identity-info-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .identity-info-block:nth-child(1) {
    grid-row: auto;
  }

  .identity-code {
    grid-template-columns: 1fr;
  }
}

/* Local canvas editor. It is revealed by JavaScript only on localhost. */
.editor-launch {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 0 18px 0 14px;
  border: 2px solid var(--outline);
  border-radius: 18px 9px 18px 9px;
  color: var(--route-dark);
  background: var(--pink);
  box-shadow: 6px 6px 0 var(--shadow-tint);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: right 240ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.editor-launch[hidden] {
  display: none;
}

.editor-launch:hover {
  box-shadow: 3px 3px 0 var(--shadow-tint);
  transform: translate(3px, 3px);
}

.editor-launch.has-changes::after {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--sand);
  content: "";
}

.editor-scrim {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: rgba(197, 230, 248, 0.54);
  backdrop-filter: blur(2px);
}

.editor-scrim[hidden] {
  display: none;
}

.editor-drawer {
  position: fixed;
  inset: 10px 10px 10px auto;
  z-index: 80;
  display: grid;
  width: 380px;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--outline);
  border-radius: 26px 12px 26px 12px;
  color: var(--ink);
  background-color: var(--cloud);
  background-image: radial-gradient(circle at 1px 1px, rgba(36, 107, 206, 0.14) 1px, transparent 0);
  background-size: 18px 18px;
  box-shadow: 9px 9px 0 var(--shadow-tint);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

body.editor-open {
  --page: min(1180px, calc(100vw - 438px));
  padding-right: 390px;
}

body.editor-open .editor-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

body.editor-open .editor-launch {
  right: 414px;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.9);
}

.editor-header small {
  display: block;
  margin-bottom: 3px;
  color: var(--route-dark);
  font-size: 11px;
  font-weight: 900;
}

.editor-header h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.035em;
}

.editor-header button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 50%;
  color: var(--route-dark);
  background: var(--sky);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  font: 900 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.editor-context {
  padding: 15px 22px 16px;
  border-bottom: 1px dashed #8db1cc;
  background: rgba(237, 248, 254, 0.92);
}

.editor-context > span {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--route-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 900;
}

.editor-context p {
  margin: 0;
  color: var(--route-dark);
  font-size: 12px;
  line-height: 1.55;
}

.editor-form {
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding: 18px 18px 28px;
  scrollbar-color: var(--outline) transparent;
}

.editor-form fieldset {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 18px 15px 16px;
  border: 1px solid var(--outline);
  border-radius: 17px 8px 17px 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 4px 0 var(--shadow-tint);
}

.editor-form legend {
  padding: 5px 9px;
  border: 1px solid var(--outline);
  border-radius: 7px;
  color: var(--route-dark);
  background: var(--sand);
  font-size: 12px;
  font-weight: 900;
}

.editor-field {
  display: grid;
  gap: 6px;
}

.editor-field > span {
  color: var(--route-dark);
  font-size: 12px;
  font-weight: 850;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid #8db1cc;
  border-radius: 9px 5px 9px 5px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.editor-field input {
  min-height: 42px;
  padding: 0 11px;
}

.editor-field textarea {
  min-height: 96px;
  padding: 10px 11px;
  resize: vertical;
}

.editor-field input:focus,
.editor-field textarea:focus {
  border-color: var(--route);
  outline: 3px solid rgba(185, 226, 250, 0.82);
  outline-offset: 1px;
}

.editor-field small {
  color: var(--route-dark);
  font-size: 10px;
}

.editor-actions {
  display: grid;
  width: auto;
  gap: 10px;
  margin: 0;
  padding: 15px 18px 18px;
  border-top: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.96);
}

.editor-actions > div {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 10px;
}

.editor-actions button {
  min-height: 44px;
  border: 2px solid var(--outline);
  border-radius: 10px 6px 10px 6px;
  color: var(--route-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.editor-reset {
  background: var(--white);
}

.editor-save {
  background: var(--mint);
  box-shadow: 4px 4px 0 var(--shadow-tint);
}

.editor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.editor-status {
  margin: 0;
  color: var(--route-dark);
  font-size: 12px;
  font-weight: 800;
}

.editor-status.is-saved {
  color: #247457;
}

.editor-status.is-error {
  color: #a13c62;
}

@media (max-width: 1200px) {
  body.editor-open .hero-composition,
  body.editor-open .about-composition,
  body.editor-open .experience-composition,
  body.editor-open .cases-composition {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.editor-open {
    --page: calc(100vw - 28px);
    padding-right: 0;
  }

  body.editor-open .editor-launch {
    right: 28px;
  }

  .editor-drawer {
    width: min(380px, calc(100vw - 20px));
  }
}

@media (min-width: 901px) {
  .editor-scrim {
    display: none;
  }
}

@media print {
  body.editor-open {
    --page: min(1180px, calc(100vw - 40px));
    padding-right: 0;
  }

  .editor-launch,
  .editor-scrim,
  .editor-drawer,
  .editor-toolbar {
    display: none !important;
  }

  body.inline-editing [data-bind] {
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Direct on-canvas editing. The layout stays locked while text becomes editable. */
body.inline-editing .editor-launch {
  display: none;
}

body.inline-editing [data-bind] {
  border-radius: 4px;
  outline: 1px dashed rgba(47, 110, 166, 0.72);
  outline-offset: 4px;
  caret-color: #d94f8f;
  cursor: text;
  transition: outline-color 140ms ease, box-shadow 140ms ease;
}

body.inline-editing [data-bind]:hover {
  outline-color: var(--route);
  box-shadow: 0 0 0 5px rgba(185, 226, 250, 0.46);
}

body.inline-editing [data-bind]:focus {
  z-index: 4;
  outline: 3px solid #df6aa1;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(241, 164, 199, 0.22);
}

.editor-toolbar {
  position: fixed;
  right: 50%;
  bottom: 22px;
  z-index: 100;
  display: grid;
  width: min(780px, calc(100vw - 40px));
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 2px solid var(--outline);
  border-radius: 22px 12px 22px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 8px 8px 0 var(--shadow-tint);
  transform: translateX(50%);
  backdrop-filter: blur(12px);
}

.editor-toolbar[hidden] {
  display: none;
}

.editor-mode {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.editor-mode > span:last-child {
  display: grid;
  gap: 2px;
}

.editor-mode strong {
  color: var(--route-dark);
  font-size: 14px;
}

.editor-mode small {
  overflow: hidden;
  color: #476986;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-mode-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--outline);
  border-radius: 12px 7px 12px 7px;
  color: var(--route-dark);
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--shadow-tint);
  font-size: 19px;
}

.editor-toolbar .editor-status {
  max-width: 180px;
  margin: 0;
  color: var(--route-dark);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.editor-toolbar .editor-actions {
  display: flex;
  width: auto;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.editor-toolbar .editor-actions button {
  min-height: 42px;
  padding: 0 14px;
  border: 2px solid var(--outline);
  border-radius: 11px 7px 11px 7px;
  color: var(--route-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.editor-toolbar .editor-reset {
  background: var(--white);
}

.editor-toolbar .editor-save {
  background: var(--mint);
  box-shadow: 3px 3px 0 var(--shadow-tint);
}

.editor-toolbar .editor-done {
  background: var(--sky);
}

.editor-toolbar .editor-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  box-shadow: none;
}

@media (max-width: 720px) {
  .editor-toolbar {
    bottom: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px;
  }

  .editor-mode small {
    display: none;
  }

  .editor-toolbar .editor-status {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    text-align: left;
  }

  .editor-toolbar .editor-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .editor-toolbar .editor-actions button {
    min-height: 38px;
    padding: 0 10px;
  }
}
