* { -webkit-tap-highlight-color: transparent; }
/* Standalone pages — journal, work, about. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #171717; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #F9452D; }
button { font-family: inherit; color: #171717; }
img { max-width: 100%; }
h1, h2, h3, p { text-wrap: pretty; }

.wrap { max-width: 586px; margin: 0 auto; padding: 0 18px; }
.wide { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.back { display: inline-flex; align-items: center; gap: 16px; padding: 0; margin: 56px 0 0; }
.back-circle {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid #E9E9E9; background: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 6px 18px -12px rgba(0,0,0,.3);
  transition: background .3s ease;
}
.back:hover .back-circle { background: #F6F6F6; }
.back-arrow { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.back:hover .back-arrow { transform: translateX(-2px); }
.back-label { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }

.eyebrow {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #F9452D;
}
h1.page-title {
  margin: 14px 0 0; font-size: clamp(34px, 8vw, 48px);
  line-height: 1.03; letter-spacing: -.045em; font-weight: 600;
}
.lede { margin: 18px 0 0; font-size: 17px; line-height: 1.55; color: rgba(23,23,23,.6); }
.meta { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: rgba(23,23,23,.45); letter-spacing: -.02em; }
.rule { height: 1px; background: #EDEDED; margin: 30px 0 0; }

.hero { border-radius: 34px; overflow: hidden; background: #DDE5E9; margin-top: 30px; }
.hero img { display: block; width: 100%; height: clamp(230px, 44vw, 620px); object-fit: cover; }

.prose { display: flex; flex-direction: column; gap: 20px; margin-top: 34px; }
.prose p { margin: 0; font-size: 16.5px; line-height: 1.68; color: rgba(23,23,23,.72); }
.prose h2 { margin: 14px 0 0; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; color: #171717; }
.prose blockquote {
  margin: 10px 0; padding: 24px 26px;
  background: #F6F6F6; border-radius: 26px;
  font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; color: #171717;
}

.list { background: #F6F6F6; border: 1px solid #E9E9E9; border-radius: 46px; padding: 9px; margin-top: 34px; display: flex; flex-direction: column; gap: 6px; }
.row {
  display: flex; align-items: center; gap: 18px;
  padding: 8px clamp(14px, 4vw, 30px) 8px 8px;
  border-radius: 50px; background: #fff; overflow: hidden;
}
.row-thumb { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.row:hover .row-thumb img { transform: scale(1.12); }
.row-title { flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -.04em; min-width: 0; }
.row-side { font-size: 14px; font-weight: 600; letter-spacing: -.04em; opacity: .4; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 30px; border-radius: 100px;
  border: 0; outline: none; cursor: pointer; font: inherit;
  -webkit-appearance: none; appearance: none;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.03em;
  transition: background .28s ease, color .28s ease;
}
.btn svg { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.btn:hover svg { transform: rotate(45deg); }
.btn-primary { background: #F9452D; color: #fff; }
.btn-primary:hover { background: #E23A24; color: #fff; }
.btn-ghost { background: #F6F6F6; color: #171717; }
.btn-dark { background: #171717; color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-still:hover svg { transform: none; }
.btn-ghost:hover { background: #EFEFEF; color: #171717; }
.btn-block { width: 100%; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 34px; }

.author { display: flex; align-items: center; gap: 14px; margin-top: 38px; padding-top: 26px; border-top: 1px solid #EDEDED; }
.author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.author-name { font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.author-role { font-size: 13px; color: rgba(23,23,23,.55); margin-top: 2px; }

/* Section heads on the detail pages are centred and large, matching the
   "More projects" / "More articles" treatment on the homepage. */
.section-head {
  margin: 72px 0 0;
  text-align: center;
  font-size: clamp(28px, 6.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.035em;
}

/* Byline: logo or avatar, name, and a muted value on the right. */
/* Mark + name sit together; the year is a separate group further right,
   matching the spacing the sheets used. */
.byline { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.byline-who { display: flex; align-items: center; gap: 10px; }
.byline-mark {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: -.02em;
}
.byline-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.byline-name { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.byline-side { font-size: 14.5px; color: rgba(23,23,23,.45); }

.lede-strong { font-size: 18.5px; line-height: 1.6; color: #171717; }
.sub-note { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: rgba(23,23,23,.45); }

/* "View all" sits inside the list container, below the last row. */
.list-more {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 16px 0 12px;
  font-size: 14px; font-weight: 600; letter-spacing: -.02em;
}
.list-more svg { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.list-more:hover svg { transform: rotate(45deg); }

/* Boxed author credit at the end of an article. */
.author-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 44px;
  background: #fff; border: 1px solid #E9E9E9; border-radius: 30px;
  padding: 20px 24px;
}
.author-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.author-label {
  display: block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(23,23,23,.4);
  margin-bottom: 3px;
}
.author-card .author-name { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.03em; }
.author-card .author-role { display: block; font-size: 13.5px; color: rgba(23,23,23,.5); margin-top: 2px; }

footer.site {
  margin-top: 84px; padding: 34px 0 44px;
  border-top: 1px solid #EDEDED;
  font-size: 13px; color: rgba(23,23,23,.5);
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between;
}
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; color: #171717; }

@media (max-width: 609px) {
  .back { margin-top: 34px; }
  .hero { border-radius: 26px; }
  .list { border-radius: 34px; }
  .card { border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Contact page ─────────────────────────────────────────────────────────── */

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

.mode-tabs { display: flex; gap: 22px; margin-top: 26px; }
.mode-tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -.02em;
  color: rgba(23,23,23,.4);
  transition: color .24s ease;
}
.mode-tab.is-on { color: #171717; }
.mode-tab:hover { color: #171717; }

.lead-form { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }

.pill {
  width: 100%;
  height: 54px;
  border: 1px solid #EFEFEF;
  border-radius: 999px;
  background: #FAFAFA;
  padding: 0 22px;
  font: inherit;
  font-size: 15px;
  letter-spacing: -.02em;
  color: #171717;
  transition: border-color .22s ease, background .22s ease;
}
.pill::placeholder { color: rgba(23,23,23,.4); }
.pill:focus { outline: none; border-color: #F9452D; background: #fff; }

.pill-area {
  height: auto;
  min-height: 128px;
  border-radius: 26px;
  padding: 18px 22px;
  line-height: 1.5;
  resize: vertical;
}

/* Dropdowns — same treatment as the country picker: pill trigger, animated
   panel, chevron that flips, muted label until a value is chosen. */
.drop { position: relative; }
.drop-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer;
  border-color: #E9E9E9;
  transition: border-color .25s ease, background .25s ease;
}
.drop.is-open .drop-trigger { background: #fff; border-color: #F9452D; }
.drop-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-label.is-empty { color: rgba(23,23,23,.45); }
.drop-chev { flex: none; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.drop.is-open .drop-chev { transform: rotate(180deg); }

.drop-panel {
  position: absolute; left: 0; right: 0; top: 60px; z-index: 6;
  background: #fff;
  border: 1px solid #EDEDED;
  border-radius: 26px;
  padding: 8px;
  box-shadow: 0 22px 46px -22px rgba(0,0,0,.32);
  display: flex; flex-direction: column;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
  transition: opacity .26s ease, transform .3s cubic-bezier(.22,1,.36,1);
}
.drop.is-open .drop-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.drop-row {
  border: 0; background: transparent;
  border-radius: 18px;
  padding: 12px 16px;
  font: inherit; font-size: 14.5px; font-weight: 500;
  color: #171717; text-align: left; cursor: pointer;
  transition: background .2s ease;
}
.drop-row:hover { background: #F6F6F6; }

.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1FBE5A; color: #fff; }

.form-note {
  margin: 4px 0 0;
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  color: rgba(23,23,23,.55);
}
.form-note.is-error { color: #F9452D; }

/* Success state — ring scales in, then the tick draws itself. */
.contact-done {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(38px, 8vw, 62px) 0 clamp(10px, 3vw, 24px);
}
.contact-done .tick {
  width: 78px; height: 78px; border-radius: 50%;
  background: #E9F9EC;
  display: flex; align-items: center; justify-content: center;
  flex: none; margin-bottom: 26px;
  animation: tickPop .5s cubic-bezier(.22,1,.36,1) both;
}
.contact-done h1 {
  margin: 0;
  font-size: clamp(28px, 6.6vw, 40px);
  font-weight: 600; letter-spacing: -.04em;
}
.contact-done p {
  margin: 14px auto 0; max-width: 340px;
  font-size: 15.5px; line-height: 1.55; color: rgba(23,23,23,.6);
}
.contact-done-actions {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; margin-top: 30px;
}
.contact-done-actions a {
  display: flex; align-items: center; justify-content: center;
  height: 56px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.03em;
  transition: background .26s ease;
}
.contact-done-actions .btn-primary { background: #F9452D; color: #fff; }
.contact-done-actions .btn-primary:hover { background: #E23A24; color: #fff; }
.contact-done-actions .btn-ghost { background: #F6F6F6; color: #171717; }
.contact-done-actions .btn-ghost:hover { background: #EFEFEF; color: #171717; }

.tick-path {
  stroke-dasharray: 26; stroke-dashoffset: 26;
  animation: tickDraw .42s cubic-bezier(.65,0,.35,1) .26s both;
}
@keyframes tickPop {
  0%   { transform: scale(.4); opacity: 0 }
  60%  { transform: scale(1.06); opacity: 1 }
  100% { transform: scale(1); opacity: 1 }
}
@keyframes tickDraw { to { stroke-dashoffset: 0 } }

@media (prefers-reduced-motion: reduce) {
  .contact-done .tick, .tick-path { animation: none; stroke-dashoffset: 0 }
}
