/* V6 clarity pass: plain-language copy, restrained type and complete layouts */

:root {
  --font-sans: "DeepFlow Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-serif: "DeepFlow Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

body {
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
  font-synthesis: none;
}

p,
li,
dd {
  text-wrap: pretty;
}

.home-section,
.page-section {
  padding-block: clamp(64px, 6.6vw, 96px);
}

.home-hero,
.home-hero__inner {
  min-height: min(760px, calc(100dvh - var(--nav-height) - 120px));
}

.home-hero h1,
.page-hero h1,
.listing-hero__grid h1,
.policy-hero h1,
.article-head h1,
.section-intro h2,
.section-title,
.boundary-cta h2,
.contact-home h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 3.75vw, 58px);
  line-height: 1.2;
}

.page-hero h1,
.inner-page .page-hero h1,
.listing-hero__grid h1,
.policy-hero h1 {
  max-width: 780px;
  white-space: pre-line;
  font-size: clamp(38px, 3.45vw, 56px);
  line-height: 1.2;
}

.section-intro h2,
.section-title,
.inner-page .section-title,
.contact-home h2 {
  max-width: 760px;
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.3;
}

.boundary-cta h2 {
  font-size: clamp(27px, 2.6vw, 40px);
  line-height: 1.28;
}

.home-hero__identity,
.chapter-mark,
.page-hero__label,
.section-label {
  font-weight: 600;
  letter-spacing: 0.06em;
}

.home-hero__support,
.page-hero__copy > p:not(.chapter-mark),
.listing-hero__grid > p,
.section-intro p,
.section-copy,
.prose-stack p {
  color: var(--text-soft);
}

.home-hero__support,
.page-hero__copy > p:not(.chapter-mark) {
  max-width: 640px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.82;
}

.page-hero,
.policy-hero {
  padding-block: clamp(64px, 6.4vw, 96px);
}

.page-hero__grid {
  min-height: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: clamp(48px, 6vw, 104px);
}

.inner-page .page-hero__grid {
  min-height: clamp(390px, 48vw, 540px);
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(48px, 6vw, 104px);
}

.page-hero__media {
  max-height: 590px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.2);
}

.stance__copy h2 {
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3vw, 47px);
  font-weight: 500;
  line-height: 1.46;
  letter-spacing: -0.015em;
}

.situations__list article {
  min-height: 142px;
}

.situations__list b,
.method__steps span {
  font-weight: 650;
}

.service-ledger h3,
.home-case h3,
.content-record h3,
.article-title,
.case-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-hero__copy,
.section-intro,
.boundary-cta__grid > div,
.prose-stack {
  text-wrap: pretty;
}

.page-hero__copy > p:not(.chapter-mark),
.section-intro p,
.section-copy,
.prose-stack p,
.service-record p,
.content-record p {
  max-width: 42em;
}

.inner-services .record-grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.inner-services .service-record,
.inner-services .service-record:nth-child(n) {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.3vw, 34px);
}

.inner-services .service-record ol {
  padding-left: 1.25em;
}

.inner-services .service-record .record-boundary {
  margin-top: auto;
  padding-top: 20px;
}

.inner-services .service-record .record-action {
  margin-top: 16px;
}

.contact-form textarea {
  min-height: 126px;
}

.contact-form .form-heading h3,
.contact-safety b {
  font-weight: 650;
}

@media (min-width: 1800px) {
  .page-hero h1,
  .policy-hero h1,
  .listing-hero__grid h1 {
    font-size: 64px;
  }

  .page-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  }
}

@media (max-width: 1080px) {
  .inner-services .record-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-services .service-record:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .page-hero__grid,
  .inner-page .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-hero__copy {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .home-section,
  .page-section {
    padding-block: 54px;
  }

  .home-hero h1,
  .page-hero h1,
  .inner-page .page-hero h1,
  .listing-hero__grid h1,
  .policy-hero h1,
  .article-head h1 {
    white-space: normal;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .section-intro h2,
  .section-title,
  .inner-page .section-title,
  .contact-home h2 {
    font-size: clamp(27px, 7.7vw, 34px);
    line-height: 1.26;
  }

  .stance__copy h2 {
    font-size: clamp(29px, 8vw, 36px);
    line-height: 1.42;
  }

  .page-hero,
  .policy-hero {
    padding-block: 46px 54px;
  }

  .page-hero__grid {
    gap: 32px;
  }

  .inner-services .record-grid--services {
    grid-template-columns: 1fr;
  }

  .inner-services .service-record:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* V8: authentic field photography system */
.stance__portrait img {
  object-position: center 50%;
}

.method__media {
  max-height: 620px;
  aspect-ratio: 16 / 10;
}

.method__media img {
  object-position: center 48%;
}

.frank-hero-proof {
  display: grid;
  min-width: 0;
  min-height: 540px;
  max-height: 590px;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.frank-hero-proof figure {
  position: relative;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--surface-soft);
}

.frank-hero-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.035);
}

.frank-hero-proof figure:first-child img {
  object-position: center 54%;
}

.frank-hero-proof figure:last-child img {
  object-position: 56% center;
}

.frank-hero-proof figcaption,
.inner-courses .course-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 30px 18px 16px;
  background: linear-gradient(transparent, rgba(2, 8, 12, .82));
  color: rgba(244, 249, 250, .84);
  font-size: 11px;
  letter-spacing: .08em;
}

.inner-frank .frank-context__media {
  grid-template-columns: minmax(0, 1.22fr) minmax(210px, .78fr);
  aspect-ratio: 16 / 9;
}

.inner-frank .frank-context__media figure:first-child img {
  object-position: center 50%;
}

.inner-frank .frank-context__media figure:last-child img {
  object-position: center 52%;
}

.inner-method .page-hero__media,
.inner-services .page-hero__media,
.inner-experience .page-hero__media,
.inner-swimming .page-hero__media {
  aspect-ratio: 16 / 10;
}

.inner-method .page-hero__media img {
  object-position: center 52%;
}

.inner-services .page-hero__media img {
  object-position: 56% center;
}

.inner-experience .page-hero__media img,
.inner-swimming .page-hero__media img {
  object-position: center 52%;
}

.inner-courses .course-photo {
  position: relative;
  aspect-ratio: 1 / 1;
}

.inner-courses .course-photo img {
  object-position: center;
}

.inner-experience .contact-sheet figure,
.inner-swimming .contact-sheet figure,
.inner-experience .contact-sheet figure:last-child,
.inner-swimming .contact-sheet figure:last-child {
  min-height: 440px;
  align-self: stretch;
}

.inner-experience .contact-sheet figure:last-child img {
  object-position: center 42%;
}

.inner-swimming .contact-sheet figure:first-child img {
  object-position: center 38%;
}

.inner-swimming .contact-sheet figure:last-child img {
  object-position: center 54%;
}

@media (max-width: 900px) {
  .frank-hero-proof {
    min-height: 470px;
    max-height: none;
  }
}

@media (max-width: 700px) {
  .frank-hero-proof {
    min-height: 350px;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    gap: 7px;
  }

  .inner-frank .frank-context__media {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .inner-frank .frank-context__media figure {
    aspect-ratio: 4 / 3;
  }

  .inner-experience .contact-sheet figure,
  .inner-swimming .contact-sheet figure,
  .inner-experience .contact-sheet figure:last-child,
  .inner-swimming .contact-sheet figure:last-child {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .method__media,
  .inner-method .page-hero__media,
  .inner-services .page-hero__media,
  .inner-experience .page-hero__media,
  .inner-swimming .page-hero__media {
    aspect-ratio: 4 / 3;
  }
}

/* V7 homepage hero: the work is the protagonist, not a standalone portrait. */
.home-hero {
  min-height: clamp(660px, calc(100dvh - var(--nav-height)), 820px);
  background: #030a10;
}

.home-hero__media {
  inset: 0 0 0 42%;
  overflow: hidden;
  background: #07111a;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(0.82) contrast(1.06) brightness(0.84);
  transform: scale(1.002);
}

.home-hero::after {
  background:
    linear-gradient(90deg, #030a10 0%, rgba(3, 10, 16, 0.99) 34%, rgba(3, 10, 16, 0.86) 44%, rgba(3, 10, 16, 0.34) 59%, rgba(3, 10, 16, 0.08) 78%),
    linear-gradient(0deg, rgba(3, 10, 16, 0.72) 0%, rgba(3, 10, 16, 0.04) 34%, rgba(3, 10, 16, 0.14) 100%);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: clamp(660px, calc(100dvh - var(--nav-height)), 820px);
  grid-template-columns: minmax(0, 0.43fr) minmax(0, 0.57fr);
  align-items: center;
  align-content: stretch;
  padding-block: 64px 92px;
}

.home-hero__copy {
  grid-column: 1;
  width: min(100%, 610px);
  max-width: none;
}

.home-hero__identity {
  margin-bottom: 18px;
  color: #b9c9cc;
  font-size: 13px;
  letter-spacing: 0.075em;
}

.home-hero h1 {
  max-width: 610px;
  font-size: clamp(46px, 3.55vw, 60px);
  line-height: 1.16;
}

.home-hero__support {
  max-width: 570px;
  margin-top: 24px;
  color: #b6c4c7;
  font-size: 16px;
  line-height: 1.82;
}

.home-hero__actions {
  margin-top: 28px;
}

.home-hero__credential {
  right: auto;
  bottom: 30px;
  left: 0;
  color: #9fb0b4;
}

.home-hero__scene-note {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: grid;
  gap: 1px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: #f1f3ef;
  line-height: 1.45;
  text-align: left;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.76);
}

.home-hero__scene-note b {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.home-hero__scene-note span {
  color: #c0ccce;
  font-size: 12px;
}

@media (min-width: 2100px) {
  .home-hero__media img {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 1100px) {
  .home-hero {
    display: grid;
    min-height: 0;
    grid-template-rows: clamp(330px, 46vw, 470px) auto;
  }

  .home-hero__media {
    position: relative;
    z-index: -2;
    inset: auto;
    width: 100%;
    height: 100%;
  }

  .home-hero__media img {
    object-position: 50% 49%;
  }

  .home-hero::after {
    z-index: -1;
    bottom: auto;
    height: clamp(330px, 46vw, 470px);
    background: linear-gradient(0deg, #030a10 0%, rgba(3, 10, 16, 0.18) 32%, rgba(3, 10, 16, 0.08) 100%);
  }

  .home-hero__inner {
    display: block;
    min-height: 0;
    padding-block: 38px 48px;
  }

  .home-hero__copy {
    width: min(100%, 700px);
  }

  .home-hero__credential {
    position: static;
    margin-top: 28px;
  }

  .home-hero__scene-note {
    top: -82px;
    right: 0;
    bottom: auto;
  }
}

@media (max-width: 700px) {
  .home-hero {
    grid-template-rows: 272px auto;
  }

  .home-hero__media img {
    object-position: 55% 49%;
    filter: saturate(0.84) contrast(1.05) brightness(0.88);
  }

  .home-hero::after {
    height: 272px;
  }

  .home-hero__inner {
    padding-block: 30px 38px;
  }

  .home-hero__identity {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .home-hero h1,
  .home-hero h1 span {
    max-width: 330px;
    font-size: clamp(31px, 9.2vw, 38px);
    line-height: 1.18;
  }

  .home-hero__support {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.72;
  }

  .home-hero__actions {
    gap: 8px;
    margin-top: 22px;
  }

  .home-hero__actions .button {
    width: auto;
    min-height: 44px;
    padding-inline: 16px;
    font-size: 13px;
  }

  .home-hero__credential {
    margin-top: 22px;
    padding-left: 12px;
    font-size: 11px;
  }

  .home-hero__scene-note {
    top: -64px;
    right: 2px;
  }
}
