:root {
  --blue: #1476a3;
  --deep: #0d5679;
  --pale: #eaf5fa;
  --sky: #dff2fb;
  --lime: #b3bb1d;
  --ink: #1c3441;
  --header-ink: #0d5679;
  --header-muted: #55727f;
  --muted: #687d87;
  --header-h: 92px;
  --content-max: 1240px;
  --section-pad: clamp(24px, 5vw, 86px);
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

main {
  display: block;
}

/* =============================
   Common header and footer
   ============================= */

.header,
.subHeader {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 80px);
  height: var(--header-h);
}

.header {
  border-bottom: 1px solid rgba(20, 118, 163, 0.16);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.subHeader {
  inset: 0 0 auto 0;
  background: rgba(20, 118, 163, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--header-ink);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.brand small {
  margin-top: 4px;
  font-size: 9px;
  color: #6b7d84;
  letter-spacing: 0.08em;
}

.subFooter .brand small,
.subFooter > p {
  color: rgba(232, 248, 255, 0.9);
}

.subHeader .brand small {
  color: var(--header-muted);
}

.brandLogo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: none;
}

.instagramLink {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin-left: 16px;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.instagramLink:hover,
.instagramLink:focus-visible {
  transform: translateY(-2px);
}

.instagramLink svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.instagramLink .instagramDot {
  fill: currentColor;
  stroke: none;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 35px;
  font-size: 12px;
  font-weight: 600;
  color: #39515d;
}

.subHeader nav {
  color: var(--header-ink);
}

nav a {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.subHeader nav a:hover,
.subHeader nav a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

footer {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 22px;
  padding: 34px clamp(20px, 5vw, 80px);
  text-align: center;
  background: #fff;
}

.subFooter {
  min-height: 200px;
  background: rgba(20, 118, 163, 0.86);
  color: #fff;
}

.footerBrand {
  margin: 0;
}

.footerBrand .brandLogo {
  width: 50px;
  height: 50px;
}

footer > p {
  margin: 0;
  font-size: 9px;
  color: #78909a;
  letter-spacing: 0.1em;
}

.pageTopButton {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: rgba(20, 118, 163, 0.9);
  color: #fff;
  box-shadow: 0 10px 30px rgba(13, 86, 121, 0.2);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.pageTopButton:hover,
.pageTopButton:focus-visible {
  background: var(--deep);
  transform: translateY(-4px);
}

.pageTopButton span {
  font-size: 20px;
  line-height: 1;
}

.pageTopButton small {
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* =============================
   Top page sections
   ============================= */

.homePage {
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 780px;
  height: 94vh;
  overflow: hidden;
  background: linear-gradient(180deg, #f6fcff 0%, #e7f5fb 66%, #fff 100%);
  display: flex;
  align-items: center;
  padding-top: 92px;
}

.sky {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.95) 0 5%, transparent 18%),
    linear-gradient(135deg, transparent 0 35%, rgba(185, 225, 240, 0.25) 35% 52%, transparent 52%);
}

.sky::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  right: -180px;
  top: -210px;
  border: 1px solid rgba(20, 118, 163, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(20, 118, 163, 0.04), 0 0 0 160px rgba(20, 118, 163, 0.02);
}

.heroInner {
  position: relative;
  z-index: 2;
  width: min(90%, 1240px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 120px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--blue);
  font-weight: 700;
}

.hero h1 {
  margin: 25px 0;
  font-size: clamp(54px, 6.7vw, 98px);
  line-height: 1.12;
  letter-spacing: -0.055em;
  color: #173b4d;
}

.hero h1 span {
  display: inline-block;
  position: relative;
  color: var(--blue);
}

.hero h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 0;
  bottom: -7px;
  height: 8px;
  background: rgba(179, 187, 29, 0.46);
  border-radius: 50%;
}

.heroCopy > p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #526f7c;
}

.cityscape {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 400px;
  background: url("../images/cityscape.png") center bottom / 100% 100% no-repeat;
  mix-blend-mode: multiply;
}

.scroll {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 80px);
  bottom: 26px;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.scroll span {
  margin-left: 12px;
  display: inline-block;
}

.section {
  max-width: 1440px;
  margin: auto;
  padding: 120px clamp(24px, 7vw, 100px);
}

.sectionTitle {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 25px;
  border-bottom: 1px solid #cddde4;
}

.sectionTitle p {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--blue);
  font-weight: 700;
}

.sectionTitle h2 {
  margin: 0;
  font-size: clamp(28px, 2vw, 34px);
}

.about {
  position: relative;
  overflow: hidden;
  min-height: 555px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.aboutArchitecture {
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: -1px;
  height: 64%;
  background: url("../images/about-buildings.png") center bottom / contain no-repeat;
  opacity: 0.24;
  pointer-events: none;
}

.aboutBody {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 48px;
}

.aboutCopy {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 34px;
}

.aboutBody > div > p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 2.15;
  color: #526b77;
}

.area {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #d1e0e6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--blue);
  font-weight: 700;
}

.area b {
  font-size: 16px;
}

.services {
  max-width: none;
  background: #f1f8fb;
  padding-left: max(7vw, calc((100vw - 1240px) / 2));
  padding-right: max(7vw, calc((100vw - 1240px) / 2));
}

.serviceIntro {
  display: block;
  padding: 48px 0 0;
}

.serviceIntro p,
.worksLead p {
  max-width: 620px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
  color: #607782;
}

.serviceIntro p {
  max-width: none;
  word-break: auto-phrase;
  text-wrap: pretty;
  text-wrap: balance;
}

.serviceList {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  border-top: 0;
}

.serviceList article {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 390px;
  padding: 26px 26px 28px;
  border: 1px solid #c9e0ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 98, 130, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.serviceList article:nth-child(4) {
  grid-column: 2 / span 2;
}

.serviceList article:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(15, 98, 130, 0.1);
}

.serviceVisual {
  position: relative;
  height: 180px;
  margin: -6px -4px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8fdff, #e8f5fa);
  border-radius: 4px;
  color: var(--blue);
  overflow: hidden;
}

.serviceVisual::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -35px;
  top: -38px;
  border: 1px solid rgba(20, 118, 163, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(20, 118, 163, 0.03);
}

.serviceVisual span {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 13px;
  font: italic 18px Georgia, serif;
  color: var(--blue);
}

.serviceVisual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.serviceList article:hover .serviceVisual img {
  transform: scale(1.035);
}

.serviceName small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--blue);
  font-weight: 700;
}

.serviceName h3 {
  margin: 7px 0 14px;
  font-size: 18px;
  line-height: 1.5;
}

.serviceList article > p {
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 1px solid #dbe9ee;
  font-size: 12px;
  line-height: 1.9;
  color: #627985;
}

.worksLead {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 55px 0 35px;
  text-align: center;
}

.worksLead h3 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.worksFeature {
  max-width: 960px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d3e7ef;
  border-radius: 6px;
  background: linear-gradient(145deg, #f8fdff, #e8f5fa);
  box-shadow: 0 16px 42px rgba(15, 98, 130, 0.08);
}

.worksFeature img {
  width: 100%;
  height: auto;
}

.worksLink {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worksLink a {
  min-width: 270px;
  padding: 18px 24px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.worksLink a:hover,
.worksLink a:focus-visible {
  background: var(--deep);
  transform: translateY(-2px);
}

.worksLink a span {
  transition: transform 0.25s ease;
}

.worksLink a:hover span,
.worksLink a:focus-visible span {
  transform: translateX(5px);
}

.company {
  position: relative;
  max-width: none;
  background: var(--blue);
  color: #fff;
  padding-left: max(7vw, calc((100vw - 1240px) / 2));
  padding-right: max(7vw, calc((100vw - 1240px) / 2));
  overflow: hidden;
}

.company::after {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  left: -260px;
  bottom: -330px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.03), 0 0 0 160px rgba(255, 255, 255, 0.02);
}

.company .sectionTitle {
  border-color: rgba(255, 255, 255, 0.45);
}

.company .sectionTitle p {
  color: #c5ecff;
}

.companyBody {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 8vw;
  padding-top: 65px;
}

.companyMessage p {
  margin: 0 0 25px;
  font-size: 34px;
  line-height: 1.55;
  font-weight: 700;
}

.companyMessage small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #bce3f4;
}

.company dl {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.company dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 21px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.company dt {
  font-size: 11px;
  color: #bfe4f4;
}

.company dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

/* =============================
   Sub pages
   ============================= */

.subHeader {
  position: absolute;
  inset: 0 0 auto 0;
  background: transparent;
  border-bottom: 0;
  color: var(--header-ink);
}

.subHero {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  padding: 92px clamp(24px, 7vw, 100px) 0;
  background: linear-gradient(180deg, #dff4ff, #f3fbfe);
  overflow: hidden;
}

.subCloud {
  position: absolute;
  inset: 0;
  background: url("../images/blue-sky.png") center 58% / cover no-repeat;
  opacity: 0.72;
}

.subCloud::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 40%, rgba(255, 255, 255, 0.35) 75%),
    linear-gradient(180deg, transparent 0%, rgba(247, 252, 254, 0.4) 100%);
}

.subHero > div:nth-child(2) {
  position: relative;
  z-index: 2;
}

.subHero p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--blue);
  font-weight: 700;
}

.subHero h1 {
  margin: 12px 0;
  font-size: clamp(48px, 5.5vw, 76px);
  letter-spacing: -0.05em;
  color: #163d50;
}

.subHero span {
  font-size: 14px;
  color: #55727f;
}

.subCity {
  position: absolute;
  right: -30px;
  bottom: -25px;
  width: 54%;
  height: 205px;
  background: url("../images/cityscape.png") right bottom / auto 100% no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.75;
}

.breadcrumb {
  padding: 20px clamp(24px, 7vw, 100px) 0;
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: #78909a;
}

.breadcrumb b {
  color: var(--blue);
}

.subSection {
  padding: 100px clamp(24px, 7vw, 100px);
}

.subSection.pale {
  max-width: none;
  background: #f2f8fb;
}

.subHeading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid #cbdde5;
  padding-top: 26px;
  margin-bottom: 65px;
}

.subHeading > p {
  margin: 5px 0;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.24em;
  font-weight: 700;
}

.subHeading h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.4;
  letter-spacing: -0.04em;
}

.messageGrid {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 8vw;
}

.messageCard {
  min-height: 360px;
  padding: 45px;
  background: linear-gradient(145deg, var(--blue), #0c5b7f);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.messageCard::after {
  content: "01";
  position: absolute;
  right: -12px;
  bottom: -45px;
  font: 700 190px/1 Georgia, serif;
  color: rgba(255, 255, 255, 0.08);
}

.messageCard span {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.messageCard h3 {
  margin-top: 95px;
  font-size: 30px;
  line-height: 1.6;
}

.longText p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 2.2;
  color: #536f7b;
}

.signature {
  text-align: right;
  padding-top: 25px;
}

.signature strong {
  font-size: 19px;
  margin-left: 12px;
}

.profileTable {
  --profile-indent: clamp(0px, calc(100% - 880px), 200px);
  width: min(1160px, calc(100% - var(--profile-indent)));
  margin-left: var(--profile-indent);
  border-top: 2px solid var(--blue);
}

.profileTable div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 23px 8px;
  border-bottom: 1px solid #c9dce4;
}

.profileTable dt {
  font-size: 12px;
  color: var(--blue);
  font-weight: 700;
}

.profileTable dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

.detailServices {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.detailServices article {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  padding: 28px;
  border: 1px solid #cde0e8;
  background: #fff;
}

.detailServices article:nth-child(even) {
  background: #f3f9fb;
}

.detailVisual {
  position: relative;
  height: 260px;
  background: linear-gradient(145deg, #edf9fd, #d6edf6);
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.detailVisual > span {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--blue);
  font: italic 20px Georgia, serif;
}

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

.detailServices article > div:last-child {
  padding: 20px 20px 10px;
}

.detailServices small {
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.22em;
  font-weight: 700;
}

.detailServices h3 {
  margin: 12px 0 20px;
  font-size: 28px;
}

.detailServices p {
  font-size: 14px;
  line-height: 2;
  color: #59727d;
}

.detailServices dl {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid #d4e3e9;
  display: grid;
  grid-template-columns: 75px 1fr;
  font-size: 12px;
}

.detailServices dt {
  color: var(--blue);
  font-weight: 700;
}

.detailServices dd {
  margin: 0;
  color: #617985;
}

.projectIntro {
  max-width: 650px;
  margin: -20px 0 55px auto;
  font-size: 14px;
  line-height: 2;
  color: #5d7580;
}

.projectDetails {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.projectDetails article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: start;
}

.projectMeta {
  padding-top: 15px;
  border-top: 2px solid var(--blue);
}

.projectMeta small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--blue);
}

.projectMeta dl {
  margin: 22px 0 0;
}

.projectMeta dl div {
  padding: 12px 0;
  border-top: 1px solid #d7e5ea;
}

.projectMeta dt {
  margin-bottom: 5px;
  font-size: 10px;
  color: #748a94;
}

.projectMeta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.detailBA {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 360px;
}

.detailBA > div {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(145deg, #eaf2f5, #cedfe6);
  color: #7d949e;
}

.detailBA > div:last-child {
  background: linear-gradient(145deg, #e7f6fc, #b9dfef);
}

.detailBA span {
  position: absolute;
  left: 16px;
  top: 15px;
  padding: 7px 10px;
  background: #fff;
  color: var(--blue);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.detailBA b {
  font-size: 13px;
  line-height: 1.8;
}

/* =============================
   Intro animation styles
   ============================= */

.introSeen .siteIntro {
  display: none !important;
}

.introSeen .homePage.introPending .header {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.introLocked {
  overflow: hidden;
}

.siteIntro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: transparent;
  color: #fff;
  animation: introScreen 3.55s cubic-bezier(0.7, 0, 0.25, 1) forwards;
}

.siteIntro::before,
.siteIntro::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--blue);
  animation: introCurtain 1s cubic-bezier(0.75, 0, 0.25, 1) 2.58s forwards;
}

.siteIntro::before {
  left: 0;
  transform-origin: left center;
}

.siteIntro::after {
  right: 0;
  transform-origin: right center;
}

.introNumber {
  position: relative;
  z-index: 2;
  width: 280px;
  height: 260px;
  margin: auto;
  font: 700 230px/1 Arial, sans-serif;
  letter-spacing: -0.08em;
  animation: introMarkExit 0.45s ease 2.32s forwards;
}

.introNumber > span:not(.introParticles) {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.introZero {
  animation: zeroToOne 1.7s cubic-bezier(0.65, 0, 0.2, 1) 0.18s forwards;
}

.introEcho {
  opacity: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75);
  animation: zeroEcho 1.25s ease-out 0.35s forwards;
}

.introEcho.echoTwo {
  animation-delay: 0.58s;
}

.introSweep {
  position: absolute;
  inset: 18px 118px !important;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 28px #fff;
  opacity: 0;
  transform: rotate(38deg) scaleY(0.1);
  animation: zeroSweep 0.9s cubic-bezier(0.25, 0.75, 0.2, 1) 0.92s forwards;
}

.introParticles {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
}

.introParticles i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #fff;
  opacity: 0;
  animation: particleBurst 0.78s cubic-bezier(0.15, 0.7, 0.2, 1) 1.04s forwards;
}

.introParticles i:nth-child(1) { --tx: -112px; --ty: -72px; }
.introParticles i:nth-child(2) { --tx: 110px; --ty: -62px; animation-delay: 1.11s; }
.introParticles i:nth-child(3) { --tx: -128px; --ty: 28px; animation-delay: 1.16s; }
.introParticles i:nth-child(4) { --tx: 124px; --ty: 38px; animation-delay: 1.08s; }
.introParticles i:nth-child(5) { --tx: -62px; --ty: 105px; animation-delay: 1.14s; }
.introParticles i:nth-child(6) { --tx: 72px; --ty: 108px; animation-delay: 1.2s; }

.introOne {
  opacity: 0;
  transform: translateY(26px) scale(0.72);
  filter: blur(7px);
  animation: oneArrive 1.05s cubic-bezier(0.15, 0.85, 0.2, 1) 1.42s forwards;
}

.siteIntro p {
  position: relative;
  z-index: 2;
  margin: 18px 0 0;
  font-size: 14px;
  letter-spacing: 0.42em;
  font-weight: 700;
  opacity: 0;
  animation: introLabel 0.65s ease 1.9s forwards, introMarkExit 0.45s ease 2.32s forwards;
}

.homePage.introPending .header,
.homePage.introPlaying .header {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
}

.homePage.introPlaying .hero {
  padding-top: 0;
}

.homePage .hero .eyebrow,
.homePage .hero h1,
.homePage .heroCopy > p:last-child,
.homePage .cityscape {
  animation: none;
  opacity: 0;
}

.homePage.introDone .cityscape {
  animation: cityBuild 1.45s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.homePage.introDone .hero .eyebrow {
  opacity: 1;
  animation: copyFromSide 0.7s ease 0.12s both;
}

.homePage.introDone .hero h1 {
  opacity: 1;
  animation: copyFromSide 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) 0.28s both;
}

.homePage.introDone .heroCopy > p:last-child {
  opacity: 1;
  animation: copyFromSide 0.75s ease 0.52s both;
}

.homePage.introDone .header {
  opacity: 0;
  transform: translateY(-100%);
  animation: headerArrive 0.72s cubic-bezier(0.2, 0.75, 0.25, 1) 0.12s both;
}

.homePage.introReturning .hero .eyebrow,
.homePage.introReturning .hero h1,
.homePage.introReturning .heroCopy > p:last-child {
  opacity: 1;
  animation: heroRise 0.75s var(--ease-out) both;
}

.homePage.introReturning .hero h1 {
  animation-delay: 0.12s;
  animation-duration: 0.85s;
}

.homePage.introReturning .heroCopy > p:last-child {
  animation-delay: 0.24s;
  animation-duration: 0.75s;
}

.homePage.introReturning .cityscape {
  animation: cityRise 1.05s cubic-bezier(0.2, 0.75, 0.25, 1) 0.12s both;
}

.homePage.introSeen .hero .eyebrow,
.homePage.introSeen .hero h1,
.homePage.introSeen .heroCopy > p:last-child {
  opacity: 1;
}

/* Motion helpers */

@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageLeave {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes cityRise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes skyFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 8px, 0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes zeroToOne {
  0%, 34% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); }
  58% { opacity: 1; transform: scale(1.08) rotate(-9deg); filter: blur(0); }
  82%, 100% { opacity: 0; transform: scale(0.32, 0.92) rotate(-28deg); filter: blur(5px); }
}

@keyframes zeroEcho {
  0% { opacity: 0; transform: scale(0.82); }
  35% { opacity: 0.55; }
  100% { opacity: 0; transform: scale(1.45) rotate(18deg); }
}

@keyframes zeroSweep {
  0% { opacity: 0; transform: rotate(38deg) scaleY(0.1); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(0) scaleY(1); }
}

@keyframes particleBurst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2); }
  25% { opacity: 1; }
  68% { opacity: 0.9; transform: translate(var(--tx), var(--ty)) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(0.2); }
}

@keyframes oneArrive {
  0% { opacity: 0; transform: translateY(26px) scale(0.72); filter: blur(7px); }
  55% { opacity: 1; transform: translateY(-4px) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes introLabel {
  to { opacity: 0.82; }
}

@keyframes introMarkExit {
  to { opacity: 0; transform: scale(0.92); }
}

@keyframes introCurtain {
  to { transform: scaleX(0); }
}

@keyframes introScreen {
  0%, 82% { visibility: visible; }
  99% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes cityBuild {
  0% { opacity: 0; clip-path: inset(100% 0 0); transform: translateY(34px); }
  35% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0); transform: translateY(0); }
}

@keyframes copyFromSide {
  from { opacity: 0; transform: translateX(-44px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes headerArrive {
  from { opacity: 0; visibility: hidden; transform: translateY(-100%); }
  to { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* =============================
   Mobile nav
   ============================= */

.mobileMenu {
  display: none;
  margin-left: auto;
}

.menuButton {
  position: relative;
  z-index: 52;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menuButton span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.subHeader .menuButton span {
  background: var(--header-ink);
}

.menuBackdrop,
.menuPanel {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menuBackdrop {
  z-index: 49;
  inset: 0;
  border: 0;
  background: rgba(11, 47, 63, 0.45);
  backdrop-filter: blur(3px);
}

.menuPanel {
  z-index: 50;
  top: 0;
  right: 0;
  width: min(84vw, 360px);
  height: 100dvh;
  padding: 104px 32px 40px;
  background: linear-gradient(160deg, #f7fcff, #e6f4fa);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.25, 1), visibility 0.35s ease, opacity 0.35s ease;
  box-shadow: -18px 0 55px rgba(13, 86, 121, 0.15);
}

.menuPanel > p {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.28em;
  font-weight: 700;
}

.menuPanel nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.menuPanel nav a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  padding: 20px 2px;
  border-bottom: 1px solid #bcd7e2;
}

.menuPanel nav small {
  grid-column: 1;
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.menuPanel nav span {
  grid-column: 1;
  font-size: 17px;
  font-weight: 600;
}

.menuPanel nav b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--blue);
  font-size: 18px;
}

.mobileMenu.isOpen .menuBackdrop,
.mobileMenu.isOpen .menuPanel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobileMenu.isOpen .menuPanel {
  transform: translateX(0);
}

.mobileMenu.isOpen .menuButton span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobileMenu.isOpen .menuButton span:nth-child(2) {
  opacity: 0;
}

.mobileMenu.isOpen .menuButton span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================
   Responsive rules
   ============================= */

@media (min-width: 1600px) {
  .cityscape {
    height: 500px;
    background-size: cover;
    background-position: center bottom;
  }
}

@media (max-width: 800px) {
  .header,
  .subHeader {
    height: 76px;
    padding: 0 20px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brandLogo {
    width: 46px;
    height: 46px;
  }

  .instagramLink {
    width: 36px;
    height: 36px;
    margin-left: auto;
  }

  .mobileMenu {
    margin-left: 8px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 620px;
    height: auto;
    padding-top: 76px;
  }

  .heroInner {
    padding-bottom: 200px;
  }

  .hero h1 {
    font-size: clamp(32px, 10.2vw, 52px);
  }

  .cityscape {
    height: 380px;
    bottom: 16px;
    background-size: auto 125%;
    background-position: center bottom;
    filter: opacity(0.22);
  }

  .section {
    padding: 85px 24px;
  }

  .about {
    min-height: 0;
    padding-top: 70px;
    padding-bottom: 190px;
  }

  .aboutArchitecture {
    left: -30%;
    right: -30%;
    top: 0;
    bottom: 0;
    height: auto;
    background-position: right bottom;
    background-size: auto 62%;
    opacity: 0.12;
  }

  .sectionTitle {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .serviceList {
    grid-template-columns: 1fr;
  }

  .serviceList article,
  .serviceList article:nth-child(4) {
    grid-column: auto;
    min-height: 350px;
    padding: 22px;
  }

  .serviceVisual {
    height: 165px;
  }

  .worksLead {
    padding: 40px 0 26px;
  }

  .worksLead h3 {
    font-size: clamp(24px, 7.6vw, 40px);
  }

  .worksLink {
    margin-top: 24px;
  }

  .worksLink a {
    width: 100%;
    min-width: 0;
  }

  .companyBody {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .company dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .companyMessage p {
    font-size: 28px;
  }

  footer {
    min-height: 190px;
    padding: 36px 24px;
    align-items: center;
    gap: 20px;
  }

  .pageTopButton {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
  }

  .pageTopButton span {
    font-size: 17px;
  }

  .pageTopButton small {
    font-size: 7px;
  }

  .subHero {
    height: 330px;
    padding: 76px 24px 0;
  }

  .subCity {
    width: 90%;
    height: 145px;
    opacity: 0.58;
  }

  .breadcrumb {
    padding: 18px 24px 0;
  }

  .subSection {
    padding: 75px 24px;
  }

  .subHeading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 45px;
  }

  .messageGrid,
  .detailServices article,
  .projectDetails article {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .messageCard {
    min-height: 300px;
  }

  .messageCard h3 {
    margin-top: 65px;
    font-size: 26px;
  }

  .profileTable div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .detailVisual {
    height: 220px;
  }

  .detailServices article > div:last-child {
    padding: 12px 8px 15px;
  }

  .detailServices h3 {
    font-size: 22px;
  }

  .projectIntro {
    margin-top: -10px;
  }

  .projectDetails {
    gap: 55px;
  }

  .detailBA {
    height: 230px;
  }

  .mobileMenu {
    display: block;
  }

  .header > .mobileMenu,
  .subHeader > .mobileMenu {
    display: block;
  }

  .menuPanel nav {
    display: flex;
  }

  .header > .mobileMenu .menuButton,
  .subHeader > .mobileMenu .menuButton {
    display: block;
  }

  .introNumber {
    width: 190px;
    height: 185px;
    font-size: 162px;
  }

  .introSweep {
    inset: 14px 78px !important;
  }

  .introParticles i:nth-child(1) { --tx: -78px; --ty: -54px; }
  .introParticles i:nth-child(2) { --tx: 78px; --ty: -48px; }
  .introParticles i:nth-child(3) { --tx: -88px; --ty: 24px; }
  .introParticles i:nth-child(4) { --tx: 88px; --ty: 30px; }
  .introParticles i:nth-child(5) { --tx: -48px; --ty: 76px; }
  .introParticles i:nth-child(6) { --tx: 52px; --ty: 78px; }

  .siteIntro p {
    font-size: 10px;
    letter-spacing: 0.32em;
  }

  .homePage.introPlaying .hero {
    min-height: 100dvh;
  }
}

@media (max-width: 800px) and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

  .siteIntro {
    display: none;
  }

  .homePage .hero .eyebrow,
  .homePage .hero h1,
  .homePage .heroCopy > p:last-child,
  .homePage .cityscape {
    opacity: 1;
    animation: none;
    transform: none;
    clip-path: none;
  }
}

/* Additional visual treatment */

.hero * {
  will-change: transform, opacity;
}

.eyebrow,
.hero h1,
.heroCopy > p:last-child,
.cityscape,
.scroll span {
  animation: heroRise 0.75s var(--ease-out) forwards;
}

.scroll span {
  animation-name: scrollBounce;
  animation-duration: 1.8s;
  animation-iteration-count: infinite;
}

.sky::after {
  animation: skyFloat 9s ease-in-out infinite;
}

.motionItem {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.85s cubic-bezier(0.2, 0.75, 0.25, 1);
  transition-delay: var(--motion-delay, 0ms);
}

.motionItem.isVisible {
  opacity: 1;
  transform: translateY(0);
}

main.pageLeaving {
  pointer-events: none;
  animation: pageLeave 0.22s ease forwards;
}

main.pageEntering {
  animation: pageEnter 0.48s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .motionItem {
    opacity: 1;
    transform: none;
    transition: none;
  }

  main.pageLeaving,
  main.pageEntering {
    animation: none;
  }

  .sky::after,
  .scroll span,
  .eyebrow,
  .hero h1,
  .heroCopy > p:last-child,
  .cityscape {
    animation: none;
    transform: none;
  }

  .homePage.introReturning .cityscape {
    animation: none;
  }

  .homePage.introReturning .hero .eyebrow,
  .homePage.introReturning .hero h1,
  .homePage.introReturning .heroCopy > p:last-child {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Subpage-specific top conditions */

.subHeader .menuButton span {
  background: var(--header-ink);
}

.subHeader .mobileMenu.isOpen .menuButton span {
  background: var(--deep);
}
