:root {
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --radius: 28px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
  --font-sans: system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-synthesis: none;
}
p {
  text-wrap: pretty;
}

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

a {
  color: inherit;
  text-decoration: none;
}

.block {
  border-radius: var(--radius);
  overflow: hidden;
}

/* —— Hello —— */
.hero {
  background: #000;
  color: #f5f5f7;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 56px);
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 11em;
}

.portrait-slot {
  position: relative;
  align-self: center;
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  aspect-ratio: 1;
}

.portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-dot {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #30d158;
  border: 4px solid #000;
  animation: online-pulse 2.4s ease-out infinite;
}

@keyframes online-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(48, 209, 88, 0);
  }
}

.hero .lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.58;
  color: #a1a1a6;
}

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 980px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.016em;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background-color var(--duration) var(--ease);
}

.cta:hover,
.cta:focus-visible {
  background: #e8e8ed;
  transform: translateY(-1px);
  outline: none;
}

/* —— Panels —— */
.panel {
  background: var(--card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.panel h2,
.work-head h2,
.connect h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.points,
.reasons {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.points li,
.reasons li {
  position: relative;
  padding-left: 1.2em;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.014em;
  color: var(--muted);
}

.points li::before,
.reasons li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink);
}

.reasons li b {
  color: var(--ink);
  font-weight: 600;
}

.punch {
  display: inline-block;
  position: relative;
  margin-top: 28px;
  padding-bottom: 0.18em;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.punch::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: 0.02em;
  height: 0.38em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 16' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M2.5 10.8C36 7.2 71 13.4 108 9.1C142 5.2 176 12.8 214 8.6C236 6.4 258 11.2 277.5 7.8' stroke='%231d1d1f' stroke-width='2.35' stroke-linecap='round'/%3E%3Cpath d='M5 12.6C48 9.8 94 14.1 141 11.2C186 8.4 231 13.4 275 10.4' stroke='%231d1d1f' stroke-width='1.15' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* —— Work —— */
.work {
  padding: 0;
  background: transparent;
  overflow: visible;
}

.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-icon {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 12px;
  background: #f5f5f7;
  object-fit: contain;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.012em;
}

.step-num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 28px;
  color: var(--muted);
}

.step-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.price {
  position: relative;
  background: #000;
  color: #f5f5f7;
  padding: clamp(28px, 4vw, 48px);
}

.price-copy {
  position: relative;
  z-index: 1;
  max-width: 22em;
}

.price h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.price p {
  margin-top: 12px;
  max-width: 32em;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.014em;
  color: #a1a1a6;
}

.price-dollars {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(52%, 480px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
  justify-items: center;
  gap: 4px 2px;
  pointer-events: none;
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1;
  color: #30d158;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 58%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 58%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.price-dollars span {
  display: block;
}

.price-dollars span:nth-child(1) {
  font-size: 38px;
  transform: rotate(-12deg);
}

.price-dollars span:nth-child(2) {
  font-size: 64px;
  transform: rotate(6deg);
}

.price-dollars span:nth-child(3) {
  font-size: 28px;
  transform: rotate(14deg);
}

.price-dollars span:nth-child(4) {
  font-size: 52px;
  transform: rotate(-7deg);
}

.price-dollars span:nth-child(5) {
  font-size: 72px;
  transform: rotate(4deg);
}

.price-dollars span:nth-child(6) {
  font-size: 34px;
  transform: rotate(-16deg);
}

.price-dollars span:nth-child(7) {
  font-size: 46px;
  transform: rotate(9deg);
}

.price-dollars span:nth-child(8) {
  font-size: 88px;
  transform: rotate(-5deg);
}

.price-dollars span:nth-child(9) {
  font-size: 30px;
  transform: rotate(18deg);
}

.price-dollars span:nth-child(10) {
  font-size: 58px;
  transform: rotate(-9deg);
}

.price-dollars span:nth-child(11) {
  font-size: 42px;
  transform: rotate(7deg);
}

.price-dollars span:nth-child(12) {
  font-size: 66px;
  transform: rotate(-3deg);
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  overflow: visible;
}

.project {
  display: block;
  min-width: 0;
  overflow: visible;
  transform-origin: center;
  transition: scale 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.project:hover,
.project:focus-visible {
  scale: 1.016;
  z-index: 1;
  outline: none;
}

.shot {
  aspect-ratio: 1400 / 827;
  background: #e8e8ed;
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.meta {
  padding: 22px 22px 18px;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meta h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.2;
  transition: color var(--duration) var(--ease);
}

.meta p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.012em;
}

.bubble {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.12);
  color: #0071e3;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--duration) var(--ease);
}

.project:hover .bubble,
.project:focus-visible .bubble {
  background: rgba(0, 113, 227, 0.2);
}

.go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink);
  transition:
    background var(--duration) var(--ease),
    color var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.arrow {
  display: block;
  transform: rotate(-45deg);
  transform-origin: center;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* —— Connect —— */
.connect {
  background: var(--card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.connect h2 {
  margin: 0 0 12px;
}

.connect .sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  max-width: 32em;
}

.socials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--bg);
  transition-property: background-color, transform;
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.socials a:hover,
.socials a:focus-visible {
  background: #e8e8ed;
  transform: translateX(4px);
  outline: none;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.icon svg {
  width: 20px;
  height: 20px;
}

.socials .copy b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.socials .copy small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--muted);
}

.socials .go {
  margin-left: auto;
}

.socials a:hover .go,
.socials a:focus-visible .go {
  background: var(--ink);
  color: #fff;
}

.socials a:hover .arrow,
.socials a:focus-visible .arrow {
  transform: rotate(0deg);
}

@media (max-width: 699px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 22px 32px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(28px, 8.4vw, 40px);
    line-height: 1.12;
  }

  .hero .lead {
    margin-top: 16px;
  }

  .cta {
    margin-top: 22px;
  }

  .portrait-slot {
    align-self: flex-start;
    flex-basis: min(148px, 42vw);
    width: min(148px, 42vw);
    height: min(148px, 42vw);
  }

  .online-dot {
    right: 8px;
    bottom: 8px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .price-dollars {
    width: 46%;
  }
}

@media (min-width: 700px) {
  .projects,
  .cards:not(.steps) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .socials {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    grid-template-rows: auto 28px auto;
    gap: 8px 4px;
    align-items: stretch;
  }

  .steps .card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .steps .step-arrow:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .steps .card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .steps .step-arrow-mid {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .steps .card:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }

  .steps .step-arrow:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }

  .steps .card:nth-child(7) {
    grid-column: 3;
    grid-row: 3;
  }

  .step-arrow {
    height: auto;
  }

  .steps .step-arrow:nth-child(2) svg,
  .steps .step-arrow:nth-child(6) svg {
    transform: rotate(-90deg);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 8px 4px;
  }

  .steps .card:nth-child(1),
  .steps .step-arrow:nth-child(2),
  .steps .card:nth-child(3),
  .steps .step-arrow-mid,
  .steps .card:nth-child(5),
  .steps .step-arrow:nth-child(6),
  .steps .card:nth-child(7) {
    grid-column: auto;
    grid-row: auto;
  }

  .step-arrow-mid svg {
    transform: rotate(-90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .online-dot {
    animation: none;
  }
}
