@charset "UTF-8";
/*
    PORTFOLIO by N.D.
    netty.cc | ネッティ
*/
@import url("satoshi.css");
@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

a {
  text-decoration: none;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

.hidden {
  display: none;
}

/* Icon */
.icon {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  text-transform: none !important;
}

.icon:before {
  content: var(--fa);
}

.icon.brands {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.icon > .label {
  display: none;
}

.icon:before {
  line-height: solid;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: "Font Awesome 6 Brands";
}

/* Responsive */
body {
  -ms-overflow-style: scrollbar;
}

@media screen and (max-width: 480px) {
  html, body {
    min-width: 320px;
  }
}
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html {
  font-size: 18pt;
}

@media screen and (max-width: 1680px) {
  html {
    font-size: 14pt;
  }
}
@media screen and (max-width: 1280px) {
  html {
    font-size: 12pt;
  }
}
@media screen and (max-width: 736px) {
  html {
    font-size: 11pt;
  }
}
@media screen and (max-width: 360px) {
  html {
    font-size: 10pt;
  }
}
@keyframes iridescence {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 20% 50%;
  }
}
@keyframes subtle {
  0% {
    background-position: 0% 25%;
  }
  50% {
    background-position: 40% 25%;
  }
  100% {
    background-position: 5% 25%;
  }
}
html, body {
  scrollbar-gutter: stable;
  min-width: 320px;
  font-family: "Satoshi-Regular", sans-serif;
  color: #1c1f22;
  background-color: #f9fafb;
  overflow-x: hidden;
  font-size: 18px;
}

h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-family: "Satoshi-Medium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

h5 {
  font-family: "Satoshi-Medium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.7rem;
  margin-bottom: 1rem;
}

h6 {
  font-family: "Satoshi-Medium", sans-serif;
  margin-bottom: 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  line-height: 1;
}

p {
  line-height: 2em;
  color: #8d8d91;
  font-family: "Satoshi-Light", sans-serif;
}

span.iridescent {
  color: transparent;
  background: linear-gradient(110deg, #a9dcff, #d7c8ff, #c8dcff, #ffdbe8);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: iridescence 19s ease-in-out infinite alternate;
}

span.serif {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05em;
  letter-spacing: 0;
}

.link {
  position: relative;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  text-decoration: none;
  margin-right: 0.5em;
  text-transform: uppercase;
  color: #1c1f22;
  font-family: "Satoshi-Medium", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  padding: 0 0.4em;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 2px;
  background: linear-gradient(110deg, #a9dcff, #d7c8ff, #c8dcff, #ffdbe8);
  background-size: 200% 100%;
  border-radius: 100px;
  transition: background-position 0.6s ease, transform 0.3s ease;
}

#menu .link {
  padding-left: 0;
}

#menu .link::after {
  height: 0.04em;
}

.link:hover::after {
  background-position: 100% 0;
}

.link-arrow {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
  flex-shrink: 0;
}

.link-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: #1c1f22;
  transform: translateY(-50%);
}

.link-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #1c1f22;
  border-right: 1px solid #1c1f22;
  transform: translateY(-50%) rotate(45deg);
}

#menu1 .link-arrow::before {
  width: 52px;
  height: 4px;
}

#menu1 .link-arrow::after {
  width: 20px;
  height: 20px;
  border-top: 4px solid #1c1f22;
  border-right: 4px solid #1c1f22;
}

.actions {
  margin: 3rem 0 1rem 0;
}

.actions li:hover .link-arrow::before, #menu li:hover .link-arrow::before {
  width: 18px;
}

.actions li:hover .link-arrow::after, #menu li:hover .link-arrow::after {
  right: -3px;
}

.link-arrow::before,
.link-arrow::after {
  transition: all 0.3s ease;
}

nav {
  width: 100%;
  height: 4rem;
  background: transparent;
  position: absolute;
  top: 0;
  line-height: 4rem;
  padding: 0 calc((100vw - 1400px) / 2);
  z-index: 1000;
  transition: background-color 250ms 200ms ease-out;
}

nav::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #f9fafb;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms 200ms ease-out;
  z-index: -1;
}

nav.active::before {
  opacity: 1;
}

#nav.pinned {
  position: fixed;
  background: rgba(249, 250, 251, 0.4);
  border-bottom: 1px solid rgba(249, 250, 251, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 250ms ease-out;
}

.nav-brand {
  display: inline-block;
  font-family: "Satoshi-Light", sans-serif;
}

.nav-brand .brand {
  font-weight: 100;
  letter-spacing: 3px;
  font-size: 1.3em;
  pointer-events: none;
}

.nav-brand p .alt {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(110deg, #a9dcff, #d7c8ff, #ffdbe8, #fff1ce, #c7f3e5, #c8dcff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
}

#menu {
  visibility: hidden;
  background-color: transparent;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 3rem calc((100vw - 1400px) / 2);
  min-width: 100%;
  width: 100%;
  height: calc(100vh - 4rem);
  transform-origin: top;
  transform: rotateX(-90deg);
  transition: transform 250ms 200ms ease-out, visibility 250ms 200ms;
  text-align: left;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  z-index: 1000;
  line-height: 1;
}

#menu li {
  flex: 1;
  width: 100%;
  container-type: size;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#menu li a {
  font-size: 55cqh;
}

.nav-menu {
  height: 4rem;
  float: right;
}

#bars-toggle {
  opacity: 0;
  cursor: pointer;
  position: absolute;
}

#bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 2rem;
  height: 2rem;
  padding: 1rem;
  box-sizing: content-box;
  cursor: pointer;
  transition: transform 0.8s ease;
}

#bars .slice {
  display: block;
  width: 100%;
  height: 0;
  flex: 0 0 0;
  border: 0;
  border-top: 1px solid #1c1f22;
  transform-origin: center;
  will-change: transform;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

#bars-toggle:checked ~ #bars .slice:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

#bars-toggle:checked ~ #bars .slice:nth-child(2) {
  opacity: 0;
}

#bars-toggle:checked ~ #bars .slice:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

#bars-toggle:checked ~ #menu {
  visibility: visible;
  transform: rotateX(0deg);
}

.hero {
  z-index: 1;
  width: 100%;
  padding: 0 calc((100vw - 1400px) / 2);
  will-change: transform, opacity;
  text-align: center;
}

.hero-title {
  font-family: "Satoshi-Regular", sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.95;
}

.hero-title span {
  animation: iridescence 19s ease-in-out infinite alternate;
}

.hero-title span.dot {
  font-family: "Satoshi-Light", sans-serif;
}

.hero p {
  line-height: 2em;
  max-width: 30rem;
  margin: auto;
  color: #8d8d91;
  font-family: "Satoshi-Light", sans-serif;
}

#landing {
  position: relative;
}

.content {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #f9fafb;
  display: flex;
  align-items: center;
}

.clouds-background {
  position: absolute;
  inset: -4%;
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 1;
}

#clouds-background {
  background: url("/assets/images/cloud-background.jpg") center/cover no-repeat;
}

#clouds-video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 1;
}

.clouds-background img,
.clouds-background video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.clouds-background video {
  pointer-events: none;
}

.clouds-transition {
  z-index: 10;
  position: absolute;
  left: 0;
  top: 65svh;
  width: 100vw;
  height: auto;
  pointer-events: none;
  will-change: transform;
  display: grid;
  justify-items: center;
}

.clouds-transition > * {
  grid-row: 1;
  grid-column: 1;
}

.clouds-transition img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-user-drag: none;
}

.transition-viewport {
  align-self: end;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.intro {
  padding: 0 calc((100vw - 1400px) / 2);
  text-align: center;
  will-change: transform, opacity;
  pointer-events: auto;
  font-family: "Satoshi-Regular", sans-serif;
  overflow: hidden;
}

.intro h2 {
  max-width: 60rem;
  font-size: 2.5rem;
  line-height: 1.3;
  margin-top: 3rem;
}

.words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.18em;
}

.words .highlight-word {
  display: inline-block;
  opacity: 0.44;
  filter: blur(0.2px);
  will-change: color, opacity, filter, transform;
  color: #8d8d91;
}

.sliders {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider {
  width: 100%;
  max-width: 1000px;
  height: 4rem;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.slider .slide-track {
  display: flex;
  align-items: center;
  width: -moz-max-content;
  width: max-content;
}

.slider .slide {
  flex-shrink: 0;
  height: 6rem;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Satoshi-Light", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: #1c1f22;
}

.slider-left .slide-track {
  animation: scroll-left 25s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.slider-right .slide-track {
  animation: scroll-right 25s linear infinite;
}

@keyframes scroll-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
.scroll-indicator {
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #1c1f22;
  z-index: 10;
}

.scroll-text {
  font-family: "Satoshi-Regular", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 105px;
  background: #1c1f22;
  opacity: 0.7;
}

.scroll-arrow {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-right: 1px solid #1c1f22;
  border-bottom: 1px solid #1c1f22;
  transform: rotate(45deg);
  margin-top: -7px;
}

.scroll-indicator {
  animation: scrollFade 2.5s ease-in-out infinite;
}

@keyframes scrollFade {
  0%, 100% {
    opacity: 0.55;
    transform: translateY(-50%);
  }
  50% {
    opacity: 1;
    transform: translateY(calc(-50% + 6px));
  }
}
section {
  width: 100%;
  margin: 0 auto;
  padding: 5rem calc((100vw - 1400px) / 2);
  min-height: 500px;
  border-top: 1px solid #e7e5e6;
}

section.full {
  padding: 0;
}

#aboutme {
  padding: 0;
}

#aboutme .inner {
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 60% 40%;
}

#aboutme .about {
  width: 80%;
  padding: 5rem 0 5rem calc((100vw - 1400px) / 2);
}

#aboutme h2 {
  position: relative;
}

.portrait-wrapper {
  position: absolute;
  right: -1rem;
  top: -1.9rem;
  width: 170px;
  height: 170px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(169, 220, 255, 0.7490196078), rgba(215, 200, 255, 0.7490196078), rgba(200, 220, 255, 0.7490196078), rgba(255, 219, 232, 0.7490196078));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.portrait {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: #eee;
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

#aboutme .visual {
  position: relative;
  background-image: url("../images/laptop.jpg");
  background-position: 15%;
  background-size: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#aboutme .visual:hover {
  transform: scale(1.025);
}

#aboutme .visual .image {
  position: absolute;
  background-image: url("../images/laptop.jpg");
  top: 0;
  right: 0;
  width: 85%;
  margin: 1rem;
  overflow: hidden;
  border-radius: 0.8rem;
  background: #e7e5e6;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

#aboutme .visual .image img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#aboutme .visual .image:hover img {
  transform: scale(1.025);
}

#mosaic {
  padding: 0;
  height: auto;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 10cqw;
  gap: 0;
  border-top: 0;
}

#mosaic .cell {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #e7e5e6;
}

#mosaic .cell img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

#mosaic .cell:hover img {
  transform: scale(1.025);
}

#mosaic .cell.portrait {
  grid-column: 1/4;
  grid-row: 1/4;
}

#mosaic .cell.stack-a {
  grid-column: 4/6;
  grid-row: 1/3;
}

#mosaic .cell.stack-b {
  grid-column: 6/9;
  grid-row: 1/3;
}

#mosaic .cell.stack-c {
  grid-column: 4/9;
  grid-row: 3/3;
}

#mosaic .cell.stack-d {
  grid-column: 9/11;
  grid-row: 1/4;
}

#mosaic .cell.placeholder {
  background: linear-gradient(110deg, rgba(169, 220, 255, 0.35), rgba(215, 200, 255, 0.35), rgba(200, 220, 255, 0.35), rgba(255, 219, 232, 0.35));
  background: linear-gradient(110deg, #a9dcff, #d7c8ff, #c8dcff, #ffdbe8);
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

#process {
  height: 100vh;
  min-height: 800px;
}

#process .inner {
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  height: 100%;
  display: grid;
  grid-template-columns: 60% 40%;
}

#process .phases {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 80%;
  padding-left: calc((100vw - 1400px) / 2);
}

#process .phases > h4 {
  margin-top: 0;
}

#process .phases > p {
  padding: 0 0 4rem 0;
}

#process .phases .phases-wrapper {
  position: relative;
  padding-left: 2rem;
}

#process .phases .phases-wrapper::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 2rem;
  width: 1px;
  background: #e7e5e6;
}

#process .phase {
  position: relative;
  margin-left: 1rem;
  border-top: 1px solid #e7e5e6;
}

#process .phase:first-of-type {
  border-top: none;
}

#process .phases .phase.active::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 2rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid white;
  transform: translateX(0);
  background: #c8dcff;
  box-shadow: 0 0 0 5px #e9f0ff;
}

#process .phases .phase:first-of-type.active::before {
  top: 8px;
}

#process .phase h3 {
  margin-left: 3rem;
  position: relative;
  padding: 1.5rem 0;
  color: #8d8d91;
}

#process .phase.active h3 {
  color: #1c1f22;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

#process .phase.active h3 span {
  font-family: "Satoshi-Regular", sans-serif;
  font-style: normal;
}

#process .phase:first-of-type h3 {
  padding-top: 0;
}

#process .phase h3 > span {
  position: absolute;
  left: -3rem;
  color: #e7e5e6;
}

#process .phase.active h3 > span {
  color: transparent;
  background: linear-gradient(110deg, #a9dcff, #d7c8ff, #c8dcff, #ffdbe8);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

#process .phase p {
  display: none;
  width: 45%;
  margin-left: 3rem;
  font-size: 0.9rem;
  line-height: 1.5em;
  padding-bottom: 1.5rem;
}

#process .phase.active p {
  display: block;
}

#process .phase .action {
  font-family: "Satoshi-Medium", sans-serif;
  color: #8d8d91;
  position: absolute;
  top: 50%;
  padding-right: 0.5rem;
  right: 0;
  transform: translateY(-50%);
}

#process .phase .action .active {
  display: none;
}

#process .phase.active .action {
  width: 44px;
  height: 44px;
  margin-top: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a9dcff, #d7c8ff);
  color: #1c1f22;
  padding-right: 0;
  right: -0.8rem;
}

#process .phase.active .action .active {
  display: grid;
}

#process .phase.active .action .inactive {
  display: none;
}

#process .visuals {
  position: relative;
}

.visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-bg:first-child {
  z-index: 1;
}

.visual-bg:last-child {
  z-index: 2;
  opacity: 0;
}

#process .visuals .phase-index {
  position: absolute;
  z-index: 3;
  top: 2rem;
  right: 2rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

#process .visuals .phase-index #current {
  font-size: 0.9rem;
}

.phase-card {
  position: absolute;
  width: 80%;
  z-index: 4;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: 0.25rem;
  min-height: 4rem;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 50% 50%;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 50px rgba(60, 60, 70, 0.08);
  backdrop-filter: blur(18px);
}

#phase-description {
  display: inline-block;
  color: #8d8d91;
  line-height: 1.5rem;
}

#phase-description::first-line {
  line-height: 0.9rem;
}

#work {
  padding: 0;
  display: grid;
  height: 30rem;
  grid-template-columns: 40% 60%;
  overflow: hidden;
}

#work .description {
  padding: 5rem 0 5rem calc((100vw - 1400px) / 2);
}

#work .description p {
  width: 80%;
}

#work .work-grid {
  display: grid;
  grid-auto-flow: column;
  gap: 0;
  width: -moz-max-content;
  width: max-content;
}

.work-card {
  position: relative;
  aspect-ratio: 1/1;
  height: 100%;
  overflow: hidden;
  background: #c8dcff;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:nth-of-type(odd) {
  background: #c8dcff;
}

.work-card:nth-of-type(even) {
  background: #e9f0ff;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-media {
  position: relative;
  height: 100%;
}

.work-desc {
  color: #1c1f22;
  position: absolute;
  width: 80%;
  z-index: 4;
  left: 50%;
  transform: translate(-50%, -50%);
  bottom: 0.25rem;
  min-height: 4rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 50px rgba(60, 60, 70, 0.08);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.8s;
}

.work-card:hover .work-desc {
  opacity: 1;
}

.work-desc p {
  font-size: 0.8rem;
  color: #8d8d91;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  margin-top: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #a9dcff, #d7c8ff);
  color: #1c1f22;
  padding-right: 0;
  transform: scale(0.85);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.1, 0.8, 0.4, 1);
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: scale(1);
}

#contact {
  min-height: 100vh;
  background-image: url("/assets/images/contact.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  text-align: center;
}

#contact .inner {
  padding: 0 calc((100vw - 1400px) / 2);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#contact .inner p {
  margin-bottom: 4rem;
}

.contact-form {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-field label {
  font-size: 0.7rem;
  font-family: "Satoshi-Medium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #1c1f22;
  margin-bottom: 0.2rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0 0 0.5rem;
  border: 0;
  border-bottom: 1px solid #e7e5e6;
  border-radius: 0;
  background: transparent;
  font-family: "Satoshi-Regular", sans-serif;
  font-size: 0.85rem;
  color: #1c1f22;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.1, 0.8, 0.4, 1), color 0.3s cubic-bezier(0.1, 0.8, 0.4, 1);
}

.form-field input::-moz-placeholder, .form-field textarea::-moz-placeholder {
  color: #8d8d91;
  opacity: 0.65;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #8d8d91;
  opacity: 0.65;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #8d8d91;
}

.form-field textarea {
  resize: none;
}

button.link {
  border: 0;
  border-radius: 0;
  background: transparent;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-actions .actions li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.form-actions .link {
  margin: 0;
  font-size: 0.8rem;
}

#contact input.error,
#contact select.error,
#contact textarea.error {
  border-color: #e36666;
  color: #e36666;
}

footer {
  width: 100%;
  flex-shrink: 0;
  align-self: flex-end;
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: start;
  border-top: 1px solid #e7e5e6;
  color: #1c1f22;
  text-align: left;
}

footer p,
footer a {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.55;
  color: #8d8d91;
}

.footer-brand p {
  letter-spacing: 0.12em;
  font-size: 0.62rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-group a {
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.footer-group a:hover {
  color: #1c1f22;
}

footer .back-to-top {
  position: relative;
  float: right;
  padding-left: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
  color: #8d8d91;
  transition: border, color, 0.3s ease;
}

footer .back-to-top::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2rem;
  bottom: -2rem;
  width: 1px;
  background: #e7e5e6;
}

.back-arrow {
  position: relative;
  display: block;
  width: 9px;
  height: 9px;
  border-left: 1px solid #8d8d91;
  border-top: 1px solid #8d8d91;
  transform: rotate(45deg);
  margin-inline: auto;
  animation: backToTopArrow 2.5s ease-in-out infinite;
}

footer .back-to-top:hover {
  color: #1c1f22;
}

footer .back-to-top:hover .back-arrow {
  border-top-color: #1c1f22;
  border-left-color: #1c1f22;
}

@keyframes backToTopArrow {
  0%, 100% {
    opacity: 0.55;
    transform: translateY(0) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px) rotate(45deg);
  }
}
@media (max-width: 1439px) {
  section {
    min-height: auto;
  }
  nav {
    padding: 0 2rem;
  }
  #menu {
    padding: 1rem 2rem;
  }
  .hero {
    padding: 0 2rem;
  }
  .intro {
    padding-top: 15rem;
  }
  .intro h2 {
    font-size: 2rem;
  }
  .clouds-transition {
    top: 75svh;
  }
  .clouds-transition img {
    height: 130vh;
    width: 100%;
    overflow: hidden;
    margin-top: -10rem;
  }
  .transition-viewport {
    padding: 2rem 2rem;
    padding-bottom: 2rem;
  }
  #aboutme .inner {
    grid-template-columns: 1fr;
  }
  #aboutme .about {
    width: 100%;
    padding: 5rem 2rem;
  }
  #aboutme .visual {
    min-height: 22rem;
  }
  #aboutme .about p {
    max-width: 42rem;
  }
  #aboutme .visual {
    min-height: min(72vw, 640px);
    background-position: center;
  }
  #process .phases {
    padding: 0 2rem;
  }
  #work .description {
    padding: 5rem 2rem;
  }
}
@media (max-width: 1024px) {
  html, body {
    font-size: 16px;
  }
  .clouds-transition img {
    height: 130vh;
    width: auto;
    overflow: hidden;
    margin-top: -10rem;
  }
  .transition-viewport {
    padding: 2rem 2rem;
    padding-bottom: 10rem;
  }
  #process {
    height: auto;
    min-height: 0;
  }
  #process .inner {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  #process .phases {
    width: 100%;
    padding: 6rem 2rem;
  }
  #process .phases > p {
    padding-bottom: 3rem;
    max-width: 38rem;
  }
  #process .phase p {
    width: min(80%, 34rem);
  }
  #process .visuals {
    min-height: min(78vw, 680px);
    order: 2;
  }
  #work {
    height: auto;
    display: block;
    overflow: visible;
  }
  #work .description {
    padding: 6rem 2rem 4rem;
  }
  #work .description p {
    width: min(100%, 38rem);
  }
  #work .work-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
  }
  .work-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .work-desc {
    opacity: 1;
  }
  .work-arrow {
    opacity: 1;
    transform: scale(1);
  }
  #work .work-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  html, body {
    font-size: 14px;
  }
  #menu {
    padding: 7rem 2rem;
  }
  #menu li a {
    font-size: 40cqh;
  }
  #mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 50vw;
  }
  #mosaic .cell.portrait {
    grid-column: 1/2;
    grid-row: 1/3;
  }
  #mosaic .cell.stack-a {
    grid-column: 2/3;
    grid-row: 1/2;
  }
  #mosaic .cell.stack-b {
    grid-column: 2/3;
    grid-row: 2/3;
  }
  #mosaic .cell.stack-c {
    grid-column: 1/3;
    grid-row: 3/4;
  }
  #mosaic .cell.stack-d {
    grid-column: 1/3;
    grid-row: 4/5;
  }
  #contact .inner {
    padding: 0 2rem;
  }
  .contact-form {
    max-width: 100%;
    gap: 1.6rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .form-actions .actions {
    gap: 1rem;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    padding: 2rem 1.25rem;
    gap: 2rem 1rem;
  }
  footer .footer-group:nth-child(3) {
    grid-column: 1/2;
  }
  footer .back-to-top {
    grid-column: 2;
    grid-row: 1/4;
    padding-left: 1.5rem;
    justify-content: center;
  }
  footer span.back-arrow {
    margin-top: 2rem;
  }
  footer .back-to-top::before {
    top: -2rem;
    bottom: -2rem;
  }
}
@media (max-width: 479px) {
  html, body {
    font-size: 12px;
  }
  #contact .inner {
    padding: 5rem 2rem;
  }
}