/* Public-facing design: original Bloom colors, architectural spacing, restrained motion. */
:root {
  --header-height: 100px;
  --page-gutter: max(7%, calc((100% - 1240px) / 2));
  --brand-green: #17382c;
  --brand-gray: #f0f2f1;
}

html { scroll-padding-top: calc(var(--header-height) + 24px); }
::selection { background: #b59c6a55; }
#header {
  position: fixed;
  height: var(--header-height);
  padding: 0 5%;
  z-index: 50;
  background: var(--brand-gray);
  border-bottom: 1px solid #17382c16;
  transition: box-shadow .3s ease;
}
#header.is-scrolled { box-shadow: 0 5px 24px #101d2912; }
#header .brand { width: 138px; height: 94px; }
#header .brand img { width: 164px; left: -13px; top: -21px; }
#header nav { gap: clamp(22px, 2.7vw, 42px); }
#header nav a {
  position: relative;
  font-size: .875rem;
  letter-spacing: .07em;
  white-space: nowrap;
  transition: color .25s ease;
}
#header nav a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#header nav a[aria-current="page"]::after,
#header nav a:hover::after { transform: scaleX(1); }
#header .nav-contact { padding: 14px 22px; border: 1px solid #17382c55; }
#header .nav-contact span { margin-left: 22px; }
#header .nav-contact:hover { background: var(--brand-green); color: #fff; }
#header .menu { display: none; }
.skip { z-index: 100; }

.home-page .hero {
  display: flex;
  align-items: center;
  min-height: 44rem;
  height: 100svh;
  max-height: 1080px;
  padding: calc(var(--header-height) + 5rem) var(--page-gutter) 9rem;
  overflow: hidden;
}
.hero .hero-image {
  object-position: center 58%;
  animation: bloom-pan 12s ease-out both;
}
.hero .hero-shade {
  background: linear-gradient(90deg, #081825bb 0%, #08182565 62%, #08182525 100%),
    linear-gradient(0deg, #081825bf, transparent 55%);
}
.hero .hero-content {
  position: relative;
  inset: auto;
  width: 100%;
  animation: bloom-arrive 1s .08s ease both;
}
.hero .eyebrow { font-size: .75rem; letter-spacing: .28em; color: #e3d5b9; margin-bottom: 32px; }


.hero .hero-sub {
  font-size: clamp(1.125rem, 1.75vw, 1.625rem);
  line-height: 2;
  letter-spacing: .12em;
  margin-top: 30px;
  color: #f0f2f3;
}
.hero .hero-bottom {
  bottom: 36px;
  left: var(--page-gutter);
  right: var(--page-gutter);
  padding-top: 26px;
  border-top: 1px solid #ffffff38;
  gap: 24px;
  font-size: .75rem;
  letter-spacing: .1em;
}
.hero .scroll { gap: 24px; font-size: .75rem; letter-spacing: .14em; min-height: 44px; }
.hero .hero-index { display: none; }

.section { padding: 116px var(--page-gutter); }
.section-label { margin-bottom: 64px; gap: 22px; font-size: .75rem; letter-spacing: .2em; }
.section-label .number { font-family: Georgia, serif; font-size: .9375rem; padding-right: 22px; color: #947b4d; }
.section h2 { font-size: clamp(2rem, 3.2vw, 3rem); letter-spacing: .035em; line-height: 1.65; }
.section-heading { margin-bottom: 58px; }
.philosophy { padding-top: 130px; padding-bottom: 130px; }
.philosophy-grid { grid-template-columns: 1fr 1.12fr; gap: 8%; }
.philosophy h2 { font-size: clamp(2rem, 3.35vw, 3.25rem); line-height: 1.8; letter-spacing: .025em; }
.philosophy h2 em { color: #8d7446; }
.philosophy .english-line {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  color: #7d8884;
  margin-top: 35px;
  padding-top: 28px;
  position: relative;
}
.philosophy .english-line::before { content: ''; position: absolute; top: 0; left: 0; height: 1px; width: 42px; background: #a68c59; }
.philosophy-copy { padding-top: 8px; }
.philosophy-copy p { font-size: 1rem; line-height: 2.25; color: #52605c; margin-bottom: 26px; }
.philosophy-copy p:last-of-type { color: #17382c; }
.text-link { font-size: .9375rem; max-width: 260px; padding: 18px 0; border-color: #aebcb4; transition: color .25s, border-color .25s; }
.text-link span { font-size: 1.375rem; transition: transform .25s ease; }
.text-link:hover { color: #80632f; border-color: #80632f; }
.text-link:hover span { transform: translate(3px, -3px); }

.business { background: #101f2c; color: #fff; }
.business .section-label { color: #dce3e7; }
.business .section-label .number { color: #d3bc90; border-color: #ffffff40; }
.business .section-heading { align-items: flex-end; margin-bottom: 64px; }
.business .section-heading p { font-size: 1rem; line-height: 2.1; max-width: 390px; color: #d0d9df; margin: 0 0 8px; }
.business-grid { gap: 30px; }
.business-grid article { min-width: 0; }
.business .image-wrap { aspect-ratio: 4 / 3; background: #263947; }
.business .image-wrap img { filter: saturate(.75); transition: transform .85s cubic-bezier(.2,.65,.3,1), filter .6s; }
.business .image-wrap span { font-size: 1.5rem; padding: 12px 18px; color: #e0caa0; background: #101f2c; }
.business .category { font-size: .75rem !important; color: #d6be91 !important; letter-spacing: .15em; margin: 28px 0 14px !important; }
.business-grid h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 400; line-height: 1.7; margin-bottom: 16px; }
.business-grid article > p:not(.category) { font-size: 1rem; line-height: 2; color: #cad4db; }

.projects { border-bottom: 0; }
.projects .section-heading { align-items: center; }
.projects .text-link { min-width: 215px; }
.project-image { aspect-ratio: 3 / 2; background: #e9efec; }
.project-image img { transition: transform .85s cubic-bezier(.2,.65,.3,1); }
.project-card .project-title-row { gap: 10px 14px; margin: 24px 0 14px; }
.project-card .project-title-row h3 { font-size: 1.375rem; font-weight: 400; letter-spacing: .025em; line-height: 1.65; }
.project-state { font-size: .875rem; padding: 4px 10px; line-height: 1.5; border-radius: 0; }
.project-state.ongoing { color: #31523e; background: #edf2ed; border-color: #cbd9cc; }
.project-state.sold { color: #55616a; background: #f0f2f3; border-color: #d9dfe2; }
.project-link-arrow { margin-left: auto; font-size: 1.375rem; transition: transform .25s; }
.project-card:hover .project-link-arrow { transform: translate(3px, -3px); }
.project-card > p { font-size: 1rem; color: #5b6962; line-height: 1.95; }
.project-card .legacy-label { font-size: .875rem; color: #65766b; border-top-color: #dce3de; padding-top: 16px; margin-top: 22px; }
.featured-track { margin-left: -34px; }
.featured-carousel .featured-slide { flex-basis: 47%; padding-left: 34px; min-width: 0; }
.featured-controls { margin-top: 36px; gap: 14px; }
.featured-controls [data-slot="carousel-previous"],
.featured-controls [data-slot="carousel-next"] { width: 50px; height: 50px; border: 1px solid #acbdb1; color: #17382c; transition: background .25s, color .25s; }
.featured-controls button:hover:not(:disabled) { background: #17382c; color: #fff; }
.featured-controls button:disabled { opacity: .3; cursor: default; }
.featured-carousel.single-project { max-width: 720px; }
.projects-empty { padding: 42px 0; color: #69776e; font-size: 1rem; line-height: 2; border-color: #dce3de; }
.projects-empty a { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 5px; }

.company { background: #f8f9f8; border-top: 1px solid #e5e9e6; }
.company-grid { grid-template-columns: .68fr 1.32fr; gap: 8%; }
.company-en { font-family: Georgia, serif; font-size: 1.125rem; letter-spacing: .02em; color: #7b8880; }
.company dl { border-top: 1px solid #17382c; }
.company dl > div { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 24px 0; font-size: 1rem; line-height: 2; border-bottom-color: #dce3de; }
.company dt { font-size: .875rem; color: #65776b; padding-top: 2px; }
.company dd { overflow-wrap: anywhere; color: #293e33; }
.company .map { font-size: .875rem; margin-top: 14px; padding-bottom: 2px; }
.company .map:hover { color: #80632f; }
.company-signature { background: var(--brand-gray); padding: 76px 7% 44px; border-top: 1px solid #dfe5e1; }
.company-signature .brand { width: 200px; height: 140px; margin-bottom: 24px; }
.company-signature .brand img { width: 234px; left: -17px; top: -28px; }
.company-signature .signature-name { font-size: 1.25rem; line-height: 1.9; letter-spacing: .035em; margin: 0 0 24px; }
.company-signature address { font-size: 1rem; line-height: 2; color: #415b4c; }
.company-signature .signature-contact-note { font-size: .9375rem; line-height: 1.9; margin-top: 28px; }
.site-footer { background: var(--brand-gray); padding: 28px 90px 44px; }
.site-footer p { font-size: .75rem; line-height: 1.8; letter-spacing: .04em; color: #697970; }
.site-footer .back-top { width: 46px; height: 46px; right: 5%; bottom: 32px; line-height: 42px; border-color: #a6b6ab; font-size: 1.25rem; transition: background .25s, color .25s; }
.site-footer .back-top:hover { color: #fff; background: #17382c; }

.projects-index, .project-detail { padding-top: calc(var(--header-height) + 62px); min-height: 70svh; }
.project-breadcrumb { font-size: .8125rem; line-height: 1.8; color: #778379; margin-bottom: 54px; }
.project-breadcrumb span { padding: 0 10px; color: #a7b0aa; }
.project-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.projects-index .section-label { margin-bottom: 20px; }
.projects-index h1, .project-detail h1 { font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; line-height: 1.6; letter-spacing: .035em; }
.projects-index .section-heading { padding-bottom: 40px; border-bottom: 1px solid #ccd6ce; margin-bottom: 50px; }
.projects-index .text-link { font-size: .875rem; min-width: 210px; }
.project-grid { gap: 64px 38px; }
.predecessor-projects { margin-top: 90px; padding-top: 54px; border-top-color: #ccd6ce; }
.predecessor-projects > h3 { font-size: 1.875rem; line-height: 1.6; margin-bottom: 18px; }
.predecessor-note { max-width: 760px; font-size: .875rem; line-height: 2; color: #64736a; margin-bottom: 38px; }
.project-detail > .eyebrow { color: #947b4d; font-size: .75rem; letter-spacing: .2em; margin-bottom: 22px; }
.detail-title-row { gap: 18px 26px; }
.detail-title-row h1 { max-width: 100%; overflow-wrap: anywhere; }
.detail-title-row .project-state { font-size: .875rem; }
.project-detail .detail-image { display: block; width: 100%; height: auto; max-height: 75svh; object-fit: contain; background: #f3f5f3; }
.project-detail .overview-image { margin-top: 48px; }
.project-overview { max-width: 820px; margin: 64px auto; }
.project-overview h2 { font-size: 1.625rem; padding-bottom: 22px; border-bottom: 1px solid #d9e1da; margin-bottom: 28px; }
.project-overview > p { font-size: 1rem; line-height: 2.2; }
.project-overview .legacy-notice { padding: 20px 24px; font-size: .875rem; line-height: 2; }
.project-detail > .text-link { margin: 70px auto 0; max-width: 290px; }

.reveal-ready { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.3,1); }
.reveal-ready.is-visible, .reveal-ready:focus-within { opacity: 1; transform: translateY(0); }
@keyframes bloom-pan { from { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes bloom-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .business-grid article:hover img { transform: scale(1.045); filter: saturate(.95); }
  .project-card:hover img { transform: scale(1.035); }
}
@media (max-width: 1100px) {
  .hero-bottom > span { max-width: 360px; text-align: right; line-height: 1.8; }
  .company-grid { grid-template-columns: .58fr 1.42fr; gap: 5%; }
  .company dl > div { grid-template-columns: 125px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 1024px) {
  :root { --header-height: 90px; --page-gutter: 6.5%; }
  #header { padding: 0 6%; }
  #header .brand { width: 122px; height: 82px; }
  #header .brand img { width: 146px; left: -12px; top: -19px; }
  #header .menu { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 48px; height: 48px; padding: 8px; border: 0; background: transparent; cursor: pointer; }
  #header .menu span { width: 28px; height: 1px; background: currentColor; }
  #header .menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  #header .menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  #header nav { display: none; position: absolute; top: var(--header-height); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 6.5% 30px; background: var(--brand-gray); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; box-shadow: 0 16px 24px #101d291c; border-top: 1px solid #17382c15; }
  #header nav.open { display: flex; }
  #header nav a { padding: 20px 0; font-size: 1rem; line-height: 1.8; border-bottom: 1px solid #d9dfdc; }
  #header nav a:not(.nav-contact)::after { display: none; }
  #header nav a[aria-current="page"] { color: #80632f; }
  #header .nav-contact { padding: 17px 20px; margin-top: 22px; display: flex; justify-content: space-between; }
  .section { padding-top: 88px; padding-bottom: 88px; }
  .section-label { margin-bottom: 46px; }

  .philosophy-grid { gap: 6%; }
  .philosophy h2 { font-size: clamp(1.875rem, 3.45vw, 2.75rem); }
  .business-grid { gap: 22px; }
  .business .section-heading p { max-width: 340px; }
  .featured-carousel .featured-slide { flex-basis: 65%; }
  .projects-index, .project-detail { padding-top: calc(var(--header-height) + 48px); }
  .company-signature { padding-top: 64px; padding-bottom: 40px; }
}
@media (max-width: 760px) {
  .philosophy-grid, .company-grid { grid-template-columns: 1fr; gap: 42px; }
  .philosophy h2 { font-size: clamp(2rem, 5.3vw, 2.75rem); }
  .business .section-heading { display: block; }
  .business .section-heading p { margin-top: 24px; max-width: 100%; }
  .business-grid { grid-template-columns: 1fr; gap: 44px; }
  .business .image-wrap { aspect-ratio: 16 / 10; }
  .business-grid h3 { font-size: 1.375rem; }
  .business-grid article > p:not(.category) { max-width: 560px; }
  .company dl > div { grid-template-columns: 130px minmax(0, 1fr); }
}
@media (max-width: 650px) {
  :root { --header-height: 84px; --page-gutter: 7%; }
  .home-page .hero { height: 94svh; min-height: 39rem; max-height: 880px; padding: calc(var(--header-height) + 4rem) var(--page-gutter) 8rem; }
  .hero .hero-image { object-position: 59% center; }
  .hero .hero-shade { background: linear-gradient(90deg, #081825b5, #08182560), linear-gradient(0deg, #081825cc, transparent 70%); }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .2em; margin-bottom: 26px; }


  .hero .hero-sub { font-size: clamp(1rem, 3.8vw, 1.375rem); letter-spacing: .015em; line-height: 1.95; margin-top: 28px; }
  .hero .mobile-break { display: block; }
  .hero .hero-bottom { bottom: 24px; padding-top: 15px; }
  .hero .hero-bottom > span { display: none; }
  .hero .scroll { font-size: .75rem; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-label { margin-bottom: 38px; font-size: .75rem; gap: 16px; }
  .section-label .number { padding-right: 16px; }
  .section h2 { font-size: clamp(1.875rem, 7.4vw, 2.25rem); line-height: 1.7; }
  .philosophy h2 { font-size: clamp(1.875rem, 7.6vw, 2.5rem); line-height: 1.85; }
  .philosophy .english-line { font-size: 20px; margin-top: 26px; padding-top: 22px; }
  .philosophy-copy { padding-top: 0; }
  .philosophy-copy p { line-height: 2.1; margin-bottom: 24px; }
  .philosophy-copy .text-link { margin-top: 30px; }
  .section-heading { margin-bottom: 32px; }
  .business .section-heading { margin-bottom: 34px; }
  .business .section-heading p { font-size: 1rem; line-height: 2; }
  .business .category { margin-top: 24px !important; }
  .business-grid h3 { margin-bottom: 12px; }
  .projects .text-link { margin-top: 20px; max-width: 235px; }
  .featured-track { margin-left: -20px; }
  .featured-carousel .featured-slide { flex-basis: 90%; padding-left: 20px; }
  .featured-carousel.single-project .featured-slide { flex-basis: 100%; }
  .featured-controls { margin-top: 28px; }
  .featured-controls [data-slot="carousel-previous"], .featured-controls [data-slot="carousel-next"] { width: 46px; height: 46px; }
  .project-card .project-title-row { margin-top: 20px; gap: 9px 12px; }
  .project-card .project-title-row h3 { font-size: 1.25rem; }
  .project-state { font-size: .875rem; padding: 3px 8px; }
  .project-card > p { line-height: 1.9; }
  .company-grid { gap: 32px; }
  .company-en { margin-top: 14px; }
  .company dl > div { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 20px 0; line-height: 1.9; }
  .company dt { font-size: .875rem; }
  .company-signature { padding: 54px 7% 30px; }
  .company-signature .brand { width: 180px; height: 126px; margin-bottom: 22px; }
  .company-signature .brand img { width: 210px; left: -15px; top: -25px; }
  .company-signature .signature-name { font-size: 1.0625rem; letter-spacing: 0; margin-bottom: 22px; }
  .company-signature address { font-size: 1rem; line-height: 1.95; }
  .company-signature .signature-contact-note { font-size: .875rem; line-height: 1.9; margin-top: 26px; }
  .site-footer { padding: 24px 70px 36px 7%; justify-content: flex-start; }
  .site-footer p { text-align: left; font-size: .75rem; }
  .site-footer .back-top { bottom: 27px; width: 44px; height: 44px; line-height: 40px; }
  .projects-index, .project-detail { padding-top: calc(var(--header-height) + 32px); }
  .project-breadcrumb { font-size: .8125rem; margin-bottom: 38px; }
  .projects-index h1, .project-detail h1 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); line-height: 1.65; }
  .projects-index .section-heading { padding-bottom: 28px; margin-bottom: 34px; }
  .projects-index .text-link { margin-top: 20px; max-width: 235px; }
  .project-grid { grid-template-columns: 1fr; gap: 44px; }
  .predecessor-projects { margin-top: 60px; padding-top: 34px; }
  .predecessor-projects > h3 { font-size: 1.5rem; }
  .predecessor-note { font-size: .875rem; margin-bottom: 30px; }
  .detail-title-row { gap: 14px; }
  .detail-title-row .project-state { font-size: .875rem; padding: 4px 10px; }
  .project-detail .overview-image { margin-top: 30px; }
  .project-overview { margin: 38px 0; }
  .project-overview h2 { font-size: 1.375rem; padding-bottom: 18px; margin-bottom: 24px; }
  .project-overview .legacy-notice { padding: 18px; }
  .project-detail > .text-link { margin-top: 42px; }
}
@media (max-width: 370px) {
  .hero .hero-sub { font-size: 1rem; letter-spacing: 0; }
  .company dl > div { grid-template-columns: 1fr; gap: 5px; }
  .company-signature address { font-size: .9375rem; }
}
@media (max-height: 650px) and (min-width: 651px) {
  .home-page .hero { min-height: 43rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .hero-image, .hero .hero-content, .scroll-arrow { animation: none; transform: none; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
}
