:root {
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --line: #d8d8d8;
  --paper: #ffffff;
  --gutter: 40px;
  --motion: 120ms linear;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-wrap: break-word;
}

.intro,
.split,
.split__cell,
.projects__grid,
.project,
.project__body,
.contact__row,
.stats,
.stat { min-width: 0; }

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

/* Available to screen readers and crawlers, absent from the layout. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--motion);
}

a:hover { border-color: var(--ink); }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  justify-content: center;
  padding: 56px var(--gutter) 40px;
  border-bottom: 1px solid var(--line);
}

.logo {
  border: 0;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 0.42em;
}

/* ---------- intro ---------- */

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

.intro__cell {
  padding: 56px var(--gutter);
}

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

.intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.intro__portrait {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
}

.intro__text {
  max-width: 560px;
}

.intro__text p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.intro__text p:last-child { margin-bottom: 0; }

.lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink) !important;
}

/* ---------- split blocks ---------- */

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

.split__cell {
  min-height: 420px;
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
}

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

.cell__title {
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact { margin: 0; }

.contact__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.contact dt {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.contact dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.investors { max-width: 480px; }

.investors p {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.investors__mail {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: background-color var(--motion), color var(--motion);
}

.investors__mail:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- forms ---------- */

.field { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field__input {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color var(--motion);
  -webkit-appearance: none;
  appearance: none;
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
}

.field__input:hover:not(:disabled) { border-color: #b4b4b4; }

/* Native select chrome replaced with a hairline caret in the site's language. */

select.field__input {
  padding-right: 44px;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='9'%20height='6'%20viewBox='0%200%209%206'%3E%3Cpath%20d='M0.5%200.5L4.5%204.5L8.5%200.5'%20fill='none'%20stroke='%23111111'%20stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat, no-repeat;
  background-position: right 15px center, right 43px center;
  background-size: 9px 6px, 1px 100%;
  cursor: pointer;
  text-overflow: ellipsis;
}

select.field__input:disabled {
  color: var(--ink-soft);
  cursor: not-allowed;
}

textarea.field__input {
  resize: vertical;
  min-height: 84px;
}

.button {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color var(--motion), color var(--motion);
}

.button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.button:disabled {
  border-color: var(--line);
  color: #a8a8a8;
  cursor: not-allowed;
}

.booking { max-width: 460px; }

.booking__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.booking__status {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  min-height: 20px;
}

.booking__status--error { color: #b00020; }
.booking__status--ok { color: var(--ink); }

.booking__legal {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- projects ---------- */

.projects { padding: 72px var(--gutter) 96px; }

.projects__title {
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  transition: border-color var(--motion);
}

.project:hover,
.project:focus-within { border-color: var(--ink); }

/* One real link per card, stretched across the whole box: the entire card is
   clickable, but crawlers and screen readers still see a single destination. */
.project__link {
  border-bottom: 0;
  color: inherit;
}

.project__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project:hover .project__name,
.project:focus-within .project__name { text-decoration: underline; }

.project__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 20px;
  background: #f6f6f6;
  border-bottom: 1px solid var(--line);
}

/* Screenshots are shown whole rather than cropped — aspect ratios differ. */
.project__media img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.project__body {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.project__name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.project__status {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.project__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  border: 1px solid var(--ink-soft);
}

.project__status--available::before {
  background: var(--ink);
  border-color: var(--ink);
}

.project__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.project__price {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

.stat dt {
  min-height: 2.6em;
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 400;
}

/* ---------- faq ---------- */

.faq {
  padding: 0 var(--gutter) 96px;
}

.faq__list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.faq__item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.faq__q {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
}

.faq__a {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.modal__title {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.modal__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
}

.modal__text--soft {
  font-size: 14px;
  color: var(--ink-soft);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.modal__actions .button { border-bottom-width: 1px; }

.button--ghost { border-color: var(--line); }

.button--ghost:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

body.is-locked { overflow: hidden; }

/* ---------- placeholder page ---------- */

.stub {
  max-width: 640px;
  padding: 96px var(--gutter) 120px;
}

.stub__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stub__lede {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.45;
}

.stub__note {
  margin: 0 0 20px;
  color: var(--ink-soft);
}

.stub .cell__title {
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stub__list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.stub__list li { margin-bottom: 8px; }

.stub .project__status { margin-bottom: 24px; }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__nav a {
  color: var(--ink-soft);
  border-bottom-color: transparent;
}

.footer__nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --gutter: 24px; }

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

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

  .intro__cell { padding: 40px var(--gutter); }

  .intro__cell--empty { display: none; }

  .lede { font-size: 19px; }

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

  .split__cell {
    min-height: 0;
    padding: 40px var(--gutter);
  }

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

  .contact__row { grid-template-columns: 130px 1fr; }

  .projects { padding: 48px var(--gutter) 64px; }

  .faq {
    padding: 0 var(--gutter) 64px;
  }

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

  .footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  .intro__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro__portrait { max-width: 260px; }

  /* 16px keeps iOS Safari from zooming in when a field takes focus. */
  .field__input { font-size: 16px; }

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

  .project__body { padding: 20px; }

  /* Four stat columns are too narrow on a phone — values wrapped. */
  .stats { grid-template-columns: repeat(2, 1fr); }

  .stat { padding: 14px 10px; }

  .stat + .stat { border-left: 0; }

  .stat:nth-child(even) { border-left: 1px solid var(--line); }

  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .stat dt {
    min-height: 0;
    font-size: 9px;
  }

  .stat dd { font-size: 17px; }
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* A 130px label column leaves too little room for a long email address. */
  .contact__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
