:root {
  color-scheme: light;
  --page: #f5f1e9;
  --ink: #182640;
  --muted: #4e5863;
  --line: #c9c3b8;
  --teal: #00695f;
  --night: #121e33;
  --white: #fbf7ee;
  --gutter: clamp(1.125rem, 4.8vw, 4.5rem);
  --ease-out: cubic-bezier(.17, .75, .23, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.62 var(--studio-font);
}
h1, h2, h3, h4, p, figure, dl, dd, ol, fieldset { margin: 0; }
h1, h2, h3, h4 {
  font-weight: 560;
  line-height: 1.09;
  letter-spacing: -.026em;
  text-wrap: balance;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 2 * var(--gutter), 79rem); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--ink);
}

.site-header, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.site-header { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.site-header nav, .site-footer nav, .intro-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(.8rem, 2.25vw, 2.25rem);
}
.site-header a, .site-footer a, .intro-links a, .project-link, .contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
}
.site-header nav a { font-size: .94rem; text-decoration: none; }
.site-header nav a:is(:hover, :focus-visible) { text-decoration: underline; }
.wordmark { flex-shrink: 0; }

.intro { padding-block: clamp(1.15rem, 3.4vw, 3rem) clamp(1rem, 3vw, 2.5rem); }
.intro-frame {
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(25rem, 44vw, 38rem);
  padding: clamp(1.25rem, 4.4vw, 4.25rem);
  border-radius: .65rem;
  background: #e8e5dc;
}
.intro-frame::before, .intro-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-photo { z-index: -2; object-fit: cover; object-position: 60% 57%; }
.intro-frame::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #f5f1e9 0%, #f5f1e9ed 34%, #f5f1e9c4 47%, #f5f1e900 68%);
}
.intro-copy { max-width: min(34rem, 55%); }
.intro h1 {
  font-size: clamp(2.4rem, 4.25vw, 4.3rem);
}
.intro-copy p {
  max-width: 42ch;
  margin-block: 1rem .8rem;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  color: var(--muted);
}
.intro-credit {
  position: absolute;
  z-index: 1;
  right: clamp(.75rem, 2vw, 1.25rem);
  bottom: clamp(.75rem, 2vw, 1.25rem);
  padding: .3rem .6rem;
  border-radius: .3rem;
  background: var(--page);
  font-size: .8rem;
  color: var(--muted);
}
.section-head p, .contact p { color: var(--muted); }
.intro-links { color: var(--teal); font-weight: 570; }
.intro-links a { text-decoration-thickness: 1px; }

.showcase-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  margin-bottom: 1.1rem;
}
.showcase-picker label {
  position: relative;
  cursor: pointer;
}
.showcase-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.showcase-picker span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  height: 100%;
  min-height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .55rem .8rem;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.showcase-picker strong { font-size: .96rem; font-weight: 600; line-height: 1.25; }
.showcase-picker small { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.showcase-picker input:hover + span { border-color: var(--ink); }
.showcase-picker input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.showcase-picker input:checked + span small { color: #c9d3e3; }
.showcase-picker input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 3px; }

.showcase-stage {
  position: relative;
  isolation: isolate;
}
.scene {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(.5rem, 2vw, 2.5rem);
  position: relative;
  min-height: clamp(25rem, 40vw, 35rem);
  padding: clamp(1.75rem, 4.4vw, 4.5rem);
  border-radius: .65rem;
  background: var(--scene);
  color: var(--white);
}
.cathoderay { --scene: #202f2e; --scene-enter: crt-in 760ms; }
.ringdock { --scene: #102a49; --scene-enter: ring-in 730ms; }
.glowtape { --scene: #2b193f; --scene-enter: glow-in 680ms; }
.harbor-watch { --scene: #162a3f; --scene-enter: radar-in 720ms; }
.pathwanderer { --scene: #22362e; --scene-enter: trail-in 780ms; }
.keyrunner { --scene: #24213a; --scene-enter: launcher-in 560ms; }
.imagevibe { --scene: #203832; --scene-enter: develop-in 790ms; }
.dividend-tracker { --scene: #23392d; --scene-enter: report-in 740ms; }
.scene-copy { position: relative; z-index: 1; }
.platform { font-size: .8rem; font-weight: 580; letter-spacing: .025em; }
.scene h4 {
  margin-top: .4rem;
  font-size: clamp(2rem, 4.7vw, 4.6rem);
  text-wrap: wrap;
}
.scene p {
  max-width: 31ch;
  margin-block: .9rem 1.15rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.scene-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  font-weight: 580;
}
.scene-link span, .project-link span { transition: translate 220ms var(--ease-out); }
.scene-link:is(:hover, :focus-visible) span, .project-link:is(:hover, :focus-visible) span { translate: 3px -3px; }
.scene-art { position: relative; min-width: 0; }
.scene-art img {
  width: 100%;
  height: clamp(15rem, 30vw, 25rem);
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 1rem 1rem #10151365);
}
.ringdock .scene-art img, .glowtape .scene-art img {
  border-radius: .65rem;
  object-fit: cover;
  height: auto;
  box-shadow: 0 1.4rem 2rem #0b132c66;
}

.apps { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.75rem, 8vw, 7rem); }
.who { padding-block: clamp(3rem, 6vw, 5rem) 0; }
.section-head { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.section-head h2, .contact h2 {
  font-size: clamp(2.05rem, 4.9vw, 4.35rem);
}
.section-head p, .contact p { max-width: 52ch; margin-top: .85rem; font-size: clamp(1rem, 1.55vw, 1.15rem); }

.services {
  background: var(--night);
  color: var(--white);
  padding-block: clamp(3.25rem, 7vw, 6rem);
}
.services-intro, .ai-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
}
.services .section-head, .ai-services .section-head { margin-bottom: 0; }
.services .section-head p { max-width: 45ch; line-height: 1.65; color: #d1dbeb; }
.project-link {
  margin-top: 1.25rem;
  padding-inline: 1rem;
  border-radius: .3rem;
  background: #c8e9dc;
  color: #102d28;
  text-decoration: none;
  font-weight: 600;
}
.project-link:is(:hover, :focus-visible) { background: #e2f3eb; }
.project-link:focus-visible { outline-color: var(--white); }
.service-list {
  display: grid;
  min-width: 0;
  gap: .55rem;
  margin: 0;
  padding: .65rem clamp(.75rem, 2.7vw, 2.4rem) .8rem .45rem;
  list-style: none;
}
.service-list > li {
  border-radius: .45rem;
  background: var(--sheet, #edf2e8);
  color: #172c33;
  transform: translateX(var(--shift, 0)) rotate(var(--angle, -1deg));
}
.service-list > :nth-child(2) { --shift: clamp(.25rem, 1.3vw, 1rem); --angle: 1deg; --sheet: #d7e9e1; }
.service-list > :nth-child(3) { --shift: clamp(.4rem, 2.2vw, 1.6rem); --angle: -.75deg; --sheet: #c6ddd9; }
.service-list > :nth-child(4) { --shift: clamp(.2rem, 1vw, .8rem); --angle: .85deg; --sheet: #e4ede4; }
.service-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  min-height: 48px;
  padding: .72rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.1rem, 1.65vw, 1.35rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.018em;
}
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary:focus-visible { outline-offset: -4px; }
.service-list summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-inline-end: .15rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  rotate: 45deg;
  transition: rotate 220ms var(--ease-out);
}
.service-list details[open] summary::after { rotate: 225deg; }
.service-list details > p { max-width: 60ch; padding: 0 1.1rem .9rem; }

.ai-services { background: #e5eee6; padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.ai-intro { align-items: start; }
.ai-services .project-link { background: var(--teal); color: var(--white); }
.ai-services .project-link:is(:hover, :focus-visible) { background: #00564d; }
.ai-services .project-link:focus-visible { outline-color: var(--teal); }
.ai-steps { border-top: 1px solid #a9beb2; }
.ai-steps > div { padding-block: .9rem; border-bottom: 1px solid #a9beb2; }
.ai-steps dt { font-size: clamp(1.13rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.2; }
.ai-steps dd { max-width: 53ch; margin-top: .32rem; color: var(--muted); }

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.contact-actions a { color: var(--teal); font-size: clamp(1.12rem, 2.7vw, 2rem); font-weight: 570; }
.copy-button {
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid var(--teal);
  border-radius: .3rem;
  background: transparent;
  color: var(--teal);
  font: 570 1rem/1.2 var(--studio-font);
  cursor: pointer;
}
.copy-button:hover { background: var(--teal); color: var(--white); }
.copy-button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.privacy-note { margin-top: .9rem; font-size: .9rem; }

.start { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid #34456a; }
.start h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 560; letter-spacing: -.02em; }
.start-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.start-steps li { counter-increment: step; color: #d1dbeb; }
.start-steps li::before { content: counter(step); display: block; margin-bottom: .35rem; font-weight: 600; color: var(--white); }
.start-steps strong { color: var(--white); font-weight: 600; }
.site-footer { background: var(--night); color: var(--white); }
.footer-inner { padding-block: 1.15rem; }
.footer-inner p, .site-footer nav { font-size: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .scene:not([hidden]) .scene-copy { animation: scene-copy-in 440ms var(--ease-out) both; }
  .scene:not([hidden]) .scene-art { animation: var(--scene-enter) var(--ease-out) both; }
  .service-list details[open] > p { animation: scene-copy-in 260ms var(--ease-out) both; }
}
@keyframes scene-copy-in { from { translate: 0 .7rem; opacity: .55; } }
@keyframes crt-in { from { translate: 0 2rem; scale: .88; opacity: .3; } }
@keyframes ring-in { from { translate: 1.25rem 0; rotate: 8deg; scale: .9; opacity: .35; } }
@keyframes glow-in {
  from { clip-path: inset(20% -15% 56%); opacity: .4; }
  to { clip-path: inset(-18%); opacity: 1; }
}
@keyframes radar-in {
  from { clip-path: inset(-12% -12% -12% 100%); opacity: .55; }
  to { clip-path: inset(-12%); }
}
@keyframes trail-in { from { translate: 0 2.4rem; rotate: -7deg; scale: .93; opacity: .4; } }
@keyframes launcher-in { from { translate: 0 -.9rem; scale: .88; opacity: .4; } }
@keyframes develop-in { from { filter: blur(8px) saturate(.55); scale: 1.025; opacity: .5; } }
@keyframes report-in {
  from { clip-path: inset(100% -12% -12%); translate: 0 .65rem; opacity: .45; }
  to { clip-path: inset(-12%); }
}

@supports (animation-timeline: scroll(root block)) and (animation-range: 0px 380px) {
  @media (prefers-reduced-motion: no-preference) {
    .intro-photo {
      transform-origin: 82% 58%;
      animation: bonsai-push var(--ease-out) both;
      animation-timeline: scroll(root block);
      animation-range: 0px 380px;
    }
  }
}
@keyframes bonsai-push { to { scale: 1.25; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .service-list > li {
      animation: service-card-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 80%;
    }
  }
}
@keyframes service-card-in { from { translate: 0 1.4rem; opacity: .6; } }

@media (max-width: 900px) {
  .services-intro, .ai-intro { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 900px) {
  .showcase-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 740px) {
  .intro-frame { align-items: start; min-height: clamp(32rem, 88vw, 36rem); }
  .intro-frame::before {
    background: linear-gradient(180deg, #f5f1e9f2 0%, #f5f1e9d0 34%, #f5f1e900 60%);
  }
  .intro-photo { object-position: 60% center; }
  .intro-copy { max-width: 31rem; }
  .intro h1 { max-width: 17ch; }
  .intro-links a { background: var(--page); border-radius: .28rem; padding-inline: .65rem; }
}

@media (max-width: 650px) {
  .site-header { padding-block: .6rem; }
  .site-header nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0 clamp(.9rem, 4vw, 1.25rem);
    scrollbar-width: none;
  }
  .site-header nav a { font-size: .87rem; flex: none; }
  .pathwanderer .scene-art img { width: auto; height: clamp(16rem, 84vw, 22rem); margin-inline: auto; }
  .scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 28rem;
    padding: 1.35rem 1.25rem;
    gap: .55rem;
  }
  .scene p { margin-block: .6rem .45rem; }
  .scene-art img { height: clamp(9.5rem, 49vw, 14rem); }
  .ringdock .scene-art img, .glowtape .scene-art img {
    width: min(100%, 24rem);
    height: clamp(9.5rem, 49vw, 14rem);
    object-fit: contain;
    margin-inline: auto;
    box-shadow: none;
  }
}

@media (max-width: 350px) {
  .site-header nav { display: grid; grid-template-columns: repeat(2, auto); column-gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .scene-link:is(:hover, :focus-visible) span, .project-link:is(:hover, :focus-visible) span { translate: none; }
}
