/* --- UI Kit: Portfolio V2 --- */
:root {
  --font-sans: "Arimo", system-ui, sans-serif;

  --color-text-primary: #000000;
  --color-text-muted: #646464;
  --color-text-soft: #8c8c8c;
  --color-text-hover: #cccccc;
  --color-surface: #ffffff;
  --color-surface-muted: #f0f0f0;
  --color-border: #d8d8d8;
  --color-button-main-hover: #484848;
  --color-button-secondary-hover: #e9e9e9;

  --text-h1-size: 32px;
  --text-h1-line: 32px;
  --text-h1-tracking: -1px;

  --text-h2-size: 24px;
  --text-h2-line: 28px;
  --text-h2-tracking: -0.5px;

  --text-body-size: 16px;
  --text-body-line: 20px;
  --text-body-tracking: 0;

  --text-bold-size: 16px;
  --text-bold-line: 20px;
  --text-bold-tracking: 0;
  --text-bold-weight: 700;

  --button-height: 42px;
  --button-gap: 8px;
  --button-padding-y: 12px;
  --button-padding-x: 16px;

  --site-header-height: 80px;
}

/* --- Reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: var(--site-header-height);
  font-family: var(--font-sans);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  color: var(--color-text-primary);
  background: var(--color-surface);
}

html.has-js body {
  opacity: 1;
  transition: opacity 300ms ease;
}

html.has-js body.is-loading {
  opacity: 0;
}

html.has-js body.is-ready {
  opacity: 1;
}

html.has-js body.is-leaving {
  opacity: 0;
  transition: opacity 90ms ease;
}

html.has-js body.home-page {
  opacity: 1;
}

html.has-js body.home-page.is-loading .site-header,
html.has-js body.home-page.is-loading .home-intro,
html.has-js body.home-page.is-loading .work-section-heading,
html.has-js body.home-page.is-loading .project,
html.has-js body.home-page.is-loading .site-footer {
  opacity: 0;
}

html.has-js body.home-page .site-header,
html.has-js body.home-page .home-intro,
html.has-js body.home-page .work-section-heading,
html.has-js body.home-page .project,
html.has-js body.home-page .site-footer {
  transition: opacity 300ms ease;
}

html.has-js body.home-page .site-header {
  transition-delay: 150ms;
}

html.has-js.keep-header-visible body.home-page.is-loading .site-header {
  opacity: 1;
  transition: none;
  transition-delay: 0ms;
}

html.has-js body.home-page .home-intro {
  transition-delay: 300ms;
}

html.has-js body.home-page .work-section-heading,
html.has-js body.home-page .project,
html.has-js body.home-page .site-footer {
  transition-delay: 600ms;
}

html.has-js body.home-page.is-ready .home-intro,
html.has-js body.home-page.is-ready .work-section-heading,
html.has-js body.home-page.is-ready .project,
html.has-js body.home-page.is-ready .site-footer {
  opacity: 1;
}

html.has-js body.home-page.is-leaving .site-header,
html.has-js body.home-page.is-leaving .home-intro,
html.has-js body.home-page.is-leaving .work-section-heading,
html.has-js body.home-page.is-leaving .project,
html.has-js body.home-page.is-leaving .site-footer {
  opacity: 0;
  transition: opacity 90ms ease;
  transition-delay: 0ms;
}

html.has-js.skip-page-fade body,
html.has-js.skip-page-fade body.is-loading,
html.has-js.skip-page-fade body.home-page.is-loading .site-header,
html.has-js.skip-page-fade body.home-page.is-loading .home-intro,
html.has-js.skip-page-fade body.home-page.is-loading .work-section-heading,
html.has-js.skip-page-fade body.home-page.is-loading .project,
html.has-js.skip-page-fade body.home-page.is-loading .site-footer {
  opacity: 1;
  transition: none;
  transition-delay: 0ms;
}

html.has-js body.about-page:not(.is-leaving),
html.has-js body.case-page:not(.is-leaving) {
  opacity: 1;
}

html.has-js body.about-page.is-loading .about-stack > .about-photo-block:first-child,
html.has-js body.about-page.is-loading .about-stack > *:not(:first-child),
html.has-js body.about-page.is-loading .site-footer,
html.has-js body.case-page.is-loading main > .case-hero,
html.has-js body.case-page.is-loading .launcher-story > figure:first-child,
html.has-js body.case-page.is-loading .case-content,
html.has-js body.case-page.is-loading .launcher-story > *:not(:first-child),
html.has-js body.case-page.is-loading .site-footer {
  opacity: 0;
}

html.has-js body.about-page .about-stack > *,
html.has-js body.about-page .site-footer,
html.has-js body.case-page main > .case-hero,
html.has-js body.case-page .launcher-story > figure:first-child,
html.has-js body.case-page .case-content,
html.has-js body.case-page .launcher-story > *:not(:first-child),
html.has-js body.case-page .site-footer {
  transition: opacity 300ms ease;
}

html.has-js body.about-page .about-stack > .about-photo-block:first-child,
html.has-js body.case-page main > .case-hero,
html.has-js body.case-page .launcher-story > figure:first-child {
  transition-delay: 0ms;
}

html.has-js body.about-page .about-stack > *:not(:first-child),
html.has-js body.about-page .site-footer,
html.has-js body.case-page .case-content,
html.has-js body.case-page .launcher-story > *:not(:first-child),
html.has-js body.case-page .site-footer {
  transition-delay: 300ms;
}

html.has-js body.about-page.is-ready .about-stack > *,
html.has-js body.about-page.is-ready .site-footer,
html.has-js body.case-page.is-ready main > .case-hero,
html.has-js body.case-page.is-ready .launcher-story > figure:first-child,
html.has-js body.case-page.is-ready .case-content,
html.has-js body.case-page.is-ready .launcher-story > *:not(:first-child),
html.has-js body.case-page.is-ready .site-footer {
  opacity: 1;
}

html.has-js.skip-page-fade body.about-page.is-loading .about-stack > *,
html.has-js.skip-page-fade body.about-page.is-loading .site-footer,
html.has-js.skip-page-fade body.case-page.is-loading main > .case-hero,
html.has-js.skip-page-fade body.case-page.is-loading .launcher-story > *,
html.has-js.skip-page-fade body.case-page.is-loading .case-content,
html.has-js.skip-page-fade body.case-page.is-loading .site-footer {
  opacity: 1;
  transition: none;
  transition-delay: 0ms;
}

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

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

/* --- Sticky header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  min-height: var(--site-header-height);
  padding: 24px;
  background: var(--color-surface);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.site-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 48px;
  row-gap: 8px;
  width: 100%;
  font-size: var(--text-body-size);
  line-height: 19px;
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
}

.site-header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 12px;
  color: var(--color-text-primary);
  background: var(--color-surface);
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.site-header a[aria-current="page"],
.site-header a.is-active {
  color: #111111;
  background: var(--color-surface-muted);
}

.site-header a:hover {
  color: var(--color-text-soft);
  background: var(--color-surface);
}

.site-header a[aria-current="page"]:hover,
.site-header a.is-active:hover {
  color: #111111;
  background: var(--color-surface-muted);
}

main {
  margin-left: 0;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  min-height: 455px;
  padding: 118px 24px;
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.site-footer-content {
  width: min(452px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 51px;
}

.site-footer-title {
  display: block;
  margin: 0;
  font-size: 96px;
  line-height: 96px;
  letter-spacing: -3.84px;
  font-weight: 400;
  text-align: center;
  color: var(--color-text-primary);
  white-space: nowrap;
  transition: color 200ms ease;
}

.site-footer-title:hover {
  color: #515151;
}

.site-footer-divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

.site-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  color: var(--color-text-soft);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  white-space: nowrap;
}

/* --- Home layout --- */
.home-main {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.home-intro {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.home-photo-wrap {
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: var(--color-surface);
}

.home-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.home-title {
  margin: 0;
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-tracking);
  font-weight: 400;
  color: var(--color-text-primary);
}

.home-bio {
  width: 100%;
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  color: var(--color-text-primary);
}

.work-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.work-section-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--color-text-soft);
}

.work-section-heading h2,
.work-section-heading p {
  margin: 0;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}

/* --- Project sections --- */
.project {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.project-content {
  width: 100%;
}

.project-media {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: background-color 300ms ease;
}

#project-1 { --case-highlight: #ffff05; }
#project-2 { --case-highlight: #f6bcff; }
#project-3 { --case-highlight: #88ffcd; }
#project-4 { --case-highlight: #ff3c00; }

@media (min-width: 700px) and (hover: hover) and (pointer: fine) {
  .project-media:hover { background: var(--case-highlight); }
}

.project-media > img {
  position: relative;
  z-index: 1;
  width: min(68.15%, 736px);
  max-height: 420px;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  transition: transform 260ms ease;
  will-change: transform;
}

.project-media.is-tilting > img {
  transition-duration: 80ms;
}

.project-media-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.hover-plate {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);
  background: var(--color-text-primary);
  color: var(--color-surface);
  font-size: var(--text-body-size);
  font-weight: 400;
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 300ms ease;
}

.hover-plate::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url("Images/button-arrow-light.svg") center / contain no-repeat;
}

.hover-plate.hover-plate-locked::after {
  background-image: url("Images/door-lock-line.svg");
}

.hover-plate.is-visible {
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  min-height: var(--button-height);
  padding: var(--button-padding-y) var(--button-padding-x);
  border: 1px solid transparent;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  white-space: nowrap;
}

.button::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.button-main {
  background: var(--color-text-primary);
  color: var(--color-surface);
}

.button-main::after {
  background: url("Images/button-arrow-light.svg") center / contain no-repeat;
}

.button-main:hover {
  background: var(--color-button-main-hover);
  color: var(--color-surface);
}

.button-secondary {
  background: transparent;
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.button-secondary::after {
  background: url("Images/button-arrow-dark.svg") center / contain no-repeat;
}

.button-secondary:hover {
  background: var(--color-button-secondary-hover);
  color: var(--color-text-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.project-company {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 700;
}

.company-logo-birch {
  background: #ffe243;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-company-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.company-name {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 700;
}

.company-name a {
  display: inline-block;
  color: var(--color-text-primary);
  text-decoration: none;
}

.company-name a:hover {
  color: var(--color-text-hover);
}

.company-meta {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  color: var(--color-text-soft);
}

.project-title {
  grid-column: 1 / -1;
  font-size: var(--text-h2-size);
  font-weight: 400;
  line-height: var(--text-h2-line);
  margin: 0 0 0.25rem;
  letter-spacing: var(--text-h2-tracking);
  color: var(--color-text-primary);
}

.project-date {
  grid-column: 1 / -1;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.project-desc {
  width: 100%;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  color: var(--color-text-primary);
  margin: 0;
}

.home-page .project-desc {
  max-width: 640px;
}

.project-desc strong {
  font-weight: 700;
}

.grey-text {
  color: var(--color-text-muted);
}

.cta {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  min-height: var(--button-height);
  align-self: start;
  justify-self: end;
  margin-top: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  color: var(--color-text-primary);
  background: transparent;
  border: 1px solid var(--color-text-primary);
  padding: var(--button-padding-y) var(--button-padding-x);
  white-space: nowrap;
}

.cta::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: url("Images/button-arrow-dark.svg") center / contain no-repeat;
}

.cta:hover {
  color: var(--color-text-primary);
  background: var(--color-button-secondary-hover);
}

.cta:focus {
  outline: none;
}

/* --- Case study pages --- */
.case-page main {
  margin-left: 0;
  padding-top: 24px;
}

.about-content {
  min-height: calc(100vh - var(--site-header-height));
  padding: 64px 24px 0;
}

.about-stack {
  width: min(1024px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-text-block {
  width: 560px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  color: #111111;
}

.about-text-block h1,
.about-text-block h2 {
  margin: 0;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}

.about-text-block p {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
}

.about-photo-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.about-photo-block figcaption {
  margin: 0;
  color: var(--color-text-soft);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  text-align: center;
}

.about-photo {
  overflow: hidden;
  background: var(--color-surface);
}

.about-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.about-photo-square {
  width: 420px;
  height: 420px;
}

.about-photo-portrait {
  width: 240px;
  height: 420px;
}

.about-photo-landscape {
  width: 480px;
  height: 320px;
}

.about-photo-fujiyoshida img {
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.about-photo-alpes img {
  object-position: center center;
}

.about-photo-yerevan img {
  object-position: 32% 45%;
}

.about-photo-barcelona img {
  object-position: center center;
}

.case-nav {
  margin: 24px 24px 64px;
  display: flex;
  justify-content: space-between;
}

.case-nav a {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  color: var(--color-text-primary);
  padding: 4px 0;
}

.case-nav a:hover {
  color: var(--color-text-hover);
}

.case-hero {
  width: calc(100% - 48px);
  height: 600px;
  margin: 0 24px;
  background: var(--color-surface-muted);
  overflow: hidden;
}

.case-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  font-size: var(--text-h1-size);
  font-weight: 700;
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-tracking);
  text-align: center;
  color: var(--color-text-primary);
  background: var(--color-surface-muted);
}

.case-content {
  padding: 24px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.case-content h1,
.case-content h2,
.case-content h3,
.case-content p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
}

.case-content h1,
.case-content h2,
.case-content h3 {
  margin: 0 0 0.25rem;
  font-weight: var(--text-bold-weight);
}

.case-content h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-tracking);
  font-weight: 400;
}

.case-content h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}

.case-content h3 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}

.case-content h2,
.case-content h3 {
  margin-top: 40px;
}

.case-date {
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.case-description,
.case-content section p {
  margin: 0;
  max-width: 640px;
}

.case-accordion {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 560px;
  max-width: 100%;
  margin: 48px auto 0;
}

.case-accordion-title {
  margin: 0 0 16px;
  color: var(--color-text-soft);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  text-align: center;
}

.case-accordion-items {
  display: flex;
  flex-direction: column;
}

.case-accordion a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
  text-align: left;
}

.case-accordion a:hover {
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
}

.case-accordion a::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: 0 0 16px;
  background: url("Images/case-list-arrow.svg") center / contain no-repeat;
  opacity: 0;
}

.case-accordion a:hover::after {
  opacity: 1;
}

.case-list-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.case-list-text {
  min-width: 0;
}

/* --- Launcher long case --- */
.launcher-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(1024px, calc(100% - 48px));
  max-width: 1024px;
  margin: 0 auto 80px;
}

.launcher-story figure {
  margin: 0;
}

.case-project-summary {
  width: 560px;
  max-width: 100%;
}

.launcher-text-block {
  width: 560px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-text-primary);
}

.launcher-text-block h1,
.launcher-text-block h2 {
  margin: 0;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}

.launcher-text-block p {
  margin: 0;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  letter-spacing: var(--text-body-tracking);
  font-weight: 400;
}

.launcher-text-block strong {
  font-weight: var(--text-bold-weight);
}

.launcher-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.launcher-visual img {
  display: block;
  max-width: none;
}

.launcher-visual-yellow {
  background: #ffff00;
}

.launcher-visual-light {
  background: #eeeff2;
}

.launcher-visual-black {
  height: 420px;
  background: #000000;
}

.launcher-hero-visual {
  height: 500px;
}

.launcher-hero-visual img {
  position: absolute;
  left: 50%;
  top: calc(50% + 102px);
  width: 880px;
  transform: translate(-50%, -50%);
}

.launcher-visual-black img {
  position: absolute;
  left: 50%;
  top: 42px;
  width: 880px;
  transform: translateX(-50%);
}

.launcher-visual-light > img {
  width: min(86%, 880px);
  margin: 42px auto 0;
}

.launcher-loop-diagram {
  height: 320px;
}

.loop-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate(-50%, -50%);
}

.loop-circles span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 194px;
  height: 194px;
  margin-left: -1px;
  border: 1px dashed var(--color-text-primary);
  border-radius: 50%;
  background: #ffff00;
  font-size: var(--text-body-size);
  line-height: 24px;
  text-align: center;
}

.loop-circles span:first-child {
  background: #ffffff;
}

.launcher-cycle-diagram {
  height: 320px;
}

.cycle-diagram-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 240px;
  transform: translate(-50%, -50%);
}

.cycle-diagram-inner::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 80px;
  width: 160px;
  height: 160px;
  border: 1px dashed var(--color-text-primary);
  border-radius: 50%;
  background: #ffff00;
}

.cycle-diagram-inner span {
  position: absolute;
  font-size: var(--text-body-size);
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
}

.cycle-diagram-inner span:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-diagram-inner span:nth-child(2) {
  top: 108px;
  right: 0;
  opacity: 0.25;
}

.cycle-diagram-inner span:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.cycle-diagram-inner span:nth-child(4) {
  top: 108px;
  left: 0;
  opacity: 0.25;
}

.launcher-workflow-diagram {
  height: 360px;
  padding: 64px 52px;
}

.workflow-lanes,
.workflow-steps,
.workflow-notes {
  display: flex;
  align-items: center;
}

.workflow-lanes {
  gap: 96px;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.5);
}

.workflow-steps {
  gap: 12px;
}

.workflow-steps div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 86px;
  border-radius: 32px;
  background: #ffffff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}

.workflow-steps div:first-child {
  background: transparent;
  border: 1px solid #777879;
}

.workflow-steps > span {
  font-size: 16px;
  line-height: 20px;
}

.workflow-notes {
  gap: 70px;
  margin: 12px 0 0 206px;
  color: #ff3300;
  font-size: var(--text-body-size);
  line-height: 19px;
}

.launcher-template-diagram {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 72px 68px 44px;
  text-align: center;
}

.launcher-template-diagram h3 {
  margin: 0 0 6px;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  font-weight: 700;
}

.launcher-template-diagram p {
  margin: 0 0 16px;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

.template-card {
  min-height: 242px;
  padding: 36px 24px;
  border-radius: 24px;
  background: #ffffff;
  font-size: var(--text-body-size);
  line-height: 26px;
}

.launcher-tall-visual {
  height: 636px;
}

.launcher-tall-visual img {
  width: 880px;
}

.launcher-wide-shot {
  height: auto;
  background: transparent;
}

.launcher-clean-image {
  height: auto;
  background: transparent;
}

.launcher-clean-image img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.launcher-wide-shot img {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.launcher-split-shot {
  height: 640px;
}

.launcher-split-shot img {
  position: absolute;
  top: 25px;
  width: 847px;
  margin: 0;
  border-radius: 24px 24px 0 0;
}

.launcher-split-shot img:first-child {
  left: 48px;
}

.launcher-split-shot img:last-child {
  left: 546px;
}

.launcher-final-carousel {
  height: 640px;
}

.launcher-final-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0;
  margin: 0;
}

.launcher-final-carousel img:first-child {
  animation: launcherCarouselFirst 6s infinite;
}

.launcher-final-carousel img:last-child {
  animation: launcherCarouselSecond 6s infinite;
}

@keyframes launcherCarouselFirst {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes launcherCarouselSecond {
  0%,
  45% {
    opacity: 0;
  }

  50%,
  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.launcher-story .launcher-result-visual {
  height: 420px;
  margin-bottom: 0;
}

.launcher-result-visual > div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 580px;
  transform: translate(-50%, -50%);
}

.launcher-result-visual p {
  margin: 0;
  font-size: 36px;
  line-height: 37px;
  letter-spacing: -0.18px;
}

.launcher-result-visual p:last-child {
  text-align: right;
}

.launcher-result-visual img {
  width: 572px;
  margin: 12px 0;
}




.launcher-project-list {
  width: 560px;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 32px;
}

@media (max-width: 699px) {
  :root {
    --site-header-height: 80px;
  }

  .site-header {
    padding: 16px;
  }

  .site-header-nav {
    flex-wrap: wrap;
    column-gap: 16px;
  }

  .site-footer {
    min-height: 360px;
    padding: 88px 16px;
  }

  .site-footer-content {
    gap: 40px;
  }

  .site-footer-title {
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -2px;
  }

  .site-footer-meta {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: space-between;
    gap: 12px 24px;
  }

  .about-content {
    padding: 32px 16px 0;
  }

  .about-stack {
    width: 100%;
  }

  .about-photo-square {
    width: min(420px, 100%);
    height: auto;
    aspect-ratio: 1;
  }

  .about-photo-portrait {
    width: min(240px, 100%);
    height: auto;
    aspect-ratio: 4 / 7;
  }

  .about-photo-landscape {
    width: min(480px, 100%);
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .home-main {
    width: calc(100% - 32px);
    padding: 32px 0 64px;
    gap: 64px;
  }

  .work-section {
    gap: 64px;
  }

  .project-media {
    height: 360px;
  }

  .project-media > img {
    width: min(88%, 736px);
    max-height: 280px;
  }

  .company-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .case-nav {
    margin: 24px 16px 64px;
  }

  .case-hero {
    width: calc(100% - 32px);
    height: 420px;
    margin: 0 16px;
  }

  .case-content {
    padding: 16px;
  }

  .launcher-story {
    width: calc(100% - 32px);
  }

  .launcher-hero-visual {
    height: 360px;
  }

  .launcher-hero-visual img,
  .launcher-visual-black img,
  .launcher-tall-visual img {
    width: 92%;
  }

  .launcher-loop-diagram,
  .launcher-cycle-diagram,
  .launcher-workflow-diagram,
  .launcher-template-diagram,
  .launcher-visual-black,
  .launcher-tall-visual,
  .launcher-split-shot,
  .launcher-final-carousel,
  .launcher-result-visual {
    height: auto;
    min-height: 320px;
  }

  .loop-circles span {
    width: 112px;
    height: 112px;
    font-size: 14px;
  }

  .workflow-lanes,
  .workflow-notes {
    display: none;
  }

  .launcher-workflow-diagram {
    padding: 32px 20px;
  }

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-steps div {
    width: 100%;
    max-width: 240px;
  }

  .workflow-steps > span {
    transform: rotate(90deg);
  }

  .launcher-template-diagram {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

  .launcher-wide-shot img {
    width: 100%;
    margin-top: 0;
  }

  .launcher-split-shot {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 20px;
  }

  .launcher-split-shot img {
    position: static;
    width: 100%;
    border-radius: 16px;
  }

  .launcher-final-carousel {
    min-height: 0;
    aspect-ratio: 1024 / 640;
  }

  .launcher-final-carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .launcher-result-visual > div {
    position: static;
    width: 100%;
    padding: 80px 20px;
    transform: none;
  }

  .launcher-result-visual p {
    font-size: 28px;
    line-height: 30px;
  }

  .launcher-result-visual img {
    width: 100%;
  }

}

/* --- Contact section --- */


.project-mobile-action {
  display: none;
}

@media (max-width: 699px), (hover: none), (pointer: coarse) {
  .hover-plate { display: none; }
  .project-media.is-centered { background: var(--case-highlight); }
  .project-mobile-action::after {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("Images/button-arrow-light.svg") center / contain no-repeat;
  }
  [data-case-disabled="true"] .project-mobile-action::after {
    background-image: url("Images/door-lock-line.svg");
  }
  .project-mobile-action {
    gap: var(--button-gap);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-height);
    padding: var(--button-padding-y) var(--button-padding-x);
    background: var(--color-text-primary);
    color: var(--color-surface);
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 699px) {
  .launcher-hero-visual {
    height: auto;
  }
  .launcher-hero-visual img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    transform: none;
  }
  .launcher-story .launcher-result-visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 1024 / 420;
    container-type: inline-size;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .launcher-result-visual > div {
    width: 57%;
    padding: 0;
  }
  .launcher-result-visual p {
    font-size: 3.52cqw;
    line-height: 1.03;
  }
  .launcher-result-visual img {
    display: block;
    width: 100%;
    height: auto;
  }
}


@media (max-width: 699px) {
  .case-project-summary {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 16px;
  }
  .case-project-summary .project-company-text {
    display: contents;
  }
  .case-project-summary .project-desc {
    grid-column: 1 / -1;
  }
  .site-footer-content {
    container-type: inline-size;
  }
  .site-footer-title {
    width: 100%;
    font-size: 19cqw;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .site-footer-meta {
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
  }
  .site-footer-meta > :nth-child(1) { grid-area: 1 / 1; }
  .site-footer-meta > :nth-child(2) { grid-area: 2 / 1; }
  .site-footer-meta > :nth-child(3) { grid-area: 1 / 2; text-align: right; }
  .site-footer-meta > :nth-child(4) { grid-area: 2 / 2; text-align: right; }
}


.case-toc { display: none; }
.case-page main article :is(h1, h2, h3)[id] {
  scroll-margin-top: 112px;
}
@media (min-width: 1024px) {
  .has-case-toc main { margin-inline: 240px; }
  .case-toc {
    display: block;
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    max-height: calc(100dvh - 224px);
    overflow-y: auto;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms;
  }
  .case-toc.is-visible { opacity: 1; visibility: visible; }
  .case-toc ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .case-toc a {
    display: block;
    font-size: var(--text-body-size);
    line-height: var(--text-body-line);
    font-weight: 400;
    color: var(--color-text-soft);
    text-decoration: none;
    overflow-wrap: break-word;
  }
  .case-toc a:hover,
  .case-toc a[aria-current="location"] { color: #111; }
  .case-toc a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-toc { transition: none; }
}


.next-case {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 480px;
  padding: 72px 24px 0;
  margin-bottom: 32px;
  overflow: hidden;
  background: #eeeff2;
  color: #111;
  text-decoration: none;
  transition: background-color 300ms ease;
}
.next-case-explorer { --next-case-color: #f6bcff; }
.next-case-launcher { --next-case-color: #ffff05; }
.next-case-copy {
  flex: none;
  text-align: center;
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line);
  letter-spacing: var(--text-h1-tracking);
  font-weight: 400;
}
.next-case-image {
  display: block;
  flex: none;
  width: 640px;
  max-width: 90%;
  margin-top: 140px;
  transition: transform 300ms ease;
}
.next-case-image img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) {
  .next-case:hover { background: var(--next-case-color); }
  .next-case:hover .next-case-image { transform: translateY(-92px); }
}
.next-case:focus-visible { background: var(--next-case-color); outline: 2px solid #111; outline-offset: 4px; }
.next-case:focus-visible .next-case-image { transform: translateY(-92px); }
.next-case-section {
  width: 1024px;
  max-width: 100%;
  margin-top: 88px; /* Together with the 32px article gap: 120px. */
}
.next-case-section > .case-accordion-title {
  width: 560px;
  max-width: 100%;
  margin: 0 auto 48px;
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line);
  letter-spacing: var(--text-h2-tracking);
  font-weight: 400;
}
@media (max-width: 599px) {
  .next-case { height: auto; padding: 40px 16px 0; background: var(--next-case-color); }
  .next-case-copy { padding-inline: 8px; }
  .next-case-image {
    width: 100%;
    max-width: none;
    aspect-ratio: 1.8;
    margin-top: 48px;
    overflow: hidden;
    transition: none;
  }
  .next-case:hover .next-case-image,
  .next-case:focus-visible .next-case-image { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .next-case, .next-case-image { transition: none; }
}


.footer-contact { position: relative; height: 96px; overflow: hidden; }
.footer-contact .site-footer-title {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: transform 400ms ease, color 200ms ease;
}
.footer-contact-details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 400ms ease;
}
.footer-contact.is-open .site-footer-title { transform: translateY(-100%); }
.footer-contact.is-open .footer-contact-details { transform: translateY(0); }
.footer-contact-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font: inherit;
  font-size: 24px;
  line-height: 28px;
  text-decoration: none;
  cursor: pointer;
  transition: color 200ms ease;
}
.footer-contact-icon {
  position: absolute;
  left: calc(100% + 8px);
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.footer-contact-row:hover, .footer-contact-row.is-copied { color: #8c8c8c; }
.footer-contact-row:hover .footer-contact-icon, .footer-contact-row:focus-visible .footer-contact-icon, .footer-contact-row.is-copied .footer-contact-icon { opacity: 1; }
.footer-contact-icon {
  flex: 0 0 24px;
  background-color: currentColor;
  mask: var(--contact-icon) center / contain no-repeat;
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
}
.footer-contact-arrow { --contact-icon: url("Images/case-list-arrow.svg"); }
.footer-contact-copy { --contact-icon: url("Images/icon_24_copy.svg"); }
.is-copied .footer-contact-copy { --contact-icon: url("Images/icon_24_check.svg"); }
.footer-contact-row:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 699px) {
  .footer-contact { height: max(80px, 19cqw); }
  .footer-contact-row { font-size: clamp(14px, 4.5vw, 24px); line-height: 1.2; justify-content: center; gap: 8px; }
  .footer-contact-icon { position: static; opacity: 1; }
}
@media (hover: none) { .footer-contact-icon { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .footer-contact .site-footer-title, .footer-contact-details { transition: none; }
}


.project-media.launcher-cover-cycle > img {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: transform 260ms ease;
}
.project-media.launcher-cover-cycle > img.is-active { opacity: 1; }
.project-media.launcher-cover-cycle.is-tilting > img {
  transition-duration: 80ms;
}
@media (prefers-reduced-motion: reduce) {
  .project-media.launcher-cover-cycle > img { transition: none; }
}

.hyros-story .launcher-text-block li { margin-bottom: 16px; }
.hyros-architecture-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.hyros-architecture-zoom:focus-visible { outline: 2px solid #111; outline-offset: -4px; }
.hyros-image-open { overflow: hidden; }
.hyros-image-dialog {
  width: calc(100vw - 32px);
  max-width: 2080px;
  max-height: calc(100dvh - 32px);
  padding: 48px 8px 8px;
  border: 0;
  background: #19191f;
  color: white;
}
.hyros-image-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.hyros-image-close {
  position: absolute;
  top: 8px;
  right: 16px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hyros-image-scroll { max-height: calc(100dvh - 112px); overflow: auto; }
.hyros-image-scroll img { display: block; width: 2048px; max-width: none; height: auto; }

.next-case.next-case-hyros { --next-case-color: #88ffcd; padding-top: 56px; }
@media (max-width: 599px) {
  .next-case-hyros .next-case-image { aspect-ratio: 2.1; }
}
