* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 253, 248, 0.92);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #556070;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: rgba(17, 24, 39, 0.12);
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.1), transparent 25%),
    radial-gradient(circle at 90% 15%, rgba(59, 130, 246, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.hero,
.content-section {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), transparent 40%),
    radial-gradient(circle at 82% 12%, rgba(245, 158, 11, 0.08), transparent 18%);
  pointer-events: none;
}

.topbar,
.hero-grid,
.content-section {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

.brand-name,
.brand-subtitle,
.card-label,
.project-type,
.section-kicker,
.eyebrow {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-cta,
.button,
.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-cta {
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  padding: 28px 24px 24px;
  align-items: start;
}

.hero-copy {
  padding: 6px 0 0;
}

.eyebrow,
.section-kicker,
.project-type {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-copy h1,
.section-heading h2 {
  margin: 14px 0 0;
  font-family: "Fraunces", serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5.6vw, 5.5rem);
  max-width: 11ch;
}

.lead {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  padding: 13px 20px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: white;
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.24);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics article,
.hero-card,
.project-card,
.contact-card,
.skill-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.hero-metrics article {
  padding: 16px;
  border-radius: 18px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.02rem;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  padding: 18px;
  border-radius: 26px;
  align-self: start;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
}

.portrait {
  aspect-ratio: 0.95;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 24%, rgba(45, 212, 191, 0.34), transparent 24%),
    linear-gradient(160deg, #102a2a, #16303d 65%, #101827);
  border: 1px solid rgba(15, 118, 110, 0.22);
}

.portrait span {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  color: #f8fafc;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
}

.card-content {
  padding-top: 18px;
}

.card-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 800;
}

.detail-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.detail-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.detail-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.detail-list span,
.contact-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-list strong,
.contact-card strong {
  font-size: 1rem;
  line-height: 1.45;
}

.contact-card strong a {
  color: inherit;
  text-decoration: none;
}

.contact-card strong a:hover {
  text-decoration: underline;
}

main {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.content-section {
  padding: 28px 24px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.industry-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.industry-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(249, 250, 251, 0.78));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.industry-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.industry-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.industry-card-wide {
  grid-column: span 1;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.skill-card {
  padding: 16px 14px;
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 250, 251, 0.92));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.projects-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-card {
  padding: 20px;
  border-radius: 22px;
  display: grid;
  gap: 14px;
}

.project-card-featured {
  grid-column: 1 / -1;
}

.project-preview {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06), rgba(255, 255, 255, 0.3));
}

.project-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.project-media-grid-single {
  grid-template-columns: minmax(0, 1.6fr);
  width: min(100%, 1140px);
  max-width: 1140px;
}

.project-media-grid-single .project-preview {
  width: 100%;
}

.project-media-grid-three {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-media-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-media-grid .project-preview img {
  aspect-ratio: 3 / 5;
}

.project-media-grid-single .project-preview img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #fff;
}

.project-preview-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(255, 255, 255, 0.86));
  color: var(--muted);
  font-weight: 700;
}

.project-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.project-summary {
  max-width: 72ch;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-links a {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-strong);
  font-weight: 800;
}

.project-card a {
  width: fit-content;
  color: var(--accent-strong);
  font-weight: 800;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.contact-card > div {
  padding: 10px 8px;
}

.nav-cta:hover,
.button:hover,
.project-card a:hover {
  transform: translateY(-1px);
}

.nav-cta:hover,
.button-secondary:hover {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(255, 255, 255, 0.94);
}

.button-primary:hover {
  filter: brightness(1.03);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-featured {
    grid-column: 1 / -1;
  }

  .project-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-media-grid-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .project-media-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-media-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .hero,
  .content-section {
    border-radius: 22px;
  }

  .topbar,
  .hero-grid,
  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-top: 16px;
  }

  .hero-grid {
    gap: 18px;
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-media-grid-single {
    grid-template-columns: 1fr;
  }

  .project-media-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-media-grid-four {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
