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

:root {
  --ink: #f6f2e9;
  --muted: #a8a39a;
  --canvas: #0d0c0a;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff633c;
  --yellow: #f4c95d;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.1;
  pointer-events: none;
}

.ambient-one {
  top: -20rem;
  right: -10rem;
  background: var(--orange);
}

.ambient-two {
  top: 42rem;
  left: -25rem;
  background: var(--yellow);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 18px;
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 8px;
  background: var(--orange);
  transform-origin: bottom;
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 13px; }

.header-link {
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--ink);
}

.hero {
  min-height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 104px 0 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 27px;
  height: 1px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 980px;
  margin-bottom: 36px;
  font-size: clamp(4rem, 9.6vw, 8.9rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy {
  max-width: 585px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
}

.arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link:hover .arrow,
.primary-link:focus-visible .arrow {
  transform: translateY(4px);
  border-color: var(--orange);
  background: var(--orange);
}

.work {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: end;
  margin-bottom: 56px;
}

.section-heading p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project {
  position: relative;
  min-height: 570px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #161411;
  transition: transform 220ms ease, border-color 220ms ease;
}

.project:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
}

.project::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -25%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  filter: blur(95px);
  opacity: 0.15;
}

.project-phrase::before {
  right: auto;
  left: -25%;
  background: var(--yellow);
}

.project-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: #7f7a71;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #81b873;
  box-shadow: 0 0 0 4px rgba(129, 184, 115, 0.09);
}

.project-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 116px;
  height: 116px;
  margin: 70px auto 82px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 31px;
  background: linear-gradient(145deg, #ff7d5d, #e4421c);
  box-shadow: 0 24px 80px rgba(255, 99, 60, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  transform: rotate(-6deg);
}

.phrase-icon {
  background: linear-gradient(145deg, #f7d97e, #dba726);
  box-shadow: 0 24px 80px rgba(244, 201, 93, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: #2a210d;
  transform: rotate(5deg);
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-kind {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-phrase .project-kind {
  color: var(--yellow);
}

.project h3 {
  margin-bottom: 12px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.project-content > p:not(.project-kind) {
  max-width: 410px;
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.65;
}

.project-content a {
  display: inline-flex;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.project-content a span {
  transition: transform 180ms ease;
}

.project-content a:hover span,
.project-content a:focus-visible span {
  transform: translate(3px, -3px);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto 1fr;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer p {
  margin-bottom: 0;
  text-align: center;
}

.copyright {
  text-align: right;
}

.privacy-link {
  color: var(--muted);
  transition: color 180ms ease;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  color: var(--ink);
}

.footer-brand {
  color: var(--ink);
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .hero > *:nth-child(2) { animation-delay: 70ms; }
  .hero > *:nth-child(3) { animation-delay: 140ms; }
  .hero > *:nth-child(4) { animation-delay: 210ms; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 820px) {
  .hero { min-height: 620px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .projects { grid-template-columns: 1fr; }
  .project { min-height: 540px; }
  footer { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .copyright { text-align: center; }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(100% - 32px, 1180px); }
  .site-header { padding: 22px 0; }
  .header-link { font-size: 0.82rem; }
  .hero { min-height: 570px; padding: 76px 0; }
  .eyebrow { margin-bottom: 26px; }
  h1 { margin-bottom: 28px; font-size: clamp(3.45rem, 17vw, 5rem); }
  .hero-copy { font-size: 1rem; }
  .work { padding: 84px 0; }
  .project { min-height: 515px; padding: 25px; border-radius: 22px; }
  .project-icon { width: 100px; height: 100px; margin: 66px auto 72px; font-size: 2.6rem; }
}
