:root {
  --brand: #1cade4;
  --brand-dark: #0f87b8;
  --ink: #16202a;
  --gray: #5b6b78;
  --border: #e4e9ee;
  --bg-soft: #f6f9fb;
  --white: #ffffff;
  --paper: #f2ede4;
}

* {
  box-sizing: border-box;
}

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

.serif {
  font-family: "Fraunces", Georgia, serif;
}

/* Avoid flash of unstyled/unanimated content before GSAP initializes */
body.pre-anim [data-hero],
body.pre-anim [data-reveal],
body.pre-anim [data-reveal-item] {
  opacity: 0;
}

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

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(22, 32, 42, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  transition: padding 0.25s ease;
}

header.is-scrolled .nav {
  padding: 11px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15.5px;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--brand-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
}

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
}

/* ---------- Hero (asymmetric, editorial) ---------- */
.hero {
  padding: 76px 0 88px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
  align-items: start;
}

.hero-text h1 {
  font-size: 44px;
  line-height: 1.16;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 640px;
}

.hero-text h1 span {
  color: var(--brand-dark);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
}

.hero-text p {
  font-size: 17.5px;
  color: var(--gray);
  max-width: 480px;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.hero-mark {
  margin-top: 10px;
}

.mark-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: var(--paper);
  position: relative;
}

.mark-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
}

.mark-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

/* ---------- Section shared ---------- */
section {
  padding: 88px 0;
}

.section-head-split {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-head-split h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
  grid-column: 1;
}

.section-head-split .eyebrow {
  grid-column: 1;
  margin-bottom: 8px;
  align-self: start;
}

.section-note {
  color: var(--gray);
  font-size: 15.5px;
  margin: 0;
  max-width: 420px;
  grid-column: 2;
  align-self: end;
}

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

/* ---------- Products: editorial rows, not a grid ---------- */
.product-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.product-row:last-child {
  border-bottom: 1px solid var(--border);
}

.product-row-label {
  padding-top: 4px;
}

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.product-row-body h3 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 12px;
}

.product-row-body p {
  color: var(--gray);
  margin: 0 0 16px;
  font-size: 15.5px;
  max-width: 620px;
}

.product-row-body ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--gray);
  font-size: 14.5px;
  max-width: 560px;
}

.product-row-body ul li {
  margin-bottom: 6px;
}

.link-arrow {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.link-arrow:hover {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ---------- Services: mosaic (uneven card sizes) ---------- */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  grid-column: span 1;
}

.service-card--wide {
  grid-column: span 2;
}

.service-index {
  display: block;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 15px;
  color: var(--brand-dark);
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- About / founder ---------- */
.about-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.photo-frame {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--border);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 16px;
}

.about-text .lead {
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 22px;
  line-height: 1.5;
}

.about-text p {
  color: var(--gray);
  font-size: 15.5px;
  margin: 0 0 16px;
  max-width: 560px;
}

.signature {
  margin-top: 24px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin: 0 0 8px;
  font-weight: 700;
}

.contact-info .block {
  margin-bottom: 28px;
}

.contact-info a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}

.contact-info a:hover {
  color: var(--brand-dark);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 173, 228, 0.15);
}

.contact-form .field {
  margin-bottom: 16px;
}

.form-msg {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-msg.success {
  display: block;
  background: #e7f8ee;
  color: #1b7d43;
  border: 1px solid #bfe9cf;
}

.form-msg.error {
  display: block;
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f6c5c2;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #cbd5df;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #a9b8c5;
  margin: 0 0 10px;
  display: block;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #8496a4;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .hero-inner,
  .section-head-split,
  .product-row,
  .services-mosaic,
  .about-split,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: span 1;
  }
  .section-head-split {
    padding-bottom: 20px;
  }
  .section-note {
    grid-column: 1;
    max-width: none;
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-mark {
    order: -1;
  }
  .photo-frame {
    max-width: 320px;
    margin: 0 auto;
  }
  section {
    padding: 56px 0;
  }
}
