:root {
  --dark-bg: #111;
  --accent: #00C78C;
  --accent-hover: #018b62;
  --text: #fff;
  --font: 'Manrope', sans-serif;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.frame {
  display: flex;
  flex-direction: column;
  height: 100vh;
  border: 1px solid var(--text);
  border-left: none;
  border-right: none;
}
/**/
/* === Heading Styles === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.4em 0 0.6em 0;
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  font-size: 2rem;
  color: var(--accent);
  text-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

h2 {
  font-size: 1.4rem;
  color: var(--text);
}

h3 {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
  color: #bbb;
}

.subtitle, .sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
  color: #bbb;
  margin-bottom: 0.5em;
  margin-top: 0.1em;
}

@media (max-width: 900px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  h3 { font-size: 1rem; }
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

/**/

header,
footer {
  flex-shrink: 0;
  padding: 1rem;
}

header {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--text);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.5rem;
}

footer {
  font-size: 0.75rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 8px;
  z-index: 1000;
}

#viewer {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  overflow-x: auto;
  scroll-behavior: smooth;
  border-left: 1px solid var(--text);
  border-right: 1px solid var(--text);
}


.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-right: 1px solid var(--text);
  min-width: 100%;
  flex-shrink: 0;
  transition: min-width 0.6s ease, background 0.4s ease;
}

.page::before {
  content: attr(data-index);
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.page:last-of-type {
  border-right: none;
}

.summary {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    ". title"
    "icon ."
    ". sub";
  height: 100%;
  overflow: hidden;
  position: relative;
}

.summary .text {
  grid-area: title;
  justify-self: end;
  align-self: start;
  /*font-weight: 400;*/
  font-size: 1rem;
}

.summary .motif {
  grid-area: icon;
  align-self: start;
  justify-self: start;
  width: 80%;
  margin-top: 4rem;
}

.summary .motif svg {
  width: 100%;
  height: auto;
  stroke: var(--text);
  fill: none;
  stroke-width: 2;
}

.summary .sub {
  grid-area: sub;
  justify-self: end;
  align-self: end;
  font-size: 0.75rem;
  opacity: 0.7;
}

.page.expanded {
  min-width: 80vw;
  overflow-y: auto;
  z-index: 10;
  background: var(--dark-bg);
}

.page .detail {
  display: none;
  padding: 3rem 2rem;
  transition: opacity 0.5s ease;
}

.page.expanded .summary {
  display: none;
}

.page.expanded .detail {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero svg {
  width: 100%;
  height: auto;
  stroke: var(--accent);
  fill: none;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.6;
}


.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #000;
  padding: 1.5rem;
  margin: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

.card svg {
  margin-bottom: 0.5rem;
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  fill: none;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  margin-top: 0.5rem;
  line-height: 1.6;
}

body.expanded-mode .page:not(.expanded) .summary {
  overflow: visible !important;
}

body.expanded-mode .page:not(.expanded) .summary .text {
  position: relative;
  overflow: visible;
}

body.expanded-mode .page:not(.expanded) .summary .text h2,
body.expanded-mode .page:not(.expanded) .summary .sub {
  transform: rotate(-90deg);
  transform-origin: top left;
  white-space: nowrap;
  display: inline-block;
  position: absolute;
  opacity: 1;
}

body.expanded-mode .page:not(.expanded) .summary .text h2 {
  left: -1rem;
  top: 4rem;
  font-size: 0.75rem;
}

body.expanded-mode .page:not(.expanded) .summary .sub {
  left: -1rem;
  bottom: 1rem;
  font-size: 0.65rem;
  opacity: 0.5;
}

form#contactForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

form#contactForm label {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0.5rem 0;
  display: block;
}

form#contactForm input,
form#contactForm textarea,
form#contactForm select {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form#contactForm textarea {
  min-height: 150px;
  resize: vertical;
}

form#contactForm input:focus,
form#contactForm textarea:focus,
form#contactForm select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent);
}

form#contactForm button {
  background-color: var(--accent);
  color: #000;
  border: none;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  align-self: start;
}

form#contactForm button:hover {
  background-color: #00e6a8;
}

.contact-wrapper {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 2rem;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background-color: #e6f4ea;
  color: #256029;
  border: 1px solid #a3d9a5;
}

.form-message.error {
  display: block;
  background-color: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c2c0;
}

.hero-text button,
.button--inverse {
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-text button:hover, 
.button--inverse:hover {
    transform: translateY(-2px);
    color: var(--accent-hover);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid var(--text);
  background-color: var(--dark-bg);
}

.footer-left,
.footer-right {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
/*
.page, .page .detail {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.page::-webkit-scrollbar,
.page .detail::-webkit-scrollbar {
  width: 6px;
}

.page::-webkit-scrollbar-track,
.page .detail::-webkit-scrollbar-track {
  background: transparent;
}

.page::-webkit-scrollbar-thumb,
.page .detail::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}
*/
html {
  scrollbar-width: thin;              
  scrollbar-color: var(--accent) transparent;
}

html::-webkit-scrollbar {
  width: 6px;
}
html::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 3px;
}

/**/
.site-footer {
  position: relative;
}

.cookie-banner {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 720px;
  padding: 0.3rem 0.8rem;
  
  background: var(--accent);
  color: #000;
  font-size: 0.8rem;
  border-radius: 4px;
  z-index: 1000;
	
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
  contain: layout style;
}

.cookie-banner.visible {
  opacity: 1;
}

.cookie-banner.invisible {
  opacity: 0 !important;
}
.cookie-banner a {
  color: #000;
  text-decoration: underline;
  margin: 0 0.5rem;
}
.cookie-banner button {
  background: transparent;
  border: 1px solid #000;
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 5px;
}
.cookie-banner button:hover {
  background: rgba(0,0,0,0.1);
}

/**/

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero svg {
    margin: 0 auto 2rem;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow: auto;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  footer {
    text-align: center;
  }

  #viewer {
    display: block;
    overflow-x: hidden;
  }
	
  #viewer::-webkit-scrollbar {
    display: none;
  }
  #viewer {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .page {
    min-width: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--text);
  }

  .page:last-of-type {
    border-bottom: none;
  }

  .contact-wrapper {
    padding: 0;
  }

  form#contactForm {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    padding: 1.5rem 1rem;
    background: #1a1a1a;
    border-radius: 0.75rem;
    margin: 0;
  }

  .contact-grid {
    display: block;
  }

  form#contactForm input,
  form#contactForm select,
  form#contactForm textarea {
    width: 100%;
    padding: 1rem;
  }

  form#contactForm button {
    width: 100%;
    padding: 1.1rem;
    margin-top: 1rem;
  }

  form#contactForm button,
  .hero-text button {
    margin-bottom: 2rem;
  }	
	
  body.expanded-mode .page:not(.expanded) .summary .text h2,
  body.expanded-mode .page:not(.expanded) .summary .sub {
    transform: none !important;
    position: static !important;
    display: block !important;
    white-space: normal !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    text-align: center !important;
  }

  .page {
    min-width: 100% !important;
    overflow-y: auto;
  }

  .page .detail {
    display: block !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    padding: 1rem;
  }

  .page .detail .features {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .page .detail .features .card {
    width: 100%;
    margin: 0 0 1rem;
    padding: 1rem;
  }

  .summary .motif svg {
    display: none;
  }
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    padding: 0.75rem 1rem;
    box-sizing: border-box;
    border-top: 1px solid var(--text);
    z-index: 100;
  }
  .site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  .site-footer .footer-left,
  .site-footer .footer-right {
    text-align: center;
    width: 100%;
  }
	
  .footer-spacer {
    height: 4rem;
    flex-shrink: 0;
  }	
	
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    padding: 0.5rem 0.8rem;
    border-radius: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;

    background: var(--accent);
    color: #000;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 1000;
  }

  .cookie-banner span {
    flex: 1 1 auto;
    margin-right: 1rem;
  }

  .cookie-banner a,
  .cookie-banner button {
    flex-shrink: 0;
    margin: 0;
  }

  .cookie-banner button {
    padding: 0.4rem 0.8rem;
  }	
  .frame {
    padding-bottom: 3rem;
  }

  form#contactForm button {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }

  .summary {
    display: block;
    padding: 1.5rem;
  }

  .summary .text,
  .summary .motif,
  .summary .sub {
    position: static;
    transform: none;
    opacity: 1;
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  form#contactForm {
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .card {
    margin: 0.5rem;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .card svg {
    width: 20px;
    height: 20px;
  }
}

/* === Custom Privacy Layout === */
.custom-privacy-layout {
  display: grid;
  grid-template-columns: 1.2fr 1px 2fr;
  grid-template-rows: auto auto 1fr;
  gap: 2rem;
  padding: 4rem 2rem;
  background: #111;
  color: #ddd;
}

.pp-graphic {
  grid-column: 1 / 2;
  grid-row: 1 / span 3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pp-graphic svg {
  width: 240px;
  color: var(--accent);
}

.pp-divider {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
  background: #444;
  width: 1px;
  height: 100%;
}

.pp-text {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.pp-text h1 { color: var(--accent); margin-bottom: 1rem; }
.pp-text h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.25rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
}
.pp-text p { margin-bottom: 1rem; line-height: 1.6; }

.pp-info {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  padding-top: 1rem;
  border-top: 1px solid #333;
}
.pp-info h2 { color: #fff; margin-bottom: 0.5rem; }
.pp-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pp-info li { margin-bottom: 0.5rem; }
.pp-info a {
  color: var(--accent);
  text-decoration: none;
}
.pp-info a:hover { text-decoration: underline; }

.pp-back {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  align-self: end;
  margin-left: 0.75rem;
  white-space: nowrap;
}
.pp-back a {
  color: var(--accent);
  text-decoration: none;
  font-style: italic;
}
.pp-back a:hover { text-decoration: underline; }



/**/
@media (max-width: 768px) {
  .custom-privacy-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
	padding-bottom: 5rem;
  }

  .pp-graphic {
    order: 1;
    justify-content: center;
  }

  .pp-graphic svg {
    width: 160px;
    height: auto;
  }

  .pp-divider {
    display: none;
  }

  .pp-text {
    order: 2;
  }

  .pp-info {
    order: 3;
    padding-top: 0;
    border-top: none;
  }

  .pp-back {
    order: 4;
    margin-left: 0;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .pp-text h1 {
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .pp-text h2 {
    font-size: 1.1rem;
  }

  .pp-text p {
    font-size: 0.95rem;
  }

  .pp-info li,
  .pp-back a {
    font-size: 0.9rem;
  }
}
/* === Ticker Subtitle === */

.summary .sub {
  grid-area: sub;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  transform-origin: bottom right;
  opacity: 0.8;
  z-index: 1;
}

.ticker-wrapper {
  max-width: 360px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.95;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  transition: opacity 0.3s ease;
}

body:not(.expanded-mode) .page .ticker-wrapper {
  opacity: 0;
  pointer-events: none;
}

body:not(.expanded-mode) .page:hover .ticker-wrapper {
  opacity: 1;
  pointer-events: auto;
}

.ticker {
  display: inline-block;
  animation: ticker-slide 12s linear infinite;
  will-change: transform;
}

body:not(.expanded-mode) .page .ticker {
  animation-play-state: paused;
}

body:not(.expanded-mode) .page:hover .ticker {
  animation-play-state: running;
}

.ticker:hover {
  animation-play-state: paused;
  cursor: default;
}

.ticker span {
  display: inline-block;
  padding-left: 1rem;
  padding-right: 2rem;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

@keyframes ticker-slide {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/**/

.error-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.error-code {
  font-size: 4rem;
  color: #e63946;
  font-weight: 700;
  margin-bottom: 1rem;
}
.error-message {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.error-back {
  margin-top: 2rem;
}
.error-back a {
  color: #00c78c;
  background: transparent;
  border: 1px solid #00c78c;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.error-back a:hover {
  background: #00c78c;
  color: #111;
}

/**/
/* Profile Page */
.profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
}
.profile-info {
  flex: 1;
}
.profile-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.profile-role,
.profile-location {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.profile-company {
  color: var(--accent-hover);
  text-decoration: none;
}
.profile-company:hover {
  text-decoration: underline;
}

.profile-bio {
  margin-bottom: 2rem;
  color: var(--text);
}

.profile-interests h2,
.profile-contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.profile-interests ul,
.profile-contact ul {
  list-style: none;
  padding-left: 0;
}
.profile-interests .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 0.3rem 0.6rem;
  border-radius: 0.25rem;
  margin: 0 0.5rem 0.5rem 0;
  font-size: 0.9rem;
}
.profile-contact li {
  margin-bottom: 0.75rem;
  color: var(--text);
}
.profile-contact a {
  color: var(--accent);
  text-decoration: none;
}
.profile-contact a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {

  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  .profile-info {
    margin-top: 1rem;
  }

  .profile-interests ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
  }
  .profile-interests .tag {
    margin: 0;
  }

  .profile-contact ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 1rem;
    padding: 0;
    list-style: none;
  }

  main,
  .page-content,
  .profile {
    padding-bottom: 80px;
  }
}
/**/
.site-footer{position:fixed;bottom:0;left:0;right:0;z-index:100;} .cookie-banner{position:fixed;right:16px;bottom:16px;z-index:100000;}
