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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
}

/* Top bar */
.bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px var(--pad);
  font-size: 0.95rem;
}

.name {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mail {
  color: var(--steel);
  text-decoration: none;
}

.mail:hover {
  color: var(--cobalt);
}

/* Hero */
.hero {
  padding: clamp(24px, 6vw, 72px) var(--pad) clamp(56px, 9vw, 112px);
}

h1 {
  font-weight: 100;
  font-size: clamp(6rem, 27vw, 24rem);
  line-height: 0.82;
  letter-spacing: -0.055em;
  margin-left: -0.04em;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.statement {
  /* max-width: 21ch; */
  font-weight: 300;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.blank {
  display: inline-block;
  font-weight: 500;
  border-bottom: 0.07em solid var(--cobalt);
  line-height: 1;
  padding-bottom: 0.06em;
  transition: opacity 0.35s ease;
}

.blank.is-out {
  opacity: 0;
}

/* Options */
.try {
  margin-top: clamp(32px, 5vw, 56px);
  /* max-width: 760px; */
}

.try p {
  color: var(--steel);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.try ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.try button {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.try button:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.try button[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

/* What we do */
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--panel);
  border-top: 1px solid var(--ink);
}

.col {
  padding: clamp(32px, 5vw, 64px) var(--pad);
}

.col+.col {
  border-left: 1px solid var(--line);
}

.col h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.col>p {
  max-width: 36ch;
  font-weight: 300;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.col ul {
  list-style: none;
}

.col li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.col li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Contact */
.contact {
  padding: clamp(56px, 9vw, 120px) var(--pad);
}

.contact p {
  color: var(--steel);
  margin-bottom: 8px;
}

.contact a {
  font-weight: 200;
  font-size: clamp(1.8rem, 6.4vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.contact a:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--steel);
}

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

  .col+.col {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {

  .blank,
  .try button,
  .contact a {
    transition: none;
  }
}

/* Photo slider */
.gallery {
  padding: 0 var(--pad) clamp(40px, 6vw, 80px);
}

.slider {
  position: relative;
  width: 100%;
  max-width: 760px;          /* keeps a 4:3 frame from getting too tall */
  aspect-ratio: 4 / 3;       /* same shape as the illustrations */
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);  /* matches the illustration background */
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* shows the whole image, never crops */
  opacity: 0;
  transition: opacity 1s ease;
}

.slider img.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .slider img {
    transition: none;
  }
}