:root {
  --forest: #10271f;
  --forest-2: #18382d;
  --cream: #f5efe4;
  --paper: #fffaf1;
  --ink: #162019;
  --muted: #6d746e;
  --terra: #a63d37;
  --terra-dark: #7f2c29;
  --terra-soft: #dca29d;
  --sage: #aebaa1;
  --line: rgba(22, 32, 25, 0.16);
  --white-line: rgba(255, 250, 241, 0.22);
  --serif: "DM Serif Display", "Noto Serif SC", Georgia, serif;
  --sans: "Manrope", "Noto Sans SC", Arial, sans-serif;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 4px; }

.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--terra);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 7rem);
  font-weight: 400;
  line-height: .88;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: .94;
}
.lede { max-width: 620px; color: var(--muted); font-size: 1.03rem; line-height: 1.75; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--paper);
  transition: background .3s var(--ease), color .3s var(--ease), border .3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(245, 239, 228, .94);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--terra); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; text-decoration: none; }
.site-nav:not(.scrolled) .brand { color: var(--paper); }
.brand::before {
  content: "";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: url("photos/cj-logo-cream-terra.png") center / contain no-repeat;
  transition: background-image .2s var(--ease);
}
.site-nav.scrolled .brand::before { background-image: url("photos/cj-logo-forest-terra.png"); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle, .nav-cta {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 .76rem var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
}
.nav-cta { background: var(--terra); border-color: var(--terra); color: white; }

.hero {
  position: relative;
  min-height: 94svh;
  background: var(--forest);
  color: var(--paper);
  --terra: #a63d37;
  --terra-dark: #7f2c29;
  --terra-soft: #dca29d;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 16, .18) 0%, rgba(8, 20, 16, .28) 48%, rgba(8, 20, 16, .48) 100%); }
.hero-media img { height: 100%; object-fit: cover; object-position: center; transform: scale(1.035); transition: transform 1.6s var(--ease); }
.loaded .hero-media img { transform: scale(1); }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(610px, 52vw);
  margin-left: auto;
  padding: 23vh 0 12vh;
}
.hero .display { font-size: clamp(4.5rem, 9vw, 9.6rem); }
.hero-role { margin: 20px 0; color: var(--terra); font-size: clamp(1rem, 1.8vw, 1.55rem); }
.hero-line { width: min(380px, 100%); height: 1px; margin: 22px 0; background: rgba(255,255,255,.38); }
.hero-sub { max-width: 470px; color: rgba(255,250,241,.78); font-size: clamp(1rem, 1.35vw, 1.16rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--terra); border-color: var(--terra); color: white; }
.button-light { color: var(--paper); }
.button-dark { color: var(--forest); }

.services {
  position: relative;
  z-index: 3;
  margin-top: -38px;
  padding: 146px 0 158px;
  background: var(--cream);
  isolation: isolate;
  overflow-x: clip;
}
.services::before,
.work::before,
.about::before,
.contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.services::before {
  top: -108px;
  left: -8%;
  width: 118%;
  height: 205px;
  border-radius: 52% 48% 0 0 / 100% 100% 0 0;
  background: var(--cream);
  transform: rotate(-2.1deg);
  transform-origin: 50% 100%;
}
.services > .shell,
.work > .shell,
.about > .shell,
.contact > .shell { position: relative; z-index: 1; }
.services-intro { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 48px; margin-bottom: 46px; }
.services-intro .lede { margin: 0 0 4px auto; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.service-card {
  position: relative;
  min-height: 430px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 30px;
  color: var(--paper);
  text-decoration: none;
  isolation: isolate;
}
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 18, 14, .55); transition: background .35s var(--ease); }
.service-card:hover::after { background: rgba(8, 18, 14, .36); }
.service-card img { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; transition: transform .75s var(--ease); }
.service-card:hover img { transform: scale(1.045); }
.service-content { min-height: 430px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.service-number { font-family: var(--serif); font-size: 2rem; color: var(--terra-soft); }
.service-title { margin: 0; max-width: 440px; font: 500 clamp(2.4rem, 4.5vw, 4.3rem)/.92 var(--serif); }
.service-desc { max-width: 380px; color: rgba(255,250,241,.78); line-height: 1.6; }
.service-link { display: inline-block; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.65); font-size: .82rem; font-weight: 650; }

.work { position: relative; z-index: 4; padding: 152px 0 162px; background: var(--forest); color: var(--paper); isolation: isolate; overflow-x: clip; }
.work::before {
  top: -88px;
  left: -10%;
  width: 121%;
  height: 174px;
  border-radius: 45% 55% 0 0 / 100% 100% 0 0;
  background: var(--forest);
  transform: rotate(1.6deg);
  transform-origin: 50% 100%;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head .lede { margin: 0; color: rgba(255,250,241,.62); }
.work-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.work-item { margin: 0; }
.work-visual { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px; background: #091711; }
.work-visual img { height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.work-item:hover img { transform: scale(1.035); }
.work-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.work-title { margin: 0; font-family: var(--serif); font-size: 1.6rem; }
.status { border: 1px solid var(--white-line); border-radius: 999px; padding: 6px 10px; color: var(--terra-soft); font-size: .64rem; font-weight: 700; letter-spacing: .12em; }

.about { position: relative; z-index: 5; padding: 158px 0 168px; background: var(--paper); isolation: isolate; overflow-x: clip; }
.about::before {
  top: -96px;
  left: -9%;
  width: 119%;
  height: 185px;
  border-radius: 56% 44% 0 0 / 100% 100% 0 0;
  background: var(--paper);
  transform: rotate(-1.7deg);
  transform-origin: 50% 100%;
}
.about-layout { display: grid; grid-template-columns: .86fr 1.14fr; gap: 72px; align-items: center; }
.about-photo { height: 650px; overflow: hidden; border-radius: 8px 120px 8px 8px; }
.about-photo img { height: 100%; object-fit: cover; object-position: 6% center; }
.about-copy .section-title { max-width: 690px; }
.about-copy .lede { margin: 28px 0 0; }
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 54px; border-block: 1px solid var(--line); }
.step { padding: 28px 22px 28px 0; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step-num { color: var(--terra); font: 600 1.25rem var(--serif); }
.step-icon { display: grid; width: 38px; height: 38px; margin: 16px 0 0; place-items: center; border: 1px solid color-mix(in srgb, var(--terra) 48%, transparent); border-radius: 50%; color: var(--terra); }
.step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.step h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 1.55rem; }
.step p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

.contact { position: relative; z-index: 6; padding: 126px 0 90px; background: var(--forest); color: var(--paper); isolation: isolate; overflow-x: clip; }
.contact::before {
  top: -78px;
  left: -12%;
  width: 124%;
  height: 150px;
  border-radius: 46% 54% 0 0 / 100% 100% 0 0;
  background: var(--forest);
  transform: rotate(1.9deg);
  transform-origin: 50% 100%;
}
.contact-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact .section-title { max-width: 760px; }
.contact .actions { margin: 0; }
.site-footer { padding: 22px 0; background: var(--forest); border-top: 1px solid var(--white-line); color: rgba(255,250,241,.56); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; font-size: .76rem; }

.service-hero { min-height: 76svh; display: grid; align-items: end; position: relative; overflow: hidden; background: var(--forest); color: var(--paper); }
.service-hero figure { position: absolute; inset: 0; margin: 0; }
.service-hero figure::after { content: ""; position: absolute; inset: 0; background: rgba(8,18,14,.58); }
.service-hero img { height: 100%; object-fit: cover; }
.service-hero-copy { position: relative; z-index: 2; padding: 180px 0 76px; }
.service-hero .display { max-width: 880px; }
.service-hero .lede { color: rgba(255,250,241,.72); }
.content-band { padding: 100px 0; background: var(--paper); }
.content-band.dark { background: var(--forest); color: var(--paper); }
.content-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.content-grid .section-title { font-size: clamp(2.5rem, 4vw, 4.6rem); }
.content-list { border-top: 1px solid var(--line); }
.dark .content-list { border-color: var(--white-line); }
.content-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.dark .content-row { border-color: var(--white-line); }
.content-row h3 { margin: 0 0 8px; font: 500 1.5rem var(--serif); }
.content-row p { margin: 0; color: var(--muted); line-height: 1.7; }
.dark .content-row p { color: rgba(255,250,241,.62); }
.case-band { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 560px; background: var(--cream); }
.case-band figure { margin: 0; min-height: 500px; }
.case-band img { height: 100%; object-fit: cover; }
.case-copy { padding: 72px; align-self: center; }
.case-copy h2 { margin: 0 0 20px; font: 500 clamp(2.5rem, 4vw, 4.6rem)/.96 var(--serif); }
.case-copy p { color: var(--muted); line-height: 1.75; }
.faq details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 500 1.35rem var(--serif); }
.faq details p { color: var(--muted); line-height: 1.7; }

/* Compact Small App portfolio */
.portfolio-nav { background: rgba(16,39,31,.9); }
.small-app-hero { min-height: 62svh; }
.small-app-hero figure { opacity: .25; }
.small-app-hero figure::after { background: linear-gradient(90deg, rgba(8,18,14,.84), rgba(8,18,14,.58)); }
.small-app-hero .service-hero-copy { max-width: 800px; padding-top: 160px; padding-bottom: 76px; }
.small-app-hero .display { max-width: 680px; font-size: clamp(3.7rem, 6.6vw, 6.8rem); }
.product-portfolio { padding: 96px 0 108px; background: var(--paper); }
.product-portfolio-software { background: var(--cream); }
.product-section-head { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; margin-bottom: 34px; }
.product-section-head .section-title { max-width: 700px; font-size: clamp(2.7rem, 4.8vw, 5rem); }
.product-section-head .lede { margin: 0 0 4px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; min-width: 0; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 9px 22px rgba(16,39,31,.06); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.product-portfolio-software .product-card { background: #fffaf1; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-5px); border-color: var(--terra); box-shadow: 0 18px 36px rgba(16,39,31,.13); }
.product-card-media { display: block; flex: 0 0 auto; width: 44%; min-height: 224px; overflow: hidden; background: var(--forest); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.product-card:hover .product-card-media img, .product-card:focus-visible .product-card-media img { transform: scale(1.035); }
.product-card-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 16px 15px; }
.product-card-kicker { display: block; margin-bottom: 14px; color: var(--terra-dark); font-size: .58rem; font-weight: 800; letter-spacing: .09em; line-height: 1.35; }
.product-card-copy strong { display: block; margin-bottom: 10px; font: 400 clamp(1.3rem, 1.8vw, 1.68rem)/1.02 var(--serif); }
.product-card-copy > span:not(.product-card-kicker) { color: var(--muted); font-size: .74rem; line-height: 1.55; }
.product-card-copy i { margin-top: auto; padding-top: 16px; color: var(--forest); font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .04em; }
.product-card-copy i b { margin-left: 4px; color: var(--terra); font-size: 1rem; }
.product-card-media-pending { display: grid; place-items: stretch; padding: 12px; background: var(--forest); }
.workspace-schematic { position: relative; display: grid; grid-template-columns: 1.2fr .75fr; grid-template-rows: 20px 1fr 28px; gap: 7px; overflow: hidden; min-height: 200px; padding: 14px; border: 1px solid rgba(255,250,241,.34); border-radius: 5px; color: rgba(255,250,241,.7); background: linear-gradient(145deg, #173b2e, #0d2119); }
.workspace-schematic b { grid-column: 1 / -1; font: 800 .48rem var(--sans); letter-spacing: .15em; }
.workspace-schematic i { display: block; border: 1px solid rgba(255,250,241,.23); border-radius: 3px; background: rgba(255,250,241,.07); }
.workspace-schematic i:nth-of-type(1) { grid-row: 2 / 4; }
.workspace-schematic i:nth-of-type(2) { grid-row: 2; }
.workspace-schematic i:nth-of-type(3) { grid-row: 3; }
.workspace-schematic em { position: absolute; right: 10px; bottom: 12px; max-width: 105px; color: var(--terra-soft); font: 400 .82rem/1.05 var(--serif); font-style: normal; text-align: right; }
.workspace-schematic small { position: absolute; left: 14px; bottom: 10px; font: 700 .44rem var(--sans); letter-spacing: .11em; }
.product-dialog { width: min(980px, calc(100% - 32px)); max-height: min(90svh, 820px); padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); overflow: auto; }
.product-dialog::backdrop { background: rgba(7,15,11,.78); backdrop-filter: blur(7px); }
.product-dialog-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); min-height: 540px; }
.product-dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,241,.94); color: var(--forest); font: 700 .72rem var(--sans); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.product-dialog-media { min-height: 420px; padding: 24px; background: var(--forest); }
.product-dialog-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.product-dialog-placeholder { display: grid; width: 100%; height: 100%; min-height: 360px; place-content: center; border: 1px solid rgba(255,250,241,.3); color: var(--terra-soft); font: 400 clamp(1.4rem, 3vw, 2.4rem)/1 var(--serif); letter-spacing: .02em; text-align: center; }
.product-dialog-placeholder small { margin-top: 12px; color: rgba(255,250,241,.68); font: 800 .58rem var(--sans); letter-spacing: .14em; }
.product-dialog-copy { align-self: center; padding: 54px 42px; }
.product-dialog-copy .eyebrow { margin-bottom: 12px; }
.product-dialog-copy h2 { margin: 0; font: 400 clamp(2.25rem, 4vw, 3.7rem)/.95 var(--serif); }
.product-dialog-status { margin: 18px 0 0; color: var(--terra-dark); font-size: .68rem; font-weight: 800; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }
.product-dialog-description { margin: 18px 0 0; color: var(--muted); line-height: 1.72; }
.product-dialog-actions { margin-top: 30px; }

/* Portfolio-led service pages */
.portfolio-hero { min-height: 70svh; }
.portfolio-hero figure { display: none; }
.portfolio-hero .service-hero-copy { max-width: 820px; padding-bottom: 82px; }
.portfolio-hero .display { max-width: 760px; }
.portfolio-intro { padding: 114px 0 126px; background: var(--paper); }
.portfolio-intro-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 44px; }
.portfolio-intro-head .lede { margin: 0; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparison-card { min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.comparison-visual { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #e8e0d2; }
.comparison-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.comparison-card-caption { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 2px 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.comparison-card-caption strong { color: var(--ink); font-size: .95rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.comparison-card-caption em { grid-column: 1 / -1; margin-top: 6px; color: var(--terra-dark); font-size: .68rem; font-style: normal; letter-spacing: .1em; }
.comparison-card:hover .comparison-visual, .comparison-card:focus-visible .comparison-visual { border-color: var(--terra); box-shadow: 0 12px 26px rgba(16,39,31,.12); }
.comparison-card:focus-visible { outline: 2px solid var(--terra); outline-offset: 6px; border-radius: 10px; }
.comparison-arrow { color: var(--terra); font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.comparison-dialog { width: min(1420px, calc(100% - 32px)); height: min(92svh, 980px); max-height: min(92svh, 980px); padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); overflow: hidden; }
.comparison-dialog::backdrop { background: rgba(7,15,11,.78); backdrop-filter: blur(7px); }
.comparison-dialog-inner { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.comparison-dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,250,241,.94); color: var(--forest); font: 700 .72rem var(--sans); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.comparison-dialog-head { flex: 0 0 auto; padding: 30px 84px 24px 32px; border-bottom: 1px solid var(--line); }
.comparison-dialog-head .eyebrow { margin-bottom: 7px; }
.comparison-dialog-head h2 { margin: 0; font: 400 clamp(2rem, 3vw, 3.2rem)/1 var(--serif); }
.comparison-dialog-head p:not(.eyebrow) { max-width: 690px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.fullpage-comparison-grid { display: grid; grid-template-columns: 1fr 1fr; flex: 1 1 auto; min-height: 0; background: var(--cream); }
.fullpage-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.fullpage-panel + .fullpage-panel { border-left: 1px solid var(--line); }
.fullpage-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: 0 0 auto; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.fullpage-panel > header span { color: var(--terra-dark); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fullpage-panel > header strong { font: 400 1.05rem var(--serif); }
.fullpage-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #e8e0d2; }
.fullpage-capture { display: block; width: 100%; height: auto; min-height: 100%; object-fit: contain; object-position: top center; }
.concept-section { padding: 132px 0 142px; background: var(--forest); color: var(--paper); }
.concept-section .section-head .lede { color: rgba(255,250,241,.66); }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.concept-card { margin: 0; min-width: 0; }
.concept-card-visual { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; background: #efe8da; }
.concept-card-visual img { width: 100%; height: 100%; object-fit: contain; object-position: top center; }
.concept-card figcaption { padding: 18px 0 0; }
.concept-card h3 { margin: 8px 0 0; font: 400 clamp(1.7rem, 2.5vw, 2.35rem)/1 var(--serif); }
.concept-card p { margin: 10px 0 0; color: rgba(255,250,241,.66); line-height: 1.65; }
.compact-process { padding: 112px 0; background: var(--cream); }
.compact-process .approach { margin-top: 34px; }
.compact-process .lede { margin: 20px 0 0; }

.video-hero { min-height: 58svh; background: var(--forest); }
.video-hero .service-hero-copy { max-width: 760px; padding-bottom: 74px; }
.video-hero .display { max-width: 680px; }
.video-hero figure { opacity: .26; }
.video-hero figure::after { background: linear-gradient(90deg, rgba(8,18,14,.72), rgba(8,18,14,.5)); }
.video-hero { min-height: 48svh; }
.video-hero .display { max-width: 760px; font-size: clamp(3.25rem, 5.5vw, 5.65rem); }
.video-portfolio { padding: 84px 0 98px; background: var(--paper); }
.video-portfolio-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 915px; margin: 0 0 28px; }
.video-portfolio-head .section-title { font-size: clamp(2.35rem, 3.65vw, 4rem); }
.video-portfolio-head .lede { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 915px; margin: 0; }
.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--paper); box-shadow: 0 10px 24px rgba(16,39,31,.08); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.video-card-media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 0; background: var(--forest); }
.video-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s var(--ease), opacity .25s var(--ease); }
.video-card:hover, .video-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(16,39,31,.14); }
.video-card:hover .video-card-media img, .video-card:focus-visible .video-card-media img { transform: scale(1.035); opacity: .84; }
.video-watch { position: absolute; inset: auto 12px 12px; display: inline-flex; align-items: center; justify-content: center; width: max-content; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,250,241,.72); border-radius: 999px; background: rgba(16,39,31,.78); color: var(--paper); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.video-card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; min-height: 0; padding: 12px 14px 14px; }
.video-card-type { grid-column: 1; grid-row: 1; display: block; color: var(--terra-dark); font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.video-card-title { grid-column: 1 / -1; grid-row: 2; display: block; margin: 0; font: 400 clamp(1.15rem, 1.5vw, 1.42rem)/1.1 var(--serif); }
.video-card-status { grid-column: 2; grid-row: 1; display: block; margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.2; text-align: right; white-space: nowrap; }
.video-cta { padding: 102px 0; background: var(--cream); }
.video-cta .contact-layout { color: var(--ink); }
.video-cta .button-light { color: var(--forest); }

.video-dialog { width: min(980px, calc(100% - 32px)); max-height: min(92svh, 860px); padding: 0; border: 0; border-radius: 10px; background: var(--forest); color: var(--paper); overflow: hidden; }
.video-dialog::backdrop { background: rgba(7,15,11,.76); backdrop-filter: blur(7px); }
.video-dialog-inner { position: relative; }
.video-dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; min-height: 40px; padding: 0 15px; border: 1px solid rgba(255,250,241,.55); border-radius: 999px; background: rgba(16,39,31,.82); color: var(--paper); font: 700 .72rem var(--sans); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.video-dialog video { display: block; width: 100%; max-height: min(78svh, 720px); background: #000; }
.video-dialog-copy { padding: 18px 22px 22px; }
.video-dialog-copy p { margin: 0; color: rgba(255,250,241,.66); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.video-dialog-copy h2 { margin: 8px 0 0; font: 400 2rem/1 var(--serif); }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: translateY(0); }
[data-lang="cn"] { display: none; }
body.lang-cn [data-lang="en"] { display: none; }
body.lang-cn [data-lang="cn"] { display: revert; }
span[data-lang="cn"] { display: none; }
body.lang-cn span[data-lang="en"] { display: none; }
body.lang-cn span[data-lang="cn"] { display: inline; }

@media (max-width: 900px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .nav-links { display: none; }
  .hero { min-height: 88svh; }
  .hero-media::after { background: rgba(8,18,14,.5); }
  .hero-media img { object-position: 28% center; }
  .hero-copy { width: 100%; padding: 47vh 0 100px; margin: 0; }
  .hero .display { font-size: clamp(4rem, 16vw, 7rem); }
  .brand { gap: 8px; }
  .brand::before { width: 32px; height: 32px; flex-basis: 32px; }
  .services { margin-top: -24px; padding: 112px 0 120px; }
  .services::before { top: -64px; left: -18%; width: 136%; height: 126px; transform: rotate(-2deg); }
  .work { padding: 118px 0 126px; }
  .work::before { top: -58px; left: -20%; width: 140%; height: 112px; transform: rotate(1.8deg); }
  .about { padding: 124px 0 132px; }
  .about::before { top: -60px; left: -18%; width: 138%; height: 116px; transform: rotate(-1.8deg); }
  .contact { padding-top: 102px; }
  .contact::before { top: -52px; left: -22%; width: 144%; height: 102px; transform: rotate(2deg); }
  .services-intro, .content-grid, .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-intro .lede { margin: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-content { min-height: 390px; }
  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { height: 500px; }
  .approach { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .case-band { grid-template-columns: 1fr; }
  .case-copy { padding: 54px 28px; }
  .portfolio-intro, .concept-section, .video-portfolio { padding: 92px 0 100px; }
  .portfolio-intro-head, .video-portfolio-head { align-items: flex-start; flex-direction: column; }
  .comparison-grid, .concept-grid { grid-template-columns: 1fr; }
  .product-section-head { grid-template-columns: 1fr; gap: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-dialog-inner { grid-template-columns: 1fr; }
  .product-dialog-media { min-height: min(52svh, 520px); }
  .product-dialog-copy { padding: 34px 28px 38px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 650px; margin: 0; }
  .comparison-card-caption { padding-top: 14px; }
  .comparison-dialog { width: min(100% - 20px, 760px); height: min(94svh, 980px); max-height: min(94svh, 980px); }
  .comparison-dialog-head { padding: 24px 68px 18px 20px; }
  .fullpage-comparison-grid { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr; }
  .fullpage-panel + .fullpage-panel { border-top: 1px solid var(--line); border-left: 0; }
  .contact-layout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .nav-inner { min-height: 64px; }
  .nav-cta { display: none; }
  .hero-copy { padding-top: 45vh; }
  .hero-role { max-width: 280px; }
  .service-content { padding: 24px; }
  .service-title { font-size: 3rem; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .about-photo { height: 430px; border-radius: 8px 70px 8px 8px; }
  .approach { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-inner { flex-direction: column; }
  .service-hero-copy { padding-top: 150px; }
  .portfolio-hero .service-hero-copy, .video-hero .service-hero-copy { padding-bottom: 62px; }
  .comparison-visual { aspect-ratio: 4 / 3; }
  .comparison-card-caption { grid-template-columns: 1fr; gap: 5px; }
  .comparison-card-caption em { margin-top: 2px; }
  .comparison-dialog-head h2 { font-size: 1.75rem; }
  .comparison-dialog-head p:not(.eyebrow) { font-size: .88rem; }
  .fullpage-panel > header { padding: 10px 14px; }
  .concept-card-visual { aspect-ratio: 2 / 3; }
  .video-hero { min-height: 44svh; }
  .video-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .small-app-hero { min-height: 54svh; }
  .small-app-hero .service-hero-copy { padding-top: 134px; padding-bottom: 62px; }
  .product-portfolio { padding: 78px 0 86px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-media { min-height: 190px; width: 42%; }
  .product-dialog { width: min(100% - 20px, 980px); }
  .product-dialog-media { min-height: 330px; padding: 18px; }
  .product-dialog-placeholder { min-height: 280px; }
  .video-card-media { aspect-ratio: 9 / 16; }
  .video-dialog { width: min(100% - 20px, 980px); }
  .video-dialog-copy h2 { font-size: 1.65rem; }
}

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