/*
 * サイトのスタイル
 * 共通設定から順に記載し、後半でレスポンシブ表示や個別調整を行っています。
 * 同じセレクターの指定がある場合、後に書かれたルールが優先されます。
 */

:root {
  --navy: #142f48;
  --blue: #2d5876;
  --sky: #dceaf1;
  --paper: #f8fafb;
  --white: #fff;
  --ink: #233544;
  --muted: #667888;
  --line: #dce4e9;
  --gold: #b9a17a;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', 'YakuHanJP', 'Noto Sans JP', sans-serif;
  line-height: 1.9;
  letter-spacing: 0.035em;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
}
button {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #e2a75d;
  outline-offset: 4px;
}
.wrap {
  max-width: 1170px;
  margin: auto;
  padding: 0 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--blue);
  font-weight: 700;
}
.heading {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0.07em;
  line-height: 1.35;
  color: var(--navy);
  margin: 12px 0;
}
.section-lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 2.1;
}
.section {
  padding: 110px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 252, 253, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 25px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 0.08em;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.23em;
  color: var(--muted);
  margin-top: 7px;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
}
.nav a:hover,
.text-link:hover {
  color: #4d829d;
}
.nav .nav-contact {
  background: var(--navy);
  color: white;
  padding: 10px 19px;
  border-radius: 50px;
}
.menu-btn {
  display: none;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 25px;
  cursor: pointer;
}
.hero {
  overflow: hidden;
  background: linear-gradient(120deg, #f8fafb 40%, #e9f1f5 100%);
  position: relative;
}
.hero:after {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(75, 113, 137, 0.13);
  border-radius: 50%;
  right: -180px;
  top: -140px;
  pointer-events: none;
}
.hero-inner {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 50px;
  padding-top: 65px;
  padding-bottom: 70px;
}
.hero h1 {
  font-size: clamp(34px, 4.5vw, 61px);
  line-height: 1.58;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin: 24px 0;
}
.hero h1 span {
  color: #477995;
}
.hero p {
  max-width: 530px;
  font-size: 14px;
  line-height: 2.4;
  color: #566b79;
}
.hero-art {
  position: relative;
  z-index: 1;
}
.hero-art img {
  border-radius: 12px;
  box-shadow: 0 25px 65px #16364b22;
  transform: rotate(2deg);
}
.hero-art:before {
  content: '';
  position: absolute;
  width: 85%;
  height: 90%;
  border: 1px solid #92b1c3;
  top: -23px;
  left: -25px;
  border-radius: 14px;
  z-index: -1;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-outline {
  border: 1px solid #9ab2c1;
  color: var(--navy);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}
.works {
  background: white;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}
.work-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 35px #102d4009;
  transition: 0.25s;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px #102d4016;
}
.work-card:first-child {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.work-photo {
  overflow: hidden;
  background: #edf1f2;
  aspect-ratio: 1.55;
}
.work-card:first-child .work-photo {
  aspect-ratio: auto;
  min-height: 330px;
}
.work-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.work-card:hover .work-photo img {
  transform: scale(1.025);
}
.work-body {
  padding: 30px;
}
.work-card:first-child .work-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tag {
  font-size: 10px;
  padding: 4px 11px;
  background: #eef3f6;
  color: #49667a;
  border-radius: 20px;
  letter-spacing: 0.05em;
}
.tag.real {
  background: #f5eee1;
  color: #856b3f;
}
.work-body h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.5;
  color: var(--navy);
}
.work-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 13px 0 19px;
}
.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.09em;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  align-self: flex-start;
}
.about {
  background: #eaf1f5;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.about-mark {
  background: var(--navy);
  color: white;
  padding: 60px 35px;
  border-radius: 18px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-mark strong {
  font-size: 35px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.about-mark small {
  color: #c6d7e1;
  font-size: 12px;
}
.about-copy p {
  font-size: 14px;
  color: #4b6070;
}
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill-list span {
  padding: 8px 14px;
  border: 1px solid #bdcbd4;
  border-radius: 50px;
  font-size: 11px;
  color: #456073;
  background: #ffffff88;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}
.service {
  padding: 34px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.service .num {
  color: var(--text-secondary);
  font-size: 13px;
}
.service h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 18px 0 8px;
}
.service p {
  font-size: 12px;
  color: var(--muted);
}
.flow {
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step {
  border-top: 2px solid #a4b9c7;
  padding-top: 17px;
}
.step b {
  color: var(--text-secondary);
  font-size: 12px;
}
.step h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 9px 0;
}
.step p {
  font-size: 12px;
  color: var(--muted);
}
.contact {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.contact .heading,
.contact .eyebrow {
  color: white;
}
.contact p {
  color: #d0dee7;
  font-size: 14px;
}
.contact-note {
  max-width: 670px;
  margin: 35px auto 0;
  padding: 20px 24px;
  border: 1px solid #668197;
  border-radius: 12px;
  font-size: 13px;
  color: #e4edf3;
}
.footer {
  padding: 27px 0;
  background: #0d2538;
  color: #b7c8d3;
  font-size: 11px;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #0b1c2bd9;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modal-panel {
  background: white;
  border-radius: 17px;
  max-width: 900px;
  max-height: 92vh;
  overflow: auto;
  width: 100%;
  position: relative;
}
.modal-close {
  position: sticky;
  float: right;
  top: 10px;
  margin: 10px 12px -55px 0;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2;
  font-size: 22px;
}
.modal-panel img {
  max-height: 440px;
  object-fit: cover;
}
.modal-content {
  padding: 30px 40px 40px;
}
.modal-content h3 {
  font-size: 26px;
  color: var(--navy);
  margin: 4px 0 12px;
}
.modal-content p {
  font-size: 13px;
  color: #556a7a;
}
.modal-content dl {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 9px 18px;
  font-size: 13px;
  margin: 22px 0;
}
.modal-content dt {
  color: #7891a2;
}
.modal-content dd {
  margin: 0;
}
.fineprint {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
}
.modal-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 22px;
}
@media (max-width: 850px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 70px;
  }
  .hero-art {
    max-width: 580px;
    margin: auto;
  }
  .about-grid {
    gap: 35px;
  }
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 10px;
  }
  .service-grid {
    gap: 12px;
  }
  .service {
    padding: 24px 18px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
  .header-inner {
    min-height: 68px;
  }
  .menu-btn {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    box-shadow: 0 12px 25px #122b4020;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 5px;
    font-size: 13px;
  }
  .nav .nav-contact {
    text-align: center;
    margin-top: 8px;
  }
  .section {
    padding: 70px 0;
  }
  .hero-inner {
    gap: 50px;
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-art:before {
    top: -12px;
    left: -12px;
  }
  .section-head {
    display: block;
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .work-card:first-child {
    grid-column: auto;
    display: block;
  }
  .work-card:first-child .work-photo {
    aspect-ratio: 1.55;
    min-height: 0;
  }
  .work-card:first-child .work-body,
  .work-body {
    padding: 24px;
  }
  .work-body h3 {
    font-size: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-mark {
    min-height: 220px;
    padding: 35px;
  }
  .about-mark strong {
    font-size: 28px;
  }
  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 16px;
  }
  .footer .wrap {
    display: block;
  }
  .modal-content {
    padding: 23px;
  }
  .modal-content dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal-content dt {
    margin-top: 10px;
  }
  .modal-content h3 {
    font-size: 22px;
  }
  .modal-panel img {
    max-height: 290px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}
.hero .hero-title {
  font-size: clamp(27px, 3.15vw, 48px);
  letter-spacing: 0.035em;
  line-height: 1.55;
}
.hero .hero-line {
  display: block;
  white-space: nowrap;
  color: var(--navy);
}
.hero .hero-line-accent {
  color: #477995;
}
@media (max-width: 480px) {
  .hero .hero-title {
    font-size: clamp(24px, 6.7vw, 32px);
    letter-spacing: 0;
  }
}

/* Editorial-style process section: understated vertical rhythm */
.flow-list {
  max-width: 900px;
  margin: 45px auto 0;
  border-top: 1px solid var(--line);
}
.flow-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  padding: 29px 0 31px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.flow-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #688ba4;
}
.flow-item h3 {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 9px;
}
.flow-item p {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  margin: 0;
  max-width: 650px;
}
@media (max-width: 640px) {
  .flow-list {
    margin-top: 30px;
  }
  .flow-item {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    padding: 23px 0;
  }
  .flow-number {
    font-size: 20px;
  }
  .flow-item h3 {
    font-size: 16px;
  }
  .flow-item p {
    font-size: 12px;
  }
}
/* Original cinematic portfolio direction */
:root {
  --navy: #142d42;
  --blue: var(--accent);
  --paper: #f7f8fa;
  --muted: #64727e;
  --radius: 0;
}
body {
  font-family: 'YakuHanJP', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
}
.eyebrow,
.brand,
.nav,
.hero-meta,
.hero-bottom,
.flow-number,
.num {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
}
.wrap {
  max-width: 1320px;
  padding-left: 64px;
  padding-right: 64px;
}
.section {
  padding: 125px 0;
  scroll-margin-top: 85px;
}
.heading {
  font-weight: 500;
  letter-spacing: 0.06em;
}
.site-header {
  background: #fff;
  border-bottom: 0;
  backdrop-filter: none;
}
.header-inner {
  min-height: 88px;
}
.brand {
  font-size: 16px;
}
.brand small {
  font-size: 8px;
}
.nav {
  gap: 32px;
  font-size: 10px;
}
.nav .nav-contact {
  border-radius: 2px;
  background: var(--accent);
  padding: 12px 23px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.hero {
  min-height: 660px;
  height: calc(100svh - 88px);
  max-height: 1000px;
  background: #233b4a;
  color: white;
  isolation: isolate;
}
.hero:after {
  display: none;
}
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -3;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 26, 42, 0.3),
    rgba(10, 26, 42, 0.38) 45%,
    rgba(8, 25, 41, 0.76)
  );
  z-index: -2;
}
.hero-inner {
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 70px;
}
.hero-copy {
  width: 100%;
}
.hero .eyebrow {
  color: #e0ebf4;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
}
.hero .hero-title {
  font-size: clamp(36px, 4.7vw, 72px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.12em;
  margin: 24px 0;
  color: white;
  text-shadow: 0 3px 28px #10263655;
}
.hero-title span {
  display: block !important;
  color: #fff !important;
}
.hero p {
  max-width: none;
  font-size: 13px;
  color: #fff;
  line-height: 2.3;
  letter-spacing: 0.12em;
}
.actions {
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}
.btn {
  border-radius: 2px;
  padding: 17px 30px;
}
.btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 24px #00182a22;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.hero .btn {
  min-width: 215px;
  justify-content: space-between;
}
.hero-contact {
  font-size: 12px;
  border-bottom: 1px solid #ffffff80;
  padding: 12px 0;
  display: flex;
  gap: 28px;
}
.hero-meta,
.hero-bottom {
  position: absolute;
  left: 64px;
  right: 64px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.18em;
  gap: 20px;
}
.hero-meta {
  top: 30px;
}
.hero-bottom {
  bottom: 30px;
  align-items: center;
}
.hero-bottom a {
  display: flex;
  gap: 18px;
}
.hero-bottom a span {
  font-size: 18px;
}
.works {
  background: #fff;
}
.section-head {
  margin-bottom: 55px;
}
.work-card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.work-card:hover {
  transform: none;
  box-shadow: none;
}
.works-grid {
  gap: 60px 40px;
}
.work-card:first-child {
  display: block;
  grid-column: auto;
}
.work-card:first-child .work-photo,
.work-photo {
  aspect-ratio: 1.5;
  min-height: 0;
  background: #f1f3f5;
}
.work-photo img {
  object-fit: contain;
}
.work-body,
.work-card:first-child .work-body {
  padding: 22px 0 0;
  display: block;
}
.work-body h3 {
  font-size: 23px;
  font-weight: 500;
}
.work-body p {
  font-size: 12px;
  line-height: 2;
}
.tag {
  border-radius: 2px;
  padding: 3px 8px;
}
.text-link {
  border-bottom: 1px solid #a6bacb;
  padding-bottom: 5px;
}
.about {
  background: #edf2f6;
}
.about-grid {
  gap: 90px;
}
.about-mark {
  border-radius: 0;
  background: #1d405b;
  min-height: 420px;
  padding: 40px;
}
.about-mark strong {
  font-size: 34px;
  font-weight: 500;
}
.about-mark small {
  font-size: 9px;
  letter-spacing: 0.18em;
}
.pill-list span {
  border-radius: 2px;
}
.service {
  border-radius: 0;
  background: none;
  border: 0;
  border-top: 1px solid #b8c7d2;
  padding: 30px 0;
}
.service-grid {
  gap: 45px;
}
.service h3 {
  font-weight: 500;
}
.contact {
  background: #173c59;
}
.contact-note {
  border-radius: 0;
  font-size: 12px;
}
.footer {
  background: #123149;
}
.modal-panel {
  border-radius: 2px;
}
.modal-panel img {
  object-fit: contain;
  background: #eef1f3;
  max-height: 55vh;
}
.flow-list {
  max-width: none;
}
.flow-item {
  grid-template-columns: 110px 1fr;
  padding: 33px 0;
}
.flow-item h3 {
  font-weight: 500;
}
@media (min-width: 1000px) {
  .work-card:nth-child(even) {
    margin-top: 80px;
  }
  .work-card:last-child {
    grid-column: 1/-1;
    max-width: calc(50% - 20px);
  }
}
@media (max-width: 900px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
  .nav {
    gap: 16px;
  }
  .hero-meta,
  .hero-bottom {
    left: 32px;
    right: 32px;
  }
  .hero {
    min-height: 650px;
  }
  .hero-inner {
    padding-top: 50px;
    padding-bottom: 70px;
  }
  .about-grid {
    gap: 35px;
  }
  .about-mark {
    padding: 30px;
  }
  .about-mark strong {
    font-size: 28px;
  }
  .service-grid {
    gap: 22px;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-left: 23px;
    padding-right: 23px;
  }
  .header-inner {
    min-height: 72px;
  }
  .brand {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
  .brand small {
    font-size: 7px;
  }
  .nav {
    top: 72px;
  }
  .nav .nav-contact {
    margin-top: 12px;
  }
  .hero {
    height: calc(100svh - 72px);
    min-height: 620px;
    max-height: 900px;
  }
  .hero-meta {
    top: 23px;
    left: 23px;
    right: 23px;
    font-size: 7px;
  }
  .hero-meta span:last-child {
    display: none;
  }
  .hero .hero-title {
    font-size: clamp(26px, 7vw, 43px);
    letter-spacing: 0.04em;
    line-height: 1.9;
    margin: 24px -8px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.19em;
  }
  .hero p {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .hero-inner {
    gap: 0;
    padding-top: 20px;
    padding-bottom: 45px;
  }
  .actions {
    gap: 20px;
    flex-direction: column;
    margin-top: 26px;
  }
  .hero .btn {
    min-width: 220px;
    font-size: 12px;
    padding: 15px 25px;
  }
  .hero-contact {
    font-size: 11px;
    padding: 5px 0;
  }
  .hero-bottom {
    left: 23px;
    right: 23px;
    bottom: 22px;
    font-size: 7px;
  }
  .hero-bottom > span:first-child {
    display: none;
  }
  .hero-background {
    object-position: 51% center;
  }
  .section {
    padding: 78px 0;
    scroll-margin-top: 72px;
  }
  .section-head {
    margin-bottom: 35px;
  }
  .works-grid {
    gap: 42px;
  }
  .work-body,
  .work-card:first-child .work-body {
    padding: 20px 0 0;
  }
  .work-body h3 {
    font-size: 21px;
  }
  .work-body p {
    font-size: 12px;
  }
  .about-mark {
    min-height: 270px;
  }
  .service-grid {
    gap: 16px;
  }
  .service {
    padding: 25px 0 12px;
  }
  .flow-item {
    grid-template-columns: 35px 1fr;
    gap: 15px;
    padding: 25px 0;
  }
  .footer .wrap {
    font-size: 9px;
  }
  .footer .wrap span {
    display: block;
  }
  .contact-note {
    font-size: 11px;
    padding: 18px;
  }
  .modal-content {
    padding: 25px;
  }
  .modal-links .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Bright skyline direction, matched to supplied concept 06 */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: 0;
}
.brand {
  font-weight: 500;
  letter-spacing: 0.08em;
}
.nav .nav-contact {
  border-radius: 30px;
  background: var(--accent);
}
.hero {
  height: 90svh;
  min-height: 660px;
  max-height: 900px;
  background: #e8f3fb;
  color: #102744;
}
.hero-background {
  object-position: center bottom;
}
.hero-shade {
  background: linear-gradient(180deg, #ffffff10 0%, #ffffff00 75%, #ffffff05);
}
.hero-inner {
  padding-top: 75px;
  padding-bottom: 155px;
}
.hero .eyebrow {
  color: var(--accent);
  letter-spacing: 0.27em;
  font-size: 10px;
}
.hero .hero-title {
  font-family: 'Noto Serif JP', serif;
  color: #10213b;
  font-weight: 400;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 1.65;
  letter-spacing: 0.09em;
  text-shadow: none;
  margin: 22px 0 18px;
}
.hero-title span {
  color: #10213b !important;
}
.hero p {
  color: #15304b;
  font-size: 13px;
  letter-spacing: 0.16em;
}
.hero .actions {
  flex-direction: row;
  gap: 22px;
  margin-top: 28px;
}
.hero .btn {
  border-radius: 40px;
  min-width: 215px;
  font-size: 12px;
  padding: 15px 28px;
  box-shadow: none;
  justify-content: space-between;
}
.hero .btn-primary {
  background: var(--accent);
  color: #fff;
}
.hero .btn-primary:hover {
  background: var(--accent-hover);
}
.hero .btn-outline {
  background: #ffffffcc;
  border: 1px solid #9caab9;
  color: #19344f;
}
.hero .btn-outline:hover {
  background: #fff;
}
.hero-meta {
  display: none;
}
.hero-bottom {
  color: #244665;
  bottom: 25px;
}
.hero-bottom > span {
  visibility: hidden;
}
.hero-bottom a {
  position: absolute;
  left: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  gap: 12px;
  font-size: 8px;
}
.hero-bottom a span {
  font-size: 16px;
}
.hero-side {
  position: absolute;
  right: 5%;
  top: 36%;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  line-height: 2;
  letter-spacing: 0.24em;
  color: #223e60;
}
.hero-side span {
  display: block;
  width: 1px;
  height: 100px;
  background: #7597b566;
  margin-top: 20px;
}
@media (max-width: 900px) {
  .hero-side {
    right: 25px;
    font-size: 8px;
  }
  .hero-inner {
    padding-bottom: 150px;
  }
  .hero .hero-title {
    font-size: clamp(35px, 5.5vw, 52px);
  }
}
@media (max-width: 640px) {
  .hero {
    height: 94svh;
    min-height: 650px;
    max-height: 850px;
  }
  .hero-inner {
    padding-top: 25px;
    padding-bottom: 140px;
  }
  .hero .hero-title {
    font-size: clamp(25px, 6.6vw, 40px);
    line-height: 1.9;
    letter-spacing: 0.03em;
    margin: 20px -8px 15px;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.18em;
  }
  .hero p {
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .hero .actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .hero .btn {
    padding: 13px 24px;
    min-width: 220px;
    font-size: 11px;
  }
  .hero-side {
    display: none;
  }
  .hero-background {
    object-position: center bottom;
  }
  .hero-bottom {
    bottom: 20px;
  }
  .hero-bottom a {
    font-size: 7px;
  }
  .site-header .nav-contact {
    background: var(--accent);
  }
}

/* Section-aware fixed navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  --header-bg: transparent;
  background: var(--header-bg);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  z-index: 20;
}
.site-header.is-dark {
  color: #fff;
}
.site-header.is-dark .brand,
.site-header.is-dark .menu-btn {
  color: #fff;
}
.site-header.is-dark .brand small {
  color: #c9dce9;
}
.site-header.is-dark .nav a:hover {
  color: #c6e6ff;
}
.site-header.is-dark .nav-contact {
  background: var(--accent);
  color: #fff;
}
.section {
  scroll-margin-top: 88px;
}
@media (max-width: 640px) {
  .section {
    scroll-margin-top: 72px;
  }
  .site-header .nav {
    background: var(--menu-bg, #fff);
  }
  .site-header.is-dark .nav {
    color: #fff;
  }
  .site-header.is-dark .nav a {
    color: #fff;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* Concept 02: full-viewport photo with left-aligned copy. */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: none;
  background: #a9bac4;
}
.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(38, 65, 82, 0.46) 0%,
    rgba(48, 76, 92, 0.26) 45%,
    rgba(74, 97, 106, 0.04) 100%
  );
}
.hero-inner {
  max-width: 1320px;
  justify-content: flex-start;
  text-align: left;
  padding-top: 110px;
  padding-bottom: 100px;
}
.hero-copy {
  width: auto;
  max-width: 850px;
}
.hero .eyebrow {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.26em;
}
.hero .hero-title {
  font-size: clamp(34px, 3.65vw, 56px);
  line-height: 1.75;
  letter-spacing: 0.065em;
  margin: 22px 0;
  color: #fff;
  text-shadow: 0 2px 18px #203e4820;
}
.hero .hero-title span {
  color: #fff !important;
}
.hero p {
  color: #fff;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.1em;
}
.hero .actions {
  justify-content: flex-start;
  gap: 20px;
}
.hero .btn-outline {
  color: #173149;
  background: #ffffffc9;
  border-color: #ffffffa6;
}
.hero-side {
  color: white;
}
.hero-side span {
  background: #ffffff80;
}
.hero-bottom {
  color: #fff;
}
.site-header.is-hero .brand,
.site-header.is-hero .menu-btn {
  color: #fff;
}
.site-header.is-hero .brand small {
  color: #fff;
}
.site-header.is-hero .nav > a:not(.nav-contact) {
  color: #fff;
}
.site-header.is-hero .nav > a:not(.nav-contact):hover {
  color: #d9f0ff;
}
@media (max-width: 900px) {
  .hero .hero-title {
    font-size: clamp(30px, 4.5vw, 43px);
  }
  .hero-side {
    display: none;
  }
  .hero-copy {
    max-width: 690px;
  }
}
@media (max-width: 640px) {
  .hero {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    max-height: none;
  }
  .hero-background {
    object-position: 63% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #26465980, #3553664d);
  }
  .hero-inner {
    padding-top: 110px;
    padding-bottom: 100px;
  }
  .hero .hero-title {
    font-size: clamp(22px, 5.5vw, 35px);
    line-height: 1.9;
    letter-spacing: 0.015em;
    margin: 20px 0;
  }
  .hero .eyebrow {
    font-size: 8px;
    letter-spacing: 0.16em;
  }
  .hero p {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  .hero .actions {
    align-items: flex-start;
    gap: 12px;
  }
  .hero .btn {
    min-width: 215px;
  }
  .site-header.is-hero .nav > a:not(.nav-contact) {
    color: var(--navy);
  }
  .site-header.is-hero .nav > a:not(.nav-contact):hover {
    color: var(--blue);
  }
}

/* Concept 03: bright white workspace, copy left and objects right. */
.hero {
  background: #fafcfd;
}
.hero-background {
  object-position: center;
}
.hero-shade {
  background: none;
}
.hero-inner {
  padding-top: 110px;
  padding-bottom: 100px;
}
.hero-copy {
  max-width: 650px;
  width: 58%;
}
.hero .eyebrow {
  color: var(--accent);
}
.hero .hero-title {
  color: #142b45;
  text-shadow: none;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.55;
  letter-spacing: 0.065em;
}
.hero .hero-title span {
  color: #142b45 !important;
}
.hero p {
  color: #263f57;
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.07em;
}
.hero .btn-outline {
  background: #ffffffb3;
  border: 1px solid #637e96;
  color: #19344f;
}
.hero-side {
  display: none;
}
.hero-bottom {
  color: #244665;
}
.site-header.is-hero .brand,
.site-header.is-hero .menu-btn {
  color: var(--navy);
}
.site-header.is-hero .brand small {
  color: #617384;
}
.site-header.is-hero .nav > a:not(.nav-contact) {
  color: var(--navy);
}
.site-header.is-hero .nav > a:not(.nav-contact):hover {
  color: var(--blue);
}
@media (max-width: 900px) {
  .hero-copy {
    width: 65%;
  }
  .hero .hero-title {
    font-size: clamp(31px, 4.5vw, 43px);
  }
  .hero .actions {
    gap: 12px;
  }
  .hero .btn {
    min-width: 185px;
  }
}
@media (max-width: 640px) {
  .hero-background {
    object-position: 70% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #ffffffed 0%, #ffffffdc 45%, #ffffff66 100%);
  }
  .hero-inner {
    padding-top: 110px;
    padding-bottom: 100px;
  }
  .hero-copy {
    width: 100%;
    max-width: 460px;
  }
  .hero .hero-title {
    font-size: clamp(29px, 7.2vw, 43px);
    line-height: 1.65;
    letter-spacing: 0.04em;
  }
  .hero p {
    font-size: 11px;
    line-height: 2.1;
  }
  .hero .btn {
    min-width: 215px;
  }
}

/* Reference 03: vertical SCROLL label with a straight line beneath it. */
.hero-bottom {
  left: 30px;
  right: auto;
  bottom: 0;
  display: block;
  width: 20px;
  height: 135px;
}
.hero-bottom > span {
  display: none;
}
.hero-bottom .hero-scroll {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  writing-mode: horizontal-tb;
  gap: 12px;
  width: 20px;
  height: 135px;
  padding: 0;
  color: #18324c;
}
.hero-bottom .hero-scroll-label {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
}
.hero-bottom .hero-scroll-line {
  display: block;
  width: 1px;
  height: 78px;
  flex: 0 0 78px;
  background: #8b9eae;
}
@media (max-width: 640px) {
  .hero-bottom {
    left: 16px;
    height: 98px;
  }
  .hero-bottom .hero-scroll {
    height: 98px;
    gap: 10px;
  }
  .hero-bottom .hero-scroll-label {
    font-size: 8px;
  }
  .hero-bottom .hero-scroll-line {
    height: 48px;
    flex-basis: 48px;
  }
}

/* A fine moving stroke travels downward along the scroll guide. */
.hero-bottom .hero-scroll-line {
  position: relative;
  overflow: hidden;
  background: #8b9eae40;
}
.hero-bottom .hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #637e96;
  transform: translateY(-105%);
  animation: scroll-guide-down 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes scroll-guide-down {
  0% {
    transform: translateY(-105%);
  }
  65%,
  100% {
    transform: translateY(105%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bottom .hero-scroll-line::after {
    animation: none;
    transform: none;
  }
}

/* Visual four-step process: icon, action, and a concrete next step. */
.process-grid {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  border: 1px solid #d7e3eb;
  background: #f7fafc;
}
.process-card:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -20px;
  top: 103px;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #4287b4;
  border-top: 1.5px solid #4287b4;
  transform: rotate(45deg);
}
.process-step {
  font-family: 'DM Sans', sans-serif;
  color: #497690;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.process-step b {
  font-size: 19px;
  font-weight: 500;
  margin-left: 6px;
}
.process-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e7f1f8;
  color: #276e9f;
  margin: 20px auto;
}
.process-icon svg {
  display: block;
  width: 36px;
  height: 36px;
  overflow: visible;
}
.process-card h3 {
  text-align: center;
  color: #173c59;
  font-weight: 500;
  line-height: 1.5;
  font-size: 24px;
  margin: 0 0 8px;
}
.process-summary {
  text-align: center;
  color: #355f7b;
  font-size: 11px;
  margin: 0 0 22px;
  font-weight: 500;
}
.process-description {
  font-size: 12px;
  color: #627586;
  line-height: 2;
  margin: 0 0 22px;
}
.process-note {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid #d7e3eb;
  color: #355f7b;
  font-size: 11px;
  line-height: 1.9;
}
@media (max-width: 1000px) and (min-width: 641px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .process-card:nth-child(2)::after {
    right: 50%;
    top: auto;
    bottom: -19px;
    transform: rotate(135deg);
  }
  .process-card:nth-child(3)::after {
    display: none;
  }
  .process-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .process-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
  }
  .process-card:nth-child(4)::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 103px;
    width: 10px;
    height: 10px;
    border-left: 1.5px solid #4287b4;
    border-bottom: 1.5px solid #4287b4;
    transform: rotate(45deg);
  }
}
@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 32px;
  }
  .process-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0 18px;
    padding: 24px;
  }
  .process-step {
    grid-column: 1/-1;
    margin-bottom: 16px;
  }
  .process-icon {
    grid-column: 1;
    grid-row: 2/5;
    width: 62px;
    height: 62px;
    margin: 0;
  }
  .process-icon svg {
    width: 30px;
    height: 30px;
  }
  .process-card h3 {
    grid-column: 2;
    text-align: left;
    font-size: 23px;
    margin-bottom: 3px;
  }
  .process-summary {
    grid-column: 2;
    text-align: left;
    margin-bottom: 12px;
  }
  .process-description {
    grid-column: 2;
    margin-bottom: 16px;
  }
  .process-note {
    grid-column: 1/-1;
  }
  .process-card:not(:last-child)::after {
    right: calc(50% - 5px);
    top: auto;
    bottom: -19px;
    transform: rotate(135deg);
  }
}

/* Editorial process: typography and quiet rules, without cards or icons. */
.flow-editorial-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 62px;
}
.flow-editorial-heading .heading {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 0;
}
.flow-editorial-heading .section-lead {
  font-size: 12px;
  line-height: 2.2;
  margin: 0 0 6px;
}
.flow-editorial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #b8c7d1;
}
.flow-editorial-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: start;
  padding: 42px 0 46px;
  border-bottom: 1px solid #dce4e9;
}
.flow-editorial-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: var(--text-secondary);
}
.flow-editorial-title h3 {
  font-family: 'YakuHanJP', 'Noto Sans JP', sans-serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.07em;
  color: #17354d;
  margin: 0 0 10px;
}
.flow-editorial-title > span {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}
.flow-editorial-row > p {
  font-size: 13px;
  line-height: 2.2;
  color: #576b7a;
  margin: 2px 0 0;
  max-width: 460px;
}
@media (max-width: 900px) {
  .flow-editorial-row {
    grid-template-columns: 55px minmax(180px, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .flow-editorial-number {
    font-size: 31px;
  }
  .flow-editorial-title h3 {
    font-size: 23px;
  }
}
@media (max-width: 640px) {
  .flow-editorial-heading {
    display: block;
    margin-bottom: 35px;
  }
  .flow-editorial-heading .heading {
    font-size: 29px;
  }
  .flow-editorial-heading .section-lead {
    margin-top: 20px;
    font-size: 11px;
  }
  .flow-editorial-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px 18px;
    padding: 28px 0 32px;
  }
  .flow-editorial-number {
    font-size: 27px;
    grid-row: 1/3;
  }
  .flow-editorial-title h3 {
    font-size: 23px;
    margin-bottom: 6px;
  }
  .flow-editorial-title > span {
    font-size: 9px;
  }
  .flow-editorial-row > p {
    grid-column: 2;
    font-size: 12px;
    line-height: 2.1;
    margin: 0;
  }
}

/* Keep process headings and explanations in a compact reading area. */
#flow > .wrap {
  max-width: 1016px;
}
.flow-editorial-heading {
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
}
.flow-editorial-heading > div {
  flex: 0 0 350px;
}
.flow-editorial-heading .section-lead {
  margin-top: 42px;
}
.flow-editorial-row {
  grid-template-columns: 52px 220px minmax(0, 1fr);
  gap: 24px;
}
.flow-editorial-row > p {
  max-width: none;
}
@media (max-width: 900px) {
  #flow > .wrap {
    max-width: 850px;
  }
  .flow-editorial-heading > div {
    flex-basis: 320px;
  }
  .flow-editorial-row {
    grid-template-columns: 42px 190px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  #flow > .wrap {
    max-width: 520px;
  }
  .flow-editorial-heading {
    display: block;
  }
  .flow-editorial-heading .section-lead {
    margin-top: 20px;
  }
  .flow-editorial-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 14px;
  }
  .flow-editorial-row > p {
    grid-column: 2;
  }
}

/* Restore the original wide introduction; keep only the steps compact. */
#flow > .wrap {
  max-width: 1320px;
}
.flow-editorial-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.flow-editorial-heading > div {
  flex: 0 1 auto;
}
.flow-editorial-heading .section-lead {
  margin: 0 0 6px;
}
.flow-editorial-list {
  max-width: 888px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  #flow > .wrap {
    max-width: 1320px;
  }
  .flow-editorial-heading > div {
    flex: 0 1 auto;
  }
}
@media (max-width: 640px) {
  #flow > .wrap {
    max-width: 1320px;
  }
  .flow-editorial-heading .section-lead {
    margin-top: 20px;
  }
}

/* Widen the step title by 40px while preserving the explanation width. */
.flow-editorial-list {
  max-width: 928px;
}
.flow-editorial-row {
  grid-template-columns: 52px 260px minmax(0, 1fr);
  gap: 24px;
}
.flow-editorial-title h3 {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .flow-editorial-row {
    grid-template-columns: 42px 230px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .flow-editorial-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px 14px;
  }
}
@media (max-width: 360px) {
  .flow-editorial-title h3 {
    font-size: 21px;
  }
}

/* Center only the service section introduction. */
#services > .wrap > .eyebrow,
#services > .wrap > .heading,
#services > .wrap > .section-lead {
  text-align: center;
}

/* Center the process introduction above the existing compact steps. */
#flow .flow-editorial-heading {
  display: block;
  text-align: center;
}
#flow .flow-editorial-heading .eyebrow,
#flow .flow-editorial-heading .heading {
  text-align: center;
}
#flow .flow-editorial-heading .section-lead {
  margin: 22px auto 0;
  text-align: center;
}

/* Clear, comfortably sized project detail buttons. */
.work-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.work-detail-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}
.work-detail-button:focus-visible {
  outline: 3px solid #dca55b;
  outline-offset: 4px;
}
@media (max-width: 640px) {
  .work-detail-button {
    width: 100%;
    min-height: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .work-detail-button {
    transition: none;
  }
  .work-detail-button:hover {
    transform: none;
  }
}

/* Pill-shaped project buttons with larger labels. */
.work-detail-button {
  border-radius: 999px;
  font-size: 14px;
  min-height: 52px;
  padding: 15px 26px;
}
@media (max-width: 640px) {
  .work-detail-button {
    min-height: 52px;
  }
}

/* Translucent glass, tinted to match the upcoming section. */
.site-header {
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  border-bottom: 1px solid rgba(148, 172, 190, 0.16);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.2s ease;
}
.site-header.is-hero {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--header-solid, #fff);
  }
  .site-header.is-hero {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
}

/* Portfolio feedback contact with a prefilled email template. */
.contact .contact-status {
  margin: 24px 0 30px;
  font-size: 13px;
  color: #e0ebf3;
}
.contact-email-button {
  border-radius: 999px;
  min-height: 54px;
  min-width: 250px;
  justify-content: space-between;
  font-size: 14px;
  gap: 30px;
}
.contact .contact-email-help {
  font-size: 11px;
  color: #bccfdd;
  line-height: 2;
  margin: 22px 0 8px;
}
.contact-email-address {
  font-family: 'DM Sans', sans-serif;
  display: inline-block;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #86a3b9;
  letter-spacing: 0.03em;
}
@media (max-width: 640px) {
  .contact .heading {
    font-size: clamp(23px, 6.2vw, 30px);
  }
  .contact-email-button {
    min-width: 250px;
  }
  .contact .contact-status {
    font-size: 12px;
  }
}

/* On-page portfolio contact fields. */
.portfolio-contact-form {
  max-width: 660px;
  margin: 38px auto 0;
  text-align: left;
}
.contact-field {
  margin-bottom: 24px;
}
.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 9px;
}
.contact-field label span {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid #9cb4c5;
  border-radius: 2px;
  color: #d6e5ef;
}
.contact-field label small {
  font-size: 10px;
  font-weight: 400;
  color: #b7cbd9;
  margin-left: 8px;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #c5d2dc;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: #20394e;
}
.contact-field textarea {
  resize: vertical;
  min-height: 180px;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-secondary);
  font-size: 12px;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 3px solid #82c7f4;
  outline-offset: 3px;
}
.contact .contact-form-note {
  font-size: 11px;
  line-height: 1.9;
  color: #c5d8e5;
  text-align: center;
  margin: 28px 0 20px;
}
.portfolio-contact-form .contact-email-button {
  display: flex;
  margin: auto;
  cursor: pointer;
  border: 0;
}
.contact .contact-form-status {
  font-size: 12px;
  line-height: 1.9;
  color: #d5eaf8;
  text-align: center;
  min-height: 1em;
}
@media (max-width: 640px) {
  .contact-field {
    margin-bottom: 20px;
  }
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    font-size: 16px;
  }
  .portfolio-contact-form {
    margin-top: 30px;
  }
}

/* Keep the longer process headings on one line. */
#flow .flow-editorial-title h3 {
  font-size: 22px;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  #flow .flow-editorial-title h3 {
    font-size: 20px;
  }
}
@media (max-width: 640px) {
  #flow .flow-editorial-title h3 {
    font-size: clamp(18px, 5vw, 22px);
  }
}

.contact .contact-recipient {
  font-size: 13px;
  color: #e1edf5;
  margin: 0 0 28px;
  overflow-wrap: anywhere;
}
.contact-recipient strong {
  font-weight: 500;
}

/* One-line process heading, scaled for narrow screens. */
#flow .flow-editorial-heading .process-main-title {
  white-space: nowrap;
  font-size: clamp(30px, 3.2vw, 44px);
}
@media (max-width: 640px) {
  #flow .flow-editorial-heading .process-main-title {
    font-size: clamp(16px, 4.7vw, 29px);
    letter-spacing: 0.02em;
  }
}

/* Match the two section subtitles and introductory text. */
#services > .wrap > .heading,
#flow .flow-editorial-heading .process-main-title {
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.06em;
}
#services > .wrap > .section-lead,
#flow .flow-editorial-heading .section-lead {
  font-size: 14px;
  line-height: 2.1;
}
@media (max-width: 640px) {
  #services > .wrap > .heading,
  #flow .flow-editorial-heading .process-main-title {
    font-size: clamp(16px, 4.7vw, 29px);
    letter-spacing: 0.02em;
  }
  #services > .wrap > .section-lead,
  #flow .flow-editorial-heading .section-lead {
    font-size: 13px;
    line-height: 2.1;
  }
}

/* Gentle one-time entrances; content stays visible without JavaScript. */
.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.reveal-pending.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media print {
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Opening: a calligraphic signature, white dissolve, photo, then copy. */
.opening-overlay {
  display: none;
}
.opening-active body {
  overflow: hidden;
}
.opening-active .opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.1s ease;
  isolation: isolate;
}
.opening-signature-wrap {
  width: min(76vw, 800px);
  padding: 20px 0;
}
.opening-signature {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: #203b50;
}
.signature-letter {
  fill: currentColor;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 0.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    signature-draw 1s ease forwards,
    signature-ink 0.4s ease forwards;
  animation-delay: var(--letter-delay), calc(var(--letter-delay) + 0.6s);
}
@keyframes signature-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes signature-ink {
  to {
    fill-opacity: 1;
    stroke-width: 0;
  }
}
.opening-skip {
  position: absolute;
  right: 35px;
  bottom: 30px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c7d2da;
  padding: 10px 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #4c6576;
  cursor: pointer;
}
.opening-skip span {
  margin-left: 18px;
}
.opening-active .hero-background {
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 1.3s ease,
    transform 2s ease;
}
.opening-active.opening-photo .hero-background {
  opacity: 1;
  transform: scale(1);
}
.opening-active.opening-photo .opening-overlay {
  opacity: 0;
  pointer-events: none;
}
.opening-active .site-header,
.opening-active .hero-bottom {
  opacity: 0;
  transition: opacity 1s ease;
}
.opening-active.opening-copy .site-header,
.opening-active.opening-copy .hero-bottom {
  opacity: 1;
}
.opening-active:not(.opening-copy) .hero-copy {
  opacity: 0 !important;
  transform: translateY(14px) !important;
}
.opening-active.opening-copy .hero-copy {
  opacity: 1 !important;
  transform: none !important;
  transition: none;
}
.opening-active.opening-copy .hero-copy > .eyebrow {
  animation: opening-copy-up 1s ease both;
}
.opening-active.opening-copy .hero-title {
  animation: opening-copy-up 1.1s 0.18s ease both;
}
.opening-active.opening-copy .hero-copy > p {
  animation: opening-copy-up 1.1s 0.38s ease both;
}
.opening-active.opening-copy .hero-copy > .actions {
  animation: opening-copy-up 1.1s 0.58s ease both;
}
@keyframes opening-copy-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 640px) {
  .opening-signature-wrap {
    width: 88vw;
  }
  .opening-skip {
    right: 24px;
    bottom: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening-overlay {
    display: none !important;
  }
  .opening-active body {
    overflow: auto;
  }
  .opening-active .hero-background,
  .opening-active .site-header,
  .opening-active .hero-bottom,
  .opening-active .hero-copy {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .signature-letter {
    animation: none;
    fill-opacity: 1;
    stroke-width: 0;
  }
}

/* Mobile-safe signature sizing and a synchronized drawing start. */
.opening-signature-wrap {
  flex: 0 0 auto;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
}
.opening-signature {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 791 / 109;
  min-height: 40px;
}
.signature-letter {
  animation: none;
}
.opening-writing .signature-letter {
  animation:
    signature-draw 1s ease forwards,
    signature-ink 0.4s ease forwards;
  animation-delay: var(--letter-delay), calc(var(--letter-delay) + 0.6s);
}
@media (max-width: 640px) {
  .opening-active .opening-overlay {
    height: 100%;
    height: 100dvh;
    min-height: 100svh;
  }
  .opening-signature-wrap {
    width: calc(100vw - 40px);
  }
  .opening-signature {
    min-height: 48px;
  }
  .opening-skip {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .opening-writing .signature-letter {
    animation: none;
    fill-opacity: 1;
    stroke-width: 0;
  }
}

/* A personal introduction with portrait, story, and quiet information rows. */
.profile-heading {
  margin-bottom: 60px;
}
.profile-heading .heading {
  font-weight: 400;
  line-height: 1.65;
  font-size: clamp(29px, 3.2vw, 44px);
}
.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 90px;
  align-items: start;
}
.profile-identity {
  margin: 0;
}
.profile-portrait {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.profile-identity h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 24px 0 4px;
  color: #17354d;
}
.profile-reading {
  font-size: 10px;
  color: #657c8d;
  margin: 0;
  letter-spacing: 0.06em;
}
.profile-caption {
  font-size: 12px;
  line-height: 2;
  color: #536d80;
  margin: 22px 0;
}
.profile-instagram {
  display: inline-flex;
  justify-content: space-between;
  gap: 35px;
  padding: 7px 0;
  border-bottom: 1px solid #8da5b6;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #244e6c;
}
.profile-story-block + .profile-story-block {
  margin-top: 46px;
  padding-top: 35px;
  border-top: 1px solid #c6d5df;
}
.profile-section-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--text-secondary);
}
.profile-story h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: #17354d;
  margin: 12px 0 20px;
}
.profile-story p {
  font-size: 13px;
  line-height: 2.25;
  color: #4d6474;
  margin: 0 0 18px;
}
.profile-details {
  margin: 65px 0 0;
  padding: 0;
  border-top: 1px solid #b8cad7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 50px;
}
.profile-details > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 18px;
  border-bottom: 1px solid #c9d7e0;
  padding: 25px 0;
}
.profile-details dt {
  font-size: 12px;
  color: #3c5e77;
  font-weight: 500;
  line-height: 2;
}
.profile-details dd {
  margin: 0;
  font-size: 12px;
  line-height: 2;
  color: #526a7c;
  overflow-wrap: anywhere;
}
.profile-details a {
  border-bottom: 1px solid #9db1c0;
  color: #285b7e;
}
@media (max-width: 1000px) {
  .profile-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 45px;
  }
  .profile-details {
    column-gap: 30px;
  }
  .profile-details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
@media (max-width: 640px) {
  .profile-heading {
    margin-bottom: 34px;
  }
  .profile-heading .heading {
    font-size: 27px;
  }
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .profile-identity {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }
  .profile-portrait {
    width: 115px;
    grid-row: 1/5;
  }
  .profile-identity h3 {
    font-size: 22px;
    margin: 0 0 4px;
  }
  .profile-reading {
    font-size: 9px;
  }
  .profile-caption {
    font-size: 10px;
    margin: 12px 0;
  }
  .profile-instagram {
    font-size: 11px;
    justify-self: start;
    gap: 24px;
  }
  .profile-story h3 {
    font-size: 20px;
  }
  .profile-story p {
    font-size: 12px;
    line-height: 2.2;
  }
  .profile-details {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .profile-details > div {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }
  .profile-details dt,
  .profile-details dd {
    font-size: 11px;
  }
}

/* A single reading direction for profile facts. */
.profile-details-heading {
  max-width: 900px;
  margin: 70px auto 25px;
}
.profile-details-heading h3 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #17354d;
  margin: 8px 0 0;
}
.profile-details {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid #b8cad7;
}
.profile-details > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 30px;
  padding: 25px 0;
  border-bottom: 1px solid #c3d3de;
}
.profile-details dt {
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  color: #25485f;
}
.profile-details dd {
  font-size: 14px;
  line-height: 2.05;
  color: #4e6677;
}
@media (max-width: 900px) {
  .profile-details > div {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .profile-details-heading {
    margin: 42px 0 22px;
  }
  .profile-details-heading h3 {
    font-size: 20px;
  }
  .profile-details > div {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 21px 0;
  }
  .profile-details dt {
    font-size: 13px;
    color: #244d69;
  }
  .profile-details dd {
    font-size: 13px;
    line-height: 2;
  }
}

/* Align profile details with the story column, including PHILOSOPHY. */
#profile .profile-details-heading {
  max-width: none;
  margin: 70px 0 25px 370px;
  text-align: left;
}
#profile .profile-details {
  max-width: none;
  margin: 0 0 0 370px;
}
@media (max-width: 1000px) {
  #profile .profile-details-heading {
    margin-left: 265px;
  }
  #profile .profile-details {
    margin-left: 265px;
  }
  .profile-details > div {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  #profile .profile-details-heading {
    margin: 42px 0 22px;
  }
  #profile .profile-details {
    margin: 0;
  }
  .profile-details > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.profile-gmail {
  display: inline-block;
  max-width: 100%;
  line-height: 2;
}
.profile-gmail a {
  overflow-wrap: anywhere;
}

/* Separate the original philosophy from the personal biography. */
.profile {
  background: #fff;
  scroll-margin-top: 88px;
}
@media (max-width: 640px) {
  .profile {
    scroll-margin-top: 72px;
  }
}

/* Preserve the source portrait ratio independently of the mobile grid. */
#profile .profile-portrait-frame {
  position: relative;
  display: block;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 278 / 292;
  align-self: start;
  justify-self: start;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}
#profile .profile-portrait-frame .profile-portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  grid-row: auto;
  border-radius: 0;
}
@media (max-width: 640px) {
  #profile .profile-portrait-frame {
    width: 115px;
    grid-column: 1;
    grid-row: 1 / 5;
    align-self: start;
  }
}

/* Keep the year inline and each footer sentence on its own line. */
.footer .wrap > span {
  white-space: nowrap;
}
.footer .wrap #year {
  display: inline;
}
@media (max-width: 640px) {
  .footer .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: clamp(8px, 2.5vw, 11px);
    letter-spacing: 0.01em;
    text-align: center;
  }
  .footer .wrap > span {
    display: block;
    white-space: nowrap;
  }
  .footer .wrap #year {
    display: inline;
  }
}

/* Natural-size portrait scaled down as a whole, with no stretched grid image. */
#profile .profile-portrait-frame {
  position: static;
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  align-self: start;
  justify-self: start;
  overflow: visible;
}
#profile .profile-portrait-frame img.profile-portrait {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  align-self: start;
}
.footer .wrap #copyright {
  display: block;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 640px) {
  #profile .profile-identity {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  #profile .profile-portrait-frame {
    width: 120px;
    height: auto;
    grid-column: 1;
    grid-row: 1 / 5;
  }
  .footer .wrap {
    gap: 6px;
    font-size: 10px;
    letter-spacing: 0;
  }
  .footer .wrap > span {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Slow, soft mobile menu opening, with a clear close control. */
@media (max-width: 640px) {
  .site-header .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
    font-size: 36px;
    font-weight: 300;
  }
  .site-header .menu-btn[aria-expanded='true'] {
    font-size: 36px;
    font-weight: 300;
  }
  .site-header .nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1),
      visibility 0s linear 0.6s;
  }
  .site-header .nav.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition:
      opacity 0.6s ease,
      transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1),
      visibility 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .nav,
  .site-header .nav.open {
    transition: none;
    transform: none;
  }
}

/* Vertically center the step number, title, and explanation within each row. */
#flow .flow-editorial-row {
  align-items: center;
}
#flow .flow-editorial-title h3 {
  margin-top: 0;
  margin-bottom: 0;
}
#flow .flow-editorial-row > p {
  margin-top: 0;
  margin-bottom: 0;
}
#flow .flow-editorial-number {
  align-self: center;
}

/* Keep six works in paired columns and hide unavailable site links. */
@media (min-width: 1000px) {
  .works-grid .work-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}
#modalUrl[hidden] {
  display: none !important;
}

/* Larger reading text for the personal introduction and philosophy. */
#profile .profile-story p {
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  #profile .profile-story p {
    font-size: 14px;
    line-height: 2.05;
  }
}

/* Larger body text for STUDIES 01–03. */
#services .service p {
  font-size: 15px;
  line-height: 2.05;
}
@media (max-width: 640px) {
  #services .service p {
    font-size: 14px;
    line-height: 2;
  }
}

/* Larger body text for PROCESS 01–04; keep vertical centering. */
#flow .flow-editorial-row > p {
  font-size: 15px;
  line-height: 2.05;
}
@media (max-width: 640px) {
  #flow .flow-editorial-row > p {
    font-size: 14px;
    line-height: 2;
  }
}

/* Larger descriptions for every work in the portfolio list. */
#works .work-body > p {
  font-size: 15px;
  line-height: 2.05;
}
@media (max-width: 640px) {
  #works .work-body > p {
    font-size: 14px;
    line-height: 2;
  }
}

/* Larger hero introduction and button labels. */
#top .hero-copy > p {
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.04em;
}
#top .actions .btn {
  font-size: 15px;
  min-height: 54px;
  min-width: 240px;
  padding: 15px 26px;
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  #top .hero-copy > p {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.01em;
  }
  #top .actions .btn {
    font-size: 14px;
    min-height: 52px;
    min-width: 240px;
    max-width: 100%;
    padding: 14px 24px;
  }
}

/* Match the mobile PROFILE heading to ABOUT ME. */
@media (max-width: 640px) {
  #profile .profile-heading .heading {
    font-size: clamp(30px, 4vw, 48px);
  }
}

/* Left-align the STUDIES introduction on mobile. */
@media (max-width: 640px) {
  #services > .wrap > .eyebrow,
  #services > .wrap > .heading,
  #services > .wrap > .section-lead {
    text-align: left;
  }
  #services > .wrap > .heading {
    font-size: 30px;
    white-space: normal;
  }
}

/* Left-align PROCESS on mobile, with a readable 30px heading. */
@media (max-width: 640px) {
  #flow .flow-editorial-heading,
  #flow .flow-editorial-heading .eyebrow,
  #flow .flow-editorial-heading .process-main-title,
  #flow .flow-editorial-heading .section-lead {
    text-align: left;
  }
  #flow .flow-editorial-heading .process-main-title {
    font-size: 30px;
    white-space: normal;
  }
}

/* Larger header navigation labels across screen sizes. */
.site-header .nav {
  font-size: 14px;
  gap: 26px;
}
.site-header .nav a {
  font-size: 14px;
}
@media (min-width: 641px) and (max-width: 900px) {
  .site-header .header-inner {
    gap: 16px;
  }
  .site-header .nav {
    gap: 10px;
  }
  .site-header .nav a {
    font-size: 12px;
  }
  .site-header .nav .nav-contact {
    padding: 10px 14px;
  }
}
@media (max-width: 640px) {
  .site-header .nav {
    gap: 0;
  }
  .site-header .nav a {
    font-size: 16px;
    padding: 14px 8px;
  }
  .site-header .nav .nav-contact {
    font-size: 16px;
  }
}

/* Match WORKS hover colors to the hero primary button in every section. */
.site-header .nav .nav-contact {
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.site-header .nav .nav-contact:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Noto Sans JP for the main hero headline. */
#top .hero-title {
  font-family: 'YakuHanJP', 'Noto Sans JP', sans-serif;
}

/* Let each label determine its button width. */
#works .work-detail-button {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  gap: 12px;
  padding: 15px 24px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .site-header .nav .nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    flex: 0 0 auto;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    padding: 12px 24px;
    white-space: nowrap;
  }
}

/* Fine, informal pen-style handwriting for the opening signature. */
.opening-signature {
  aspect-ratio: 751.25 / 120.54;
  color: #233f57;
}
.signature-letter {
  stroke-width: 0.35;
}

/* Pen centerlines: ink follows the pen, without outline filling. */
.opening-signature {
  aspect-ratio: 733 / 110;
}
.signature-letter {
  fill: none;
  fill-opacity: 0;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: none;
}
.opening-writing .signature-letter {
  animation: signature-draw var(--pen-duration) linear forwards;
  animation-delay: var(--pen-delay);
}
@media (prefers-reduced-motion: reduce) {
  .opening-writing .signature-letter {
    animation: none;
    stroke-dashoffset: 0 !important;
    stroke-width: 1.65;
    fill: none;
  }
}

/* Sacramento is rendered as actual font text, revealed without an outline/fill stage. */
.opening-signature {
  aspect-ratio: 1000 / 180;
}
.signature-handwritten {
  font-family: 'Yellowtail', cursive;
  font-size: 58px;
  font-weight: 400;
  fill: currentColor;
  stroke: none;
}
.opening-signature .signature-reveal {
  fill: none;
  stroke: #fff;
  stroke-width: 180;
  stroke-linecap: butt;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-reveal {
    stroke-width: 180;
    stroke-dashoffset: 0 !important;
  }
}

/* Each mask follows the centerline of the actual Sacramento glyph. */

.opening-signature {
  aspect-ratio: 1096 / 210;
}
.signature-handwritten.signature-glyph {
  font-family: YellowtailLocal, 'Yellowtail', cursive;
  font-size: 96px;
}
.opening-signature .signature-trace {
  fill: none;
  stroke: white;
  stroke-width: 19;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 19;
    stroke-dashoffset: 0 !important;
  }
}

/* Keep the exact name, word spaces and cursive shaping in one text run. */
.signature-handwritten.signature-glyph {
  letter-spacing: normal;
  word-spacing: normal;
}
.signature-complete {
  opacity: 0;
}
.opening-writing .signature-complete {
  animation: signature-complete 1ms step-end 1.2s forwards;
}
@keyframes signature-complete {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .signature-complete {
    opacity: 1;
  }
}

/* Size matches the Sacramento pen trace. */
.opening-signature {
  aspect-ratio: 1126 / 210;
}

/* Sacramento signature dimensions and fine pen mask. */
.opening-signature {
  aspect-ratio: 952 / 210;
}
.opening-signature .signature-trace {
  stroke-width: 10;
}

/* Complete each clipped letter in reading order before starting the next. */
.signature-letter-finished {
  opacity: 0;
}
.opening-writing .signature-letter-finished {
  animation: signature-complete 1ms step-end var(--finish-delay) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .signature-letter-finished {
    opacity: 1;
  }
}

/* Brush lettering: Yellowtail, with matching left-to-right traces. */
.opening-signature {
  aspect-ratio: 1096 / 210;
}
.opening-signature .signature-trace {
  stroke-width: 22;
}

/* Bold Yellowtail lettering with matching ordered pen strokes. */
.opening-signature {
  aspect-ratio: 1080 / 210;
}
.opening-signature .signature-trace {
  stroke-width: 26;
}

/* Bold handwritten script, with matching left-to-right traces. */
.opening-signature {
  aspect-ratio: 1080 / 210;
}
.opening-signature .signature-trace {
  stroke-width: 24;
}

/* Yellowtail signature and matching pen trace. */
.opening-signature {
  aspect-ratio: 953 / 210;
}
.opening-signature .signature-trace {
  stroke-width: 20;
}

/* Solid brush ink, with overlap to avoid antialiased letter-mask seams. */
.opening-signature .signature-trace {
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
.signature-handwritten.signature-glyph {
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 40;
  }
}

/* Follow the full g descender without the body-width clipping. */
.opening-signature .signature-g-descender {
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bold ballpoint-style handwriting, with freshly generated pen trajectories. */

.opening-signature {
  aspect-ratio: 1145 / 210;
}
.signature-handwritten.signature-glyph {
  font-family: KalamLocal, Kalam, cursive;
  font-size: 96px;
  font-weight: 700;
}
.opening-signature .signature-trace {
  stroke-width: 36;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 36;
  }
}

/* Ms Madi signature, with matching ordered handwriting. */

.opening-signature {
  aspect-ratio: 925 / 210;
}
.signature-handwritten.signature-glyph {
  font-family: MsMadiLocal, 'Ms Madi', cursive;
  font-size: 96px;
  font-weight: 400;
}
.opening-signature .signature-trace {
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 30;
  }
}

/* Cookie signature and matching ordered pen trajectories. */

.opening-signature {
  aspect-ratio: 838 / 210;
}
.signature-handwritten.signature-glyph {
  font-family: CookieLocal, Cookie, cursive;
  font-size: 96px;
  font-weight: 400;
}
.opening-signature .signature-trace {
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 30;
  }
}

/* Pattaya signature and matching ordered pen trajectories. */
@font-face {
  font-family: PattayaLocal;
  src: url('../assets/Pattaya-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: block;
}
.opening-signature {
  aspect-ratio: 1077 / 210;
}
.signature-handwritten.signature-glyph {
  font-family: PattayaLocal, Pattaya, cursive;
  font-size: 96px;
  font-weight: 400;
}
.opening-signature .signature-trace {
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .opening-signature .signature-trace {
    stroke-width: 40;
  }
}

/* A fully offset round-capped stroke can still expose its cap in SVG masks.
   Hide every pen stroke until its own scheduled writing time. */
.opening-signature .signature-trace {
  opacity: 0;
  animation: none;
}
.opening-writing .opening-signature .signature-trace {
  animation:
    signature-draw var(--pen-duration) linear var(--pen-delay) forwards,
    signature-pen-visible var(--pen-duration) linear var(--pen-delay) forwards;
}
@keyframes signature-pen-visible {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}
.opening-active:not(.opening-writing) .opening-signature {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .opening-writing .opening-signature .signature-trace {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0 !important;
  }
}

/* Keep touch scrolling steady: fade content without moving its position. */
@media (max-width: 900px) {
  .reveal-pending,
  .reveal-pending.is-revealed {
    transform: none;
    transition: opacity 0.75s ease;
  }
}
@media (hover: none), (pointer: coarse) {
  .btn:hover,
  .work-detail-button:hover,
  .work-card:hover {
    transform: none;
  }
  .work-card:hover .work-photo img {
    transform: none;
  }
}

/* Freeze the mobile hero geometry through intro completion and browser-bar changes. */
@media (max-width: 900px) {
  #top.hero {
    height: var(--hero-locked-height, 100svh);
    min-height: 600px;
    max-height: none;
  }
  .opening-active .opening-overlay {
    height: var(--hero-locked-height, 100svh);
    min-height: 0;
  }
  #top .hero-background {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* Wrap mobile copy at meaningful phrase boundaries. */
@media (max-width: 640px) {
  main p,
  main dd {
    line-break: strict;
    word-break: normal;
    text-wrap: pretty;
  }
  main h1,
  main h2,
  main h3,
  .about-mark strong {
    text-wrap: balance;
    line-break: strict;
    word-break: normal;
  }
  .phrase {
    display: inline-block;
    white-space: nowrap;
    max-width: 100%;
  }
  .hero-copy > p br,
  .section-lead br,
  .profile-caption br {
    display: none;
  }
  .profile-reading {
    line-height: 1.8;
  }
  .profile-reading .phrase {
    display: block;
  }
  .profile-reading {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .profile-name-separator {
    display: none;
  }
}

/* Give the portfolio note a calm, deliberate mobile reading rhythm. */
@media (max-width: 640px) {
  #contact .portfolio-description {
    font-size: 14px;
    line-height: 2.1;
    letter-spacing: 0.02em;
    margin: 24px auto;
    max-width: 100%;
    text-wrap: initial;
  }
  #contact .portfolio-description > span {
    display: block;
  }
}

/* One PROFILE section combines the personal story and design approach. */
#profile {
  position: relative;
}
.profile-legacy-anchor {
  position: absolute;
  top: 0;
  left: 0;
  scroll-margin-top: 88px;
}
#profile .profile-story .profile-principle {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.7;
  color: var(--navy);
  font-weight: 500;
  margin: 22px 0;
}
#profile .profile-approach .pill-list {
  margin-top: 24px;
}
@media (max-width: 640px) {
  .profile-legacy-anchor {
    scroll-margin-top: 72px;
  }
  #profile .profile-story .profile-principle {
    font-size: 24px;
  }
  #profile .profile-approach .pill-list {
    gap: 8px;
  }
}

/* User-supplied logo: preserve the image and frame its central artwork. */
.site-header .brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}
.site-header .brand-logo {
  display: block;
  width: 240px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  background: transparent;
}
@media (min-width: 641px) and (max-width: 900px) {
  .site-header .brand-logo {
    width: 210px;
    height: 57px;
  }
}
@media (max-width: 640px) {
  .site-header .brand-logo {
    width: 190px;
    height: 52px;
  }
}

/* Preserve the logo PNG alpha over the hero and glass navigation. */
.site-header .brand-logo {
  background: transparent;
}

/* Tight alpha bounds and the CTA blue, with the original logo proportions. */
.site-header .brand-logo {
  height: auto;
  aspect-ratio: 1428 / 354;
  object-fit: contain;
  background: transparent;
}

/* Keep the portfolio introduction and work categories readable. */
#top .hero-profile-intro {
  display: block;
}

/* PC用 Page Top：フェード表示・右下固定・フッター直前で停止 */
.page-top {
  display: none;
  position: fixed;
  right: 28px;
  bottom: var(--page-top-bottom, 28px);
  z-index: 19;
  width: 76px;
  height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #142b45;
  border-radius: 50%;
  background: #142b45;
  color: #fff;
  box-shadow: 0 6px 22px rgb(20 43 69 / 14%);
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + var(--page-top-bottom, 28px) + 8px));
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.55s;
}
.page-top svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}
.page-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}
@media (min-width: 901px) {
  .page-top { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .page-top, .page-top.is-visible { transform: none; transition: none; }
}

/* Keep the hit area still while only the visible face slides in. */
.page-top,.page-top:hover{background:transparent;border:0;box-shadow:none;transform:none;transition:visibility 0s linear .55s}
.page-top.is-visible{transform:none;transition-delay:0s}
.page-top-face{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #142b45;border-radius:50%;background:#142b45;box-shadow:0 6px 22px rgb(20 43 69 / 14%);pointer-events:none;transform:translateY(calc(100% + var(--page-top-bottom,28px) + 8px));transition:transform .55s cubic-bezier(.22,.61,.36,1)}
.page-top.is-visible .page-top-face{transform:none}
.page-top:hover .page-top-face{background:var(--accent);border-color:var(--accent)}
@media(prefers-reduced-motion:reduce){.page-top,.page-top-face{transition:none;transform:none}}

/* A small MENU caption below the mobile hamburger icon. */
@media (max-width: 640px) {
  .site-header .menu-btn { flex-direction: column; gap: 2px; }
  .site-header .menu-icon { display: block; font-size: 36px; font-weight: 300; line-height: 32px; }
  .site-header .menu-label { display: block; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; line-height: 10px; letter-spacing: .1em; }
  .site-header .menu-btn[aria-expanded='true'] .menu-label { display: none; }
  .site-header .menu-btn[aria-expanded='true'] .menu-icon { line-height: 36px; }
}

/* Exact matching width for the three lines and MENU lettering. */
@media (max-width: 640px) {
  .site-header .menu-btn[aria-expanded='false'] .menu-icon { position: relative; width: 30px; height: 28px; flex: 0 0 28px; font-size: 0; }
  .site-header .menu-label { width: 30px; height: 11px; line-height: 11px; letter-spacing: 0; }
  .site-header .menu-label svg { display: block; width: 30px; height: 11px; overflow: visible; }
  .site-header .menu-label text { font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0; fill: currentColor; }
}

/* Three identical rectangles avoid shadow rasterization differences. */
@media (max-width: 640px) {
  .site-header .menu-lines { display: block; width: 30px; height: 28px; }
  .site-header .menu-close { display: none; font-size: 36px; font-weight: 300; line-height: 36px; }
  .site-header .menu-btn[aria-expanded='true'] .menu-lines { display: none; }
  .site-header .menu-btn[aria-expanded='true'] .menu-close { display: block; }
}

/* Align the mobile MENU caption with the bottom of the logo artwork. */
@media (max-width: 640px) {
  .site-header .header-inner { align-items: flex-end; padding-top: 12px; padding-bottom: 12px; }
  .site-header .menu-btn { align-self: flex-end; justify-content: flex-end; }
  .site-header .menu-label { height: 9px; line-height: 9px; }
  .site-header .menu-label svg { height: 9px; }
  .site-header .menu-btn[aria-expanded='true'] { justify-content: center; }
}

/* The full logo rectangle is one stable, clickable link. */
.site-header .brand {
  position: relative;
  display: block;
  width: 240px;
  aspect-ratio: 1428 / 354;
  flex: 0 0 auto;
  cursor: pointer;
  touch-action: manipulation;
}
.site-header .brand::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.site-header .brand-logo { width: 100%; height: 100%; pointer-events: none; user-select: none; }
@media (min-width: 641px) and (max-width: 900px) { .site-header .brand { width: 210px; } }
@media (max-width: 640px) { .site-header .brand { width: 190px; } }

/* Unified portfolio palette: clear blue actions and readable secondary text. */
:root {
  --accent: #1e6fac;
  --accent-hover: #175787;
  --text-secondary: #586e7e;
  --blue: var(--accent);
  --muted: var(--text-secondary);
}

.hero .eyebrow {
  color: var(--accent);
}

.profile-reading,
.profile-section-number,
.flow-editorial-number,
.flow-editorial-title > span {
  color: var(--text-secondary);
}

/* Center the FV scroll guide without changing its entrance or line animation. */
#top .hero-bottom {
  left: calc(50% - 10px);
  right: auto;
}

/* Keep the horizontal SCROLL label centered above the animated line. */
#top .hero-bottom .hero-scroll-label {
  writing-mode: horizontal-tb;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
}

/* Align the end of the scroll line with the bottom edge of the FV image. */
#top .hero-bottom {
  bottom: 0;
}
#top .hero-bottom .hero-scroll {
  justify-content: flex-end;
}

/* A shorter scroll guide, still anchored to the FV bottom edge. */
#top .hero-bottom .hero-scroll-line {
  height: 40px;
  flex-basis: 40px;
}
@media (max-width: 640px) {
  #top .hero-bottom .hero-scroll-line {
    height: 30px;
    flex-basis: 30px;
  }
}

/* Invert Page Top only while it overlaps the THANK YOU section. */
.page-top.is-on-contact .page-top-face {
  background: #ffffff;
  color: #142b45;
  border: 1px solid #b7c9d7;
  box-shadow: 0 4px 18px rgb(10 30 48 / 20%);
}
.page-top.is-on-contact:hover .page-top-face {
  background: var(--accent);
  color: #ffffff;
  border-color: #ffffff;
}




/* Highlight the newest portfolio work with a red New badge. */
.tag.work-new {
  background: #c7353f;
  color: #ffffff;
  border: 1px solid #c7353f;
  border-radius: 999px;
  padding: 3px 11px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* DESIGN PROCESS: four equal cards, two on tablets, one on phones. */
#flow > .wrap {
  max-width: 1240px;
}
#flow .flow-editorial-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
  margin: 0;
  border: 0;
}
#flow .flow-editorial-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid #d4dfe7;
  border-top: 3px solid var(--accent);
  border-radius: 12px;
}
#flow .flow-editorial-number {
  align-self: flex-start;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}
#flow .flow-editorial-title {
  display: flex;
  align-items: center;
  min-height: 66px;
  margin-bottom: 14px;
}
#flow .flow-editorial-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  white-space: normal;
  overflow-wrap: break-word;
}
#flow .flow-editorial-row > p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
}
@media (max-width: 1000px) {
  #flow .flow-editorial-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #flow .flow-editorial-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #flow .flow-editorial-row {
    padding: 24px;
  }
  #flow .flow-editorial-number {
    margin-bottom: 16px;
    font-size: 30px;
  }
  #flow .flow-editorial-title {
    min-height: 0;
    margin-bottom: 12px;
  }
  #flow .flow-editorial-row > p {
    font-size: 14px;
  }
}

/* Frame each DESIGN STUDIES card with a clear, subtle outline. */
#services .service {
  border: 1px solid #b8c9d6;
  border-radius: 12px;
  padding: 28px 24px;
  background: #ffffff;
}
@media (max-width: 640px) {
  #services .service {
    padding: 24px;
  }
}

/* Soft blue-gray PROCESS cards with navy numbered badges. */
:root {
  --footer-navy: #123149;
}
.footer {
  background: var(--footer-navy);
}
#flow .flow-editorial-row {
  background: #eef3f6;
  border: 1px solid #cbd9e2;
  color: #203b50;
}
#flow .flow-editorial-title h3 {
  color: #18364d;
}
#flow .flow-editorial-row > p {
  color: #405a6c;
}
#flow .flow-editorial-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid #234962;
  border-radius: 50%;
  background: #234962;
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

/* Keep all step headings consistent and fit the longest title on one line. */
#flow .flow-editorial-row {
  container-type: inline-size;
  padding-inline: 18px;
}
#flow .flow-editorial-title h3 {
  font-size: min(22px, 8.2cqi);
  letter-spacing: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  #flow .flow-editorial-row {
    padding-inline: 24px;
  }
}

/* Give the slightly larger step headings enough horizontal room. */
#flow > .wrap {
  max-width: 1320px;
}
#flow .flow-editorial-list {
  gap: 16px;
}
#flow .flow-editorial-row {
  padding-inline: 16px;
}
@media (max-width: 640px) {
  #flow .flow-editorial-row {
    padding-inline: 24px;
  }
}

/* Reverse the header action against the dark THANK YOU background. */
.site-header.is-dark .nav .nav-contact {
  background: #ffffff;
  color: var(--accent);
  border-color: #ffffff;
}
.site-header.is-dark .nav .nav-contact:hover {
  background: #e5eef4;
  color: var(--accent);
  border-color: #e5eef4;
}

/* Match the THANK YOU header band to the section without transparency. */
.site-header[data-section='contact'] {
  background: var(--header-solid, #173c59);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Accessible Instagram logo links in the profile. */
.profile-instagram {
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
}
.instagram-icon {
  display: block;
  width: 30px;
  height: 30px;
}
.instagram-icon-inline {
  display: inline-block;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  margin-right: 4px;
}
.profile-instagram:hover {
  background: #e7eff5;
}

/* Color logos for the profile contact tools, with the email address retained. */
.profile-details .profile-tool-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 4px 0 12px;
}
.profile-details .profile-chatwork-logo {
  display: block;
  width: 112px;
  height: auto;
  flex: 0 0 auto;
}
.profile-details .profile-gmail-logo {
  display: block;
  width: 76px;
  height: auto;
  flex: 0 0 auto;
}
.profile-details .profile-gmail a {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Color logos and readable labels for software, skills, and Google tools. */
.profile-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.profile-tool-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1.6;
}
.profile-tool-list .skill-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}
.profile-tool-list .skill-logo img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.profile-tool-list .skill-logo-chatgpt {
  background: #10a37f;
  border-radius: 7px;
}
.profile-tool-list .skill-logo-chatgpt img {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
}
@media (min-width: 641px) and (max-width: 1150px) {
  .profile-tool-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 360px) {
  .profile-tool-list {
    gap: 12px 10px;
  }
}

/* Allow a longer dissolve from the completed signature into the FV. */
.opening-active .opening-overlay {
  transition: opacity 1.5s ease;
}
.opening-active .hero-background {
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.opening-active .site-header,
.opening-active .hero-bottom {
  transition: opacity 0.9s ease;
}
.opening-active.opening-copy .hero-copy > .eyebrow,
.opening-active.opening-copy .hero-title,
.opening-active.opening-copy .hero-copy > p,
.opening-active.opening-copy .hero-copy > .actions {
  animation: opening-copy-up 0.9s ease both;
}

/* Separate portfolio works clearly in the single-column phone layout. */
@media (max-width: 640px) {
  #works .work-card:not(:last-child) {
    padding-bottom: 32px;
    border-bottom: 1px solid #b8c9d6;
  }
}

/* Pair the open-menu cross with a CLOSE caption at the same baseline as MENU. */
.site-header .menu-label-close {
  display: none;
}
@media (max-width: 640px) {
  .site-header .menu-btn[aria-expanded='false'] .menu-label-close {
    display: none;
  }
  .site-header .menu-btn[aria-expanded='true'] .menu-label-close {
    display: block;
  }
  .site-header .menu-btn[aria-expanded='true'] {
    justify-content: flex-end;
  }
  .site-header .menu-btn[aria-expanded='true'] .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    flex: 0 0 28px;
    line-height: 28px;
  }
  .site-header .menu-btn[aria-expanded='true'] .menu-close {
    line-height: 28px;
  }
}
