:root{
    --off-white:#F9F9FB;
    --dark:#0E2A23;
    --dark-2:#132E27;
    --coral:#FF5A4E;
    --coral-deep:#E64A3E;
    --sage:#9CAE8C;
    --sage-light:#C7D2BC;
    --ink:#1B1F1D;
    --muted:#6B7570;
    --white:#FFFFFF;
    --ring: rgba(255,90,78,0.45);
  }

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

  html{scroll-behavior:smooth;}

  body{
    font-family:'Inter', sans-serif;
    background:var(--off-white);
    color:var(--ink);
    line-height:1.5;
    opacity:0;
    animation: pageIn .8s ease forwards;
    overflow-x:hidden;
  }

  @keyframes pageIn{ to{opacity:1;} }

  h1,h2,h3,h4{
    font-family:'Montserrat', sans-serif;
    font-weight:800;
    line-height:1.08;
    letter-spacing:-0.01em;
  }

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

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

  button{font-family:inherit;cursor:pointer;border:none;background:none;}

  .container{
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:0 32px;
  }

  :focus-visible{
    outline:3px solid var(--coral);
    outline-offset:3px;
    border-radius:4px;
  }

  /* -------------------- BUTTONS -------------------- */
  .btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 26px;
    border-radius:999px;
    font-weight:600;
    font-size:15px;
    transition:transform .3s ease, box-shadow .3s ease, background .3s ease;
    white-space:nowrap;
  }
  .btn-coral{
    background:var(--coral);
    color:#fff;
    box-shadow:0 8px 20px rgba(255,90,78,0.28);
  }
  .btn-coral:hover{
    transform:translateY(-3px) scale(1.03);
    box-shadow:0 14px 28px rgba(255,90,78,0.38);
    background:var(--coral-deep);
  }
  .btn-coral svg{transition:transform .3s ease;}
  .btn-coral:hover svg{transform:translateY(3px);}

  .btn-outline{
    background:transparent;
    border:1.5px solid rgba(255,255,255,0.55);
    color:#fff;
  }
  .btn-outline:hover{
    background:rgba(255,255,255,0.12);
    transform:translateY(-2px);
  }

  /* -------------------- REVEAL ANIMATION -------------------- */
  .reveal{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s ease, transform .7s ease;
  }
  .reveal.in-view{opacity:1;transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    *{animation-duration:.001s !important; animation-iteration-count:1 !important; transition-duration:.001s !important; scroll-behavior:auto !important;}
    .reveal{opacity:1;transform:none;}
  }

  /* -------------------- HEADER -------------------- */
  header{
    position:fixed;
    top:0;left:0;right:0;
    z-index:100;
    background:rgba(249,249,251,0.7);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(14,42,35,0.06);
    transition:background .3s ease;
  }
  .nav-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 32px;
    max-width:1240px;
    margin:0 auto;
  }
  .logo{
    font-family:'Montserrat',sans-serif;
    font-weight:800;
    font-size:20px;
    letter-spacing:-0.02em;
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--dark);
  }
  .logo .dot{
    width:9px;height:9px;border-radius:50%;
    background:var(--coral);
    display:inline-block;
  }
  nav.primary-nav{display:flex;gap:36px;}
  nav.primary-nav a{
    font-size:15px;
    font-weight:500;
    color:var(--dark);
    position:relative;
    padding:4px 0;
  }
  nav.primary-nav a::after{
    content:'';
    position:absolute;
    left:0;bottom:-2px;
    width:0;height:2px;
    background:var(--coral);
    transition:width .3s ease;
  }
  nav.primary-nav a:hover::after,
  nav.primary-nav a:focus-visible::after{width:100%;}

  .header-right{display:flex;align-items:center;gap:22px;}

  .hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    width:26px;
    z-index:200;
  }
  .hamburger span{
    height:2px;width:100%;
    background:var(--dark);
    border-radius:2px;
    transition:transform .3s ease, opacity .3s ease;
  }
  .hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .hamburger.active span:nth-child(2){opacity:0;}
  .hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .mobile-menu{
    position:fixed;
    inset:0;
    background:var(--dark);
    z-index:150;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:34px;
    transform:translateY(-100%);
    transition:transform .45s cubic-bezier(.65,0,.35,1);
  }
  .mobile-menu.open{transform:translateY(0);}
  .mobile-menu a{
    color:#fff;
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:26px;
  }
  .mobile-menu a:hover{color:var(--coral);}

  @media (max-width:860px){
    nav.primary-nav{display:none;}
    .header-right .btn-coral{display:none;}
    .hamburger{display:flex;}
  }

  /* -------------------- HERO -------------------- */
  .hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    overflow:hidden;
  }
  .hero-media{
    position:absolute;inset:0;
    z-index:0;
  }
  .hero-media img{
    width:100%;height:100%;
    object-fit:cover;
    transform:scale(1.08);
    will-change:transform;
  }
  .hero-media::after{
    content:'';
    position:absolute;inset:0;
    background:linear-gradient(180deg, rgba(14,42,35,0.55) 0%, rgba(14,42,35,0.35) 40%, rgba(14,42,35,0.85) 100%);
  }
  .hero-content{
    position:relative;
    z-index:2;
    max-width:1240px;
    margin:0 auto;
    padding:0 32px;
    width:100%;
    padding-top:60px;
  }
  .hero-inner{max-width:620px;}
  .badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.25);
    color:#fff;
    font-size:13px;
    font-weight:500;
    padding:8px 16px;
    border-radius:999px;
    margin-bottom:24px;
    backdrop-filter:blur(4px);
  }
  .badge svg{width:13px;height:13px;flex-shrink:0;}
  .hero h1{
    color:#fff;
    font-size:clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom:22px;
  }
  .hero h1 .line-wrap{
    display:block;
    overflow:hidden;
    padding-bottom:.08em;
  }
  .hero h1 .line{
    display:block;
  }
  .hero h1 .accent{color:var(--coral);}
  .hero p{
    color:rgba(255,255,255,0.85);
    font-size:18px;
    max-width:480px;
    margin-bottom:34px;
  }
  .hero-actions{display:flex;gap:16px;flex-wrap:wrap;}

  /* Layered hero entrance: each element rises up and fades in on its own delay */
  .hero-in{
    opacity:0;
    transform:translateY(38px);
    animation:heroRise .85s cubic-bezier(.16,1,.3,1) forwards;
  }
  @keyframes heroRise{
    to{opacity:1;transform:translateY(0);}
  }
  @media (prefers-reduced-motion: reduce){
    .hero-in{animation:none;opacity:1;transform:none;}
  }

  /* Rolling animated wave at hero base */
  .hero-wave{
    position:absolute;
    left:0;right:0;bottom:-2px;
    z-index:3;
    line-height:0;
    height:140px;
    overflow:hidden;
  }
  .hero-wave svg{
    position:absolute;
    bottom:0;
    width:200%;
    height:100%;
  }
  .wave-back{
    animation:waveScroll 18s linear infinite;
    opacity:0.55;
  }
  .wave-front{
    animation:waveScroll 11s linear infinite reverse;
  }
  @keyframes waveScroll{
    from{transform:translateX(0);}
    to{transform:translateX(-50%);}
  }

  /* -------------------- SECTION HEADERS -------------------- */
  .section{
    padding:120px 0;
  }
  .section-intro{
    text-align:center;
    max-width:700px;
    margin:0 auto 64px;
  }
  .section-intro h2{
    font-size:clamp(1.9rem, 3.4vw, 2.6rem);
    color:var(--dark);
    margin-bottom:16px;
  }
  .section-intro p{color:var(--muted); font-size:17px;}
  .section-intro.on-dark h2{color:#fff;}
  .section-intro.on-dark p{color:var(--sage-light);}

  /* -------------------- SERVICES -------------------- */
  .services-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:32px;
  }
  @media (max-width:960px){ .services-grid{grid-template-columns:1fr 1fr;} }
  @media (max-width:560px){ .services-grid{grid-template-columns:1fr; max-width:320px; margin:0 auto;} }

  .service-card{
    text-align:center;
  }
  .service-icon-frame{
    width:180px;height:180px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 10px 30px rgba(14,42,35,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 22px;
    position:relative;
    overflow:hidden;
    border:5px solid #fff;
    transition:transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  }
  .service-card:hover .service-icon-frame{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(14,42,35,0.14);
  }
  .service-icon-frame img{
    width:100%;height:100%;
    object-fit:cover;
    border-radius:50%;
    transition:transform .5s ease;
  }
  .service-card:hover .service-icon-frame img{transform:scale(1.08);}
  .service-arrow{
    position:absolute;
    bottom:0px;right:6px;
    width:34px;height:34px;
    border-radius:50%;
    background:var(--coral);
    display:flex;align-items:center;justify-content:center;
    transition:transform .3s ease;
  }
  .service-arrow svg{width:14px;height:14px;stroke:#fff;transition:transform .3s ease;}
  .service-card:hover .service-arrow svg{transform:translateX(2px);}
  .service-card h3{font-size:18px;color:var(--dark);margin-bottom:8px;}
  .service-card p{font-size:14px;color:var(--muted);max-width:200px;margin:0 auto;}

  /* -------------------- PORTFOLIO -------------------- */
  .portfolio-section{
    position:relative;
    background:var(--dark);
    padding:0;
    overflow:hidden;
  }
  .divider{line-height:0;position:relative;z-index:2;}
  .divider svg{width:100%;height:auto;display:block;}
  .divider-top{margin-bottom:-2px;}
  .divider-bottom{margin-top:-2px;transform:rotate(180deg);}

  .portfolio-inner{padding:100px 0;}
  .portfolio-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:24px;
    margin-bottom:52px;
    flex-wrap:wrap;
  }
  .portfolio-head h2{color:#fff;font-size:clamp(1.9rem,3.4vw,2.6rem);max-width:420px;}
  .portfolio-head p{color:var(--sage-light);max-width:360px;margin-top:14px;font-size:15px;}

  .carousel-track-wrap{
    overflow:hidden;
    margin:0 -8px;
  }
  .carousel-track{
    display:flex;
    gap:24px;
    padding:0 32px 0 8px;
    transition:transform .55s cubic-bezier(.65,0,.35,1);
    will-change:transform;
  }
  .port-card{
    position:relative;
    flex:0 0 340px;
    height:420px;
    border-radius:20px;
    overflow:hidden;
    scroll-snap-align:start;
  }
  .port-card img{
    width:100%;height:100%;object-fit:cover;
    transition:transform .6s ease;
  }
  .port-card:hover img{transform:scale(1.08);}
  .port-card::after{
    content:'';
    position:absolute;inset:0;
    background:linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.05) 55%);
  }
  .port-label{
    position:absolute;
    left:24px;right:24px;bottom:24px;
    z-index:2;
    color:#fff;
  }
  .port-tag{
    display:inline-block;
    font-size:12px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--sage-light);
    margin-bottom:6px;
  }
  .port-label h3{font-size:22px;font-family:'Montserrat',sans-serif;font-weight:700;}

  .carousel-controls{
    display:flex;
    gap:14px;
    margin-top:40px;
  }
  .carousel-btn{
    width:46px;height:46px;
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,0.3);
    display:flex;align-items:center;justify-content:center;
    color:#fff;
    transition:background .3s ease, border-color .3s ease, opacity .3s ease, transform .2s ease;
  }
  .carousel-btn svg{width:16px;height:16px;}
  .carousel-btn:hover:not(:disabled){background:var(--coral);border-color:var(--coral);transform:scale(1.06);}
  .carousel-btn:disabled{opacity:.3;cursor:default;}

  @media (max-width:600px){
    .port-card{flex:0 0 80vw;height:380px;}
  }

  /* -------------------- TESTIMONIALS -------------------- */
  .testimonial-section{padding:120px 0;}
  .test-track-wrap{overflow:hidden;}
  .test-track{
    display:flex;
    gap:26px;
    transition:transform .5s cubic-bezier(.65,0,.35,1);
    cursor:grab;
    user-select:none;
  }
  .test-track.dragging{cursor:grabbing;transition:none;}
  .test-card{
    flex:0 0 calc(33.333% - 18px);
    background:#fff;
    border-radius:20px;
    padding:34px;
    box-shadow:0 10px 30px rgba(14,42,35,0.06);
  }
  .quote-mark{
    width:34px;height:34px;
    color:var(--coral);
    margin-bottom:18px;
  }
  .test-card p.review{
    font-size:15px;
    color:var(--ink);
    margin-bottom:22px;
    min-height:96px;
  }
  .stars{display:flex;gap:3px;margin-bottom:18px;}
  .stars svg{width:15px;height:15px;fill:var(--coral);}
  .test-person{display:flex;align-items:center;gap:12px;}
  .avatar{
    width:44px;height:44px;
    border-radius:50%;
    object-fit:cover;
    flex-shrink:0;
    background:var(--sage-light);
  }
  .test-person h4{font-size:14px;font-family:'Inter',sans-serif;font-weight:600;color:var(--dark);}
  .test-person span{font-size:13px;color:var(--muted);}

  @media (max-width:900px){ .test-card{flex:0 0 calc(50% - 13px);} }
  @media (max-width:600px){ .test-card{flex:0 0 82%;} }

  .dots{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:44px;
  }
  .dot-btn{
    width:10px;height:10px;
    border-radius:50%;
    border:1.5px solid var(--coral);
    background:transparent;
    transition:background .3s ease, transform .3s ease, width .3s ease;
  }
  .dot-btn.active{background:var(--coral);width:26px;border-radius:6px;}

  /* -------------------- FOOTER -------------------- */
  footer{
    background:var(--dark);
    color:#EAEFEC;
    padding:80px 0 30px;
  }
  .footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:40px;
    padding-bottom:50px;
    border-bottom:1px solid rgba(255,255,255,0.1);
  }
  .footer-grid h4{
    font-family:'Montserrat',sans-serif;
    color:#fff;
    font-size:15px;
    margin-bottom:18px;
  }
  .footer-grid p, .footer-grid a{
    color:var(--sage-light);
    font-size:14px;
    line-height:2;
  }
  .footer-grid a:hover{color:var(--coral);}
  .footer-logo{
    font-family:'Montserrat',sans-serif;
    font-weight:800;
    font-size:20px;
    color:#fff;
    margin-bottom:14px;
    display:flex;align-items:center;gap:8px;
  }
  .footer-social{display:flex;gap:12px;margin-top:18px;}
  .footer-social a{
    width:38px;height:38px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,0.2);
    display:flex;align-items:center;justify-content:center;
    transition:background .3s ease,border-color .3s ease, transform .3s ease;
  }
  .footer-social a:hover{background:var(--coral);border-color:var(--coral);transform:translateY(-3px);}
  .footer-social svg{width:16px;height:16px;stroke:#fff;}

  .footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:26px;
    font-size:13px;
    color:var(--sage-light);
    flex-wrap:wrap;
    gap:10px;
  }

  @media (max-width:760px){
    .footer-grid{grid-template-columns:1fr 1fr;}
  }
  @media (max-width:480px){
    .footer-grid{grid-template-columns:1fr;}
    .section{padding:80px 0;}
    .portfolio-inner{padding:70px 0;}
  }
