:root {
  --bg: #f7f9fb;
  --paper: #ffffff;
  --ink: #101014;
  --text: #202833;
  --muted: #657184;
  --line: #dfe6ee;
  --teal: #0f766e;
  --cyan: #0891b2;
  --amber: #d97706;
  --rose: #be123c;
  --lime: #4d7c0f;
  --violet: #6d28d9;
  --shadow: 0 24px 60px rgba(16, 16, 20, 0.12);
  --radius: 8px;
  --header: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.9);
  border-bottom: 1px solid rgba(223, 230, 238, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  font-weight: 800;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #344154;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: #eef5f8;
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: #fff;
  background: var(--teal);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(82svh - var(--header));
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.92), rgba(16, 16, 20, 0.78) 44%, rgba(16, 16, 20, 0.3) 78%), url("../img/hero-workspace.webp");
  background-size: cover;
  background-position: 62% center;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0), var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 790px;
  padding-block: 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #99f6e4;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 4.3rem;
  line-height: 0.98;
}

.hero h1,
.page-hero h1,
.hero-copy,
.page-hero p {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.36);
}

h2 {
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-copy,
.page-hero p,
.section-heading p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
  font-size: 1.15rem;
}

.section-heading p,
.about-copy p,
.contact-panel p,
.commerce-grid p {
  color: var(--muted);
}

.hero-actions,
.cta-panel,
.product-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.primary:hover {
  background: #0b5f59;
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.button.small {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding-top: 56px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.stats-grid,
.values-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card,
.value-card,
.product-card,
.contact-form,
.contact-panel,
.portrait-card,
.commerce-list,
.store-preview,
.process-list,
.timeline-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(16, 16, 20, 0.06);
}

.stat-card,
.value-card {
  padding: 28px;
}

.stat-card span,
.value-card span,
.timeline-list span,
.product-type {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stat-card:nth-child(2) span,
.value-card:nth-child(2) span,
.product-type.accent {
  color: var(--rose);
}

.stat-card:nth-child(3) span,
.value-card:nth-child(3) span,
.product-type.warm {
  color: var(--amber);
}

.stat-card p,
.value-card p,
.store-preview p,
.product-card p,
.process-list p,
.timeline-list p,
.commerce-list span {
  color: var(--muted);
}

.feature-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, 260px);
  gap: 18px;
}

.feature-image,
.gallery-open {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
}

.feature-image img,
.gallery-open img,
.product-card img,
.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.feature-image:hover img,
.gallery-open:hover img,
.product-card:hover img {
  transform: scale(1.04);
}

.feature-image.tall {
  grid-row: span 2;
}

.feature-image span,
.gallery-open span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-weight: 900;
}

.feature-image::after,
.gallery-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 16, 20, 0), rgba(16, 16, 20, 0.75));
}

.split-section {
  background: #eef3f7;
}

.split-grid,
.about-grid,
.contact-grid,
.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px;
}

.store-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.store-preview article,
.commerce-list article,
.timeline-list article {
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
}

.cta-panel {
  justify-content: space-between;
  padding: 36px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--ink), #123a3a 58%, #7c2d12);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 680px;
  margin: 0;
  color: #fff;
}

.page-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero-inner {
  padding: 120px 0 72px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: 3.7rem;
}

.gallery-hero {
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.82), rgba(16, 16, 20, 0.3)), url("../img/gallery-08-night-archive.webp");
}

.about-hero {
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.84), rgba(16, 16, 20, 0.28)), url("../img/hero-workspace.webp");
}

.store-hero {
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.86), rgba(16, 16, 20, 0.35)), url("../img/gallery-05-depth-study.webp");
}

.apps-hero {
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.86), rgba(16, 16, 20, 0.34)), url("../img/gallery-04-glass-circuit.webp");
}

.contact-hero {
  background-image: linear-gradient(90deg, rgba(16, 16, 20, 0.86), rgba(16, 16, 20, 0.32)), url("../img/gallery-06-pixel-drift.webp");
}

.gallery-toolbar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-card {
  aspect-ratio: 4 / 5;
}

.gallery-card.is-hidden {
  display: none;
}

.gallery-open {
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
}

.gallery-open strong,
.gallery-open small {
  display: block;
}

.gallery-open small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
}

.process-list {
  padding: 24px;
}

.process-list p + p {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(16, 16, 20, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  width: min(980px, 100%);
}

.lightbox img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #000;
}

.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.portrait-card {
  overflow: hidden;
}

.portrait-card img {
  aspect-ratio: 1.1 / 1;
}

.portrait-card div {
  padding: 24px;
}

.portrait-card span,
.portrait-card strong {
  display: block;
}

.portrait-card span {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.portrait-card strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.2rem;
}

.about-copy h2 {
  font-size: 3rem;
}

.timeline {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  height: 230px;
}

.apps-intro {
  margin-bottom: 32px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(16, 16, 20, 0.06);
}

.app-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.app-card-top {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.app-icon {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(16, 16, 20, 0.08);
}

.app-icon-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-store-label {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.app-card h2 {
  margin-bottom: 5px;
  font-size: 1.55rem;
}

.app-card-top p,
.app-description,
.empty-state p {
  color: var(--muted);
}

.app-card-top p,
.app-description {
  margin-bottom: 0;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #334155;
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.86rem;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.app-links a,
.app-page-links a {
  color: var(--teal);
  font-weight: 900;
}

.app-links a:hover,
.app-page-links a:hover {
  color: var(--ink);
}

.app-page-section {
  padding-top: 56px;
}

.app-page-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.app-page-summary,
.app-page-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(16, 16, 20, 0.06);
}

.app-page-summary {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.app-page-summary h1 {
  margin: 6px 0 4px;
  font-size: 1.7rem;
  line-height: 1.08;
}

.app-page-summary p {
  color: var(--muted);
}

.app-page-links {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.app-page-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.app-page-links a.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.app-page-content {
  padding: 32px;
}

.app-page-content h2 {
  font-size: 2.4rem;
}

.legal-content {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.legal-content p {
  margin: 0;
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
}

.empty-state span {
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.empty-state h2 {
  margin-top: 8px;
}

.product-body {
  padding: 24px;
}

.product-meta {
  justify-content: space-between;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.product-meta strong {
  color: var(--ink);
}

.commerce-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.commerce-list strong,
.commerce-list span {
  display: block;
}

.commerce-list strong {
  color: var(--ink);
  margin-bottom: 6px;
}

.contact-grid {
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 28px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-links a,
.contact-links span {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.contact-links a:hover {
  color: var(--teal);
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: var(--radius);
  color: #064e3b;
  background: #ecfdf5;
  font-weight: 800;
}

.form-status.error {
  border-color: rgba(190, 18, 60, 0.25);
  color: #881337;
  background: #fff1f2;
}

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

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #fff;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.filter-button:focus-visible,
.button:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
.gallery-open:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
}

.site-footer {
  padding: 54px 0;
  color: #cbd5e1;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 32px;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--teal), var(--rose));
}

.footer-brand small,
.site-footer p {
  color: #94a3b8;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.site-footer a:not(.brand):hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms ease, transform 550ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.1rem;
  }

  h2,
  .about-copy h2 {
    font-size: 2.25rem;
  }

  .stats-grid,
  .values-grid,
  .product-grid,
  .apps-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid,
  .about-grid,
  .contact-grid,
  .commerce-grid,
  .app-page-shell,
  .timeline {
    grid-template-columns: 1fr;
  }

  .app-page-summary {
    position: static;
  }

  .feature-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .feature-image,
  .feature-image.tall {
    min-height: 260px;
    grid-row: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    inset: var(--header) 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .hero {
    min-height: calc(78svh - var(--header));
    background-position: 58% center;
  }

  .hero-inner,
  .page-hero-inner {
    padding-block: 72px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  h2,
  .about-copy h2 {
    font-size: 1.85rem;
  }

  .hero-copy,
  .page-hero p,
  .section-heading p {
    font-size: 1rem;
  }

  .section {
    padding: 64px 0;
  }

  .stats-grid,
  .values-grid,
  .product-grid,
  .apps-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .app-card-top {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .app-icon {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  .gallery-card {
    aspect-ratio: 1 / 1;
  }

  .cta-panel {
    align-items: flex-start;
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.74rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.05rem;
  }

  .button {
    width: 100%;
  }
}
