/*
 * Coco 新媒体运营作品集视觉系统。
 * 设计目标：保留参考站的方格纸、手绘边框和便签感，同时以更适合作品阅读的布局呈现真实案例。
 */

:root {
  --paper: #f8f4e8;
  --paper-bright: #fffdf7;
  --ink: #17324d;
  --ink-soft: #5f7181;
  --grid-small: rgba(57, 102, 131, 0.13);
  --grid-large: rgba(57, 102, 131, 0.18);
  --yellow: #ffe06a;
  --coral: #ffa46f;
  --mint: #8bd8c1;
  --pink: #f6a8bb;
  --shadow: rgba(23, 50, 77, 0.2);
  --page-width: 1180px;
  --font-display: "Kaiti SC", STKaiti, KaiTi, "Marker Felt", "Comic Sans MS", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-large) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-large) 1px, transparent 1px),
    linear-gradient(var(--grid-small) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-small) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  font-family: var(--font-body);
  line-height: 1.72;
}

body.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

button,
input {
  color: inherit;
  font: inherit;
}

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

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

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: translateY(-150%);
}

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

.section-shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.section-block {
  padding-block: 110px;
}

.site-header {
  position: relative;
  z-index: 50;
  padding-top: 28px;
}

.nav-shell {
  position: relative;
  display: flex;
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 70px;
  margin-inline: auto;
  padding: 10px 12px 10px 16px;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 15px 11px 17px 12px;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 7px 8px 0 var(--shadow);
}

.nav-shell::after,
.browser-window::after,
.sketch-card::after {
  position: absolute;
  z-index: -1;
  inset: 4px -5px -5px 4px;
  border: 1px solid var(--ink);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 45% 55%;
  background: var(--yellow);
  font-size: 24px;
}

.brand-name {
  position: relative;
}

.brand-name::after {
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: 2px;
  left: 40%;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  content: "";
  transform: rotate(-2deg);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links > a:not(.button) {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links > a:not(.button):hover {
  text-decoration: underline wavy 2px var(--coral);
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  border: 2px dashed var(--ink);
  border-radius: 8px 11px 7px 12px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 11px 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid var(--ink);
  border-radius: 11px 8px 12px 9px;
  background: var(--paper-bright);
  box-shadow: 5px 6px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

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

.button:active {
  transform: translate(5px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.button-orange {
  background: var(--coral);
}

.button-small {
  min-height: 42px;
  padding: 7px 15px;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  display: grid;
  min-height: 750px;
  padding-block: 100px 90px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 70px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 5px 14px;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 45% 55% / 55% 46% 54% 45%;
  background: var(--paper-bright);
  font-family: var(--font-display);
  font-weight: 800;
  transform: rotate(-1.5deg);
}

.status-dot {
  width: 11px;
  height: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
}

.hero h1,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(54px, 6vw, 78px);
  line-height: 1.12;
}

.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.marker::after {
  position: absolute;
  z-index: -1;
  right: -2%;
  bottom: 8%;
  left: -2%;
  height: 19%;
  border-radius: 48% 45% 53% 47%;
  content: "";
  opacity: 0.9;
  transform: rotate(-1.5deg);
}

.marker-yellow::after {
  background: var(--yellow);
}

.marker-mint::after {
  background: var(--mint);
}

.marker-coral::after {
  background: var(--coral);
}

.hero-intro {
  max-width: 610px;
  margin: 28px 0 0;
  color: #435b6f;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  gap: 18px;
  flex-wrap: wrap;
}

.hand-note {
  width: fit-content;
  padding: 13px 18px;
  border: 1px solid #b89526;
  background: #ffec91;
  box-shadow: 5px 6px 0 rgba(23, 50, 77, 0.14);
  font-family: var(--font-display);
  line-height: 1.45;
  transform: rotate(3deg);
}

.hero-note {
  margin: 32px 0 0 auto;
}

.browser-window {
  position: relative;
  z-index: 0;
  border: 2px solid var(--ink);
  border-radius: 13px 9px 15px 10px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 8px 10px 0 var(--shadow);
}

.hero-dashboard {
  min-height: 500px;
  transform: rotate(0.7deg);
}

.browser-chrome {
  display: flex;
  min-height: 55px;
  padding: 14px 16px;
  align-items: center;
  gap: 9px;
  border-bottom: 2px solid var(--ink);
}

.browser-dot {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.dot-coral { background: var(--coral); }
.dot-yellow { background: var(--yellow); }
.dot-mint { background: var(--mint); }

.address-bar {
  height: 26px;
  margin-left: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 9px 7px 10px 8px;
  background:
    linear-gradient(90deg, rgba(23, 50, 77, 0.08) 42%, transparent 42%),
    var(--paper-bright);
  flex: 1;
}

.preview-tabs {
  display: flex;
  padding: 10px 16px 0;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
}

.preview-tabs button,
.planning-tabs button {
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 8px 0 0;
  background: #eee7d7;
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.preview-tabs button[aria-selected="true"],
.planning-tabs button[aria-selected="true"] {
  position: relative;
  bottom: -2px;
  padding-bottom: 11px;
  background: var(--paper-bright);
}

.preview-panel {
  padding: 26px 28px 30px;
}

.panel-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-kicker,
.project-platform,
.case-type {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.3;
}

.sticker {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  transform: rotate(3deg);
}

.sticker-yellow { background: var(--yellow); }
.sticker-mint { background: var(--mint); }
.sticker-coral { background: var(--coral); }

.dashboard-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.dashboard-list li {
  display: grid;
  min-height: 50px;
  padding: 8px 12px;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 10px 13px 8px 11px;
  background:
    repeating-linear-gradient(-8deg, transparent 0 7px, rgba(23, 50, 77, 0.025) 8px 9px),
    var(--paper-bright);
}

.dashboard-list li:nth-child(even) {
  transform: rotate(-0.3deg);
}

.dashboard-list strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.dashboard-list mark {
  padding: 3px 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  color: inherit;
  font-family: var(--font-display);
  font-size: 12px;
}

.mini-process {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.mini-process li {
  display: flex;
  padding: 7px 12px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px dashed var(--ink-soft);
}

.mini-process span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
}

.section-heading {
  display: grid;
  max-width: 950px;
  margin-bottom: 52px;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  align-items: end;
  column-gap: 70px;
}

.section-index {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.section-heading h2 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.16;
}

.section-heading > p:last-child {
  margin: 0 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 18px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.sketch-card {
  position: relative;
  z-index: 0;
  min-height: 285px;
  padding: 28px 23px 24px;
  border: 2px solid var(--ink);
  border-radius: 14px 9px 16px 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 5px 7px 0 var(--shadow);
}

.sketch-card:nth-child(2) { transform: rotate(0.7deg); }
.sketch-card:nth-child(3) { transform: rotate(-0.6deg); }
.sketch-card:nth-child(4) { transform: rotate(0.4deg); }

.card-number {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--font-display);
  font-weight: 900;
}

.sketch-card:nth-child(2) .card-number { background: var(--mint); }
.sketch-card:nth-child(3) .card-number { background: var(--coral); }
.sketch-card:nth-child(4) .card-number { background: var(--pink); }

.sketch-card h3 {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-size: 28px;
}

.sketch-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

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

.tag-list li {
  padding: 3px 8px;
  border: 1px dashed var(--ink);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.project-block {
  padding: 34px;
  border: 2px solid var(--ink);
  border-radius: 18px 11px 16px 12px;
  background: rgba(255, 253, 247, 0.76);
  box-shadow: 8px 9px 0 var(--shadow);
}

.project-block + .project-block {
  margin-top: 68px;
}

.project-wechat {
  background: rgba(255, 249, 226, 0.78);
}

.project-craft {
  background: rgba(224, 246, 235, 0.68);
}

.project-summary {
  display: grid;
  margin-bottom: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.project-summary h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.25;
}

.project-summary p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
}

.project-stats {
  display: flex;
  margin: 0;
  gap: 12px;
}

.project-stats div {
  min-width: 96px;
  padding: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 9px 12px 8px 11px;
  background: var(--paper-bright);
  text-align: center;
}

.project-stats dt {
  color: var(--ink-soft);
  font-size: 11px;
}

.project-stats dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}

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

.case-card {
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 12px 9px 14px 10px;
  background: var(--paper-bright);
}

.case-media {
  position: relative;
  display: block;
  width: 100%;
  height: 330px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: #eae4d5;
  cursor: zoom-in;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease;
}

.case-media:hover img {
  transform: scale(1.025);
}

.case-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.case-copy {
  padding: 20px;
}

.case-copy h4 {
  min-height: 58px;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
}

.case-copy > p:not(.case-type) {
  min-height: 78px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.case-copy > a {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
}

.craft-showcase {
  margin: 0;
}

.craft-intro {
  max-width: 760px;
}

.craft-intro h4 {
  margin: 2px 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
}

.craft-intro > p:last-child,
.showcase-heading > p,
.operation-case-heading p,
.operation-path p {
  margin: 0;
  color: var(--ink-soft);
}

.showcase-group {
  margin-top: 34px;
}

.showcase-group-layout {
  margin-top: 48px;
}

.showcase-heading {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: end;
  gap: 30px;
}

.showcase-heading h5,
.operation-case h5 {
  margin: 3px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.35;
}

.showcase-grid {
  display: grid;
  gap: 20px;
}

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

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

.showcase-card {
  overflow: hidden;
  margin: 0;
  border: 1.5px solid var(--ink);
  border-radius: 12px 9px 14px 10px;
  background: var(--paper-bright);
}

.showcase-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  background: #eae4d5;
  cursor: zoom-in;
}

.showcase-media-cover {
  height: 430px;
}

.showcase-media-layout {
  height: 380px;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 260ms ease;
}

.showcase-media:hover img {
  transform: scale(1.02);
}

.showcase-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.showcase-card figcaption {
  display: grid;
  min-height: 98px;
  padding: 16px 18px 18px;
  gap: 4px;
}

.showcase-card figcaption strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.showcase-card figcaption span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.operation-case {
  margin-top: 30px;
  padding: 24px;
  border: 1.5px solid var(--ink);
  border-radius: 10px 14px 9px 12px;
  background: var(--mint);
}

.operation-case-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.operation-case-heading > div {
  max-width: 760px;
}

.operation-case-heading h5 {
  margin-bottom: 7px;
  font-size: 27px;
}

.operation-case-heading .button {
  flex: 0 0 auto;
}

.operation-path {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.operation-path li {
  min-height: 166px;
  padding: 15px;
  border: 1.5px solid var(--ink);
  border-radius: 9px 12px 8px 11px;
  background: var(--paper-bright);
}

.operation-path li > span {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 900;
}

.operation-path strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 18px;
}

.operation-path p {
  font-size: 13px;
  line-height: 1.62;
}

.ai-boundary {
  display: grid;
  margin-top: 14px;
  padding: 16px 18px;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border: 1.5px dashed var(--ink);
  border-radius: 10px;
  background: rgba(255, 253, 247, 0.68);
}

.ai-boundary strong {
  font-family: var(--font-display);
  font-size: 17px;
}

.ai-boundary ul,
.operation-tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-boundary li {
  color: var(--ink-soft);
  font-size: 13px;
}

.ai-boundary li + li {
  margin-top: 5px;
}

.operation-tags {
  display: flex;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 7px;
}

.operation-tags li {
  padding: 4px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
}

.planning-board {
  overflow: hidden;
}

.planning-toolbar {
  display: flex;
  padding: 14px 18px 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
}

.planning-tabs {
  display: flex;
  gap: 8px;
}

.planning-actions {
  display: flex;
  padding-bottom: 10px;
  align-items: center;
  gap: 12px;
}

.planning-actions input {
  width: 210px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 9px 12px 8px 10px;
  background: var(--paper-bright);
}

.table-wrap {
  overflow: auto;
  max-height: 650px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #fff5cc;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23, 50, 77, 0.28);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-size: 15px;
}

tbody tr:nth-child(even) {
  background: rgba(139, 216, 193, 0.09);
}

tbody tr:hover {
  background: rgba(255, 224, 106, 0.22);
}

.status-badge {
  display: inline-block;
  min-width: 62px;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #efe9dc;
  text-align: center;
  white-space: nowrap;
}

.status-done { background: var(--mint); }
.status-progress { background: var(--yellow); }
.status-wait { background: #f2d8df; }

.library-empty {
  margin: 0;
  padding: 38px;
  text-align: center;
}

.process-grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
}

.process-grid li {
  min-height: 210px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 12px 9px 15px 10px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 5px 6px 0 var(--shadow);
}

.process-grid li:nth-child(2),
.process-grid li:nth-child(5) {
  transform: translateY(18px) rotate(0.5deg);
}

.process-grid li > span {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
}

.process-grid h3 {
  margin: 18px 0 5px;
  font-family: var(--font-display);
  font-size: 26px;
}

.process-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.contact-section {
  padding-block: 130px;
}

.contact-card {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
  padding: 70px 50px;
  border: 2px solid var(--ink);
  background: #fff0a9;
  box-shadow: 10px 12px 0 var(--shadow);
  text-align: center;
  transform: rotate(-0.5deg);
}

.contact-card h2 {
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1.2;
}

.contact-card > p:not(.section-index, .contact-email) {
  margin: 20px auto;
  font-family: var(--font-display);
  font-size: 19px;
}

.contact-button {
  margin-top: 8px;
}

.contact-email {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.tape {
  position: absolute;
  width: 130px;
  height: 36px;
  background: rgba(255, 255, 255, 0.62);
  border-block: 1px solid rgba(23, 50, 77, 0.15);
}

.tape-left {
  top: -14px;
  left: 55px;
  transform: rotate(-7deg);
}

.tape-right {
  right: 55px;
  bottom: -12px;
  transform: rotate(6deg);
}

.site-footer {
  display: flex;
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
  padding: 28px 0 36px;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.image-dialog {
  width: min(92vw, 920px);
  max-height: 90vh;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-bright);
  box-shadow: 10px 12px 0 rgba(23, 50, 77, 0.35);
}

.image-dialog::backdrop {
  background: rgba(18, 33, 47, 0.72);
  backdrop-filter: blur(3px);
}

.dialog-toolbar {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  padding: 12px 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-bright);
}

.dialog-toolbar p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
}

.dialog-toolbar button {
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--coral);
  cursor: pointer;
}

.image-dialog > img {
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
  }

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

  .hero-note {
    margin-left: 0;
  }

  .hero-dashboard {
    width: min(100%, 720px);
  }

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

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

  .case-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1fr;
  }

  .case-card:last-child .case-media {
    height: 100%;
    min-height: 360px;
    border-right: 1.5px solid var(--ink);
    border-bottom: 0;
  }

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

  .showcase-grid-layouts .showcase-card:last-child {
    grid-column: 1 / -1;
  }

  .planning-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .planning-actions {
    justify-content: space-between;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 16px;
  }

  .nav-shell {
    min-height: 62px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    align-items: stretch;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: var(--paper-bright);
    box-shadow: 6px 7px 0 var(--shadow);
    flex-direction: column;
    gap: 14px;
  }

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

  .nav-links > a:not(.button) {
    padding: 6px 4px;
  }

  .section-block {
    padding-block: 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .project-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showcase-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .operation-case-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .process-grid li:nth-child(2),
  .process-grid li:nth-child(5) {
    transform: none;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .nav-shell,
  .site-footer {
    width: min(calc(100% - 24px), var(--page-width));
  }

  .brand-name {
    font-size: 17px;
  }

  .hero {
    min-height: 0;
    padding-block: 72px 60px;
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(44px, 13.4vw, 62px);
  }

  .hero-intro {
    font-size: 18px;
  }

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

  .hero-dashboard {
    min-height: 0;
    transform: none;
  }

  .preview-tabs,
  .planning-tabs {
    overflow-x: auto;
  }

  .preview-tabs button,
  .planning-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .preview-panel {
    padding: 22px 16px 24px;
  }

  .panel-heading {
    flex-direction: column;
  }

  .dashboard-list li {
    grid-template-columns: 66px 1fr;
  }

  .dashboard-list mark {
    grid-column: 2;
    width: fit-content;
  }

  .section-heading h2 {
    font-size: 41px;
  }

  .capability-grid,
  .case-grid,
  .showcase-grid-covers,
  .showcase-grid-layouts,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .sketch-card,
  .sketch-card:nth-child(n) {
    min-height: 0;
    transform: none;
  }

  .project-block {
    padding: 20px 14px;
  }

  .project-summary h3 {
    font-size: 29px;
  }

  .project-stats {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-stats div {
    min-width: 0;
  }

  .case-card:last-child {
    display: block;
    grid-column: auto;
  }

  .case-card:last-child .case-media,
  .case-media {
    height: 390px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .showcase-grid-layouts .showcase-card:last-child {
    grid-column: auto;
  }

  .showcase-media-cover,
  .showcase-media-layout {
    height: 430px;
  }

  .operation-case {
    padding: 20px;
  }

  .operation-case-heading .button {
    width: 100%;
  }

  .operation-path,
  .ai-boundary {
    grid-template-columns: 1fr;
  }

  .operation-path li {
    min-height: 0;
  }

  .case-copy h4,
  .case-copy > p:not(.case-type) {
    min-height: 0;
  }

  .planning-toolbar {
    padding: 12px 10px 0;
  }

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

  .planning-actions input,
  .planning-actions .button {
    width: 100%;
  }

  th,
  td {
    min-width: 120px;
    padding: 12px;
  }

  th:first-child,
  td:first-child {
    min-width: 74px;
  }

  .contact-section {
    padding-block: 90px;
  }

  .contact-card {
    padding: 60px 20px 48px;
  }

  .contact-card h2 {
    font-size: 39px;
  }

  .tape {
    width: 90px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 150px;
    line-height: 1.1;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 43px;
  }

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

  .case-media,
  .case-card:last-child .case-media {
    height: 340px;
  }
}
