:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #627083;
  --paper: #f8f7f2;
  --panel: #ffffff;
  --line: #d9dee5;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --coral: #d84f38;
  --blue: #2f5f98;
  --shadow: 0 24px 70px rgba(24, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 79, 56, 0.09), transparent 34rem),
    linear-gradient(135deg, #f8f7f2 0%, #eef3f5 48%, #f7f4ec 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  display: block;
  object-fit: cover;
}

.brand img {
  border-radius: 6px;
  border: 2px solid var(--panel);
  box-shadow: 0 8px 20px rgba(24, 32, 42, 0.16);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a,
.text-link,
footer a {
  text-underline-offset: 0.22em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  min-height: calc(100vh - 160px);
  gap: clamp(36px, 7vw, 96px);
  padding: 48px 0 72px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 15vw, 10rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 0.95;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.lede {
  max-width: 620px;
  margin: 28px 0 0;
  color: #334155;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

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

.portrait {
  display: grid;
  place-items: center;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(47, 95, 152, 0.18), transparent 45%),
    linear-gradient(315deg, rgba(216, 79, 56, 0.18), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.portrait img {
  display: block;
  object-fit: cover;
  width: min(72%, 320px);
  height: auto;
  border-radius: 8px;
  border: 8px solid #ffffff;
  box-shadow: 0 22px 54px rgba(24, 32, 42, 0.2);
}

.projects {
  padding: 72px 0 96px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(24, 32, 42, 0.08);
}

.project-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  nav {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 0 58px;
  }

  .portrait {
    justify-self: stretch;
    order: -1;
    max-width: 340px;
  }

  .section-heading,
  .project-card {
    grid-template-columns: 1fr;
  }

  .text-link {
    white-space: normal;
  }

  .button {
    width: 100%;
  }
}
