/* 首里結び landing page. Mobile first. Loaded only by /shurimusubi/. */

:root {
  --color-cream: #fffdf6;
  --color-paper: #f7efde;
  --color-shu: #b33d31;
  --color-navy: #1e2a4a;
  --color-text: #8c2f23;
  --color-muted: #94453a;
  --color-gold: #a97a2f;
  --color-gold-soft: #d9bd85;
  --color-vermilion: #b33d31;
  --color-line: #e7dcc4;
  --color-white: #ffffff;
  --color-weave: #e2b03f;
  --color-castle: #d5622d;
  --color-courtesy: #5c8a3b;
  --color-bingata: #7b4fa0;
  --color-awamori: #2f6fb0;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  /* Display face. Swap this one line to use はんなり明朝 once a licensed web font file is supplied. */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --fs-tate: 0.9375rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  --fs-hero: clamp(2.75rem, 2rem + 5vw, 5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);

  --radius: 0.75rem;
  --header-height: 3.5rem;
  --bar-height: 4.25rem;
  --shadow: 0 0.5rem 1.5rem rgba(140, 47, 35, 0.14);

  /* Minsā strips run down both edges of the page */
  --strip: 1.15rem;
  --strip-gap: 0.3rem;
  --gutter: calc(var(--strip) + var(--strip-gap) + 0.85rem);
}

@media (min-width: 62rem) {
  :root {
    --strip: 2.25rem;
    --strip-gap: 1rem;
    --fs-tate: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

body {
  position: relative;
  margin: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.9;
  word-break: auto-phrase;
  -webkit-text-size-adjust: 100%;
}

body::before,
body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: var(--strip);
  background-repeat: repeat-y;
  background-size: 100% auto;
  pointer-events: none;
}

body::before {
  left: var(--strip-gap);
  background-image: url("/images/shurimusubi/minsa-blue.svg");
}

body::after {
  right: var(--strip-gap);
  background-image: url("/images/shurimusubi/minsa-red.svg");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gtm-frame {
  display: none;
  visibility: hidden;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--color-shu);
  color: var(--color-white);
}

.skip-link:focus {
  top: var(--space-1);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  transition: box-shadow 0.4s;
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  background: rgba(255, 253, 246, 0.94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(0.5rem);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  text-decoration: none;
}

.brand-icon {
  align-self: center;
  width: 2.25rem;
  height: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-shu);
}

.brand-sub {
  font-size: var(--fs-xs);
  color: var(--color-muted);
}

.brand-sub sup {
  font-size: 0.7em;
}

.nav-toggle {
  display: grid;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.8rem 0.65rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--color-shu);
  transition: transform 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.5rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.5rem) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: var(--header-height);
  inset-inline: 0;
  display: none;
  padding: var(--space-2);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 0.75rem var(--space-1);
  border-bottom: 1px solid var(--color-line);
  text-decoration: none;
  font-weight: 500;
}

.site-nav .nav-wakon {
  color: var(--color-vermilion);
  border-bottom: 0;
}

@media (min-width: 62rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0;
    border: 0;
    font-size: var(--fs-sm);
  }

  .site-nav .nav-wakon {
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--color-vermilion);
    border-radius: 2rem;
  }
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.6rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 3rem;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.button-primary {
  background: var(--color-shu);
  color: var(--color-white);
}

.button-primary:hover {
  background: #8f2c23;
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--color-white);
  border-color: var(--color-shu);
  color: var(--color-shu);
}

.button-secondary:hover {
  background: var(--color-paper);
}

.button-quiet {
  min-height: 2.75rem;
  padding-inline: 1rem;
  background: var(--color-white);
  border-color: var(--color-line);
  color: var(--color-shu);
  font-size: var(--fs-sm);
}

.button-block {
  width: 100%;
}

.text-link {
  display: inline-block;
  color: var(--color-shu);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 0.35em;
}

.cta-group {
  display: grid;
  gap: 0.75rem;
  margin: var(--space-3) 0 var(--space-2);
}

@media (min-width: 36rem) {
  .cta-group {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-4);
}

/* Shared section parts */

.section {
  position: relative;
  padding: var(--space-section) 0;
  overflow: hidden;
}

.section:nth-of-type(even) {
  background: var(--color-paper);
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  justify-items: center;
  margin-bottom: var(--space-4);
  text-align: center;
}

.eyebrow {
  margin-bottom: var(--space-1);
  color: var(--color-shu);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.section-title,
.subsection-title {
  text-wrap: balance;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-shu);
}

.section-head .section-title:not(.tate)::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: var(--space-2) auto 0;
  background: var(--color-gold);
  transform-origin: center;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.section-lead {
  max-width: 40rem;
  margin: var(--space-2) auto 0;
  color: var(--color-muted);
}

.subsection-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-shu);
}

.note {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

.photo-caption {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

.ornament {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Vertical writing. Columns read from right to left; each <br> starts a new column. */

.tate {
  max-height: 24rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: var(--fs-tate);
  font-weight: 500;
  line-height: 2.1;
  letter-spacing: 0.08em;
}

.tate-flow,
.verse {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
}

.mark {
  font-style: normal;
  text-emphasis: filled sesame;
  text-emphasis-color: var(--color-gold);
}

.tcy {
  text-combine-upright: all;
}

.section-title.tate,
.subsection-title.tate,
.verse-title,
.hero-title,
.future-title {
  max-height: none;
}

.section-title.tate {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.1em;
}

.subsection-title.tate {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.8;
}

/* Hero */

.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-3)) 0 var(--space-4);
  overflow: hidden;
}

.ornament-tr {
  top: 0;
  right: 0;
  width: clamp(9rem, 38vw, 20rem);
  opacity: 0.85;
}

.hero .ornament-tr {
  top: var(--header-height);
  opacity: 0.7;
}

.hero-catch,
.hero-title {
  text-shadow: 0 0 0.4rem var(--color-cream), 0 0 0.9rem var(--color-cream);
}

.ornament-bl {
  left: 0;
  bottom: 0;
  width: clamp(8rem, 30vw, 17rem);
  opacity: 0.8;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "photo title catch"
    "photo lead lead"
    "actions actions actions";
  gap: var(--space-2);
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero-catch {
  grid-area: catch;
  margin-top: 4.5rem;
  font-size: var(--fs-sm);
}

.hero-title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: var(--color-shu);
}

.hero-photo {
  grid-area: photo;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
}

.hero-lead {
  grid-area: lead;
  justify-self: end;
  max-height: 14rem;
  font-size: var(--fs-md);
  font-weight: 700;
}

.hero-actions {
  grid-area: actions;
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-2);
}

.hero-actions .text-link {
  justify-self: center;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: var(--space-3) auto 0;
  padding: 0 var(--gutter);
  color: var(--color-muted);
  font-size: var(--fs-sm);
  text-align: center;
}

@media (min-width: 62rem) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + var(--space-4));
  }

  .hero-stage {
    grid-template-columns: auto auto minmax(0, 30rem) auto auto;
    grid-template-areas: "actions lead photo title catch";
    align-items: start;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
  }

  .hero-photo img {
    height: min(74svh, 42rem);
  }

  .hero-catch {
    margin-top: 3.5rem;
    font-size: var(--fs-md);
  }

  .hero-lead {
    justify-self: start;
    max-height: 16rem;
    font-size: var(--fs-lg);
  }

  .hero-actions {
    display: flex;
    flex-flow: row-reverse;
    align-self: end;
    gap: 0.75rem;
    margin: 0;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    writing-mode: vertical-rl;
    min-width: 3.25rem;
    min-height: 0;
    padding: 1.5rem 0.9rem;
    letter-spacing: 0.25em;
    white-space: nowrap;
  }

  .hero-actions .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gold);
    border-radius: 0.5rem;
    text-decoration: none;
  }
}

/* Occasions */

.occasion-list {
  display: flex;
  flex-flow: row-reverse;
  justify-content: center;
  gap: var(--space-1);
  max-width: 48rem;
  margin: 0 auto;
}

.occasion-card {
  flex: 1 1 0;
  min-width: 0;
}

.occasion-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  height: 100%;
  text-decoration: none;
}

.occasion-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}

.occasion-body {
  display: flex;
  flex-flow: row-reverse;
  justify-content: center;
  align-items: flex-start;
  gap: 0.3rem;
}

.occasion-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-shu);
  max-height: none;
}

.occasion-body p {
  max-height: 11rem;
  font-size: var(--fs-xs);
  line-height: 1.9;
}

@media (min-width: 48rem) {
  .occasion-list {
    gap: var(--space-3);
  }

  .occasion-body {
    gap: 0.6rem;
  }

  .occasion-body h3 {
    font-size: var(--fs-xl);
  }

  .occasion-body p {
    max-height: 14rem;
    font-size: var(--fs-sm);
  }
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  .gallery-item:nth-child(4n + 2),
  .gallery-item:nth-child(4n + 4) {
    margin-top: var(--space-3);
  }
}

/* Gallery heading */

.gallery-head .tate-flow {
  max-width: 44rem;
  margin: 0 auto;
}

.gallery-quote {
  margin-left: auto;
  align-self: flex-end;
  max-height: none;
  color: var(--color-shu);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Experience */

.experience .ornament {
  opacity: 0.6;
}

.outline-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  max-width: 34rem;
  margin: 0 auto var(--space-5);
  padding: var(--space-4) var(--space-3);
  overflow: hidden;
  border: 2px solid var(--color-shu);
  border-radius: var(--radius);
}

.outline-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 253, 246, 0.88), rgba(255, 253, 246, 0.88)),
    url("/images/shurimusubi/day-shoot.webp") 50% 35% / cover;
}

.outline-frame .tate {
  max-height: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.verse {
  max-width: 58rem;
  margin: 0 auto var(--space-5);
}

.verse-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.9;
  color: var(--color-shu);
}

.verse-last {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-shu);
}

.verse-closing {
  margin-top: var(--space-5);
}

.video-slot {
  position: relative;
  max-width: 44rem;
  margin: 0 auto var(--space-4);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-navy);
}

.video-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.85;
}

.video-slot video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-badge {
  position: absolute;
  right: var(--space-1);
  bottom: var(--space-1);
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  background: rgba(255, 253, 246, 0.92);
  color: var(--color-shu);
  font-size: var(--fs-xs);
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  color: var(--color-white);
  cursor: pointer;
}

.video-play-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.92);
  position: relative;
}

.video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-color: transparent transparent transparent var(--color-shu);
}

.video-duration {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.step-list {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  gap: var(--space-1);
  max-width: 60rem;
  margin: 0 auto var(--space-5);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-1) var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 2rem 2rem var(--radius) var(--radius);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.step-body {
  display: flex;
  flex-flow: row-reverse;
  align-items: flex-start;
  gap: 0.3rem;
}

.step h3 {
  max-height: none;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-shu);
}

.step p {
  max-height: 12rem;
  font-size: var(--fs-xs);
  line-height: 1.9;
}

.learning {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.learning-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  align-items: end;
  width: 100%;
  max-width: 34rem;
}

.learning-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
}

.heart-eyebrow {
  text-align: center;
}

.heart-list {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  gap: var(--space-1);
  max-width: 68rem;
  margin: 0 auto;
}

.heart {
  display: flex;
  flex-flow: row-reverse;
  align-items: flex-start;
  gap: 0.4rem;
  padding: var(--space-2) var(--space-2) var(--space-3);
  background: var(--color-white);
  border-top: 0.3rem solid var(--heart-color, var(--color-gold));
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 0.25rem 1rem rgba(140, 47, 35, 0.07);
}

.heart h4 {
  max-height: none;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-shu);
}

.heart-verb {
  max-height: none;
  color: var(--color-shu);
  font-weight: 700;
}

.heart p:not(.heart-verb) {
  max-height: 12rem;
  font-size: var(--fs-xs);
  line-height: 1.9;
}

.heart-weave {
  --heart-color: var(--color-weave);
}

.heart-castle {
  --heart-color: var(--color-castle);
}

.heart-courtesy {
  --heart-color: var(--color-courtesy);
}

.heart-bingata {
  --heart-color: var(--color-bingata);
}

.heart-awamori {
  --heart-color: var(--color-awamori);
}

/* Flow timeline */

.timeline {
  position: relative;
  display: grid;
  gap: var(--space-3);
  max-width: 46rem;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 3.35rem;
  width: 2px;
  background: var(--color-gold-soft);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 2.95rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-cream);
}

.timeline-time {
  color: var(--color-shu);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.8;
}

.timeline-time span {
  display: block;
  color: var(--color-gold);
  font-size: var(--fs-sm);
  line-height: 1;
}

.timeline-body {
  padding: var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.timeline-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--color-shu);
}

.timeline-body img {
  width: 100%;
  max-height: 35rem;
  margin: var(--space-1) 0;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 0.5rem;
}

.timeline-body dl {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.2rem var(--space-1);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.timeline-body dt {
  color: var(--color-gold);
  font-weight: 700;
}

.timeline-note {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

/* Plans */

.costume {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 56rem;
  margin: 0 auto var(--space-5);
}

.costume .tate:not(.subsection-title) {
  max-height: 16rem;
}

.costume-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 16rem;
  gap: var(--space-1);
  max-width: 26rem;
}

.costume-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 25%;
  border-radius: 0.5rem;
}

.costume-strip .photo-caption {
  text-align: center;
}

.plan-list {
  display: grid;
  gap: var(--space-3);
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-2);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.plan-card-featured {
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow);
}

.plan-label {
  color: var(--color-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plan-name {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--color-shu);
}

.plan-tagline {
  margin-top: 0.2rem;
  font-weight: 500;
}

.plan-price {
  display: grid;
  margin: var(--space-2) 0 0.2rem;
  padding: var(--space-1) 0;
  border-block: 1px solid var(--color-line);
}

.plan-price-main {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-shu);
}

.plan-price-tax {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.plan-for {
  font-size: var(--fs-sm);
  color: var(--color-muted);
}

.plan-includes {
  flex: 1;
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.plan-includes li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.25rem;
}

.plan-includes li::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-gold-soft);
}

.plan-includes small {
  display: block;
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

.plan-includes .plan-pending {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-gold-soft);
  border-radius: 2rem;
  color: var(--color-gold);
}

.plan-includes .plan-inherit {
  color: var(--color-shu);
  font-weight: 700;
}

.plan-card .text-link {
  align-self: center;
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
}

@media (min-width: 62rem) {
  .plan-list {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .plan-card {
    padding: var(--space-3);
  }
}

/* Story */

.founder {
  display: flex;
  flex-flow: row-reverse wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 62rem;
  margin: 0 auto var(--space-5);
}

.founder-photo {
  flex: 0 0 100%;
  max-width: 15rem;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.founder-photo figcaption {
  display: grid;
  margin-top: var(--space-1);
  text-align: center;
}

.founder-role {
  color: var(--color-muted);
  font-size: var(--fs-sm);
}

.founder-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-shu);
}

.founder-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  justify-self: center;
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.founder-note-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
}

.founder-copy {
  flex: 1 1 100%;
  gap: var(--space-2);
}

@media (min-width: 62rem) {
  .founder-photo {
    order: 2;
    flex: 0 0 15rem;
  }

  .founder-copy {
    flex: 1 1 0;
    min-width: 0;
  }
}

.future {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-paper);
}

.future img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: 50% 60%;
}

.future-copy {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2) var(--space-4);
}

.future-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-shu);
}

.future-closing {
  max-height: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-shu);
}

@media (min-width: 48rem) {
  .future {
    grid-template-columns: 1fr 1fr;
  }

  .future img {
    height: 100%;
    min-height: 28rem;
  }

  .future-copy {
    align-content: center;
    padding: var(--space-4);
  }
}

/* FAQ */

.faq-layout {
  display: grid;
  gap: var(--space-3);
  max-width: 62rem;
  margin: 0 auto;
}

.faq-photo {
  max-width: 20rem;
  margin: 0 auto;
}

.faq-photo img {
  width: 100%;
  border-radius: var(--radius);
}

.faq-item {
  margin-bottom: var(--space-1);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.faq-item summary {
  position: relative;
  padding: var(--space-2) 3rem var(--space-2) var(--space-2);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: var(--space-2);
  transform: translateY(-50%);
  color: var(--color-gold);
  font-size: var(--fs-xl);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  display: grid;
  gap: var(--space-1);
  padding: 0 var(--space-2) var(--space-2);
  font-size: var(--fs-sm);
}

.faq-cta {
  display: grid;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

@media (min-width: 62rem) {
  .faq-layout {
    grid-template-columns: 18rem 1fr;
    align-items: start;
    gap: var(--space-4);
  }

  .faq-photo {
    position: sticky;
    top: calc(var(--header-height) + var(--space-3));
  }

  .faq-cta {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }
}

/* Apply */

.apply-layout {
  display: grid;
  gap: var(--space-3);
  max-width: 62rem;
  margin: 0 auto;
}

.apply-photo {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
}

.anchor-offset {
  position: relative;
  top: calc(var(--header-height) * -1 - var(--space-1));
}

.tab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-line);
}

.tab {
  min-height: 3.25rem;
  padding: 0.5rem;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none;
  color: var(--color-muted);
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: 700;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-bottom-color: var(--color-gold);
  color: var(--color-shu);
}

.form-flow {
  margin-bottom: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--color-white);
  border-left: 3px solid var(--color-gold);
  font-size: var(--fs-sm);
}

.form {
  display: grid;
  gap: var(--space-2);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field > label:first-child {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.required,
.optional {
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 500;
}

.required {
  background: var(--color-vermilion);
  color: var(--color-white);
}

.optional {
  background: var(--color-line);
  color: var(--color-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cfc3a8;
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-md);
}

.field input[type="checkbox"] {
  width: 1.25rem;
  min-height: 0;
  height: 1.25rem;
  accent-color: var(--color-shu);
}

.check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
}

.form-note {
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

@media (min-width: 62rem) {
  .apply-layout {
    grid-template-columns: 22rem 1fr;
    align-items: start;
    gap: var(--space-4);
  }

  .apply-photo {
    position: sticky;
    top: calc(var(--header-height) + var(--space-3));
    height: 34rem;
  }
}

/* Footer and fixed bar */

.site-footer {
  position: relative;
  z-index: 31;
  padding: var(--space-5) 0 var(--space-4);
  overflow: hidden;
  background: var(--color-navy);
  color: var(--color-cream);
  text-align: center;
}

.site-footer .container {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-1);
}

.footer-logo img {
  width: 8rem;
  height: auto;
  margin-bottom: var(--space-1);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: 0.14em;
}

.site-footer .text-link {
  color: var(--color-cream);
}

.footer-company,
.footer-trademark,
.footer-copyright {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: rgba(255, 253, 246, 0.75);
}

.footer-company {
  margin-top: var(--space-2);
}

.fixed-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-1);
  min-height: var(--bar-height);
  padding: 0.6rem var(--space-2);
  background: rgba(255, 253, 246, 0.96);
  border-top: 1px solid var(--color-line);
  transition: transform 0.35s ease;
}

.fixed-bar.is-hidden {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s 0.35s;
}

@media (min-width: 62rem) {
  .fixed-bar {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: var(--space-2);
  }

  .fixed-bar-main {
    min-width: 18rem;
  }
}

.site-header.is-scrolled {
  box-shadow: 0 0.25rem 1.25rem rgba(140, 47, 35, 0.1);
}

/* Motion. Everything below is switched off for visitors who ask for less motion. */

:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes settle {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes sway {
  from {
    transform: rotate(-1.5deg);
  }

  to {
    transform: rotate(1.5deg);
  }
}

@keyframes sheen {
  from {
    transform: translateX(-120%) skewX(-20deg);
  }

  to {
    transform: translateX(260%) skewX(-20deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    interpolate-size: allow-keywords;
  }

  /* Hero entrance */
  .hero-photo img {
    animation: settle 2s var(--ease-out) both;
  }

  .hero-stage > :not(.hero-photo),
  .hero-sub {
    animation: rise 1s var(--ease-out) both;
  }

  .hero-catch { animation-delay: 0.15s; }
  .hero-title { animation-delay: 0.3s; }
  .hero-lead { animation-delay: 0.5s; }
  .hero-actions { animation-delay: 0.7s; }
  .hero-sub { animation-delay: 0.9s; }

  /* Bingata ornaments drift slowly */
  .ornament-tr {
    transform-origin: 100% 0;
    animation: sway 14s ease-in-out infinite alternate;
  }

  .ornament-bl {
    transform-origin: 0 100%;
    animation: sway 16s ease-in-out infinite alternate;
  }

  /* Scroll reveal. script.js marks the elements and removes the mark once shown. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 1s var(--ease-out) var(--reveal-delay, 0s), transform 1s var(--ease-out) var(--reveal-delay, 0s);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .js .section-head[data-reveal]:not(.is-visible) .section-title:not(.tate)::after {
    transform: scaleX(0);
  }

  /* Timeline draws itself as it comes into view */
  .timeline::before {
    transform-origin: top;
    transition: transform 2s var(--ease-out);
  }

  .js .timeline:not(.is-visible)::before {
    transform: scaleY(0);
  }

  .timeline-item::before {
    transition: transform 0.6s var(--ease-out) 0.2s;
  }

  .js .timeline-item[data-reveal]:not(.is-visible)::before {
    transform: scale(0);
  }

  /* Mobile menu eases in */
  @media (max-width: 61.99rem) {
    .site-nav {
      display: grid;
      visibility: hidden;
      opacity: 0;
      transform: translateY(-0.5rem);
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
    }

    .site-nav.is-open {
      visibility: visible;
      opacity: 1;
      transform: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
  }

  /* Form tabs fade in when switched */
  .tab-panel:not([hidden]) {
    animation: rise 0.6s var(--ease-out) both;
  }

  /* FAQ answers open smoothly */
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }

  .faq-item summary::after {
    transition: transform 0.35s var(--ease-out);
  }

  .faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
  }

  /* Primary buttons get a soft sheen on hover */
  .button-primary {
    position: relative;
    overflow: hidden;
  }

  .button-primary::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
  }

  .text-link {
    transition: text-decoration-color 0.3s, color 0.3s;
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .button-primary:hover::after {
    animation: sheen 0.9s ease;
  }

  .text-link:hover {
    color: var(--color-gold);
  }

  .plan-card,
  .heart,
  .step,
  .gallery-item img,
  .costume-strip img {
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  }

  .plan-card:hover,
  .heart:hover,
  .step:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow);
  }

  .gallery-item img:hover,
  .costume-strip img:hover {
    transform: translateY(-0.3rem);
    box-shadow: var(--shadow);
  }

  .occasion-card img {
    transition: transform 1s var(--ease-out);
  }

  .occasion-card a:hover img {
    transform: scale(1.06);
  }
}
