/* ===== Home: Hero ===== */
.home-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: stretch;
  color: var(--kinari);
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
}

.home-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 35, 31, 0.62) 0%, rgba(36, 35, 31, 0.18) 42%, rgba(36, 35, 31, 0.35) 100%),
    linear-gradient(180deg, rgba(36, 35, 31, 0.28) 0%, transparent 35%, rgba(36, 35, 31, 0.45) 100%);
}

@media (min-width: 960px) {
  .home-hero__shade {
    background:
      linear-gradient(90deg, rgba(36, 35, 31, 0.78) 0%, rgba(36, 35, 31, 0.28) 32%, rgba(36, 35, 31, 0.08) 55%, transparent 72%),
      linear-gradient(180deg, rgba(36, 35, 31, 0.15) 0%, transparent 45%, rgba(36, 35, 31, 0.5) 100%);
  }

  .home-hero__media img {
    object-position: 58% center;
  }

  .home-hero__content {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(2.5rem, 4.5vw, 4.5rem);
    width: min(100% - 2 * var(--gutter), 1280px);
    padding: calc(var(--header-h) + 2.5rem) 0 clamp(4rem, 9vh, 6.5rem);
  }

  .home-hero__logo {
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    letter-spacing: 0.18em;
    gap: 1.15em;
    align-self: end;
    padding-bottom: 0.15rem;
  }

  .home-hero__copy {
    gap: 1.35rem;
    padding: 0 0 0.25rem clamp(2rem, 3.5vw, 3rem);
    border-left: 1px solid rgba(196, 176, 138, 0.5);
  }

  .home-hero__eyebrow,
  .home-hero__lead {
    display: block;
  }

  .home-hero__meta {
    display: flex;
  }

  .home-hero__actions {
    display: flex;
  }

  .home-hero__catch {
    writing-mode: horizontal-tb;
    font-size: clamp(1.4rem, 2.1vw, 1.95rem);
    letter-spacing: 0.24em;
    line-height: 2.05;
    max-height: none;
  }

  .home-hero__en {
    font-size: 0.72rem;
    letter-spacing: 0.36em;
  }

  .home-hero__scroll {
    bottom: clamp(2.5rem, 6vh, 4rem);
    font-size: 0.65rem;
  }
}

.home-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  min-height: 100svh;
}

.home-hero__logo {
  writing-mode: vertical-rl;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  align-self: center;
}

.home-hero__logo-line {
  display: block;
}

.home-hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-bottom: 1rem;
}

.home-hero__catch {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.38em;
  line-height: 1.9;
  max-height: 18rem;
}

.home-hero__en {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  opacity: 0.75;
}

.home-hero__eyebrow,
.home-hero__lead,
.home-hero__meta,
.home-hero__actions {
  display: none;
}

.home-hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: #c4b08a;
}

.home-hero__lead {
  font-size: 0.88rem;
  line-height: 2;
  letter-spacing: 0.05em;
  color: rgba(242, 239, 232, 0.82);
  max-width: 28rem;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 232, 0.62);
}

.home-hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.home-hero__meta span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: #c4b08a;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-top: 0.25rem;
}

.home-hero__link {
  margin-top: 0;
  color: var(--kinari);
}

.home-hero__link:hover {
  color: #e8d9b8;
  border-color: #e8d9b8;
}

.home-hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  writing-mode: vertical-rl;
  opacity: 0.7;
}

.home-hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: currentColor;
  animation: scrollPulse 2.2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    transform-origin: bottom;
    opacity: 0.3;
  }
}

@media (max-width: 959px) {
  .home-hero__content {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 2rem;
    padding-bottom: 5rem;
    width: min(100% - 2 * var(--gutter), var(--max));
  }

  .home-hero__copy {
    gap: 2rem;
    padding: 0;
    border-left: 0;
  }

  .home-hero__logo {
    writing-mode: horizontal-tb;
    flex-direction: row;
    gap: 0.45em;
    letter-spacing: 0.28em;
    font-size: clamp(1.45rem, 5vw, 1.75rem);
    align-self: start;
  }

  .home-hero__catch {
    writing-mode: horizontal-tb;
    letter-spacing: 0.18em;
    max-height: none;
    line-height: 1.9;
  }

  .home-hero__scroll {
    writing-mode: horizontal-tb;
    left: var(--gutter);
    right: auto;
  }

  .home-hero__scroll::after {
    width: 2rem;
    height: 1px;
  }
}

@media (max-width: 640px) {
  .home-hero__content {
    padding-bottom: 4.5rem;
  }

  .home-hero__logo {
    font-size: 1.45rem;
    letter-spacing: 0.28em;
  }
}

/* ===== Intro ===== */
.home-intro {
  display: grid;
  gap: 2.5rem;
  padding: clamp(4.5rem, 11vw, 8rem) 0;
}

.home-intro__layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.home-intro__text {
  max-width: 28rem;
  padding-top: 1rem;
}

.home-intro__text p {
  margin-top: 1.25rem;
  line-height: 2.15;
  letter-spacing: 0.06em;
}

.home-intro__media {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: end;
}

.home-intro__media .media-frame:first-child {
  aspect-ratio: 4 / 5;
  max-height: 34rem;
}

.home-intro__media .media-frame:last-child {
  aspect-ratio: 3 / 4;
  max-height: 24rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .home-intro__layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
  }

  .home-intro__text {
    padding-top: 3rem;
  }
}

@media (max-width: 959px) {
  .home-intro__media {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .home-intro__media .media-frame:first-child,
  .home-intro__media .media-frame:last-child {
    max-height: none;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .home-intro__media {
    grid-template-columns: 1fr;
  }

  .home-intro__media .media-frame:first-child {
    aspect-ratio: 16 / 11;
  }

  .home-intro__media .media-frame:last-child {
    aspect-ratio: 4 / 3;
  }
}

/* ===== Cuisine ===== */
.home-cuisine {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.home-cuisine__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 36rem;
}

.home-cuisine__stage {
  display: grid;
  gap: 2rem;
}

.home-cuisine__photo {
  aspect-ratio: 16 / 10;
  min-height: 16rem;
}

.home-cuisine__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.course-row {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.course-row__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
}

.course-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

.course-row__desc {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text-soft);
  max-width: 34rem;
}

@media (min-width: 960px) {
  .home-cuisine__stage {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }

  .home-cuisine__photo {
    margin-left: calc(-1 * var(--gutter));
    width: calc(100% + var(--gutter));
    min-height: 28rem;
  }

  .home-cuisine__list {
    padding-top: 1rem;
  }
}

/* ===== Ingredients ===== */
.home-ingredients {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.home-ingredients__title {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.ing-board {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.ing-item {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.ing-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ing-item__text {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.ing-item__label {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: var(--kogecha);
}

.ing-item__text p {
  font-size: 0.9rem;
  line-height: 2.05;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  max-width: 28rem;
}

.ing-item__media {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.ing-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 960px) {
  .ing-item {
    grid-template-columns: minmax(14rem, 0.85fr) 1.15fr;
    gap: 3rem 3.5rem;
    align-items: center;
  }

  .ing-item--flip {
    grid-template-columns: 1.15fr minmax(14rem, 0.85fr);
  }

  .ing-item--flip .ing-item__media {
    order: -1;
  }

  .ing-item--flip .ing-item__text {
    justify-items: start;
  }

  .ing-item:nth-child(1) .ing-item__media,
  .ing-item:nth-child(4) .ing-item__media {
    aspect-ratio: 16 / 11;
  }

  .ing-item:nth-child(2) .ing-item__media,
  .ing-item:nth-child(3) .ing-item__media {
    aspect-ratio: 5 / 4;
  }
}

/* ===== Space teaser ===== */
.home-space {
  padding: clamp(4rem, 10vw, 7rem) 0;
  color: var(--kinari);
}

.home-space .eyebrow {
  color: #c4b08a;
}

.home-space .lead {
  color: rgba(242, 239, 232, 0.78);
}

.home-space .text-link {
  color: var(--kinari);
}

.home-space__head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 960px) {
  .home-space__head {
    max-width: 64rem;
  }
}

.space-mosaic {
  display: grid;
  gap: 0.85rem;
}

.space-mosaic__main {
  aspect-ratio: 16 / 10;
}

.space-mosaic__side {
  display: grid;
  gap: 0.85rem;
}

.space-mosaic__side .media-frame {
  aspect-ratio: 4 / 3;
}

.space-caption {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

@media (min-width: 960px) {
  .space-mosaic {
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1rem;
    align-items: stretch;
  }

  .space-mosaic__main {
    height: 100%;
    min-height: 28rem;
    aspect-ratio: auto;
  }

  .space-mosaic__side {
    grid-template-rows: 1fr 1fr;
  }

  .space-mosaic__side .media-frame {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .course-row__name {
    font-size: 1.05rem;
    letter-spacing: 0.14em;
  }

  .course-row__meta {
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
  }
}

/* ===== Seasonal highlight ===== */
.home-seasonal {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.home-seasonal__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.home-seasonal__text .lead {
  margin-top: 1rem;
}

.home-seasonal__media {
  aspect-ratio: 4 / 3;
}

/* ===== Instagram-style gallery (demo) ===== */
.home-gallery {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.home-gallery__head {
  margin-bottom: 1.75rem;
}

.home-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.home-gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
}

.home-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery__note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}

@media (min-width: 960px) {
  .home-seasonal__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }

  .home-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}
