/* index.html 専用 (トップページ) ============================================ */

/* HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0 48px 80px;
  overflow: hidden;
}
.hero-left {
  padding: 60px 56px 0 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.hero-left .stamp {
  position: absolute;
  bottom: 12px; left: -8px;
  font-family: var(--sans);
  font-size: 9px; letter-spacing: 0.4em;
  color: var(--navy); opacity: 0.4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(60px, 8.5vw, 132px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--navy-deep);
}
.hero h1 em {
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}

.hero h1 .reveal-mask {
  display: block;
}

.hero-lede {
  margin-top: 36px;
  font-size: 14.5px;
  line-height: 2;
  max-width: 420px;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--navy);
}
.hero-lede br + .accent { color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  font-family: var(--sans);
  align-items: flex-start;
}
.hero-stats > .stat-divider { width: 1px; align-self: stretch; background: var(--line); }
.stat-num {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 300;
  color: var(--navy-deep);
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat-num .unit {
  font-size: 16px;
  margin-left: 4px;
  opacity: 0.55;
  font-weight: 400;
}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  margin-top: 10px;
  color: var(--navy);
  opacity: 0.55;
  text-transform: uppercase;
}

/* hero photo */
.hero-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-photo image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  --slot-bg: rgba(10,31,61,0.85);
  --slot-fg: rgba(245,242,236,0.5);
}
.hero-photo .img {
  position: absolute; inset: -8% -8% -8% -8%;
  background-image: url("../images/free-stock/hero-construction.jpg");
  background-size: cover; background-position: center;
  filter: saturate(0.78) contrast(1.08) brightness(0.92);
  transform: translateY(var(--py, 0));
  will-change: transform;
}
.hero-photo .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(10,31,61,0) 35%, rgba(10,31,61,0.55) 100%);
  pointer-events: none;
}
.hero-photo .caption {
  position: absolute;
  bottom: 32px; left: 32px; right: 32px;
  display: flex; align-items: flex-end; justify-content: space-between;
  color: var(--paper);
  font-family: var(--sans);
}
.hero-photo .caption .meta-eyebrow {
  font-size: 9px; letter-spacing: 0.4em;
  opacity: 0.7;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.hero-photo .caption .meta-title {
  font-size: 13px;
  font-weight: 300;
  max-width: 280px;
  line-height: 1.6;
  font-family: var(--serif);
  font-style: italic;
}
.hero-photo .caption .num {
  font-size: 11px;
  opacity: 0.6;
  letter-spacing: 0.3em;
}

/* hero ornamental SVG (cross / measurement marks) */
.hero-marks {
  position: absolute;
  bottom: 24px; left: 48px;
  width: 220px; height: 80px;
  pointer-events: none;
  z-index: 1;
}

/* SERVICES section ------------------------------------------------------ */

.services {
  padding: 120px 48px;
  background: var(--paper);
}

.svc-row {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 60px;
  gap: 40px;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: background .35s, padding-left .35s;
  color: var(--ink);
}
.svc-row:last-of-type { border-bottom: 1px solid var(--line); }

.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.svc-row:hover::before { opacity: 1; }
.svc-row:hover { padding-left: 16px; }

.svc-num {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
}

.svc-name {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.svc-en {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--navy);
  opacity: 0.5;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 500;
}

.svc-desc {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.95;
  font-weight: 300;
  color: var(--navy);
  max-width: 420px;
}

.svc-arrow {
  text-align: right;
  font-size: 22px;
  color: var(--navy);
  opacity: 0.4;
  transition: opacity .25s, transform .35s cubic-bezier(.7,0,.2,1);
}
.svc-row:hover .svc-arrow {
  opacity: 1;
  transform: translateX(8px);
  color: var(--accent);
}

/* PROJECTS gallery ------------------------------------------------------ */

.projects {
  padding: 120px 48px;
  background: var(--navy-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.projects .section-head { margin-bottom: 64px; }
.projects .section-head-title { color: var(--paper); }
.projects .section-head-lede { color: rgba(245,242,236,0.7); }
.projects .eyebrow { color: var(--paper); opacity: 0.7; }

.projects-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}

.proj-grid-1 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.proj-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 20px;
}
.proj-card.tall  { height: 540px; }
.proj-card.short { height: 300px; }

/* hairline corner mark on cards */
.proj-card::after {
  content: "";
  position: absolute;
  top: 12px; left: 12px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  z-index: 2;
}

/* PHILOSOPHY ------------------------------------------------------------ */

.philosophy {
  padding: 160px 48px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.philosophy .ghost {
  position: absolute;
  top: 60px; right: -60px;
  font-family: var(--serif);
  font-size: 380px;
  color: var(--navy);
  opacity: 0.04;
  font-weight: 500;
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.philosophy-inner {
  max-width: 880px;
  position: relative;
}
.philosophy p {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  color: var(--navy-deep);
  margin: 0;
}
.philosophy p .accent { color: var(--accent); font-style: italic; }
.philosophy p .sub { opacity: 0.55; }

.philosophy-prose {
  margin-top: 56px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2.1;
  font-weight: 300;
  max-width: 580px;
  color: var(--navy);
}
.philosophy-sign {
  margin-top: 64px;
  display: inline-block;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* CTA ------------------------------------------------------------------- */

.cta {
  background: var(--navy);
  color: var(--paper);
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,242,236,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,236,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 24px 0 0;
  color: var(--paper);
}
.cta h2 em { color: var(--accent); font-style: italic; font-weight: 400; }
.cta-lede {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 2;
  font-weight: 300;
  opacity: 0.8;
  max-width: 440px;
}
.cta-tel {
  border-top: 1px solid rgba(245,242,236,0.2);
  padding-top: 24px;
  position: relative;
}
.cta-tel-label {
  font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.3em;
  opacity: 0.55;
  text-transform: uppercase;
}
.cta-tel-num {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 200;
  letter-spacing: -0.03em;
  margin-top: 8px;
  font-feature-settings: "tnum";
  color: var(--paper);
  text-decoration: none;
  display: block;
}

/* RESPONSIVE ============================================================ */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
    min-height: auto;
  }
  .hero-left {
    padding: 32px 0 48px;
  }
  .hero-left .stamp { display: none; }
  .hero h1 { font-size: clamp(48px, 14vw, 96px); }
  .hero-lede { font-size: 14px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stats > .stat-divider { display: none; }
  .stat-num { font-size: 36px; }
  .hero-photo {
    height: 60vh;
    margin: 0 -20px;
  }
  .hero-marks { display: none; }

  .services { padding: 64px 20px; }
  .svc-row {
    grid-template-columns: 56px 1fr 36px;
    gap: 16px;
    padding: 24px 0;
  }
  .svc-desc { display: none; }
  .svc-row:hover { padding-left: 0; }
  .svc-name { font-size: 22px; }

  .projects { padding: 64px 20px; }
  .proj-grid-1, .proj-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .proj-card.tall { height: 380px; }
  .proj-card.short { height: 280px; }
  .projects-head-row { margin-bottom: 32px; }

  .philosophy { padding: 80px 20px; }
  .philosophy .ghost { font-size: 200px; top: 30px; right: -40px; }
  .philosophy p { font-size: clamp(22px, 6vw, 32px); }

  .cta {
    grid-template-columns: 1fr;
    padding: 64px 20px;
    gap: 40px;
  }
  .cta-tel-num { font-size: 40px; }
}
