:root {
  color-scheme: light;
  --paper: #f4f4ed;
  --ink: #181c18;
  --muted: #4c554d;
  --border: #c9cec2;
  --lime: #dcff75;
  --display: "Instrument Sans", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .25, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #547522; outline-offset: 4px; }

.shell {
  width: min(100% - 5.5rem, 85rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .6rem 1rem;
  background: var(--lime);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--border);
}

.wordmark, .site-nav, .site-nav a, .button {
  display: inline-flex;
  align-items: center;
}

.wordmark {
  gap: .7rem;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -.045em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: 0 0 1.9rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .28rem;
  background: var(--ink);
}

.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .98rem;
  height: .24rem;
  border-radius: 1rem;
  background: var(--lime);
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand-mark::after { transform: translate(-50%, -50%) rotate(-45deg); }

.site-nav { gap: clamp(.7rem, 2.15vw, 2rem); }

.site-nav a {
  justify-content: center;
  position: relative;
  min-height: 44px;
  padding-inline: .35rem;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:not(.language)::after {
  position: absolute;
  content: "";
  right: .35rem;
  bottom: .45rem;
  left: .35rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

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

.site-nav .language {
  min-width: 3rem;
  padding: 0 .7rem;
  border: 1px solid var(--border);
  border-radius: .25rem;
  transition: background .2s ease, border-color .2s ease;
}

.language:hover { background: var(--lime); border-color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(2.25rem, 5vw, 5rem);
  align-items: center;
  padding: 2.15rem 0 3.6rem;
}

.hero-copy { padding: 1.7rem 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font: 660 .78rem/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #6a8720;
  box-shadow: 0 0 0 .22rem #e5ebc9;
  animation: location-in 1.2s ease-out both;
}

.hero h1 {
  font-size: clamp(3.4rem, 8.25vw, 8.3rem);
  font-weight: 750;
  line-height: .89;
  letter-spacing: -.085em;
  word-spacing: .07em;
  animation: headline-in .9s var(--ease) both;
}

.hero h1 span { color: #63821a; }

.hero-description {
  max-width: 29rem;
  margin: 1.65rem 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  animation: headline-in .9s .12s var(--ease) both;
}

[lang="zh-Hans"] .hero h1 { letter-spacing: -.08em; line-height: 1.02; }

.button {
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 50px;
  padding: .71rem 1rem .71rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .26rem;
  font-size: .93rem;
  font-weight: 720;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}

.button span {
  font-size: 1.24rem;
  line-height: 1;
  transition: transform .25s var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.button-primary { background: var(--ink); color: var(--lime); }
.button-primary:hover { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.button-light { background: var(--lime); color: var(--ink); }
.button-light:hover { background: var(--paper); }

.hero-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  min-height: 24rem;
  aspect-ratio: 1.19;
  border-radius: .55rem;
  background:
    radial-gradient(ellipse at 50% 50%, #273126 0%, #191f1a 48%, transparent 75%),
    #121713;
  animation: panel-in .85s var(--ease) both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #c4daae26 1px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse, transparent 18%, #000 86%);
}

.visual-crosshair {
  position: absolute;
  inset: 1.25rem;
  border: 1px solid #e4ffc51f;
  pointer-events: none;
}

.visual-crosshair::before, .visual-crosshair::after {
  content: "";
  position: absolute;
  background: #b6db9a21;
}

.visual-crosshair::before { top: 50%; left: 0; right: 0; height: 1px; }
.visual-crosshair::after { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.motion-control {
  position: absolute;
  right: 1.6rem;
  bottom: 1.55rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid #a4bd8b64;
  border-radius: .25rem;
  color: #e6f4d9;
  background: #151c15;
  font: 650 .71rem/1.2 var(--mono);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.motion-control:hover { border-color: var(--lime); color: var(--lime); }
.motion-control:focus-visible, .project .button:focus-visible { outline-color: var(--lime); }

.motion-icon {
  width: .6rem;
  height: .65rem;
  border-inline: 2px solid currentColor;
}

.motion-control[data-paused="true"] .motion-icon {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.section { scroll-margin-top: 1.5rem; }

.section h2 {
  font-size: clamp(2rem, 3.85vw, 4.15rem);
  font-weight: 730;
  line-height: 1.02;
  letter-spacing: -.071em;
}

.section h3 { line-height: 1.1; }

.services { padding: 2rem 0 4rem; border-top: 1px solid var(--border); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.65rem;
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 9rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: .35rem;
  background: #fbfbf6;
  transition: border-color .25s ease, background .25s ease;
}

.service:hover { background: #eff6d7; border-color: #98a67f; }
.service h3 { margin: .15rem 0 .42rem; font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -.038em; }
.service p { max-width: 25rem; color: var(--muted); line-height: 1.48; }

.service-icon {
  flex: 0 0 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #c4d298;
  border-radius: .3rem;
  background: #e8f5cb;
}

.icon-mobile::before {
  content: "";
  width: .87rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: .18rem;
}

.icon-mobile::after {
  content: "";
  position: absolute;
  bottom: .79rem;
  width: .25rem;
  height: 2px;
  background: var(--ink);
}

.icon-interaction::before {
  content: "";
  width: .62rem;
  height: .62rem;
  border: 2px solid var(--ink);
  border-radius: .12rem;
  transform: rotate(45deg);
  box-shadow: .36rem -.36rem 0 -.09rem #4f6b1e, -.36rem .36rem 0 -.09rem #4f6b1e;
}

.work { padding: 2rem 0 4rem; border-top: 1px solid var(--border); }
.work h2 { margin-bottom: 1.65rem; }

.project {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  isolation: isolate;
  border-radius: .55rem;
  color: #f8f8f1;
  background: #1c251c;
}

.project-copy {
  align-self: center;
  padding: clamp(1.5rem, 4.1vw, 4rem);
  position: relative;
  z-index: 1;
}

.app-icon { margin-bottom: 1rem; border-radius: .85rem; }
.project-copy h3 { font-size: clamp(2.1rem, 4.6vw, 5rem); letter-spacing: -.075em; }
.project-copy p { max-width: 25rem; margin: .8rem 0 1.4rem; color: #d8e3d2; }

.project-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: center;
  gap: .85rem;
  position: relative;
  min-height: 25rem;
  padding: 1.4rem 11% 0 7%;
  background: radial-gradient(ellipse at center, #76965e 0%, #3a5236 52%, #1c251c 85%);
}

.project-shot {
  height: auto;
  width: 100%;
  max-width: 13.4rem;
  min-width: 0;
  aspect-ratio: 1242 / 2688;
  border: 3px solid #101710;
  border-radius: clamp(.65rem, 2vw, 1.8rem);
  box-shadow: 0 1rem 2.5rem #0d160bb3;
  transform: translateY(1.8rem) rotate(-9deg);
  transition: transform .75s var(--ease);
}

.shot-themes { transform: translateY(2.6rem) rotate(10deg); }
.project:hover .shot-create { transform: translateY(1rem) rotate(-6deg); }
.project:hover .shot-themes { transform: translateY(1.7rem) rotate(7deg); }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.8rem);
  border: 1px solid #b2c46c;
  border-radius: .5rem;
  background: var(--lime);
}

.contact h2 { margin-bottom: 1rem; }
.contact p { color: #2e3b21; }
.contact .legal-name { font-weight: 730; color: var(--ink); }
.contact .button { flex: 0 0 auto; }
.contact .button:hover { background: var(--paper); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  padding: 1.6rem 0 1.2rem;
  color: var(--muted);
  font-size: .88rem;
}

.site-footer a {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  text-underline-offset: .23em;
}

[data-reveal].is-visible { animation: section-in .65s var(--ease) both; }
.service:nth-child(2).is-visible { animation-delay: .11s; }

@keyframes headline-in {
  from { opacity: 0; transform: translateY(1.3rem); }
  to { opacity: 1; transform: none; }
}

@keyframes panel-in {
  from { opacity: .55; transform: scale(.977); }
  to { opacity: 1; transform: none; }
}

@keyframes section-in {
  from { opacity: .65; transform: translateY(.85rem); }
  to { opacity: 1; transform: none; }
}

@keyframes location-in {
  from { box-shadow: 0 0 0 .45rem #c8d694; }
  to { box-shadow: 0 0 0 .22rem #e5ebc9; }
}

@media (max-width: 67rem) {
  .shell { width: min(100% - 3.25rem, 85rem); }
  .hero { gap: 2.25rem; }
  .hero-visual { min-height: 21rem; }
}

@media (max-width: 47rem) {
  .shell { width: calc(100% - 2.25rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: .1rem; padding: .6rem 0; }
  .site-nav { width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0 2.4rem; }
  .hero-copy { padding: .6rem 0 0; }
  .eyebrow { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(3.55rem, 15vw, 6.8rem); }
  .hero-description { margin: 1.2rem 0 1.3rem; }
  .hero-visual { min-height: 0; }
  .visual-crosshair { inset: .7rem; }
  .motion-control { right: .95rem; bottom: .95rem; }
  .services, .work { padding-bottom: 2.4rem; }
  .project-art { min-height: 0; }
  .contact { gap: 1rem; }
}

@media (max-width: 36rem) {
  .service-grid, .project { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; padding: 1rem; }
  .project-art { gap: .7rem; padding: 0 14%; }
  .contact { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
