    /* ── RESET ─────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    em, i, cite, var { font-style: normal; }

    :root {
	  --accent: #00455c; /*korostus */
	   
	  --link:    #2E7E84; /*linkit */
	  --linkhover: #22686D; /*linkkipainikkeet hover */
      --bg:      #EDEFF2; /* tausta */ /* ── esittely #6d327c, #485DA6, #00a1ba, #00BF98, #36C486) */
      --ink:     #111111; /*body text*/
      
	  --muted:   #505050;
      --rule:    #C5C9CE;
      --white:   #FFFFFF;
      --dark:    #1b365d;

      --f-body:    'DM Sans', sans-serif;
        
    }
	
	
    /* ── taustavärit  ──────────────────────────────────────── */	
	#esittely.portfolio {color: var(--white); padding-top: 144px;}
	#esittely.portfolio.project1 {background:linear-gradient(to right top, #38438b, #944b94, #d75a88); }	
	#esittely.portfolio.project2 {background:linear-gradient(to left bottom, #00bf98, #00a79b, #008f95, #007687, #235e72, #2f4858); }
	#esittely.portfolio.project3 {background:linear-gradient(to left bottom, #00a1ba, #0c92c4, #00455c);}
	#esittely.portfolio.project6 {background:linear-gradient(to right top, #13303a, #1d5a66, #2a8a88);}



    html { scroll-behavior: smooth; font-style: normal; font-size: 16px; }

    body {
      background: var(--bg);
      color: var(--ink);
      font-family: var(--f-body);
      font-weight: 400;
      line-height: 1.5;
	  font-size: 18px;
      overflow-x: hidden;
    }

	/* a:link, a:visited, a:active {color: var(--link);}
	a:hover {text-decoration: underline; color: var(--link);} */
	
	h1, h2.h1 {font-size: 64px; line-height: 70px; margin-bottom: 24px; font-weight: 600;}
	h2 {font-size: 48px; line-height: 52px; margin-bottom: 32px;  font-weight: 600;}
	h2.space {padding-top: 64px;}
	h3 {font-size: 32px; line-height: 38px; margin-bottom: 16px; font-weight: 600;}	
	h4 {font-size: 20px; line-height: 26px; margin-bottom: 12px; font-weight: 600;}	
	h5 {font-size: 16px; line-height: 22px; margin-bottom: 8px; font-weight: 600;}
	
	.accent {color: var(--accent); }
	.accent2 {color: var(--accent2); }

    img { display: block; max-width: 100%; }


    /* ── DARK SECTION COLOUR OVERRIDES (contrast compliance) ── */
    #esittely, .cs-challenge {
      --accent: #fff;
      --muted:  #A0A0A0;
    }
    [style*="background: var(--dark)"],
    .mobile-menu {
      --accent: #0DB32B;
      --muted:  #A0A0A0;
    }
	
	ul {margin-left: 30px; padding-bottom: 10px; }
	ul li  {margin-bottom: 12px;}
	
	hr {margin: 32px 0 48px; border: 1px solid var(--rule);}
	
	p {margin-bottom: 16px;}
	
	a {color: var(--link); text-decoration:underline;}
	a:hover {text-decoration:none;}
	
	
	 /* ── back  portfoliosta ────────────────────────────────────────── */
	 .back-link { font-family: var(--f-label); font-size: 13px; letter-spacing: 0.16em; color: var(--ink); text-decoration: none; transition: color 0.15s; }
    .back-link:hover { color: var(--accent); }
	
	 /* ── bottom nav portfoliossa ── */
    .cs-footer-nav { padding: 56px 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--rule); gap: 24px; }
    .fnav-back { font-family: var(--f-label); font-size: 13px; letter-spacing: 0.16em; color: var(--ink); text-decoration: none; transition: color 0.15s; }
    .fnav-back:hover { color: var(--accent); }
    .fnav-center { text-align: center; }
    .fnav-sig { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
    .fnav-end { font-family: var(--f-label); font-size: 13px; letter-spacing: 0.16em; color: var(--ink); text-decoration: none; text-align: right; transition: color 0.15s; display: block; }
    .fnav-end:hover { color: var(--accent); }
    .fnav-end-label { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--ink); display: block; margin-top: 4px; }
    .fnav-prev { display: block; text-align: left; }
    .fnav-prev-label { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--ink); display: block; margin-top: 4px; }
	
	
	  @media (max-width: 990px) {
     
      .fnav-end, .fnav-prev { text-align: center; }
    }


    /* ── NAV ────────────────────────────────────────── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      height: 56px;
      display: flex;
      align-items: center;
      padding: 0 48px;
      background: rgba( 253, 253, 253, 0.81 );
      backdrop-filter: blur(10px);
	  border-bottom: 1px solid #eaeaea;
	 }

    .nav-logo {
      font-size: 18px;
      font-weight: 600;
      color: #111;
      text-decoration: none;
      margin-right: auto;
    }

    .nav-links {
      display: flex;
      gap: 36px;
      list-style: none;
	  margin-top: 14px;
    }

    .nav-links a {
      font-size: 16px;
      font-weight: 400;
      color: var(--ink);
      text-decoration: none;
      position: relative;
      padding-bottom: 4px;
      transition: color 0.15s;
    }

    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px; left: 0;
      width: 0; height: 4px;
      background: var(--link);
      transition: width 0.22s ease;
    }

    .nav-links a:hover { color: var(--dark); }
    .nav-links a.active { color: var(--ink); }
    .nav-links a.active::after,
    .nav-links a:hover::after { width: 100%; }

    /* Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
    }

    .hamburger span {
      display: block;
      width: 22px; height: 1px;
      background: var(--ink);
      transition: transform 0.22s, opacity 0.22s;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    /* Mobile overlay */
    .mobile-menu {
      position: fixed;
      inset: 56px 0 0;
      background: var(--link);
      overflow-y: auto;
      height: auto;
      z-index: 199;
      display: none;
      flex-direction: column;
      padding: 0px;
    }

    .mobile-menu.open { display: flex; }

    .mobile-menu a {
    
      font-weight: 400;
      color: var(--white);
	  width: 100%; 
	  display: block;
      text-decoration: none;
      line-height: 1.15;
      border-top: 1px solid rgba(255,255,255,0.15);
      padding: 16px 0 16px 20px;
      transition: color 0.15s;
	  font-weight: 500; 
    }

    .mobile-menu a:first-child { border-bottom: none; }
    .mobile-menu a:hover { }

    .mobile-menu a.active {
      color: var(--bg);
      border-left: 4px solid var(--white);
      padding-left: 20px;
    }
	
	 .mobile-menu a.sublevel {padding-left: 30px; border-top:0; font-weight: 400; }
	 .mobile-menu a.sublevel.activesub  {border-left: 4px solid var(--white);}


    /* ── SECTIONS ────────────────────────────────────── */
    main { padding-top: 0; }

    section {
      padding: 64px 0;
      position: relative;
	  margin: 0 auto;
    }
	
	section#vaalea, section#palvelun-esittely { background: var(--white); padding: 64px 0; }
	section#tumma { background: var(--bg); padding: 64px 0;}
	
	.contentwrapper {margin: 0 auto; max-width: 1280px; width: 100%; padding: 0 32px;}
	

    .ghost-num {
     
      line-height: 1;
      color: var(--rule);
      position: absolute;
      top: 32px; right: 48px;
      user-select: none;
      pointer-events: none;
    }

    .kicker {
      font-size: 16px;
	  font-weight: 600;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 28px;
    }

    /* ── HERO ─────────────────────────────────────────── */
    #hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 0;
      position: relative;
      overflow: hidden;
	  
    }

    .hero-bg {
      position: absolute;
	  right:-3.5%;
	  opacity: 0.5;
	  top:10%;
      width: 25%;
      z-index: 2;  
    }

    /* Gradient layeri — vaalea pohjalta, normaali ylhäältä */
    .hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      background: linear-gradient(to right top, #6d327c, #485DA6, #00a1ba, #00BF98, #36C486)
    }
	
    .hero-content {
      position: relative;
      z-index: 2;
      padding: 0 0 120px;
	 color: var(--white);
    }
	
	.hero-content-portfolio {
	  position: relative;
      z-index: 2;
      padding: 0;			
	}
	


    .hero-meta {
      font-size: 16px;
      color: var(--white);
      margin-bottom: 32px;
    }

    .hero-sub {
      font-size: 24px;
	  line-height: 30px;
      font-weight: 400;
      margin-bottom: 40px;
    }
	
	#hero .hero-sub {max-width: 860px;}
	
	#esittely .hero-sub {margin-bottom: 24px; }
	#esittely.portfolio .hero-sub {margin-bottom: 0px; }

    .btn-primary {
      display: inline-block;
      
   
      color: var(--bg);
      background: var(--ink);
      padding: 15px 36px;
      text-decoration: none;
      transition: background 0.15s;
    }

    .btn-primary:hover { background: var(--accent); }

    .scroll-hint {
      position: absolute;
      bottom: 44px; left: 0px;
      font-size: 14px;   
      color: var(--ink);
    }

    /* ── esittely #6d327c, #485DA6, #00a1ba, #00BF98, #36C486) */
    #esittely {
     
	  
    }


    .esittely-cols {
	  margin-top:32px;
      display: grid;
      grid-template-columns: repeat(2,1fr);
    }
	
	.konkreatia.esittely-cols {grid-template-columns: repeat(2,1fr);}
	.ydinosaaminen.esittely-cols {grid-template-columns: repeat(3,1fr);}

    .esittely-col {
      border-left: 0;
      padding: 0 44px 40px 0;
    }

    .esittely-col:first-child { }

    .esittely-stat {
      font-size: 56px;
      color: var(--accent);
      margin-bottom: 12px;
    }
	
	.big {font-size: 28px;
    font-weight: 700;}
	
	.esittely-stat img {width: 64px; }
	
	.esittely-stat svg path {fill: blue; }

    .esittely-col h3 {
     
      color: var(--bg);
      margin-bottom: 16px;
    }

    .esittely-col p {
      font-size: 18px;
     
    }

    /* ── tyokokemus ─────────────────────────────────────── */
    #tyokokemus {  background: var(--white);  }



    .exp-row {
      display: grid;
      grid-template-columns: 164px 0 1fr;
      gap: 0;
      padding: 40px 0;
    }

    .exp-row { border-bottom: 1px solid var(--rule); }

    .exp-years {
      font-size: 16px;
      color: var(--ink);
      padding-top: 0;
    }

    .exp-rule {
      width: 0;
      background: var(--rule);
    }

    .exp-role {
      font-weight: 600;
      margin-bottom: 6px;
    }

    .exp-co {
      font-size: 16px;
	  font-weight: 500;
     
      color: var(--accent);
      margin-bottom: 12px;
    }

    .exp-desc {
      font-size: 18px;
      color: var(--ink);
      
    }

    /* ── portfolio ────────────────────────────────────────────── */
    #portfolio {}



    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
	  margin-left:-48px;
    }

    .portfolio-card {
      padding: 0 48px 48px;
	  margin-top: 24px;
    }
	
	 .portfolio-card h4 {margin-bottom: 24px;}
	 .portfolio-card h4 a {text-decoration:none; color: var(--ink);}


    .portfolio-img {
      width: 100%;
	  height: 230px;
      object-fit: cover;
      object-position: top center;
      margin-bottom: 24px;

    }

    .portfolio-card:hover .portfolio-img { filter: grayscale(0%); }

    .portfolio-idx {
      font-size: 16px;
      
      color: var(--accent);
      margin-bottom: 6px;
    }

   

    .portfolio-desc {
      font-size: 16px;
      color: var(--ink);
     
      margin-bottom: 20px;
    }

    .portfolio-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 22px;
    }

    .tag {
      font-size: 14px;
      
      border: 1px solid var(--rule);
      padding: 4px 8px;
      color: var(--ink);
    }

    .portfolio-link {
      color: #fff;
	  background-color: var(--link);
	  border-radius: 25px;
      text-decoration: none;
      padding: 10px 15px;
	  font-weight: 600;  
     display:inline-block;	  
    }

    .portfolio-link:hover { background: var(--linkhover); }
	
	.kuvagalleria {}
	.portfoliokuva {border: 2px solid #eaeaea; border-radius: 8px; margin: 0 auto 50px auto; }
	

    /* ── palautteita ──────────────────────────────────── */
    #palautteita { background: var(--white);}



    .test-grid {
      display: grid;
      grid-template-columns: 1fr;
    }

    .test-card {
      padding: 44px 44px 44px 0;
    }

    .test-card {
      padding: 32px 0 ;
      border-bottom: 1px solid var(--rule);
    }


    .test-author {
      display: flex;
      align-items: center;
      gap: 16px;
    }


    .test-name {
      font-size: 16px;
      font-weight: 500;
	  color:  var(--accent);
    }

    .test-role {
      font-size: 16px;
      color: var(--ink);
    }

    /* ── yhteys ───────────────────────────────────────── */
    #yhteys { min-height: 80vh; background:linear-gradient(to right top, #38438b, #944b94, #d75a88, #ff7e71, #ffb25f, #ffeb68); color:#fff;  }


    .yhteys-headline em {
      color: var(--accent);
    }

    .yhteys-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .yhteys-cell {
      padding: 32px 0;
      border-top: 1px solid var(--rule);
    }
	
	.yhteys-cell img {
		border-radius: 110px; width: 200px; border: 5px solid var(--bg); margin: 0 auto;;
	}

    .yhteys-cell:nth-child(1),
    .yhteys-cell:nth-child(2) {
      border-top: none;
    }

    .yhteys-cell:nth-child(even) {
      padding: 64px 0 32px 32px;
    }

    .yhteys-label {
      font-size: 16px;
      margin-bottom: 8px;
    }

    .yhteys-val {

      font-weight: 400;
      color: var(--white);
      text-decoration: none;
      border-bottom: 1px solid transparent;
      transition: color 0.15s, border-color 0.15s;
    }

    a.yhteys-val {color: var(--white); text-decoration: underline;}
    a.yhteys-val:hover {
      color: var(--hover);
	  text-decoration:none;
    }

    /* ── FOOTER ───────────────────────────────────────── */
    footer {
      padding: 28px 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-top: 1px solid var(--rule);
	  background: var(--white); 
    }

    footer p {

      font-size: 16px;
    
      color: var(--ink);
    }


@media (max-width: 1100px) {
   .hero-bg {display:none;}
}

    /* ── RESPONSIVE ───────────────────────────────────── */
    @media (max-width: 990px) {
		
      nav    { padding: 0 24px; }
	  .contentwrapper { padding: 0 24px;}
      #hero  { padding: 0; }
      .hero-content { padding: 0 0 84px; }
      .ghost-num { right: 24px; font-size: 100px; }
      .scroll-hint { display: none; }

      .nav-links  { display: none; }
      .hamburger  { display: flex; }

      .esittely-cols, .konkreatia.esittely-cols, .ydinosaaminen.esittely-cols { grid-template-columns: 1fr; gap: 0; }
	  
      .esittely-col:first-child { border-top: none; margin-top: 0; padding-top: 0; }

      .exp-row { grid-template-columns: 1fr; gap: 12px; }
      .exp-rule { display: none; }

      .portfolio-grid { grid-template-columns: 1fr; margin-left:0; }
      .portfolio-card {border:0;padding: 64px 0 0;margin-top: 0;}
      .portfolio-card:first-child { border-top: none; padding-top: 0; }	  

      .yhteys-grid { grid-template-columns: 1fr; }
      .yhteys-cell:nth-child(even) {border-left: none;padding: 16px 0;}
	  .yhteys-cell img {margin:0;}

      footer { flex-direction: column; gap: 6px; padding: 24px; text-align: center; }
    }

    @media (max-width: 660px) {
      body, p, .esittely-col p, .exp-desc, .exp-co {font-size: 17px; line-height:1.4; }
	  section  {padding: 64px 0 48px 0;}
	  section#vaalea, section#tumma, section#palvelun-esittely {padding: 64px 0 48px 0;}
	  #esittely.portfolio {padding-top: 96px;}
	h1, h2.h1 {font-size: 42px; line-height: 46px; margin-bottom: 16px; }
	h2 {font-size: 34px; line-height: 40px; margin-bottom: 16px; }
	h3 {font-size: 26px; line-height: 32px;}
	p.hero-meta {margin-bottom: 16px;}
	.contentwrapper{padding: 0 16px;}
    .esittely-col {padding-bottom: 24px;}
	hr {margin: 0 0 32px;}
	.esittely-stat img {width: 48px;}
	.portfolio-grid {padding-top: 32px; }
	.portfolio-card {padding-top: 48px; }
	.exp-row {padding: 32px 0;}
	.exp-desc {margin-bottom:0;}
	
	}

    /* ── SKIP LINK  ── */
    .skip-link {
      position: absolute;
      top: -120px;
      left: 16px;
      background: var(--ink);
      color: var(--bg);
   
      font-size: 16px;
    
      padding: 12px 24px;
      z-index: 9999;
      text-decoration: none;
    }
    .skip-link:focus { top: 8px; }

    /* ── FOCUS STYLES (2.4.7) ── */
    :focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }
	