/* ==========================================================================
   Lumen — minimal AI agency portfolio
   Design: Apple-style. Heavy whitespace, system type, restrained palette.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-card: #fafafa;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-muted: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --max: 1120px;
  --pad: clamp(20px, 4vw, 40px);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

/* ---------- Layout ---------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section {
  padding: clamp(72px, 10vw, 140px) 0;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 18ch;
}

.section-lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.5;
  margin-bottom: 56px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active { opacity: 1; font-weight: 500; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: #000; }

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #0071e3, #6e44ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--ink-soft);
  max-width: 30ch;
  margin: 0 auto 40px;
  line-height: 1.45;
}

.hero-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink);
  color: #fff !important;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink) !important;
}
.btn-ghost:hover { border-color: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Service grid ---------- */

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 24px;
  font-size: 20px;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-block:last-child { border-bottom: none; }

.service-block .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.service-block h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.service-block p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  font-size: 16px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
}

@media (max-width: 880px) {
  .service-block { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
}

/* ---------- Work / case study tiles ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.case:hover { transform: translateY(-4px); }

.case-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.case h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 22ch;
}

.case-result {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.case-result .stat {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.case-result .stat span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.case--dark { background: #1d1d1f; color: #f5f5f7; }
.case--dark .case-tag { color: #a1a1a6; }
.case--dark p { color: #c7c7cc; }

.case--accent { background: linear-gradient(135deg, #eef4ff, #f7eeff); }

@media (max-width: 700px) {
  .case-grid { grid-template-columns: 1fr; }
  .case { padding: 36px 28px; min-height: 240px; }
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat-item .num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-item .label {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA banner ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px) clamp(32px, 6vw, 80px);
  text-align: center;
  margin: clamp(60px, 8vw, 100px) 0;
}
.cta h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta p {
  color: #c7c7cc;
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto 32px;
}
.cta .btn-primary {
  background: #fff;
  color: var(--ink) !important;
}
.cta .btn-primary:hover { background: #f0f0f0; }
.cta .btn-ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff !important;
}
.cta .btn-ghost:hover { border-color: #fff; }

/* ---------- About ---------- */

.about-hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 28px;
}
.about-hero p {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.45;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  margin-top: 40px;
}
.principle h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.principle p {
  color: var(--ink-soft);
  line-height: 1.55;
}
@media (max-width: 880px) { .principles { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-info dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.contact-info dd {
  font-size: 18px;
  margin-bottom: 28px;
  color: var(--ink);
}

.form {
  display: grid;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ---------- Marquee logo strip ---------- */

.logos {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 32px 0;
  opacity: 0.6;
}
.logos span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 40px;
  font-size: 13px;
  color: var(--ink-muted);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-links { display: flex; gap: 24px; list-style: none; }
.foot-links a { color: var(--ink-muted); font-size: 13px; }
.foot-links a:hover { color: var(--ink); }

/* ---------- Utility ---------- */

.center { text-align: center; }
.muted { color: var(--ink-soft); }
.divider { border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- Personal portfolio extras ---------- */

.hero--personal {
  text-align: left;
  padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 80px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero--personal h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero--personal p.lede {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.5;
  margin: 0 0 36px;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .profile-wrap { order: -1; margin-bottom: 8px; }
}

.profile-wrap {
  width: clamp(120px, 14vw, 160px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--bg-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-fallback {
  font-size: 64px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: -0.02em;
}

/* Smaller about-page photo */
.profile-wrap--about {
  width: clamp(120px, 14vw, 160px);
}

/* ---------- Avatar strip (signature row under hero) ---------- */
.avatar-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 clamp(40px, 6vw, 80px);
}
.avatar-strip__photo {

  width: 36px;

  height: 36px;

  border-radius: 50%;

  background: var(--bg-soft);

  overflow: hidden;

  flex-shrink: 0;

  border: 1px solid var(--line-soft);

  display: grid;

  place-items: center;

}

.avatar-strip__photo img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

}
.avatar-strip__photo .profile-fallback { font-size: 18px; }
.avatar-strip__meta { display: flex; flex-direction: column; line-height: 1.3; }
.avatar-strip__name {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.avatar-strip__tag { font-size: 13px; color: var(--ink-soft); }

/* Skill tag pills */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.skill-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}
.skill-tag--filled {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Capability / project rows */
.work-list {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.work-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.work-row:last-child { border-bottom: 1px solid var(--line-soft); }
.work-row .meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.work-row h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.work-row p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  max-width: 60ch;
}
.work-row .right {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .work-row { grid-template-columns: 1fr; gap: 6px; }
  .work-row .right { margin-top: 6px; }
}

/* Stage tag */
.stage {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  margin-left: 8px;
  vertical-align: middle;
}
.stage--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
