:root {
  --ink: #111;
  --muted: #717171;
  --soft: #f2f2ef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  font-size: 12px;
}

body.locked {
  overflow: hidden;
}

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

button {
  font: inherit;
}


/* ------------------------------------------------ */
/* MAIN */
/* ------------------------------------------------ */

main {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
}


/* ------------------------------------------------ */
/* HERO */
/* ------------------------------------------------ */

.hero {
  min-height: 100svh;

  display: grid;
  place-items: center;

  padding: 42px 0;

  background: #fff;
}

.hero-card {
  width: min(1120px, 100%);

  min-height:
    min(
      720px,
      calc(100svh - 84px)
    );

  padding: 22px 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow-row,
.hero-bottom,
.section-head,
.folder-meta,
.overlay-topbar,
.viewer-bottom {
  display: flex;

  justify-content: space-between;
  align-items: baseline;

  gap: 24px;
}

.eyebrow-row,
.hero-bottom,
.section-head {
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-copy {
  margin: auto 0;
  max-width: 900px;
}

.kicker {
  color: var(--muted);
  margin: 0 0 18px;
}

h1 {
  margin: 0;

  font-size:
    clamp(
      42px,
      6vw,
      82px
    );

  line-height: .96;
  font-weight: 400;
  letter-spacing: -.055em;
}

.intro {
  max-width: 470px;

  margin: 34px 0 0 auto;

  color: #4c4c4c;

  font-size: 14px;
  line-height: 1.45;
}

.hero-bottom {
  border-top: 1px solid #e8e8e5;
  padding-top: 15px;
}



/* ------------------------------------------------ */
/* PROJECT INDEX */
/* ------------------------------------------------ */

.project-index {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 118px 0 132px;
}

.project-index-head {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: baseline;
  gap: 28px;
  padding-bottom: 13px;
  border-bottom: 1px solid #d7d7d2;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.project-index-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.project-index-list {
  border-bottom: 1px solid #d7d7d2;
}

.project-index-row {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 56px 20px;
  align-items: center;
  gap: 28px;
  min-height: 148px;
  padding: 28px 0;
  border-top: 1px solid #e6e6e1;
  transition: opacity .25s ease;
}

.project-index-row:first-child {
  border-top: 0;
}

.project-index-row::after {
  content: "";
  position: absolute;
  left: 124px;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.project-index-row:hover::after {
  transform: scaleX(1);
}

.project-index-number,
.project-index-year,
.project-index-arrow,
.project-index-title-row span {
  color: #777;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-index-main {
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(280px, 1.18fr);
  align-items: baseline;
  gap: clamp(28px, 5vw, 76px);
}

.project-index-title-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  min-width: 0;
}

.project-index-title-row h3 {
  margin: 0;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.project-index-title-row span {
  white-space: nowrap;
}

.project-index-main p {
  max-width: 430px;
  margin: 0;
  color: #565656;
  font-size: 11px;
  line-height: 1.85;
  letter-spacing: .075em;
}

.project-index-arrow {
  color: #111;
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.project-index-row:hover .project-index-arrow {
  transform: translate(4px, 4px);
}

@media(max-width:980px) {
  .project-index {
    width: calc(100% - 36px);
    padding: 92px 0 104px;
  }

  .project-index-head {
    grid-template-columns: 52px 1fr auto;
  }

  .project-index-row {
    grid-template-columns: 52px minmax(0, 1fr) 48px 16px;
    min-height: 132px;
  }

  .project-index-row::after {
    left: 80px;
  }

  .project-index-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media(max-width:560px) {
  .project-index {
    width: calc(100% - 36px);
    padding: 74px 0 84px;
  }

  .project-index-head {
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .project-index-head span:last-child {
    display: none;
  }

  .project-index-row {
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 16px;
    min-height: 150px;
    padding: 24px 0;
  }

  .project-index-row::after {
    left: 50px;
  }

  .project-index-year {
    display: none;
  }

  .project-index-title-row {
    display: block;
  }

  .project-index-title-row h3 {
    margin-bottom: 9px;
    font-size: 26px;
    white-space: normal;
  }

  .project-index-main p {
    max-width: 290px;
    font-size: 10px;
    line-height: 1.7;
    letter-spacing: .055em;
  }
}

/* ------------------------------------------------ */
/* PROJECTS */
/* ------------------------------------------------ */

.projects-section {
  margin-left:
    calc(50% - 50vw);

  margin-right:
    calc(50% - 50vw);

  padding:
    110px
    max(
      32px,
      calc(
        (100vw - 1400px) / 2
      )
    )
    160px;

  background: var(--soft);
}

.section-head {
  border-bottom: 1px solid #bbb;
  padding-bottom: 12px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.folders {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 22px;
}


/* ------------------------------------------------ */
/* FOLDER */
/* ------------------------------------------------ */

.folder {
  position: relative;

  padding-top: 28px;

  cursor: pointer;

  transition:
    transform
    .55s
    cubic-bezier(.22, 1, .36, 1);
}

.folder:hover {
  transform: translateY(-7px);
}

.folder-tab {
  position: absolute;

  top: 0;
  left: 0;

  width: 52%;
  height: 34px;

  padding:
    11px
    14px
    0;

  background: #fff;

  border-radius:
    3px
    3px
    0
    0;

  color: #666;

  font-size: 9px;

  letter-spacing: .06em;
}

.folder-body {
  position: relative;

  z-index: 1;

  min-height: 420px;

  padding: 12px;

  background: #fff;

  border-radius:
    0
    3px
    3px
    3px;

  box-shadow: none;
}


/* ------------------------------------------------ */
/* FOLDER PREVIEW */
/* ------------------------------------------------ */

.folder-preview {
  position: relative;

  height: 310px;

  overflow: hidden;

  display: grid;
  place-items: center;

  background: #fff;
}

.folder-preview-image,
.folder-preview-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    opacity .35s ease,
    transform .6s cubic-bezier(.22,1,.36,1);
}

.folder-preview-video {
  opacity: 0;
  background: #000;
}

.folder-preview.video-playing
.folder-preview-video {
  opacity: 1;
}

.folder-preview.video-playing
.folder-preview-image {
  opacity: 0;
}

.folder:hover
.folder-preview-image {
  transform: scale(1.018);
}


/* ------------------------------------------------ */
/* BIOLINK IPHONE VIDEO PREVIEW */
/* ------------------------------------------------ */

.folder-preview.iphone-preview {
  background: #fff;
}

.folder-preview.iphone-preview
.folder-preview-video {
  inset: 5% auto;

  left: 50%;

  width: auto;
  height: 90%;

  max-width: 82%;

  transform: translateX(-50%);

  object-fit: contain;

  border-radius: 24px;

  background: #000;

  box-shadow:
    0 0 0 7px #080808,
    0 14px 30px rgba(0,0,0,.22);
}

.folder-preview.iphone-preview.video-playing
.folder-preview-video {
  transform: translateX(-50%);
}


/* ------------------------------------------------ */
/* AETERNITAS PREVIEW */
/* ------------------------------------------------ */

.portrait-preview {
  background: #fff;
  padding: 14px;
}

.portrait-preview
.folder-preview-image {
  inset: 14px;

  width: calc(100% - 28px);
  height: calc(100% - 28px);

  object-fit: contain;
}


/* ------------------------------------------------ */
/* PREVIEW UI */
/* ------------------------------------------------ */

.preview-status {
  position: absolute;

  left: 10px;
  bottom: 10px;

  z-index: 3;

  padding:
    6px
    8px;

  background:
    rgba(255,255,255,.92);

  border-radius: 999px;

  color: #111;

  font-size: 9px;

  text-transform: uppercase;
  letter-spacing: .04em;
}

.open-mark {
  position: absolute;

  right: 10px;
  top: 10px;

  z-index: 3;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  background:
    rgba(255,255,255,.94);

  border-radius: 50%;

  opacity: 0;

  transition: .25s;
}

.folder:hover
.open-mark {
  opacity: 1;
}


/* ------------------------------------------------ */
/* FOLDER TEXT */
/* ------------------------------------------------ */

.folder-meta {
  padding:
    15px
    2px
    3px;
}

.folder-meta h3 {
  margin:
    0
    0
    4px;

  font-size: 12px;
  font-weight: 500;
}

.folder-meta p,
.folder-meta span {
  margin: 0;

  color: var(--muted);

  font-size: 10px;
}


/* ------------------------------------------------ */
/* FOOTER */
/* ------------------------------------------------ */

.footer {
  width:
    min(
      1400px,
      calc(100% - 64px)
    );

  margin: 0 auto;

  border-top:
    1px
    solid
    #ddd;

  padding:
    20px
    0
    40px;

  display: flex;

  justify-content: space-between;

  text-transform: uppercase;
}


/* ------------------------------------------------ */
/* PROJECT OVERLAY */
/* ------------------------------------------------ */

.project-overlay {
  position: fixed;

  inset: 0;

  z-index: 40;

  color: #fff;

  background: #101010;

  transform: translateY(102%);

  visibility: hidden;

  transition:
    transform
    .72s
    cubic-bezier(.76,0,.24,1),
    visibility 0s linear .72s;

  overflow: hidden;
}

.project-overlay.open {
  transform: translateY(0);

  visibility: visible;

  transition-delay: 0s;
}

.overlay-topbar {
  position: absolute;

  z-index: 6;

  top: 0;
  left: 0;
  right: 0;

  min-height: 72px;

  padding:
    22px
    28px;

  border-bottom:
    1px
    solid
    #2a2a2a;

  background:
    rgba(16,16,16,.92);

  backdrop-filter:
    blur(16px);
}

.overlay-project-id {
  display: flex;
  gap: 16px;

  text-transform: uppercase;
  letter-spacing: .05em;
}

.project-number {
  color: #737373;
}

.close-project {
  border: 0;

  padding:
    8px
    12px;

  background: #fff;
  color: #111;

  border-radius: 999px;

  cursor: pointer;
}


/* ------------------------------------------------ */
/* PROJECT PANEL */
/* ------------------------------------------------ */

.project-panel {
  width:
    min(
      1500px,
      calc(100% - 56px)
    );

  height: 100svh;

  margin: 0 auto;

  padding:
    104px
    0
    28px;

  display: grid;

  grid-template-columns:
    minmax(250px,.58fr)
    minmax(0,1.75fr);

  gap: 44px;

  overflow: hidden;
}

.project-text {
  display: flex;

  min-width: 0;
  min-height: 0;

  flex-direction: column;

  padding:
    12px
    0
    2px;

  overflow-y: auto;
}

.project-type {
  margin:
    0
    0
    18px;

  color: #858585;

  text-transform: uppercase;
}

.project-title {
  margin:
    0
    0
    28px;

  font-size:
    clamp(
      40px,
      5vw,
      74px
    );

  line-height: .92;

  font-weight: 400;

  letter-spacing: -.055em;
}

.project-description {
  max-width: 510px;

  margin: 0;

  color: #c7c7c7;

  font-size: 15px;
  line-height: 1.55;
}

.project-details {
  margin-top: 34px;

  padding-top: 14px;

  border-top:
    1px
    solid
    #333;

  color: #888;

  line-height: 1.65;
}


/* ------------------------------------------------ */
/* FILE SELECTOR */
/* ------------------------------------------------ */

.media-files-wrap {
  margin-top: 32px;
}

.media-files-label {
  margin:
    0
    0
    10px;

  color: #666;

  text-transform: uppercase;

  font-size: 9px;

  letter-spacing: .06em;
}

.media-files {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.media-file {
  border:
    1px
    solid
    #363636;

  background: transparent;

  color: #aaa;

  padding:
    8px
    11px;

  border-radius: 999px;

  cursor: pointer;

  transition: .2s;
}

.media-file.active,
.media-file:hover {
  background: #fff;

  color: #111;

  border-color: #fff;
}

.viewer-help {
  margin-top: auto;

  padding-top: 30px;

  color: #666;

  font-size: 10px;
}


/* ------------------------------------------------ */
/* VIEWER */
/* ------------------------------------------------ */

.viewer {
  position: relative;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  display: grid;

  grid-template-columns:
    48px
    minmax(0,1fr)
    48px;

  grid-template-rows:
    minmax(0,1fr)
    28px;

  gap: 12px;

  align-items: center;
}

.viewer-stage {
  position: relative;

  grid-column: 2;
  grid-row: 1;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  display: block;

  background: #171717;
}


/* ------------------------------------------------ */
/* SLIDE IMAGE */
/* ------------------------------------------------ */

.image-frame {
  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 12px;

  overflow: hidden;
}

.project-image {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}


/* ------------------------------------------------ */
/* AETERNITAS VIEWER */
/* ------------------------------------------------ */

.project-overlay[data-project="aeternitas"]
.image-frame {
  padding:
    18px
    28px;
}

.project-overlay[data-project="aeternitas"]
.project-image {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
}


/* ------------------------------------------------ */
/* GENERAL VIDEO VIEWER */
/* ------------------------------------------------ */

.project-video {
  display: none;

  position: absolute;

  top: 50%;
  left: 50%;

  width: auto;
  height: auto;

  max-width: calc(100% - 40px);
  max-height: calc(100% - 40px);

  transform: translate(-50%, -50%);

  object-fit: contain;

  background: #000;
}

.viewer-stage.show-video
.image-frame {
  display: none;
}

.viewer-stage.show-video
.project-video {
  display: block;
}


/* ------------------------------------------------ */
/* BIOLINK IPHONE VIDEO */
/* ------------------------------------------------ */

.project-overlay[data-project="biolink"]
.viewer-stage.show-video {
  overflow: hidden;

  background: #181818;
}


/*
  Fix definitivo:
  il video non può influenzare
  la dimensione della griglia.
*/

.project-overlay[data-project="biolink"]
.viewer-stage.show-video
.project-video {
  display: block;

  position: absolute;

  top: 50%;
  left: 50%;

  width: auto !important;
  height: auto !important;

  max-width: min(
    420px,
    calc(100% - 80px)
  ) !important;

  max-height: calc(100% - 80px) !important;

  transform: translate(-50%, -50%);

  object-fit: contain;

  border-radius: 24px;

  background: #000;

  box-shadow:
    0 0 0 6px #050505,
    0 18px 50px rgba(0,0,0,.45);
}


/* ------------------------------------------------ */
/* VIDEO ERROR */
/* ------------------------------------------------ */

.video-missing {
  display: none;

  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  text-align: center;

  color: #999;
}

.video-missing span {
  display: block;

  font-size: 14px;

  color: #ddd;

  margin-bottom: 8px;
}

.video-missing small {
  font-size: 10px;
}

.viewer-stage.video-error
.project-video {
  display: none !important;
}

.viewer-stage.video-error
.video-missing {
  display: block;
}


/* ------------------------------------------------ */
/* VIEWER ARROWS */
/* ------------------------------------------------ */

.viewer-arrow {
  width: 42px;
  height: 42px;

  border:
    1px
    solid
    #383838;

  border-radius: 50%;

  background: transparent;

  color: #fff;

  cursor: pointer;
}

.viewer-prev {
  grid-column: 1;
  grid-row: 1;

  justify-self: center;
}

.viewer-next {
  grid-column: 3;
  grid-row: 1;

  justify-self: center;
}

.viewer-arrow:hover {
  background: #fff;
  color: #111;
}

.viewer-arrow:disabled {
  opacity: .18;

  cursor: default;
}


/* ------------------------------------------------ */
/* VIEWER BOTTOM */
/* ------------------------------------------------ */

.viewer-bottom {
  grid-column: 2;
  grid-row: 2;

  width: 100%;

  min-height: 24px;

  color: #777;

  font-size: 10px;

  text-transform: uppercase;
}

.viewer-progress {
  position: relative;

  flex: 1;

  height: 1px;

  background: #2c2c2c;
}

.viewer-progress span {
  position: absolute;

  inset:
    0
    auto
    0
    0;

  width: 0;

  background: #fff;

  transition: width .3s;
}


/* ------------------------------------------------ */
/* REVEAL */
/* ------------------------------------------------ */

.reveal {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity .85s ease,
    transform .85s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ------------------------------------------------ */
/* TABLET */
/* ------------------------------------------------ */

@media(max-width:980px) {

  body {
    background: #ecece8;
  }

  main,
  .footer {
    width:
      min(
        100% - 28px,
        1400px
      );
  }

  .hero {
    padding:
      14px
      0;

    background: transparent;
  }

  .hero-card {
    min-height:
      calc(
        100svh - 28px
      );

    padding: 18px;

    background: #fff;
  }

  .folders {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-overlay {
    overflow-y: auto;
  }

  .project-panel {
    width:
      calc(
        100% - 28px
      );

    height: auto;

    min-height: 100svh;

    grid-template-columns: 1fr;

    gap: 28px;

    padding-bottom: 48px;

    overflow: visible;
  }

  .viewer {
    order: -1;

    width: 100%;

    height:
      min(
        70svh,
        690px
      );

    flex-shrink: 0;
  }

  .project-overlay[data-project="aeternitas"]
  .viewer {
    height: 78svh;
  }

  .viewer-help {
    margin-top: 28px;
  }

}


/* ------------------------------------------------ */
/* MOBILE */
/* ------------------------------------------------ */

@media(max-width:560px) {

  h1 {
    font-size: 46px;
  }

  .intro {
    margin-left: 0;
  }

  .eyebrow-row
  span:last-child {
    display: none;
  }

  .folder-preview {
    height: 270px;
  }


  /* BIOLINK PREVIEW */

  .folder-preview.iphone-preview
  .folder-preview-video {
    height: 88%;

    border-radius: 18px;

    box-shadow:
      0 0 0 5px #080808,
      0 10px 24px rgba(0,0,0,.18);
  }


  /* VIEWER */

  .viewer {
    height: 56svh;

    grid-template-columns:
      42px
      minmax(0,1fr)
      42px;

    grid-template-rows:
      minmax(0,1fr)
      28px;
  }

  .project-overlay[data-project="aeternitas"]
  .viewer {
    height: 72svh;
  }


  /* AETERNITAS */

  .project-overlay[data-project="aeternitas"]
  .image-frame {
    padding: 10px;
  }


  /* BIOLINK VIDEO MOBILE */

  .project-overlay[data-project="biolink"]
  .viewer-stage.show-video
  .project-video {
    width: auto !important;
    height: auto !important;

    max-width: calc(100% - 40px) !important;
    max-height: calc(100% - 50px) !important;

    object-fit: contain;

    border-radius: 18px;

    box-shadow:
      0 0 0 4px #050505,
      0 12px 30px rgba(0,0,0,.4);
  }

}


/* ------------------------------------------------ */
/* INTERACTIVE GENERATIVE HERO SCREEN */
/* ------------------------------------------------ */

.interactive-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(760px, calc(100svh - 84px));
  padding: 0;
  border-radius: 3px;
  background: #101116;
  box-shadow:
    0 0 0 1px rgba(17,17,17,.08),
    0 26px 80px rgba(0,0,0,.10);
}

.hero-visual,
.hero-screen-glass {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  z-index: 0;
  display: block;
}

.hero-screen-glass {
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 20%, rgba(0,0,0,.09)),
    radial-gradient(circle at 50% -20%, rgba(255,255,255,.10), transparent 38%);
  mix-blend-mode: screen;
  opacity: .55;
}

.hero-screen-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding: 24px 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,.92);
}

.interactive-screen .eyebrow-row,
.interactive-screen .hero-bottom {
  color: rgba(255,255,255,.58);
  text-shadow: 0 1px 14px rgba(0,0,0,.12);
}

.interactive-screen .hero-copy {
  position: relative;
  margin: auto 0;
  max-width: 920px;
}

.interactive-screen .kicker {
  color: rgba(255,255,255,.62);
}

.interactive-screen h1 {
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 30px rgba(0,0,0,.12);
}

.interactive-screen .intro {
  color: rgba(255,255,255,.62);
  max-width: 500px;
}

.interactive-screen .hero-bottom {
  border-color: rgba(255,255,255,.22);
}

.interactive-screen .hero-bottom a {
  color: rgba(255,255,255,.88);
  transition: opacity .2s ease;
}

.interactive-screen .hero-bottom a:hover {
  opacity: .58;
}

@media (max-width: 700px) {
  .interactive-screen {
    min-height: calc(100svh - 52px);
  }

  .hero-screen-content {
    padding: 20px 18px 18px;
  }

  .interactive-screen h1 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .interactive-screen .intro {
    margin-left: 0;
    max-width: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual {
    opacity: .96;
  }
}

/* ------------------------------------------------ */
/* CONTACT */
/* ------------------------------------------------ */

.contact-section {
  width: 100%;
  margin: 104px 0 0;
  background: #050505;
  color: #f3f3f0;
}

.contact-inner {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 205px;
  display: grid;
  grid-template-columns: 0.72fr 1.9fr auto;
  align-items: center;
  gap: 48px;
  padding: 42px 0 38px;
}

.contact-inner h2 {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 50px);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.045em;
}

.contact-email,
.contact-linkedin {
  color: inherit;
  text-decoration: none;
}

.contact-email {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(13px, 1.25vw, 17px);
  letter-spacing: -.018em;
  opacity: .82;
  transition: opacity .25s ease;
}

.contact-email span:first-child {
  opacity: .48;
}

.contact-email:hover,
.contact-linkedin:hover {
  opacity: 1;
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  opacity: .78;
  font-size: 13px;
  transition: opacity .25s ease, transform .25s ease;
}

.contact-linkedin:hover { transform: translateY(-1px); }

.linkedin-mark {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.06em;
}

.footer-dark {
  width: 100%;
  margin: 0;
  padding: 16px max(32px, calc((100vw - 1400px)/2));
  background: #050505;
  color: rgba(255,255,255,.42);
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-dark a { color: rgba(255,255,255,.58); }

@media(max-width:980px) {
  .contact-inner {
    width: min(100% - 36px, 1400px);
    grid-template-columns: 1fr 1.6fr auto;
    gap: 28px;
  }
}

@media(max-width:680px) {
  .contact-section { margin-top: 72px; }
  .contact-inner {
    width: min(100% - 28px, 1400px);
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    padding: 34px 0 30px;
  }
  .contact-email { flex-wrap: wrap; gap: 6px; overflow-wrap: anywhere; }
  .contact-linkedin { justify-self: start; }
  .footer-dark { padding-left: 14px; padding-right: 14px; }
}
