/* Home page sections (also reused by Work / About) */
section {
  padding: clamp(80px, 12vw, 180px) var(--pad);
}
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding-top: 140px;
  overflow: hidden;
}
.hero h1 .ln {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.hero h1 .ln i {
  display: inline-block;
  font-style: normal;
}
.hero h1 {
  font-size: clamp(56px, 13vw, 210px);
  max-width: 11ch;
  position: relative;
}
.hero .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  position: relative;
}
.hero p {
  max-width: 34ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
}
.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--pad);
}
.about h2 {
  font-size: clamp(40px, 7vw, 112px);
}
.about .copy {
  max-width: 52ch;
  margin-top: 40px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.stats b {
  display: block;
  font: 900 clamp(40px, 6vw, 88px)/1 var(--display);
  letter-spacing: -0.04em;
}
.stats span {
  color: var(--gray);
  font-size: 14px;
}
.svc {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--pad);
  align-items: start;
}
.svc h2 {
  font-size: clamp(40px, 7vw, 112px);
  grid-column: 1/-1;
  margin-bottom: 56px;
  max-width: 12ch;
}
.svc ol {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.svc li {
  border-bottom: 1px solid var(--line);
}
.svc button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 28px 0;
  transition:
    padding 0.5s var(--ease),
    opacity 0.4s;
}
.svc button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.svc ol:hover button:not(:hover):not(:focus-visible) {
  opacity: 0.4;
}
.svc button:hover,
.svc button[aria-expanded='true'] {
  padding-left: 16px;
}
.svc h3 {
  font-size: clamp(28px, 3.4vw, 52px);
}
.svc .n {
  color: var(--gray);
  font-size: 14px;
  padding-top: 8px;
}
.svc .d {
  grid-column: 2;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
  color: var(--char);
}
.svc button[aria-expanded='true'] .d {
  max-height: 90px;
}
.svc .d p {
  padding-top: 12px;
  max-width: 40ch;
}
.preview {
  position: sticky;
  top: 110px;
  aspect-ratio: 4/5;
  background: var(--ink);
  overflow: hidden;
}
.preview i {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s;
}
.preview i.on {
  opacity: 1;
}
.v1 {
  background: radial-gradient(circle at 70% 30%, #7fe3ee, transparent 55%), #161618;
}
.v2 {
  background: linear-gradient(135deg, #9aa4f2 0 50%, #f6f5f2 50%);
}
.v3 {
  background: repeating-linear-gradient(90deg, #161618 0 24px, #b8f2e0 24px 26px);
}
.v4 {
  background:
    radial-gradient(circle at 30% 70%, #9cc4f5, transparent 50%),
    radial-gradient(circle at 70% 30%, #b8f2e0, transparent 45%), #f6f5f2;
}
.work h2 {
  font-size: clamp(40px, 7vw, 112px);
  margin-bottom: 72px;
}
.proj {
  display: block;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.proj:nth-of-type(even) {
  margin-left: clamp(0px, 14vw, 240px);
}
.proj:nth-of-type(3n) {
  width: 78%;
}
.proj .vis {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--char);
}
.proj:nth-of-type(2) .vis,
.proj:nth-of-type(5) .vis {
  aspect-ratio: 4/3;
}
.proj .vis i {
  position: absolute;
  inset: 0;
  transition: transform 1s var(--ease);
}
.proj:hover .vis i {
  transform: scale(1.05);
}
.p1 i {
  background: radial-gradient(circle at 25% 80%, #7fe3ee, transparent 50%), #1b1b1d;
}
.p2 i {
  background: linear-gradient(160deg, #e7e5df 55%, #9cc4f5 55%);
}
.p3 i {
  background: conic-gradient(from 200deg at 60% 60%, #111, #2a2a2c, #9aa4f2, #111);
}
.p4 i {
  background: radial-gradient(ellipse at 50% 120%, #b8f2e0, transparent 60%), #ecebe6;
}
.p5 i {
  background: repeating-radial-gradient(circle at 50% 50%, #111 0 18px, #7fe3ee 18px 19px);
}
.proj .meta {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px 16px;
  padding-top: 20px;
  align-items: baseline;
}
.proj h3 {
  font-size: clamp(28px, 4vw, 60px);
}
.proj p {
  grid-column: 2;
  max-width: 46ch;
  color: var(--char);
}
.proj .view {
  grid-column: 3;
  grid-row: 1;
  font-size: 15px;
  border-bottom: 1px solid;
  white-space: nowrap;
}
.proj .y,
.proj .c {
  color: var(--gray);
  font-size: 14px;
}
.phil {
  background: var(--ink);
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.phil h2 {
  font-size: clamp(48px, 11vw, 180px);
  max-width: 12ch;
  position: relative;
}
.phil h2 .w {
  display: inline-block;
}
.phil::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--iri);
}
.phil .label {
  color: #a0a0a4;
}
.why h2 {
  font-size: clamp(40px, 7vw, 112px);
  margin-bottom: 72px;
}
.why .three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--pad);
}
.why h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  margin-bottom: 12px;
}
.why p {
  color: var(--char);
  max-width: 26ch;
}
.contact {
  background: #fff;
  padding-bottom: clamp(64px, 8vw, 120px);
}
.contact h2 {
  font-size: clamp(56px, 14vw, 230px);
}
.contact p {
  font-size: clamp(20px, 2.4vw, 36px);
  margin: 24px 0 48px;
}
.contact .row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.phil.dark + .why {
  padding-top: clamp(80px, 12vw, 180px);
}

/* Hero with photographic background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #6b645a;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.04);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.5) 0%,
    rgba(17, 17, 17, 0.15) 38%,
    rgba(17, 17, 17, 0.62) 100%
  );
}
.hero-photo {
  color: #fff;
}
.hero-photo h1,
.hero-photo .row {
  z-index: 2;
}
.hero-photo p {
  color: rgba(255, 255, 255, 0.92);
}
.hero-photo .btn {
  border-color: #fff;
  color: #fff;
}
.hero-photo .btn:hover {
  background: #fff;
  color: var(--ink);
}
.hero-photo .btn.fill {
  background: #fff;
  color: var(--ink);
}
.hero-photo .btn.fill:hover {
  background: transparent;
  color: #fff;
}

.about .copy + .copy {
  margin-top: 20px;
}
