* {
    margin: 0;
    padding: 1px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #fff;
    color: #111;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    text-align: left;
    margin-bottom: 0.5rem;
}

.project-video-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    
    /* vertical spacing above/below the video box */
    background: transparent;
    z-index: 0;

    line-height: 1.6;
    overflow-x: hidden;
}

.about-image img {
    width: 28%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}
/* --- Header --- */
header {
    display: flex;
    justify-content: center;
    transition: none;
    height: 3rem;
    position: relative;
}
.collage-item {
    display: flex;
    flex-direction: column;
    width:100%;
}
.caption {
    display: block;
    padding: 0.6rem 0.8rem;
    background: transparent;
    color: #6a3232;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
}

.header-bar {
    position: absolute;
    top: 2rem;
    left: 20%;
    padding: 0.5rem 1rem;
    z-index: 10;
}

.nav-bar {
    position: absolute;
    top: 3rem;
    right: 20%;
    display: flex;
    gap: 1.5rem;
    z-index: 100;
    pointer-events: auto;
}

.nav-bar-link {
    text-decoration: none;
    color: #969daf;
    font-weight: 600;
}
.nav-bar-link.active {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9*/
    min-height: 100vh;
    min-width: 177vh;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* --- Project Hero (full-width video background) --- */
.project-snapshot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0; /* vertical spacing above/below the video box */
    background: transparent;
    z-index: 0;
}
.project-hero {
    display: flex;
    flex-direction: column;
    height: 100vh; /* try to fit one screen (video + text) */
    min-height: 520px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}
.project-header-bar {
    position: relative;
    top: 0;
    left: 0;
    padding: 0.5rem 1rem;
    z-index: 0;
    margin: 2rem auto 3rem auto;
    max-width: 1280px;
}

.project-video-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    /* vertical spacing above/below the video box */
    background: transparent;
    z-index: 0;
}

.project-video-wrap>img,
.project-video-wrap iframe,
.project-video {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ensure iframe/video fills the aspect box correctly */
.project-video-wrap iframe,
.project-video-wrap video {
    width: 100%;
    height: 100%;
}

/*Video black mesh overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.04) 100%);
    z-index: 1;
    /*pointer-events: none;*/
}
.hero-image-landscape {
    transform: rotate(90deg);
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 0;
    display: block;
    padding-top: 2.5rem;
    /* gap between video and text */
    text-emphasis: center;
}

.hero-text {
    max-width: 720px;
    background: transparent;
    color: #111;
    text-align: center;
    margin: 0 auto 3.75rem auto;
    line-height: 2;
    /* center and keep 2rem bottom gap */
    padding: 0;
}

.hero-text h1 {
    color: inherit;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hero-text p {
    color: inherit;
    opacity: 0.95;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-tag {
    color: inherit;
    font-weight: 500;
}


.hero-meta {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #969696;
    font-weight: 600;
}

@media (max-width: 1000px) {
    .project-hero {
        min-height: 60vh;
    }

    .project-video-wrap {
        height: 55vh;
    }

    .hero-content {
        padding: 1.5rem 0 0;
    }

    .hero-text {
        text-align: left;
        max-width: 95%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .project-hero {
        margin: 0 3%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .project-video-wrap {
        height: 50vh;
    }
}

.feature-gif {
  
  object-position: center 15%;
  width: 100%;
  overflow: hidden;     
  height: 325px;         
}

.feature-gif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
}

/* --- Section --- */
.section {
    padding: 6rem 2rem;
    text-align: center;
    opacity: 1;
    transform: translateY(50px);
    transition: all 0.6s ease;
    margin: 0 20%;
    /* horizontal 20% margin on both sides */
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section p {
    max-width: 1000px;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.8;
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    /*overflow: hidden;*/
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.4s ease;
    border-radius: 4px;
    /*Can be deleted */
}

.gallery-project-title {
    box-sizing: border-box;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Hover */
.gallery-item:hover img {
    opacity: 0.6;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Overlay Style - Hidden by default*/
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.overlay-content {
    text-align: center;
    color: #000;
    padding: 1rem;
}

.overlay-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.85;
}

/* --- Button --- */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    text-align: center;
    color: #fff;
    background: #111;
    width: auto;
    cursor: pointer;
    transition: background 0.25s ease;
}

.synopsis {
    align-items: center;
    margin: 20px;
}

.synopsis p{
    text-align: left;
    margin-bottom: 20px;
}

/* Intention section grid */
.intention .intention-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 3rem;
    gap: 2.5rem;
    align-items: start;
}

.intention-text {
    text-align: left;
    margin-bottom: 2rem;
}

.intention-text p {
    max-width: 1000px;
    line-height: 2;
    margin-bottom: 2rem;
}



.intention-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 0.75rem;
    max-width: 980px;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.collage-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.collage-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: 400;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.collage-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.9);
}

.collage-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

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

    .intention-collage {
        grid-template-columns: repeat(2, 1fr);
    }
}

.btn span {
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.btn span:after {
    content: '»';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.btn:hover span {
    padding-right: 25px;
}

.btn:hover span:after {
    opacity: 1;
    right: 0;
}


/* --- Footer --- */
footer {
    padding: 2rem 0;
    text-align: center;
    font-weight: 400;
    color: #777;
}

/* --- Folding Menu Button --- */
#menu-button {
  position: fixed;
  top: 50%;
  left: 2rem;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 999;
  background: transparent;
  border: 0;
  padding: 0;
}

#menu-button span {
  display: block;
  height: 4px;          /* bold */
  width: 100%;
  background: #111;
  border-radius: 2px;
}

#menu-button:hover span {
  transform: scaleX(1.08);
  transition: transform 0.2s ease;
}


/* --- Sidebar Menu --- */
#sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: #fff;
    transition: 0.6s ease;
    z-index: 998;
    transition: left 0.25s ease;

     /* stack items */
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* left align */
    gap: 1rem;
    padding: 6rem 2rem 2rem;   /* space for button */
}

#sidebar ul {
    list-style: none;
    width: 100%;
    padding-left: 2rem;
}

#sidebar ul li {
    margin: 2rem 0;
}

#sidebar ul li a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 1.25rem;
}

#sidebar a {
  text-decoration: none;
  color: #111;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: left;
  width: 100%;
}

#sidebar.show {
    left: 0;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    align-items: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: auto;
    align-items: center;
    text-align: center;
}
.link {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.link:hover {
    color: #6a6a6a;
}

/* --- Research Section (projects/project1.html #project-research) --- */
.research-section .research-intro {
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    font-size: 1rem;
    color: #222;
    text-align: left;
}

.research-grid {
    display: grid;
    max-width: 1000px;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
}

.research-item {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.research-item img {
    width: 100%;
    height: 100%;
    /*crop later */
    object-fit: cover;
    object-position: center 30%;
    display: block;

}

.research-caption {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    color: #333;
    background: transparent;
}

@media (max-width: 1000px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .research-item img {
        height: 220px;
    }
}

/* --- Design Section (projects/project1.html #project-design) --- */
.design-section .design-grid {
    display: grid;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.system-diagram img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.system-legend {
    margin-top: 0.75rem;
    list-style: none;
    padding-left: 0;
    color: #333;
    font-size: 0.95rem;
}

.system-legend li {
    margin: 0.35rem 0;
}

.design-language h3 {
    font-size: 1.25rem;
    margin-top:2.75rem;
    margin-bottom: 0.75rem;
}

.design-figure {
    margin-bottom: 1rem;
}

.design-figure img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.design-caption {
    padding-top: 0.5rem;
    font-size: 0.95rem;
    color: #444;
    text-align: center;
}

.design-paragraph {
    margin-top: 0.75rem;
    max-width: 1000px;
    color: #222;
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 1000px) {
    .design-section .design-grid {
        grid-template-columns: 1fr;
    }

    .design-figure img {
        height: 200px;
    }
}

/* --- Development Section (projects/project1.html #project-development) --- */
.development-section .dev-video-wrap {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.dev-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /*pointer-events: none;*/
}

.dev-overlay-text {
    margin: 1.25rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
}

.dev-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
    text-align: left;
}
.dev-thumbs-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
    text-align: left;
}


.dev-thumbs-large{
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1rem;
    margin-bottom: 4em;
    align-items: start;
    text-align: center;
}
.dev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.dev-thumb-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    object-position: center 10%;
}

.dev-thumbs-vertical{
    width: 100%;
    height: 320px;                 /* unified visual height */
    object-fit: cover;             /* crop instead of stretch */
    object-position: center bottom;/* keep bottom aligned */
    border-radius: 6px;
    display: block;
}
.dev-caption {
    padding-top: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
}

.dev-paragraph {
    margin-top: 1rem;
    max-width: 1000px;
    color: #222;
    line-height: 1.7;
    text-align: left;
}
.dev-thumbs-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    align-items: start;
    text-align: left;
}

/* for detail dev image demonstration */
.dev-grid{
    display: grid;
    gap: 4rem;
}

@media (max-width: 1000px) {
    .development-section .dev-video-wrap {
        height: 45vh;
    }

    .dev-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .dev-thumb img {
        height: 220px;
    }
}

/* --- Tighten spacing between header, synopsis and main video --- */
/* Reduce vertical padding to ~40% of .section (6rem -> 2.4rem) so gaps are ~60% smaller */

#project-synopsis {
    margin-top: 3rem;
    position: relative;
}

header,
#project-title,
#project-synopsis,
#project-video-wrap {
    padding-top: 0;
    padding-bottom: 0;
}

@media (max-width: 1000px) {

    header,
    #project-title,
    #project-synopsis,
    #project-video-wrap {
        padding-top: 1.6rem;
        padding-bottom: 1.6rem;
    }
}

@media (max-width: 480px) {

    header,
    #project-title,
    #project-synopsis,
    #project-video-wrap {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
}
/* Full-width hero visual within the centered page width */
.research-hero {
  width: 55%;
  margin: 1.5rem 0 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.research-hero img,
.research-hero video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Two-column frame */
.research-two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

/* Left column visuals */
.research-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Make the existing grid slightly tighter for notebook-like feel */
.research-grid-compact {
  margin-top: 0;
}

.research-grid-compact .research-item img {
  height: 280px;
  object-fit: cover;
}

/* Right column text */
.research-right {
  text-align: left;
  padding-top: 0.25rem;
}

.research-right h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem 0;
}

.research-right p {
  margin: 0 0 1.25rem 0;
  line-height: 1.85;
  max-width: 52ch;
  color: #222;
}

/* Research questions block */
.research-questions {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: solid #a1a1a1;
  border-left: 4px solid #ffd343;
  box-shadow: #969696;
  text-align: left;
  position: relative;
  margin: 2rem 2rem;
}

.research-questions::before {
  content: "?";
  position: absolute;
  top: -10px;
  left: 20px;
  background: #ffd343;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.research-questions h3 {
  margin-bottom: 1rem;
}

.research-questions .rq {
  max-width: 1000px;
  margin: 0.75rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.8;
  color: #2c3e50;
  font-style: italic;
}

.research-questions .rq-footnote {
  max-width: 1000px;
  margin: 1.25rem 0 0 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 1000px) {
  .research-two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .research-right p {
    max-width: 100%;
  }

  .research-item-wide img {
    max-height: 320px;
  }
}
/* --- Reflection Section --- */
.reflection-section {
  background: #fafafa;
}

.reflection-block {
  max-width: 1000px;
  text-align: left;
  margin: 2rem auto 0 auto;
}

.reflection-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.reflection-block p {
  line-height: 1.85;
  color: #222;
}

/* ===============================
   Development – Iteration Ladder
   =============================== */

.iteration-block {
  width: 100%;
  max-width: 1000px;
  margin: 2.5rem auto 0 auto;
  text-align: left;
}

.iteration-title {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.iteration-callout {
  background: #fafafa;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.03);
}

.iteration-callout p {
  margin: 0 0 0.6rem 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #222;
}

.iteration-callout p:last-child {
  margin-bottom: 0;
}

.iteration-callout strong {
  font-weight: 600;
  color: #111;
}

/* =========================
   Conceptual Diagram Style
   ========================= */

.concept-diagram {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}


/* ---- figure fill ---- */
.concept-diagram .figure-head,
.concept-diagram .figure-body,
.concept-diagram .figure-leg {
  fill: rgba(181, 181, 181, 0.14);
}

/* ---- text ---- */
.concept-diagram .label {
  fill: #7f7f7f;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-anchor: middle;
}

.concept-diagram .text {
  fill: #9a9a9a;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.concept-diagram .sub {
  fill: #9a9a9a;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

/* Scope */
.concept-diagram {
  max-width: 100%;
  height: auto;
}

/* Shared stroke language */
.concept-diagram .wall,
.concept-diagram .line,
.concept-diagram .figure-head,
.concept-diagram .figure-body,
.concept-diagram .figure-leg,
.concept-diagram .gesture-arm,
.concept-diagram .gesture-wave,
.concept-diagram .icon-line,
.concept-diagram .frame {
  stroke: #b5b5b5;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
/* Silhouette fill */
.concept-diagram .figure-head,
.concept-diagram .figure-body,
.concept-diagram .figure-leg {
  fill: rgba(181, 181, 181, 0.14);
}

/* Gesture icons fill */
.concept-diagram .icon-fill {
  fill: rgba(181, 181, 181, 0.10);
  stroke: #b5b5b5;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Titles */
.concept-diagram .label {
  fill: #7f7f7f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-anchor: middle;
}

/* Main text */
.concept-diagram .text {
  fill: #9a9a9a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.concept-diagram .sub {
  fill: #9a9a9a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

/* Mini labels under icons */
.concept-diagram .mini-label {
  fill: #8a8a8a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

.concept-diagram .mini-sub {
  fill: #9a9a9a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-anchor: middle;
}

/* Frames for icons */
.concept-diagram .frame {
  stroke: rgba(181, 181, 181, 0.45);
}

.concept-diagram .camera-icon {
  opacity: 0.9;
}
/* Default icon: line-only (no fill) */
.concept-diagram .icon {
  stroke: #b5b5b5;
  stroke-width: 1;
  fill: none;              /* IMPORTANT: remove fill */
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keep frames as no fill as well (if needed) */
.concept-diagram .frame,
.concept-diagram .line {
  stroke: #b5b5b5;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Pipeline state boundaries */
.concept-diagram .state {
  fill: none;
  stroke-width: 1;
  stroke-dasharray: 3 5;     /* dotted-ish */
  opacity: 0.55;
}

.concept-diagram .state-label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-anchor: start;
  opacity: 0.85;
}

/* Low-saturation colors (architectural, not neon) */
.concept-diagram .sensing {
  stroke: rgba(214, 179, 68, 0.75); /* muted yellow */
}
.concept-diagram .state-label.sensing {
  fill: rgba(214, 179, 68, 0.9);
}

.concept-diagram .interpreting {
  stroke: rgba(88, 144, 196, 0.75); /* muted blue */
}
.concept-diagram .state-label.interpreting {
  fill: rgba(88, 144, 196, 0.9);
}

.concept-diagram .rendering {
  stroke: rgba(138, 108, 190, 0.75); /* muted purple */
}
.concept-diagram .state-label.rendering {
  fill: rgba(138, 108, 190, 0.9);
}

.orientation-lansdcape {
    transform: rotate(-90deg);
}

/* =====================================================
   SDE System Diagrams
   ===================================================== */

.sde-diagram{
  width: 100%;
  height: auto;
  display: block;
}

/* Theme variables (can map to your site palette) */
.sde-diagram{
  --panel: #ffffff;
  --stroke: #D6D9DE;
  --stroke2: #C7CBD2;
  --text: #111827;
  --muted: #6B7280;
  --accent: #F59E0B;
  --shadow: rgba(17,24,39,.06);
}

/* Typography */
.sde-diagram .t{
  font: 600 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  fill: var(--text);
}
.sde-diagram .s{
  font: 500 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  fill: var(--muted);
  letter-spacing: .2px;
}
.sde-diagram .l{
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  fill: var(--text);
}

/* Panels */
.sde-diagram .box{
  fill: var(--panel);
  stroke: var(--stroke);
  stroke-width: 1.5;
  rx: 16;
}
.sde-diagram .box2{
  fill: #FCFCFD;
  stroke: var(--stroke);
  stroke-width: 1.2;
  rx: 14;
}
.sde-diagram .header{
  fill: #FBFBFC;
  stroke: var(--stroke);
  stroke-width: 1.5;
  rx: 18;
}

/* Lines */
.sde-diagram .arrow{
  stroke: var(--stroke2);
  stroke-width: 2;
  fill: none;
}

/* Highlight pill */
.sde-diagram .pill{
  fill: #FFF7ED;
  stroke: rgba(245,158,11,.35);
  stroke-width: 1.2;
  rx: 999;
}

/* Shadows */
.sde-diagram .shadow{
  filter: drop-shadow(0 10px 20px var(--shadow));
}

/* Policy envelope */
.sde-diagram .loopFill{
  fill: rgba(245,158,11,0.10);
}
.sde-diagram .loopStroke{
  fill: none;
  stroke: rgba(245,158,11,0.55);
  stroke-width: 2.5;
}
.sde-diagram .loopArrow{
  fill: none;
  stroke: rgba(245,158,11,0.75);
  stroke-width: 2.8;
}
.sde-diagram .loopLabel{
  font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  fill: rgba(146,64,14,0.90);
  letter-spacing: .2px;
}
.loopFill {
  fill: rgba(245,158,11,0.08);
}
.loopStroke {
  stroke-width: 3;
}