:root {
  --bg: #f5f6f4;
  --ink: #111616;
  --muted: #777f7c;
  --line: #d4d8d2;
  --soft: #e9ece8;
  --card: #ffffff;
  --accent: #087462;
  --dark: #101414;
  --blue: #dfe8f2;
  --radius: 8px;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

main,
.site-nav {
  max-width: 100vw;
  overflow-x: hidden;
}

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 244, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 800;
}

.site-nav nav {
  display: flex;
  gap: 18px;
  color: #5c6663;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--accent);
}

.landing,
.showcase,
.split-callout,
.compact-sections,
.footer-cta,
.detail {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 52px;
  align-items: center;
  padding: 66px 0 54px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  font-size: 50px;
  font-weight: 850;
}

h1 span {
  display: block;
}

h2 {
  font-size: 32px;
  font-weight: 830;
}

h3 {
  font-size: 22px;
  font-weight: 800;
}

.landing-copy p:not(.kicker) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #424b48;
  font-size: 17px;
}

.quick-links,
.footer-links,
.next-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 760;
}

.pill.dark {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

.hero-image,
.project-card,
.detail-hero img,
.gallery img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  overflow: hidden;
}

.hero-image {
  margin: 0;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

figcaption {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.showcase {
  padding: 54px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.project-card {
  display: grid;
  gap: 12px;
  padding: 10px;
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(27, 35, 32, 0.12);
}

.project-card.large {
  grid-column: span 2;
}

.project-card img,
.placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.project-card div:last-child {
  padding: 0 4px 6px;
}

.project-card p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.project-card span {
  display: block;
  margin-top: 6px;
  color: #56615d;
  font-size: 14px;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.placeholder span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

.dark-card {
  background: #151919;
}

.blue-card {
  background: linear-gradient(135deg, #dbe8f4, #eff3f6);
}

.blue-card span {
  background: #fff;
  color: #1e435f;
}

.soft-card {
  background: #edf1ed;
}

.soft-card span {
  background: #fff;
  color: #31413c;
}

.split-callout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr auto;
  gap: 28px;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-callout p {
  color: #444d4a;
}

.compact-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 50px 0;
}

.compact-sections a {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.compact-sections small {
  color: var(--accent);
  font-weight: 850;
}

.compact-sections strong {
  font-size: 26px;
  line-height: 1.18;
}

.compact-sections span {
  color: var(--muted);
}

.footer-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 72px;
}

.detail {
  padding: 58px 0 74px;
}

.detail-hero {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-hero.compact {
  max-width: 820px;
  padding-bottom: 16px;
}

.detail-hero p:not(.kicker) {
  margin: 0;
  color: #4d5754;
  font-size: 18px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
}

.detail-grid,
.feature-list,
.three-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-grid article,
.feature-list div,
.three-list article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.detail-grid p,
.feature-list p,
.three-list p,
.detail-grid li {
  color: #4b5652;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.detail-body {
  margin-top: 36px;
  min-width: 0;
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

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

.media-strip img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.media-strip img.panel-focus {
  object-fit: contain;
  object-position: left top;
  background: #eef3e9;
}

.media-strip img:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 7.8;
}

.section-media {
  margin: 0 0 18px;
}

.case-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin: 28px 0;
}

.lead-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(31, 39, 36, 0.045);
}

.lead-card.dark {
  background: var(--dark);
  color: #fff;
}

.lead-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.case-page .kicker,
.case-page .lead-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.lead-card strong {
  display: block;
  margin-top: 8px;
  color: inherit;
  font-size: 28px;
  line-height: 1.2;
}

.lead-card p {
  margin: 12px 0 0;
  color: #4d5754;
  font-size: 17px;
  line-height: 1.55;
}

.lead-card.dark p {
  color: #d7dfdc;
}

.lead-points {
  display: grid;
  gap: 10px;
}

.lead-points div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-points strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.lead-points p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.case-lead.flat {
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-lead.flat .lead-card {
  max-width: 980px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.case-lead.flat .lead-card.dark {
  color: var(--ink);
}

.case-lead.flat .lead-card strong {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 46px);
}

.case-lead.flat .lead-card.dark p {
  max-width: 920px;
  color: #3f4b47;
}

.case-lead.flat .lead-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-lead.flat .lead-points div {
  min-height: 150px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(31, 39, 36, 0.04);
}

.case-lead.flat .lead-points div:first-child {
  padding-left: 24px;
}

.factory-overview {
  margin: 42px 0 0;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.factory-overview h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.factory-overview > p:not(.kicker) {
  max-width: 900px;
  margin: 0;
  color: #3f4b47;
  font-size: 17px;
  line-height: 1.6;
}

.factory-system-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.factory-system-map div {
  position: relative;
  min-height: 158px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.factory-system-map div:last-child {
  border-right: 0;
}

.factory-system-map div::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  background: var(--bg);
  z-index: 1;
}

.factory-system-map div:last-child::after {
  content: none;
}

.factory-system-map .owned {
  background: #eef4ef;
}

.factory-system-map span,
.client-flow span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.factory-system-map strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.factory-system-map p {
  margin: 10px 0 0;
  color: #4e5a56;
  line-height: 1.5;
}

.client-flow {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.client-flow li {
  display: grid;
  grid-template-columns: 80px 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.client-flow strong {
  font-size: 22px;
  line-height: 1.25;
}

.client-flow p {
  margin: 0;
  color: #3f4b47;
  line-height: 1.6;
}

.smart-response h2 {
  max-width: 1000px;
  margin: 8px 0 22px;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: 0;
}

.response-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.response-layout > div {
  min-height: 170px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.response-layout strong {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.response-layout strong span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.response-layout p {
  margin: 0;
  color: #3f4b47;
  font-size: 17px;
  line-height: 1.6;
}

.case-note {
  padding: 22px 24px;
  border: 1px solid #d8ded9;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: #f8faf7;
}

.case-note h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.case-note p {
  margin: 0;
  color: #33403c;
  font-size: 17px;
  line-height: 1.6;
}

.vehicle-delivery-media {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.vehicle-delivery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.vehicle-delivery-media p {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.display-stack {
  display: grid;
  gap: 8px;
}

.display-stack img {
  aspect-ratio: 4 / 3;
}

.vehicle-main {
  aspect-ratio: 16 / 9;
}

.system-image {
  margin: 0;
}

.system-image img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.system-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tool-band {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.tool-band h2 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.3;
}

.tool-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.tool-logo-grid img {
  width: 100%;
  max-height: 92px;
  object-fit: contain;
}

.tool-note {
  grid-column: 2;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quality-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.quality-visual-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
}

.quality-visual-grid img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 14px;
}

.quality-visual-grid strong,
.quality-visual-grid span {
  display: block;
}

.quality-visual-grid strong {
  color: var(--ink);
  font-size: 18px;
}

.quality-visual-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.process-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  margin-top: 46px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.process-panel h2 {
  font-size: 30px;
}

.process-panel ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-panel li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.process-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.process-panel span {
  color: #cfd8d5;
}

.diagram-card,
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.diagram-card div,
.flow div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.diagram-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.diagram-card strong {
  display: block;
  margin-top: 10px;
  line-height: 1.25;
}

.flow div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #143c35;
  background: #e8f1ed;
  font-weight: 850;
  text-align: center;
}

.portfolio-home {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 54px;
  align-items: end;
  padding: 58px 0 38px;
}

.portfolio-hero h1 {
  max-width: 820px;
  font-size: 48px;
}

.hero-brief {
  display: grid;
  gap: 18px;
}

.hero-brief p {
  margin: 0;
  color: #3f4946;
  font-size: 17px;
}

.hero-strength {
  display: grid;
  grid-template-columns: 0.72fr repeat(4, 1fr);
  gap: 16px;
  align-items: start;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strength div {
  display: grid;
  gap: 6px;
}

.hero-strength strong {
  font-size: 20px;
}

.hero-strength span {
  color: var(--muted);
}

.career-map {
  display: grid;
  grid-template-columns: 0.7fr minmax(0, 3.3fr);
  gap: 16px;
  padding: 32px 0 44px;
  border-bottom: 1px solid var(--line);
}

.career-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.career-rail article {
  position: relative;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.career-rail article::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -11px;
  width: 10px;
  height: 1px;
  background: var(--line);
}

.career-rail article:first-child::before {
  display: none;
}

.career-rail span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.career-rail strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.22;
}

.career-rail p {
  margin: 10px 0 0;
  color: #56615d;
  font-size: 14px;
}

.hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.feature-image,
.work-card,
.mini-links a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(31, 39, 36, 0.045);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.feature-note {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
}

.feature-note span,
.work-copy small,
.summary-tile span,
.project-facts span,
.case-row span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.feature-note strong {
  font-size: 30px;
  line-height: 1.1;
}

.feature-note p {
  margin: 0;
  color: #cfd8d5;
}

.portfolio-section {
  padding: 56px 0 24px;
}

.section-title.compact {
  display: block;
  margin-bottom: 22px;
}

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

.company-block {
  padding: 28px 0 54px;
}

.company-block + .company-block {
  border-top: 1px solid var(--line);
}

.company-title {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  gap: 8px 18px;
  align-items: baseline;
  margin-bottom: 18px;
}

.company-title h3 {
  font-size: 30px;
}

.company-title .kicker {
  margin: 0;
}

.company-title span {
  grid-column: 1 / -1;
  color: var(--muted);
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  min-height: 280px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-card:not(.wide) {
  grid-template-columns: 1fr;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(27, 35, 32, 0.12);
}

.work-card.wide {
  grid-column: span 2;
}

.work-card.text-only {
  grid-template-columns: 1fr;
  min-height: 220px;
}

.work-card.text-only .work-copy {
  justify-content: center;
}

.work-card img,
.card-visual {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.thumbnail-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  min-height: 230px;
  background: var(--soft);
}

.thumbnail-pair img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.grouped-work {
  min-height: 330px;
}

.collage-visual {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 100%;
  min-height: 260px;
  padding: 10px;
  background: var(--soft);
}

.collage-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 6px;
  object-fit: cover;
  background: var(--card);
}

.collage-visual .collage-main {
  grid-row: span 2;
}

.grouped-list {
  gap: 18px;
  justify-content: center;
}

.grouped-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.grouped-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.grouped-list h3 {
  font-size: 22px;
}

.early-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  height: 100%;
  min-height: 270px;
  padding: 10px;
  background: var(--soft);
}

.early-visual figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  overflow: hidden;
}

.early-visual img {
  width: 100%;
  height: 100%;
  min-height: 185px;
  object-fit: cover;
}

.early-visual figcaption,
.annotated-image figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.mini-flow span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: #1e2b27;
  font-size: 12px;
  font-weight: 850;
}

.project-case {
  display: grid;
  gap: 20px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.game-page .project-case {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid #d8ded9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(31, 39, 36, 0.06);
}

.game-page .project-case.game-case-light {
  background: #f9faf7;
}

.game-page .project-case.metal-case {
  border-color: #2b2d2d;
  background: #202020;
  color: #fff;
}

.game-page .project-case.metal-case .project-case-title {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.game-page .project-case.metal-case .project-case-title p:not(.kicker) {
  color: #dadada;
}

.game-page .project-case + .project-case {
  margin-top: 34px;
}

.game-page .project-case-title {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ppt-style-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.ppt-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.ppt-info-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: #fff;
  color: #111616;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.ppt-info-card.center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  color: #5a58db;
  font-size: 22px;
  font-weight: 850;
  text-align: center;
}

.ppt-info-card h3 {
  margin-bottom: 14px;
  color: #f0a331;
  font-size: 26px;
  text-align: center;
}

.ppt-info-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #111616;
  font-size: 18px;
  line-height: 1.35;
}

.ppt-info-card li::before {
  content: "✓";
  margin-right: 8px;
  color: #111616;
  font-weight: 900;
}

.ppt-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ppt-main > h3 {
  color: #f06d47;
  font-size: 30px;
  text-align: center;
}

.td-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.purple-feature-list {
  display: grid;
  gap: 10px;
}

.purple-feature-list strong {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #5a58db;
  color: #fff;
  font-size: 17px;
  line-height: 1.35;
}

.dark-main {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(23, 16, 16, 0.83), rgba(23, 16, 16, 0.83)),
    url("assets/ppt/99.png") center / cover;
}

.dark-main > h3 {
  color: #a9a1ff;
}

.implementation-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 14px;
}

.implementation-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 250px;
  padding: 18px;
  border-radius: 18px;
  background: #5a58db;
  color: #fff;
  text-align: center;
}

.implementation-grid p {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.sprite-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.sprite-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.22);
}

.boss-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.boss-shots img {
  width: 100%;
  min-height: 80px;
  object-fit: cover;
  border-radius: 2px;
}

.boss-shots img:first-child {
  grid-column: 1 / -1;
}

.history-box {
  margin-top: 14px;
  padding: 22px 26px;
  border-radius: 18px;
  background: #fff;
  color: #4a4a4a;
}

.history-box h3 {
  margin-bottom: 14px;
  color: #f06d47;
  font-size: 28px;
  text-align: center;
}

.history-box ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
}

.history-box li {
  line-height: 1.55;
}

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

.project-overview div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.project-overview span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-overview strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.labeled-block {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.block-heading {
  margin-bottom: 18px;
}

.block-heading h2 {
  font-size: 30px;
}

.detail-heading {
  margin: 34px 0 0;
  padding-top: 0;
}

.detail-heading .kicker {
  margin-bottom: 0;
}

.project-case-title {
  max-width: 820px;
}

.project-case-title h2 {
  font-size: 30px;
}

.project-case-title p:not(.kicker) {
  margin: 12px 0 0;
  color: #44504c;
  font-size: 17px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.direction-section {
  padding: 46px 0 0;
}

.direction-section .block-heading {
  margin-bottom: 14px;
}

.flow-diagram.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.flow-diagram div {
  min-height: 168px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.flow-diagram span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.flow-diagram strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.flow-diagram p {
  margin: 10px 0 0;
  color: #56615d;
  font-size: 14px;
}

.flow-diagram.process-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-diagram.process-strip div {
  min-height: 170px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(31, 39, 36, 0.04);
}

.flow-diagram.process-strip div:first-child {
  padding-left: 24px;
}

.flow-diagram.process-strip strong {
  font-size: 20px;
}

.flow-diagram.process-strip p {
  max-width: 260px;
}

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

.game-project-grid article {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.game-project-grid span,
.logic-flow span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.game-project-grid h3 {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.game-project-grid p {
  margin: 10px 0 0;
  color: #4d5754;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.game-detail-grid.emphasis-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}

.game-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.game-shot-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 6px;
  background: var(--card);
}

.metal-shot-grid {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.metal-shot-grid img {
  width: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--card);
}

.keyword-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid #cfd8d3;
  border-radius: var(--radius);
  background: #f4f7f3;
}

.keyword-panel h3 {
  font-size: 30px;
  line-height: 1.15;
}

.keyword-panel p {
  margin: 0;
  color: #3f4b47;
}

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

.keyword-grid strong {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d7ddd8;
  border-radius: 6px;
  background: #fff;
  color: #111616;
  font-size: 15px;
}

.note-text {
  padding-top: 12px;
  border-top: 1px solid #d7ddd8;
}

.logic-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.logic-flow.compact-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logic-flow div {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.logic-flow strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.logic-flow p {
  margin: 10px 0 0;
  color: #56615d;
  font-size: 14px;
}

.wide-image {
  max-width: none;
}

.wide-image img {
  aspect-ratio: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.module-diagram {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.module-diagram > div {
  position: relative;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.module-diagram > div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  width: 13px;
  height: 1px;
  background: var(--accent);
}

.module-diagram span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.module-diagram strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.module-diagram p {
  margin: 10px 0 0;
  color: #56615d;
  font-size: 14px;
}

.diagram-module {
  border-color: rgba(8, 116, 98, 0.45) !important;
  background: #fbfffd !important;
}

.module-parts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.module-parts p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--soft);
  color: #1e2b27;
  font-weight: 800;
}

.system-diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  grid-template-areas:
    "source module chair"
    "demo event chair"
    "demo vehicle chair";
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(8, 116, 98, 0.16) 31% 32%, transparent 32% 64%, rgba(8, 116, 98, 0.16) 64% 65%, transparent 65%),
    linear-gradient(180deg, transparent 0 48%, rgba(8, 116, 98, 0.12) 48% 49%, transparent 49%);
}

.system-node {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.system-node.source { grid-area: source; }
.system-node.module {
  grid-area: module;
  border-color: rgba(8, 116, 98, 0.5);
  background: #fbfffd;
}
.system-node.chair {
  grid-area: chair;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #101414;
  color: #fff;
}
.system-node.event { grid-area: event; }
.system-node.vehicle { grid-area: vehicle; }
.system-node.demo { grid-area: demo; }

.system-node span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.system-node.chair span,
.system-node.chair p {
  color: #cfd8d5;
}

.system-node strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.system-node p {
  margin: 10px 0 0;
  color: #56615d;
  font-size: 14px;
}

.system-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.system-figure svg {
  display: block;
  width: 100%;
  height: auto;
  background: #f7f8f6;
}

.system-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.system-figure .zone {
  fill: #eef1ed;
  stroke: #d5dad4;
  stroke-width: 1.5;
}

.system-figure .zone.demo {
  fill: #f0f1f7;
}

.system-figure .zone-label {
  fill: #087462;
  font-size: 18px;
  font-weight: 850;
}

.system-figure .box {
  stroke-width: 1.5;
}

.system-figure .box.light {
  fill: #fff;
  stroke: #d4d8d2;
}

.system-figure .box.primary {
  fill: #fbfffd;
  stroke: #087462;
}

.system-figure .box.dark {
  fill: #101414;
  stroke: #101414;
}

.system-figure .box.event,
.system-figure .box.calc {
  fill: #fff4dc;
  stroke: #d99a25;
}

.system-figure .event-part {
  fill: #fff;
  stroke: #e0b45f;
}

.system-figure .event-part-text {
  fill: #111616;
  font-size: 14px;
  font-weight: 850;
}

.system-figure .box.sample {
  fill: #4f55d9;
  stroke: #4f55d9;
}

.system-figure .box-title {
  fill: #111616;
  font-size: 19px;
  font-weight: 850;
}

.system-figure .box-sub {
  fill: #56615d;
  font-size: 14px;
  font-weight: 700;
}

.system-figure .invert {
  fill: #fff;
}

.system-figure .link {
  fill: none;
  stroke: #087462;
  stroke-width: 2;
  marker-end: url(#arrow);
}

.system-figure .link.thin {
  stroke-width: 1.7;
}

.system-figure .link.trunk {
  marker-end: none;
}

.system-figure marker path {
  fill: #087462;
}

.case-list.compact {
  border-top: 1px solid var(--line);
}

.annotated-image {
  max-width: 760px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.annotated-image img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.annotated-image.contain-image img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #fff;
}

.game-page .annotated-image.contain-image img {
  width: 100%;
}

.card-visual {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 22px;
}

.card-visual span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 850;
}

.blue-card.card-visual span {
  background: #fff;
  color: #1e435f;
}

.work-copy {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 10px;
  padding: 22px;
}

.work-copy h3 {
  font-size: 26px;
}

.work-copy p {
  margin: 0;
  color: #4d5754;
}

.work-split {
  display: grid;
  gap: 10px;
}

.work-split div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.work-split strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.work-split p {
  font-size: 14px;
  line-height: 1.45;
}

.work-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.work-copy li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: #34403c;
  font-size: 12px;
  font-weight: 800;
}

.work-copy .quick-links {
  margin-top: 6px;
}

.game-page {
  display: grid;
  gap: 34px;
}

.game-showcase {
  display: grid;
  gap: 24px;
  padding: 0;
  border: 1px solid #d8ded9;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fbfcfa 100%);
  color: #111616;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(31, 39, 36, 0.06);
}

.game-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 12%, var(--line) 88%, transparent 100%);
}

.game-showcase > *:not(.game-case-head) {
  margin-left: 28px;
  margin-right: 28px;
}

.game-showcase > *:last-child {
  margin-bottom: 28px;
}

.game-case-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #101414 0%, #17211e 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.game-case-head h2 {
  font-size: 34px;
}

.game-case-head p:not(.kicker) {
  margin: 10px 0 0;
  max-width: 760px;
  color: #d8dfdc;
  font-size: 17px;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.game-actions .pill {
  border-color: rgba(255, 255, 255, 0.34);
  background: #fff;
  color: #101414;
  text-decoration: none;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.meta-pills span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: #fff;
  color: #101414;
  font-size: 13px;
  font-weight: 850;
}

.game-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.game-two-column.runner-layout {
  grid-template-columns: 1fr;
}

.runner-layout .web-info-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.runner-layout .game-figure img {
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #050505;
}

.game-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.game-figure img {
  display: block;
  width: 100%;
}

.game-figure.large-contain img,
.game-figure.diagram-full img {
  object-fit: contain;
}

.game-figure.diagram-full {
  background: #fff;
}

.game-figure.diagram-full img {
  max-height: 760px;
}

.game-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.web-info-stack {
  display: grid;
  gap: 14px;
}

.web-info-stack article,
.project-summary-band article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 39, 36, 0.04);
}

.web-info-stack h3,
.project-summary-band h3,
.feature-card-grid h3,
.history-callout h3 {
  color: #087462;
  font-size: 22px;
}

.web-info-stack ul,
.feature-card-grid ul,
.history-callout ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
}

.web-info-stack p,
.web-info-stack li,
.project-summary-band p,
.feature-card-grid li,
.history-callout li {
  color: #111616;
  line-height: 1.55;
}

.web-info-stack li,
.feature-card-grid li {
  font-size: 16px;
  font-weight: 650;
}

.web-info-stack article {
  background: #fff;
}

.web-info-stack h3 {
  color: #006f5e;
}

.web-info-stack li {
  color: #0d1412;
}

.project-summary-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.feature-card-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 39, 36, 0.04);
}

.related-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

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

.related-images.sprites {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-images.ui-images img {
  object-fit: contain;
  background: #eef3e9;
}

.related-images img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.related-images.boss-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-images.boss-images img {
  height: 118px;
}

.related-images.sprites img {
  height: 82px;
  object-fit: contain;
  background: #f2f4f1;
}

.history-callout {
  padding: 24px 28px;
  border: 1px solid #d8ded9;
  border-radius: var(--radius);
  background: #fff;
  color: #343f3b;
}

.history-callout h3 {
  color: #f06d47;
  text-align: center;
}

.mechanic-map {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #d8ded9;
  border-radius: var(--radius);
  background: #f8faf7;
  color: #111616;
}

.mechanic-title {
  display: grid;
  gap: 4px;
}

.mechanic-title h3 {
  color: #111616;
  font-size: 26px;
}

.mechanic-intro {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #d8ded9;
  border-left: 5px solid #087462;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.mechanic-intro strong {
  color: #087462;
  font-size: 20px;
  line-height: 1.35;
}

.mechanic-intro span {
  color: #25302c;
  font-size: 17px;
}

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

.mechanic-lanes article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 20px;
  border: 1px solid #d8ded9;
  border-radius: var(--radius);
  background: #fff;
  color: #313a37;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.mechanic-lanes h3 {
  color: #087462;
  font-size: 23px;
  text-align: left;
}

.mechanic-lanes p {
  margin: 0;
  color: #343f3b;
  line-height: 1.45;
  text-align: left;
}

.runner-sprites {
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  min-height: 110px;
  padding-top: 10px;
  border-top: 1px solid #e1e5e1;
}

.runner-sprites img {
  max-width: 118px;
  max-height: 102px;
  object-fit: contain;
  background: #111;
}

.runner-sprites.wide img {
  max-width: 220px;
}

.runner-sprites.obstacle-set img {
  max-width: 86px;
  max-height: 86px;
}

.skill-strip {
  display: grid;
  grid-template-columns: 0.7fr repeat(3, 1fr);
  gap: 16px;
  align-items: start;
  padding: 54px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-strip div {
  display: grid;
  gap: 6px;
}

.skill-strip strong {
  font-size: 22px;
}

.skill-strip span {
  color: var(--muted);
}

.mini-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 48px 0 12px;
}

.mini-links a {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
}

.mini-links small {
  color: var(--accent);
  font-weight: 850;
}

.mini-links strong {
  font-size: 24px;
}

.case-page {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 46px;
  align-items: end;
  margin-bottom: 28px;
}

.portfolio-home *,
.case-page * {
  min-width: 0;
}

.case-hero h1 {
  max-width: 760px;
  font-size: 46px;
}

.case-hero p {
  margin: 18px 0 0;
  color: #4d5754;
  font-size: 18px;
}

.case-meta {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.case-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.case-meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.case-meta strong {
  text-align: right;
  min-width: 0;
  overflow-wrap: break-word;
}

.case-main-image {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}

.case-main-image img {
  width: 100%;
  aspect-ratio: 16 / 7.8;
  object-fit: cover;
}

.case-main-image.rio-hero-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.case-main-image.rio-hero-pair img {
  height: 360px;
  aspect-ratio: auto;
  object-fit: cover;
}

.case-main-image.rio-hero-pair img:first-child {
  object-position: center;
}

.case-main-image.rio-hero-pair img:last-child {
  object-position: center;
}

.rio-brief {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.34fr);
  gap: 24px;
  align-items: start;
  margin-top: 46px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.rio-brief-title {
  min-height: 286px;
  padding: 28px;
  border-radius: var(--radius);
  background: #101616;
  color: #fff;
  box-shadow: 0 14px 34px rgba(31, 39, 36, 0.12);
}

.rio-brief-title .kicker {
  color: #37b99f;
}

.rio-brief-title h2 {
  margin: 8px 0 12px;
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.14;
  letter-spacing: 0;
}

.rio-scope h2 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.rio-brief-title p:last-child {
  margin: 0;
  color: #d6dfdc;
  font-size: 15px;
  line-height: 1.58;
}

.rio-scope .block-heading > p:last-child {
  margin: 0;
  color: #3f4b47;
  font-size: 18px;
  line-height: 1.62;
}

.rio-principles {
  display: grid;
  gap: 10px;
  margin: 0;
  counter-reset: rio-principle;
  border-top: 0;
}

.rio-principles div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: start;
  min-height: 94px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: rio-principle;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.rio-principles div::before {
  content: counter(rio-principle, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  grid-row: span 2;
}

.rio-principles dt {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.rio-principles dd {
  margin: 0;
  color: #4e5a56;
  font-size: 14px;
  line-height: 1.52;
}

.rio-scope {
  margin-top: 64px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.rio-scope .block-heading {
  max-width: 880px;
}

.rio-improvement-map {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.rio-lane {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  gap: 34px;
  min-height: 0;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

.lane-summary {
  padding: 0;
}

.lane-summary span,
.lane-flow span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.lane-summary strong {
  display: block;
  margin-top: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.14;
}

.lane-summary p {
  margin: 12px 0 0;
  color: #4e5a56;
  font-size: 16px;
  line-height: 1.58;
}

.lane-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  border-left: 0;
  list-style: none;
}

.lane-flow::before {
  content: "작업 방향";
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.lane-flow li {
  position: relative;
  padding: 6px 0 0;
  border-right: 0;
  background: transparent;
}

.lane-flow li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -28px;
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.lane-flow span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 123, 105, 0.1);
}

.lane-flow strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.lane-flow p {
  margin: 10px 0 0;
  color: #4e5a56;
  font-size: 15px;
  line-height: 1.5;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.summary-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-block {
  margin: 30px 0;
}

.summary-block .block-heading {
  max-width: 760px;
}

.summary-block h2 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
}

.summary-block .block-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.summary-tile {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.summary-tile strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.18;
}

.summary-tile p {
  margin: 8px 0 0;
  color: #4d5754;
}

.contact-note {
  align-self: end;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-note strong {
  display: block;
  font-size: 20px;
  line-height: 1.35;
}

.contact-note span {
  display: block;
  margin-top: 10px;
  color: #5f6965;
  line-height: 1.5;
}

.contact-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.contact-row:first-child {
  border-top: 0;
}

.contact-row span {
  color: var(--accent);
  font-weight: 800;
}

.contact-row strong {
  font-size: 24px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-row em {
  color: #5f6965;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.contact-row:hover strong,
.contact-row:focus-visible strong {
  color: var(--accent);
}

.contact-row:focus-visible {
  outline: 3px solid rgba(0, 126, 102, 0.18);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .contact-note {
    align-self: stretch;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .contact-row strong {
    font-size: 20px;
  }

  .contact-row em {
    width: fit-content;
  }
}

.summary-grid.scope-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.summary-grid.scope-list .summary-tile {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.summary-grid.scope-list .summary-tile span {
  display: block;
  padding-top: 0;
}

.summary-grid.scope-list .summary-tile strong {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.22;
}

.summary-grid.scope-list .summary-tile p {
  margin-top: 6px;
  max-width: 460px;
  line-height: 1.5;
}

.case-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  padding: 46px 0 0;
}

.case-section h2 {
  grid-column: 1;
  font-size: 18px;
}

.case-section > *:not(h2) {
  grid-column: 2;
}

.case-section.full-section {
  display: block;
}

.case-section.full-section h2 {
  margin: 0 0 18px;
}

.case-section.full-section > .kicker {
  margin: 0 0 18px;
}

.case-intro {
  max-width: 980px;
  margin: 0;
  color: #33403c;
  font-size: 17px;
  line-height: 1.6;
}

.section-lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #4d5754;
  font-size: 17px;
  line-height: 1.6;
}

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

.motion-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101414;
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.motion-shot img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #101414;
}

.motion-shot figcaption {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.case-media {
  width: min(100%, 760px);
  margin: 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(31, 39, 36, 0.04);
}

.case-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-media.pair {
  width: min(100%, 920px);
}

.case-media.triple {
  width: min(100%, 1040px);
}

.case-media.pair > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.case-media.triple > div {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 0;
}

.case-media.pair > div img + img {
  border-left: 1px solid var(--line);
}

.case-media.triple > div img + img {
  border-left: 1px solid var(--line);
}

.case-media.pair img {
  height: 230px;
}

.case-media.triple img {
  height: 230px;
}

.case-media.marine-gallery {
  width: min(100%, 1040px);
}

.case-media.marine-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.case-media.marine-gallery img {
  height: 240px;
}

.case-media.marine-gallery img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

.case-media.marine-gallery img:nth-child(2),
.case-media.marine-gallery img:nth-child(3) {
  border-top: 1px solid var(--line);
}

.case-media.marine-gallery img:nth-child(3) {
  border-left: 1px solid var(--line);
}

.marine-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 34px;
  width: min(100%, 1040px);
  margin: 34px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.marine-notes article {
  min-width: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.marine-notes h3 {
  margin: 0 0 12px;
  color: #08100e;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.marine-notes p {
  margin: 0;
  color: #3d4945;
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
}

.marine-notes strong {
  color: #08100e;
  font-weight: 800;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1040px);
}

.reference-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reference-card h3 {
  margin: 0 0 18px;
  color: #08100e;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: 0;
}

.reference-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.reference-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.reference-card dt {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.55;
}

.reference-card dd {
  margin: 0;
  color: #343f3b;
  line-height: 1.55;
  word-break: keep-all;
}

.case-media.environment-gallery {
  width: min(100%, 1040px);
}

.case-media.environment-gallery > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.case-media.environment-gallery img {
  height: 260px;
}

.case-media.environment-gallery img:first-child {
  object-fit: cover;
  object-position: left top;
}

.case-media.environment-gallery img:nth-child(2) {
  border-left: 1px solid var(--line);
  object-position: center;
}

.case-media.environment-gallery img:nth-child(3) {
  grid-column: 1 / -1;
  height: 320px;
  border-top: 1px solid var(--line);
  object-position: center;
}

.case-media.pair img:first-child {
  object-position: center;
}

.case-media.pair img:last-child {
  object-position: center;
}

.case-media.contain img,
.case-media.pair.contain-first img:first-child,
.case-media.triple.contain-first img:first-child {
  object-fit: contain;
  object-position: left top;
  background: #eef3e9;
}

.case-media.contain img {
  height: 320px;
}

.case-media.architecture-media {
  width: min(100%, 1040px);
  background: #fff;
}

.case-media.architecture-media img {
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.case-media.seoul-city-media {
  width: min(100%, 1040px);
  background: #fff;
}

.case-media.seoul-city-media img {
  height: auto;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.constraints-section {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.case-media figcaption {
  padding: 10px 12px;
  color: #33403c;
  font-size: 14px;
  font-weight: 760;
}

.work-lead {
  position: relative;
  margin: 54px 0 0;
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
}

.work-lead::before {
  content: none;
}

.work-lead h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: 0;
}

.work-lead p:last-child {
  max-width: 860px;
  margin: 0;
  color: #33403c;
  font-size: 17px;
  line-height: 1.6;
}

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

.case-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.case-row p {
  margin: 0;
  color: #343f3b;
}

.row-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.row-points p {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #343f3b;
  line-height: 1.55;
}

.row-points strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.project-facts div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 12px rgba(31, 39, 36, 0.035);
  font-weight: 760;
}

@media (max-width: 900px) {
  *,
  *::before,
  *::after {
    max-width: 100%;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .site-nav nav {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landing,
  .project-grid,
  .split-callout,
  .compact-sections,
  .footer-cta,
  .detail-grid,
  .feature-list,
  .three-list,
  .game-project-grid,
  .game-detail-grid,
  .game-two-column,
  .game-case-head,
  .project-summary-band,
  .feature-card-grid,
  .mechanic-lanes,
  .ppt-style-layout,
  .td-visual-row,
  .implementation-grid,
  .logic-flow,
  .logic-flow.compact-flow,
  .gallery,
  .media-strip,
  .media-strip.two,
  .case-lead,
  .project-overview,
  .vehicle-delivery-media,
  .tool-band,
  .tool-logo-grid,
  .quality-visual-grid,
  .process-panel,
  .process-panel li,
  .diagram-card,
  .flow {
    grid-template-columns: 1fr;
  }

  .game-project-grid article,
  .logic-flow div {
    min-height: auto;
  }

  .case-section h2,
  .case-section > *:not(h2),
  .tool-note {
    grid-column: 1;
  }

  .landing,
  .showcase,
  .split-callout,
  .compact-sections,
  .footer-cta,
  .detail {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing {
    padding: 44px 0 34px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  .project-card.large {
    grid-column: span 1;
  }

  .game-showcase > *:not(.game-case-head) {
    margin-left: 18px;
    margin-right: 18px;
  }

  .game-showcase > *:last-child {
    margin-bottom: 18px;
  }

  .section-title,
  .footer-cta {
    align-items: start;
    flex-direction: column;
  }

  .detail-grid article,
  .feature-list div,
  .three-list article {
    width: 100%;
  }

  .detail p,
  .detail li,
  .landing p,
  .project-card span {
    overflow-wrap: break-word;
    word-break: keep-all;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .landing,
  .showcase,
  .split-callout,
  .compact-sections,
  .footer-cta,
  .detail {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-copy,
  .landing-copy p,
  .section-title,
  .project-card div:last-child {
    max-width: 100%;
  }

  .detail-grid article,
  .feature-list div,
  .three-list article {
    padding: 18px;
  }

  .detail-grid,
  .feature-list,
  .three-list {
    width: 100%;
  }

  .landing-copy p {
    width: auto;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .project-card img,
  .placeholder {
    aspect-ratio: 4 / 3;
  }

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

@media (max-width: 900px) {
  .landing,
  .showcase,
  .split-callout,
  .compact-sections,
  .footer-cta,
  .detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .portfolio-home,
  .case-page {
    width: calc(100vw - 40px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .portfolio-hero,
  .hero-feature,
  .hero-strength,
  .career-map,
  .career-rail,
  .flow-diagram,
  .module-diagram,
  .game-project-grid,
  .game-detail-grid,
  .game-two-column,
  .game-case-head,
  .project-summary-band,
  .feature-card-grid,
  .mechanic-lanes,
  .ppt-style-layout,
  .td-visual-row,
  .implementation-grid,
  .logic-flow,
  .logic-flow.compact-flow,
  .company-title,
  .work-card,
  .skill-strip,
  .case-hero,
  .summary-grid,
  .case-section,
  .case-lead,
  .case-row {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    gap: 22px;
    padding: 42px 0 28px;
  }

  .portfolio-hero h1,
  .case-hero h1 {
    font-size: 34px;
  }

  .hero-feature {
    gap: 10px;
  }

  .feature-image img,
  .work-card img,
  .card-visual,
  .case-main-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .collage-visual {
    min-height: 240px;
  }

  .feature-note {
    padding: 20px;
  }

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

  .work-card.wide {
    grid-column: span 1;
  }

  .skill-strip {
    gap: 18px;
    padding: 40px 0;
  }

  .hero-strength {
    gap: 18px;
    padding: 24px 0 32px;
  }

  .mini-links {
    grid-template-columns: 1fr;
  }

  .case-page {
    padding-top: 42px;
  }

  .case-section {
    gap: 14px;
    padding-top: 36px;
  }

  .case-row {
    gap: 8px;
  }

  .row-points {
    grid-template-columns: 1fr;
  }

  .row-points p {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .portfolio-home h1,
  .portfolio-home h2,
  .portfolio-home h3,
  .portfolio-home p,
  .case-page h1,
  .case-page h2,
  .case-page h3,
  .case-page p,
  .case-page strong,
  .case-page span {
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .case-meta div {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .case-meta strong {
    text-align: left;
  }

  .case-main-image,
  .feature-image,
  .work-card,
  .summary-tile,
  .case-meta {
    width: 100%;
    max-width: 100%;
  }

  .case-lead.flat .lead-points,
  .summary-grid.scope-list,
  .rio-brief,
  .rio-lane,
  .lane-flow,
  .flow-diagram.process-strip,
  .marine-notes,
  .reference-grid,
  .case-media.triple > div,
  .case-media.marine-gallery > div,
  .case-media.environment-gallery > div {
    grid-template-columns: 1fr;
  }

  .case-media.marine-gallery img:first-child,
  .case-media.marine-gallery img,
  .case-media.environment-gallery img:first-child,
  .case-media.environment-gallery img {
    height: 220px;
  }

  .flow-diagram.process-strip div {
    padding: 20px;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .flow-diagram.process-strip div:first-child {
    border-top: 1px solid var(--line);
  }

  .case-lead.flat .lead-points div,
  .case-lead.flat .lead-points div:first-child {
    padding: 20px;
    border: 1px solid var(--line);
  }

  .summary-grid.scope-list .summary-tile {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reference-card dl div {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .summary-grid.scope-list .summary-tile span {
    grid-row: auto;
  }

  .rio-principles div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .rio-brief-title {
    min-height: auto;
  }

  .lane-flow {
    gap: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .lane-flow li {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .lane-flow li:last-child {
    border-bottom: 0;
  }

  .lane-flow li + li::before {
    content: none;
  }

  .case-media.triple > div img + img {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-media.marine-gallery img:nth-child(3) {
    border-left: 0;
  }

  .marine-notes {
    gap: 0;
    margin-top: 24px;
    padding-top: 20px;
  }

  .marine-notes article {
    padding: 18px 0 20px;
  }

  .case-media.environment-gallery img:nth-child(2) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-media.environment-gallery img:nth-child(3) {
    grid-column: auto;
  }

  .factory-system-map,
  .response-layout {
    grid-template-columns: 1fr;
  }

  .factory-system-map div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .factory-system-map div:last-child {
    border-bottom: 0;
  }

  .factory-system-map div::after {
    content: none;
  }

  .client-flow li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 14px;
  }

  .client-flow p {
    grid-column: 2;
  }

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

  .motion-shot img {
    height: 220px;
  }
}

@media (max-width: 520px) {
  .landing,
  .showcase,
  .split-callout,
  .compact-sections,
  .footer-cta,
  .detail {
    padding-left: 14px;
    padding-right: 14px;
  }

  .portfolio-home,
  .case-page {
    width: calc(100vw - 32px);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .portfolio-hero h1,
  .case-hero h1 {
    font-size: 30px;
  }

  .portfolio-section {
    padding-top: 42px;
  }

  .work-copy,
  .summary-tile {
    padding: 18px;
  }

  .motion-gallery {
    grid-template-columns: 1fr;
  }

  .motion-shot img {
    height: 240px;
  }
}

@media (max-width: 520px) {
  .portfolio-home,
  .case-page {
    width: auto !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 96px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .portfolio-home h1,
  .portfolio-home p,
  .case-page h1,
  .case-page p,
  .case-page strong {
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}
