@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f8f6;
  --bg-alt: #eef1ec;
  --surface: #ffffff;
  --text: #14171a;
  --text-muted: #5c6259;
  --accent: #1f6f5c;
  --accent-ink: #14503f;
  --border: #dfe3da;
  --max-width: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.nav nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav nav a:first-child { margin-left: 0; }
.nav nav a:hover { color: var(--accent-ink); }

/* Hero */

.hero {
  padding: 96px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 0 32px;
}

.hero-text strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.button-ghost:hover {
  background: var(--surface);
  color: var(--accent-ink);
  border-color: var(--accent-ink);
}

.hero-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.portrait-frame {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -28px rgba(20, 23, 26, 0.3);
  background: var(--surface);
}

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

.portrait-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Process */

.process h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 640px;
  margin-bottom: 44px;
}

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

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-index {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}

.process-step h3 {
  font-size: 1.05rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Sections */

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 16px;
}

.intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 760px;
  margin-bottom: 20px;
}

.lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.product-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.product-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.product h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.product-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 20px 0 0;
}

.product-grid-single {
  max-width: 640px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 24px;
}

.product-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.96rem;
  color: var(--text);
}

.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.photo {
  border-radius: 14px;
  object-fit: cover;
  border: 3px solid var(--surface);
  box-shadow: 0 16px 32px -18px rgba(20, 23, 26, 0.4);
}

/* Collage */

.photo-collage {
  position: relative;
  height: 480px;
}

.photo-collage .photo {
  position: absolute;
}

.c-1 { width: 46%; aspect-ratio: 4/5; top: 0; left: 2%; z-index: 2; transform: rotate(-4deg); }
.c-2 { width: 34%; aspect-ratio: 1/1; top: 4%; right: 4%; z-index: 1; transform: rotate(5deg); }
.c-3 { width: 40%; aspect-ratio: 3/4; top: 38%; right: 0; z-index: 3; transform: rotate(3deg); }
.c-4 { width: 32%; aspect-ratio: 3/4; bottom: 2%; left: 0; z-index: 2; transform: rotate(-6deg); }
.c-5 { width: 30%; aspect-ratio: 4/3; top: 30%; left: 30%; z-index: 4; transform: rotate(-2deg); }
.c-6 { width: 34%; aspect-ratio: 4/5; bottom: 0; right: 24%; z-index: 1; transform: rotate(4deg); }

/* Dashboard visual */

.dashboard-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -22px rgba(20, 23, 26, 0.35);
  background: #111;
}

.dashboard-frame img {
  width: 100%;
  display: block;
}

.dashboard-placeholder {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 248, 246, 0.4);
  font-size: 0.9rem;
}

.photo-caption {
  margin: 10px 2px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Skills */

.skills {
  text-align: center;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.tags li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 14px 0 18px;
}

.contact-card {
  background: var(--text);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.contact-email {
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.contact-email:hover { color: #8fd7bf; }

.copy-button {
  background: rgba(247, 248, 246, 0.12);
  color: var(--bg);
  border: 1px solid rgba(247, 248, 246, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-button:hover {
  background: rgba(247, 248, 246, 0.22);
}

.contact-note {
  color: rgba(247, 248, 246, 0.55);
  font-size: 0.85rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent-ink);
}

/* Legal pages */

.legal {
  padding-top: 56px;
  padding-bottom: 56px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 40px 0 12px;
}

.legal-content h3 {
  font-size: 1.02rem;
  margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

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

.legal-content li {
  margin-bottom: 6px;
}

.legal-copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
}

.legal-copyright a {
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-portrait { order: -1; }
  .product-reverse .product-copy { order: 1; }
  .product-reverse .product-visual { order: 2; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .photo-collage { height: 400px; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 40px; }
  .section { padding: 64px 0; }
  .nav-inner { gap: 8px 16px; }
  .nav nav a { margin-left: 0; }
  .contact-card { padding: 28px 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .photo-collage { height: 320px; }
}
