body, html {
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--scotland-blue);
    margin: 0;
    padding: 0;
}
.video-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
}
span.scroll {
  position: absolute;
  left: calc(100% + 14px); /* puts text to the right */
  top: 50%;
  transform: translateY(-50%);

  white-space: nowrap;
  color: var(--white);
  font-weight: var(--fw-bold);
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.scroll-cue {
   position: fixed;
    left: 50%;
    bottom: clamp(1.5rem, 4vw, 3rem);
    transform: translateX(-50%);
    z-index: 50;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    transition: opacity 0.25s ease;
}
.scroll-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--danish-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    box-shadow: 0 14px 35px rgba(0,0,0,0.28);
    animation: bounce-down 1.8s ease-in-out infinite;
}
.scroll-cue.hidden {
    opacity: 0;
    pointer-events: none;
}
@keyframes bounce-down {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}
.actions-container, .actions-container-about, .actions-container-about-tablet {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}
.actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  padding: 0 1.25rem 1.5rem;
}
.dots {
  margin-top: 125px;
}
.dots button {
  border: var(--white) 2.5px solid;
  padding: 15px;
  margin: 5px;
  border-radius: 9999px;
  line-height: 0.5;
  color: var(--white);
  font-weight: var(--fw-bold);
  background-color: transparent;
}
.dots button:active, .dots button:hover {
  background-color: var(--danish-red);
}
.about-content h1 {
  text-align: center;
  margin: 0 0 2.5rem;
}
.about-txt-box p {
  color: var(--scotland-blue);
  margin: 0 0 1.25rem;
}
.contact-left h3, .contact-left p{
    color: var(--scotland-blue);
  }
.contact-right li a{
    font-size: var(--copy);
    font-weight: var(--fw-bold);
    color: var(--danish-red);
    text-decoration: underline;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.contact-list li:last-child {
  margin-bottom: 0;
}
.contact-list img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.contact-list a {
  font-size: var(--copy);
  font-weight: var(--fw-bold);
  color: var(--danish-red);
  text-decoration: underline;
}
.hero-art-mobile, .hero-art-skills-mobile, .hero-art-experience-mobile, .hero-art-background-mobile, .hero-art-footer-mobile {
  display: none;
}

#experience {
    position: relative;
}

 .round-btn, .skills-round-btn {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 55%;
    background-color: transparent;
    border: 2.5px solid var(--white);
  }
  .brand-design .skills-round-btn {
    background-image: url("/links/svg/Icons_250x250_Brand.svg");
  }

  .digital-design .skills-round-btn {
      background-image: url("../links/svg/Icons_250x250_Digital.svg");
  }

  .web-design .skills-round-btn {
      background-image: url("../links/svg/Icons_250x250_Web.svg");
  }

  .print-layout .skills-round-btn {
      background-image: url("../links/svg/Icons_250x250_Print.svg");
  }
  
.skills-right .placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

@media (max-width: 989px) {
  iframe {
    width: 75%;
  }
  #introduction {
    position: relative;
    min-height: 100vh;
    padding-bottom: 2rem;
  }
  .hero-art{
    display: none;
  }
  .hero-art-tablet, .hero-art-skills, .hero-art-experience, .hero-art-background-tablet, .hero-art-footer-tablet {
    display: block;
    width: 100%;
    height: auto;
  }
  #video-introduction {
    margin-bottom: 10rem;
  }
  #experience {
    padding-top: 6rem;
  }
  #skills {
    position: relative;
    margin-bottom: clamp(14rem, 8vw, 10rem);
  }
  .skills-left, .exp-bottom {
    display: none;
  }
 .skills {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem 3rem;
  }
  .skills-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .skills-right .placeholder {
    width: 500px;
    height: 600px;
    background-color: rgb(207, 207, 207);
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  .skills-text-placeholder, .experience-txt-placeholder {
    text-align: left !important;
    max-width: 500px;
  }
  .icons-mobile {
    display: flex;
  }
  .exp-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .exp-stack {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .exp-top {
    text-align: center;
  }
  .test {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .exp-video-tablet,
  .exp-txt {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .timeline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; 
    gap: 0rem;
    flex-wrap: nowrap;   /* <- important: force a single row */
  }

  .arrow {
    flex: 0 0 auto;
    width: 3rem;
  }
  .experience-txt-placeholder {
    text-align: left !important;
    max-width: 500px;
  }
  .exp-video-tablet video.placeholder {
    width: 500px;
    height: 600px;
    border-radius: var(--border-radius);
    object-fit: cover;
    display: block;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  #portfolio {
    margin-top: 30rem;
  }
  .placeholder-case {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    opacity: 1;
    transition: opacity 0.25s ease;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  .portfolio-container {
    display: flex;
    align-items: center;  
    flex-direction: column;
  }
  .case {
    position: relative;
    width: min(700px, 60vw);
  }
  .case-frame{
    aspect-ratio: 10 / 14;
  }
  .info-card{
    position: absolute;
    left: 50%;
    bottom: -100px;             /* overlap the frame (push below a bit) */
    transform: translateX(-50%);
    background: var(--white);
    max-width: 350px;
    width: calc(100% - 2rem);  /* prevents overflow on small screens */
    border-radius: 40px;
    padding: 26px;
  }
  .info-title, .info {
    color: var(--scotland-blue);
  }
  .info-title {
    margin: 10px 0px 10px 0px;
  }
  span.info-cat {
    font-weight: var(--fw-bold);
    font-size: var(--copy);
  }
  #about {
    position: relative;
    overflow: visible;
    margin-bottom: 6rem;   /* or 8rem / 10rem until the overlap is gone */
  }
  .about-content {
    max-width: 950px;
    margin: 0 auto;   /* pulls it up over Between.jpg, leaves room below */
    padding: 0 1.5rem 6rem;
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .placeholder-about {
    width: 450px;
    height: 600px;
    background: #cfcfcf;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    background-image: url("/links/img/5.jpg");
    background-size:cover;
  }
  .about-txt-box {
    position: absolute;
    left: 50%;                 /* center horizontally */
    bottom: -270px;             /* overlap the frame (push below a bit) */
    transform: translateX(-50%);
    background: var(--white);
    max-width: 350px;
    width: calc(100% - 2rem);  /* prevents overflow on small screens */
    border-radius: 40px;
    padding: 26px;
  }
  .actions-container-about {
    display: none;
  }
  #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
    margin-top: 15rem;
  }
  .contact-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .contact-container {
    max-width: 500px;
  }
  .vertical-line {
    width: 500px;
    height: 3px;
    background: var(--scotland-blue);
    position: relative;
    border-radius: 999px;
  }
  .contact-left,
  .contact-right {
    flex: 1;
    align-content: center;
  }
  .contact-left {
    padding: 0px 26px 26px 16px;
  }
  .contact-right {
    padding: 26px 16px 26px 0px;
  }
  .contact-right li{
    line-height: 60px;
  }

  .actions-container-about-tablet {
    margin-bottom: 15rem;  
  }
}
@media (max-width: 650px) {
.hero-art-mobile, .hero-art-skills-mobile, .hero-art-experience-mobile, .hero-art-background-mobile, .hero-art-footer-mobile {
    display: block;
    width: 100%;
    height: auto;
  }
#video-introduction {
    margin-bottom: 5rem !important;
}
.hero-art-tablet, .hero-art-skills, .hero-art-experience, .hero-art-background-tablet, .hero-art-footer-tablet {
    display: none;
  }
  .skills-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .skills-right .placeholder {
    width: 400px;
    height: 600px;
    background-color: rgb(207, 207, 207);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  .skills-text-placeholder, .experience-txt-placeholder {
    text-align: left !important;
    max-width: 400px;
  }
 .round-btn {
    margin: 10px !important;
  }
  .arrow {
    width: 1.75rem;
  }
  .exp-video-tablet .placeholder {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 400 / 600;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  .case {
    width: min(700px, 75vw);
  }
  .placeholder-about {
    width: 400px;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    background-image: url("/links/img/5.jpg");
        background-size:cover;

  }
  .about-txt-box {
    bottom: -350px;
    max-width: 300px;
    width: calc(100% - 2rem);  /* prevents overflow on small screens */
  }
  .contact-container {
    max-width: 350px;
  }
  .vertical-line {
    width: 350px;
    height: 3px;
  }
}
@media (max-width: 430px) {
  .skills {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .skills-right .placeholder {
    width: calc(100vw - 2rem);
    max-width: 360px;
    height: auto;
    aspect-ratio: 400 / 600;
  }

  .skills-text-placeholder,
  .experience-txt-placeholder {
    max-width: calc(100vw - 2rem);
  }

  .round-btn,
  .skills-round-btn {
    width: 3.4rem;
    height: 3.4rem;
  }

  .round-btn {
    margin: 6px !important;
  }

  .exp-video-tablet .placeholder {
    width: calc(100vw - 2rem);
    max-width: 360px;
  }

  .about-content {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .placeholder-about {
    width: 340px;
    max-width: calc(100vw - 3rem);
  }

  .about-txt-box {
    max-width: 300px;
    width: calc(100% - 3rem);
  }

  .contact-container {
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  .vertical-line {
    width: 100%;
  }

  .contact-list li {
    min-width: 0;
  }

  .contact-list a {
    overflow-wrap: anywhere;
  }
 .case {
    width: min(700px, 82vw);
  }

  .case-frame {
    transform: translateY(-5px);
  }

  .info-card {
    bottom: -150px;
  }

  .dots {
    margin-top: 190px;
  }
}

@media (min-width: 990px) {

  .hero-art-tablet, .hero-art-skills, .hero-art-experience, .icons-mobile, .headline-mobile, .skills-text-placeholder, .experience-txt-placeholder, .exp-video-tablet, .hero-art-background-tablet, .actions-container-about-tablet, .hero-art-footer-tablet {
    display: none;
  }
  #introduction{
    position: relative;
    margin: 0;
  }
  .hero-art{
    display: block;   /* removes inline-image gap */
    width: 100%;      /* fills left/right */
    height: auto;     /* height follows image ratio */
  }
  #skills {
    position: relative;
  }
  .skills-container {
    position: absolute;
    inset: 0;
    padding-top: 58%;       /* top:0; right:0; bottom:0; left:0 */
    z-index: 2;
    pointer-events: none;  /* optional: if content shouldn't block */
  }
  .skills {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
    height: auto;
    display: flex;
    flex-direction: row;
  }
  .skills-left {
    padding-right: 50px;
  }
  .skills-container * {
    pointer-events: auto;
  }
  .brand-design, .digital-design, .web-design, .print-layout {
    display: flex;
    margin-top: 10px;
  }
  .skill-txt h3 {
    margin:0;
  }
  .arrow {
    width: 10%;
  }
  .timeline {
    display: flex;
    justify-content: center;
  }
  .exp-container{
    position:absolute; 
    inset:0; 
    z-index:2; 
  }
  .exp-stack{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 92vw);

    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }
  .exp-top, .exp-bottom { 
    position: static; 
  }
  .exp-bottom {
      width: 100%;
  }
  .exp-top{
    width: 100%;
    text-align: center;
  }
  .test {
    display: flex;
    align-items: flex-start;
  }
  .exp-video{
    flex: 0 0 420px;
  }
  .exp-txt{
      max-width: 520px;
  }
  .timeline{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
  }
  .placeholder {
    width: 400px;
    height: 600px;
    border-radius: var(--border-radius);
    object-fit: cover;
    display: block;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  .placeholder-case {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
  }
  .fade-out {
      opacity: 0;
  }

  .fade-in {
      opacity: 1;
  }
  .portfolio-container {
    display: flex;
    align-items: center;  
    flex-direction: column;
  }
  .case {
    position: relative;
    width: min(700px, 60vw);
  }
  .case-frame{
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
  }
  .info-card{
    position: absolute;
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
    background: var(--white);
    max-width: 500px;
    width: calc(100% - 2rem);
    border-radius: 40px;
    padding: 26px;
  }
  .info-title, .info {
    color: var(--scotland-blue);
  }
  .info-title {
    margin: 10px 0px 10px 0px;
  }
  span.info-cat {
    font-weight: var(--fw-bold);
    font-size: var(--copy);
  }

  #about {
    position: relative;
    overflow: visible;
  }
  .about-content {
    max-width: 950px;
    margin: -14rem auto 6rem;
    padding: 0 1.5rem 6rem;
  }
  .about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    column-gap: 4rem;
    align-items: center;
  }
  .placeholder-about {
    width: 450px;
    height: 600px;
    background: #cfcfcf;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
        background-image: url("/links/img/5.jpg");
            background-size:cover;

  }
  .about-txt-box {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 2.5rem 2rem 3.5rem;
    margin-left: -5rem;
  }
  .actions-container-about {
    margin-top: 4rem;
    text-align: center;
  }
  .actions-container-about h2 {
    margin: 0 0 2rem;
  }
  .contact-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 26px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
  }
  .contact-container {
    max-width: 800px;
  }
  .vertical-line {
    width: 3px;
    height: 300px;
    background: var(--scotland-blue);
    position: relative;
    border-radius: 999px;
  }
  .contact-left,
  .contact-right {
    flex: 1;
    align-content: center;
  }
  .contact-left {
    padding: 0px 26px 0px 16px;
  }
  .contact-right {
    padding: 0px 16px 0px 66px;
  }
  .contact-right li{
    line-height: 60px;
  }
}
@media (min-width: 2000px) {
  .scroll-cue {
    bottom: 5rem;
  }
}