/* Design A: photo-led. Each trade fills the screen with one of the firm's own
   photographs: blurred large as atmosphere, sharp at its real size beside the text. */

:root { --ink: #0f0e0d; --white: #ffffff; --soft: rgba(255, 255, 255, 0.72); --red: #e3262d; --pad: clamp(20px, 4.5vw, 72px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 1.0625rem/1.5 "Outfit", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* Header sits over the photograph */
.top { position: absolute; inset: 0 0 auto 0; z-index: 4; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 var(--pad); }
.logo { background: var(--white); padding: 18px 20px 16px; }
.logo img { width: 150px; }
.top nav { display: flex; gap: clamp(18px, 2.4vw, 40px); align-items: center; padding-top: 28px; font-size: 1rem; }
.top nav a { opacity: 0.9; }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.top .tel { border: 1px solid rgba(255, 255, 255, 0.5); padding: 9px 16px; opacity: 1; }
.top .tel:hover { background: var(--white); color: var(--ink); text-decoration: none; }

/* Stage */
.stage { position: relative; min-height: max(100svh, 680px); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.9s ease; }
.backdrop { position: absolute; inset: -80px; background-image: var(--photo); background-size: cover; background-position: center; filter: blur(34px) saturate(1.15) brightness(0.62); transform: scale(1.08); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 14, 13, 0.35) 0%, rgba(15, 14, 13, 0) 32%, rgba(15, 14, 13, 0.55) 100%); }

.slide-body { position: relative; z-index: 2; min-height: max(100svh, 680px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding: 150px var(--pad) 150px; }
.words { display: grid; gap: clamp(16px, 2vw, 26px); }
.kicker { font-size: 1rem; font-weight: 500; display: flex; align-items: center; gap: 14px; }
.kicker::before { content: ""; width: 44px; height: 2px; background: var(--red); }
h1, .h1 { font-weight: 500; font-size: clamp(2.125rem, 4.6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; }
.sub { color: var(--soft); max-width: 44ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); font-weight: 300; }

.plate { justify-self: end; width: min(100%, 540px); background: var(--white); color: var(--ink); padding: 10px 10px 0; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.plate img { width: 100%; }
.plate figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px 13px; font-size: 0.9375rem; }
.plate b { font-weight: 600; }
.plate span { color: #6b6661; }

/* Trade tabs along the bottom edge */
.tabs { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabs button { position: relative; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); color: var(--soft); text-align: left; cursor: pointer; padding: 20px 16px 30px 0; font: 500 1.0625rem/1.2 "Outfit", sans-serif; }
.tabs i { font-style: normal; font-size: 0.8125rem; font-weight: 400; margin-right: 12px; opacity: 0.7; }
.tabs button:hover { color: var(--white); }
.tabs button[aria-selected="true"] { color: var(--white); }
.tabs button::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--white); }
.tabs button[aria-selected="true"]::before { width: 100%; transition: width 6.5s linear; }
.stage.is-paused .tabs button[aria-selected="true"]::before { transition: none; width: 100%; }

/* Work strip */
.reel { padding: clamp(64px, 9vw, 128px) 0 clamp(48px, 6vw, 88px); }
.reel-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px); align-items: end; padding: 0 var(--pad) clamp(32px, 4vw, 56px); }
.reel-head h2 { font-weight: 500; font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em; }
.reel-head p { color: var(--soft); max-width: 52ch; font-weight: 300; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.strip { display: flex; gap: clamp(12px, 1.4vw, 22px); overflow-x: auto; padding: 0 var(--pad) 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #4a4643 transparent; }
.strip li { flex: 0 0 min(78vw, 420px); scroll-snap-align: start; display: grid; gap: 2px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.strip b { font-weight: 500; }
.strip span { color: var(--soft); font-size: 0.9375rem; font-weight: 300; }
.draft-note { padding: 40px var(--pad) 0; color: #6b6661; font-size: 0.875rem; }

@media (max-width: 860px) {
  .slide-body { grid-template-columns: minmax(0, 1fr); align-content: center; padding-top: 120px; padding-bottom: 190px; }
  .plate { justify-self: start; width: min(100%, 380px); }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { padding: 14px 10px 16px 0; font-size: 0.9375rem; }
  .reel-head { grid-template-columns: minmax(0, 1fr); }
  .top nav a:not(.tel) { display: none; }
  .logo { padding: 12px 14px 10px; }
  .logo img { width: 124px; }
  .top nav { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-on { transition: none; }
  .tabs button[aria-selected="true"]::before { transition: none; width: 100%; }
}
