:root {
  color-scheme: light;
  --paper: #f8f8f1;
  --white: #fffef9;
  --ink: #192c24;
  --muted: #40554b;
  --forest: #142a20;
  --forest-deep: #0e2119;
  --forest-ink: #f7f8ee;
  --forest-muted: #d0dbce;
  --green: #28533d;
  --lime: #dbe998;
  --mist: #e9efe2;
  --line: #cbd4c7;
  --focus: #386447;
  --error: #a32926;
  --display: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 3.65rem;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E");
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 100%;
  line-height: 1.6;
}

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

html { scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
address { font-style: normal; }

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

.wrap {
  width: min(100% - 2.5rem, 74rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 40;
  inset: .75rem auto auto 1rem;
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.site-header, .hero, .contact, .site-footer {
  --focus: var(--lime);
  background: var(--forest);
  color: var(--forest-ink);
}

.site-header { position: relative; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .8rem .35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-self: start;
  min-height: 2.75rem;
  color: inherit;
  font-size: 1.4rem;
  font-weight: 730;
  line-height: 1.1;
  letter-spacing: -.055em;
  text-decoration: none;
}

.brand svg { width: 1.35rem; height: 1.35rem; color: var(--lime); }
.header-inner nav { grid-column: 1 / -1; grid-row: 2; }

.header-inner nav, .footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.header-inner nav a, .footer-bottom nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--forest-muted);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}

.footer-bottom nav a:hover {
  color: var(--forest-ink);
  text-decoration: underline;
}

.header-inner nav a { position: relative; }

.header-inner nav a::after {
  position: absolute;
  inset: auto 0 .55rem;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
  content: "";
}

.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--forest-ink); }
.header-inner nav a:hover::after, .header-inner nav a[aria-current]::after { transform: scaleX(1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  background: var(--forest);
  color: var(--forest-ink);
  font: 650 .9rem/1.35 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button { position: relative; isolation: isolate; }
.button:hover { background: var(--green); }

.header-action {
  justify-self: end;
  min-height: 2.75rem;
  padding-inline: .9rem;
  border-color: #6b7f6c;
}

.button-light { background: var(--lime); color: var(--forest-deep); }
.button-light:hover { background: #eaf4bd; }

.button-outline {
  border-color: var(--green);
  background: transparent;
  color: var(--forest);
}

.button-outline:hover { background: var(--mist); }

.hero {
  --pad: clamp(2.8rem, 6vw, 5.25rem);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding-block: var(--pad) 0;
}

.hero-grid { position: relative; z-index: 1; display: grid; align-items: center; }
.hero-copy { max-width: 37rem; }

.hero-stage {
  position: relative;
  order: 2;
  margin-top: 2.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--forest-deep);
}

.hero-layer, .hero-scrim, .hero-stage::after { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 58%; }

.hero-light::before, .hero-light::after {
  position: absolute;
  inset: -12% -8%;
  content: "";
}

.hero-light::before {
  background:
    radial-gradient(ellipse 22% 30% at 34% 16%, rgb(250 243 178 / .26), transparent 70%),
    radial-gradient(ellipse 16% 24% at 62% 42%, rgb(226 238 156 / .14), transparent 72%),
    radial-gradient(ellipse 20% 18% at 50% 82%, rgb(244 236 160 / .16), transparent 72%),
    linear-gradient(106deg, transparent 36%, rgb(255 246 196 / .07) 44%, transparent 53%);
}

.hero-light::after {
  background:
    radial-gradient(ellipse 14% 22% at 76% 66%, rgb(236 240 164 / .13), transparent 72%),
    radial-gradient(ellipse 18% 26% at 18% 58%, rgb(244 236 160 / .09), transparent 72%),
    linear-gradient(98deg, transparent 56%, rgb(255 246 196 / .06) 63%, transparent 70%);
}

.hero-scrim { background: linear-gradient(180deg, var(--forest) 0, rgb(20 42 32 / .55) 22%, rgb(20 42 32 / 0) 46%); }

.h1-line { display: block; }
.h1-em { position: relative; width: fit-content; }

.underline {
  position: absolute;
  inset: auto .04em -.2em .02em;
  height: .32em;
  overflow: hidden;
  pointer-events: none;
}

.underline svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.underline path { vector-effect: non-scaling-stroke; }

.eyebrow {
  margin-bottom: .85rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.hero .eyebrow::before {
  display: none;
  width: 2rem;
  height: 1px;
  margin: 0 .75rem .22em 0;
  background: var(--lime);
  vertical-align: middle;
  transform-origin: left;
  content: "";
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 5.1vw, 4.5rem);
  letter-spacing: -.06em;
  line-height: 1.02;
}

h1 em { display: block; color: var(--lime); }

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  letter-spacing: -.055em;
  line-height: 1.08;
}

h3 { font-size: 1.18rem; letter-spacing: -.025em; line-height: 1.3; }

.hero-lead {
  max-width: 31rem;
  color: var(--forest-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.4rem;
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--forest-ink);
  font-size: .94rem;
  font-weight: 600;
  text-decoration-color: #90a389;
}

.text-link:hover { text-decoration-color: var(--lime); }

.button-light::after, .button-outline::after, .text-link::after {
  flex: none;
  width: 1em;
  height: 1em;
  margin-left: .5em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
  content: "";
}

.button-light:hover::after, .button-outline:hover::after, .text-link:hover::after,
.button-light:focus-visible::after, .button-outline:focus-visible::after, .text-link:focus-visible::after { transform: translateX(.22em); }

.section { padding-block: clamp(3.8rem, 7vw, 6.75rem); }

.section-grid, .about-grid, .work-grid {
  display: grid;
  align-items: start;
  gap: clamp(1.6rem, 4vw, 4rem);
}

.section-intro p:not(.eyebrow), .about-copy p:not(.eyebrow), .work-copy p:not(.eyebrow) {
  max-width: 36rem;
  color: var(--muted);
}

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

.service-list article {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.service-list article > p { margin-top: .4rem; color: var(--muted); }

.service-list .service-scope {
  margin-top: .65rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 630;
}

.work { background: var(--mist); }
.work-grid, .about-grid { align-items: center; }
.work-copy .button { margin-top: 1.35rem; }

.project-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b8c7b5;
  border-radius: .4rem;
  background: var(--white);
  box-shadow: 0 12px 32px #142a2014;
}

.browser-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  min-height: 2.25rem;
  padding-inline: .85rem;
  border-bottom: 1px solid var(--line);
  background: #f2f5ec;
  color: var(--muted);
  font-size: .82rem;
}

.browser-dots {
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: #7a8d75;
  box-shadow: .65rem 0 #7a8d75, 1.3rem 0 #7a8d75;
}

.project-preview img { width: 100%; }

.process-intro { max-width: 37rem; margin-bottom: 1.5rem; }

.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.steps li { padding-block: 1rem; border-top: 1px solid var(--line); }

.steps li::marker {
  color: var(--green);
  font-size: .9rem;
  font-weight: 700;
}

.steps h3 { display: inline; }
.steps p { max-width: 34rem; margin-top: .45rem; color: var(--muted); }

.about {
  border-block: 1px solid #dce4d8;
  background: #eff2e9;
}

.owner-photo {
  width: 100%;
  border-radius: .35rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}

.about-copy > p + p { margin-top: .75rem; }

.founder {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.founder p { font-size: .92rem; }

.questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3.5rem;
  padding-block: .8rem;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  flex: 0 0 auto;
  width: .55rem;
  height: .55rem;
  margin-right: .3rem;
  border: solid var(--green);
  border-width: 0 .12rem .12rem 0;
  transform: translateY(-.18rem) rotate(45deg);
  content: "";
}

details[open] summary::after { transform: translateY(.15rem) rotate(225deg); }

details p {
  max-width: 37rem;
  padding: 0 1.2rem 1rem 0;
  color: var(--muted);
}

.contact .section-intro p:not(.eyebrow) { color: var(--forest-muted); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
  margin-top: 1.2rem;
  font-weight: 600;
}

.contact-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-links a:hover, .site-footer a:hover { color: var(--lime); }

.inquiry {
  --focus: var(--green);
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: .4rem;
  background: var(--white);
  color: var(--ink);
}

.inquiry h3 { font-size: 1.4rem; }

#inquiry-purpose, .notice {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .9rem;
}

.notice:empty { display: none; }

.notice {
  padding: .7rem .85rem;
  border-radius: .25rem;
  background: var(--mist);
}

.inquiry fieldset { min-width: 0; margin: 1rem 0 0; padding: 0; border: 0; }

.form-grid {
  display: grid;
  gap: .8rem 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.form-grid label {
  min-width: 0;
  font-size: .94rem;
  font-weight: 650;
}

.optional { color: var(--muted); font-size: .86rem; font-weight: 400; }

input, select, textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  margin-top: .25rem;
  padding: .55rem .7rem;
  border: 1px solid #7d9081;
  border-radius: .25rem;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.4 system-ui, sans-serif;
}

select {
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2328533d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right .7rem center;
  background-repeat: no-repeat;
  background-size: .75rem .5rem;
}

textarea { resize: vertical; }

.inquiry :disabled {
  border-color: var(--line);
  background-color: #eef1e9;
  color: var(--muted);
  cursor: default;
  opacity: 1;
}

.inquiry fieldset:disabled { background: transparent; }
.field-error { display: block; margin-top: .2rem; color: var(--error); font-size: .875rem; font-weight: 600; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error); }
#security-check:not(:empty) { margin-top: .85rem; }
.inquiry button { margin-top: 1rem; }

.site-footer {
  padding-block: 2rem;
  background: var(--forest-deep);
  color: var(--forest-muted);
  font-size: .92rem;
}

.footer-main, .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .9rem 2rem; }
.footer-main .brand { color: var(--forest-ink); font-size: 1.55rem; }
.footer-main address { display: grid; justify-items: start; gap: .15rem; }
.footer-main address a { display: inline-flex; align-items: center; min-height: 2rem; overflow-wrap: anywhere; }
.footer-bottom { align-items: center; margin-top: 1.4rem; padding-top: .65rem; border-top: 1px solid #3a4c40; }

@media (min-width: 36rem) {
  html { scroll-padding-top: calc(var(--header-h) + 1.25rem); }
  .hero { padding-top: calc(var(--header-h) + var(--pad)); }
  .hero-stage { aspect-ratio: 16 / 9; }
  .hero .eyebrow::before { display: inline-block; }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: transparent;
  }

  .site-header::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-bottom: 1px solid rgb(247 248 238 / .1);
    background: rgb(14 33 25 / .86);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    opacity: 0;
    transition: opacity .4s var(--ease);
    content: "";
  }

  .site-header.is-scrolled::before { opacity: 1; }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    padding-block: .45rem;
    transform: translateY(.85rem);
    transition: transform .45s var(--ease);
  }

  .is-scrolled .header-inner { transform: none; }

  .header-inner nav { grid-column: auto; grid-row: auto; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full-field { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (min-width: 53rem) {
  .hero { display: grid; align-content: center; min-height: 34rem; min-height: clamp(34rem, 90svh, 52rem); padding-bottom: var(--pad); }

  .hero-stage {
    position: absolute;
    inset: 0;
    margin: 0;
    aspect-ratio: auto;
  }

  .hero-photo img { object-position: 62% 56%; }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgb(14 33 25 / .8) 0, rgb(14 33 25 / 0) 9rem),
      linear-gradient(90deg, rgb(20 42 32 / .93) 0, rgb(20 42 32 / .88) 30%, rgb(20 42 32 / .7) 46%, rgb(20 42 32 / .24) 64%, rgb(20 42 32 / 0) 82%);
  }

  .section-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .work-grid { grid-template-columns: minmax(0, .57fr) minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
  .steps { gap: 2.5rem; }
}

@media (forced-colors: active) {
  .button { border-color: ButtonText; }
  .button-light::after, .button-outline::after, .text-link::after { forced-color-adjust: none; background: ButtonText; }
  .hero-stage, .underline { display: none; }
  select { appearance: auto; background-image: none; }
}

/* Motion: transform and opacity only. Everything below is off for prefers-reduced-motion: reduce. */
.scroll-mark { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

.button:not(:disabled):active { transform: translateY(1px) scale(.985); }

.button-light::before {
  position: absolute;
  inset: -.5rem -.7rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(219 233 152 / .38), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  content: "";
}

.button-light:hover::before, .button-light:focus-visible::before { opacity: 1; }

@media print {
  .site-header { position: static; }
  .hero-stage { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button { transition: transform .3s var(--ease); }
  .button:not(:disabled):hover { transform: translateY(-1px); }
  .button:not(:disabled):active { transition-duration: .08s; }

  summary::after { transition: transform .3s var(--ease); }

  .hero-stage::after {
    background: var(--forest);
    animation: dawn 1.3s ease-out .1s both;
    content: "";
  }

  .hero-photo img { transform-origin: 58% 62%; animation: drift 46s ease-in-out infinite alternate; }
  .hero-light::before { animation: light-a 38s ease-in-out infinite alternate; }
  .hero-light::after { animation: light-b 53s ease-in-out infinite alternate; }
  .hero.is-idle .hero-photo img, .hero.is-idle .hero-light::before, .hero.is-idle .hero-light::after { animation-play-state: paused; }

  .hero .eyebrow, .h1-line, .hero-lead, .actions { animation: rise .95s var(--ease) both; }
  .hero .eyebrow::before { animation: grow 1.1s var(--ease) .15s both; }
  .hero .eyebrow { animation-delay: .1s; }
  .h1-line:first-child { animation-delay: .22s; }
  .h1-em { animation-delay: .4s; }
  .hero-lead { animation-delay: .6s; }
  .actions { animation-delay: .78s; }
  .underline svg { animation: draw 1.15s var(--ease) 1.05s both; }

  .reveal {
    opacity: 0;
    transform: translateY(1.1rem);
    transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms);
  }

  .reveal.is-in { opacity: 1; transform: none; }

  .hero-photo, .hero-light { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 53rem) {
  .hero-photo { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -7px), 0); transition: transform .9s var(--ease); }
  .hero-light { transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 12px), 0); transition: transform 1.1s var(--ease); }
}

@keyframes dawn { to { opacity: 0; } }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.13) translate3d(-1.2%, -.8%, 0); } }
@keyframes light-a { from { opacity: .75; transform: translate3d(-2.5%, 1.5%, 0) scale(1.02); } to { opacity: 1; transform: translate3d(2.5%, -1.5%, 0) scale(1.07); } }
@keyframes light-b { from { opacity: 1; transform: translate3d(2%, -1%, 0) scale(1.06); } to { opacity: .7; transform: translate3d(-2.5%, 1.5%, 0) scale(1.01); } }
@keyframes rise { from { opacity: 0; transform: translateY(.7rem); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes draw { from { transform: translateX(-102%); } }
