/* Partnox: black, grey and white. One family (Archivo), told apart by width and weight. */

:root {
  --black: #0a0a0a;
  --coal: #141414;
  --graphite: #232323;
  --line-dark: #3a3a3a;
  --steel: #8c8c8c;
  --ash: #bcbcbc;
  --fog: #dedede;
  --paper: #efefef;
  --white: #ffffff;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1400px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-stretch: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* Type ------------------------------------------------------------------ */
.display {
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0;
  margin: 0;
}
.label {
  font-stretch: 125%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* Grain on the dark sections */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  pointer-events: none;
}

/* Buttons and links -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-stretch: 112%; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  padding: 18px 26px;
  border: 2px solid currentColor;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-solid { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-solid:hover { background: var(--black); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--black); }
.on-light .btn-solid { background: var(--black); color: var(--white); border-color: var(--black); }
.on-light .btn-solid:hover { background: transparent; color: var(--black); }

.link {
  font-stretch: 112%; font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}
.link, .foot-links a, .brand, .nav-links a { position: relative; }
.link::before, .foot-links a::before, .brand::before, .nav-links a::before { content: ''; position: absolute; inset: -12px -8px; }
.link:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.on-light .link:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* Nav -------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.pmark { width: 34px; height: 34px; flex: none; }
.brand-name { font-stretch: 112%; font-weight: 800; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.nav-links a {
  font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-color: var(--white); }

/* Hero ------------------------------------------------------------------- */
.hero {
  background: var(--black);
  padding: calc(var(--nav-h) + clamp(36px, 7vw, 96px)) 0 clamp(40px, 6vw, 88px);
  overflow: hidden;
}
.hero-kicker { color: var(--ash); margin-bottom: clamp(20px, 3vw, 40px); }
.hero h1 { font-size: min(12.6vw, 190px); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero mark {
  background: var(--white); color: var(--black);
  padding: 0 0.07em;
  display: inline-block;
  transform: rotate(-1.2deg);
  transform-origin: left center;
  margin-top: 0.04em;
}
.hero-foot {
  margin-top: clamp(36px, 6vw, 84px);
  padding-top: 28px;
  border-top: 4px solid var(--white);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.lede { font-size: clamp(19px, 1.75vw, 25px); line-height: 1.45; margin: 0; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; justify-self: end; }

/* Statement -------------------------------------------------------------- */
.statement {
  background: var(--paper); color: var(--black);
  padding: clamp(64px, 10vw, 150px) 0;
}
.statement .label { color: #555; margin-bottom: 28px; }
.statement-big {
  font-stretch: 78%; font-weight: 800;
  font-size: clamp(38px, 7.4vw, 118px);
  line-height: 0.98; letter-spacing: -0.01em;
  margin: 0; max-width: 17ch;
}
.statement-cols {
  margin-top: clamp(40px, 6vw, 88px);
  padding-top: 28px; border-top: 4px solid var(--black);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px);
}
.statement-cols p { margin: 0; max-width: 52ch; }
.statement-cols .quiet { color: #4a4a4a; }

/* Shea ------------------------------------------------------------------- */
.shea {
  background: var(--black);
  padding: clamp(64px, 9vw, 130px) 0 clamp(24px, 4vw, 60px);
}
.shea-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.shea .label { color: var(--ash); margin-bottom: 18px; }
.shea h2 { font-size: clamp(110px, 21vw, 300px); line-height: 0.8; }
.shea-tag { font-stretch: 85%; font-weight: 800; font-size: clamp(26px, 3vw, 42px); line-height: 1.1; margin: clamp(22px, 3vw, 40px) 0 14px; max-width: 18ch; }
.shea-desc { color: var(--ash); max-width: 46ch; margin: 0; }
.rows { list-style: none; margin: clamp(26px, 3.5vw, 48px) 0 0; padding: 0; border-top: 1px solid var(--line-dark); max-width: 520px; }
.rows li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line-dark);
  font-stretch: 100%; font-weight: 600; font-size: 17px;
}
.rows li span:last-child { color: var(--steel); font-weight: 400; }
.shea-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3.5vw, 44px); }
.shea-shots { position: static; display: flex; gap: clamp(14px, 2vw, 28px); justify-content: center; align-items: flex-start; padding-bottom: clamp(48px, 7vw, 100px); }
.phone {
  width: min(47%, 310px);
  border: 8px solid #2a2a2a;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 0 0 1px #444;
}
.phone img { width: 100%; height: auto; }
.phone.low { margin-top: clamp(40px, 5vw, 80px); }

@media (min-height: 900px) and (min-width: 901px) { .shea-shots { position: sticky; top: calc(var(--nav-h) + 24px); } }

/* Founders --------------------------------------------------------------- */
.founders {
  background: var(--white); color: var(--black);
  padding: clamp(64px, 9vw, 130px) 0;
}
.founders-head { max-width: 980px; }
.founders .label { color: #555; margin-bottom: 20px; }
.founders h2 { font-size: clamp(64px, 12vw, 176px); }
.founders-grid {
  margin-top: clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.founder:nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
.portrait { border: 4px solid var(--black); background: var(--black); aspect-ratio: 4 / 5; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.founder h3 { font-size: clamp(46px, 6.6vw, 100px); margin: 28px 0 0; }
.founder h3 .aka { display: block; font-stretch: 100%; font-weight: 600; font-size: 0.32em; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 12px; line-height: 1; color: #555; }
.founder-role { margin-top: 18px; color: #555; }
.founder p.bio { margin: 16px 0 0; max-width: 46ch; }
.founder .link { display: inline-block; margin-top: 22px; }

/* How we work ------------------------------------------------------------ */
.work { background: var(--coal); padding: clamp(56px, 8vw, 110px) 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 4px solid var(--white); }
.work-item { padding: 26px clamp(16px, 2.4vw, 36px) 8px 0; }
.work-item + .work-item { border-left: 1px solid var(--line-dark); padding-left: clamp(16px, 2.4vw, 36px); }
.work-item h3 { font-size: clamp(36px, 4.6vw, 68px); margin: 0 0 16px; }
.work-item p { margin: 0; color: var(--ash); max-width: 32ch; }

/* Contact ---------------------------------------------------------------- */
.contact { background: var(--paper); color: var(--black); padding: clamp(64px, 9vw, 130px) 0; }
.contact .label { color: #555; margin-bottom: 20px; }
.contact h2 { font-size: min(15vw, 210px); }
.mail {
  display: inline-block; margin-top: clamp(24px, 4vw, 56px);
  font-stretch: 85%; font-weight: 800; font-size: clamp(30px, 6.4vw, 100px); letter-spacing: -0.01em; line-height: 1;
  text-decoration: none; border-bottom: 6px solid var(--black); padding-bottom: 6px;
  overflow-wrap: anywhere;
}
.mail:hover { background: var(--black); color: var(--white); }
.contact-meta { margin-top: 28px; color: #4a4a4a; }
.contact-meta p { margin: 0; }

/* Footer ----------------------------------------------------------------- */
footer { background: var(--black); padding: 40px 0 36px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.foot-links a { font-stretch: 125%; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; padding: 4px 0; }
.foot-links a:hover { border-color: var(--white); }
.foot-small { width: 100%; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; color: var(--steel); font-size: 14px; }

/* Small screens ---------------------------------------------------------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-foot { grid-template-columns: 1fr; align-items: start; }
  .hero-cta { justify-self: start; }
  .statement-cols { grid-template-columns: 1fr; }
  .shea-grid { grid-template-columns: 1fr; }
  .shea-shots {
    position: static; margin: 12px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 8px;
    justify-content: flex-start; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .shea-shots::-webkit-scrollbar { display: none; }
  .phone { flex: none; width: min(74vw, 330px); scroll-snap-align: start; }
  .phone.low { margin-top: 0; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder:nth-child(2) { margin-top: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item + .work-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); margin-top: 18px; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.12em; padding: 14px 0; }
}
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: space-between; }
  .shea-cta .btn { width: 100%; }
}
