:root{
  --columns: 12;
  --pad-max: 80px;
  --pad-min: 20px;
  --stroke: #cb4b30;
  --stroke-width: 3px;
  --bg: #e4e3cf;
  --nav-height: 120px;
  --type: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

@font-face {
  font-family: 'Tan Nimbus';
  src: url(/fonts/Vetrix-Regular-BF6902c5b5aaafb.woff2) format('woff');
  font-weight: normal;
  font-style: normal;
}

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

html, body { height: 100%; margin: 0; background: var(--bg); font-family: var(--type); color: var(--stroke); }

.site-container { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  position: fixed;
  top: clamp(var(--pad-min), 4.1667vw, var(--pad-max));
  left: clamp(var(--pad-min), 4.1667vw, var(--pad-max));
  right: clamp(var(--pad-min), 4.1667vw, var(--pad-max));
  display: grid;
  width: calc(100% - 2 * clamp(var(--pad-min), 4.1667vw, var(--pad-max)));
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: 0;
  align-items: stretch;
  border: var(--stroke-width) solid var(--stroke);
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg);
}

.site-header .col { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0; position: relative; }

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

.stacked { display: flex; flex-direction: column; height: 100%; width: 100%; grid-column: span 1; position: relative; }
.stacked .stack-top, .stacked .stack-bottom {
  flex: 1 1 50%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  border: none;
  color: var(--stroke);
}
.stacked .stack-top { border-bottom: var(--stroke-width) solid var(--stroke); }

.nav-link { text-decoration: none; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; z-index: 2; }
.nav-text { font-size: 12px; font-weight: 900; letter-spacing: 1px; position: relative; z-index: 3; color: var(--stroke); }
.logo-text { font-size: 18px; font-weight: 900; letter-spacing: 1px; z-index: 3; color: var(--stroke); }
.nav-fill {
  position: absolute;
  top: 0; left: 0; width: 0%; height: 100%;
  background: linear-gradient(90deg, #cb4b30 0%, #cb4b30 100%);
  z-index: 1; pointer-events: none; will-change: width;
  clip-path: polygon(0% 0%,98% 0%,99% 3%,99.2% 6%,99.3% 9%,99.2% 12%,99% 15%,98.5% 18%,97.8% 21%,97% 24%,95.8% 27%,94.5% 29%,93% 30%,91% 31%,89% 31%,87% 30%,85% 29%,83% 27%,82% 25%,81.5% 23%,81% 20%,81.5% 17%,82% 14%,83% 11%,84% 8%,85% 5%,86% 2%,87% 0.5%,88% 0%,100% 0%,100% 100%,88% 100%,87% 99.5%,86% 98%,85% 95%,84% 92%,83% 89%,82% 86%,81.5% 83%,81% 80%,81.5% 77%,82% 75%,83% 73%,85% 71%,87% 70%,89% 69%,91% 69%,93% 70%,94.5% 71%,95.8% 73%,97% 76%,97.8% 79%,98.5% 82%,99% 85%,99.2% 88%,99.3% 91%,99.2% 94%,99% 97%,98% 100%,0% 100%);
  opacity: 0.5;
}
.nav-fill:not([style*="width: 0%"]) { animation: organicBlobFlow 5s ease-in-out infinite; }
@keyframes organicBlobFlow { 0%{} 50%{} 100%{} }

.header-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.header-overlay .divider { fill: none; stroke: var(--stroke); stroke-width: var(--stroke-width); stroke-linecap: butt; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }

.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%;
}

.scroll-container {
  position: fixed;
  top: calc(clamp(var(--pad-min), 4.1667vw, var(--pad-max)) + var(--nav-height));
  left: clamp(var(--pad-min), 4.1667vw, var(--pad-max));
  right: clamp(var(--pad-min), 4.1667vw, var(--pad-max));
  width: calc(100% - 2 * clamp(var(--pad-min), 4.1667vw, var(--pad-max)));
  height: calc(100vh - clamp(var(--pad-min), 4.1667vw, var(--pad-max)) - var(--nav-height) - 80px);
  overflow-y: auto;
  overflow-x: hidden;
}

.content-block {
  display: grid;
  grid-template-columns: 1fr 2fr;
  width: 100%;
  height: calc(100vh - var(--nav-height) - clamp(var(--pad-min), 4.1667vw, var(--pad-max)) - 80px);
  border: var(--stroke-width) solid var(--stroke);
  flex-shrink: 0;
}

.sidebar { border-right: var(--stroke-width) solid var(--stroke); padding: 30px 20px; background: transparent; position: relative; }
.sidebar-header { font-size: 12px; font-weight: 900; letter-spacing: 1px; margin-bottom: 20px; color: var(--stroke); font-family: 'Tan Nimbus', var(--type); }
.sidebar-content { font-size: 13px; line-height: 1.6; color: var(--stroke); }
.main-content { padding: 40px; background: transparent; display: flex; align-items: flex-start; justify-content: flex-start; }

#home .hero-content { display: flex; flex-direction: column; width: 100%; align-items: flex-start; }
#home .hero-content p { margin: 0 0 4px 0; font-size: 18px; font-weight: 600; color: var(--stroke); }

.hero-heading {
  width: 100%;
  margin: 0;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--stroke);
  font-family: 'Tan Nimbus', var(--type);
}

.work-grid { display: grid; grid-template-columns: 1fr; gap: 30px; width: 100%; height: 100%; align-content: start; }
.work-card { display: flex; align-items: center; justify-content: center; border: 3px solid var(--stroke); background: transparent; padding: 60px 40px; text-decoration: none; color: inherit; cursor: pointer; min-height: 400px; }
.work-card:hover { background: rgba(203, 75, 48, 0.05); }
.work-card-content { text-align: center; width: 100%; }
.work-card h3 { font-size: 32px; font-weight: 900; margin-bottom: 20px; color: var(--stroke); font-family: 'Tan Nimbus', var(--type); }
.work-card p { font-size: 16px; line-height: 1.6; margin-bottom: 30px; color: var(--stroke); }

/* ABOUT SECTION */
.about-visuals {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.three-rects {
  position: relative;
  width: 100%;
  height: 100%;
}

.three-rects .rect {
  position: absolute;
  background: transparent;
  border: var(--stroke-width) solid var(--stroke);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.three-rects .rect-a {
  left: 5%;
  top: 5%;
  width: 35%;
  height: 30%;
}

.three-rects .rect-b {
  left: 52%;
  top: 5%;
  width: 35%;
  height: 55%;
}

.three-rects .rect-c {
  left: 5%;
  top: 60%;
  width: 40%;
  height: 35%;
}

.three-rects .rect-inner { max-width: 100%; text-align: center; }
.three-rects h4 { margin: 0 0 10px 0; font-size: 20px; font-weight: 900; color: var(--stroke); font-family: 'Tan Nimbus', var(--type); }
.three-rects p { margin: 0; font-size: 15px; color: var(--stroke); line-height: 1.45; }

.about-connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.about-connector .connector-line {
  fill: none;
  stroke: var(--stroke);
  stroke-width: var(--stroke-width);
  stroke-linecap: butt;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

/* Vertical sidebar text labels */
#about .sidebar::after {
  content: 'ABOUT';
  position: absolute;
  right: -40px;
  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: 'Tan Nimbus', var(--type);
}

#work .sidebar::after {
  content: 'WORK';
  position: absolute;
  right: -40px;
  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: 'Tan Nimbus', var(--type);
}

#contact .sidebar::after {
  content: 'CONTACT';
  position: absolute;
  right: -40px;
  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: 'Tan Nimbus', var(--type);
}

@media (max-width: 920px) {
  .three-rects { display: block; height: auto; }
  .three-rects .rect { position: relative; left: auto; top: auto; width: 100%; height: auto; margin-bottom: 16px; }
  .about-connector { display: none; }
  #about .sidebar::after,
  #work .sidebar::after,
  #contact .sidebar::after { display: none; }
}

#home .sidebar { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 0; padding-bottom: 0; }
#home .sidebar-header { margin: 0 0 8px 0; }
#home .sidebar-content { margin: 0; max-width: 320px; }