:root {
  --paper: #f4f2ed;
  --surface: #fff;
  --accent: #2b8d88;
  --ink: #141716;
  --button: #2c3331;
  --muted: #6a6e6b;
  --line: #d7d4cc;
  color-scheme: light;
  font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
video:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 64px;
  background: var(--accent);
  color: #fff;
}

.brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pill {
  position: relative;
  width: 241px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 30px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pill img {
  position: absolute;
  right: 30px;
  width: 17px;
  height: 17px;
  object-fit: contain;
  transition: opacity 160ms ease, transform 160ms ease;
}

.pill--dark {
  background: var(--button);
  color: var(--paper);
}

.pill--header {
  border-color: #fff;
  color: #fff;
}

.pill--outline {
  border-color: var(--accent);
  color: var(--accent);
}

@media (hover: hover) {
  .pill:hover {
    justify-content: center;
    transform: translateY(-2px);
  }

  .pill:hover img {
    opacity: 0;
    transform: scale(0.75);
  }

  .pill--dark:hover {
    background: #171c1b;
  }

  .pill--header:hover {
    background: #fff;
    color: var(--accent);
  }

  .pill--outline:hover {
    background: var(--accent);
    color: #fff;
  }

  .contact a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .works-lead a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .social-links a:hover {
    opacity: 0.72;
  }
}

.intro {
  min-height: 218px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 65px 24px;
  text-align: center;
}

.intro h1,
.intro p,
.profile-actions p,
.contact h2,
.contact p,
.works-card h2,
.works-card p {
  margin: 0;
}

.intro h1 {
  color: var(--accent);
  font-family: "Kanit", sans-serif;
  font-size: 33px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.14em;
}

.intro p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.intro-copy--mobile {
  display: none;
}

.composite {
  min-height: 1262px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 18px 24px 56px;
}

.composite__image {
  width: min(840px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
}

.profile-actions {
  width: min(840px, calc(100% - 40px));
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: 40px 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.profile-actions .button-row {
  gap: 57px;
}

.contact {
  width: min(840px, calc(100% - 40px));
  min-height: 254px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

.contact h2 {
  color: var(--accent);
  font-family: "Kanit", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.contact a {
  font-size: 15px;
  line-height: 1.45;
}

.email-link--mobile {
  display: none;
}

.site-footer {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 40px 24px;
  background: var(--accent);
  color: #fff;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.social-links a {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease;
}

.social-links img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}

.site-footer small {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.reels {
  width: min(840px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  margin: 0 auto;
  padding: 12px 0 0;
}

.reel {
  width: 100%;
}

.reel--landscape {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.reel--portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel__video {
  display: block;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
  object-fit: contain;
}

.reel__video--landscape {
  width: 840px;
  height: auto;
  aspect-ratio: 16 / 9;
}

.works-card {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-size: 14px;
}

.works-card--landscape {
  min-height: 152px;
  padding: 21px 40px;
}

.works-card--portrait {
  width: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 28px 18px;
  text-align: center;
}

.works-card h2 {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.12em;
}

.works-lead {
  margin-bottom: 0 !important;
  font-weight: 700;
  line-height: 1.9;
}

.works-card--portrait h2 {
  margin-bottom: 0;
}

.works-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: works;
  line-height: 1.9;
}

.works-list li {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  column-gap: 0.75em;
  align-items: start;
  break-inside: avoid;
  counter-increment: works;
}

.works-list li::before {
  content: counter(works, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
}

.works-list--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 100px;
  line-height: 1.8;
}

.profile-link {
  margin-top: 0;
}

.reels + .contact {
  min-height: 254px;
  margin-top: 72px;
  margin-bottom: 70px;
}

@media (max-width: 767px) {
  .site-header {
    min-height: 72px;
    padding: 20px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .header-actions {
    display: none;
  }

  .intro {
    min-height: 107px;
    gap: 9px;
    padding: 28px 20px 30px;
  }

  .intro h1 {
    font-size: 19px;
  }

  .intro p {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .intro-copy--desktop {
    display: none;
  }

  .intro-copy--mobile {
    display: block;
  }

  .composite {
    min-height: auto;
    padding: 6px 24px 28px;
  }

  .composite__image {
    width: min(342px, 100%);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.1);
  }

  .profile-actions {
    width: 100%;
    min-height: 165px;
    gap: 10px;
    padding: 14px 20px 8px;
    font-size: 12px;
  }

  .button-row {
    width: 100%;
    flex-direction: column;
  }

  .profile-actions .button-row {
    gap: 16px;
  }

  .pill {
    width: 273px;
    min-height: 52px;
    font-size: 13px;
  }

  .contact,
  .reels + .contact {
    width: 100%;
    min-height: 171px;
    gap: 10px;
    padding: 40px 20px;
  }

  .reels + .contact {
    min-height: 158px;
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .contact h2 {
    font-size: 16px;
  }

  .contact a {
    font-size: 12px;
  }

  .email-link--desktop {
    display: none;
  }

  .email-link--mobile {
    display: block;
  }

  .site-footer {
    min-height: 119px;
    gap: 20px;
    padding: 28px 20px;
  }

  .social-links {
    gap: 28px;
  }

  .social-links a,
  .social-links img {
    width: 32px;
    height: 32px;
  }

  .site-footer small {
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .reels {
    width: min(350px, calc(100% - 40px));
    gap: 40px;
    padding-top: 6px;
  }

  .reel--landscape {
    gap: 24px;
  }

  .reel--portrait {
    display: flex;
    flex-direction: column;
  }

  .reel__video {
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
  }

  .reel__video--landscape {
    width: 100%;
  }

  .works-card {
    width: 100%;
    font-size: 12px;
  }

  .works-card--landscape {
    min-height: 208px;
    padding: 20px 18px;
  }

  .works-card--portrait {
    min-height: 89px;
    gap: 7px;
    padding: 20px 18px;
  }

  .works-card h2 {
    font-size: 12px;
  }

  .works-lead a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .works-list--columns {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    column-gap: 0;
    line-height: 1.9;
  }

  .profile-link {
    margin-top: 0;
  }
}

@media (max-width: 374px) {
  .brand {
    font-size: 10px;
  }

  .pill {
    width: min(273px, 100%);
  }

  .works-card,
  .works-list,
  .works-lead {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pill,
  .social-links a {
    transition: none;
  }
}
