/* Product Page Specific Styles */
:root {
  --columns: 12;
  --pad-max: 80px;
  --pad-min: 20px;
  --stroke: #cb4b30;
  --stroke-width: 3px;
  --bg: #e4e3cf;
  --header-h: 96px;
  --overview-min-h: 120vh;
}

@font-face {
  font-family: 'SAINS-Regular';
  src: url(../fonts/SAINS-Regular-BF69023d238ff79.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

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

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: scroll;
  overflow-y: overlay;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
  width: 0;
}

.scroll-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-container::-webkit-scrollbar {
  display: none;
  width: 0;
}

.header-overlay .blob {
  fill: var(--stroke);
  stroke: var(--stroke);
  stroke-width: var(--stroke-width);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
  opacity: 100%;
}

.content-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  height: auto;
  overflow: visible;
  align-items: stretch;
}

#product-image {
  height: calc(100svh - var(--header-h));
}

#project-overview {
  min-height: var(--overview-min-h);
}

#nav-height-block {
  height: var(--header-h);
}

#full-screen-block {
  margin-top: 80px;
  height: 100svh;
}

#bar-height-fullwidth,
#design-separator-bar,
#final-separator-bar {
  border: var(--stroke-width) solid var(--stroke);
  position: relative;
  display: block;
  width: 100%;
  height: var(--header-h);
  margin: 0;
  box-sizing: border-box;
}

#UserPersonaSection {
  height: 100svh;
  grid-template-columns: 2fr 1fr;
  position: relative;
  overflow: visible;
}

#UserPersonaSection .LeftColumn { 
  grid-column: 1; 
  position: relative; 
  height: 100%; 
  overflow: visible; 
}

#UserPersonaSection .RightColumn { 
  grid-column: 2; 
  position: relative; 
  height: 100%; 
  overflow: visible; 
}

#UserPersonaSection::after {
  content: "";
  position: absolute;
  left: calc(200% / 3);
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
  z-index: 4;
}

#UserPersonaSection::before {
  content: "";
  position: absolute;
  left: 0;
  width: calc(200% / 3);
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--stroke), var(--stroke)) no-repeat,
    linear-gradient(var(--stroke), var(--stroke)) no-repeat;
  background-size:
    100% var(--stroke-width),
    100% var(--stroke-width);
  background-position:
    0 calc(100% / 3),
    0 calc(200% / 3);
}

.UserPersonaSection-top-divider {
  position: absolute;
  left: calc(200% / 9);
  top: 0;
  height: calc(33.33%);
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
  z-index: 3;
}

.UserPersonaSection-middle-divider {
  position: absolute;
  right: calc(200% / 9);
  top: calc(33.33%);
  height: calc(33.33%);
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
  z-index: 3;
}

.UserPersonaSection-bottom-divider {
  position: absolute;
  left: calc(200% / 9);
  top: calc(66.66%);
  height: calc(33.33%);
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
  z-index: 3;
}

#TheDesignSection {
  height: 100svh;
  grid-template-columns: 1fr 2fr;
  position: relative;
  overflow: visible;
}

.design-sidebar {
  grid-column: 1;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ========================================
   DESIGN MAIN CONTENT - LAYOUT POSITIONING
   ======================================== 
   
   THIS SECTION CONTROLS THE POSITIONING OF:
   - Left blocks (Cylinder Filter, The Nodes)
   - Center image (ProductDescription.png)
   - Right blocks (The Laser, The Tube)
   
   GRID LAYOUT EXPLANATION:
   grid-template-columns: 150px 1fr 150px
   
   Column breakdown:
   1. 150px  = LEFT BLOCKS (fixed width)
   2. 1fr    = CENTER IMAGE (flexible - takes remaining space)
   3. 150px  = RIGHT BLOCKS (fixed width)
   
   Boxes and image are INDEPENDENT - changing image size
   does NOT affect box positions
   ======================================== */

.design-main-content {
  grid-column: 2;
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 40px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.design-sidebar-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  border-bottom: var(--stroke-width) solid var(--stroke);
}

.design-sidebar-block:last-child {
  border-bottom: none;
}

.design-sidebar-block-1 {
  flex: 1.1;
}

.design-sidebar-block-2 {
  flex: 0.5;
}

.design-sidebar-block-3 {
  flex: 1.4;
}

.design-sidebar-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.design-block-content {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ========================================
   LEFT BLOCKS POSITIONING
   ======================================== 
   
   grid-column: 1 = FIXED LEFT COLUMN (150px)
   
   TO MOVE LEFT BLOCKS RIGHT:
   - Adjust the left: value in the individual box CSS below
   - Example: left: 50px; moves them 50px to the right
   
   grid-row: 1 / 3 = Spans from row 1 to row 3 (full height)
   ======================================== */

.design-elements-left {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  grid-column: 1;  /* ← FIXED LEFT COLUMN */
  grid-row: 1 / 3;
  position: relative;
}

/* ========================================
   RIGHT BLOCKS POSITIONING
   ======================================== 
   
   grid-column: 3 = FIXED RIGHT COLUMN (150px)
   
   Right blocks stay fixed on the right side
   
   grid-row: 1 / 3 = Spans from row 1 to row 3 (full height)
   ======================================== */

.design-elements-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  grid-column: 3;  /* ← FIXED RIGHT COLUMN */
  grid-row: 1 / 3;
}

.design-element {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.element-label {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  text-transform: capitalize;
}

/* ========================================
   ELEMENT BOXES - INDIVIDUAL POSITIONING
   ======================================== 
   
   EDIT EACH BOX SEPARATELY BELOW:
   
   Box 1: LEFT TOP (Cylinder Filter)
   Box 2: LEFT BOTTOM (The Nodes)
   Box 3: RIGHT TOP (The Laser)
   Box 4: RIGHT BOTTOM (The Tube)
   
   Each box has:
   - position: relative (allows X and Y positioning)
   - top: 0px (Y position - positive = down, negative = up)
   - left: 0px (X position - positive = right, negative = left)
   - width: 150px
   - height: 120px
   ======================================== */

/* BOX 1: CYLINDER FILTER (Left Top) */
.design-elements-left .design-element:nth-child(1) .element-box {
  width: 150px;
  height: 120px;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  position: relative;
  top: 0px;    /* ← ADJUST Y position (up/down) */
  left: 80px;  /* ← ADJUST X position - MOVED RIGHT by 80px */
}

/* BOX 2: THE NODES (Left Bottom) */
.design-elements-left .design-element:nth-child(2) .element-box {
  width: 150px;
  height: 120px;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  position: relative;
  top: 0px;    /* ← ADJUST Y position (up/down) */
  left: 80px;  /* ← ADJUST X position - MOVED RIGHT by 80px */
}

/* BOX 3: THE LASER (Right Top) */
.design-elements-right .design-element:nth-child(1) .element-box {
  width: 150px;
  height: 120px;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  position: relative;
  top: 0px;    /* ← ADJUST Y position (up/down) */
  left: 0px;   /* ← ADJUST X position (left/right) */
}

/* BOX 4: THE TUBE (Right Bottom) */
.design-elements-right .design-element:nth-child(2) .element-box {
  width: 150px;
  height: 120px;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  position: relative;
  top: 0px;    /* ← ADJUST Y position (up/down) */
  left: 0px;   /* ← ADJUST X position (left/right) */
}

/* ========================================
   CENTER IMAGE POSITIONING - PERFECTLY CENTERED
   ======================================== 
   
   Uses GRID with proper centering
   
   grid-column: 2 = Uses the middle flexible column
   grid-row: 1 / 3 = Spans full height
   
   display: flex + align-items: center + justify-content: center
   = IMAGE PERFECTLY CENTERED BOTH WAYS
   
   NOW: Image is centered in its column and in the block!
   ======================================== */

.design-product-showcase {
  grid-column: 2;  /* ← MIDDLE COLUMN (flexible, for image) */
  grid-row: 1 / 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: visible;
}

.design-product-image {
  width: 1200px;
  height: 1440px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.product-label {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#AdditionalSection {
  height: 100svh;
  grid-template-columns: 1fr 2fr;
  position: relative;
  overflow: visible;
}

.additional-sidebar {
  grid-column: 1;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.additional-main-content {
  grid-column: 2;
  position: relative;
  box-sizing: border-box;
  height: 100%;
}

#HalfHeightSection {
  height: calc((100svh - var(--header-h) - clamp(var(--pad-min), 4.1667vw, var(--pad-max)) - 80px) * 0.65);
  grid-template-columns: 1fr 2fr;
  position: relative;
  overflow: visible;
}

.half-sidebar {
  grid-column: 1;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.half-main-content {
  grid-column: 2;
  position: relative;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar,
.main-content,
.LeftColumn,
.RightColumn,
.design-sidebar,
.design-main-content,
.additional-sidebar,
.additional-main-content,
.half-sidebar,
.half-main-content {
  border: 0 !important;
  outline: 0 !important;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  background: transparent;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar::after,
.design-sidebar::after,
.additional-sidebar::after,
.half-sidebar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
}

.product-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  flex-direction: column;
  padding: 40px;
  box-sizing: border-box;
}

.product-video {
  width: 360px;
  height: 270px;
  border: var(--stroke-width) solid var(--stroke);
  background: #000;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.product-name {
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--stroke);
  margin: 0;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1;
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.product-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
  height: 100%;
  justify-content: center;
}

.project-year {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--stroke);
  margin: 0;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.project-gap {
  height: 80px;
}

.project-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-tags li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--stroke);
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.project-shapes-container {
  position: relative;
  width: 100%;
  height: auto;
  padding: 40px;
}

.shapes-svg {
  width: 100%;
  height: auto;
  display: block;
  shape-rendering: crispEdges;
}

.shape-rect,
.connection-line {
  vector-effect: non-scaling-stroke;
  stroke: var(--stroke);
  stroke-width: var(--stroke-width);
  fill: transparent;
}

.shape-label {
  font-size: 2.5px;
  font-weight: 600;
  fill: var(--stroke);
  letter-spacing: 0.1px;
  font-family: 'SAINS-Regular';
}

#full-screen-block .main-content {
  position: relative;
  height: 100%;
  width: 100%;
}

#full-screen-block .three-rects {
  position: relative;
  width: 100%;
  height: 100%;
}

#full-screen-block .three-rects .rect {
  position: absolute;
  height: 100%;
  top: 0;
}

#full-screen-block .three-rects .rect-a {
  left: 0;
  width: calc(100% / 3);
}

#full-screen-block .three-rects .rect-b {
  left: calc(100% / 3);
  width: calc(100% / 3);
}

#full-screen-block .three-rects .rect-c {
  left: calc(200% / 3);
  width: calc(100% / 3);
}

#full-screen-block .main-content::before,
#full-screen-block .main-content::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
  z-index: 10;
}
#full-screen-block .main-content::before { left: calc(100% / 3); }
#full-screen-block .main-content::after  { left: calc(200% / 3); }

#full-screen-block .three-rects .rect-a::after,
#full-screen-block .three-rects .rect-b::before,
#full-screen-block .three-rects .rect-c::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--stroke-width);
  background: var(--stroke);
  pointer-events: none;
}

#full-screen-block .three-rects .rect-a::after {
  bottom: calc(100% / 3);
}

#full-screen-block .three-rects .rect-b::before {
  top: calc(100% / 3);
}

#full-screen-block .three-rects .rect-c::before {
  bottom: calc(100% / 3);
}

#full-screen-block .three-rects .rect-a::before {
  content: "The Name";
  position: absolute;
  bottom: calc(100% / 3 - 35px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  color: var(--stroke);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 11;
  white-space: nowrap;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#full-screen-block .three-rects .rect-b::after {
  content: "The Colour";
  position: absolute;
  top: calc(100% / 3 - 35px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  color: var(--stroke);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 11;
  white-space: nowrap;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#full-screen-block .three-rects .rect-c::after {
  content: "The Typography";
  position: absolute;
  bottom: calc(100% / 3 - 35px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  color: var(--stroke);
  letter-spacing: 1px;
  pointer-events: none;
  z-index: 11;
  white-space: nowrap;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#product-image .sidebar::before {
  display: none;
}

#project-overview .sidebar::before {
  content: 'PROJECT OVERVIEW';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--stroke);
  white-space: nowrap;
  transform-origin: center;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#nav-height-block .sidebar::before {
  display: none;
}

#full-screen-block .sidebar::before {
  content: 'THE DESIGN';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--stroke);
  white-space: nowrap;
  transform-origin: center;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#UserPersonaSection .RightColumn::before {
  content: 'USER PERSONA';
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--stroke);
  white-space: nowrap;
  transform-origin: center;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.image-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  gap: 20px;
  padding: 30px 20px;
  box-sizing: border-box;
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: var(--stroke-width) solid var(--stroke);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(203, 75, 48, 0.05);
}

.carousel-arrow svg {
  stroke: var(--stroke);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100% - 60px);
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  overflow: hidden;
}

.carousel-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-description {
  padding: 20px;
  border-top: var(--stroke-width) solid var(--stroke);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: transparent;
}

.carousel-description p {
  margin: 0;
}

#UIUXSection {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr auto;
  height: auto;
  min-height: 100svh;
  border: var(--stroke-width) solid var(--stroke);
  box-sizing: border-box;
  position: relative;
}

.uiux-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: var(--stroke-width) solid var(--stroke);
  min-height: 120px;
}

.uiux-sidebar {
  padding: 20px;
  border-right: var(--stroke-width) solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
}

.uiux-header {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.uiux-description {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.uiux-description p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.uiux-image-area {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--stroke-width) solid var(--stroke);
  flex: 1;
  position: relative;
  padding: 40px;
}

.uiux-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.uiux-bottom {
  grid-column: 1 / -1;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-top: var(--stroke-width) solid var(--stroke);
}

.uiux-scrolling-text {
  display: flex;
  white-space: nowrap;
  animation: scroll-horizontal 15s linear infinite;
  gap: 60px;
}

.uiux-scrolling-text span {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--stroke);
  flex-shrink: 0;
  font-family: 'SAINS-Regular', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-calc(100% + 60px));
  }
}