/* Layout: black header and hero bands framing light content sections, centred headlines, soft rounded cards */
:root {
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #a1a1a6;
  --soft: #f5f5f7;
  --white: #ffffff;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-text: #0066cc;
  --blue-bright: #2997ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif; text-wrap: balance; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header + menu */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.logo { color: var(--soft); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.nav ul { display: flex; gap: 20px; list-style: none; }
.nav ul a { color: #d2d2d7; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.nav ul a:hover, .nav ul a.active { color: var(--soft); }
.menu-btn { display: none; background: none; border: 0; color: var(--soft); font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* Hero */
.hero { background: var(--black); color: var(--soft); text-align: center; padding: 110px 0 120px; }
.hero.small { padding: 84px 0 92px; }
.eyebrow { display: block; color: var(--blue-bright); font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; max-width: 820px; margin: 0 auto; }
.hero.small h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { color: var(--muted-dark); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.45; max-width: 640px; margin: 20px auto 34px; }
.hero.small p { margin-bottom: 0; }

.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 12px 24px; border-radius: 980px;
  font-size: 1rem; font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.btn:hover { background: #0077ed; }
.btn-ghost { background: transparent; color: var(--blue-bright); border: 1px solid var(--blue-bright); margin-left: 12px; }
.btn-ghost:hover { background: rgba(41, 151, 255, 0.12); }

/* Sections */
section { padding: 100px 0; }
.soft { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--soft); border-radius: 20px; padding: 32px; }
.soft .card { background: var(--white); }
.card .num { color: var(--blue-text); font-weight: 600; font-size: 0.85rem; }
.card h3 { font-size: 1.4rem; letter-spacing: -0.015em; margin: 8px 0 8px; }
.card p { color: var(--muted); font-size: 1rem; }
a.card { text-decoration: none; display: block; transition: transform 0.25s, box-shadow 0.25s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.card .more { display: inline-block; margin-top: 16px; color: var(--blue-text); font-weight: 500; }
.card.minor { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 22px 32px; }
.card.minor h3 { font-size: 1.1rem; margin: 0 0 2px; }
.card.minor p { font-size: 0.95rem; }
.card.minor .more { margin: 0 0 0 auto; white-space: nowrap; }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { background: var(--soft); border-radius: 20px; padding: 32px; display: flex; gap: 20px; }
.soft .person { background: var(--white); }
a.person { text-decoration: none; transition: transform 0.25s, box-shadow 0.25s; }
a.person:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
.avatar {
  flex: 0 0 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1.15rem;
}
.person h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.person .role { color: var(--blue-text); font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; display: block; }
.person p { color: var(--muted); }
.person .more { display: inline-block; margin-top: 12px; color: var(--blue-text); font-weight: 500; }

/* Profile pages */
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.profile-head .avatar { flex: 0 0 auto; width: 88px; height: 88px; font-size: 1.6rem; background: #1d1d1f; color: var(--soft); }
.profile-head .role { color: var(--blue-bright); font-weight: 600; font-size: 1.1rem; display: block; margin-top: 8px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-grid .card h3 { margin-top: 0; font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 980px; padding: 6px 14px; font-size: 0.9rem; color: var(--ink); }
.timeline { list-style: none; max-width: 820px; margin: 0 auto; }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.timeline .what { font-weight: 600; font-size: 1.05rem; }
.timeline .where { color: var(--muted); }
.back { display: inline-block; margin-bottom: 28px; color: var(--blue-text); font-weight: 500; text-decoration: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 1px solid var(--line); padding-top: 20px; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* CTA band */
.cta { background: var(--black); color: var(--soft); text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.cta p { color: var(--muted-dark); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }

/* Contact page */
.contact-box { max-width: 720px; display: grid; gap: 20px; }
.contact-box a { color: var(--blue-text); font-weight: 500; }

footer { background: var(--soft); color: var(--muted); font-size: 0.78rem; padding: 22px 0; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid, .grid.two { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .team, .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 80px 0 88px; }
  .hero.small { padding: 64px 0 70px; }
  section { padding: 72px 0; }
  .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .btn-ghost { margin: 12px 0 0 12px; }
  .person { flex-direction: column; }
  .card.minor { flex-wrap: wrap; gap: 6px 16px; }
  .card.minor .more { margin: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

.card h3, .person h3 { text-wrap: wrap; }
a.card { display: flex; flex-direction: column; }
a.card .more { margin-top: auto; padding-top: 16px; }
.card.minor { flex-direction: row; align-items: center; }
.card.minor .more { margin: 0 0 0 auto; padding-top: 0; }
.card.minor .num { display: block; margin-bottom: 4px; }
@media (max-width: 600px) { .card.minor { flex-direction: column; align-items: flex-start; } .card.minor .more { margin: 8px 0 0; } }

/* Services grid + stats (replaces tiles) */
.big-head { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 36px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bento .tile { display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-decoration: none; background: var(--soft); color: var(--ink); border-radius: 28px; padding: 44px 40px 40px; min-height: 360px; transition: transform 0.3s; }
.bento .tile:hover { transform: scale(1.01); }
.bento .kicker { color: var(--muted); font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.bento .tile h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.08; }
.bento .tile p { color: var(--muted); font-size: 1.15rem; line-height: 1.45; margin: 14px 0 28px; max-width: 420px; }
.bento .tile .btn { margin-top: auto; padding: 9px 20px; font-size: 0.95rem; }
.bento .tile-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 40px; }
.bento .tile-wide h3 { font-size: 1.5rem; }
.bento .tile-wide p { margin: 6px 0 0; font-size: 1.05rem; }
.bento .link { color: var(--blue-text); font-size: 1.05rem; white-space: nowrap; }
.stats { background: var(--soft); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 22px; }
.stat-big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat-label { color: var(--muted); font-size: 1.1rem; line-height: 1.4; max-width: 260px; }
.cta { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.cta p { color: var(--muted); }
@media (max-width: 760px) {
  .bento, .stat-row { grid-template-columns: 1fr; }
  .bento .tile { min-height: 0; padding: 36px 28px; }
  .bento .tile-wide { flex-direction: column; align-items: flex-start; padding: 28px; }
}

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav ul {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--black);
    padding: 8px 24px 20px;
  }
  .nav ul a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid #1d1d1f; }
  body.nav-open .nav ul { display: flex; }
}

/* Menu hover underline */
.nav ul a { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: color 0.2s, text-decoration-color 0.2s; }
.nav ul a:hover, .nav ul a:focus-visible { text-decoration-color: rgba(245, 245, 247, 0.6); }
@media (max-width: 760px) { .nav ul a:hover { text-decoration-color: transparent; } }

.card.project { max-width: 820px; margin: 0 auto; background: var(--white); }
.card.project .kicker { color: var(--muted); font-weight: 600; }
.card.project h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.proj-stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 22px 0 6px; }
.proj-stats > div { display: flex; flex-direction: column; }
.proj-big { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.proj-label { color: var(--muted); font-size: 0.95rem; max-width: 220px; }

/* New logo */
.logo { display: inline-flex; align-items: center; gap: 5px; color: var(--soft); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.015em; }
.logo .logo-mark { background: #ffffff; color: #000000; border-radius: 7px; padding: 1px 7px 2px; font-weight: 800; letter-spacing: -0.01em; }

/* Service page features (no numbers, no boxes) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature h3 { font-size: 1.3rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 1.02rem; }
.section-head { margin: 0 0 48px; text-align: left; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.05; }
.timeline { margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.profile-email { display: inline-block; margin-top: 10px; color: var(--blue-bright); text-decoration: none; font-size: 1.05rem; }
.profile-email:hover { text-decoration: underline; }

.avatar svg { display: block; }
.profile-head .avatar svg { width: 38px; height: 38px; }


/* ===== Own identity: minimal, less Apple ===== */
:root {
  --ink: #111111;
  --muted: #5f6368;
  --soft: #fafafa;
  --line: #e4e4e7;
  --sans: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body, h1, h2, h3 { font-family: var(--sans); }
h1, h2, h3 { letter-spacing: -0.025em; }

header { background: #0a0a0a; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid #1f1f1f; }
.nav { height: 60px; }
.nav ul a { font-size: 0.88rem; color: #c4c4c8; font-weight: 500; }

.hero { text-align: left; background: #0a0a0a; }
.hero h1 { margin: 0; max-width: 900px; font-weight: 700; letter-spacing: -0.035em; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero p { margin: 22px 0 34px; max-width: 620px; color: #a1a1a6; }
.hero.small p { margin-bottom: 0; }
.eyebrow { font-weight: 600; }

.section-head h2, .big-head { font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.big-head { margin-bottom: 32px; }

.bento .tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 300px; padding: 36px 34px 32px; transition: border-color 0.2s; }
.bento .tile:hover { transform: none; border-color: var(--ink); }
.bento .kicker { color: var(--blue-text); font-weight: 600; font-size: 0.95rem; }
.bento .tile h3 { font-weight: 700; }
.bento .tile-wide { padding: 26px 34px; }

.card, .person { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.soft .card, .soft .person { background: #fff; }
a.card:hover, a.person:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.avatar { border-radius: 12px; background: var(--ink); }

.stat-big { font-weight: 800; }
.stat { border-top: 1px solid var(--ink); }
.feature { border-top: 1px solid var(--ink); }
.feature h3, .step h3 { font-weight: 700; }
.chip { border-radius: 8px; font-size: 0.88rem; background: var(--soft); }

.profile-head { flex-direction: row; align-items: center; gap: 22px; }
.profile-head .avatar { border-radius: 14px; width: 80px; height: 80px; background: #1f1f1f; }

.cta { text-align: left; background: var(--soft); border-top: 1px solid var(--line); }
.cta p { margin: 0 0 28px; }
footer { background: #fff; }
.logo { font-family: var(--sans); font-weight: 800; }
.logo .logo-mark { font-weight: 800; }

@media (max-width: 600px) { .profile-head { flex-direction: column; align-items: flex-start; } }

/* Archivo: slightly expanded headings, normal-width body */
h1, h2, h3, .logo, .stat-big { font-stretch: 112%; }
h1, h2, h3 { letter-spacing: -0.015em; }
.hero h1 { letter-spacing: -0.02em; }
body { font-stretch: 100%; }

/* Keep the menu button on the far right on phones */
@media (max-width: 760px) {
  .nav > nav { order: 2; }
  .menu-btn { order: 3; margin-left: auto; padding: 8px 0 8px 12px; }
}
