:root {
  --bg: #F2F1EF;
  --ink: #161616;
  --ink-soft: #67645E;
  --highlight: #2742E0;
}

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

html {
  color-scheme: light;
}

::selection {
  background: var(--highlight);
  color: #fff;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.name {
  font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hl {
  display: inline-block;
  background: var(--highlight);
  color: #fff;
  padding: 0 0.08em;
  line-height: 0.68;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hl-sm {
  background: var(--highlight);
  color: #fff;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.line {
  display: block;
  overflow: hidden;
}

.line-inner {
  display: block;
  transform: translateY(100%);
  animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.line:nth-child(2) .line-inner {
  animation-delay: 90ms;
}

@keyframes rise {
  to { transform: translateY(0); }
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ident,
.pitch,
.tagline,
.work li,
.bottom,
.portrait {
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ident { animation-delay: 460ms; }
.pitch { animation-delay: 520ms; }
.tagline { animation-delay: 500ms; }
.work li:nth-child(1) { animation-delay: 570ms; }
.work li:nth-child(2) { animation-delay: 630ms; }
.work li:nth-child(3) { animation-delay: 690ms; }
.work li:nth-child(4) { animation-delay: 750ms; }
.bottom,
.portrait { animation-delay: 990ms; }

.ident {
  margin-top: 1rem;
}

.phonetic,
.locale {
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.locale {
  margin-top: 0.15rem;
}

.pitch {
  margin-top: 1.5rem;
  max-width: 44ch;
}

.pitch p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.pitch p + p {
  margin-top: 0.6rem;
}

.pitch .hi {
  font-weight: 600;
}

.intro {
  margin-top: 3rem;
}

.tagline {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 38ch;
}

.work {
  list-style: none;
  margin-top: 3rem;
  max-width: 38ch;
}

.work li {
  font-size: 1.05rem;
  line-height: 1.55;
}

.work li + li {
  margin-top: 2rem;
}

address {
  font-style: normal;
}

.label {
  display: block;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.3rem;
}

.bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--ink-soft);
  transition: background-color 120ms ease, color 120ms ease;
}

a:hover,
a:focus-visible {
  background: var(--highlight);
  color: #fff;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.hook {
  font-size: 1.4rem;
  line-height: 1.3;
  max-width: 38ch;
}

.mail {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  text-decoration-color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .mail {
    font-size: clamp(1.4rem, 6.4vw, 1.9rem);
  }
}

.contact .li {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.contact p + p {
  margin-top: 0.4rem;
}

.portrait {
  display: block;
  width: 50%;
  max-width: 320px;
  margin-top: 2.5rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.02);
  transform-origin: 50% 100%;
  filter: grayscale(1) contrast(1.05);
}

@media (min-width: 1100px) and (min-height: 820px) {
  body::after {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background-image:
      linear-gradient(to right, rgba(22, 22, 22, 0.05) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(22, 22, 22, 0.05) 1px, transparent 1px),
      linear-gradient(to right, rgba(22, 22, 22, 0.08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(22, 22, 22, 0.08) 1px, transparent 1px);
    background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
    -webkit-mask-image: radial-gradient(120% 115% at 100% 0%, #000 0%, rgba(0,0,0,0.55) 28%, transparent 58%);
    mask-image: radial-gradient(120% 115% at 100% 0%, #000 0%, rgba(0,0,0,0.55) 28%, transparent 58%);
  }

  main {
    max-width: 1760px;
    margin: 0 auto;
    min-height: 100svh;
    padding: 1vw 5vw;
    position: relative;
    justify-content: space-between;
  }

  .top {
    display: grid;
    grid-template-columns: 1fr minmax(0, clamp(15rem, 22vw, 24rem));
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2rem, 3vw, 5rem);
    align-items: start;
    padding-right: calc(clamp(200px, 18vw, 320px) + clamp(1rem, 1.5vw, 2.5rem));
  }

  .name {
    grid-column: 1;
    grid-row: 1;
  }

  .ident {
    grid-column: 1;
    grid-row: 2;
  }

  .intro {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 0.8rem;
  }

  .pitch {
    grid-column: 1;
    grid-row: 3;
  }

  .work {
    margin-top: 3rem;
  }

  .work li + li {
    margin-top: 1.25rem;
  }

  .bottom {
    margin-top: 0;
  }

  .portrait {
    position: absolute;
    right: 0;
    bottom: 0;
    width: clamp(200px, 18vw, 320px);
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }

  .line-inner,
  .ident,
  .pitch,
  .tagline,
  .work li,
  .bottom,
  .portrait {
    animation: none;
    opacity: 1;
    transform: none;
  }
}