/* ============================================================
   TABLE OF CONTENTS
   1.  Variables
   2.  Reset & Base
   3.  Typography & Utilities
   4.  Header & Navigation
   5.  Transitions & Overlays
   6.  Homepage
   7.  Shared Sub-page Layout
   8.  Works Page
   9.  About Page
   10. Footer
   11. Animations (@keyframes)
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */

@charset "UTF-8";

@import url("https://cdn.jsdelivr.net/npm/@fontsource/open-sauce-sans@latest/index.min.css");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&display=swap");

:root {
  --bg-main: #f0f9ff;
  --accent-blue: #0284c7;
  --text-main: #0f172a;
  --white: #ffffff;
  --accent-pink: #ea580c;
  --accent-purple: #0284c7;
  --bg-light: #f8fafc;
  --sky-1: #38bdf8;
  --sky-2: #7dd3fc;
  --sky-3: #bae6fd;
  --text-light-gray: #334155;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block
}

body {
  line-height: 1
}

ol,
ul {
  list-style: none
}

blockquote,
q {
  quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: '';
  content: none
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

@font-face {
  font-family: "futura_m";
  src: url(../font/Futura-Med.woff) format("woff")
}

@font-face {
  font-family: "futura_r";
  src: url(../font/Futura-Boo.woff) format("woff")
}

@font-face {
  font-family: "futura_b";
  src: url(../font/Futura-Bol.woff) format("woff")
}

@font-face {
  font-family: "futura_de";
  src: url(../font/Futura-Dem.woff) format("woff");
}

html {
  font-size: 62.5%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow-x: hidden
}

@media screen and (max-width: 768px) {
  html {
    font-size: clamp(10px, 3.125vw, 13.5px);
  }
}

*,
:after,
:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box
}

body {
  font-family: 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  font-size: 1.6rem;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color: var(--text-main);
  overflow-x: hidden;
  background-image: linear-gradient(to bottom, #0284c7 0%, #38bdf8 30%, #7dd3fc 65%, #bae6fd 85%, #f0f9ff 100%);
  background-size: 100% 125%;
  background-position: center top;
  animation: skyBlend 10s ease-in-out infinite alternate;
  background-attachment: fixed;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 1.2rem
  }
}

textarea {
  font-family: 'futura_r', 'Helvetica Neue', 'Helvetica', 'Arial', 'Avenir', 'Hiragino Sans', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2
}

p {
  line-height: 2;
  word-wrap: break-word;
  white-space: normal
}

dd,
dt,
li,
pre,
td,
th {
  line-height: 1.5
}

li {
  list-style-type: none
}

table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  empty-cells: show;
  font: 100%;
  font-size: inherit;
  word-wrap: break-word;
  word-break: break-all
}

a {
  color: var(--accent-blue);
  text-decoration: none
}

a:hover {
  text-decoration: none
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  width: 100%
}

.clearfix:after {
  content: "";
  display: block;
  clear: both
}

.clearfix {
  overflow: hidden;
  zoom: 1
}

.layer {
  width: 100%;
  height: 100%
}

.fp-tableCell {
  position: relative
}

.background {
  width: 100%;
  height: 100vh;
  overflow: hidden
}


/* ============================================================
   3. TYPOGRAPHY & UTILITIES
   ============================================================ */

/* --- Section title block (used on every fullpage section) --- */
.title {
  color: var(--white);
  position: absolute;
  overflow: hidden;
  top: 50%;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  z-index: 200;
  margin-left: 11%
}

@media screen and (max-width:800px) {
  .title {
    margin-left: 40px
  }
}

@media screen and (max-width: 768px) {
  .title {
    width: 87.5%;
    margin: 0 6.25%;
    top: auto;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    bottom: 8rem
  }
}

.title--top {
  top: 51%;
}

@media screen and (max-width:800px) {
  .title--top {
    top: 52%;
  }
}

@media screen and (max-width: 768px) {
  .title--top {
    top: clamp(108px, 16vh, 150px);
    bottom: auto;
    margin: 0 5%;
    width: 90%;
    transform: none;
  }
}

.title__text {
  font-size: 12rem;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: 1.6rem;
  font-family: "futura_m";
  font-weight: normal;
  text-shadow: 0 10px 30px rgba(2, 11, 22, 0.5)
}

.title__text--logo {
  font-size: 0;
  line-height: 0;
  margin-bottom: 2.4rem;
  text-shadow: none;
}

.hero-logo-img {
  width: 720px;
  max-width: 92vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

@media screen and (max-width:800px) {
  .title__text {
    font-size: 7.6rem
  }
  .hero-logo-img {
    width: 560px;
  }
}

@media screen and (max-width: 768px) {
  .title__text {
    font-size: 3.8rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 3px 10px rgba(2, 11, 22, 0.5)
  }
  .hero-logo-img {
    width: 350px;
  }
  .title__text--logo {
    margin-bottom: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
  .title__text--top {
    font-size: 5.4rem;
    text-shadow: 0 10px 30px rgba(2, 11, 22, 0.5);
    margin-bottom: 0.1rem
  }
}

/* --- Two pink decorative lines under the title --- */
.title .border {
  display: inline-block;
  margin-bottom: 3.2rem
}

@media screen and (max-width: 768px) {
  .title .border {
    margin-bottom: 0.8rem
  }
}

.title .border span {
  display: block;
  width: 88px;
  height: 4px;
  border-radius: 5px;
  background: var(--accent-pink)
}

.title .border span:first-child {
  margin-bottom: 1.4rem
}

@media screen and (max-width: 768px) {
  .title .border span:first-child {
    margin-bottom: 0.7rem
  }
}

@media screen and (max-width:800px) {
  .title .border span {
    width: 70px
  }
}

@media screen and (max-width: 768px) {
  .title .border span {
    width: 44px;
    height: 2px
  }
}

.title .border span:last-child {
  margin-left: 54px
}

@media screen and (max-width:800px) {
  .title .border span:last-child {
    margin-left: 43px
  }
}

@media screen and (max-width: 768px) {
  .title .border span:last-child {
    margin-left: 27px
  }
}

/* --- Subtitle text below the border lines --- */
.title__lead {
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: 0.1em
}

@media screen and (max-width:800px) {
  .title__lead {
    font-size: 2.4rem;
    line-height: 1.4
  }
}

@media screen and (max-width: 768px) {
  .title__lead {
    font-size: 1.2rem
  }
}

.title__desc {
  font-family: 'Open Sauce Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #141416;
  max-width: 460px;
  margin-top: 2.2rem;
  position: relative;
}

.title__desc::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  background-color: #DF5425;
  border-radius: 2px;
  margin-top: 1.2rem;
}

.title__desc .accent {
  color: #DF5425;
}

@media screen and (max-width:800px) {
  .title__desc {
    font-size: 1.45rem;
    margin-top: 1.6rem;
    max-width: 380px;
  }
  .title__desc::after {
    width: 56px;
    height: 3px;
    margin-top: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .title__desc {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    max-width: 300px;
  }
  .title__desc::after {
    width: 44px;
    height: 3px;
    margin-top: 0.8rem;
  }
}

/* --- Contact list items inside .title --- */
.title li {
  margin-bottom: 1.6rem
}

@media screen and (max-width: 768px) {
  .title li {
    margin-bottom: 0.8rem;
    line-height: 1.1
  }
}

.title li:last-child {
  margin-bottom: 0
}

.title li:last-child a {
  margin-right: 3.2rem
}

@media screen and (max-width: 768px) {
  .title li:last-child a {
    margin-right: 1.6rem
  }
}

.title li:last-child a:last-child {
  margin-right: 0
}

.title li a {
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s
}

@media screen and (max-width:800px) {
  .title li a {
    font-size: 2.4rem;
    line-height: 1.4
  }
}

@media screen and (max-width: 768px) {
  .title li a {
    font-size: 1.2rem
  }
}

.title li a:hover {
  opacity: 0.5
}

/* --- Pink pill button ("Show me more", "View Project") --- */
.btn {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--white);
  background: var(--accent-pink);
  line-height: 1;
  font-weight: bold;
  padding: 18px 32px;
  border-radius: 50px;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  letter-spacing: 0.1em
}

@media screen and (max-width:800px) {
  .btn {
    font-size: 1.8rem;
    padding: 13px 24px
  }
}

@media screen and (max-width: 768px) {
  .btn {
    font-size: 1.2rem
  }
}

.btn:hover {
  -webkit-transform: translate3d(0, -5%, 0);
  transform: translate3d(0, -5%, 0);
  opacity: 1
}

/* --- Wrapper around the button, adds top margin --- */
.btn-wrap {
  margin-top: 3.2rem
}

@media screen and (max-width:800px) {
  .btn-wrap {
    margin-top: 1.6rem
  }
}

@media screen and (max-width: 768px) {
  .btn-wrap {
    text-align: center;
    margin-top: 0.8rem
  }
}

/* --- "SCROLLDOWN" vertical text with line below it --- */
.scrollDown {
  position: fixed;
  font-size: 1.4rem;
  bottom: 80px;
  left: 40px;
  line-height: 1;
  letter-spacing: 0.3em;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  color: var(--white);
  z-index: 100
}

.scrollDown:after {
  content: "";
  width: 2px;
  height: 64px;
  background: var(--white);
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: -80px
}

@media screen and (max-width: 768px) {
  .scrollDown:after {
    height: 32px;
    bottom: -40px
  }
}

@media screen and (max-width: 768px) {
  .scrollDown {
    left: auto;
    right: 6.25%;
    font-size: 1rem;
    bottom: 40px
  }
}

/* --- Generic centered content wrapper with max width --- */
.content {
  max-width: 1200px;
  width: 100%;
  margin: auto
}

.content--mlarge {
  margin-top: 14.4rem
}

@media screen and (max-width:800px) {
  .content--mlarge {
    margin-top: 7.2rem
  }
}

@media screen and (max-width: 768px) {
  .content--mlarge {
    margin-top: 4rem
  }
}

@media screen and (max-width:1250px) {
  .content {
    padding: 0 10%
  }
}

/* --- Section heading used on sub-pages --- */
.heading {
  font-size: 4rem;
  color: var(--accent-blue);
  letter-spacing: 0.2em;
  font-family: "futura_m";
  margin-right: 3.2rem;
  padding-top: 1.2rem
}

.heading--top {
  padding-top: 0
}

@media screen and (max-width: 768px) {
  .heading--left {
    margin-left: 0;
    text-align: left;
  }
}

@media screen and (max-width:800px) {
  .heading {
    padding-top: 0;
    margin-right: 0
  }
}

@media screen and (max-width: 768px) {
  .heading {
    font-size: 2.4rem;
    padding-top: 0.2rem
  }
}

/* --- Numbered heading (01, 02...) with a line to the left --- */
.heading-num {
  font-size: 4rem;
  color: var(--accent-pink);
  position: relative;
  padding-left: 6.2rem;
  padding-right: 3.2rem;
  font-family: "Abril Fatface";
  line-height: 1.1
}

.heading-num:after {
  content: "";
  width: 4.8rem;
  height: 2px;
  background: var(--accent-blue);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto
}

@media screen and (max-width: 768px) {
  .heading-num:after {
    width: 2.4rem
  }
}

@media screen and (max-width: 768px) {
  .heading-num {
    padding-left: 3.2rem;
    font-size: 2.4rem
  }
}

/* --- Centered heading used in About/Works sub-sections --- */
.sub-title {
  font-size: 3.2rem;
  margin-bottom: 1.6rem;
  color: var(--accent-blue);
  text-align: center;
  letter-spacing: 0.2em;
  line-height: 1.2;
  font-family: "futura_de";
  word-break: break-all
}

@media screen and (max-width: 768px) {
  .sub-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem
  }
}

/* --- Small label headings used inside cards/lists --- */
.small-title {
  font-size: 2.4rem;
  color: var(--accent-blue);
  letter-spacing: 0.2em;
  line-height: 1.2;
  font-family: "futura_de"
}

@media screen and (max-width: 768px) {
  .small-title {
    font-size: 2.1rem
  }
}

@media screen and (max-width: 768px) {
  .small-title--skill {
    font-size: 1.2rem
  }
}

/* --- Generic section wrapper with bottom spacing --- */
.wrapper {
  margin-bottom: 20rem;
  position: relative;
  z-index: 200
}

@media screen and (max-width: 768px) {
  .wrapper {
    margin-bottom: 12rem
  }
}

/* --- Generic top-spaced content container --- */
.container {
  margin-top: 20rem
}

@media screen and (max-width: 768px) {
  .container {
    margin-top: 12rem
  }
}


/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 80px;
  color: var(--white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 1000;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  pointer-events: none;
}

header > * {
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  header {
    padding: 20px 6.25%
  }
}

/* Glassmorphism on detail pages */
header:has(~ #barba-wrapper .barba-container[data-header-glass="true"]) {
  background: rgba(2, 11, 22, 0.4);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

header:has(~ #barba-wrapper .barba-container[data-header-glass="true"]).js-color {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

header.js-color a {
  color: var(--text-main)
}

header.js-color .menuIcon:after,
header.js-color .menuIcon:before {
  background: var(--text-main)
}

header a {
  color: var(--white);
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s
}

header a:hover {
  opacity: 0.5
}

header .name {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  z-index: 1000;
  text-decoration: none;
  min-height: 48px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.4s ease;
}

/* Hide navbar logo ONLY when in the homepage Hero section */
header.header--hero-active .name,
body.fp-viewing-top header .name,
body:has(.barba-container[data-namespace="top"] #js-fullpage .fp-section-1.active) header .name,
body:has(.barba-container[data-namespace="top"] #js-fullpage .section[data-anchor="top"].active) header .name {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
}

header .name img {
  position: relative;
  z-index: 2;
  height: 38px;
  width: auto;
  max-width: 170px;
  display: block;
  -webkit-transition: filter 0.35s ease, -webkit-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transition: filter 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

header .name:hover {
  opacity: 1;
}

header .name:hover img {
  filter: drop-shadow(0 0 14px rgba(223, 84, 37, 0.65)) drop-shadow(0 0 4px rgba(223, 84, 37, 0.4));
  -webkit-transform: translateY(-1px) scale(1.02);
  transform: translateY(-1px) scale(1.02);
  opacity: 1;
}

header.js-color .name img {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

header.js-color .name:hover img {
  filter: drop-shadow(0 4px 12px rgba(223, 84, 37, 0.35)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
  -webkit-transform: translateY(-1px) scale(1.02);
  transform: translateY(-1px) scale(1.02);
}

@media screen and (max-width: 768px) {
  header .name {
    font-size: 1.4rem;
  }
  header .name img {
    height: 30px;
    max-width: 135px;
  }
}

header .wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative
}

header .icons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-right: 6.4rem
}

@media screen and (max-width: 768px) {
  header .icons {
    display: none
  }
}

header .icons a {
  display: block;
  margin-right: 3.2rem;
  font-size: 2.4rem;
  letter-spacing: 0.1em
}

header .icons a:last-child {
  margin-right: 0
}

/* --- Hamburger menu icon (two-line bar) --- */
header .menuIcon {
  position: relative;
  width: 50px;
  height: 22px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  display: block;
}

@media screen and (max-width: 768px) {
  header .menuIcon {
    width: 25px;
    height: 15px
  }
}

header .menuIcon:after,
header .menuIcon:before {
  content: "";
  width: 100%;
  height: 3px;
  background: var(--white);
  position: absolute;
  right: 0;
  -webkit-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -o-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86)
}

header .menuIcon:after {
  top: 0
}

header .menuIcon:before {
  bottom: 0
}

/* --- Hamburger becomes X when open --- */
header .menuIcon.js-menuOpen:after {
  top: 50%;
  -webkit-transform: rotate(45deg) translate3d(0, -50%, 0);
  transform: rotate(45deg) translate3d(0, -50%, 0)
}

header .menuIcon.js-menuOpen:before {
  bottom: 50%;
  -webkit-transform: rotate(-45deg) translate3d(0, 50%, 0);
  transform: rotate(-45deg) translate3d(0, 50%, 0)
}

/* --- Full screen overlay nav (slides down from top) --- */
header .global-nav {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(42%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: clamp(2rem, 5vh, 6rem) 2rem;
  overflow-y: auto;
  box-sizing: border-box;
  -webkit-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -o-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  -webkit-transform: translate3d(0, -100%, 0);
  transform: translate3d(0, -100%, 0);
  z-index: -100
}

header .global-nav.js-open {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0)
}

header .global-nav.js-open a {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0)
}

header .global-nav__list {
  text-align: center;
  width: 100%;
}

header .global-nav__list li {
  margin-top: clamp(1.8rem, 4.5vh, 5.5rem);
  position: relative;
  padding: 0 20px;
  overflow: hidden
}

header .global-nav__list li:first-child {
  margin-top: 0
}

@media screen and (max-width: 768px) {
  header .global-nav__list li {
    padding: 0;
    margin-top: clamp(1.5rem, 3.5vh, 3.2rem)
  }
}

header .global-nav__list a {
  display: inline-block;
  color: var(--white);
  font-size: clamp(3rem, 7.5vh, 10rem);
  line-height: 1.1;
  letter-spacing: 0.1em;
  font-family: "futura_m";
  font-weight: normal;
  text-shadow: 0 10px 30px rgba(2, 11, 22, 0.2);
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
  -webkit-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
  -o-transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s;
  transition: 0.4s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.3s
}

@media screen and (max-width:800px) {
  header .global-nav__list a {
    font-size: clamp(3rem, 7vh, 7.6rem)
  }
}

@media screen and (max-width: 768px) {
  header .global-nav__list a {
    font-size: clamp(2.4rem, 6.2vh, 3.8rem);
    text-shadow: 0 3px 20px rgba(2, 11, 22, 0.2)
  }
}

/* Specific heights constraints to prevent cut-offs on ultra-short viewpoints */
@media screen and (max-height: 600px) {
  header .global-nav__list li {
    margin-top: clamp(1.2rem, 3vh, 2.5rem);
  }
  header .global-nav__list a {
    font-size: clamp(2.2rem, 6vh, 4.5rem);
  }
}
@media screen and (max-height: 420px) {
  header .global-nav__list li {
    margin-top: 1rem;
  }
  header .global-nav__list a {
    font-size: 5.5vh;
  }
}

/* --- Hover underline that sweeps across the full nav link --- */
header .global-nav__list a:after {
  content: "";
  width: 0;
  height: 10px;
  background: var(--white);
  position: absolute;
  left: 0;
  top: 40%;
  -webkit-box-shadow: 0 10px 30px rgba(2, 11, 22, 0.2);
  box-shadow: 0 10px 30px rgba(2, 11, 22, 0.2);
  -webkit-transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  -o-transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  transition: 0.3s cubic-bezier(0.77, 0, 0.175, 1)
}

@media screen and (max-width:800px) {
  header .global-nav__list a:after {
    display: none
  }
}

header .global-nav__list a:hover {
  opacity: 1
}

header .global-nav__list a:hover:after {
  width: 100%
}

/* --- Social icons in nav, only shown on mobile --- */
header .global-nav__sns {
  display: none
}

@media screen and (max-width: 768px) {
  header .global-nav__sns {
    display: block
  }
}

header .global-nav__sns a {
  font-size: 1.8rem;
  margin-right: 2.4rem;
  -webkit-transform: translate3d(0, 150%, 0);
  transform: translate3d(0, 150%, 0)
}

header .global-nav__sns a:last-child {
  margin-right: 0
}

/* --- ES/EN language toggle switch in the header --- */
.lang-switcher {
  margin-right: 30px;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .lang-switcher {
    margin-right: 15px;
  }
}

.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(2, 132, 199, 0.5);
  border-radius: 30px;
  padding: 0 2px;
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 80px;
  height: 32px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
}

@media screen and (max-width: 768px) {
  .lang-toggle {
    width: 60px;
    height: 24px;
    padding: 0 2px;
  }
}

.lang-toggle:hover {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.lang-toggle__input {
  display: none;
}

.lang-toggle__slider {
  position: absolute;
  width: 36px;
  height: 24px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  left: 4px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.45);
}

@media screen and (max-width: 768px) {
  .lang-toggle__slider {
    width: 28px;
    height: 20px;
    left: 2px;
  }
}

.lang-toggle__input:checked+.lang-toggle .lang-toggle__slider {
  transform: translateX(36px);
}

@media screen and (max-width: 768px) {
  .lang-toggle__input:checked+.lang-toggle .lang-toggle__slider {
    transform: translateX(28px);
  }
}

.lang-toggle__text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 1.2rem;
  font-family: "futura_m";
  color: #0369a1;
  font-weight: 600;
  z-index: 1;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  transition: opacity 0.3s, color 0.3s;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .lang-toggle__text {
    font-size: 0.9rem;
  }
}

.lang-toggle__input:not(:checked)+.lang-toggle .lang-toggle__text--es {
  color: #ffffff;
  opacity: 1;
}

.lang-toggle__input:not(:checked)+.lang-toggle .lang-toggle__text--en {
  color: #0369a1;
  opacity: 0.65;
}

.lang-toggle__input:checked+.lang-toggle .lang-toggle__text--en {
  color: #ffffff;
  opacity: 1;
}

.lang-toggle__input:checked+.lang-toggle .lang-toggle__text--es {
  color: #0369a1;
  opacity: 0.65;
}


/* ============================================================
   5. TRANSITIONS & OVERLAYS
   ============================================================ */

/* --- Dark overlay that wipes across screen during page transitions --- */
.curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(to bottom, #0284c7 0%, #38bdf8 30%, #7dd3fc 65%, #bae6fd 85%, #f0f9ff 100%);
  background-size: 100% 125%;
  background-position: center top;
  z-index: 99999;
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0)
}

/* --- Initial dark screen shown while page is loading --- */
.loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, #0284c7 0%, #38bdf8 30%, #7dd3fc 65%, #bae6fd 85%, #f0f9ff 100%);
  background-size: 100% 125%;
  background-position: center top;
  top: 0;
  left: 0
}

.loader.js-hidden {
  display: none
}

/* --- Scroll hint arrows (green animated arrows at bottom of screen) --- */
.scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  pointer-events: none;
}

.scroll-hint.active {
  opacity: 1;
  visibility: visible;
}

.arrow-item {
  width: 60px;
  height: 30px;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 40%, 50% 100%, 0 40%);
  margin-top: -12px;
  animation: arrow-pulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.arrow-item:nth-child(1) {
  background-color: #06402B;
  animation-delay: 0.0s;
}

.arrow-item:nth-child(2) {
  background-color: #095C3F;
  animation-delay: 0.15s;
}

.arrow-item:nth-child(3) {
  background-color: #11A975;
  animation-delay: 0.3s;
}

.arrow-item:nth-child(4) {
  background-color: #19F9AD;
  animation-delay: 0.45s;
}


/* ============================================================
   6. HOMEPAGE
   ============================================================ */

@keyframes skyBlend {
  0% {
    background-position: center top;
  }
  100% {
    background-position: center bottom;
  }
}

/* --- Each full-height fullpage.js section --- */
.fullpage__slide {
  width: 100%;
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  color: var(--white)
}

@media screen and (max-width: 768px) {
  .fullpage__slide {
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    max-height: 761px
  }
}

@media screen and (max-width: 768px) {
  .fp-section-1 .fullpage__slide {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    max-height: none;
  }
}

/* Allow hero section decorative sun to display without cutting off at the bottom */
.section[data-anchor="top"],
.fp-section-1 {
  overflow: visible !important;
}

/* --- Hero Sun container (combining Sun glow and Portfolio disc) --- */
.hero-sun {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  margin: auto;
  height: 1385px;
  width: 1385px;
  pointer-events: none;
  z-index: 10;
  will-change: transform, opacity;
}

@media screen and (max-width: 800px) {
  .hero-sun {
    width: 100vw;
    height: 100vw;
    left: 25%;
  }
}

.hero-sun__anim {
  width: 100%;
  height: 100%;
  position: relative;
  will-change: transform, opacity;
  opacity: 0;
}

.hero-sun .moonlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-sun .moon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  pointer-events: none;
}

/* --- Moon/Sun illustration container --- */
.moon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  margin: auto;
  height: 1385px;
  width: 1385px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center
}

@media screen and (max-width:800px) {
  .moon {
    width: 100vw;
    height: 100vw;
    left: 25%
  }
}

@media screen and (max-width: 768px) {
  .moon {
    width: min(120vw, 55vh, 460px);
    height: min(120vw, 55vh, 460px);
    left: 50%;
    top: auto;
    bottom: 0;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.moon {
  pointer-events: none;
}

.moon__back {
  z-index: -100;
  pointer-events: none;
}

.moon__front {
  z-index: 200;
  pointer-events: none;
}

/* --- "PORTFOLIO" text inside the moon --- */
.moon__text {
  font-size: 6.4rem;
  letter-spacing: 0.1em;
  text-shadow: 0 10px 15px rgba(2, 11, 22, 0.2);
  color: var(--accent-pink);
  font-family: "futura_b";
  font-weight: normal;
  pointer-events: auto;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

@media screen and (max-width:800px) {
  .moon__text {
    font-size: 3.2rem
  }
}

@media screen and (max-width: 768px) {
  .moon__text {
    font-size: 2.4rem;
    text-shadow: 0 4px 6px rgba(2, 11, 22, 0.2)
  }
}

.moon__text-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.moon__img {
  position: relative;
  width: 39.350180505%;
  height: 39.350180505%;
  pointer-events: none;
}

.moon img.js-moon,
img.sun-glow {
  filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 100px rgba(255, 160, 0, 0.7)) brightness(1.2);
  animation: sunPulse 6s ease-in-out infinite alternate;
}

@keyframes sunPulse {
  0% {
    filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 75px rgba(255, 140, 0, 0.5)) brightness(1.1);
    transform: scale(1.32);
  }
  100% {
    filter: drop-shadow(0 0 65px rgba(255, 230, 80, 1)) drop-shadow(0 0 130px rgba(255, 160, 20, 0.85)) brightness(1.25);
    transform: scale(1.38);
  }
}

/* --- Cloud SVG images around the sun --- */
.cloud {
  position: absolute;
  filter: drop-shadow(0 8px 25px rgba(2, 132, 199, 0.2)) brightness(1.15);
  animation: floatCloud 10s ease-in-out infinite alternate;
}

.cloud--front1 {
  top: 20.55045%;
  right: -49.357798%;
  width: 88.44%;
  animation-duration: 9s;
}

.cloud--front2 {
  bottom: -18.53211%;
  right: -28.6238532%;
  width: 87.155%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.cloud--front3 {
  bottom: -5.137614678%;
  left: -49.357798%;
  width: 87.155%;
  animation-duration: 11s;
  animation-delay: -5s;
}

.cloud--back1 {
  top: -22.38532%;
  right: -7.706422%;
  width: 69.724%;
  animation-duration: 14s;
  animation-delay: -2s;
}

.cloud--back2 {
  top: -5.504587%;
  left: -38.715596%;
  width: 87.155%;
  animation-duration: 15s;
  animation-delay: -4s;
}

@keyframes floatCloud {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  100% {
    transform: translateY(-16px) translateX(12px);
  }
}

/* --- Section image panel (right side, links to sub-page) --- */
.image {
  display: block;
  position: relative;
  width: 53.125%;
  height: 74.81%;
  margin: 0 8% 0 auto;
  -webkit-box-shadow: 0 80px 140px -40px rgba(0, 0, 0, 0.6);
  box-shadow: 0 80px 140px -40px rgba(0, 0, 0, 0.6)
}

@media screen and (max-width:800px) {
  .image {
    margin-right: 40px
  }
}

@media screen and (max-width: 768px) {
  .image {
    width: 80%;
    height: 55.633%;
    margin: 0 10%;
    top: 9.859%
  }
}

/* --- Overflow wrapper that clips the cover reveal animation --- */
.image__over {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative
}

/* Hide the <img> — background-image on .image--works handles the visual.
   This ensures a seamless Barba.js transition since both homepage and
   project pages use identical background-size:cover rendering. */
.image__over img {
  display: none;
}

/* --- Pink/blue cover panels that slide off to reveal the image --- */
.image__cover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  background: var(--accent-pink);
  -webkit-transform: translate3d(100%, 0, 0);
  transform: translate3d(100%, 0, 0)
}

.image__cover:last-child {
  background: var(--accent-blue)
}

/* --- Background images for each section --- */
.image--works {
  background: url(../img/desktopamarena.jpg) no-repeat center;
  background-size: cover
}

/* index.html works thumbnail */
.image--amarena {
  background: url(../img/desktopamarena.jpg) no-repeat center;
  background-size: cover;
}

/* amarena.html page-top hero */
.image__amarena {
  background: url(../img/desktopamarena.jpg) no-repeat center;
  background-size: cover;
}

.image--about {
  background: url(../img/about.jpg) no-repeat center;
  background-size: cover
}

.image--contact {
  background: url(../img/contact.jpg) no-repeat center;
  background-size: cover
}

.image--works2 {
  background: url(../img/reile.jpg) no-repeat center;
  background-size: cover;
}

.image--works3 {
  background: url(../img/kamba.webp) no-repeat center;
  background-size: cover;
}

.image__kamba,
.image--kamba {
  background: url(../img/kamba.webp) no-repeat center;
  background-size: cover;
}

.image__process,
.image--process,
.image__servicios,
.image--servicios {
  background: url('../img/proceso.png') no-repeat center;
  background-size: cover;
}

/* --- Large page number (01, 02, 03) overlapping the image --- */
.image .page-num {
  position: absolute;
  overflow-y: hidden;
  right: -7.5490%;
  bottom: 12.3762%;
  font-size: 15rem;
  color: var(--white);
  font-family: "Abril Fatface";
  z-index: 200
}

@media screen and (max-width:800px) {
  .image .page-num {
    font-size: 7.5rem;
    right: -5%
  }
}

@media screen and (max-width: 768px) {
  .image .page-num {
    display: none
  }
}

.image .page-num p {
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(2, 11, 22, 0.5)
}

@media screen and (max-width: 768px) {
  .image .page-num p {
    text-shadow: 0 3px 10px rgba(2, 11, 22, 0.5)
  }
}

/* --- Moonlight glow behind the moon (parallax layer) --- */
.moonlight {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  margin: auto;
  height: 1385px;
  width: 1385px;
  z-index: -100
}

@media screen and (max-width:800px) {
  .moonlight {
    width: 100vw;
    height: 100vw;
    left: 25%
  }
}

@media screen and (max-width: 768px) {
  .moonlight {
    width: min(120vw, 55vh, 460px);
    height: min(120vw, 55vh, 460px);
    left: 50%;
    top: auto;
    bottom: 0;
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.moonlight__wrap {
  width: 100%;
  height: 100%
}

.moonlight__img {
  background: url(../img/moonlight.svg) no-repeat, radial-gradient(circle at center, rgba(255, 250, 210, 0.95) 0%, rgba(254, 215, 170, 0.65) 30%, rgba(253, 186, 116, 0.3) 55%, rgba(255, 255, 255, 0) 75%);
  background-size: 100%, 100%;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: sunlightBeam 8s ease-in-out infinite alternate;
}

@keyframes sunlightBeam {
  0% {
    opacity: 0.85;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* --- Fixed background container for the moon/sun glow --- */
.moon-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -100
}

@media screen and (max-width: 768px) {
  .moon-background {
    height: 100%;
    bottom: 0;
    margin: auto;
    max-height: none;
  }
}

/* --- Star SVG background layer (soft ambient rays during daytime) --- */
.star {
  width: 1300px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 38%;
  z-index: -100;
  opacity: 0.15;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@media screen and (max-width:800px) {
  .star {
    width: 100vw;
    left: 25%
  }
}

@media screen and (max-width: 768px) {
  .star {
    left: 0
  }
}

.star__img {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center
}

@media screen and (max-width: 768px) {
  .star__img {
    display: block
  }
}

@media screen and (max-width: 768px) {
  .star__img img {
    -webkit-transform: translate3d(0%, 39%, 0) scale(1.5);
    transform: translate3d(0%, 39%, 0) scale(1.5)
  }
}

/* --- Ambient Light Particles (Motes of dust/light) --- */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -50;
  pointer-events: none;
}
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 250, 180, 0.6);
  opacity: 0;
  animation: floatMote 8s ease-in-out infinite alternate, fadeMote 8s ease-in-out infinite alternate;
}
.particle.p-1 { top: 20%; left: 15%; width: 4px; height: 4px; animation-delay: 0s, 0s; }
.particle.p-2 { top: 60%; left: 25%; width: 6px; height: 6px; animation-delay: -2s, -1s; }
.particle.p-3 { top: 40%; left: 8%; width: 3px; height: 3px; animation-delay: -4s, -2s; }
.particle.p-4 { top: 80%; left: 30%; width: 7px; height: 7px; animation-delay: -6s, -3s; }
.particle.p-5 { top: 15%; left: 20%; width: 5px; height: 5px; animation-delay: -1s, -4s; }
.particle.p-6 { top: 75%; left: 5%; width: 4px; height: 4px; animation-delay: -3s, -5s; }
.particle.p-7 { top: 30%; left: 18%; width: 6px; height: 6px; animation-delay: -5s, -6s; }
.particle.p-8 { top: 50%; left: 28%; width: 8px; height: 8px; animation-delay: -7s, -7s; }
.particle.p-9 { top: 90%; left: 12%; width: 3px; height: 3px; animation-delay: -1.5s, -8s; }
.particle.p-10 { top: 25%; left: 35%; width: 5px; height: 5px; animation-delay: -3.5s, -9s; }
.particle.p-11 { top: 65%; left: 22%; width: 4px; height: 4px; animation-delay: -5.5s, -10s; }
.particle.p-12 { top: 45%; left: 10%; width: 6px; height: 6px; animation-delay: -7.5s, -11s; }

@keyframes floatMote {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15px, -20px) scale(1.2); }
  100% { transform: translate(-10px, 15px) scale(0.9); }
}

@keyframes fadeMote {
  0% { opacity: 0; }
  25% { opacity: 0.6; }
  75% { opacity: 0.8; }
  100% { opacity: 0; }
}

/* --- Left-side navigation lines (generated by fullPage.js) --- */
/* #fp-nav is strictly for the homepage fullPage slider */
html:not(.fp-enabled) #fp-nav,
body:has([data-namespace="underlayer"]) #fp-nav,
.barba-container[data-namespace="underlayer"] ~ #fp-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#fp-nav {
  margin: 0;
  /* Removes any default margin fullPage.js might add */
  transform: translate3d(0, -50%, 0);
  /* Vertically centers the nav group on the left side */
  width: 40px;
  /* Sets the container wide enough for the longest (active) line */
  left: 40px;
  /* Positions the nav 40px from the left edge of the screen */
  overflow: hidden;
  /* Hides anything that goes beyond the container width */
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#fp-nav.fade-out {
  opacity: 0;
  transform: translate3d(-30px, -50%, 0);
  pointer-events: none;
}

@media screen and (max-width: 1250px) {
  #fp-nav {
    width: auto;
    /* Removes the fixed 40px width so it can grow horizontally */
    top: auto;
    /* Cancels the vertical centering set by fullPage.js */
    left: 50%;
    /* Moves the nav to the horizontal center of the screen */
    bottom: 32px;
    /* Anchors the nav 32px from the bottom of the screen */
    transform: translate3d(-50%, 0, 0);
    /* Offsets the 50% left so the nav is truly centered */
  }
}

@media screen and (max-width: 768px) {
  #fp-nav {
    bottom: 20px;
    /* Reduces the bottom gap on small screens */
  }
}

@media screen and (max-width: 1250px) {
  #fp-nav ul {
    display: flex;
    /* Switches the list from vertical to horizontal layout */
    align-items: flex-end;
    /* Aligns all lines to the bottom so the active line grows upward */
  }
}

#fp-nav ul li {
  height: 3px;
  /* Sets the height of each line on desktop */
  margin: 0 0 40px;
  /* Adds 40px of vertical space below each line */
}

@media screen and (max-width: 1250px) {
  #fp-nav ul li {
    height: auto;
    /* Removes the fixed height so the <a> inside can control height */
    margin: 0 28px;
    /* Replaces vertical gap with horizontal gap */
  }
}

@media screen and (max-width: 768px) {
  #fp-nav ul li {
    margin: 0 12px;
    /* Tighter spacing on mobile */
  }
}

#fp-nav ul li a {
  width: 24px;
  /* Width of an inactive line on desktop */
  height: 100%;
  /* Fills the full 3px height of the parent <li> */
  background: #fff;
  /* White color for the line */
  transition: .3s;
  /* Smooth animation when line grows/shrinks on section change */
}

#fp-nav ul li a span {
  display: none;
  /* Hides the anchor text fullPage.js injects inside each link */
}

@media screen and (max-width: 1250px) {
  #fp-nav ul li a {
    width: 3px;
    /* Becomes a thin vertical bar */
    height: 24px;
    /* Length of an inactive bar */
  }
}

@media screen and (max-width: 768px) {
  #fp-nav ul li a {
    width: 2px;
    /* Even thinner on mobile */
    height: 16px;
    /* Shorter on mobile */
  }
}

#fp-nav ul li:last-child {
  margin-bottom: 0;
  /* Removes extra space below the last item */
}

#fp-nav ul li .active {
  width: 40px;
  /* Active line is wider than inactive (40px vs 24px) */
}

@media screen and (max-width: 1250px) {
  #fp-nav ul li .active {
    width: 3px;
    /* Same thickness as inactive */
    height: 40px;
    /* But taller to indicate current section */
  }
}

@media screen and (max-width: 768px) {
  #fp-nav ul li .active {
    width: 2px;
    /* Same thin width as inactive */
    height: 32px;
    /* Taller than the 16px inactive bar */
  }
}

/* --- Left/right arrows for navigating between project slides --- */
.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.project-nav--right {
  right: 40px;
}

.project-nav--left {
  left: 40px;
}

@media screen and (max-width:800px) {
  .project-nav--right {
    right: 20px;
  }

  .project-nav--left {
    left: 20px;
  }
}

@media screen and (max-width: 768px) {
  .project-nav {
    top: auto;
    bottom: 2rem;
    transform: none;
  }
}

.project-nav__btn {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  outline: none;
}

@media screen and (max-width: 768px) {
  .project-nav__btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
}

.project-nav__btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}


/* ============================================================
   7. SHARED SUB-PAGE LAYOUT
   (Elements shared between Works and About pages)
   ============================================================ */

/* --- Fixed back arrow on sub-pages --- */
.back-arrow {
  position: fixed;
  top: 220px;
  left: 40px;
  display: block;
  width: 64px;
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
  overflow: hidden;
  color: var(--white);
  z-index: 1100;
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  .back-arrow {
    width: 32px;
    top: 140px;
    left: 6.25%
  }
}

.back-arrow:hover {
  -webkit-transform: translate3d(-15%, 0, 0);
  transform: translate3d(-15%, 0, 0)
}

.back-arrow g {
  stroke: currentColor
}

.back-arrow.js-color {
  color: var(--text-main)
}

/* --- Full-viewport hero section at top of sub-pages --- */
.page-top {
  width: 100%;
  height: 100vh;
  position: relative;
  color: var(--white);
  background: transparent;
}

@media screen and (max-width: 768px) {
  .page-top {
    display: block
  }
}

.page-top__inner {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center
}

@media screen and (max-width: 768px) {
  .page-top__inner {
    display: block;
    max-height: 761px;
    position: relative
  }
}

/* --- The large image on the right of sub-page hero --- */
.page-top .image {
  position: relative;
  width: 60.677%;
  height: 100vh;
  margin: 0 0 0 auto;
  -webkit-box-shadow: none;
  box-shadow: none
}

@media screen and (max-width: 768px) {
  .page-top .image {
    width: 100%;
    height: 65.492%;
    top: auto
  }
}

.page-top .image__amarena {
  background: url(../img/desktopamarena.jpg) no-repeat center;
  background-size: 100% auto;
}

.page-top .image__bioartec {
  background: url(../img/reile.jpg) no-repeat center;
  background-size: 100% auto;
}

.page-top .image__about {
  background: url(../img/about.jpg) no-repeat center;
  background-size: cover
}

.page-top .image__process,
.page-top .image--process,
.page-top .image__servicios,
.page-top .image--servicios {
  background: url('../img/proceso.png') no-repeat center;
  background-size: cover;
}

/* --- Text + image layout row used on sub-pages --- */
.text {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-left: 185px;
  margin-top: 14.4rem
}

@media screen and (max-width:800px) {
  .text {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding-left: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1.6rem
  }
}

@media screen and (max-width: 768px) {
  .text {
    margin-top: 7.2rem
  }
}

.text--top {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start
}

.text .heading-num {
  position: absolute;
  left: 0
}

.text__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-right: 10%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  max-width: 1200px;
  width: 100%;
  margin: auto
}

.text__wrap--top {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start
}

@media screen and (max-width:800px) {
  .text__wrap--top {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
  }
}

@media screen and (max-width:800px) {
  .text__wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
    width: 100%
  }
}

.text__works {
  width: 65.5%
}

@media screen and (max-width:800px) {
  .text__works {
    width: 100%;
    margin-top: 7.2rem
  }
}

@media screen and (max-width: 768px) {
  .text__works {
    margin-top: 4rem
  }
}

/* --- "← Back" text link at the bottom of sub-pages --- */
.back-btn-wrap {
  text-align: center
}

.back-btn {
  display: inline-block;
  font-size: 3.2rem;
  color: var(--text-main);
  letter-spacing: 0.2em;
  position: relative;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  -webkit-transform: translate3d(44px, 0, 0);
  transform: translate3d(44px, 0, 0)
}

@media screen and (max-width: 768px) {
  .back-btn {
    font-size: 1.6rem;
    -webkit-transform: translate3d(22px, 0, 0);
    transform: translate3d(22px, 0, 0)
  }
}

.back-btn:after {
  content: "";
  width: 64px;
  height: 2px;
  background: var(--accent-blue);
  position: absolute;
  top: 0;
  bottom: 0;
  left: -88px;
  margin: auto;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s
}

@media screen and (max-width: 768px) {
  .back-btn:after {
    width: 32px;
    left: -44px
  }
}

.back-btn:before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
  position: absolute;
  top: 0;
  bottom: 0;
  left: -88px;
  margin: auto;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s
}

@media screen and (max-width:800px) {
  .back-btn:before {
    width: 12px;
    left: -44px;
    -webkit-transform: rotate(-45deg) translate3d(4px, -4px, 0);
    transform: rotate(-45deg) translate3d(4px, -4px, 0);
    display: none
  }
}

.back-btn:hover {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0)
}

.back-btn:hover:after {
  width: 80px;
  left: -112px
}

.back-btn:hover:before {
  left: -112px;
  -webkit-transform: rotate(-45deg) translate3d(2px, -8px, 0);
  transform: rotate(-45deg) translate3d(2px, -8px, 0)
}


/* ============================================================
   8. WORKS PAGE
   ============================================================ */

/* --- Project metadata section (role, year, tools) --- */
.meta {
  padding-top: 7.2rem;
  position: relative
}

.meta__back {
  width: 100%;
  height: 70rem;
  background: var(--bg-light);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100
}

@media screen and (max-width:800px) {
  .meta__back {
    height: 54rem
  }
}

@media screen and (max-width: 768px) {
  .meta__back {
    height: 45rem
  }
}

.meta__text-wrap {
  padding: 0 8.58333% 0
}

@media screen and (max-width: 768px) {
  .meta__text-wrap {
    padding: 0 7.5% 0
  }
}

.meta__text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 7.2rem
}

@media screen and (max-width: 768px) {
  .meta__text {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
  }
}

.meta__text li {
  margin-right: 6.4rem
}

@media screen and (max-width: 768px) {
  .meta__text li {
    margin-right: 0;
    margin-bottom: 1.6rem
  }
}

.meta__text li:last-child {
  margin-right: 0
}

@media screen and (max-width: 768px) {
  .meta__text li:last-child {
    margin-bottom: 0
  }
}

.meta__text .small-title {
  margin-bottom: 0.8rem
}

@media screen and (max-width: 768px) {
  .meta__text .small-title {
    margin-bottom: 0.4rem
  }
}

/* --- Full-width hero image on Works sub-page --- */
.big-image {
  width: 100%;
  height: 116rem;
  background: url(../img/Perspective.jpg) no-repeat center;
  background-size: cover;
  margin-top: 14.4rem
}

.big-image--kamba {
  background: url(../img/kambascreenshot.webp) no-repeat top center;
  background-size: cover;
}

@media screen and (max-width: 768px) {
  .big-image {
    margin-top: 7.2rem;
    height: auto;
    aspect-ratio: 16 / 9
  }
}

/* --- Image gallery section at bottom of Works page --- */
.kamp {
  background: var(--bg-light);
  padding-top: 20rem;
  margin-top: 14.4rem
}

@media screen and (max-width: 768px) {
  .kamp {
    padding-top: 7.2rem;
    margin-top: 7.2rem
  }
}

.kamp ul {
  width: 76.666%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

.kamp li {
  width: 47.5543%
}


/* ============================================================
   9. ABOUT PAGE
   ============================================================ */

/* --- "Who I Am" text + photo section --- */
.who__wrap {
  width: 48.333%
}

@media screen and (max-width:800px) {
  .who__wrap {
    width: 100%;
    margin-top: 7.2rem
  }
}

@media screen and (max-width: 768px) {
  .who__wrap {
    margin-top: 4rem
  }
}

.who__name {
  color: var(--accent-blue);
  margin-bottom: 2.4rem
}

@media screen and (max-width: 768px) {
  .who__name {
    margin-bottom: 1.6rem
  }
}

.who__jp {
  font-size: 2.4rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  margin-bottom: 0.4rem
}

@media screen and (max-width: 768px) {
  .who__jp {
    font-size: 1.3rem
  }
}

.who__en {
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  font-family: "futura_de";
  line-height: 1.3
}

@media screen and (max-width: 768px) {
  .who__en {
    font-size: 1rem
  }
}

.who__text {
  margin-bottom: 6.4rem
}

@media screen and (max-width: 768px) {
  .who__text {
    margin-bottom: 3.2rem
  }
}

.who__image {
  -webkit-box-shadow: 0px 63px 154px -20px rgba(7, 33, 66, 0.5);
  box-shadow: 0px 63px 154px -20px rgba(7, 33, 66, 0.5)
}

@media screen and (max-width: 768px) {
  .who__image {
    -webkit-box-shadow: 0px 33px 84px -20px rgba(7, 33, 66, 0.5);
    box-shadow: 0px 33px 84px -20px rgba(7, 33, 66, 0.5)
  }
}

/* --- "Passions" grid section --- */
.passion__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

@media screen and (max-width:800px) {
  .passion__list {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
  }
}

.passion__item {
  width: 29.75%
}

@media screen and (max-width:800px) {
  .passion__item {
    width: 100%;
    margin-top: 6.4rem
  }

  .passion__item:first-child {
    margin-top: 0
  }
}

@media screen and (max-width: 768px) {
  .passion__item {
    margin-top: 3.2rem
  }
}

.passion__image {
  width: 42.016%;
  margin: 0 auto 2.4rem
}

@media screen and (max-width:800px) {
  .passion__image {
    width: 24.429%
  }
}

@media screen and (max-width: 768px) {
  .passion__image {
    margin-bottom: 1.6rem
  }
}

/* --- Skill bars section --- */
.skill-set__flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

@media screen and (max-width:800px) {
  .skill-set__flex {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start
  }
}

.skill-set__list {
  width: 47%
}

@media screen and (max-width:800px) {
  .skill-set__list {
    width: 100%
  }

  .skill-set__list:last-child {
    margin-top: 7.2rem
  }
}

.skill-set__item {
  margin-top: 6.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center
}

.skill-set__item:first-child {
  margin-top: 0
}

@media screen and (max-width: 768px) {
  .skill-set__item {
    margin-top: 3.2rem
  }
}

.skill-set__icon {
  width: 10.6382%;
  -ms-flex-item-align: center;
  align-self: center
}

.skill-set__detail {
  width: 85.1063%
}

.skill-set__meta {
  margin-bottom: 0.8rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between
}

.skill-set__name {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end
}

.skill-set__year {
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--text-light-gray);
  margin-left: 0.8rem;
  letter-spacing: 0.2em
}

@media screen and (max-width: 768px) {
  .skill-set__year {
    font-size: 1rem
  }
}

.skill-set__ratio {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--accent-blue)
}

@media screen and (max-width: 768px) {
  .skill-set__ratio {
    font-size: 1rem
  }
}

.skill-set__high {
  color: var(--accent-pink)
}

/* --- The bar track --- */
.skill-set__bar {
  width: 100%;
  height: 1.4rem;
  background: var(--white);
  position: relative;
  border-radius: 10px;
  -webkit-box-shadow: 0 5px 15px 0 rgba(7, 33, 66, 0.15);
  box-shadow: 0 5px 15px 0 rgba(7, 33, 66, 0.15)
}

@media screen and (max-width: 768px) {
  .skill-set__bar {
    height: 0.7rem
  }
}

/* --- Gradient fill inside the bar --- */
.skill-set__bar:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 10px;
  width: 10%
}

.skill-set__bar.p100:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(42%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink))
}

.skill-set__bar.p100.in:after {
  -webkit-animation: ratio100 1.5s forwards;
  animation: ratio100 1.5s forwards
}

.skill-set__bar.p90:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(42%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 42%, var(--accent-pink))
}

.skill-set__bar.p90.in:after {
  -webkit-animation: ratio90 1.5s forwards;
  animation: ratio90 1.5s forwards
}

.skill-set__bar.p80:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(50%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 50%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 50%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 50%, var(--accent-pink))
}

.skill-set__bar.p80.in:after {
  -webkit-animation: ratio80 1.5s forwards;
  animation: ratio80 1.5s forwards
}

.skill-set__bar.p70:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(65%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 65%, var(--accent-pink))
}

.skill-set__bar.p70.in:after {
  -webkit-animation: ratio70 1.5s forwards;
  animation: ratio70 1.5s forwards
}

.skill-set__bar.p60:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(75%, var(--accent-purple)), to(var(--accent-pink)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 75%, var(--accent-pink));
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 75%, var(--accent-pink));
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 75%, var(--accent-pink))
}

.skill-set__bar.p60.in:after {
  -webkit-animation: ratio60 1.5s forwards;
  animation: ratio60 1.5s forwards
}

.skill-set__bar.p50:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(65%, var(--accent-purple)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%);
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%);
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 65%)
}

.skill-set__bar.p50.in:after {
  -webkit-animation: ratio50 1.5s forwards;
  animation: ratio50 1.5s forwards
}

.skill-set__bar.p40:after {
  background-image: -webkit-gradient(linear, left top, right top, from(var(--accent-blue)), color-stop(65%, var(--accent-purple)));
  background-image: -webkit-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%);
  background-image: -o-linear-gradient(left, var(--accent-blue), var(--accent-purple) 65%);
  background-image: linear-gradient(to right, var(--accent-blue), var(--accent-purple) 65%)
}

.skill-set__bar.p40.in:after {
  -webkit-animation: ratio40 1.5s forwards;
  animation: ratio40 1.5s forwards
}


/* ============================================================
   10. FOOTER
   ============================================================ */

.footer {
  width: 100%;
  padding: 14.4rem 0;
  text-align: center;
  background-image: -webkit-linear-gradient(349deg, var(--accent-blue), var(--accent-purple) 52%, var(--accent-pink));
  background-image: -o-linear-gradient(349deg, var(--accent-blue), var(--accent-purple) 52%, var(--accent-pink));
  background-image: linear-gradient(101deg, var(--accent-blue), var(--accent-purple) 52%, var(--accent-pink));
  position: relative;
  z-index: 100
}

@media screen and (max-width: 768px) {
  .footer {
    padding: 7.2rem 0
  }
}

.footer a {
  display: block;
  font-size: 2.8rem;
  line-height: 1.3;
  color: var(--white);
  letter-spacing: 0.2em;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s
}

@media screen and (max-width: 768px) {
  .footer a {
    font-size: 1.2rem
  }
}

.footer a:first-child {
  margin-bottom: 2.4rem
}

@media screen and (max-width: 768px) {
  .footer a:first-child {
    margin-bottom: 0.8rem
  }
}

.footer a:hover {
  opacity: 0.5
}

.footer p {
  padding: 0 1.6rem;
  word-break: break-word;
}

@media screen and (max-width: 768px) {
  .footer p {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem) !important;
    padding: 0 1.2rem;
  }
}


/* ============================================================
   11. ANIMATIONS (@keyframes)
   ============================================================ */

/* --- Skill bar fill animations (triggered by JS when scrolled into view) --- */
@-webkit-keyframes ratio90 {
  0% {
    width: 10%
  }

  to {
    width: 90%
  }
}

@-webkit-keyframes ratio100 {
  0% {
    width: 10%
  }

  to {
    width: 100%
  }
}

@keyframes ratio100 {
  0% {
    width: 10%
  }

  to {
    width: 100%
  }
}

@-webkit-keyframes ratio90 {
  0% {
    width: 10%
  }

  to {
    width: 90%
  }
}

@keyframes ratio90 {
  0% {
    width: 10%
  }

  to {
    width: 90%
  }
}

@-webkit-keyframes ratio80 {
  0% {
    width: 10%
  }

  to {
    width: 80%
  }
}

@keyframes ratio80 {
  0% {
    width: 10%
  }

  to {
    width: 80%
  }
}

@-webkit-keyframes ratio70 {
  0% {
    width: 10%
  }

  to {
    width: 70%
  }
}

@keyframes ratio70 {
  0% {
    width: 10%
  }

  to {
    width: 70%
  }
}

@-webkit-keyframes ratio60 {
  0% {
    width: 10%
  }

  to {
    width: 60%
  }
}

@keyframes ratio60 {
  0% {
    width: 10%
  }

  to {
    width: 60%
  }
}

@-webkit-keyframes ratio50 {
  0% {
    width: 10%
  }

  to {
    width: 50%
  }
}

@keyframes ratio50 {
  0% {
    width: 10%
  }

  to {
    width: 50%
  }
}

@-webkit-keyframes ratio40 {
  0% {
    width: 10%
  }

  to {
    width: 40%
  }
}

@keyframes ratio40 {
  0% {
    width: 10%
  }

  to {
    width: 40%
  }
}

/* --- Scroll hint arrow pulse animation --- */
@keyframes arrow-pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translateY(10px) scale(1);
  }
}

/* .image--works height is driven by the JS `image` variable at runtime.       */
/* The visual is handled by background-image (defined above at .image--works). */
/* The <img> tag inside .image__over must stay hidden (global rule above).     */
.image--works .image__over {
  height: 100%;
}
/* FAQ Section */
.srv-faq-list {
  list-style: none;
  margin-top: 4.8rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 800px;
}
.srv-faq-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.srv-faq-question {
  font-size: 2rem;
  color: var(--white);
  font-family: "futura_m";
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
}
.srv-light .srv-faq-question {
  color: #0f172a;
}
.srv-faq-answer {
  font-size: 1.6rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}
.srv-light .srv-faq-answer {
  color: var(--accent-blue);
}

/* ============================================================
   TENOVANCE BRAND CUSTOM POINTER (HERO)
   ============================================================ */
.moon__text,
.js-moon {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  html.tenovance-custom-cursor-active,
  html.tenovance-custom-cursor-active *,
  html.tenovance-custom-cursor-active body,
  html.tenovance-custom-cursor-active a,
  html.tenovance-custom-cursor-active button,
  html.tenovance-custom-cursor-active input,
  html.tenovance-custom-cursor-active label,
  html.tenovance-custom-cursor-active [role="button"],
  html.tenovance-custom-cursor-active .btn,
  html.tenovance-custom-cursor-active header,
  html.tenovance-custom-cursor-active header *,
  html.tenovance-custom-cursor-active .js-menuBtn,
  html.tenovance-custom-cursor-active .menuIcon,
  html.tenovance-custom-cursor-active .menuIcon *,
  html.tenovance-custom-cursor-active .lang-toggle,
  html.tenovance-custom-cursor-active .lang-toggle *,
  html.tenovance-custom-cursor-active .moon,
  html.tenovance-custom-cursor-active .moon *,
  html.tenovance-custom-cursor-active .moon__text,
  html.tenovance-custom-cursor-active .moon__img,
  html.tenovance-custom-cursor-active .moon__front,
  html.tenovance-custom-cursor-active .moon__text-wrap {
    cursor: none !important;
  }

  .global-nav.js-open,
  .global-nav.js-open * {
    cursor: auto !important;
  }

  .global-nav.js-open a,
  .global-nav.js-open button {
    cursor: pointer !important;
  }
}

.tenovance-cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  opacity: 0;
  visibility: hidden;
}

.tenovance-cursor-arrow {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 0.06s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.tenovance-cursor-svg {
  width: 16px;
  height: 25px;
  display: block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  shape-rendering: crispEdges;
  filter: drop-shadow(1.5px 1.5px 0px rgba(0, 0, 0, 0.45));
  transition: transform 0.06s ease, filter 0.06s ease;
}

/* Windows 98 3D Pressed button physics: down and to the right */
.tenovance-cursor-arrow.is-pressed .tenovance-cursor-svg {
  transform: translate(3px, 3px);
  filter: drop-shadow(0.5px 0.5px 0px rgba(0, 0, 0, 0.65));
}

/* ============================================================
   MOBILE-FIRST ENHANCEMENTS & TOUCH COMPLIANCE (<= 768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  /* Fast tap response without 300ms delay */
  a, button, input, select, textarea, .btn, .lang-toggle, .menuIcon, .project-nav__btn {
    touch-action: manipulation;
  }

  /* Safe Area notch and status bar support */
  header {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-left: max(6.25%, env(safe-area-inset-left));
    padding-right: max(6.25%, env(safe-area-inset-right));
  }

  /* Mobile-first touch target sizes (>= 44px) */
  header .menuIcon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header .menuIcon:after,
  header .menuIcon:before {
    width: 26px;
    right: 9px;
  }

  header .menuIcon:after {
    top: 15px;
  }

  header .menuIcon:before {
    bottom: 15px;
  }

  header .menuIcon.js-menuOpen:after {
    top: 20px;
  }

  header .menuIcon.js-menuOpen:before {
    bottom: 21px;
  }

  .lang-toggle {
    width: 68px;
    height: 28px;
    min-height: 28px;
  }

  .lang-toggle__slider {
    width: 30px;
    height: 22px;
    left: 3px;
  }

  .lang-toggle__input:checked + .lang-toggle .lang-toggle__slider {
    transform: translateX(32px);
  }

  .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    font-size: 1.4rem;
    border-radius: 28px;
  }

  .project-nav__btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 1.8rem;
  }

  /* Hero section on mobile: Main text on top, Sun "Portafolio" below */
  .section[data-anchor="top"] .fullpage__slide,
  .fp-section-1 .fullpage__slide {
    height: 100% !important;
    max-height: none !important;
    position: relative !important;
  }

  .title--top {
    position: absolute !important;
    top: clamp(108px, 16vh, 150px) !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 90% !important;
    margin: 0 5% !important;
    transform: none !important;
    z-index: 200 !important;
  }

  .hero-logo-img {
    width: 100% !important;
    max-width: min(280px, 76vw) !important;
    margin: 0 0 1rem 0 !important;
    display: block !important;
  }

  .title--top .border {
    margin: 0.9rem 0 !important;
  }

  .title--top .title__lead {
    font-size: clamp(1.35rem, 4vw, 1.95rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .title--top .title__desc {
    font-size: clamp(1.15rem, 3.2vw, 1.4rem) !important;
    line-height: 1.45 !important;
    max-width: 340px !important;
    margin-top: 0.4rem !important;
  }

  /* Sun "Portafolio" placed below main hero text on mobile - Exact original size & position, not cut off */
  .hero-sun {
    position: absolute !important;
    width: min(120vw, 55vh, 460px) !important;
    height: min(120vw, 55vh, 460px) !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    top: auto !important;
    bottom: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }

  .hero-sun__anim {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    will-change: transform, opacity !important;
  }

  .hero-sun .moonlight,
  .moonlight {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  .hero-sun .moon,
  .moon {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
  }

  .moon__img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    margin: 0 !important;
  }

  .moon__front {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    margin: 0 !important;
    z-index: 200 !important;
  }

  .moon__text-wrap {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate3d(-50%, -50%, 0) !important;
    -webkit-transform: translate3d(-50%, -50%, 0) !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .moon__text {
    font-size: clamp(1.8rem, 5.8vw, 2.5rem) !important;
    letter-spacing: 0.22em !important;
    margin-right: -0.22em !important; /* Neutralize trailing letter-spacing for true horizontal symmetry */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 10px 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    text-align: center !important;
    pointer-events: auto !important;
  }

  /* Process checklist mobile spacing */
  .section[data-anchor="process"] .title {
    width: 90%;
    margin: 0 5%;
    bottom: 6rem;
  }

  .section[data-anchor="process"] .title ul li {
    font-size: clamp(1.15rem, 3.2vw, 1.4rem);
    margin-bottom: 1rem !important;
    line-height: 1.35;
  }

  /* Contact section mobile tap targets */
  .section[data-anchor="contact"] .title {
    width: 90%;
    margin: 0 5%;
    bottom: 8rem;
  }

  .section[data-anchor="contact"] .title ul li a {
    display: inline-block;
    padding: 8px 0;
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    word-break: break-all;
  }

  /* ScrollDown indicator position on mobile */
  .scrollDown {
    bottom: max(20px, env(safe-area-inset-bottom)) !important;
    right: 5% !important;
  }

  /* ============================================================
     SUB-PAGES (AMARENA, KAMBA) MOBILE TYPOGRAPHY & OVERFLOW FIXES
     ============================================================ */
  .page-top {
    height: 100svh !important;
    min-height: 560px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .page-top__inner {
    max-height: none !important;
    height: 100% !important;
    min-height: 100svh !important;
    position: relative !important;
    overflow: visible !important;
  }

  /* Hero section in subpages: prevent title and button clipping */
  .page-top .title {
    width: 87.5% !important;
    margin: 0 6.25% !important;
    bottom: clamp(1.2rem, 3.5vh, 3.6rem) !important;
    overflow: visible !important;
    z-index: 200 !important;
  }

  .page-top .title .title__text {
    font-size: clamp(2.2rem, 6.5vw, 3.2rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.6rem !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .page-top .title .border {
    margin-bottom: 1rem !important;
  }

  .page-top .title .title__lead {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.3 !important;
  }

  .page-top .title .btn-wrap {
    margin-top: 0.8rem !important;
  }

  .page-top .title .btn {
    min-height: 44px !important;
    padding: 0 24px !important;
    font-size: 1.3rem !important;
  }

  /* Subpage Metadata block */
  .meta {
    padding-top: clamp(3rem, 6vh, 5rem) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .meta__back {
    height: 100% !important;
    max-height: none !important;
  }

  .meta__text-wrap {
    padding: 0 6.25% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .meta__text {
    margin-bottom: clamp(2.4rem, 4vh, 4rem) !important;
    width: 100% !important;
  }

  .meta__text li {
    margin-right: 0 !important;
    margin-bottom: 1.4rem !important;
    width: 100% !important;
  }

  .meta__text .small-title {
    font-size: clamp(1.4rem, 3.8vw, 1.8rem) !important;
    margin-bottom: 0.3rem !important;
  }

  .meta__text p {
    font-size: clamp(1.3rem, 3.6vw, 1.5rem) !important;
    line-height: 1.6 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .meta .content:last-child {
    padding: 0 6.25% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .meta .content:last-child img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Subpage Sections 01 & 02: Concept & Development text wrapping */
  .text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 6.25% !important;
    margin-top: clamp(3.6rem, 7vh, 5.4rem) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    position: relative !important;
    overflow: visible !important;
  }

  .text .heading-num {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 0.8rem !important;
    font-size: 2.2rem !important;
    padding-left: 2.8rem !important;
    padding-right: 0 !important;
    line-height: 1 !important;
  }

  .text .heading-num:after {
    width: 2rem !important;
    left: 0 !important;
  }

  .text__wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .text__wrap .heading,
  .heading,
  .heading--left {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 1.2rem !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: clamp(2.2rem, 6.5vw, 2.8rem) !important;
    letter-spacing: 0.15em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .text__works {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-size: clamp(1.35rem, 3.8vw, 1.55rem) !important;
    line-height: 1.75 !important;
    color: var(--text-main) !important;
    letter-spacing: 0.015em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .big-image {
    width: 100% !important;
    margin-top: clamp(3.6rem, 7vh, 5.4rem) !important;
    margin-bottom: clamp(1rem, 2vh, 2rem) !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    background-size: cover !important;
  }

  .back-btn-wrap {
    margin-top: clamp(4rem, 7vh, 6rem) !important;
    margin-bottom: clamp(2rem, 4vh, 4rem) !important;
    padding: 0 6.25% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .back-btn {
    font-size: 1.5rem !important;
    transform: translate3d(16px, 0, 0) !important;
  }

  .back-btn:after {
    width: 28px !important;
    left: -38px !important;
  }

  .footer {
    padding: clamp(3.6rem, 7vh, 5.4rem) 6.25% !important;
    box-sizing: border-box !important;
  }

  .footer a {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem) !important;
    word-break: break-all !important;
  }

  .footer p {
    font-size: clamp(1.2rem, 3.4vw, 1.4rem) !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

/* --- Case Studies Desktop Text Layout Optimization (Amarena & Kamba) --- */
@media screen and (min-width: 801px) {
  .barba-container[data-namespace="underlayer"] .text {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .barba-container[data-namespace="underlayer"] .text__wrap {
    display: block !important;
    max-width: 1200px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .barba-container[data-namespace="underlayer"] .text__wrap .heading,
  .barba-container[data-namespace="underlayer"] .text__wrap .heading--left {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 2.8rem !important;
    padding-bottom: 1.2rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  .barba-container[data-namespace="underlayer"] .text__works {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3.5rem !important;
    align-items: start !important;
  }

  .barba-container[data-namespace="underlayer"] .text__works p {
    font-size: 1.6rem !important;
    line-height: 1.85 !important;
    color: var(--text-main) !important;
    margin-bottom: 0 !important;
  }

  .barba-container[data-namespace="underlayer"] .text__works > div[style*="overflow-x"],
  .barba-container[data-namespace="underlayer"] .text__works > table {
    grid-column: 1 / -1 !important;
    margin: 2rem 0 !important;
  }

  /* Section 4 (Resultados): keep full-width presentation for intro paragraph, table, and guarantee */
  main#barba-wrapper section.wrapper > div.text:nth-of-type(6) .text__works {
    display: block !important;
  }

  main#barba-wrapper section.wrapper > div.text:nth-of-type(6) .text__works p {
    margin-bottom: 2rem !important;
  }

  /* Targeted rules for all 9 selectors from user selection */
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(5) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(5) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1),
  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(7) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(2) {
    grid-column: span 1 !important;
  }

  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1) {
    width: 100% !important;
    margin-bottom: 2rem !important;
  }

  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > table:nth-of-type(1) > thead:nth-of-type(1) > tr:nth-of-type(1) > th:nth-of-type(2) {
    padding: 1.6rem 2rem !important;
  }

  main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(6) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: block !important;
  }
}





/* ============================================================
   PÁGINAS LEGALES (PRIVACIDAD & TÉRMINOS)
   ============================================================ */
.legal-wrapper {
  background: #0a0a0c !important;
  padding: 4rem 0 8rem !important;
  min-height: 80vh;
}

.legal-container {
  max-width: 1040px !important;
  width: 90% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.legal-card {
  background: rgba(17, 24, 39, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: clamp(2.4rem, 4vw, 4.5rem) !important;
  margin-bottom: 3.5rem !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.legal-section {
  margin-bottom: 3.5rem !important;
  padding-bottom: 3.2rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.legal-section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.legal-section__num {
  display: none !important;
}

.legal-section__heading {
  font-size: clamp(2rem, 3.4vw, 2.6rem) !important;
  color: #ffffff !important;
  font-family: "futura_b", sans-serif !important;
  letter-spacing: 0.03em !important;
  margin: 0.5rem 0 1.6rem !important;
  line-height: 1.25 !important;
}

.legal-text {
  font-size: clamp(1.45rem, 2vw, 1.6rem) !important;
  line-height: 1.85 !important;
  color: #f1f5f9 !important;
  margin-bottom: 1.6rem !important;
}

.legal-text strong {
  color: #ffffff !important;
  font-family: "futura_b", sans-serif !important;
}

.legal-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 1.4rem 0 2rem !important;
}

.legal-list li {
  font-size: clamp(1.4rem, 1.9vw, 1.55rem) !important;
  line-height: 1.75 !important;
  color: #f1f5f9 !important;
  padding: 0.7rem 0 0.7rem 2.6rem !important;
  position: relative !important;
  border: none !important;
}

.legal-list li::before {
  content: '—' !important;
  position: absolute !important;
  left: 0 !important;
  color: #ea580c !important;
  font-weight: bold !important;
}

.legal-highlight-box {
  background: rgba(234, 88, 12, 0.08) !important;
  border-left: 3px solid #ea580c !important;
  padding: 1.8rem 2.2rem !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 2.2rem 0 !important;
}

.legal-highlight-box p {
  font-size: 1.5rem !important;
  line-height: 1.75 !important;
  color: #f1f5f9 !important;
  margin: 0 !important;
}

.legal-nav-table {
  background: rgba(17, 24, 39, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 2.2rem 2.4rem !important;
  margin-bottom: 3rem !important;
}

.legal-nav-table__title {
  font-size: 1.35rem !important;
  letter-spacing: 0.15em !important;
  color: #ea580c !important;
  font-family: "futura_b", sans-serif !important;
  text-transform: uppercase !important;
  margin-bottom: 1.4rem !important;
}

.legal-nav-links {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 1rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.legal-nav-links a {
  color: #f8fafc !important;
  font-size: 1.45rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.8rem !important;
  font-weight: 500 !important;
}

.legal-nav-links a:hover {
  color: #ea580c !important;
}

.legal-nav-links a::before {
  content: '›' !important;
  color: #ea580c !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
}

/* ============================================================
   COOKIE CONSENT FLOATING BANNER
   ============================================================ */
.tenovance-cookie-banner {
  position: fixed !important;
  bottom: 24px !important;
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 32px) !important;
  max-width: 960px !important;
  background: rgba(10, 15, 29, 0.97) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(234, 88, 12, 0.45) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 24px rgba(234, 88, 12, 0.2) !important;
  border-radius: 16px !important;
  padding: 18px 24px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
}

.tenovance-cookie-banner.is-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Persistent Floating Cookie Preferences Trigger (when banner is dismissed) */
.tenovance-cookie-reopen {
  position: fixed !important;
  bottom: 24px !important;
  bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
  left: 24px !important;
  z-index: 2147483640 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 15px !important;
  background: rgba(10, 15, 29, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(234, 88, 12, 0.45) !important;
  border-radius: 30px !important;
  color: #f1f5f9 !important;
  cursor: pointer !important;
  font-size: 1.25rem !important;
  font-family: 'futura_r', sans-serif !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s ease !important;
  pointer-events: auto !important;
}

.tenovance-cookie-reopen:hover {
  background: rgba(234, 88, 12, 0.25) !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.35) !important;
}

@media (max-width: 680px) {
  .tenovance-cookie-banner {
    bottom: 14px !important;
    bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    width: calc(100% - 20px) !important;
    padding: 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .tenovance-cookie-reopen {
    bottom: 14px !important;
    bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
    left: 14px !important;
    padding: 6px 12px !important;
  }
}

/* Fix gap/bars below footer on legal and subpages */
main#barba-wrapper:nth-of-type(1),
main#barba-wrapper,
.barba-container,
.legal-wrapper,
section.wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 2rem !important;
}

footer.footer {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

main#barba-wrapper:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

/* ============================================================
   Floating WhatsApp Button
   ============================================================ */
.whatsapp-float {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
  width: 58px !important;
  height: 58px !important;
  background-color: #25D366 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45), 0 6px 20px rgba(0, 0, 0, 0.35) !important;
  z-index: 9999 !important;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.3s ease !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent !important;
}

.whatsapp-float:hover {
  background-color: #22bf5b !important;
  color: #ffffff !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

.whatsapp-float:active {
  transform: translateY(-1px) scale(0.98) !important;
}

.whatsapp-float i {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
  color: #ffffff !important;
  line-height: 1 !important;
  font-family: "Font Awesome 5 Brands", "Font Awesome\ 5 Brands", sans-serif !important;
}

@media (max-width: 680px) {
  .whatsapp-float {
    right: 18px !important;
    bottom: 20px !important;
    bottom: max(20px, env(safe-area-inset-bottom, 20px)) !important;
    width: 52px !important;
    height: 52px !important;
  }
  .whatsapp-float i {
    font-size: 28px !important;
  }
  body:has(#tenovance-cookie-banner) .whatsapp-float {
    bottom: calc(180px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


