:root {
  --bg: #030303;
  --panel: #050505;
  --text: #e8e6e1;
  --muted: #8e8e8a;
  --soft: #b7b0a1;
  --accent: #c8bfa8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --max-width: 1680px;
  --page-pad: 72px;
  --serif: "Cormorant Garamond", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.2;
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: var(--page-pad);
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 132px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.brand-link {
  display: block;
  width: 128px;
  height: 128px;
  overflow: visible;
  opacity: 0.92;
  transition:
    opacity 280ms ease,
    filter 280ms ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(232, 230, 225, 0.16));
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.32);
  transform-origin: left top;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
}

.estimate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    color 240ms ease;
}

.guide-button {
  color: var(--muted);
}

.estimate-button:hover,
.estimate-button:focus-visible {
  border-color: var(--line-strong);
  background: var(--text);
  color: var(--bg);
  outline: none;
}

.language-button {
  min-width: 36px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  background: #101010;
  color: var(--text);
  outline: none;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(280px, 0.34fr);
  min-height: 620px;
  padding: 132px 0 118px;
}

.hero-copy {
  align-self: center;
}

.hero-name {
  max-width: none;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.25rem, 10.3vw, 11rem);
  font-weight: 500;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-role {
  max-width: 520px;
  margin: 32px 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero-description {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.availability {
  margin: 28px 0 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    color 240ms ease;
}

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

.hero-button:hover,
.hero-button:focus-visible {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
  outline: none;
}

.hero-button.secondary:hover,
.hero-button.secondary:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.process-note {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.hero-negative-space {
  min-height: 100%;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-column {
  min-height: 350px;
  padding: 34px 34px 42px;
}

.info-column + .info-column {
  border-left: 1px solid var(--line);
}

.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.body-copy {
  margin-top: 46px;
}

.body-copy p,
.tools-list,
.approach-item p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.body-copy p {
  margin: 0 0 18px;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.tools-list {
  display: grid;
  gap: 9px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.approach-list {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.approach-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.approach-item h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.approach-item p {
  margin: 0;
}

.approach-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.approach-icon::before,
.approach-icon::after {
  position: absolute;
  content: "";
  border-color: var(--accent);
}

.icon-minimalism::before {
  top: 8px;
  left: 0;
  width: 18px;
  border-top: 1px solid var(--accent);
}

.icon-minimalism::after {
  top: 4px;
  left: 8px;
  height: 10px;
  border-left: 1px solid var(--accent);
}

.icon-concept::before {
  inset: 3px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.icon-concept::after {
  top: 8px;
  left: 8px;
  width: 2px;
  height: 2px;
  background: var(--accent);
}

.icon-interaction::before {
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.icon-interaction::after {
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.icon-attention::before {
  inset: 2px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.icon-attention::after {
  top: 8px;
  left: 8px;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin-top: 46px;
  font-style: normal;
}

.contact-list a {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
  transition: color 240ms ease;
}

.contact-list a span:first-child {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--accent);
  outline: none;
}

.projects-section {
  padding: 78px 0 0;
}

.projects-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.projects-controls {
  display: flex;
  gap: 8px;
}

.projects-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  transition:
    border-color 240ms ease,
    background-color 240ms ease,
    color 240ms ease;
}

.projects-arrow:hover,
.projects-arrow:focus-visible {
  border-color: var(--line-strong);
  background: var(--text);
  color: var(--bg);
  outline: none;
}

.projects-arrow:disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: default;
  opacity: 0.42;
}

.projects-viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
}

.projects-viewport::-webkit-scrollbar {
  display: none;
}

.projects-viewport:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 6px;
}

.projects-grid {
  display: grid;
  grid-auto-columns: calc((100% - 42px) / 4);
  grid-auto-flow: column;
  gap: 14px;
}

.project-card {
  display: grid;
  min-width: 0;
  color: var(--text);
  scroll-snap-align: start;
  transition:
    transform 300ms ease,
    color 240ms ease;
}

.project-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #030303;
  transition:
    border-color 300ms ease,
    background-color 300ms ease;
}

.project-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(3, 3, 3, 0) 42%, rgba(3, 3, 3, 0.76) 100%);
}

.project-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition:
    transform 420ms ease,
    filter 320ms ease;
}

.project-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.project-name {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.05;
}

.project-type {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  color: var(--accent);
  outline: none;
}

.project-card:hover .project-frame,
.project-card:focus-visible .project-frame {
  border-color: var(--line-strong);
  background: #070707;
}

.project-card:hover .project-cover,
.project-card:focus-visible .project-cover {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.08);
}

.client-info-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: 42px;
  margin-top: 88px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.client-info-heading h2 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
  font-weight: 500;
  line-height: 0.92;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.client-info-heading p:last-child {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.client-info-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.client-info-links a {
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--text);
  transition:
    background-color 240ms ease,
    color 240ms ease;
}

.client-info-links a:hover,
.client-info-links a:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent);
  outline: none;
}

.client-info-links span:first-child {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.7vw, 3rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.client-info-links span:last-child {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  margin-top: 86px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.footer-text {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--soft);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links button:hover,
.footer-links button:focus-visible {
  border-color: var(--line-strong);
  background: var(--text);
  color: var(--bg);
  outline: none;
}

.market-modal[hidden] {
  display: none;
}

.market-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.market-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.market-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 46px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 36%),
    #050505;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.market-modal.is-visible .market-backdrop,
.market-modal.is-visible .market-dialog {
  opacity: 1;
}

.market-modal.is-visible .market-dialog {
  transform: translateY(0) scale(1);
}

.market-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.market-close:hover,
.market-close:focus-visible {
  border-color: var(--line-strong);
  background: var(--text);
  color: var(--bg);
  outline: none;
}

.market-title {
  max-width: 720px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.market-description {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.75;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.market-card {
  display: grid;
  min-height: 242px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 260ms ease,
    background-color 260ms ease,
    transform 260ms ease;
}

.market-card:hover,
.market-card:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transform: translateY(-3px);
}

.market-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.market-card-name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 0.95;
}

.market-card-currency {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.market-card-price {
  margin-top: 30px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.market-card-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.market-card-action {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.market-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

@media (max-width: 1320px) {
  :root {
    --page-pad: 56px;
  }

  .hero-name {
    font-size: clamp(4.25rem, 10vw, 8.5rem);
  }
}

@media (max-width: 1120px) {
  :root {
    --page-pad: 42px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: 560px;
    padding: 104px 0 92px;
  }

  .hero-negative-space {
    display: none;
  }

  .hero-name {
    font-size: clamp(3.8rem, 10.8vw, 7rem);
  }

  .info-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-column:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .info-column:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .projects-grid {
    grid-auto-columns: calc((100% - 28px) / 3);
  }

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

  .client-info-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 24px;
  }

  .site-header {
    gap: 16px;
    min-height: 94px;
  }

  .header-actions {
    max-width: min(280px, calc(100% - 92px));
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .brand-link {
    width: 86px;
    height: 86px;
  }

  .language-button {
    min-width: 31px;
    height: 29px;
    font-size: 0.64rem;
  }

  .estimate-button {
    min-height: 35px;
    padding: 0 14px;
    font-size: 0.64rem;
  }

  .hero-section {
    min-height: 510px;
    padding: 74px 0 74px;
  }

  .hero-name {
    font-size: clamp(3rem, 11vw, 4.8rem);
  }

  .hero-role {
    max-width: 100%;
    margin-top: 24px;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-description {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: 1rem;
  }

  .process-note {
    max-width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 280px;
  }

  .hero-button {
    width: 100%;
  }

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

  .info-column {
    min-height: auto;
    padding: 30px 0 34px;
  }

  .info-column + .info-column,
  .info-column:nth-child(3),
  .info-column:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .body-copy,
  .tools-list,
  .approach-list,
  .contact-list {
    margin-top: 30px;
  }

  .projects-section {
    padding-top: 58px;
  }

  .projects-grid {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 18px 12px;
  }

  .client-info-section {
    margin-top: 64px;
  }

  .client-info-links {
    grid-template-columns: 1fr;
  }

  .client-info-links a {
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-modal {
    padding: 14px;
  }

  .market-dialog {
    max-height: calc(100vh - 28px);
    padding: 34px 20px 22px;
  }

  .market-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .market-title {
    padding-right: 36px;
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }

  .market-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .market-card {
    min-height: 0;
    padding: 20px;
  }
}

@media (max-width: 430px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    align-items: center;
    gap: 12px;
  }

  .header-actions {
    max-width: 176px;
  }

  .brand-link {
    width: 72px;
    height: 72px;
  }

  .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  .language-button {
    min-width: 28px;
    height: 27px;
  }

  .estimate-button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.61rem;
  }

  .guide-button {
    display: none;
  }

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

  .hero-button {
    width: 100%;
  }

  .hero-name {
    font-size: clamp(2.06rem, 10.2vw, 2.78rem);
  }

  .hero-role,
  .hero-description,
  .process-note,
  .body-copy {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .projects-grid {
    grid-auto-columns: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
