:root {
  --ink: #171b16;
  --ink-soft: #50594e;
  --paper: #f4f3ed;
  --surface: #ffffff;
  --line: #d8dbd1;
  --green: #286448;
  --green-deep: #183e2e;
  --lime: #d8ef7c;
  --orange: #ff7048;
  --orange-soft: #fff0e9;
  --blue: #466fe8;
  --shadow: 0 24px 70px rgba(25, 38, 26, 0.1);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(23, 27, 22, 0.1);
  background: rgba(244, 243, 237, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 36px;
}

.brand {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.brand span {
  color: #7b8378;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  padding: 10px 16px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 92px;
}

.hero::before {
  position: absolute;
  top: -180px;
  left: -140px;
  width: 500px;
  height: 500px;
  background: rgba(216, 239, 124, 0.28);
  border-radius: 50%;
  content: "";
  filter: blur(8px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: linear-gradient(rgba(23, 27, 22, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 27, 22, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 80%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 82px;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4fb26d;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(79, 178, 109, 0.13);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.12;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  color: var(--green-deep);
}

.hero h1 span::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  z-index: -1;
  height: 15px;
  background: var(--lime);
  content: "";
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 680px;
  margin: 30px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  border-left: 3px solid var(--orange);
  font-size: 18px;
  font-weight: 680;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(23, 27, 22, 0.12);
}

.button-primary {
  color: #fff;
  background: var(--ink);
}

.button-primary:hover {
  background: var(--green);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.45);
}

.hero-facts {
  display: grid;
  max-width: 680px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.hero-facts div {
  padding-right: 18px;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: #7b8378;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 550px;
}

.portrait-frame {
  position: absolute;
  inset: 30px 0 0 26px;
  overflow: hidden;
  background: #d4d6cc;
  border: 1px solid rgba(23, 27, 22, 0.12);
  border-radius: 180px 180px 28px 28px;
  box-shadow: var(--shadow);
}

.portrait-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  filter: saturate(0.86) contrast(1.02);
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 220px;
  padding: 15px;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 27, 22, 0.1);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(23, 27, 22, 0.14);
  backdrop-filter: blur(12px);
}

.floating-note > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-deep);
  background: var(--lime);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 850;
}

.floating-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.floating-note strong {
  color: var(--ink);
  font-size: 13px;
}

.note-top {
  top: 10px;
  left: -30px;
}

.note-bottom {
  right: -28px;
  bottom: 30px;
}

.signal-strip {
  color: #fff;
  background: var(--ink);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid div {
  display: grid;
  min-height: 118px;
  padding: 28px 22px;
  align-content: center;
}

.signal-grid div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.signal-grid span {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal-grid strong {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 620;
}

.section {
  padding: 124px 0;
}

.section-heading {
  display: grid;
  margin-bottom: 56px;
  align-items: end;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
}

.section-heading .eyebrow,
.journey-intro .eyebrow,
.profile-copy .eyebrow,
.contact-inner .eyebrow {
  margin-bottom: 16px;
}

.section-heading h2,
.journey-intro h2,
.profile-copy h2,
.contact-inner h2 {
  margin: 0;
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 830;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.section-heading > p,
.journey-intro > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.featured-project {
  display: grid;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.project-visual {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  background: #d8d6d0;
}

.project-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.featured-project:hover .project-visual > img {
  transform: scale(1.025);
}

.visual-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  display: flex;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(16, 19, 15, 0.86);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}

.visual-badge span {
  color: var(--lime);
}

.project-content {
  padding: 52px 52px 46px;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.project-type {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.project-content h3,
.project-card h3 {
  margin: 0;
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.project-content h3 span {
  color: #8a9187;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.round-link {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 21px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.round-link:hover {
  background: var(--green);
  transform: rotate(8deg) translateY(-2px);
}

.project-summary {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.project-summary strong {
  color: var(--ink);
}

.project-metrics {
  display: grid;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.project-metrics div {
  display: grid;
  padding: 17px 16px;
}

.project-metrics div + div {
  border-left: 1px solid var(--line);
}

.project-metrics strong {
  color: var(--green-deep);
  font-size: 26px;
  line-height: 1.1;
}

.project-metrics span {
  margin-top: 5px;
  color: #788075;
  font-size: 10px;
  font-weight: 700;
}

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

.contribution {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.contribution-index {
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
}

.contribution h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.contribution p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  margin: 24px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  color: #495047;
  background: #f1f2ed;
  border: 1px solid #e0e3db;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

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

.project-card {
  display: flex;
  min-height: 690px;
  padding: 34px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 18px 44px rgba(25, 38, 26, 0.1);
  transform: translateY(-5px);
}

.card-topline {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7a8278;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-topline a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.babi-card {
  color: #f5f5ef;
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.babi-card .card-topline,
.babi-card .project-summary,
.babi-card .bullet-list {
  color: rgba(255, 255, 255, 0.67);
}

.babi-card .card-topline a,
.babi-card .project-type {
  color: var(--lime);
}

.babi-card .tag-list li {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.babi-preview {
  position: relative;
  height: 235px;
  margin-bottom: 32px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.babi-user-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.babi-admin-preview {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 46%;
  height: auto;
  border: 4px solid #fff;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(18, 48, 39, 0.24);
}

.babi-card .project-summary strong {
  color: #fff;
  font-weight: 700;
}

.whatshu-image,
.crossy-image {
  height: 235px;
  margin-bottom: 30px;
  overflow: hidden;
  background: #eef0ef;
  border-radius: 18px;
}

.whatshu-image img,
.crossy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.whatshu-image img {
  object-position: top left;
}

.project-card:hover .whatshu-image img,
.project-card:hover .crossy-image img {
  transform: scale(1.025);
}

.bullet-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 12px;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 17px;
}

.bullet-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  content: "";
}

.project-card .tag-list {
  margin-top: auto;
  padding-top: 28px;
}

.crossy-card {
  grid-column: 1 / -1;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  column-gap: 42px;
}

.crossy-card .card-topline {
  grid-column: 1 / -1;
}

.crossy-card .crossy-image {
  height: auto;
  min-height: 330px;
  margin: 0;
  grid-row: 2 / span 6;
}

.crossy-card .project-type,
.crossy-card h3,
.crossy-card .project-summary,
.crossy-card .bullet-list,
.crossy-card .tag-list {
  grid-column: 2;
}

.crossy-card .tag-list {
  margin-top: 18px;
  padding-top: 0;
}

.journey-section {
  color: #fff;
  background: var(--ink);
}

.journey-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 100px;
}

.journey-intro {
  position: sticky;
  top: 130px;
  align-self: start;
}

.journey-intro .eyebrow {
  color: var(--lime);
}

.journey-intro > p:last-child {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.57);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  padding: 30px 0 38px 35px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  grid-template-columns: 130px 1fr;
  gap: 24px;
}

.timeline li::before {
  position: absolute;
  top: 39px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  content: "";
}

.timeline li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.timeline time {
  color: var(--lime);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.timeline h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.timeline p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.timeline div > span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 12px;
}

.timeline .timeline-current::before {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 7px rgba(216, 239, 124, 0.1);
}

.skills-section {
  background: #ecebe4;
}

.section-heading.compact {
  margin-bottom: 44px;
}

.skills-grid {
  display: grid;
  border-top: 1px solid #bfc4ba;
  border-left: 1px solid #bfc4ba;
  grid-template-columns: repeat(3, 1fr);
}

.skills-grid article {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid #bfc4ba;
  border-bottom: 1px solid #bfc4ba;
  transition: background 0.2s ease, transform 0.2s ease;
}

.skills-grid article:hover {
  position: relative;
  z-index: 1;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(25, 38, 26, 0.08);
  transform: translateY(-3px);
}

.skill-number {
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
}

.skills-grid h3 {
  margin: 48px 0 10px;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.skills-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.profile-section {
  background: var(--surface);
}

.profile-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 110px;
}

.profile-copy > p:last-child {
  max-width: 680px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.profile-details {
  border-top: 1px solid var(--ink);
}

.profile-details > div {
  display: grid;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 120px 1fr;
  gap: 20px;
}

.profile-details span {
  color: #788075;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-details strong {
  font-size: 13px;
  line-height: 1.7;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  color: #fff;
  background: var(--green-deep);
}

.contact-section::after {
  position: absolute;
  right: -100px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(216, 239, 124, 0.08);
  border-radius: 50%;
  content: "";
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-inner .eyebrow {
  color: var(--lime);
}

.contact-inner h2 {
  max-width: 850px;
}

.contact-links {
  display: flex;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-links a {
  display: inline-flex;
  min-height: 54px;
  padding: 0 22px;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  color: var(--green-deep);
  background: var(--lime);
  border-color: var(--lime);
  transform: translateY(-3px);
}

.site-footer {
  color: rgba(255, 255, 255, 0.62);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-inner a {
  color: #fff;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .hero-layout {
    gap: 48px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .note-top {
    left: -10px;
  }

  .note-bottom {
    right: -10px;
  }

  .featured-project {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .project-content {
    padding: 42px 38px;
  }

  .journey-layout,
  .profile-grid {
    gap: 64px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding-top: 72px;
  }

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

  .hero-visual {
    width: min(560px, 100%);
    min-height: 620px;
    margin-inline: auto;
  }

  .portrait-frame {
    inset: 30px 38px 0;
  }

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

  .signal-grid div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .signal-grid div:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .section {
    padding: 96px 0;
  }

  .section-heading,
  .journey-layout,
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading > p {
    max-width: 560px;
  }

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

  .project-visual {
    min-height: 540px;
  }

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

  .crossy-card {
    display: flex;
    grid-column: auto;
  }

  .crossy-card .crossy-image {
    min-height: 280px;
    margin-bottom: 30px;
    order: 0;
  }

  .crossy-card .card-topline {
    order: -1;
  }

  .journey-intro {
    position: static;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    padding: 54px 0 64px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero h1 br {
    display: none;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .hero-facts div {
    display: grid;
    padding: 11px 0;
    grid-template-columns: 84px 1fr;
  }

  .hero-facts div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-facts dd {
    margin: 0;
  }

  .hero-visual {
    min-height: 520px;
  }

  .portrait-frame {
    inset: 20px 8px 0;
    border-radius: 140px 140px 24px 24px;
  }

  .floating-note {
    width: 190px;
  }

  .note-top {
    top: 0;
    left: -4px;
  }

  .note-bottom {
    right: -4px;
    bottom: 18px;
  }

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

  .signal-grid div {
    min-height: 88px;
    padding: 20px 4px;
  }

  .signal-grid div + div,
  .signal-grid div:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading h2,
  .journey-intro h2,
  .profile-copy h2,
  .contact-inner h2 {
    font-size: 38px;
  }

  .project-visual {
    min-height: 390px;
  }

  .project-content,
  .project-card {
    padding: 28px 22px;
  }

  .project-content h3,
  .project-card h3 {
    font-size: 34px;
  }

  .project-content h3 span {
    display: block;
    margin-top: 5px;
    font-size: 16px;
  }

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

  .project-metrics div {
    grid-template-columns: 55px 1fr;
    align-items: center;
  }

  .project-metrics div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-metrics span {
    margin: 0;
  }

  .babi-preview {
    height: 210px;
  }

  .babi-admin-preview {
    right: 10px;
    bottom: 10px;
    width: 50%;
    border-width: 3px;
  }

  .whatshu-image,
  .crossy-card .crossy-image {
    height: 210px;
    min-height: 210px;
  }

  .timeline li {
    padding-left: 24px;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .timeline li::before {
    top: 38px;
  }

  .skills-grid {
    border-left: 0;
    grid-template-columns: 1fr;
  }

  .skills-grid article {
    min-height: 210px;
    border-left: 1px solid #bfc4ba;
  }

  .profile-details > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .contact-links {
    display: grid;
  }

  .contact-links a {
    justify-content: space-between;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .footer-inner > span:nth-child(2) {
    display: none;
  }
}

/* Project summaries and generated case-study pages. */
.case-preview {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.case-preview-heading { padding: 40px; background: var(--green-deep); color: white; }
.case-preview-heading .eyebrow { color: var(--lime); }
.case-preview h3 { margin: 22px 0; font-size: 42px; letter-spacing: -.04em; line-height: 1.2; }
.case-preview h3 span { display: block; margin-top: 10px; color: #c7d9cd; font-size: 16px; letter-spacing: 0; }
.case-headline { margin: 28px 0 0; font-size: 25px; font-weight: 750; line-height: 1.5; }
.case-preview-heading .project-summary { color: #d4e1d8; font-size: 16px; }
.case-period { margin: 24px 0 0; font-size: 14px; }
.case-preview-heading .case-period { color: #c7d9cd; }
.case-preview-heading .tag-list li { color: #eef4eb; background: #2b503d; border-color: #53705c; }
.case-preview .tag-list li, .detail-page .tag-list li { font-size: 13px; }
.case-preview-body { padding: 40px; }
.role-label { margin: 0 0 12px; color: var(--green); font-size: 14px; font-weight: 800; }
.ownership { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.8; }
.case-summary { margin: 28px 0; }
.case-summary > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.case-summary dt { color: var(--green); font-weight: 800; font-size: 14px; }
.case-summary dd { margin: 0; color: var(--ink-soft); font-size: 16px; }
.case-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.case-actions .button { font-size: 14px; }
.text-link { font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.other-projects-heading { margin-top: 76px; }
.other-projects-heading h3 { margin: 12px 0 0; font-size: 30px; letter-spacing: -.04em; }
.projects-section .project-card .project-type, .projects-section .card-topline { font-size: 13px; }
.projects-section .project-card .project-summary, .projects-section .bullet-list { font-size: 16px; }
.detail-hero { padding-block: 70px 56px; border-bottom: 1px solid var(--line); }
.detail-hero h1 { font-size: clamp(44px, 6vw, 76px); margin: 18px 0; letter-spacing: -.055em; line-height: 1.2; }
.detail-subtitle { margin: 0; font-size: clamp(21px, 3vw, 30px); font-weight: 650; }
.detail-hero .case-period { color: var(--ink-soft); }
.detail-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; padding-block: 54px 90px; }
.case-toc { position: sticky; top: 120px; align-self: start; display: grid; gap: 10px; font-size: 14px; }
.case-toc a { padding: 8px 0; color: var(--ink-soft); }
.case-toc a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.detail-content { min-width: 0; }
.detail-content > section { padding-bottom: 60px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.detail-content h2 { margin: 12px 0 26px; font-size: 32px; line-height: 1.4; letter-spacing: -.04em; }
.detail-content .lead { font-size: 19px; line-height: 1.9; }
.scope-grid { display: grid; gap: 0; margin-top: 30px; }
.scope-grid article { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.scope-grid h3 { margin: 0; font-size: 17px; }
.scope-grid p { margin: 0; color: var(--ink-soft); }
.scope-note { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.85; }
.flow-figure { margin: 32px 0 0; padding: 28px; background: var(--green-deep); color: #fff; border-radius: 20px; }
.flow-figure figcaption { color: var(--lime); font-weight: 700; }
.flow-figure ol { display: grid; gap: 14px; margin: 22px 0; padding-left: 24px; }
.flow-figure li { padding-left: 8px; }
.flow-figure > p { font-size: 13px; color: #c7d9cd; margin-bottom: 0; }
.case-study { padding: 32px; margin-top: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.case-study h3 { margin: 12px 0 28px; font-size: 24px; line-height: 1.5; letter-spacing: -.03em; }
.case-breakdown { margin: 0; }
.case-breakdown > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; margin-top: 22px; }
.case-breakdown dt { font-size: 14px; font-weight: 800; color: var(--green); }
.case-breakdown dd { margin: 0; line-height: 1.9; color: var(--ink-soft); overflow-wrap: anywhere; }
.case-breakdown .verified { padding-top: 22px; border-top: 1px solid var(--line); }
.evidence-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 26px; }
.evidence-links a { font-size: 14px; color: var(--green-deep); text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.evidence-links a:hover { color: var(--green); }
.result-list { padding-left: 22px; }
.result-list li { padding-left: 8px; margin-bottom: 16px; font-size: 18px; }
.source-date { margin-top: 30px; color: var(--ink-soft); font-size: 13px; }
.service-figure { margin: 28px 0 0; }
.service-figure img { width: 100%; max-height: 440px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 16px; }
.service-figure figcaption { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 900px) {
  .case-preview { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .case-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 620px) {
  .case-preview-heading, .case-preview-body { padding: 28px 22px; }
  .case-preview h3 { font-size: 36px; }
  .case-headline { font-size: 22px; }
  .case-actions { align-items: stretch; }
  .case-study { padding: 24px 18px; }
  .case-breakdown > div { grid-template-columns: 1fr; gap: 6px; }
  .scope-grid article { grid-template-columns: 1fr; gap: 10px; }
  .detail-content h2 { font-size: 28px; }
  .flow-figure { padding: 22px 18px; }
  .detail-hero { padding-block: 48px 36px; }
}
@media print {
  .detail-page .site-header, .detail-page .case-toc, .detail-page .skip-link { display: none; }
  .detail-page { color: #111; background: #fff; }
  .detail-page .container { width: 100%; }
  .detail-layout { display: block; padding: 0; }
  .detail-hero { padding: 0 0 24px; }
  .detail-content > section { margin: 20px 0; padding-bottom: 20px; }
  .case-study, .flow-figure { break-inside: avoid; }
  .flow-figure { color: #111; background: #f3f3f3; }
  .flow-figure figcaption, .flow-figure > p { color: #333; }
}

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

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