:root {
  --bg: oklch(98% 0.01 30);
  --fg: oklch(20% 0.01 30);
  --fg-82: oklch(20% 0.01 30 / 0.82);
  --fg-78: oklch(20% 0.01 30 / 0.78);
  --fg-60: oklch(20% 0.01 30 / 0.6);
  --fg-50: oklch(20% 0.01 30 / 0.5);
  --fg-48: oklch(20% 0.01 30 / 0.48);
  --fg-42: oklch(20% 0.01 30 / 0.42);
  --accent-light: #f4a15e;
  --accent-dark: #d6402b;
  --accent-gradient: linear-gradient(135deg, #f4a15e, #d6402b);
  --side-padding: clamp(24px, 6vw, 64px);
  --content-max: 900px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

.decorative-frame {
  position: fixed;
  z-index: 40;
  inset: 44px;
  border: 1px solid var(--accent-dark);
  box-shadow: 0 0 0 100vmax var(--bg);
  pointer-events: none;
}

.mission-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border: 1.5px solid var(--accent-dark);
  border-radius: 100px;
  transform: rotate(6deg);
  background: var(--bg);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.watermark {
  position: fixed;
  z-index: 42;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 11px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg-60);
  font-family: ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-right: var(--side-padding);
  padding-left: var(--side-padding);
}

.hero {
  padding-top: clamp(96px, 16vw, 140px);
  padding-bottom: clamp(56px, 8vw, 88px);
}

.hero-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 5vw, 48px);
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-copy {
  flex: 1 1 320px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--fg-60);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.mission {
  max-width: 44ch;
  margin-bottom: 28px;
  color: var(--fg-78);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 150ms ease;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-1px);
}

.cta:focus-visible,
.email:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 4px;
}

.location {
  color: var(--fg-48);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.portrait-wrap {
  flex: 0 0 auto;
  width: min(280px, 55vw);
}

.section {
  padding-top: 0;
  padding-bottom: clamp(64px, 9vw, 96px);
}

.contact {
  padding-bottom: clamp(80px, 10vw, 120px);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
}

.about .section-label,
.contact .section-label {
  margin-bottom: 22px;
}

.section-label span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent-dark);
  flex: 0 0 auto;
}

.section-label h2 {
  margin: 0;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.work-heading h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.work-heading time {
  color: var(--fg-42);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.work-item p {
  margin-bottom: 0;
  color: var(--fg-78);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tags span {
  padding: 4px 10px;
  border-radius: 100px;
  background: color-mix(in oklab, var(--accent-light) 14%, var(--bg));
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.about p {
  max-width: 62ch;
  margin-bottom: 16px;
  color: var(--fg-82);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.7;
}

.about p:nth-of-type(2) {
  margin-bottom: 20px;
}

.about .languages {
  margin-bottom: 0;
  color: var(--fg-50);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

.contact-heading {
  margin-bottom: 12px;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.contact p {
  max-width: 50ch;
  margin-bottom: 24px;
  color: var(--fg-78);
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}

.contact-actions {
  gap: 18px;
}

.email {
  color: var(--fg-60);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

@media (max-width: 520px) {
  .decorative-frame {
    inset: 18px;
  }

  .mission-badge {
    top: 14px;
    right: 14px;
  }

  .watermark {
    bottom: 5px;
  }

  .hero {
    padding-top: 112px;
  }

  .portrait-wrap {
    width: min(280px, 70vw);
  }
}
