:root {
  color-scheme: only light;
  --sky-top: #79bce9;
  --sky-bottom: #dff4ff;
  --ink: #16324a;
  --ink-soft: #47677e;
  --paper: #fffdf6;
  --cream: #fff7de;
  --line: rgba(22, 50, 74, 0.14);
  --green: #287a61;
  --blue: #256ba5;
  --shadow: 0 22px 70px rgba(44, 83, 110, 0.16);
  --max: 1160px;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffce5c; outline-offset: 4px; }
button { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { font-size: 1.28rem; font-weight: 900; letter-spacing: -0.05em; }
.brand span { color: #fff2a3; text-shadow: 0 2px 12px rgba(255,255,255,.8); }
.nav { display: flex; gap: 1.25rem; font-size: .92rem; font-weight: 750; }
.nav a { opacity: .78; }
.nav a:hover { opacity: 1; }

.sky-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 14%, rgba(255,255,255,.65), transparent 16rem),
    linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}
.sky-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(255,253,246,0), var(--paper));
  pointer-events: none;
}
.sun {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  top: 105px;
  right: 11vw;
  background: #fff4a8;
  box-shadow: 0 0 80px rgba(255, 244, 168, .7);
}
.cloud {
  --scale: 1;
  position: absolute;
  isolation: isolate;
  width: calc(190px * var(--scale));
  height: calc(58px * var(--scale));
  border-radius: 999px;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 30px rgba(75, 125, 155, .12);
  animation: drift 18s ease-in-out infinite alternate;
}
.cloud::before, .cloud::after, .cloud span {
  content: "";
  position: absolute;
  bottom: 18%;
  border-radius: 50%;
  background: rgba(255,255,255,.92) !important;
}
.cloud::before { width: 45%; height: 150%; left: 12%; }
.cloud::after { width: 34%; height: 115%; right: 15%; }
.cloud span { width: 29%; height: 95%; left: 42%; }
.cloud-a { --scale: .9; top: 170px; left: -45px; animation-duration: 16s; }
.cloud-b { --scale: 1.15; top: 285px; right: -75px; animation-duration: 22s; }
.cloud-c { --scale: .62; top: 100px; left: 44%; opacity: .75; animation-duration: 20s; }
.cloud-d { --scale: .72; bottom: 120px; left: 14%; opacity: .72; animation-duration: 24s; }
@keyframes drift { from { transform: translateX(-10px) translateY(0); } to { transform: translateX(24px) translateY(-8px); } }

.hero {
  position: relative;
  z-index: 4;
  min-height: 760px;
  padding: 9rem 0 8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.hero-copy { max-width: 780px; }
.eyebrow, .app-kicker, .project-kicker {
  margin: 0 0 .85rem;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .66;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1.45rem;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 900;
}
h1 em { font-style: normal; color: #fffdf4; text-shadow: 0 3px 0 rgba(37,107,165,.12); }
.lede { max-width: 660px; margin-bottom: 2rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #24475e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .82rem 1.2rem; border-radius: 999px; font-weight: 850; transition: transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 9px 26px rgba(22,50,74,.18); }
.button-cloud { background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(10px); }

.thought-card {
  align-self: end;
  margin-bottom: 3.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform: none;
}
.thought-card strong { display: block; margin-bottom: .55rem; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.025em; }
.thought-card p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.scribble { margin-bottom: .65rem; font-family: "Comic Sans MS", "Bradley Hand", cursive; font-size: 1.05rem; color: var(--blue); }

.apps-section { position: relative; z-index: 6; margin-top: -45px; padding: 1.2rem 0 6rem; }
.section-heading { max-width: 710px; margin-bottom: 2.2rem; }
.section-heading h2, .connect h2 { margin-bottom: .75rem; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .97; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.04rem; }
.apps-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.reset-pins { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.reset-pins:hover { background: var(--cream); }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.app-card {
  position: relative;
  min-height: 245px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 35px rgba(47,83,107,.07);
  transition: transform .18s ease, box-shadow .18s ease;
  order: 2;
}
.app-card.is-pinned { order: 0; border-color: rgba(40,122,97,.25); }
.app-card.is-pinned::before { content: "pinned"; position: absolute; top: 16px; left: 18px; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-featured { grid-column: span 2; background: linear-gradient(135deg, #fff8dc, #ffffff 72%); }
.app-link { height: 100%; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; }
.app-icon { display: block; margin-bottom: auto; padding-top: 1.1rem; font-size: 2.4rem; }
.app-card h3 { margin-bottom: .4rem; font-size: 1.55rem; letter-spacing: -.035em; }
.app-card p { color: var(--ink-soft); }
.app-card .app-kicker { margin-bottom: .35rem; color: var(--green); opacity: .8; }
.open-arrow { font-weight: 850; color: var(--blue); }
.pin-button { position: absolute; z-index: 4; top: 12px; right: 13px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(245,248,246,.9); color: #d99b14; cursor: pointer; font-size: 1.15rem; }
.pin-button:hover { background: var(--cream); }
.all-apps { display: inline-flex; margin-top: 1.25rem; font-weight: 850; color: var(--blue); }

.section { padding: 6.5rem 0; border-top: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.project-card { min-height: 290px; padding: 1.5rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fbfc; transition: transform .18s ease; }
.project-card:hover { transform: translateY(-4px); }
.project-card.featured { background: linear-gradient(145deg, #e8fff4, #f7fffb); }
.project-card h3 { margin-bottom: .6rem; font-size: 1.7rem; letter-spacing: -.04em; }
.project-card p:not(.project-kicker) { color: var(--ink-soft); }
.project-card span { margin-top: auto; font-weight: 850; color: var(--green); }
.philosophy { text-align: center; max-width: 980px; }
.big-quote { margin-bottom: 1rem; font-family: Georgia, serif; font-style: italic; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.1; color: #274f67; }
.philosophy > p:last-child { color: var(--ink-soft); }
.connect { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.5fr); gap: 4rem; align-items: end; }
.connect h2 { margin-bottom: 0; }
.connect-links { display: grid; border-top: 1px solid var(--line); }
.connect-links a { display: flex; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 850; }
.connect-links a:hover { color: var(--blue); }
.site-footer { min-height: 120px; padding: 2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: #6d8797; font-size: .86rem; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero { min-height: 700px; grid-template-columns: 1fr; padding-top: 8rem; gap: 1.5rem; }
  .thought-card { max-width: 560px; margin-bottom: 5rem; }
  .app-grid, .project-grid { grid-template-columns: 1fr 1fr; }
  .app-featured { grid-column: span 2; }
  .connect { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 72px; }
  .nav { gap: .8rem; font-size: .82rem; }
  .nav a:nth-child(2) { display: none; }
  .sky-hero, .hero { min-height: 710px; }
  .hero { padding-top: 7rem; padding-bottom: 7rem; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .sun { width: 76px; height: 76px; right: 5vw; top: 100px; }
  .cloud-a { --scale: .62; top: 150px; left: -36px; opacity: .58; }
  .cloud-b { --scale: .68; top: 300px; right: 8px; opacity: .58; }
  .cloud-c { --scale: .46; top: 92px; left: 55%; opacity: .5; }
  .cloud-d { --scale: .52; bottom: 132px; left: 7%; opacity: .5; }
  .thought-card { margin-bottom: 2rem; }
  .apps-section { margin-top: -15px; }
  .apps-heading { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .app-grid, .project-grid { grid-template-columns: 1fr; }
  .app-featured { grid-column: auto; min-height: 275px; }
  .app-card { min-height: 215px; }
  .section { padding: 5rem 0; }
  .hero-actions .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
