:root{
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5a5a5a;
  --rule: #cfcfcf;

  --wrap: 1120px;
  --gap: 24px;

  --h1: clamp(44px, 6vw, 72px);
  --h2: clamp(28px, 4vw, 46px);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.35;
}

img{
  display: block;
  width: 100%;
  height: auto;
}

a{
  color: inherit;
  text-decoration: none;
}

.wrap{
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.rule{
  height: 1px;
  background: var(--rule);
  width: 100%;
}

.muted{ color: var(--muted); }

/* top */
.top{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.top-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 14px;
}

.top-left{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.name{
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role{
  color: var(--muted);
  font-size: 14px;
}

.top-nav{
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.top-nav a{
  color: var(--muted);
}

.top-nav a:hover{
  color: var(--text);
}

/* cover */
.cover{
  padding: 60px 0 90px;
}

.cover-grid{
  display: grid;
  grid-template-columns: auto 1fr auto;
  row-gap: 16px;
  column-gap: 16px;
  align-items: center;
}

.title-left{
  font-size: var(--h1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.title-line{
  height: 2px;
  background: #000;
}

.title-right{
  font-size: var(--h1);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sub-left,
.sub-right{
  font-size: 13px;
  color: #555;
}

.sub-right{
  text-align: right;
}

/* sections */
.section{
  padding: 52px 0;
}

.section-head{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.section-title{
  margin: 0;
  font-size: var(--h2);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* about */
.about-grid{
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.about-photo{
  border: 1px solid var(--rule);
}

.about-photo img{
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-col{
  font-size: 13px;
  color: #111;
}

.about-name{
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.about-sub{
  margin: 6px 0 0;
  color: var(--muted);
}

.about-rule{
  height: 1px;
  background: var(--rule);
  margin: 14px 0;
}

.mini{
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.small{
  margin: 0;
  line-height: 1.6;
  color: #111;
}

.clean-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.clean-list li{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}

.clean-list .k{
  font-weight: 600;
}

.clean-list .v{
  color: var(--muted);
  text-align: right;
}

/* work */
.work-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: var(--gap);
}

.work-item{
  display: grid;
  gap: 10px;
}

.work-thumb{
  border: 1px solid var(--rule);
  background: #fff;
  min-height: 180px;
}

.work-meta{
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
}

.work-no{
  font-weight: 800;
}

.work-name{
  font-weight: 500;
  color: var(--muted);
}

/* project copyable text */
.project{
  padding: 70px 0 0;
}

.project + .project{
  border-top: 1px solid var(--rule);
}

.project-copy{
  padding-bottom: 28px;
}

.project-label{
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-title{
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.project-text{
  margin: 0;
  max-width: 78ch;
  font-size: 15px;
  line-height: 1.7;
  color: #111;
}

/* this is the important part */
.copyable{
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* full image stacks */
.project-block{
  margin-top: 0;
}

.full-gallery{
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.full-gallery img{
  width: 100%;
  display: block;
  border: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.full-gallery img.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* contact */
.contact-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.contact-row a:hover{
  color: var(--text);
}

.dot{
  color: var(--rule);
}

/* footer */
.footer{
  padding: 34px 0 60px;
}

.footer p{
  margin: 16px 0 0;
  font-size: 13px;
}

/* responsive */
@media (max-width: 980px){
  .work-grid{
    grid-template-columns: 1fr;
  }

  .about-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .top-row{
    flex-direction: column;
    align-items: flex-start;
  }

  .cover-grid{
    grid-template-columns: 1fr;
  }

  .title-line{
    display: none;
  }

  .sub-right{
    text-align: left;
  }

  .clean-list li{
    grid-template-columns: 1fr;
  }

  .clean-list .v{
    text-align: left;
  }
}

.project-heading{
  margin: 0;
  font-size: clamp(48px, 7vw, 110px); /* BIG + responsive */
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.project-anchor{
  padding: 40px 0 24px;
}

.project-kicker{
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.project-heading{
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.project-transition{
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
}

.project-transition-line{
  height: 1px;
  background: var(--rule);
  width: 100%;
}

.project-transition-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.project-transition-arrow{
  font-size: 18px;
  color: var(--muted);
}

.project-transition-no{
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
}


.to-work {
  position: fixed;
  bottom: 90px; /* sits above your "to-top" button */
  right: 24px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.to-work.show {
  opacity: 1;
  transform: translateY(0);
}

.to-work:hover {
  background: #222;
}