/* OSAKA-PROPORTIONS-V2.4 | 2026-11-15
   Responsive geometry refinement for the WordPress-free Osaka site.
   Loaded last; preserves content, original images and application behavior. */

:root {
  --max: 1240px;
}
html { scroll-padding-top: 92px; }
body { line-height: 1.62; }
.container { width: min(var(--max), calc(100% - 80px)); }
img { max-width: 100%; height: auto; }

/* A measured header with an undistorted, legible Osaka logo. */
.topline .top-inner { padding-top: 8px; padding-bottom: 8px; }
.site-header .header-inner { min-height: 86px; gap: clamp(18px, 2vw, 30px); }
.site-header .brand { flex: 0 0 178px; min-height: 76px; }
.site-header .brand-original {
  width: 178px; height: 76px; max-width: 100%; max-height: 76px;
  object-fit: contain; object-position: left center;
}
.site-header nav ul { gap: clamp(12px, 1.6vw, 24px); }
.site-header nav a { padding-top: 28px; padding-bottom: 28px; font-size: .72rem; }
.site-header nav a::after { bottom: 20px; }
.site-header .header-cta { min-height: 55px; padding: 15px 19px; }

/* Hero: scale type against the container, not the entire viewport. */
.hero {
  height: clamp(555px, 68svh, 675px);
  min-height: 555px;
  max-height: 675px;
}
.hero .hero-photo {
  background-size: cover; background-repeat: no-repeat;
  background-position: center 44%;
}
.hero .hero-inner { align-items: center; }
.hero .hero-copy { width: min(100%, 740px); max-width: 740px; padding: 10px 0 44px; }
.hero .eyebrow { margin-bottom: 17px; letter-spacing: .15em; }
.hero h1 {
  max-width: 740px;
  font-size: clamp(4.15rem, 6.0vw, 6.4rem);
  line-height: .97;
  letter-spacing: -.037em;
  margin: 0 0 18px;
  overflow-wrap: normal;
  text-wrap: balance;
}
.hero .hero-copy p {
  max-width: 555px;
  font-size: clamp(.97rem, 1.08vw, 1.08rem);
  line-height: 1.6;
  margin: 0;
}
.hero .hero-actions { margin-top: 25px; gap: 22px; }
.hero .btn { min-height: 53px; }
.hero .hero-bottom > .container { padding-top: 14px; padding-bottom: 14px; }
.hero .hero-side-mark { height: 235px; }

/* Firm, compact company-statistic panel. */
.proof-band .proof-grid {
  min-height: 125px;
  padding-top: 17px; padding-bottom: 17px;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 10px; align-items: center;
}
.proof-band .proof-lead { font-size: .72rem; line-height: 1.55; max-width: 255px; }
.proof-band .proof-item { padding: 10px 12px 10px 24px; }
.proof-band .proof-item strong {
  font-size: clamp(2.25rem, 2.9vw, 3rem);
  line-height: 1.02; margin-bottom: 6px;
}
.proof-band .proof-item span { font-size: .58rem; line-height: 1.4; }

/* Consistent vertical rhythm and restrained headline scale. */
.section,
.about-home, .services-section, .process-section, .project-section { padding-top: 82px; padding-bottom: 82px; }
.section-header { margin-bottom: 34px; gap: 25px; }
.section-header h2, .section-content h2 {
  font-size: clamp(2.55rem, 4.15vw, 4.5rem);
  line-height: 1.08; letter-spacing: -.025em;
  text-wrap: balance;
}
.section-header .eyebrow, .section-content .eyebrow { margin-bottom: 13px; }
.section-content h2 { margin-bottom: 22px; }
.section-content .lead { font-size: 1.01rem; line-height: 1.72; }
.header-aside { max-width: 275px; font-size: .89rem; line-height: 1.6; }

/* Original construction images: preserve shape; crop only within their frames. */
.about-home .about-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(35px, 5.8vw, 78px); }
.about-home .about-visual {
  height: auto; min-height: 0; max-height: 470px; aspect-ratio: 6 / 5;
}
.about-home .about-visual-photo { background-size: cover; background-position: center; }
.about-home .about-photo-label {
  min-width: 230px; padding: 21px 24px; right: -13px; bottom: 27px;
}
.about-home .about-photo-label strong { font-size: 1.7rem; }
.about-home .about-photo-label span { font-size: .62rem; }
.feature-inline { padding: 8px 0; }

/* Service cards should follow their content, never stretch vertically. */
.services-section .service-grid { align-items: stretch; gap: 18px; }
.services-section .service-card { min-height: 0; height: 100%; display: flex; flex-direction: column; }
.services-section .service-card-photo {
  width: 100%; height: auto; min-height: 0; max-height: 225px;
  aspect-ratio: 16 / 10;
  background-position: center; background-size: cover;
  flex: 0 0 auto;
}
.services-section .service-card-body {
  width: 100%; padding: 25px 26px 24px; display: flex; flex-direction: column; flex: 1;
}
.services-section .service-card h3 { font-size: 1.57rem; line-height: 1.16; margin-bottom: 12px; }
.services-section .service-card p { min-height: 0; font-size: .87rem; line-height: 1.6; margin-bottom: 19px; flex: 1; }
.services-section .service-more { margin-top: auto; padding-top: 14px; }

/* Editorial interlude and process, without oversized empty bands. */
.statement .statement-inner { padding-top: 84px; padding-bottom: 86px; }
.statement h2 {
  font-size: clamp(3rem, 4.9vw, 5.2rem);
  line-height: 1.07; max-width: 930px;
}
.statement p { max-width: 550px; line-height: 1.6; }
.process-section .section-header { margin-bottom: 33px; }
.process-section .process-grid { padding-top: 4px; }
.process-section .process-step { padding-top: 28px; padding-bottom: 8px; }
.process-section .process-number { font-size: clamp(2.85rem, 3.5vw, 3.9rem); }
.process-section .process-step h3 { font-size: 1.38rem; line-height: 1.2; margin: 16px 0 11px; }
.process-section .process-step p { line-height: 1.65; }

/* Consistent 16:10 project thumbnails, including the first two cards. */
.project-section .project-grid { gap: 37px 26px; }
.project-section .project-image,
.project-section .project-card:nth-child(1) .project-image,
.project-section .project-card:nth-child(2) .project-image {
  width: 100%; height: auto; min-height: 0;
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
}
.project-section .project-caption { padding-top: 17px; }
.project-section .project-caption h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
.project-section .project-caption .eyebrow { margin-bottom: 7px; }

/* Lower visual weight for calls to action, secondary pages and footer. */
.contact-strip .contact-strip-inner { padding-top: 61px; padding-bottom: 61px; }
.contact-strip h2 { font-size: clamp(2.5rem, 4vw, 4.25rem); line-height: 1.09; }
.contact-strip p { line-height: 1.6; }
.inner-hero { min-height: 270px; }
.inner-hero > .container { padding-top: 58px; padding-bottom: 58px; }
.inner-hero h1 { font-size: clamp(3.1rem, 5.1vw, 5.7rem); }
.detail-grid { gap: 43px; }
.detail-photo {
  height: auto; min-height: 0; aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  margin-bottom: 31px;
}
.detail-aside { padding: 30px; }
.contact-original-photo { height: auto; aspect-ratio: 16 / 8; }
.form-panel { padding: clamp(25px, 3.3vw, 42px); }
.form-panel h3 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
.footer-top { padding-top: 55px; padding-bottom: 55px; }
.footer-top h2 { font-size: clamp(2.7rem, 4.3vw, 4.6rem); }
.footer-cols { padding-top: 48px; padding-bottom: 48px; }
.original-gallery img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 60px); }
  .site-header .brand { flex-basis: 150px; }
  .site-header .brand-original { width: 150px; height: 68px; }
  .site-header nav ul { gap: 13px; }
  .site-header nav a { font-size: .66rem; }
  .hero { height: clamp(530px, 68svh, 635px); min-height: 530px; }
  .hero h1 { font-size: clamp(3.8rem, 7.2vw, 5.8rem); }
  .about-home .about-layout { gap: 36px; }
  .proof-band .proof-grid { grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr)); }
  .section, .about-home, .services-section, .process-section, .project-section { padding-top: 70px; padding-bottom: 70px; }
}
@media (max-width: 920px) {
  .site-header .header-cta { display: none; }
  .hero { height: auto; min-height: 525px; max-height: none; }
  .hero .hero-inner { min-height: 525px; }
  .hero .hero-copy { max-width: 650px; padding: 72px 0 94px; }
  .hero h1 { font-size: clamp(3.6rem, 7.9vw, 5.6rem); }
  .proof-band .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-band .proof-lead { grid-column: 1 / -1; max-width: none; padding: 4px 0 8px; }
  .about-home .about-visual { max-height: none; }
  .services-section .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-section .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-section .process-step:nth-child(2) { border-right: 0; }
}
@media (max-width: 740px) {
  html { scroll-padding-top: 80px; }
  .container { width: calc(100% - 36px); }
  .site-header .header-inner { min-height: 74px; }
  .site-header .brand { flex: 0 0 144px; min-height: 66px; }
  .site-header .brand-original { width: 144px; height: 65px; max-height: 65px; }
  .site-header nav { top: 74px; }
  .hero { height: auto; min-height: 0; max-height: none; }
  .hero .hero-inner { min-height: 0; align-items: flex-start; }
  .hero .hero-copy { width: 100%; padding: 78px 0 114px; }
  .hero h1 { max-width: 100%; font-size: clamp(3.0rem, 10.5vw, 4.65rem); line-height: .99; }
  .hero .eyebrow { font-size: .65rem; line-height: 1.4; }
  .hero .hero-copy p { font-size: .96rem; line-height: 1.6; max-width: 40ch; }
  .hero .hero-actions { margin-top: 23px; gap: 15px 20px; flex-wrap: wrap; }
  .hero .hero-bottom > .container { padding-top: 13px; padding-bottom: 13px; }
  .hero .hero-side-mark { display: none; }
  .proof-band .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 14px 0 17px; }
  .proof-band .proof-lead { border-bottom: 1px solid #d9dcd5; margin-bottom: 9px; padding: 8px 0 14px; }
  .proof-band .proof-item,
  .proof-band .proof-item:nth-child(3),
  .proof-band .proof-item:nth-child(4) {
    grid-column: auto; border-top: 0; border-left: 0;
    padding: 12px 8px 8px 0; margin: 0;
  }
  .proof-band .proof-item + .proof-item { border-left: 1px solid #d9dcd5; padding-left: 13px; }
  .proof-band .proof-item strong { font-size: clamp(1.85rem, 6.6vw, 2.55rem); }
  .proof-band .proof-item span { font-size: .52rem; }
  .section, .about-home, .services-section, .process-section, .project-section { padding-top: 60px; padding-bottom: 60px; }
  .about-home .about-layout { grid-template-columns: 1fr; gap: 33px; }
  .about-home .about-visual { aspect-ratio: 5 / 4; max-height: 425px; }
  .about-home .about-photo-label { right: 0; bottom: 16px; min-width: 0; }
  .about-home .about-photo-label strong { font-size: 1.55rem; }
  .section-header { gap: 16px; margin-bottom: 28px; }
  .section-header h2, .section-content h2 { font-size: clamp(2.3rem, 8.3vw, 3.75rem); }
  .header-aside { max-width: 100%; }
  .services-section .service-grid { grid-template-columns: 1fr; gap: 15px; }
  .services-section .service-card-photo { max-height: none; aspect-ratio: 16 / 9; }
  .services-section .service-card-body { padding: 23px 24px; }
  .statement .statement-inner { padding-top: 68px; padding-bottom: 69px; }
  .statement h2 { font-size: clamp(2.7rem, 9vw, 4.2rem); }
  .process-section .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-section .process-step { padding-top: 25px; }
  .project-section .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-section .project-image,
  .project-section .project-card:nth-child(1) .project-image,
  .project-section .project-card:nth-child(2) .project-image { aspect-ratio: 16 / 10; }
  .contact-strip .contact-strip-inner { padding-top: 56px; padding-bottom: 56px; }
  .contact-strip h2 { font-size: clamp(2.4rem, 7.8vw, 3.6rem); }
  .inner-hero { min-height: 220px; }
  .inner-hero > .container { padding-top: 48px; padding-bottom: 48px; }
  .detail-grid { gap: 30px; }
  .detail-photo { aspect-ratio: 4 / 3; }
  .footer-top { padding-top: 46px; padding-bottom: 46px; }
}
@media (max-width: 430px) {
  .topline { font-size: .57rem; }
  .top-inner { gap: 7px; }
  .hero .hero-copy { padding-top: 62px; padding-bottom: 106px; }
  .hero h1 { font-size: clamp(2.65rem, 10.2vw, 3.55rem); }
  .hero .hero-actions .btn { width: 100%; max-width: 100%; }
  .hero .hero-bottom b { padding: 0 5px; }
  .proof-band .proof-item span { font-size: .48rem; letter-spacing: .025em; }
  .section-header h2, .section-content h2 { font-size: clamp(2.15rem, 8.5vw, 2.8rem); }
  .process-section .process-grid { grid-template-columns: 1fr; }
  .process-section .process-step { border-right: 0; border-bottom: 1px solid #e5e7e4; margin-right: 0; padding-right: 0; }
  .original-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-photo, .service-card, .project-card { transition: none; }
}
