/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #D02020;
  --blue:   #1040C0;
  --yellow: #F0C020;
  --ink:    #121212;
  --bg:     #F0F0F0;
  --white:  #FFFFFF;
  --shadow: 8px 8px 0px var(--ink);
  --shadow-lg: 10px 10px 0px var(--ink);
  --border: 4px solid var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grain Overlay ── */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, #000 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, #000 1px, transparent 1px),
    radial-gradient(circle at 50% 60%, #000 1px, transparent 1px),
    radial-gradient(circle at 10% 80%, #000 1px, transparent 1px),
    radial-gradient(circle at 90% 70%, #000 1px, transparent 1px),
    radial-gradient(circle at 35% 45%, #000 1px, transparent 1px),
    radial-gradient(circle at 65% 85%, #000 1px, transparent 1px),
    radial-gradient(circle at 75% 40%, #000 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px, 3px 3px, 5px 5px, 4px 4px, 7px 7px, 3px 3px, 5px 5px;
}

/* ── Perspective Stage ── */
.perspective-stage {
  perspective: 3000px;
  perspective-origin: 50% 30%;
  padding: 80px 40px 200px;
  min-height: 100vh;
}

.tilted-plane * {
  pointer-events: auto;
}

.tilted-plane {
  transform: rotateX(12deg) rotateY(-8deg) rotateZ(1deg);
  transform-style: flat;
  transform-origin: center top;
  transition: transform 0.15s ease-out;
  max-width: 1200px;
  margin: 0 auto;
  border: var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

/* ── Divider ── */
.divider {
  height: 4px;
  background: var(--ink);
  width: 100%;
}

/* ── Section Titles ── */
.section-title {
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ── HERO ── */
.hero-section {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 560px;
}

.hero-text {
  padding: 48px;
  border-right: var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.hero-name {
  font-size: 68px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero-role {
  font-size: 18px;
  font-weight: 500;
  border-left: 4px solid var(--red);
  padding-left: 12px;
}

.hero-tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tag-box {
  border: var(--border);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tag-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.tag-value {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-red    { background: var(--red);    color: var(--white); }
.tag-blue   { background: var(--blue);   color: var(--white); }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-white  { background: var(--white);  color: var(--ink); }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-blue-hero {
  background: var(--blue);
  color: var(--white);
}

.btn-blue-hero:hover { background: var(--ink); color: var(--white); }
.bauhaus-btn {
  display: inline-block;
  width: fit-content;
  padding: 12px 24px;
  background: var(--yellow);
  border: var(--border);
  box-shadow: var(--shadow);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  border-radius: 0;
  color: var(--ink);
}

.bauhaus-btn:hover { background: var(--white); }
.btn-blue-hero:hover { background: var(--ink); color: var(--white); }

.bauhaus-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0px var(--ink);
}

/* ── Bauhaus Composition Box ── */
.composition-box {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: 4fr 8fr;
  overflow: hidden;
}

.comp-red {
  grid-column: 1;
  grid-row: 1;
  background: var(--red);
  border-right: var(--border);
  border-bottom: var(--border);
}

.comp-white {
  grid-column: 2;
  grid-row: 1 / 3;
  background: var(--white);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.comp-yellow {
  grid-column: 1;
  grid-row: 2;
  background: var(--yellow);
  border-right: var(--border);
}

.comp-oval {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3/4;
  background: var(--white);
  border-radius: 9999px;
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
}

.comp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── ABOUT ── */
.about-section {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.about-accent {
  width: 40px;
  height: 40px;
  background: var(--red);
  border: var(--border);
  flex-shrink: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.about-card {
  padding: 28px;
  border: var(--border);
  margin: -2px;
  box-shadow: var(--shadow);
}

.about-card-white { background: var(--white); }
.about-card-grey  { background: var(--bg); }

.body-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

/* ── PROJECTS ── */
.projects-section {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  border: var(--border);
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.1s ease-in-out;
  cursor: default;
}

.project-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 9px 9px 0px var(--ink);
}

.card-border-red    { border-left: 8px solid var(--red); }
.card-border-blue   { border-left: 8px solid var(--blue); }
.card-border-yellow { border-left: 8px solid var(--yellow); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.dot-green  { background: #22C55E; }
.dot-yellow { background: var(--yellow); }
.dot-grey   { background: #9CA3AF; }

.card-desc {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
}

/* ── CONNECT ── */
.connect-section {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.connect-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  border: var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.1s ease-in-out;
}

.connect-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 9px 9px 0px var(--ink);
}

.connect-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 6px 6px 0px var(--ink);
}

.connect-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.connect-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-red    { background: var(--red);    color: var(--white); }
.btn-blue   { background: var(--blue);   color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white  { background: var(--white);  color: var(--ink); }

.btn-red .connect-icon-wrap,
.btn-blue .connect-icon-wrap { background: rgba(255,255,255,0.15); }

.btn-red svg, .btn-blue svg { stroke: var(--white); }

/* ── Footer ── */
.footer-box {
  border: var(--border);
  padding: 20px 24px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-desc {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  font-family: monospace;
}

/* ── Responsive ── */

/* Tablet — up to 1024px */
@media (max-width: 1024px) {
  .perspective-stage { padding: 60px 24px 160px; }
  .hero-name { font-size: 56px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .tilted-plane { transform: rotateX(8deg) rotateY(-5deg) rotateZ(0.5deg); }
}

/* Mobile landscape + small tablets — up to 900px */
@media (max-width: 900px) {
  .perspective-stage {
    padding: 32px 16px 100px;
    perspective: none;
  }
  .tilted-plane {
    transform: none !important;
    box-shadow: 6px 6px 0px var(--ink);
  }
  .hero-section { grid-template-columns: 1fr; }
  .composition-box { display: none; }
  .hero-text {
    border-right: none;
    border-bottom: var(--border);
    padding: 32px 24px;
  }
  .hero-name { font-size: 52px; }
  .about-section { padding: 32px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { margin: 0 0 -4px 0; }
  .projects-section { padding: 32px 24px; }
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .connect-section { padding: 32px 24px; }
  .connect-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .section-title { font-size: 40px; }
}

/* Mobile portrait — up to 600px */
@media (max-width: 600px) {
  .perspective-stage { padding: 20px 10px 80px; }
  .tilted-plane { box-shadow: 4px 4px 0px var(--ink); }
  .hero-text { padding: 24px 20px; gap: 18px; }
  .hero-name { font-size: 42px; }
  .hero-role { font-size: 14px; }
  .hero-tags-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero-btns { flex-direction: column; }
  .bauhaus-btn { width: 100%; text-align: center; }
  .about-section { padding: 24px 20px; gap: 20px; }
  .about-card { padding: 20px; }
  .body-text { font-size: 15px; }
  .projects-section { padding: 24px 20px; gap: 20px; }
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .connect-section { padding: 24px 20px; gap: 20px; }
  .connect-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .connect-btn { padding: 20px 10px; gap: 10px; }
  .connect-icon-wrap { width: 48px; height: 48px; }
  .connect-label { font-size: 11px; }
  .section-title { font-size: 32px; }
  .card-title { font-size: 15px; }
  .footer-box { padding: 16px 20px; }
  .footer-copy { font-size: 12px; }
  .footer-desc { font-size: 11px; }
}

/* Very small screens — up to 380px */
@media (max-width: 380px) {
  .hero-name { font-size: 36px; }
  .section-title { font-size: 28px; }
  .projects-grid { grid-template-columns: 1fr; }
  .tag-value { font-size: 12px; }
}

/* ── Loading state ── */
.loading-state {
  grid-column: 1 / -1;
  padding: 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

/* ── Project card as link ── */
a.project-card { text-decoration: none; color: inherit; }

/* ── Card Actions ── */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.card-action-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border: 2px solid var(--ink);
  text-decoration: none;
  transition: all 0.1s ease-in-out;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--bg); }

.btn-solid {
  background: var(--ink);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn-solid:active, .btn-ghost:active {
  transform: translate(1px, 1px);
}
