* {
  -webkit-tap-highlight-color: transparent;
}

/* animated-copy line reveal - clip mask per line, inner span slides up */
[class^="ac-line-"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

[class^="ac-inner-"] {
  position: relative;
  display: block;
  will-change: transform;
}

/* =========================
   Custom Cursor
   ========================= */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

@media (hover: none) {
  #custom-cursor {
    display: none;
  }
}

/* =========================
   Global Reset & Base Styles
   ========================= */

::selection {
  background: black;
  color: white;
}

::-moz-selection {
  background: black;
  color: white;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: Black;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Typography - all fluid
   (global base for h2/h5/h3/p; matches reference middle.css)
   ========================= */
:root {
  --color-text: #fff;
  --color-bg: #000;
}

h5 {
  font-family: "sohne";
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 400;
  line-height: 2.3;
  text-transform: uppercase;
  color: white;
  margin-bottom: 5px;
}

h2 {
  font-family: "sohne-bold";
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.0;
  letter-spacing: -0.32px;
  white-space: nowrap;
  color: white;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  h2 {
    white-space: normal;
  }
}

h3 {
  font-family: "sohne";
  font-size: clamp(14px, 2.8vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.24px;
}

p {
  font-family: "sohne";
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.8;
  color: white;
}


/* Hide scrollbars */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}


/* =========================
   Stacking â€” all sections above sticky footer
   ========================= */
.hero,
.middle,
.contact {
  position: relative;
  z-index: 1;
}

.outro,
.principle {
  position: relative;
  z-index: 2;
}

.about {
  position: relative;
  z-index: 1;
}


/* =========================
   Hero & Outro Sections
   ========================= */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: white;
}

.outro {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-end;
  background-color: black;
}

.outro::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 20px;
  background: black;
  clip-path: polygon(0% 0%, 100% 0%, 85% 100%, 15% 100%);
  z-index: 5;
}

.outro h1 {
  color: white;
}

.outro ::selection {
  background: white;
  color: black;
}

.outro ::-moz-selection {
  background: white;
  color: black;
}

/* =========================
   Hero Name Text
   ========================= */
.hero .main-text {
  font-family: "sohne-bold";
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-spacing: 0.2em;
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: black;
  font-size: clamp(4rem, 9vw, 9rem);
}

@media (max-width: 730px) {
  .hero .main-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
  }

  .outro {
    height: 100%;
  }
}

@media (max-width: 480px) {
  .outro {
    height: 100%;
  }
}

/* =========================
   Middle Section
   ========================= */
.middle {
  padding-top: 0;
  background-color: white;
  overflow: hidden;
}

/* =========================
   Animated Circle
   ========================= */
.animated-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(40px, 6vw, 100px);
  height: clamp(40px, 6vw, 100px);
  border-radius: 50%;
  background: black;
  transform-origin: top center;
  mix-blend-mode: difference;
  z-index: 10;
  pointer-events: none;
}

.circle-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}

/* =========================
   Custom Fonts
   ========================= */
@font-face {
  font-family: "sohne";
  src: url("/font/sohne--normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "sohne-medium";
  src: url("/font/sohne--medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "sohne-bold";
  src: url("/font/sohne--extrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Narrow paragraph (50% desktop)
   ========================= */
.p-narrow {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .p-narrow {
    width: 100%;
  }
}

/* =========================
   Hover Link
   ========================= */
.hover-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  overflow: hidden;
}

.hover-link span {
  display: inline-block;
}

/* Promote to a compositor layer only while hovered, then release it.
   Avoids permanently layering every nav/footer link (~20+ elements). */
.hover-link:hover span {
  will-change: transform;
}

.hover-animated {
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================
   Button
   ========================= */
.button-me {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-align: center;
}

.button-me .card-arrow {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.button-me:hover .card-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

.button-me-code-visible,
.button-me-code-animated {
  display: inline-block;
  will-change: transform;
}

.button-me-code-animated {
  position: absolute;
  top: 0;
  right: 0;
}

a {
  cursor: pointer;
}

/* =========================
   Hello SVG Link
   ========================= */
.hello {
  position: relative;
  color: white;
  text-decoration: none;
  white-space: nowrap;

  svg {
    position: absolute;
    left: 0;
    top: 100%;
    height: auto;
    width: 182%;
    pointer-events: none;
    overflow: hidden;

    .handPosition {
      visibility: hidden;
    }
  }

  &:hover {
    color: white;
  }
}

.hello .arm-line,
.hello .thumb,
.hello .finger-1,
.hello .finger-2,
.hello .finger-3,
.hello .line {
  stroke: white;
  fill: none;
}

.hellome {
  margin-bottom: 8vh;
  text-align: center;
  font-family: sohne-bold;
  text-transform: uppercase;
  color: white;
}