:root {
  --bg: #f7f5f0;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #2f2619;
  --muted: #716657;
  --brand-blue: #173d6b;
  --brand-blue-deep: #102c4d;
  --line: rgba(23, 61, 107, 0.14);
  --line-strong: rgba(23, 61, 107, 0.24);
  --shadow: 0 28px 60px rgba(69, 52, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(23, 61, 107, 0.06), transparent 30%),
    radial-gradient(circle at bottom right, rgba(120, 92, 44, 0.08), transparent 32%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: max(100vh, 920px);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 32px;
  display: flex;
  flex-direction: column;
}

.page-home {
  align-items: center;
  justify-content: flex-start;
}

.site-header {
  width: min(940px, 100%);
  margin: 0 auto 28px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark-full,
.brand-mark-compact {
  width: min(220px, 34vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(16, 44, 77, 0.14));
}

.brand-mark-compact {
  display: none;
  width: 48px;
  filter: drop-shadow(0 10px 18px rgba(16, 44, 77, 0.12));
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-blue);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.hero {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: center;
}

.brand-lockup img {
  width: min(62vw, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 35px rgba(16, 44, 77, 0.15));
}

.apps {
  width: 100%;
  max-width: 920px;
  margin-top: 22px;
}

.home-intro,
.featured-project,
.studio-strip {
  width: min(940px, 100%);
  padding: 0 38px;
}

.home-intro {
  /*
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 22px;
  */
  padding-top: 48px;
}

.intro-copy h1 {
  margin: 0;
  font-size: 48px;
  line-height: 0.94;
  letter-spacing: -0.06em;
  /*max-width: 11ch;*/
}

.intro-text {
  margin-top: 16px;
 /* max-width: 38rem;*/
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--muted);
}

.intro-mark {
  display: flex;
  justify-content: flex-start;
}

.intro-mark img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(16, 44, 77, 0.14));
}

.featured-project {
  margin-top: 0px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.project-feature {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 241, 232, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-media {
  width: 120px;
}

.project-media .app-preview {
  border-radius: 28px;
}

.project-kicker {
  margin: 0 0 0px;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.project-body h3 {
  margin: 0 0 0px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  letter-spacing: -0.04em;
}

.project-body p,
.studio-note p {
  margin: 0;
  line-height: 1.72;
  color: var(--muted);
}

.project-points {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.project-points li + li {
  margin-top: 10px;
}

.project-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.project-actions .app-link {
  white-space: nowrap;
}

.text-link {
  color: var(--brand-blue);
  font-weight: 600;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--brand-blue-deep);
}

.studio-strip {
  margin-top: 56px;
}

.studio-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 320px);
  gap: 28px;
  align-items: start;
}

.studio-links {
  display: grid;
  gap: 10px;
}

.studio-links a {
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, border-color 160ms ease;
}

.studio-links a:hover,
.studio-links a:focus-visible {
  color: var(--brand-blue);
  border-color: var(--line-strong);
}

.app-card {
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface-strong), rgba(246, 241, 232, 0.86));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.app-preview {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(23, 61, 107, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-card h1,
.content-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.app-card p,
.content-card p,
.content-card li {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.app-actions {
  display: flex;
  align-items: center;
}

.app-link,
.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: var(--brand-blue);
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.app-link:hover,
.app-link:focus-visible,
.button-link:hover,
.button-link:focus-visible,
button:hover,
button:focus-visible {
  background: var(--brand-blue-deep);
  transform: translateY(-1px);
}

.content-page {
  width: 100%;
  flex: 1;
  display: flex;
}

.content-card {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 38px 38px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.content-card > * + * {
  margin-top: 18px;
}

.content-card h2 {
  margin: 28px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.content-card ul {
  margin: 0;
  padding-left: 20px;
}

.content-card li + li {
  margin-top: 10px;
}

.content-meta,
.eyebrow {
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.site-footer {
  width: min(940px, 100%);
  margin: auto auto 0;
  padding: 28px 38px 0;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(23, 61, 107, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 61, 107, 0.08);
}

.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-note {
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .project-feature,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .project-media {
    width: 104px;
  }

  .project-actions {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page {
    min-height: 100vh;
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 18px;
  }

  .brand-mark-full {
    display: none;
  }

  .brand-mark-compact {
    display: block;
    width: 52px;
  }

  .site-nav,
  .footer-links {
    gap: 8px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a,
  .footer-links a {
    padding: 8px 10px;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .featured-project,
  .studio-strip {
    padding: 0 18px;
  }

  .home-intro {
    gap: 22px;
    padding-top: 24px;
  }

  .intro-copy h1 {
    /*max-width: 12ch;*/
  }

  .intro-text {
    font-size: 1rem;
  }

  .intro-mark img {
    width: min(220px, 62vw);
  }

  .featured-project,
  .studio-strip {
    margin-top: 40px;
  }

  .project-feature {
    padding: 22px 18px;
    border-radius: 24px;
    gap: 18px;
  }

  .project-media {
    width: 88px;
  }

  .project-actions {
    align-items: stretch;
    gap: 12px;
  }

  .project-actions .app-link {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .content-card {
    padding: 22px 18px;
  }

  .site-footer {
    padding: 28px 18px 0;
  }

  .app-card h1,
  .content-card h1 {
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .contact-form textarea {
    min-height: 180px;
  }
}
