:root {
  --canvas: #fafaf7;
  --hero-canvas: #f1ece5;
  --surface: #ffffff;
  --ink: #0e0e0c;
  --body: #3a3a35;
  --muted: #8a8a85;
  --subtle: #b8b6ae;
  --border: #e8e6df;
  --accent: #e85d3c;
  --dark: #050505;
  --dark-soft: #1c1b19;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Inter", "PingFang SC", sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --script: "Petit Formal Script", cursive;
  --radius-media-large: 20px;
  --radius-media-small: 12px;
  --page-padding: 112px;
  --page-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--serif);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.site-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 20px var(--page-padding);
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
}

body[data-page="home"] .site-nav {
  background: var(--hero-canvas);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: var(--body);
  font-size: 14px;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact-button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  transition: transform 180ms ease, background-color 180ms ease;
}

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

.contact-icon {
  flex: 0 0 auto;
  width: 11px;
  height: 10px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}

main > section,
main > header,
main > div,
#projectContent > section,
#projectContent > header {
  max-width: var(--page-width);
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 600px);
  align-items: start;
  justify-content: space-between;
  min-height: 428px;
  padding: 96px var(--page-padding) 120px;
  background: var(--hero-canvas);
}

.hero-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-title-wrap h1 {
  position: relative;
  min-height: 116px;
  margin: 0;
  font-family: "PingFang TC", "PingFang SC", var(--sans);
  font-size: clamp(44px, 3.9vw, 56px);
  font-weight: 400;
  line-height: 58px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-title-wrap h1 span {
  display: block;
}

.hero-title-wrap h1 .hero-use {
  padding-left: 4.2em;
}

.hero-title-wrap h1 em {
  position: absolute;
  top: 68px;
  left: 0;
  font-family: var(--script);
  font-size: 48px;
  font-style: normal;
  letter-spacing: -1.92px;
}

.mono-signature {
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  color: var(--ink);
  font-size: 20px;
  line-height: 36px;
}

.hero-intro p {
  margin: 0;
}

.home-section {
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.about-preview {
  padding-top: 80px;
  padding-bottom: 40px;
}

.section-kicker {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
}

.section-icon {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  object-fit: contain;
}

.text-row {
  display: flex;
  gap: 40px;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.text-row > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
}

.text-row strong {
  font-size: 24px;
  font-weight: 600;
}

.text-row small {
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.text-row em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.row-link-meta {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.row-link-icon {
  flex: 0 0 auto;
  width: 11px;
  height: 10px;
  filter: brightness(0);
  opacity: 0.35;
}

.text-row-link {
  transition: color 180ms ease;
}

.text-row-link:hover strong,
.text-row-link:hover em {
  color: var(--accent);
}

.thought-row strong {
  line-height: 34px;
}

.beliefs > h2 {
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  font-size: 24px;
  font-weight: 600;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item button {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.accordion-item button strong {
  font-size: 20px;
  font-weight: 600;
}

.belief-icon {
  width: 20px;
  height: 20px;
}

.accordion-symbol {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.accordion-panel {
  max-width: 800px;
  padding: 0 0 24px 36px;
  color: var(--body);
  font-size: 15px;
  line-height: 28px;
}

.accordion-panel p {
  margin: 0;
}

.cases-section,
.vibe-section {
  padding-top: 40px;
  padding-bottom: 96px;
}

.cases-section .section-kicker {
  margin-bottom: 32px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.case-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(31, 28, 23, 0.06);
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.case-card:hover {
  box-shadow: 0 18px 44px rgba(31, 28, 23, 0.12);
  transform: translateY(-6px);
}

.case-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd5ca;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.case-card:hover .case-cover img {
  transform: scale(1.035);
}

.case-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px 24px;
  flex-direction: column;
}

.case-title-group {
  display: flex;
  gap: 4px;
  width: 100%;
  flex-direction: column;
}

.case-body h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.case-question {
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  line-height: normal;
}

.case-body > p {
  min-height: 44px;
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 22px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.vibe-section {
  display: flex;
  gap: 32px;
  flex-direction: column;
}

.vibe-heading {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.vibe-heading .section-kicker {
  margin-bottom: 0;
}

.vibe-heading > p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.vibe-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.vibe-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.vibe-card p {
  margin: 10px 0 0;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vibe-cover {
  aspect-ratio: 3456 / 1924;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
}

.vibe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vibe-four {
  background: linear-gradient(150.95deg, #1a4033 0%, #4d9973 71.429%);
}

.articles-preview {
  padding-top: 40px;
  padding-bottom: 120px;
}

.site-footer {
  padding: 48px max(var(--page-padding), calc((100vw - var(--page-width)) / 2 + var(--page-padding))) 96px;
  color: #fff;
  background: var(--dark);
}

.contact-card {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1216px;
  min-height: 436px;
  margin: 0 auto;
  padding: 96px 64px 48px;
  overflow: hidden;
  background: var(--dark-soft);
  border-radius: 28px;
  flex-direction: column;
  justify-content: space-between;
}

.contact-top,
.contact-bottom {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.contact-top p,
.contact-top span,
.contact-bottom small {
  font-family: var(--sans);
}

.contact-top p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.48px;
}

.status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
}

.status i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
}

.contact-bottom {
  align-items: flex-end;
}

.contact-qr {
  position: relative;
  flex: 0 0 auto;
  width: 218px;
  height: 218px;
  overflow: hidden;
  border-radius: 16px;
}

.contact-qr img {
  position: absolute;
  top: -43.47%;
  left: -17.52%;
  width: 134.95%;
  max-width: none;
  height: 171.88%;
  pointer-events: auto;
  -webkit-touch-callout: default;
}

.contact-bottom > div {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  font-family: var(--sans);
  flex-direction: column;
}

.contact-bottom small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.contact-bottom a {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.22px;
  overflow-wrap: anywhere;
}

.contact-bottom a:hover {
  color: #ff8e73;
}

.page-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 96px var(--page-padding) 64px;
  flex-direction: column;
}

.page-header h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.45;
}

.page-eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
}

.page-header > p,
.page-title-row + p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: normal;
}

.back-link {
  display: inline-flex;
  width: max-content;
  min-height: 44px;
  margin: -16px -1px;
  padding: 16px 1px;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.back-link-icon {
  width: 11px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("assets/figma/contact-arrow.svg") center / contain no-repeat;
  mask: url("assets/figma/contact-arrow.svg") center / contain no-repeat;
  transform: rotate(180deg);
  flex: 0 0 auto;
}

.back-link:hover {
  color: var(--accent);
}

.page-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.page-title-row h1 {
  margin: 0;
}

.page-title-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 96px;
  align-items: start;
  padding: 96px var(--page-padding) 64px;
}

.project-title {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-direction: column;
}

.project-title h1 {
  margin: 0;
  font-size: 48px;
  line-height: 58px;
}

.project-title > p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 32px;
}

.project-meta {
  display: flex;
  flex-direction: column;
}

.meta-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.meta-row dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.meta-row dd {
  margin: 0;
  font-size: 13px;
  line-height: 22px;
}

.project-hero {
  padding: 0 var(--page-padding) 40px;
}

.project-hero-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 1216 / 560;
  aspect-ratio: var(--media-ratio, 1216 / 560);
  background: #d9dce7;
  border-radius: var(--radius-media-large);
}

.project-hero-media img,
.project-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-media video {
  background: #111;
}

body[data-project="jianying"] .project-hero-media,
body[data-project="smart-edit"] .project-hero-media {
  background: #111;
}

.project-hero-media.is-jianxiaoying {
  aspect-ratio: 1216 / 684;
}

.case-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 72px var(--page-padding);
}

.case-label {
  position: sticky;
  top: 88px;
  align-self: start;
}

.case-label h2 {
  margin: 0;
  color: var(--subtle);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
}

.case-label h2.has-index {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.case-index {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.case-label-text {
  white-space: nowrap;
}

.case-label p {
  margin: 0;
  color: var(--subtle);
  font-size: 16px;
  line-height: 30px;
}

.case-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-width: 0;
  flex-direction: column;
}

.case-content h3,
.case-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.case-content > p,
.subblock p,
.case-paragraph,
.case-subcopy p {
  width: 100%;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.subblock {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-direction: column;
}

.case-subcopy {
  display: flex;
  gap: 16px;
  width: 100%;
  flex-direction: column;
}

.case-subcopy h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.case-stage-group,
.case-paragraph-group {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.case-paragraph-group {
  gap: 10px;
}

.case-stage-group {
  gap: 16px;
}

.case-stage-group h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.case-stage-group > p,
.case-paragraph-group p {
  width: 100%;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.stage-grid.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stage-card {
  display: flex;
  gap: 12px;
  min-height: 158px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
}

.stage-card small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.stage-card strong {
  font-size: 18px;
  font-weight: 600;
}

.stage-card p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 22px;
}

.media-frame {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius-media-large);
}

.media-frame.is-portrait {
  align-self: center;
  width: min(100%, 520px);
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-frame video {
  background: #111;
}

.media-frame figcaption,
.media-gallery-item figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(10, 10, 10, 0.72);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 18px;
  backdrop-filter: blur(8px);
}

.media-gallery {
  display: grid;
  gap: 20px;
  align-items: start;
  width: 100%;
}

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

.media-gallery.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-gallery.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-gallery-item {
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius-media-small);
}

.media-gallery-item img,
.media-gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-gallery-item video {
  background: #111;
}

.case-timeline {
  display: flex;
  gap: 0;
  width: 100%;
  padding: 48px;
  overflow: hidden;
  background: #f2f1ec;
  border: 1px solid #d9d6cf;
  border-radius: var(--radius-media-large);
  flex-direction: column;
}

.case-timeline-item {
  display: grid;
  position: relative;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 24px 0;
  border-bottom: 1px solid #d9d6cf;
}

.case-timeline-item:first-child {
  padding-top: 0;
}

.case-timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-timeline-rail {
  position: relative;
  display: flex;
  width: 20px;
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
}

.case-timeline-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  background: var(--body);
  border-radius: 50%;
  flex: none;
}

.case-timeline-line {
  position: absolute;
  top: 10px;
  bottom: -25px;
  left: 50%;
  width: 1px;
  background: #d9d6cf;
  transform: translateX(-50%);
}

.case-timeline-item:last-child .case-timeline-line {
  bottom: 0;
}

.case-timeline-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 432px;
  gap: 20px;
  min-width: 0;
  min-height: 256px;
  align-items: start;
}

.case-timeline-copy {
  display: flex;
  min-height: 256px;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.case-timeline-heading,
.case-timeline-meta {
  display: flex;
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
}

.case-timeline-heading {
  gap: 10px;
}

.case-timeline-meta {
  gap: 4px;
  padding-bottom: 24px;
}

.case-timeline-heading small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.case-timeline-heading h4 {
  margin: 0;
  color: var(--body);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.case-timeline-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 22px;
}

.case-timeline-meta p.is-result {
  color: var(--body);
}

.case-timeline-media {
  width: 432px;
  height: 256px;
  background: var(--surface);
}

.case-timeline-media img,
.case-timeline-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-related-article {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
  flex-direction: column;
}

.case-related-article > small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2px;
}

.case-related-title {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}

.case-related-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.case-related-title time {
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.case-related-article > p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 24px;
}

.case-related-article:hover h3 {
  color: var(--accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.metric-card {
  display: flex;
  gap: 8px;
  min-width: 0;
  min-height: 152px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
}

.metric-card strong {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.metric-card span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 20px;
}

.case-quote {
  display: flex;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 40px 48px;
  background: #f2f1ec;
  border-radius: 18px;
  flex-direction: column;
}

.case-quote small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
}

.case-quote p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.75;
}

.case-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overscroll-behavior-inline: contain;
}

.case-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
  line-height: 24px;
}

.case-table th,
.case-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-table th:last-child,
.case-table td:last-child {
  border-right: 0;
}

.case-table tbody tr:last-child td {
  border-bottom: 0;
}

.case-table th {
  color: var(--muted);
  background: #f5f4ef;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

.decision-card,
.case-highlight {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 48px;
  overflow: hidden;
  background: #f2f1ec;
  border-radius: 18px;
  flex-direction: column;
}

.decision-card small,
.case-highlight small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
}

.decision-card div {
  display: flex;
  gap: 0;
  width: 100%;
  flex-direction: column;
}

.decision-card p {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

.case-highlight {
  padding-top: 44px;
  padding-bottom: 44px;
}

.case-highlight p {
  width: 100%;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 40px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.direction-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-direction: column;
}

.direction-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 183 / 110;
  overflow: hidden;
  border-radius: var(--radius-media-small);
}

.direction-preview img,
.direction-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direction-card strong {
  font-size: 16px;
  font-weight: 600;
}

.direction-card p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 22px;
}

.case-disc {
  width: 100%;
  margin: 0;
  padding-left: 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.case-bullets {
  display: flex;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
}

.case-bullets li {
  position: relative;
  padding-left: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.case-bullets-plain li {
  font-size: 15px;
  line-height: 28px;
}

.case-callout {
  width: 100%;
  margin: 0;
  padding: 42px 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.6;
}

.metrics {
  display: flex;
  gap: 56px;
  width: 100%;
}

.metric {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.metric strong {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 500;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.page-loading {
  padding: 96px var(--page-padding);
  color: var(--muted);
  font-family: var(--mono);
}

.article-entries {
  padding: 0 var(--page-padding) 120px;
}

.article-header {
  padding-bottom: 48px;
}

.article-year {
  display: grid;
  grid-template-columns: 93px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 72px;
}

.article-year h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
}

.article-year span {
  height: 1px;
  background: var(--border);
}

.article-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.article-entry time {
  padding-top: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
}

.article-entry-body {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.article-entry-body small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
}

.article-entry-body h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.article-entry-body p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.article-entry-list {
  margin: 0;
  padding-left: 24px;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.thought-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 96px var(--page-padding) 64px;
  flex-direction: column;
}

.thought-header h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--body);
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
}

.thought-header > p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  line-height: 1.5;
}

.thought-back {
  margin-top: -16px;
}

.thought-section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 72px var(--page-padding) 48px;
}

.thought-label {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
}

.thought-label h2 {
  margin: 0;
  color: var(--subtle);
  font-size: 34px;
  font-weight: 600;
  line-height: 44px;
  overflow-wrap: anywhere;
}

.thought-label p {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 16px;
  line-height: 30px;
}

.thought-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-width: 0;
  flex-direction: column;
}

.thought-heading {
  width: 100%;
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.thought-subheading {
  width: 100%;
  margin: 0;
  color: var(--body);
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
}

.thought-paragraph {
  width: 100%;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.thought-caption {
  width: 100%;
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.thought-quote {
  width: 100%;
  margin: 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid #e5e4de;
  border-radius: 14px;
}

.thought-quote p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.thought-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.thought-value-card {
  display: flex;
  gap: 8px;
  min-width: 0;
  min-height: 158px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid #e5e4de;
  border-radius: 14px;
  flex-direction: column;
}

.thought-value-card small {
  color: #8a8a85;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.thought-value-card p {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.thought-media {
  display: flex;
  gap: 20px;
  width: 100%;
  margin: 0;
  flex-direction: column;
}

.thought-media img,
.thought-media video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border-radius: var(--radius-media-large);
  object-fit: contain;
}

.thought-media figcaption {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.thought-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.thought-interface-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  flex-direction: column;
}

.thought-interface-card small,
.thought-interface-card em {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.thought-interface-card h4 {
  margin: 0;
  color: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.thought-interface-card figure {
  width: 100%;
  height: 160px;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  border-radius: var(--radius-media-small);
}

.thought-interface-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thought-interface-card p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 22px;
}

.thought-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  width: 100%;
}

.thought-figure-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  flex-direction: column;
}

.thought-figure-card figcaption {
  color: var(--body);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.thought-figure-card img {
  width: 100%;
  height: auto;
  background: var(--canvas);
  border-radius: var(--radius-media-small);
  object-fit: contain;
}

.about-header-meta {
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 12px !important;
  line-height: 18px !important;
}

.about-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
  padding: 0 var(--page-padding) 120px;
}

.about-toc {
  position: sticky;
  top: 88px;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.about-toc-link {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 22px;
}

.about-toc-link:last-child {
  border-bottom: 0;
}

.about-toc-link span {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.about-toc-link em {
  color: var(--body);
  font-size: 13px;
  font-style: normal;
  line-height: 22px;
  white-space: nowrap;
}

.about-toc-link.is-active span,
.about-toc-link:hover span {
  color: var(--accent);
}

.about-sections {
  display: flex;
  gap: 64px;
  min-width: 0;
  flex-direction: column;
}

.about-section {
  display: flex;
  gap: 20px;
  min-width: 0;
  scroll-margin-top: 88px;
  flex-direction: column;
}

.about-section-header {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.about-section-header small {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 2px;
}

.about-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
}

.about-intro-copy,
.about-numbered-list,
.about-numbered-list article,
.about-experience {
  display: flex;
  flex-direction: column;
}

.about-intro-copy,
.about-numbered-list article {
  gap: 8px;
}

.about-intro-copy h3,
.about-experience h3,
.about-experience h4,
.about-numbered-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.about-intro-copy p,
.about-detail p,
.about-numbered-list article > p:not(.about-meta-line) {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  line-height: 30px;
}

.about-experience {
  gap: 16px;
}

.about-experience-head {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}

.about-experience-head time,
.about-meta-line {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}

.about-experience-head time {
  flex: none;
  white-space: nowrap;
}

.about-detail {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.about-detail::before {
  width: 3px;
  background: #ded9d2;
  content: "";
  flex: none;
}

.about-detail > div {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex-direction: column;
}

.about-pill-list {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-pill-list span {
  padding: 6px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.about-numbered-list {
  gap: 20px;
}

.contact-card.is-about {
  min-height: 436px;
  padding: 48px 64px;
}

.contact-card.is-about .contact-top {
  align-items: flex-start;
}

.about-footer-quote {
  display: flex;
  margin: 0;
  color: #f5f4ef !important;
  font-family: var(--serif) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 30px;
  letter-spacing: 0 !important;
  flex-direction: column;
}

@media (max-width: 1179px) {
  :root {
    --page-padding: 40px;
  }

  .nav-links {
    gap: 18px;
  }

  .home-hero,
  .project-header {
    gap: 56px;
  }

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

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

  .project-header {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .case-section {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 40px;
  }

  .thought-section {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 40px;
  }

  .about-body {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 56px;
  }

}

@media (max-width: 999px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: 0;
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .hero-title-wrap,
  .hero-intro {
    max-width: 760px;
  }

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

  .project-header {
    gap: 48px;
  }

  .case-section {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 24px;
  }

  .thought-section {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 24px;
  }

  .thought-label h2 {
    font-size: 22px;
  }

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

  .stage-grid,
  .stage-grid.is-four,
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-gallery.is-3,
  .media-gallery.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-timeline {
    padding: 32px;
  }

  .case-timeline-body {
    grid-template-columns: 1fr;
  }

  .case-timeline-copy {
    gap: 28px;
    min-height: 0;
  }

  .case-timeline-meta {
    padding-bottom: 0;
  }

  .case-timeline-media {
    width: 100%;
    height: auto;
    aspect-ratio: 432 / 256;
  }
}

@media (min-width: 768px) and (max-width: 999px) {
  body[data-project="smart-edit"] .case-section {
    grid-template-columns: 176px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --page-padding: 20px;
  }

  .site-nav {
    height: 64px;
    gap: 0;
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .nav-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--body);
    background: rgba(255, 255, 255, 0.52);
    border-color: rgba(14, 14, 12, 0.12);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 0;
    line-height: 1;
    margin-left: auto;
    backdrop-filter: blur(12px);
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .nav-toggle::before,
  .nav-toggle::after {
    position: absolute;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
    content: "";
    transition: transform 180ms ease;
  }

  .nav-toggle::before {
    transform: translateY(-3px);
  }

  .nav-toggle::after {
    transform: translateY(3px);
  }

  .nav-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
  }

  .nav-toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"]::after {
    transform: rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 58px;
    right: 20px;
    left: 20px;
    display: none;
    gap: 4px;
    width: calc(100% - 40px);
    padding: 6px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(14, 14, 12, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 56px rgba(31, 28, 23, 0.16);
    flex-direction: column;
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 11px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a[aria-current="page"] {
    color: var(--ink);
    background: var(--hero-canvas);
  }

  .nav-links a::after {
    display: none;
  }

  .contact-button {
    display: inline-flex;
    min-height: 44px;
    margin-left: 16px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .home-hero {
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .hero-title-wrap h1 {
    min-height: 68px;
    font-size: clamp(28px, 8.2vw, 32px);
    line-height: 34px;
    letter-spacing: -1.2px;
  }

  .hero-title-wrap h1 .hero-use {
    padding-left: 4.15em;
  }

  .hero-title-wrap h1 em {
    top: 36px;
    font-size: 30px;
    letter-spacing: -1.2px;
  }

  .hero-intro {
    gap: 24px;
    font-size: 16px;
    line-height: 30px;
  }

  .about-preview {
    padding-top: 56px;
  }

  .section-kicker {
    margin-bottom: 20px;
  }

  .text-row {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .text-row em {
    padding-top: 0;
  }

  .text-row small {
    line-height: 26px;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .site-footer {
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .contact-card {
    min-height: 0;
    padding: 40px 24px 32px;
    border-radius: 20px;
  }

  .contact-top,
  .contact-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-qr {
    width: 132px;
    height: 132px;
  }

  .contact-bottom > div {
    align-items: flex-start;
  }

  .contact-bottom a {
    font-size: 18px;
  }

  .page-header,
  .project-header,
  .thought-header {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .page-header h1,
  .project-title h1,
  .thought-header h1 {
    font-size: clamp(34px, 10vw, 38px);
  }

  .thought-header h1 {
    line-height: 1.45;
  }

  .page-title-row {
    gap: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .project-header {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .case-section {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .thought-section {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .case-label {
    top: 72px;
  }

  .thought-label {
    top: 72px;
  }

  .case-label h2 {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .case-label h2.has-index {
    gap: 4px;
    align-items: baseline;
    flex-direction: row;
  }

  .case-label h2.has-index .case-label-text {
    font-size: 16px;
    line-height: 1.45;
  }

  .case-label h2.has-index .case-index {
    font-size: 10px;
  }

  .thought-label h2 {
    font-size: 16px;
    line-height: 1.45;
  }

  .case-label p {
    font-size: 12px;
    line-height: 20px;
  }

  .thought-label p {
    font-size: 12px;
    line-height: 20px;
  }

  .thought-card-grid,
  .thought-value-grid,
  .thought-figure-grid {
    grid-template-columns: 1fr;
  }

  .thought-interface-card {
    padding: 14px;
  }

  .thought-heading {
    font-size: 20px;
    line-height: 30px;
  }

  .thought-subheading {
    font-size: 16px;
    line-height: 28px;
  }

  .thought-quote {
    padding: 20px;
  }

  .thought-quote p,
  .thought-figure-card figcaption {
    font-size: 16px;
    line-height: 26px;
  }

  .stage-grid,
  .stage-grid.is-four {
    grid-template-columns: 1fr;
  }

  .stage-grid.is-two {
    grid-template-columns: 1fr;
  }

  .case-timeline {
    padding: 16px;
  }

  .case-timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .case-timeline-item:first-child {
    padding-top: 0;
  }

  .case-timeline-item:last-child {
    padding-bottom: 0;
  }

  .case-timeline-line {
    bottom: -21px;
  }

  .case-timeline-item:last-child .case-timeline-line {
    bottom: 0;
  }

  .case-related-title {
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  .case-related-title h3 {
    font-size: 19px;
    line-height: 30px;
  }

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

  .media-gallery.is-2,
  .media-gallery.is-3,
  .media-gallery.is-4 {
    grid-template-columns: 1fr;
  }

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

  .metric-card {
    min-height: 132px;
    padding: 20px;
  }

  .direction-card {
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
  }

  .direction-card strong {
    font-size: 14px;
  }

  .direction-card p {
    font-size: 12px;
    line-height: 19px;
  }

  .decision-card,
  .case-highlight {
    padding: 28px;
  }

  .decision-card p {
    font-size: 18px;
    line-height: 30px;
  }

  .case-highlight p {
    font-size: 21px;
    line-height: 34px;
  }

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

  .case-callout {
    padding: 28px;
    font-size: 21px;
  }

  .case-quote {
    padding: 28px;
  }

  .case-quote p {
    font-size: 19px;
    line-height: 1.7;
  }

  .article-year-nav {
    top: 0;
  }

  .article-year {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .article-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .about-toc {
    position: static;
  }

  .about-toc-link em {
    white-space: normal;
  }

  .about-sections {
    gap: 56px;
  }

  .about-section {
    scroll-margin-top: 72px;
  }

  .about-experience-head {
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card.is-about {
    min-height: 0;
    padding: 40px 24px 32px;
  }
}

@media (max-width: 479px) {
  :root {
    --page-padding: 16px;
  }

  .site-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-links {
    right: 16px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .case-section {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
  }

  .thought-section {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .case-label h2.has-index .case-index {
    font-size: 9px;
  }

  .case-body {
    padding: 18px 18px 20px;
  }

  .case-body > p {
    min-height: 0;
  }

  .contact-card {
    gap: 48px;
    padding: 32px 20px 28px;
  }

  .contact-card.is-about {
    padding: 32px 20px 28px;
  }

  .contact-top,
  .contact-bottom {
    gap: 20px;
  }

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

  .case-callout {
    padding: 22px;
    font-size: 19px;
  }
}

@media (max-width: 359px) {
  :root {
    --page-padding: 14px;
  }

  .site-nav {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    font-size: 14px;
  }

  .nav-toggle {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .contact-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .nav-links {
    right: 14px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .case-section {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
  }

  .thought-section {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

  .case-label h2 {
    font-size: 14px;
  }

  .case-label h2.has-index .case-label-text {
    font-size: 14px;
  }

  .thought-label h2 {
    font-size: 14px;
  }

  .hero-title-wrap h1 .hero-use {
    padding-left: 4.7em;
  }
}

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

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