:root {
  color-scheme: light;
  --wine: #2a090e;
  --profile-ground: #b9987d;
  --burgundy: #62131e;
  --crimson: #b11f2b;
  --rose: #d69a8e;
  --ivory: #f4ece7;
  --charcoal: #282022;
  --line-light: rgba(244, 236, 231, 0.25);
  --line-dark: rgba(42, 9, 14, 0.18);
  --display: "Cormorant Garamond", "Bodoni 72", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--wine);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--ivory);
  color: var(--wine);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 720px;
  max-height: 1120px;
  overflow: hidden;
  background: var(--wine);
  color: var(--ivory);
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 14%;
  overflow: hidden;
  background: var(--wine);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--wine) 0%,
    rgba(42, 9, 14, 0.98) 5%,
    rgba(42, 9, 14, 0.52) 13%,
    rgba(42, 9, 14, 0.2) 23%,
    rgba(42, 9, 14, 0.06) 34%,
    transparent 46%
  );
  content: "";
  pointer-events: none;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  width: 42%;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px 82px 44px;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(56px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.82;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-meta p {
  max-width: 340px;
  margin: 0;
  color: rgba(244, 236, 231, 0.86);
  font-size: 11px;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.view-work {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ivory);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.view-work svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  transition: transform 180ms ease;
}

.view-work:hover svg {
  transform: translateY(3px);
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 28%;
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 44px;
  color: var(--ivory);
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a,
.language-switcher button {
  color: inherit;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-navigation a {
  position: relative;
  white-space: nowrap;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after {
  transform: scaleX(1);
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.language-switcher button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.65;
}

.language-switcher button[aria-pressed="true"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.language-switcher span {
  color: rgba(244, 236, 231, 0.55);
  font-size: 9px;
}

.menu-toggle {
  display: none;
}

.section-pad {
  padding: 104px 44px;
}

.work-section {
  padding-top: 10px;
  padding-bottom: 126px;
  background: var(--ivory);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: -0.12em 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.work-gallery {
  columns: 3;
  column-gap: 24px;
}

.work-image {
  break-inside: avoid;
  margin: 0 0 24px;
  overflow: hidden;
  background: #e6d8d1;
}

.work-image img {
  height: auto;
  transition: opacity 220ms ease;
}

.work-image:hover img {
  opacity: 0.92;
}

.digitals-section {
  background: var(--ivory);
}

.section-heading--split {
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section-heading--split > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.section-note {
  max-width: 330px;
  margin: 0 0 4px;
  color: rgba(42, 9, 14, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.digitals-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.digitals-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #e9ddd7;
}

.digitals-gallery img {
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.motion-section {
  padding-top: 78px;
  padding-bottom: 78px;
  background: #ead6d0;
}

.motion-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  max-width: 1320px;
  margin: 0 auto;
}

.motion-content .section-heading {
  margin: 0;
}

.motion-content > p {
  max-width: 320px;
  margin: 0 0 4px;
  color: rgba(42, 9, 14, 0.72);
  font-size: 12px;
  line-height: 1.6;
}

.experience-section {
  background: var(--wine);
  color: var(--ivory);
}

.experience-layout {
  display: grid;
  max-width: 1320px;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 10vw, 150px);
  margin: 0 auto;
}

.experience-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.experience-list li {
  padding: 16px 0 15px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.2;
}

.about-section {
  background: var(--ivory);
}

.about-copy {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 10vw, 150px);
  margin: 0 auto;
}

.about-copy p:last-child {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 39px);
  line-height: 1.18;
}

.contact-section {
  padding-top: 84px;
  padding-bottom: 30px;
  background: var(--burgundy);
  color: var(--ivory);
}

.contact-layout {
  display: flex;
  min-height: 190px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  max-width: 1320px;
  margin: 0 auto;
}

.contact-layout > p {
  max-width: 340px;
  margin: 4px 0 0;
  color: rgba(244, 236, 231, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  color: rgba(244, 236, 231, 0.7);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ivory);
}

.back-to-top {
  position: fixed;
  z-index: 8;
  right: clamp(20px, 3vw, 36px);
  bottom: calc(clamp(20px, 3vw, 36px) + env(safe-area-inset-bottom, 0px));
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  transform: translateY(14px) scale(0.88);
  border: 1px solid rgba(244, 236, 231, 0.45);
  border-radius: 50%;
  background: rgba(42, 9, 14, 0.9);
  box-shadow: 0 8px 28px rgba(20, 2, 5, 0.2);
  color: var(--ivory);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    visibility 0s linear 420ms;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    visibility 0s;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(244, 236, 231, 0.8);
  background: rgba(98, 19, 30, 0.96);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.97);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
  transition: transform 180ms ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

@media (min-width: 1500px) {
  .hero-copy {
    padding-left: max(44px, calc((100vw - 1440px) / 2));
  }
}

@media (max-width: 1099px) {
  .hero-media {
    inset: 0;
  }

  .hero-media::after {
    background: linear-gradient(
      0deg,
      rgba(42, 9, 14, 0.76) 0%,
      rgba(42, 9, 14, 0.68) 17%,
      rgba(42, 9, 14, 0.42) 36%,
      rgba(42, 9, 14, 0.12) 56%,
      transparent 74%
    );
  }

  .hero-media img {
    object-position: 50% 44%;
  }

  .hero-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 230px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 32px 40px;
    background: transparent;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(46px, 7.3vw, 58px);
  }

  .hero-meta p {
    max-width: 360px;
    font-size: 11px;
  }

  .view-work {
    margin-top: 18px;
  }

  .site-header {
    right: 0;
    left: 0;
    min-height: 84px;
    padding: 20px 40px;
  }

  .primary-navigation ul {
    gap: clamp(12px, 2vw, 20px);
  }

  .primary-navigation a,
  .language-switcher button {
    font-size: 8px;
  }

  .section-pad {
    padding-right: 40px;
    padding-left: 40px;
  }

  .work-gallery {
    columns: 2;
    column-gap: 20px;
  }

  .digitals-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 12px;
  }

  .hero {
    min-height: 680px;
    max-height: none;
  }

  .hero-media img {
    object-position: 50% 42%;
  }

  .site-header {
    min-height: 70px;
    align-items: flex-start;
    padding: 18px 24px;
  }

  .menu-toggle {
    display: inline-flex;
    width: 34px;
    height: 32px;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
  }

  .menu-icon {
    display: flex;
    width: 22px;
    flex-direction: column;
    gap: 6px;
  }

  .menu-icon i {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

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

  .language-switcher button {
    padding: 5px 0;
    font-size: 9px;
  }

  .primary-navigation {
    position: absolute;
    top: 64px;
    right: 24px;
    left: 24px;
    display: none;
    padding: 14px 18px;
    background: var(--wine);
  }

  .primary-navigation[data-open="true"] {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .primary-navigation li {
    border-bottom: 1px solid var(--line-light);
  }

  .primary-navigation a {
    display: block;
    padding: 13px 0;
    font-size: 9px;
  }

  .primary-navigation a::after {
    display: none;
  }

  .hero-copy {
    min-height: 240px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 22px 24px 24px;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(40px, 11vw, 47px);
    line-height: 0.82;
  }

  .hero-meta p {
    max-width: 350px;
    font-size: 11px;
    line-height: 1.45;
  }

  .view-work {
    margin-top: 13px;
    font-size: 9px;
  }

  .section-pad {
    padding: 72px 24px;
  }

  .work-section {
    padding-top: 0;
    padding-bottom: 82px;
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: clamp(31px, 8vw, 40px);
  }

  .work-gallery {
    columns: 2;
    column-gap: 12px;
  }

  .work-image {
    margin-bottom: 12px;
  }

  .experience-layout,
  .about-copy {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading--split {
    display: block;
    margin-bottom: 26px;
  }

  .section-heading--split > div {
    gap: 12px;
  }

  .section-note {
    max-width: 300px;
    margin: -8px 0 0;
    font-size: 11px;
  }

  .digitals-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .motion-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .motion-content {
    display: block;
  }

  .motion-content .section-heading {
    margin-bottom: 24px;
  }

  .motion-content > p {
    font-size: 11px;
  }

  .experience-layout {
    gap: 20px;
  }

  .experience-layout .section-heading {
    margin-bottom: 6px;
  }

  .experience-list li {
    padding: 13px 0 12px;
    font-size: 23px;
  }

  .about-copy {
    gap: 8px;
  }

  .about-copy .section-heading {
    margin-bottom: 18px;
  }

  .about-copy p:last-child {
    font-size: 28px;
    line-height: 1.2;
  }

  .contact-section {
    padding-top: 62px;
    padding-bottom: 24px;
  }

  .contact-layout {
    display: block;
    min-height: 190px;
  }

  .contact-layout > p {
    margin: 0 0 42px;
    font-size: 11px;
  }

  .site-footer {
    padding-top: 16px;
    font-size: 8px;
  }

  .back-to-top {
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
