*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-start: #faf8f4;
  --bg-end: #ede8dc;
  --text: #2e2a24;
  --text-muted: #7a7060;
  --accent: #187476;
  --accent-hover: #0f5557;
  --accent-light: #e4efec;
  --inverted-bg: #1b4142;
  --inverted-text: #e8f0ee;
  --inverted-muted: #a8c0bb;
  --services-bg: #fff;
  --contact-bg: #fff;
  --footer-bg: #333;
  --footer-text: #aaa;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --max: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-end) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

/* ── Links ── */
a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-color: rgba(74,124,111,0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* ── Nav ── */
nav {
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(74,124,111,0.15);
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-name:hover { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--accent); }

/* ── Hero ── */
#hero { padding: 72px 0 60px; }
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  box-shadow: 0 4px 24px rgba(46,42,36,0.14);
}
.hero-text h1 {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;

  animation: blink 1.4s step-end infinite;
  height: 0.95em;
  margin: -5px 0 0 13px;
  width: 16px; 
  
}
@keyframes blink { 50% { opacity: 0; } }
.hero-text .tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}
.hero-text .tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.hero-text .hero-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  max-width: 24rem;
}

/* ── Sections (light) ── */
section { padding: 64px 0; }
section + section {
  border-top: 1px solid rgba(74,124,111,0.12);
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

/* ── About / B&W block ── */
.bw-block {
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(74,124,111,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.bw-block .bw-role {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.bw-block p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Services ── */
.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(74,124,111,0.12);
  border-radius: 8px;
}
.service-item i { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.service-item span { font-size: 15px; line-height: 1.4; }
.service-item svg {
    color: var(--accent);
}

/* ── Work (inverted section) ── */
#work {
  background: var(--inverted-bg);
  border-top: none !important;
  border-bottom: none !important;
}
#work .section-label { color: var(--inverted-muted); }
#work p, #work li { color: var(--inverted-text); }

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.work-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.work-item {
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.work-item:last-child {
  border-bottom: none;
}
.work-item .client {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--inverted-text);
}
.work-item .via-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--inverted-muted);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.work-item .work-desc {
  font-size: 15px;
  color: var(--inverted-muted);
  line-height: 1.55;
  margin: 0 0 5px;
}
.work-item .work-link {
  font-family: var(--mono);
  font-size: 12px;
  color: #7ecfc0;
  text-decoration-color: rgba(126,207,192,0.3);
}
.work-item .work-link:hover {
  color: #a8e8de;
  text-decoration-color: #a8e8de;
}
.work-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0;
}

/* ── Contact ── */
#contact { padding-bottom: 80px; }
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-link i { color: var(--accent); flex-shrink: 0; }
.contact-link:hover { color: var(--accent); }
.contact-link svg {
    color: var(--accent);
}


/* ── Footer ── */
footer {
  border-top: 1px solid rgba(74,124,111,0.12);
  padding: 24px 0;
  text-align: center;
}
footer p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .hero-photo { width: 110px; height: 110px; }
}


.hero-photo { border: 7px solid var(--accent); }
.hero-text h1 { color: var(--accent); }
section#services { background: var(--services-bg); }
.service-item { background: #1b414208; }
section#work { background: var(--inverted-bg); }
section#contact { background: var(--contact-bg); }
footer { background: var(--footer-bg); }
footer p { color: var(--footer-text); }