:root {
  color-scheme: light;
  --paper: #f4f6f0;
  --ink: #13251b;
  --muted: #4e6255;
  --line: #d5ddd1;
  --forest: #163b2b;
  --lime: #d9f486;
  --wide: 1216px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 100%;
}

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

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #426c37; outline-offset: 4px; }

.wrap {
  width: min(var(--wide), calc(100% - clamp(36px, 9vw, 128px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding-bottom: 10px;
  border-radius: 11px;
  background: var(--forest);
}

.brand-mark span {
  height: 12px;
  border-radius: 2px;
  background: var(--lime);
}

.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 9px; }
.brand-name { font-weight: 760; letter-spacing: .01em; }
.brand-name small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font: 700 .75rem / 1.25 system-ui, sans-serif;
  letter-spacing: .07em;
}

.header-inner nav { display: flex; align-items: center; gap: clamp(12px, 3.3vw, 42px); }
.header-inner nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 660;
  white-space: nowrap;
}
.header-inner nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(42px, 5vw, 72px) clamp(50px, 6vw, 88px);
}

.hero h1 {
  font-size: clamp(3rem, 5.55vw, 5.3rem);
  font-weight: 820;
  letter-spacing: -.078em;
  line-height: 1.08;
}

.hero-copy p {
  max-width: 29rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.78;
}

.primary-link, .spotlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  margin-top: 30px;
  border: 1px solid #bed95d;
  padding: 12px 22px;
  background: var(--lime);
}
.primary-link:hover { background: #c9ea67; }

.spotlight {
  position: relative;
  isolation: isolate;
  min-height: clamp(410px, 36vw, 510px);
  overflow: hidden;
  border-radius: 29px;
  color: #f4faee;
  background:
    radial-gradient(ellipse at 93% 84%, #83ab67 0%, #3f6d48 28%, transparent 65%),
    linear-gradient(145deg, #1c4c34, #122f24);
  box-shadow: 0 17px 45px #1d44251a;
}

.spotlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(#deefc765 1px, transparent 1px);
  background-size: 17px 17px;
  opacity: .52;
  mask-image: linear-gradient(135deg, transparent 15%, black 84%);
}

.spotlight::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: -57%;
  width: 94%;
  aspect-ratio: 1;
  border: 1px solid #e5f8d36b;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #def3d327, 0 0 0 72px #def3d317;
}

.spotlight-intro {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 26px;
}

.spotlight-intro img { border: 2px solid #edf5e7; border-radius: 10px; }
.spotlight-intro h2 { font-size: 1.25rem; line-height: 1.12; }
.spotlight-intro p { margin-top: 4px; color: #d9ebd6; font-size: .875rem; }

.phone {
  position: absolute;
  width: min(37%, 224px);
  height: auto;
  border: 5px solid #e9f1df;
  border-radius: clamp(18px, 3vw, 34px);
  box-shadow: 0 18px 40px #071d16a6, 0 0 0 1px #345c45;
}

.phone-home { z-index: 2; top: 27%; right: 36%; transform: rotate(-10deg); }
.phone-focus { z-index: 1; top: 16%; right: 10%; transform: rotate(10deg); }

.spotlight-link {
  position: absolute;
  z-index: 3;
  bottom: 23px;
  left: 26px;
  border: 1px solid #e6f6dd7a;
  padding: 9px 15px;
  background: #173c2a;
  color: #f4faee;
  font-size: .875rem;
}
.spotlight-link:hover { background: #24553a; }
.spotlight-link:focus-visible { outline-color: var(--lime); }

.projects, .about { scroll-margin-top: 86px; }
.projects { border-top: 1px solid var(--line); padding-block: 40px clamp(58px, 7vw, 96px); }
.section-intro h2, .about h2 {
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  font-weight: 790;
  letter-spacing: -.058em;
  line-height: 1.22;
}
.section-intro > p { margin-top: 10px; color: var(--muted); line-height: 1.7; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 23px 0;
}
.filters button {
  min-height: 44px;
  border: 1px solid #becbbd;
  border-radius: 100px;
  padding: 6px 16px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: .9rem;
}
.filters button:hover { border-color: #65806b; }
.filters button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; }

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 23px;
}
.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fcfdf9;
}

.project-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background: #dde8db;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.media-art img { object-position: center 50%; }
.project-copy { padding: 20px 20px 23px; }
.project-copy .project-type {
  margin-bottom: 6px;
  color: #3e6449;
  font-size: .875rem;
  font-weight: 690;
}
.project-copy h3 { font-size: 1.28rem; line-height: 1.4; }
.project-copy h3 + p { margin-top: 9px; color: var(--muted); line-height: 1.72; }

.ai-graphic {
  display: grid;
  place-items: center;
  padding: 18px;
  border-color: #314f3f;
  background:
    repeating-linear-gradient(90deg, #ecffdb1c 0, #ecffdb1c 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg, #ecffdb13 0, #ecffdb13 1px, transparent 1px, transparent 22px),
    radial-gradient(ellipse at 91% 83%, #355e42, #142f22 68%);
}
.ai-panel { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ai-panel span {
  border: 1px solid #b2d08c;
  border-radius: 8px;
  padding: 9px 13px;
  background: #dff0c8;
  color: #163121;
  font-size: .95rem;
  font-weight: 700;
}

.about { padding-block: 58px; background: #e5eee0; }
.about-inner { display: grid; grid-template-columns: 1fr 1.18fr; gap: 32px; }
.company-name { margin-top: 10px; color: var(--muted); font-weight: 680; }
.about-copy p { margin-top: 4px; color: #324c3a; line-height: 1.84; }
.about-copy a { display: inline-block; margin-top: 13px; font-weight: 680; text-underline-offset: 4px; }

.site-footer { background: #173628; color: #e7f1e2; }
.footer-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-block: 22px;
  font-size: .875rem;
}
.site-footer a { text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: var(--lime); }
.top-link { margin-inline-start: auto; }

@media (max-width: 950px) {
  .hero { gap: 30px; }
  .spotlight { min-height: 380px; }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner { min-height: 64px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 29px; }
  .hero h1 { font-size: clamp(2.9rem, 10vw, 4.25rem); }
  .hero-copy p { margin-top: 17px; }
  .primary-link { margin-top: 20px; }
  .spotlight { min-height: clamp(330px, 76vw, 422px); }
  .phone-home { top: 30%; right: 35%; }
  .phone-focus { top: 22%; right: 9%; }
  .projects { padding-top: 32px; }
  .project-list { gap: 14px; }
  .project-copy { padding: 15px; }
  .about-inner { grid-template-columns: 1fr; gap: 16px; }
  .about { padding-block: 39px; }
  .top-link { margin-inline-start: 0; }
}

@media (max-width: 475px) {
  .brand-mark { display: none; }
  .brand-name small { font-size: .7rem; }
  .header-inner nav a { font-size: .875rem; }
  .project-list { grid-template-columns: 1fr; }
  .spotlight-intro { padding: 19px; }
  .spotlight-link { left: 17px; bottom: 16px; }
  .filters { gap: 6px; }
  .filters button { padding-inline: 12px; }
}

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

