:root {
  --paper: #efeeea;
  --ink: #050505;
  --muted: #3e3e3e;
  --line: rgba(255, 255, 255, 0.74);
  --field: #fbfbfa;
  --frame: 1728px;
  --content: 1180px;
  --left: 160px;
  --intro-gentle: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

body.is-intro-running {
  overflow: hidden;
}

a {
  color: inherit;
}

.intro-delay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--paper);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 520ms var(--intro-gentle),
    visibility 0s linear 520ms;
}

.star-mark {
  display: block;
  background: #000;
  overflow: hidden;
}

.intro-delay .star-mark {
  width: 28px;
  height: 28px;
  opacity: 0;
  transform-origin: center;
}

body.is-intro-mark .intro-delay .star-mark {
  animation: introMarkIn 920ms both;
}

.intro-delay .star-mark img,
.star-link .star-mark img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
}

body.is-intro-mark .intro-delay .star-mark img {
  animation: starSpin 920ms var(--intro-gentle) both;
}

body.is-intro-done .intro-delay {
  opacity: 0;
  visibility: hidden;
}

body.is-intro-running .page-shell {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(26px) scale(0.984);
  transition:
    opacity 500ms var(--intro-gentle),
    filter 620ms var(--intro-gentle);
}

body.is-intro-done .page-shell {
  opacity: 1;
  filter: blur(0);
  animation: introPageSettle 860ms both;
}

@keyframes introMarkIn {
  0% {
    opacity: 0;
  }

  42% {
    opacity: 1;
  }

  62% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes introPageSettle {
  0% {
    transform: translateY(26px) scale(0.984);
  }

  52% {
    transform: translateY(-10px) scale(1.012);
  }

  70% {
    transform: translateY(4px) scale(0.997);
  }

  86% {
    transform: translateY(-2px) scale(1.002);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.page-shell {
  width: min(var(--frame), 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 84px 0 80px;
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .intro-delay,
  body.is-intro-running .page-shell {
    transition: none;
  }

  .intro-delay .star-mark,
  .intro-delay .star-mark img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .star-link .star-mark img,
  .project-frame,
  .project-frame img,
  body.is-intro-done .page-shell {
    animation: none;
    transition: none;
  }
}

.site-nav {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 34px;
  width: min(var(--frame), 100%);
  margin: 0 auto;
  z-index: 10;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6.8px;
  width: 661px;
  height: 72px;
  padding: 19px 56px 23px 60px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(239, 238, 233, 0.25)),
    rgba(239, 238, 233, 0.42);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  pointer-events: auto;
}

.nav-inner a {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 24.4868px;
  line-height: 30px;
  font-weight: 500;
}

.nav-inner a[aria-current="page"] {
  background: var(--ink);
  color: white;
}

.page-section {
  scroll-margin-top: 96px;
}

.star-link {
  position: fixed;
  top: 110px;
  right: max(52px, calc((100vw - var(--frame)) / 2 + 70px));
  width: 28px;
  height: 28px;
  display: block;
  text-decoration: none;
  z-index: 12;
}

.star-link .star-mark {
  width: 100%;
  height: 100%;
}

.star-link .star-mark img {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  animation: starSpin 5200ms linear infinite;
}

@keyframes starSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  max-width: 1324px;
  padding-top: 134px;
  padding-bottom: 222px;
  margin-left: 166px;
}

.hero h1 {
  margin: 0;
  max-width: 1324px;
  min-height: 306px;
  font-size: 128px;
  line-height: 153px;
  font-weight: 400;
}

.swap-word {
  display: inline-block;
  min-width: 593px;
  font-weight: 500;
  white-space: nowrap;
}

.lead {
  max-width: 1324px;
  margin: 44px 0 0;
  font-size: 32px;
  line-height: 38px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  font-size: 32px;
  line-height: 38px;
  text-underline-offset: 4px;
}

.text-link::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: url("assets/keyboard_return.png") center / contain no-repeat;
}

.foodwine-web-link::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: url("assets/keyboard_return.png") center / contain no-repeat;
}

.projects {
  padding-top: 0;
  padding-bottom: 222px;
}

.client-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 220px;
  width: min(1418px, 100%);
  height: 100px;
  margin: 0 auto 222px;
}

.client-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.client-logo-ecoin {
  height: 82px;
}

.client-logo-foodwine {
  height: 99px;
}

.client-logo-henko {
  height: 100px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 506px);
  gap: 19px;
  align-items: start;
  justify-content: center;
  max-width: 1556px;
  margin: 0 auto;
}

.project-card {
  text-align: center;
}

.project-card-link {
  display: block;
  text-decoration: none;
}

.project-frame {
  width: 100%;
  height: 699px;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-frame {
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.12);
    transform: translateY(-10px) scale(1.018);
  }

  .project-card:hover .project-frame img {
    transform: scale(1.045);
  }
}

.project-frame-ecoin img {
  object-fit: cover;
  object-position: center top;
}

.project-card p {
  max-width: 506px;
  margin: 38px auto 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 39px;
  font-weight: 500;
}

.project-card p strong {
  font-weight: 700;
}

.contact-page {
  max-width: 1555px;
  min-height: 386px;
  scroll-margin-top: 120px;
  padding-top: 0;
  padding-bottom: 49px;
  margin: 0 auto;
}

.contact-intro {
  margin: 0 0 42px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: 437px 438px 437px;
  gap: 20px 121px;
  align-items: end;
}

.field {
  display: grid;
  gap: 20px;
  font-size: 32px;
  line-height: 38px;
}

.hidden-field {
  display: none;
}

.field-wide {
  grid-column: 1 / span 2;
  width: 855px;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 7px 10px;
  outline: 1px solid transparent;
}

input {
  height: 40px;
}

textarea {
  min-height: 124px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline-color: var(--ink);
}

.submit-row {
  display: flex;
  justify-content: center;
  align-self: center;
}

.button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  width: 196px;
  min-height: 64px;
  padding: 10px 44px;
  font: inherit;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 1.2em;
  color: var(--muted);
}

.site-footer {
  margin: 88px 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.footer-meta {
  margin: 0;
  color: var(--ink);
}

.footer-name {
  display: block;
  width: min(630px, 100%);
  height: auto;
}

.footer-meta {
  margin-top: 8px;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
}

.contact-page .site-footer {
  margin-top: 243px;
}

.page-footer {
  margin-left: 67px;
  margin-top: 96px;
  padding-bottom: 70px;
}

@media (max-width: 1500px) and (min-width: 841px) {
  :root {
    --left: 120px;
  }

  .page-shell {
    width: min(100%, 1360px);
  }

  .hero {
    max-width: 1042px;
    margin-left: 120px;
    padding-top: 120px;
    padding-bottom: 175px;
  }

  .hero h1 {
    max-width: 1042px;
    min-height: 240px;
    font-size: 100px;
    line-height: 120px;
  }

  .swap-word {
    min-width: 463px;
  }

  .lead {
    max-width: 1042px;
    font-size: 25px;
    line-height: 30px;
  }

  .text-link {
    margin-top: 34px;
    font-size: 25px;
    line-height: 30px;
  }

  .text-link::before,
  .foodwine-web-link::before {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .projects {
    padding-top: 0;
    padding-bottom: 175px;
  }

  .client-logos {
    width: min(1116px, 100%);
    height: 79px;
    gap: 160px;
    margin-bottom: 175px;
  }

  .client-logo-ecoin {
    height: 64px;
  }

  .client-logo-foodwine {
    height: 78px;
  }

  .client-logo-henko {
    height: 79px;
  }

  .project-grid {
    grid-template-columns: repeat(3, 398px);
    gap: 15px;
    max-width: 1224px;
  }

  .project-frame {
    height: 550px;
    border-radius: 31px;
  }

  .project-card p {
    max-width: 398px;
    margin-top: 30px;
    font-size: 25px;
    line-height: 31px;
  }

  .contact-page {
    max-width: 1224px;
  }

  .contact-form {
    grid-template-columns: 344px 345px 344px;
    gap: 16px 95px;
  }

  .field {
    font-size: 25px;
    line-height: 30px;
  }

  .field-wide {
    width: 673px;
  }

  .button {
    width: 154px;
    min-height: 50px;
    font-size: 28px;
    line-height: 34px;
  }

  .contact-page .site-footer {
    margin-top: 190px;
  }
}

.profile-shell {
  min-height: 1117px;
  padding-top: 0;
}

.profile-page {
  position: relative;
  width: min(var(--frame), 100%);
  min-height: 1117px;
  margin: 0 auto;
  padding: 0;
}

.back-link {
  display: block;
  width: 57px;
  height: 57px;
  text-decoration: none;
}

.back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.about-image {
  position: absolute;
  left: 67px;
  top: 129px;
  width: 545px;
  height: 357px;
  object-fit: cover;
  display: block;
}

.profile-title {
  position: absolute;
  left: 679px;
  top: 193px;
  width: 546px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  line-height: 49px;
  font-weight: 400;
}

.about-copy {
  position: absolute;
  left: 679px;
  top: 337px;
  width: 874px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 39px;
  font-weight: 300;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 39px;
}

.thanks-page .about-copy {
  left: 166px;
  top: 193px;
}

.thanks-page .about-copy h1 {
  margin: 0 0 42px;
  font-size: 40px;
  line-height: 49px;
  font-weight: 400;
}

.project-detail-body {
  background: #fff;
}

.project-detail-shell {
  position: relative;
  width: min(var(--frame), 100%);
  min-height: 1320px;
  margin: 0 auto;
  background: #fff;
}

.project-back-link {
  position: absolute;
  left: 87px;
  top: 107px;
  width: 57px;
  height: 57px;
  display: block;
  z-index: 2;
}

.project-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.ecoin-title {
  position: absolute;
  left: 155px;
  top: 87px;
  width: 860px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  line-height: 49px;
  font-weight: 700;
}

.ecoin-image {
  position: absolute;
  display: block;
  object-fit: cover;
}

.ecoin-image-main {
  left: 65px;
  top: 250px;
  width: 627px;
  height: 371px;
}

.ecoin-image-top {
  left: 708px;
  top: 275px;
  width: 547px;
  height: 323px;
}

.ecoin-image-phone {
  left: 1272px;
  top: 185px;
  width: 456px;
  height: 501px;
}

.ecoin-text {
  position: absolute;
  width: 743px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
}

.ecoin-text-left {
  left: 87px;
  top: 749px;
}

.ecoin-text-right {
  left: 911px;
  top: 749px;
}

.project-page-footer {
  position: absolute;
  left: 87px;
  top: 1138px;
  margin: 0;
  padding-bottom: 0;
}

.foodwine-detail-body {
  background: var(--paper);
}

.foodwine-detail-shell {
  position: relative;
  width: min(var(--frame), 100%);
  min-height: 2260px;
  margin: 0 auto;
  background: var(--paper);
}

.foodwine-back-link {
  position: absolute;
  left: 87px;
  top: 107px;
  width: 57px;
  height: 57px;
  display: block;
  z-index: 2;
}

.foodwine-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.foodwine-title {
  position: absolute;
  left: 175px;
  top: 87px;
  width: 980px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  line-height: 49px;
  font-weight: 700;
}

.foodwine-title strong {
  font-weight: 700;
}

.foodwine-hero-image {
  position: absolute;
  left: 50%;
  top: 176px;
  width: 1020px;
  height: 714px;
  object-fit: cover;
  transform: translateX(-50%);
}

.foodwine-content {
  position: absolute;
  left: 155px;
  top: 880px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 69px;
  width: 1421px;
  min-height: 1189px;
}

.foodwine-intro {
  width: 1311px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
}

.foodwine-scroll-gallery {
  position: relative;
  width: 1421px;
  height: 253px;
  overflow-x: auto;
  scrollbar-width: none;
}

.foodwine-scroll-gallery::-webkit-scrollbar {
  display: none;
}

.foodwine-scroll-gallery img {
  position: absolute;
  top: 0;
  width: 406px;
  height: 253px;
  object-fit: cover;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.foodwine-scroll-gallery img:nth-child(1) {
  left: 0;
}

.foodwine-scroll-gallery img:nth-child(2) {
  left: 507px;
  width: 405px;
}

.foodwine-scroll-gallery img:nth-child(3) {
  left: 1013px;
}

.foodwine-text-grid {
  display: flex;
  align-items: flex-start;
  gap: 33px;
  width: 1421px;
}

.foodwine-text-grid p {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
}

.foodwine-text-grid p:nth-child(1),
.foodwine-text-grid p:nth-child(2) {
  width: 457px;
}

.foodwine-text-grid p:nth-child(3) {
  width: 437px;
}

.foodwine-web-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 1324px;
  height: 46px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  line-height: 38px;
  font-weight: 400;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  flex: none;
}

.foodwine-page-footer {
  position: absolute;
  left: 155px;
  top: 2078px;
  margin: 0;
  padding-bottom: 0;
}

.henko-detail-body {
  background: var(--paper);
}

.henko-detail-shell {
  position: relative;
  width: min(var(--frame), 100%);
  min-height: 1370px;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
}

.henko-back-link {
  position: absolute;
  left: 87px;
  top: 107px;
  width: 57px;
  height: 57px;
  display: block;
  z-index: 3;
}

.henko-back-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.henko-title {
  position: absolute;
  left: 175px;
  top: 87px;
  width: 537px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 40px;
  line-height: 49px;
  font-weight: 500;
}

.henko-wide-image {
  position: absolute;
  left: 0;
  top: 251px;
  width: 1728px;
  height: 514px;
  object-fit: cover;
}

.henko-phone-image {
  position: absolute;
  left: 797px;
  top: -5px;
  width: 1291px;
  height: 969px;
  object-fit: cover;
  z-index: 1;
}

.henko-text {
  position: absolute;
  width: 591px;
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  line-height: 29px;
  font-weight: 400;
}

.henko-text-left {
  left: 175px;
  top: 825px;
}

.henko-text-right {
  left: 819px;
  top: 825px;
}

.henko-page-footer {
  position: absolute;
  left: 175px;
  top: 1228px;
  margin: 0;
  padding-bottom: 0;
}

@media (max-width: 1500px) and (min-width: 841px) {
  .profile-page {
    width: min(100%, 1360px);
    min-height: 900px;
    margin-left: auto;
  }

  .about-image {
    left: 52px;
    top: 102px;
    width: 429px;
    height: 281px;
  }

  .profile-title {
    left: 534px;
    top: 152px;
    width: 430px;
    font-size: 40px;
    line-height: 49px;
  }

  .about-copy {
    left: 534px;
    top: 265px;
    width: 688px;
    font-size: 25px;
    line-height: 31px;
  }

  .project-detail-shell {
    width: min(100%, 1360px);
  }

  .project-back-link {
    left: 56px;
    top: 72px;
  }

  .ecoin-title {
    left: 120px;
    top: 72px;
    width: 740px;
    font-size: 40px;
    line-height: 49px;
  }

  .ecoin-image-main {
    left: 51px;
    top: 197px;
    width: 493px;
    height: 292px;
  }

  .ecoin-image-top {
    left: 557px;
    top: 216px;
    width: 430px;
    height: 254px;
  }

  .ecoin-image-phone {
    left: 1001px;
    top: 146px;
    width: 359px;
    height: 394px;
  }

  .ecoin-text {
    top: 590px;
    width: 585px;
    font-size: 19px;
    line-height: 23px;
  }

  .ecoin-text-left {
    left: 69px;
  }

  .ecoin-text-right {
    left: 717px;
  }

  .project-page-footer {
    left: 69px;
    top: 1020px;
  }

  .foodwine-detail-shell {
    width: min(100%, 1360px);
    min-height: 2260px;
  }

  .foodwine-title {
    left: 120px;
    top: 72px;
    width: 860px;
    font-size: 40px;
    line-height: 49px;
  }

  .foodwine-hero-image {
    top: 240px;
    width: 820px;
    height: 574px;
  }

  .foodwine-content {
    left: 120px;
    top: 790px;
    width: 1120px;
  }

  .foodwine-intro {
    width: 1040px;
    font-size: 20px;
    line-height: 25px;
  }

  .foodwine-scroll-gallery {
    width: 1120px;
  }

  .foodwine-scroll-gallery img:nth-child(2) {
    left: 407px;
  }

  .foodwine-scroll-gallery img:nth-child(3) {
    left: 814px;
  }

  .foodwine-text-grid {
    width: 1120px;
    gap: 26px;
  }

  .foodwine-text-grid p {
    font-size: 20px;
    line-height: 25px;
  }

  .foodwine-text-grid p:nth-child(1),
  .foodwine-text-grid p:nth-child(2),
  .foodwine-text-grid p:nth-child(3) {
    width: 356px;
  }

  .foodwine-web-link {
    width: 1042px;
    height: 36px;
    font-size: 25px;
    line-height: 30px;
  }

  .foodwine-page-footer {
    left: 120px;
    top: 1900px;
  }

  .henko-detail-shell {
    width: min(100%, 1360px);
  }

  .henko-back-link {
    left: 56px;
    top: 72px;
  }

  .henko-title {
    left: 120px;
    top: 72px;
    width: 470px;
    font-size: 40px;
    line-height: 49px;
  }

  .henko-wide-image {
    top: 220px;
    width: 1360px;
    height: 405px;
  }

  .henko-phone-image {
    left: 655px;
    top: 8px;
    width: 900px;
    height: 675px;
  }

  .henko-text {
    top: 690px;
    width: 470px;
    font-size: 19px;
    line-height: 24px;
  }

  .henko-text-left {
    left: 120px;
  }

  .henko-text-right {
    left: 660px;
  }

  .henko-page-footer {
    left: 120px;
    top: 1110px;
  }
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100% - 28px, var(--frame));
    padding-top: 26px;
  }

  .site-nav {
    top: 14px;
  }

  .nav-inner {
    width: 100%;
    max-width: 390px;
    height: auto;
    min-height: 42px;
    padding: 7px 9px;
    gap: 6px;
  }

  .nav-inner a {
    min-width: 0;
    flex: 1;
    padding-inline: 10px;
    font-size: 14px;
    line-height: 1;
  }

  .star-link {
    top: auto;
    right: 18px;
    bottom: 18px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .hero {
    margin-left: 0;
    max-width: 100%;
    padding-top: 92px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13.4vw, 5rem);
    line-height: 1.03;
    max-width: 100%;
    min-height: 3.09em;
  }

  .swap-word {
    display: block;
    min-width: 0;
  }

  .lead {
    margin-top: 24px;
    line-height: 1.22;
  }

  .text-link {
    margin-top: 24px;
    line-height: 1.2;
  }

  .lead,
  .text-link,
  .project-card p,
  .field {
    font-size: 16px;
  }

  .text-link::before,
  .foodwine-web-link::before {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .project-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .project-frame {
    height: auto;
    aspect-ratio: 506 / 699;
    border-radius: 28px;
  }

  .client-logos {
    flex-wrap: wrap;
    gap: 28px 58px;
    margin-bottom: 58px;
  }

  .client-logo-ecoin {
    height: 62px;
  }

  .client-logo-foodwine {
    height: 30px;
  }

  .client-logo-henko {
    height: 54px;
  }

  .projects,
  .contact-page {
    padding-top: 56px;
  }

  .contact-page {
    scroll-margin-top: 120px;
    min-height: auto;
  }

  .project-card p {
    margin-top: 16px;
  }

  .field-wide {
    grid-column: auto;
    width: 100%;
  }

  .submit-row {
    justify-content: start;
  }

  .site-footer {
    margin-top: 58px;
  }

  .contact-page .site-footer {
    margin-top: 58px;
  }

  .button {
    width: auto;
    min-height: 42px;
    padding: 10px 32px;
    font-size: 16px;
    line-height: 1;
  }

  .page-footer,
  .project-page-footer,
  .foodwine-page-footer,
  .henko-page-footer {
    position: static;
    margin: 58px 0 0;
    padding-bottom: 0;
  }

  .profile-shell {
    min-height: 100vh;
    padding-top: 0;
  }

  .profile-page {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    padding-top: 42px;
    gap: 34px;
  }

  .back-link {
    width: 38px;
    height: 38px;
    font-size: 32px;
  }

  .about-image,
  .profile-title,
  .about-copy {
    position: static;
  }

  .about-image {
    width: 100%;
    height: clamp(140px, 30vw, 205px);
  }

  .profile-title {
    width: 100%;
    margin-top: 28px;
    font-size: 42px;
    line-height: 50px;
  }

  .about-copy {
    width: 100%;
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.24;
  }

  .about-copy p {
    margin: 0;
  }

  .project-detail-shell {
    width: min(100% - 28px, var(--frame));
    min-height: 100vh;
    padding: 34px 0 64px;
  }

  .project-back-link,
  .ecoin-title,
  .ecoin-image,
  .ecoin-text {
    position: static;
  }

  .project-back-link {
    width: 38px;
    height: 38px;
    margin-bottom: 30px;
  }

  .ecoin-title,
  .ecoin-text {
    width: 100%;
  }

  .ecoin-title {
    font-size: 28px;
    line-height: 34px;
  }

  .ecoin-text {
    margin-top: 28px;
    font-size: 17px;
    line-height: 22px;
  }

  .ecoin-image-main,
  .ecoin-image-top,
  .ecoin-image-phone {
    width: 100%;
    height: auto;
    margin-top: 24px;
  }

  .foodwine-detail-shell {
    width: min(100% - 28px, var(--frame));
    min-height: 100vh;
    padding: 44px 0 70px;
  }

  .foodwine-title,
  .foodwine-hero-image,
  .foodwine-content,
  .foodwine-back-link {
    position: static;
  }

  .foodwine-back-link {
    width: 38px;
    height: 38px;
    margin-bottom: 28px;
  }

  .foodwine-title {
    width: 100%;
    font-size: 28px;
    line-height: 34px;
  }

  .foodwine-title br {
    display: none;
  }

  .foodwine-hero-image {
    width: 100%;
    height: auto;
    margin-top: 28px;
    transform: none;
  }

  .foodwine-content {
    width: 100%;
    min-height: auto;
    gap: 34px;
    margin-top: 38px;
  }

  .foodwine-intro,
  .foodwine-text-grid,
  .foodwine-text-grid p {
    width: 100%;
  }

  .foodwine-intro,
  .foodwine-text-grid p {
    font-size: 17px;
    line-height: 22px;
  }

  .foodwine-scroll-gallery {
    display: flex;
    position: static;
    width: 100%;
    height: auto;
    gap: 18px;
    overflow-x: auto;
  }

  .foodwine-scroll-gallery img,
  .foodwine-scroll-gallery img:nth-child(2),
  .foodwine-scroll-gallery img:nth-child(3) {
    position: static;
    flex: 0 0 auto;
    width: 78vw;
    max-width: 406px;
    height: auto;
  }

  .foodwine-text-grid {
    flex-direction: column;
    gap: 22px;
  }

  .foodwine-web-link {
    width: max-content;
    height: 48px;
    margin-top: 36px;
    padding: 8px 28px;
    font-size: 22px;
    line-height: 28px;
  }

  .henko-detail-shell {
    width: min(100% - 28px, var(--frame));
    min-height: 100vh;
    padding: 34px 0 70px;
    overflow: visible;
  }

  .henko-back-link,
  .henko-title,
  .henko-wide-image,
  .henko-phone-image,
  .henko-text {
    position: static;
  }

  .henko-back-link {
    width: 38px;
    height: 38px;
    margin-bottom: 28px;
  }

  .henko-title {
    width: 100%;
    font-size: 28px;
    line-height: 34px;
  }

  .henko-phone-image {
    width: 100%;
    height: auto;
    margin: 22px 0 0;
  }

  .henko-wide-image {
    width: 100%;
    height: auto;
    margin-top: 24px;
  }

  .henko-text {
    width: 100%;
    margin-top: 28px;
    font-size: 17px;
    line-height: 22px;
  }

  .footer-name {
    width: min(100%, 540px);
  }

  .footer-meta {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    gap: 3px;
    padding: 5px;
  }

  .nav-inner a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .lead,
  .about-copy {
    line-height: 1.28;
  }
}
