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

:root {
  --paper: #f2f1f0;
  --muted: #acacac;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: #181818;
  font-family: Manrope, Arial, sans-serif;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: clamp(2rem, 8vw, 9rem);
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  --mouse-x: 0;
  --mouse-y: 0;
}

.art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 16%, #686868 0, #343434 29%, transparent 55%), linear-gradient(122deg, #1a1a1a 0%, #292929 42%, #111 100%);
}

.art::before, .art::after {
  position: absolute;
  inset: -20%;
  content: "";
  pointer-events: none;
}

.art::before {
  background: radial-gradient(circle at calc(54% + var(--mouse-x) * 8%) calc(27% + var(--mouse-y) * 6%), rgba(255, 255, 255, .2), transparent 27%);
  mix-blend-mode: screen;
  transition: background-position .2s linear;
}

.art::after {
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  animation: grain 8s steps(2) infinite;
}

.art b {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  opacity: .18;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.2) 46%, transparent 58%);
  transform: translateX(-120%) skewX(-16deg);
  animation: sheen 11s ease-in-out infinite;
}

.art i {
  position: absolute;
  display: block;
  width: min(73vw, 74rem);
  height: min(78vw, 72rem);
  border-radius: 48% 52% 43% 57% / 41% 42% 58% 59%;
  transform: rotate(-18deg);
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(ellipse at 27% 12%, rgba(255,255,255,.28) 0%, rgba(255,255,255,.06) 17%, transparent 37%),
    radial-gradient(ellipse at 70% 55%, rgba(100,100,100,.2), transparent 49%),
    linear-gradient(143deg, rgba(136,136,136,.68) 0%, rgba(55,55,55,.58) 34%, rgba(9,9,9,.84) 76%, rgba(1,1,1,.95) 100%);
  box-shadow: inset 18px 22px 38px rgba(255,255,255,.08), inset -25px -30px 50px rgba(0,0,0,.8), 0 35px 70px rgba(0,0,0,.42);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  opacity: .88;
  will-change: border-radius, transform;
}

.art i::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  background: linear-gradient(115deg, rgba(255,255,255,.26), transparent 23%, transparent 67%, rgba(255,255,255,.05));
  mix-blend-mode: screen;
  opacity: .68;
  animation: glass-reflection 14s ease-in-out infinite alternate;
}

.art i:nth-of-type(1) { top: -28%; right: -6%; animation: drift-one 28s ease-in-out infinite alternate, morph-one 19s ease-in-out infinite alternate; }
.art i:nth-of-type(2) { right: -14%; bottom: -58%; width: 83vw; background: radial-gradient(ellipse at 18% 3%, rgba(255,255,255,.13), transparent 27%), linear-gradient(145deg, rgba(64,64,64,.64), rgba(4,4,4,.94) 72%); animation: drift-two 21s ease-in-out infinite alternate, morph-two 24s ease-in-out infinite alternate; }
.art i:nth-of-type(3) { top: 22%; right: 18%; width: 38vw; height: 75vw; opacity: .62; background: linear-gradient(150deg, rgba(42,42,42,.44), rgba(1,1,1,.88) 68%); transform: rotate(38deg); animation: drift-three 17s ease-in-out infinite alternate, morph-three 20s ease-in-out infinite alternate; }

@keyframes drift-one {
  from { transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) rotate(-23deg) scale(1.04); }
}

@keyframes drift-two {
  from { transform: translate3d(0, 0, 0) rotate(-18deg) scale(1); }
  to { transform: translate3d(-5%, -4%, 0) rotate(-12deg) scale(1.07); }
}

@keyframes drift-three {
  from { transform: translate3d(0, 0, 0) rotate(38deg); }
  to { transform: translate3d(8%, -5%, 0) rotate(43deg); }
}

@keyframes morph-one {
  0% { border-radius: 48% 52% 43% 57% / 41% 42% 58% 59%; }
  50% { border-radius: 62% 38% 51% 49% / 53% 63% 37% 47%; }
  100% { border-radius: 42% 58% 60% 40% / 35% 49% 51% 65%; }
}

@keyframes morph-two {
  0% { border-radius: 42% 58% 60% 40% / 35% 49% 51% 65%; }
  50% { border-radius: 55% 45% 36% 64% / 64% 37% 63% 36%; }
  100% { border-radius: 48% 52% 43% 57% / 41% 42% 58% 59%; }
}

@keyframes morph-three {
  0% { border-radius: 52% 48% 61% 39% / 54% 42% 58% 46%; }
  50% { border-radius: 35% 65% 44% 56% / 45% 60% 40% 55%; }
  100% { border-radius: 62% 38% 51% 49% / 53% 63% 37% 47%; }
}

@keyframes glass-reflection {
  from { transform: translate3d(-8%, -4%, 0) rotate(-3deg); opacity: .32; }
  to { transform: translate3d(10%, 7%, 0) rotate(4deg); opacity: .78; }
}

@keyframes sheen {
  0%, 35% { transform: translateX(-120%) skewX(-16deg); }
  65%, 100% { transform: translateX(120%) skewX(-16deg); }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(3%, -2%); }
  50% { transform: translate(-2%, 3%); }
  75% { transform: translate(1%, 2%); }
  100% { transform: translate(-3%, -1%); }
}

header, .hero__content, footer { position: relative; z-index: 1; }
header { position: absolute; top: clamp(2rem, 4vw, 4rem); right: clamp(2rem, 6vw, 7rem); display: flex; align-items: center; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--paper); font-size: 1.4rem; font-weight: 400; letter-spacing: -.08em; text-decoration: none; }
.brand > img { width: 1.25rem; height: 1.25rem; object-fit: contain; filter: brightness(0) invert(1); }
.brand > span > span { margin-left: .08em; font-weight: 300; }
.hero__content { max-width: 69rem; margin-top: 5rem; }

.eyebrow {
  display: flex;
  gap: clamp(2rem, 7vw, 7rem);
  margin: 0 0 2.2rem;
  font: 0.75rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(3rem, 6.3vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.status {
  margin: 2.1rem 0 1.5rem;
  color: var(--muted);
  font: .72rem/1.3 "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  padding: .85rem 0;
  color: var(--paper);
  border-bottom: 1px solid var(--paper);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.button:hover, .button:focus-visible { opacity: .6; }
.button svg { width: 1rem; height: 1rem; flex: none; }

footer {
  position: absolute;
  right: clamp(2rem, 6vw, 7rem);
  bottom: clamp(2rem, 4vw, 3.5rem);
  left: clamp(2rem, 8vw, 9rem);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 0.7rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 500px) {
  .hero { padding: 2rem; }
  .hero__content { margin-top: 2rem; }
  h1 { letter-spacing: -0.065em; }
  .art i:nth-of-type(1) { width: 120vw; height: 130vw; top: -6%; right: -42%; }
  .art i:nth-of-type(2) { width: 140vw; height: 140vw; right: -85%; bottom: -14%; }
  .art i:nth-of-type(3) { display: none; }
  footer { left: 2rem; right: 2rem; font-size: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Portfolio Section */
.portfolio {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) clamp(2rem, 8vw, 9rem);
  background: #181818;
  color: var(--paper);
}
.portfolio__intro {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.eyebrow {
  margin: 0 0 1.5rem;
  font: .7rem/1.2 "DM Mono", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.portfolio h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.06em;
}
.portfolio__item {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.portfolio__meta {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:360px;
}
.portfolio__meta h3 {
  margin:0;
  font-size:clamp(1.8rem,3vw,3rem);
  line-height:.95;
  font-weight:400;
  text-transform:uppercase;
}
.portfolio__meta p {
  color:var(--muted);
  font:.65rem/2 "DM Mono", monospace;
  text-transform:uppercase;
}
.portfolio__meta a {
  width:fit-content;
  padding:.5rem .8rem;
  border:1px solid rgba(255,255,255,.25);
  color:var(--paper);
  text-decoration:none;
  font:.65rem "DM Mono", monospace;
  text-transform:uppercase;
}
.portfolio__visual {
  min-height:min(42vw,460px);
  border-radius:6px;
  border:1px solid rgba(255,255,255,.08);
}
.visual--one {
  background:radial-gradient(circle at 70% 25%, rgba(255, 214, 153, .45), transparent 20%),
    linear-gradient(120deg, #ff6b35, #ff9f1c, #ffd166);
}
.visual--two {
  background:radial-gradient(circle at 35% 40%, rgba(255,255,255,.45), transparent 18%),
    linear-gradient(120deg, #003087, #0070E0, #009CDE);
}
.visual--three {
  background: linear-gradient(
    90deg,
    #1A1D20 0%,
    #1A1D20 50%,
    #314B5E 50%,
    #314B5E 100%
  );
}
@media(max-width:700px){
  .portfolio__item{grid-template-columns:1fr}
  .portfolio__meta{min-height:260px}
  .portfolio__visual{min-height:260px}
}
