:root {
  color-scheme: light;
  --paper: #fffdf8;
  --ink: #161513;
  --muted: #625b52;
  --rust: #c94f2d;
  --teal: #0f766e;
  --line: rgba(22, 21, 19, 0.16);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(201, 79, 45, 0.08), transparent 27rem),
    radial-gradient(circle at 13% 76%, rgba(15, 118, 110, 0.065), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 54%, #fbf4e9 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 21, 19, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 21, 19, 0.024) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 82%, transparent);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(22, 21, 19, 0.08) 0.6px, transparent 0.7px),
    radial-gradient(rgba(22, 21, 19, 0.045) 0.7px, transparent 0.8px);
  background-position: 0 0, 22px 18px;
  background-size: 38px 38px, 46px 46px;
  opacity: 0.36;
  content: "";
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}

.page-shell {
  position: relative;
  width: min(100% - 40px, var(--max-width));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 30px 0 88px;
}

.page-shell::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(190px, 23vw, 300px);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(22, 21, 19, 0.13) 15%, rgba(22, 21, 19, 0.08) 80%, transparent);
  content: "";
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  position: absolute;
  border: 1px solid rgba(22, 21, 19, 0.09);
  content: "";
}

.ambient::before {
  top: 118px;
  right: max(24px, calc((100vw - var(--max-width)) / 2 - 22px));
  width: clamp(170px, 23vw, 340px);
  height: clamp(170px, 23vw, 340px);
  border-radius: 50%;
}

.ambient::after {
  right: max(42px, calc((100vw - var(--max-width)) / 2 + 68px));
  bottom: 118px;
  width: clamp(120px, 16vw, 230px);
  height: clamp(120px, 16vw, 230px);
  transform: rotate(8deg);
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.logo {
  font-family: "Mochiy Pop One", ui-rounded, system-ui, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1;
  text-decoration: none;
}

.contact-link {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration-color: rgba(201, 79, 45, 0.38);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.contact-link:hover {
  color: var(--rust);
  text-decoration-color: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(390px, 58vh, 560px);
  padding: clamp(54px, 8vw, 96px) 0 clamp(46px, 7vw, 84px);
}

.kicker {
  margin: 0 0 22px;
  color: var(--teal);
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  color: rgba(22, 21, 19, 0.88);
  font-size: clamp(3rem, 6.1vw, 6.05rem);
  font-weight: 880;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}

.manifesto,
.projects {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  max-width: 1040px;
  border-top: 0;
  padding-top: clamp(24px, 4vw, 38px);
}

.projects {
  margin-top: clamp(58px, 8vw, 96px);
}

.manifesto::before,
.projects::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background:
    linear-gradient(90deg, var(--ink) 0 72px, transparent 72px 84px, rgba(22, 21, 19, 0.2) 84px 100%);
  content: "";
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--rust);
}

.section-icon circle {
  fill: #fffdf8;
  stroke: currentColor;
  stroke-width: 2.2;
}

.icon-orbit {
  fill: none;
  stroke: var(--teal);
}

.icon-path,
.icon-spark {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.icon-spark {
  stroke: var(--rust);
}

.manifesto p,
.projects p {
  position: relative;
  margin: 0;
  color: #29251f;
  font-size: clamp(1.06rem, 1.42vw, 1.26rem);
  font-weight: 520;
  line-height: 1.74;
}

.manifesto p + p {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 21, 19, 0.1);
}

.manifesto strong {
  display: inline;
  color: var(--ink);
  font-weight: 760;
  background:
    linear-gradient(90deg, rgba(201, 79, 45, 0.18), rgba(15, 118, 110, 0.12))
      0 88% / 100% 0.42em no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.03em;
}

.manifesto p:nth-child(2) strong {
  color: #0e5f59;
  font-size: 1.04em;
  font-weight: 840;
}

.projects-copy {
  max-width: 620px;
}

.projects p {
  color: var(--muted);
}

.site-footer {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .page-shell {
    min-height: calc(100vh - 72px);
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .manifesto,
  .projects {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-label {
    gap: 10px;
  }

  .page-shell::before {
    display: none;
  }

  .ambient::before {
    right: -72px;
  }

  .ambient::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .page-shell,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.35rem);
    line-height: 1;
  }

  .manifesto p {
    font-size: 1.04rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
