@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --font-manrope: "Manrope";
  --font-dm-mono: "DM Mono";
  --paper: #f3f0e9;
  --ink: #121217;
  --muted: #65635f;
  --line: rgba(18, 18, 23, 0.18);
  --violet: #7c3aed;
  --coral: #ff6b4a;
  --blue: #1287d4;
  --green: #5cab45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-manrope), sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--violet);
  color: white;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1420px, calc(100% - 3rem));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: max-content;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.wordmark span {
  color: var(--coral);
}

nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a,
.header-cta {
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-cta span {
  font-size: 1rem;
}

.hero {
  width: min(1420px, calc(100% - 3rem));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.eyebrow,
.section-label {
  margin: 0;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(92, 171, 69, 0.15);
}

h1 {
  max-width: 1000px;
  margin: 1.6rem 0 2rem;
  font-size: clamp(4rem, 8.3vw, 9.2rem);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.89;
}

h1 em {
  color: var(--violet);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 710px;
  margin: 0;
  color: #44433f;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
}

.button {
  min-height: 52px;
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.3rem;
  border: 1px solid transparent;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-dark {
  background: var(--ink);
  color: white;
  box-shadow: 7px 7px 0 var(--coral);
}

.button-dark:hover,
.button-dark:focus-visible {
  box-shadow: 10px 10px 0 var(--coral);
}

.text-link,
.case-link {
  width: max-content;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-portrait {
  position: relative;
  align-self: stretch;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  width: min(100%, 390px);
  padding: 0.85rem;
  background: var(--coral);
  transform: rotate(2deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -1.5rem 1.5rem 1.5rem -1.5rem;
  border: 1px solid var(--ink);
  z-index: -1;
}

.portrait-frame img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.8) contrast(1.04);
}

.portrait-note {
  position: absolute;
  right: 0;
  bottom: 1rem;
  width: min(250px, 72%);
  padding: 1rem 1.1rem;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  line-height: 1.5;
  transform: rotate(-2deg);
}

.portrait-note span {
  display: block;
  margin-bottom: 0.35rem;
  color: #bcb8b1;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portrait-sticker {
  position: absolute;
  top: 8%;
  left: -1rem;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d5ff57;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-10deg);
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: white;
}

.proof p {
  min-height: 146px;
  margin: 0;
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #bcb8b1;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.67rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.proof p:last-child {
  border-right: 0;
}

.proof strong {
  margin-bottom: 0.35rem;
  color: white;
  font-family: var(--font-manrope), sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: none;
}

.work-section {
  padding: clamp(5rem, 10vw, 10rem) max(1.5rem, calc((100% - 1420px) / 2));
  background: #fcfbf7;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.section-label {
  color: var(--violet);
}

.section-heading h2,
.about-intro h2,
.contact-section h2 {
  margin: 1.15rem 0 1.5rem;
  font-size: clamp(2.8rem, 6.2vw, 6.8rem);
  font-weight: 610;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.section-heading > p:last-child {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 7vw, 7rem) clamp(1.5rem, 4vw, 4rem);
}

.project-card:nth-child(even) {
  margin-top: clamp(3rem, 8vw, 8rem);
}

.project-visual {
  position: relative;
  min-height: 440px;
  padding: clamp(2rem, 4vw, 4rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eae7df;
  border: 1px solid var(--line);
}

.project-violet .project-visual {
  background: #e8ddff;
}

.project-blue .project-visual {
  background: #dbeefa;
}

.project-coral .project-visual {
  background: #ffe1d7;
}

.project-green .project-visual {
  background: #deeed8;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 30%, rgba(255, 255, 255, 0.55));
  opacity: 0;
  transition: opacity 250ms ease;
}

.project-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 370px;
  object-fit: contain;
  box-shadow: 0 24px 50px rgba(18, 18, 23, 0.13);
  transition: transform 350ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-visual:hover::after {
  opacity: 1;
}

.project-visual:hover img,
.project-visual:focus-visible img {
  transform: scale(1.035) rotate(-0.5deg);
}

.project-index,
.project-open {
  position: absolute;
  z-index: 2;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.72rem;
}

.project-index {
  top: 1.2rem;
  left: 1.2rem;
}

.project-open {
  right: 1.2rem;
  bottom: 1.2rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.project-visual:hover .project-open,
.project-visual:focus-visible .project-open {
  transform: rotate(45deg);
}

.project-copy {
  padding-top: 1.5rem;
}

.project-copy > p:first-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-copy h3 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.065em;
}

.project-description {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-copy ul {
  margin: 1.3rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.project-copy li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portfolio-link {
  width: max-content;
  max-width: 100%;
  margin: clamp(5rem, 10vw, 9rem) auto 0;
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid var(--ink);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 600;
}

.approach-section {
  padding: clamp(5rem, 10vw, 10rem) max(1.5rem, calc((100% - 1420px) / 2));
  background: #dacbff;
}

.approach-heading {
  max-width: 1040px;
}

.approach-heading .section-label {
  color: var(--ink);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.approach-grid article {
  min-height: 340px;
  padding: 1.4rem clamp(1.2rem, 3vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ink);
}

.approach-grid article:last-child {
  border-right: 0;
}

.approach-grid span {
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.68rem;
}

.approach-grid h3 {
  margin: auto 0 1.1rem;
  font-size: clamp(1.6rem, 2.7vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.approach-grid p {
  max-width: 360px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.toolbelt {
  padding-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  gap: 2rem;
}

.toolbelt > p {
  margin: 0;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.toolbelt ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}

.toolbelt li {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(18, 18, 23, 0.45);
  border-radius: 999px;
  font-size: 0.82rem;
}

.about-section {
  padding: clamp(5rem, 10vw, 10rem) max(1.5rem, calc((100% - 1420px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(3rem, 10vw, 10rem);
}

.about-intro .section-label {
  color: var(--coral);
}

.about-intro h2 {
  font-size: clamp(3rem, 6.2vw, 6.6rem);
}

.about-copy {
  align-self: end;
}

.about-copy p {
  margin: 0 0 1.5rem;
  color: #45433f;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.75;
}

.about-copy .text-link {
  display: block;
  margin-top: 2.25rem;
}

.contact-section {
  min-height: 620px;
  padding: clamp(5rem, 10vw, 9rem) max(1.5rem, calc((100% - 1420px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  color: white;
}

.contact-section .section-label {
  color: #d5ff57;
}

.contact-section h2 {
  max-width: 1100px;
  margin-bottom: 4rem;
  font-size: clamp(4rem, 9vw, 9.5rem);
}

.contact-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.button-light {
  background: white;
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--violet);
}

.button-light:hover,
.button-light:focus-visible {
  box-shadow: 10px 10px 0 var(--violet);
}

.contact-row > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.72rem;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-row > div a:hover,
.contact-row > div a:focus-visible {
  color: #d5ff57;
}

footer {
  min-height: 110px;
  padding: 1.5rem max(1.5rem, calc((100% - 1420px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--ink);
  color: #aca8a0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-dm-mono), monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-mark {
  color: white;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 5px;
}

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

  .hero-portrait {
    width: min(100%, 600px);
    min-height: 540px;
    margin: 0 auto;
  }

  .proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof p:nth-child(2) {
    border-right: 0;
  }

  .proof p:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .project-visual {
    min-height: 330px;
  }

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

  .approach-grid article {
    min-height: 260px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .approach-grid article:last-child {
    border-bottom: 0;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    width: min(100% - 2rem, 1420px);
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    width: min(100% - 2rem, 1420px);
    padding-top: 4.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 17vw, 6rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-portrait {
    min-height: 470px;
  }

  .portrait-frame {
    width: min(88%, 360px);
  }

  .portrait-sticker {
    left: 0;
  }

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

  .proof p {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .proof p:nth-child(3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

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

  .project-card:nth-child(even) {
    margin-top: 0;
  }

  .project-visual {
    min-height: 300px;
  }

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

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-row > div {
    text-align: left;
  }

  footer {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  footer p:first-of-type {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
