:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --paper-strong: #ffffff;
  --ink: #10120f;
  --muted: #676b62;
  --line: #d9ddd2;
  --coral: #ff6047;
  --cyan: #00a6b4;
  --yellow: #e9de39;
  --green: #4fbe62;
  --blue: #2367c6;
  --shadow: 0 22px 70px rgba(16, 18, 15, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 15, 0.035) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, #ffffff 0%, var(--paper) 55%, #f1f4ed 100%);
  color: var(--ink);
  min-width: 320px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 14% 18%, rgba(233, 222, 57, 0.2), transparent 20%),
    radial-gradient(circle at 88% 12%, rgba(0, 166, 180, 0.15), transparent 18%),
    radial-gradient(circle at 74% 82%, rgba(255, 96, 71, 0.14), transparent 22%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.nav-action,
.button,
.text-link {
  font-size: 0.9rem;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: conic-gradient(from 12deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--blue), var(--coral));
  box-shadow: inset 0 0 0 5px var(--paper-strong);
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 28px;
  color: #373a35;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--cyan);
}

.nav-action {
  justify-self: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  min-height: min(820px, calc(100vh - 72px));
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: clamp(40px, 5.5vw, 72px) 0 clamp(52px, 6vw, 78px);
}

.hue-rail {
  position: absolute;
  left: -22px;
  top: 20%;
  display: grid;
  gap: 10px;
}

.hue-rail span {
  display: block;
  width: 8px;
  height: 54px;
  border-radius: 999px;
}

.hue-rail span:nth-child(1) { background: var(--coral); }
.hue-rail span:nth-child(2) { background: var(--yellow); }
.hue-rail span:nth-child(3) { background: var(--green); }
.hue-rail span:nth-child(4) { background: var(--cyan); }
.hue-rail span:nth-child(5) { background: var(--ink); }

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 10.6vw, 9.7rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.6rem);
  font-weight: 650;
  line-height: 1.04;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 18, 15, 0.12);
}

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.64);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  transform: rotate(1.5deg);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: var(--radius);
}

.hero-visual::before {
  inset: 18px -18px -18px 18px;
  background: var(--yellow);
}

.hero-visual::after {
  inset: -16px 16px 16px -16px;
  border: 2px solid var(--ink);
}

.hero-visual img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spec-card {
  position: absolute;
  display: grid;
  gap: 4px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 13px 15px;
  box-shadow: 0 12px 30px rgba(16, 18, 15, 0.1);
  backdrop-filter: blur(16px);
}

.spec-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-card strong {
  font-size: 0.95rem;
}

.spec-card-one {
  top: 34px;
  right: -26px;
}

.spec-card-two {
  bottom: 34px;
  left: -30px;
}

.section {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 0.95fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.studio-panel h2,
.contact-section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: 0;
}

.section-heading p,
.studio-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.55;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: 0 16px 50px rgba(16, 18, 15, 0.08);
}

.work-card.featured-work {
  transform: translateY(-28px);
}

.work-media {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-media {
  background: #f4f4ef;
}

.identity-media span {
  position: absolute;
  display: block;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.identity-media span:nth-child(1) {
  inset: 28px 72px 160px 28px;
  background: var(--coral);
}

.identity-media span:nth-child(2) {
  inset: 128px 28px 76px 116px;
  background: var(--yellow);
}

.identity-media span:nth-child(3) {
  left: 46px;
  right: 46px;
  bottom: 28px;
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--paper-strong) 14px 28px);
}

.experience-media {
  background:
    linear-gradient(135deg, rgba(0, 166, 180, 0.24), transparent 44%),
    #f8faf4;
}

.experience-media span {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.experience-media span:nth-child(1) {
  inset: 40px 42px auto;
  height: 72px;
}

.experience-media span:nth-child(2) {
  left: 42px;
  right: 92px;
  top: 142px;
  height: 132px;
  background: var(--green);
}

.experience-media span:nth-child(3) {
  width: 128px;
  height: 128px;
  right: 42px;
  bottom: 42px;
  border-radius: 50%;
  background: var(--cyan);
}

.work-card-copy {
  padding: 22px;
}

.work-card-copy p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.08;
}

.services-section {
  border-top: 1px solid var(--line);
}

.service-list {
  display: grid;
  border-top: 1px solid var(--ink);
}

.service-list article {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.5fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--ink);
  padding: 28px 0;
}

.service-index {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 0.8rem;
  font-weight: 800;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1;
}

.service-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.studio-section {
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 0 0 clamp(72px, 10vw, 132px);
}

.studio-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 0.62fr);
  gap: 48px;
  align-items: end;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 96, 71, 0.16) 0 16%, transparent 16% 100%),
    #ffffff;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}

.studio-copy {
  display: grid;
  gap: 22px;
}

.text-link {
  justify-self: start;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) auto;
  gap: 24px;
  align-items: center;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 880px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .studio-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    max-width: 560px;
  }

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

  .work-card,
  .work-card.featured-work {
    min-height: 0;
    transform: none;
  }

  .service-list article {
    grid-template-columns: 64px 1fr;
  }

  .service-list p {
    grid-column: 2;
  }

  .contact-section .button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section,
  .studio-section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    gap: 14px;
    padding-top: 14px;
  }

  .nav-action {
    font-size: 0.78rem;
  }

  .hero-copy h1 {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .hero-copy p {
    font-size: 1.38rem;
  }

  .hue-rail {
    display: none;
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual::before,
  .hero-visual::after,
  .spec-card {
    display: none;
  }

  .hero-visual img {
    aspect-ratio: 1 / 1;
  }

  .work-media {
    height: 300px;
  }

  .service-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-list p {
    grid-column: auto;
  }

  .studio-panel {
    padding: 24px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
