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

:root {
  --bg:     #000000;
  --bg2:    #080808;
  --bg3:    #0e0e0e;
  --border: #1e1e1e;
  --border2:#2a2a2a;
  --text:   #9e9a92;
  --muted:  #404040;
  --muted2: #585852;
  --white:  #edeae2;
  --accent: #c8f04a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SITE WRAPPER — centers content on wide screens ── */
.site-wrap {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 100vh;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: -200%;
  width: 400%; height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9990;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)}10%{transform:translate(-5%,-10%)}30%{transform:translate(7%,-25%)}50%{transform:translate(-15%,10%)}70%{transform:translate(0,15%)}90%{transform:translate(-10%,10%)}
}

/* GOTHIC HEADLINE */
.gothic {
  font-family: 'Jacquard 24', cursive;
  line-height: 1.0;
  letter-spacing: 0.01em;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-top {
  position: absolute;
  top: 48px; left: 52px;
  right: 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-name {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 7px 14px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}
.hero-status::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero-status span.status-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #4ade80;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.hero-headline-wrap {
  display: flex;
  align-items: flex-end;
  padding: 240px 52px 48px;
}

.hero-headline {
  font-size: clamp(48px, 8vw, 110px);
  color: var(--white);
  line-height: 1.0;
}

.caret {
  display: inline-block;
  width: 4px;
  height: 0.5em;
  background: var(--white);
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.hero-bio-wrap {
  padding: 48px 52px;
  border-right: 1px solid var(--border);
}

.hero-bio {
  font-size: 18px;
  color: var(--text);
  line-height: 1.85;
  max-width: 480px;
}
.hero-bio strong { color: var(--white); font-weight: 500; }

.hero-stack-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  background: var(--bg2);
  padding: 48px;
}

.hero-stack {
  position: relative;
  width: 580px;
  height: 460px;
}

.hero-card {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  display: block;
}


/* Card 1: upper-left, tilted left, behind */
.hero-card--1 {
  top: 20px;
  left: 0;
  transform: rotate(-10deg);
  z-index: 1;
}
/* Card 2: lower-right, tilted right, in front */
.hero-card--2 {
  bottom: 20px;
  right: 0;
  transform: rotate(6deg);
  z-index: 2;
}

/* Hover: hovered card lifts and comes to front */
.hero-card--1:hover {
  transform: rotate(-12deg) translateY(-12px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
  z-index: 3;
}
.hero-card--2:hover {
  transform: rotate(8deg) translateY(-12px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
  z-index: 3;
}

/* ── DIVIDER ── */
.divider {
  padding: 28px 52px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 24s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after { content: '✦'; color: var(--border2); font-size: 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── MANIFESTO ── */
.manifesto {
  padding: 120px 52px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: start;
}

.side-label {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 2.4;
  padding-top: 6px;
}

.manifesto-content {}

.manifesto-title {
  font-size: clamp(40px, 6vw, 80px);
  color: var(--white);
  margin-bottom: 32px;
}

.manifesto-text {
  font-size: 19px;
  color: var(--text);
  line-height: 1.9;
  max-width: 600px;
  font-weight: 300;
}
.manifesto-text strong {
  color: var(--white);
  font-weight: 500;
}

/* ── PROCESS ── */
.process-section {
  border-bottom: 1px solid var(--border);
}
.process-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  padding: 64px 52px 48px;
  border-bottom: 1px solid var(--border);
  align-items: end;
}
.process-title {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--white);
  line-height: 1;
}

.process-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.process-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-card:last-child { border-right: none; }
.process-card:hover { background: var(--bg2); }

.process-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.process-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.process-card-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.process-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  overflow: hidden;
  background: none;
  border: none;
  border-radius: 0;
}
.process-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-card-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.process-card-desc {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.75;
  flex-grow: 1;
}

/* ── SELECTED PROJECTS ── */
.projects {
  border-bottom: 1px solid var(--border);
}

.projects-header {
  padding: 64px 52px 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}

.projects-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--white);
  line-height: 1.05;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card {
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.project-card:hover { background: var(--bg2); }
.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg3);
  position: relative;
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.project-year {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 9px;
  border-radius: 2px;
  pointer-events: none;
}

.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project-info {
  padding: 28px 32px 32px;
}

.project-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-desc {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  padding: 4px 10px;
  border-radius: 2px;
}

.project-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.project-card--soon {
  cursor: default;
  transition: background 0.3s;
}
.project-card--soon:hover {
  background: var(--bg2);
}

.coming-soon {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 240, 74, 0.3);
  background: rgba(200, 240, 74, 0.06);
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── CONTACT ── */
.contact {
  padding: 80px 52px;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 80px;
  align-items: start;
}

.contact-headline {
  font-size: clamp(48px, 8vw, 110px);
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 40px;
}

.contact-email {
  display: none;
}

.contact-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 4px;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-link::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7v10'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}
.contact-link:hover { border-color: var(--white); }

/* FOOTER */
footer {
  padding: 24px 52px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.footer-text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ── TABLET ── max-width 768px: single column, comfortable padding */
@media (max-width: 768px) {
  /* Hero */
  .hero-top {
    left: 28px; right: 28px; top: 28px;
  }
  .hero-headline-wrap { padding: 220px 28px 36px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bio-wrap { padding: 32px 28px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-bio { font-size: 16px; max-width: 100%; }
  .hero-stack-wrap { min-height: 300px; padding: 36px 24px; }
  .hero-stack { width: 460px; height: 380px; }
  .hero-card { width: 280px; height: 280px; border-radius: 26px; }

  /* Marquee */
  .divider { padding: 22px 28px; }
  .marquee-item { font-size: 15px; gap: 32px; }
  .marquee-track { gap: 32px; }

  /* Manifesto — single column */
  .manifesto { grid-template-columns: 1fr; gap: 0; padding: 64px 28px; }
  .side-label { margin-bottom: 16px; }
  .manifesto-text { font-size: 16px; max-width: 100%; }

  /* Process — stack cards */
  .process-header { grid-template-columns: 1fr; gap: 0; padding: 48px 28px 32px; }
  .process-title { margin-top: 12px; }
  .process-cards { grid-template-columns: 1fr; }
  .process-card { border-right: none; padding: 28px 28px 32px; }
  .belief-step { grid-template-columns: 1fr; gap: 12px; }

  /* Projects — single column */
  .projects-header { grid-template-columns: 1fr; gap: 0; padding: 48px 28px 32px; }
  .projects-title { margin-top: 12px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(odd) { border-right: none; }
  .project-info { padding: 24px 28px 28px; }

  /* Contact — single column */
  .contact { padding: 64px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-headline { margin-top: 8px; }

  /* Footer */
  footer { padding: 20px 28px; flex-direction: column; gap: 6px; text-align: center; }
}

/* ── SMALL MOBILE ── max-width 480px: tighter padding, smaller type */
@media (max-width: 480px) {
  .hero-top { left: 20px; right: 20px; top: 24px; gap: 10px; }
  .hero-name { font-size: 18px; }
  .hero-status { padding: 5px 10px; }
  .hero-status span.status-text { font-size: 10px; }
  .hero-headline-wrap { padding: 210px 20px 28px; }
  .hero-bio-wrap { padding: 24px 20px; }
  .hero-bio { font-size: 15px; }
  .hero-stack-wrap { min-height: 260px; padding: 28px 16px; }
  .hero-stack { width: 360px; height: 300px; }
  .hero-card { width: 220px; height: 220px; border-radius: 22px; }

  .divider { padding: 18px 20px; }
  .marquee-item { font-size: 13px; }

  .manifesto { padding: 48px 20px; }
  .manifesto-text { font-size: 15px; }

  .process-header { padding: 36px 20px 24px; }
  .process-card { padding: 24px 20px 28px; }
  .process-card-name { font-size: 20px; }
  .process-card-desc { font-size: 14px; }

  .projects-header { padding: 36px 20px 24px; }
  .project-info { padding: 20px 20px 24px; }
  .project-name { font-size: 19px; }
  .project-desc { font-size: 14px; }

  .contact { padding: 48px 20px; }
  .contact-link { font-size: 15px; }

  footer { padding: 16px 20px; }
  .footer-text { font-size: 10px; }
}
