/* Hiroshi Fukuma profile — Deep Japanese Blue visual system */

:root {
  --hf-ink: #050e1d;
  --hf-deep-blue: #081c33;
  --hf-indigo: #0c2747;
  --hf-iron-blue: #14385f;
  --hf-blue-grey: #7b8fa8;
  --hf-mist: #dbe3ee;
  --hf-paper: #edf2f9;

  --hf-line: rgba(205, 220, 238, 0.16);
  --hf-glass: rgba(7, 22, 44, 0.48);
  --hf-glass-strong: rgba(6, 18, 38, 0.68);
}

.hiroshi-profile-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--hf-ink);
  color: var(--hf-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic",
    "Segoe UI", sans-serif;
}

.hiroshi-profile-page *,
.hiroshi-profile-page *::before,
.hiroshi-profile-page *::after {
  box-sizing: border-box;
}

.hiroshi-profile-page a {
  color: inherit;
}

.hiroshi-profile-page a:focus-visible {
  outline: 2px solid var(--hf-mist);
  outline-offset: 4px;
}

.hiroshi-profile-page .site-glass-header {
  z-index: 10;
  background: rgba(6, 17, 36, 0.46);
  border-bottom: 1px solid var(--hf-line);
  backdrop-filter: blur(12px) saturate(0.9);
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
}

/* ---------------------------------------------------------------------------
   Full-page background video (single element, fixed, never removed)
--------------------------------------------------------------------------- */

.hf-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--hf-ink) url("../assets/hiroshi-fukuma-create-the-now-poster.jpg") center / cover no-repeat;
}

.hf-background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hf-background-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(38, 72, 122, 0.16), transparent 38%),
    linear-gradient(180deg,
      rgba(3, 12, 26, 0.24) 0%,
      rgba(6, 20, 40, 0.50) 48%,
      rgba(5, 14, 29, 0.66) 100%);
}

/* ---------------------------------------------------------------------------
   Page shell
--------------------------------------------------------------------------- */

.hf-page {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------------
   Hero — clearest view of the video, quiet blue scrim only
--------------------------------------------------------------------------- */

.hf-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 14, 29, 0.10) 0%,
    rgba(5, 14, 29, 0.04) 42%,
    rgba(5, 14, 29, 0.52) 100%);
}

.hf-hero-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 9.5rem clamp(1.25rem, 5%, 3rem) clamp(4.5rem, 8svh, 7rem);
  animation: hf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-manifesto {
  margin: 0 0 0.9rem;
  max-width: 22ch;
  color: var(--hf-paper);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.34;
  letter-spacing: 0.035em;
  font-weight: 640;
  text-shadow: 0 2px 28px rgba(2, 9, 22, 0.65);
  text-align: left;
}

.hero-manifesto-sub,
.hf-en-sub {
  margin: 0 0 2.2rem;
  color: rgba(219, 229, 242, 0.78);
  font-size: 0.88rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 14px rgba(2, 9, 22, 0.8);
}

.hf-kicker,
.hf-section-label,
.hf-meta,
.hf-card-meta {
  color: var(--hf-blue-grey);
  font-size: 0.78rem;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(2, 9, 22, 0.7);
}

.hf-section-label {
  color: rgba(173, 190, 214, 0.9);
}

.hf-title {
  max-width: 11ch;
  margin: 0.35rem 0 1rem;
  color: var(--hf-paper);
  font-size: 5.4rem;
  line-height: 0.94;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-shadow: 0 2px 32px rgba(2, 9, 22, 0.6);
}

.hf-meta {
  margin-top: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--hf-mist);
}

.hf-actions,
.hf-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hf-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(205, 220, 238, 0.30);
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  background: rgba(12, 33, 64, 0.42);
  color: var(--hf-paper);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.hf-button:hover,
.hf-button:focus-visible {
  border-color: rgba(219, 229, 242, 0.55);
  background: rgba(20, 49, 88, 0.58);
  transform: translateY(-1px);
}

.hf-button--primary {
  border-color: rgba(219, 229, 242, 0.45);
  background: rgba(20, 49, 88, 0.55);
}

/* ---------------------------------------------------------------------------
   Main sections
--------------------------------------------------------------------------- */

.hf-main {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5%, 3rem) 5rem;
}

.hf-section {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 7fr);
  gap: clamp(1.4rem, 5%, 4rem);
  padding: clamp(4rem, 11svh, 7rem) 0;
  border-top: 1px solid var(--hf-line);
}

.hf-section:first-child {
  border-top: 0;
}

.hf-section-label {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.hf-section-body {
  max-width: 70ch;
}

/* Deep indigo glass panels — never opaque black */

.hf-section--panel .hf-section-body {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--hf-line);
  background:
    linear-gradient(135deg, rgba(9, 29, 56, 0.68), rgba(6, 18, 38, 0.42));
  box-shadow:
    0 24px 80px rgba(1, 8, 20, 0.20),
    inset 0 1px 0 rgba(230, 238, 248, 0.04);
  backdrop-filter: blur(12px) saturate(0.9);
  -webkit-backdrop-filter: blur(12px) saturate(0.9);
}

@supports not (backdrop-filter: blur(1px)) {
  .hf-section--panel .hf-section-body {
    background: linear-gradient(135deg, rgba(9, 29, 56, 0.88), rgba(6, 18, 38, 0.82));
  }
}

.hf-section--profile .hf-section-body {
  max-width: 66ch;
}

/* Origin — video breathes again, wide space, the question is large */

.hf-section--origin {
  min-height: 92svh;
  align-items: center;
}

.hf-section--origin .hf-section-body,
.hf-section--nipponeer .hf-section-body,
.hf-section--solitude .hf-section-body,
.hf-section--now .hf-section-body {
  padding: 0;
  background: transparent;
  text-shadow: 0 2px 24px rgba(2, 9, 22, 0.78);
}

.hf-section--origin h2,
.hf-section--nipponeer h2,
.hf-section--solitude h2 {
  font-size: 3.4rem;
}

.hf-origin-question {
  margin-top: clamp(3rem, 9svh, 6rem);
}

.hf-origin-question p:first-child {
  max-width: 15ch;
  color: var(--hf-paper);
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.12;
  font-weight: 680;
}

/* Method — thin-rule editorial grid, pale blue glass, no small cards */

.hf-section--method .hf-grid-4 {
  gap: 0;
  border-top: 1px solid var(--hf-line);
  background: rgba(12, 33, 64, 0.22);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
}

.hf-section--method .hf-method-card {
  border: 0;
  border-left: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
  background: transparent;
  padding: 1.4rem 1.25rem 1.6rem;
}

.hf-section--method .hf-method-card:first-child {
  border-left: 0;
}

/* No Standard Route — readability first */

.hf-section--no-route .hf-section-body {
  background:
    linear-gradient(135deg, rgba(9, 29, 56, 0.72), rgba(6, 18, 38, 0.54));
}

/* Solitude — wide video, few words */

.hf-section--solitude {
  min-height: 72svh;
  align-items: center;
}

.hf-section--solitude .hf-section-body {
  max-width: 52ch;
  margin-left: auto;
}

.hf-section--solitude h2 {
  max-width: 14ch;
}

.hf-section--system .hf-section-body,
.hf-section--answers .hf-section-body {
  max-width: 72ch;
}

/* Nipponeer — blue and footage only, outward-facing */

.hf-section--nipponeer {
  min-height: 82svh;
  align-items: center;
}

.hf-section--nipponeer h2 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

/* Selected Work — images lead, quiet hover */

.hf-section--selected {
  background: linear-gradient(180deg,
    rgba(7, 22, 44, 0.04),
    rgba(7, 22, 44, 0.34),
    rgba(7, 22, 44, 0.04));
}

.hf-section h2,
.hf-final h2 {
  margin: 0 0 1.5rem;
  color: var(--hf-paper);
  font-size: 2.6rem;
  line-height: 1.08;
  font-weight: 700;
}

.hf-section p,
.hf-section li,
.hf-answer dd,
.hf-answer dt {
  color: var(--hf-mist);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hf-section p {
  margin: 0 0 1rem;
}

.hf-lede p:first-child {
  color: var(--hf-paper);
  font-size: 1.16rem;
}

.hf-grid-4,
.hf-work-grid,
.hf-answer-grid {
  display: grid;
  gap: 1rem;
}

.hf-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0;
}

.hf-method-card,
.hf-practice-card,
.hf-work-card,
.hf-answer {
  border: 1px solid var(--hf-line);
  background: rgba(12, 33, 64, 0.30);
}

.hf-method-card,
.hf-practice-card {
  padding: 1.15rem;
}

.hf-method-card h3,
.hf-practice-card h3,
.hf-work-card h3 {
  margin: 0 0 0.75rem;
  color: var(--hf-paper);
  font-size: 1rem;
  line-height: 1.35;
}

.hf-method-card p,
.hf-practice-card p,
.hf-work-card p,
.hf-answer dd {
  margin: 0;
}

.hf-line-set {
  margin-top: 2rem;
  color: var(--hf-paper);
  font-size: 1.28rem;
  line-height: 1.6;
}

.hf-line-set p {
  margin: 0.15rem 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.hf-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hf-work-card {
  min-width: 0;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hf-work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 220, 238, 0.30);
}

.hf-work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  background: var(--hf-deep-blue);
  filter: brightness(0.96);
  transition: filter 0.4s ease;
}

.hf-work-card:hover img {
  filter: brightness(1.04);
}

.hf-work-card-content {
  padding: 1rem;
}

.hf-card-meta {
  display: block;
  margin-bottom: 0.45rem;
  letter-spacing: 0.05em;
  text-transform: none;
}

.hf-work-card a {
  text-decoration-color: rgba(123, 143, 168, 0.65);
  text-underline-offset: 0.18em;
}

.hf-work-card a:hover,
.hf-work-card a:focus-visible {
  text-decoration-color: var(--hf-mist);
}

/* SoundBetter — a signal inside the same blue world */

.hf-signal {
  border-left: 2px solid rgba(123, 143, 168, 0.7);
  padding-left: 1.2rem;
}

.hf-answer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hf-answer {
  padding: 1rem;
}

.hf-answer dt {
  margin: 0 0 0.35rem;
  color: var(--hf-paper);
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Final / Contact — the video returns to hero-level presence
--------------------------------------------------------------------------- */

.hf-final {
  padding: clamp(4rem, 11svh, 7rem) clamp(1.25rem, 5%, 3rem);
  margin: 0 calc(clamp(1.25rem, 5%, 3rem) * -1);
  border-top: 1px solid var(--hf-line);
  background: linear-gradient(180deg, rgba(7, 22, 44, 0.06), rgba(7, 22, 44, 0.22));
}

.hf-final-inner {
  max-width: 70ch;
  padding: 0;
  border: 0;
  background: transparent;
  text-shadow: 0 2px 24px rgba(2, 9, 22, 0.78);
}

.hf-final-inner > p {
  margin: 0 0 1rem;
  color: var(--hf-mist);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hf-final-inner > h2 {
  margin-top: 1.8rem;
}

.hf-final-copy {
  margin: 1.8rem 0;
  color: var(--hf-paper);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: 0.03em;
  font-weight: 620;
}

.hf-final-copy--lead {
  margin: 0 0 2.3rem;
}

.hf-final-copy p {
  margin: 0 0 1rem;
}

.hf-final-copy .hf-en-sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
}

.hf-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5%, 3rem) 3rem;
  border-top: 1px solid var(--hf-line);
  background: rgba(6, 18, 38, 0.42);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  color: var(--hf-blue-grey);
  font-size: 0.9rem;
}

.hf-footer a {
  color: var(--hf-mist);
}

/* ---------------------------------------------------------------------------
   Quiet motion
--------------------------------------------------------------------------- */

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

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hf-title {
    font-size: 4.1rem;
  }

  .hf-section,
  .hf-grid-4,
  .hf-work-grid,
  .hf-answer-grid {
    grid-template-columns: 1fr;
  }

  .hf-section--method .hf-method-card {
    border-left: 0;
  }

  .hf-section-label {
    position: static;
  }

  .hf-section--solitude .hf-section-body {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  .hf-hero-inner {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }

  .hero-manifesto {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
    line-height: 1.42;
  }

  .hf-title {
    max-width: 100%;
    font-size: 3.1rem;
  }

  .hf-section h2,
  .hf-final h2 {
    font-size: 2.1rem;
  }

  .hf-section--origin h2,
  .hf-section--nipponeer h2,
  .hf-section--solitude h2 {
    font-size: 2.3rem;
  }

  .hf-actions,
  .hf-contact-actions {
    flex-direction: column;
  }

  .hf-button {
    width: 100%;
  }

  /* Lighter glass on mobile */
  .hf-section--panel .hf-section-body,
  .hiroshi-profile-page .site-glass-header,
  .hf-footer {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hf-section--method .hf-grid-4 {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 33, 64, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-background-video {
    display: none;
  }

  .hf-hero-inner {
    animation: none;
  }

  .hf-button,
  .hf-work-card,
  .hf-work-card img,
  .hf-work-card a {
    transition: none;
  }
}
