/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: black-first editorial site, echoing the 'Pentire on black' identity — white and grey type over hairline rules, the swirl icon as the one large graphic, a charcoal strip and one white strip for rhythm. */
:root {
  --paper: #0a0a0a;
  --ink: #f5f5f2;
  --ink-2: #b4b4af;
  --ink-3: #85857f;
  --rule: #2a2a28;
  --wash: #161615;
  --band: #0a0a0a;
  --band-ink: #f5f5f2;
  --band-ink-2: #b4b4af;
  --band-rule: #2a2a28;
  --logo-filter: invert(1);
  --band-logo-filter: invert(1);
  color-scheme: dark;
  --display: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}
/* White strip: flips the tokens locally so everything inside reads black on white */
.light {
  --paper: #f5f5f2; --ink: #0a0a0a; --ink-2: #4b4b49; --ink-3: #77776f; --rule: #d6d6d0; --wash: #ebebe6;
  --logo-filter: none;
  background: var(--paper); color: var(--ink); color-scheme: light;
}
/* Grey strip: same flip, a step darker than white */
.grey {
  --paper: #dcdcd7; --ink: #0a0a0a; --ink-2: #3f3f3c; --ink-3: #5f5f5a; --rule: #c2c2bc; --wash: #d0d0ca;
  --logo-filter: none;
  background: var(--paper); color: var(--ink); color-scheme: light;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: block; line-height: 0; }
.brand img { width: 190px; height: auto; filter: var(--logo-filter); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.04em; text-decoration: none; color: var(--ink-2); padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.nav-cta { color: var(--paper); background: var(--ink); padding: 9px 18px; border: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); font: 500 14px var(--display); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Section heading — mirrors the guidelines: light title over a hairline */
.sec-head { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero .wrap { position: relative; padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 120px); }
.hero-mark { position: absolute; right: -9%; top: 50%; width: min(62vw, 720px); transform: translateY(calc(-50% + var(--py, 0px))) rotate(calc(-8deg + var(--rot, 0deg))); opacity: .09; filter: var(--logo-filter); pointer-events: none; will-change: transform; }
.hero h1 { font-size: clamp(40px, 6.6vw, 82px); max-width: 15ch; }
.hero h1 strong { font-weight: 500; }
.hero .lede { margin-top: 32px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero .actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; padding-block: clamp(64px, 9vw, 112px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); max-width: 18ch; }

/* Sectors strip */
.strip { border-bottom: 1px solid var(--rule); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding-block: 26px; }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: 17px; color: var(--ink-2); }

section.block { padding-block: clamp(64px, 9vw, 112px); }
section.block.wash { background: var(--wash); }

/* Two column prose */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.split > * { min-width: 0; }
.split h3 { font-size: clamp(26px, 3vw, 34px); }
.prose { display: grid; gap: 22px; max-width: 64ch; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); font-size: 1.1em; }

/* Why list */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.why li { list-style: none; padding: 30px 32px 30px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: clamp(20px, 2.1vw, 25px); font-weight: 300; line-height: 1.3; display: flex; gap: 18px; }
.why li:nth-child(odd) { border-right: 1px solid var(--rule); }
.why li:nth-child(even) { padding-left: 32px; }
.why li img { width: 26px; height: 26px; flex: none; margin-top: 4px; filter: var(--logo-filter); opacity: .85; }
.why ul { margin: 0; padding: 0; display: contents; }

/* Service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 34px 0; text-decoration: none; border-bottom: 1px solid var(--rule); transition: background .25s; }
.tile + .tile { padding-left: 26px; border-left: 1px solid var(--rule); }
.tile h3 { font-size: 26px; font-weight: 400; }
.tile p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.tile .more { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tile:hover { background: var(--wash); }

/* Testimonial */
.quote { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.quote img { width: 100%; filter: var(--logo-filter); opacity: .9; }
.quote blockquote { margin: 0; display: grid; gap: 22px; }
.quote blockquote p { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.6vw, 31px); line-height: 1.35; }
.quote blockquote p + p { font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-2); }
.quote cite { font-style: normal; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 18px; border-top: 1px solid var(--rule); }

/* Carousel */
.carousel-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.car-ctrl { display: flex; align-items: center; gap: 10px; }
.car-count { font-family: var(--display); font-size: 15px; color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; }
.car-btn { width: 46px; height: 46px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.car-btn:hover { background: var(--ink); color: var(--paper); }
.car-viewport { overflow: hidden; min-width: 0; }
.car-track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.car-track .slide { flex: 0 0 100%; min-width: 0; }
.car-dots { display: flex; gap: 8px; margin-top: 28px; }
.car-dots button { width: 28px; height: 3px; padding: 0; border: 0; background: var(--rule); cursor: pointer; }
.car-dots button[aria-current="true"] { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .car-track { transition: none; } }

/* Black band CTA */
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; border-top: 1px solid var(--band-rule); }
.band .wrap { position: relative; padding-block: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.band h2 { font-size: clamp(34px, 5vw, 60px); max-width: 16ch; }
.band p { margin-top: 20px; color: var(--band-ink-2); max-width: 52ch; }
.band .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.band .btn:hover { background: transparent; color: var(--band-ink); }
.band-mark { position: absolute; left: -6%; bottom: -40%; width: 520px; max-width: 80%; opacity: .08; filter: var(--band-logo-filter); pointer-events: none; transform: rotate(var(--rot, 0deg)); will-change: transform; }

/* Scroll reveal: only applied by script to items still below the fold */
.rv { transition: opacity .9s ease var(--d, 0s), transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s), background .25s; }
.rv.pre { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { .rv, .rv.pre { opacity: 1; transform: none; transition: none; } }

/* Services page */
.svc { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); padding-block: 56px; border-top: 1px solid var(--rule); }
.svc:first-of-type { border-top: 1px solid var(--ink); }
.svc > * { min-width: 0; }
.svc-title h2 { font-size: clamp(30px, 3.4vw, 42px); }
.svc-title p { margin-top: 16px; color: var(--ink-2); max-width: 36ch; }
.svc-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.svc-groups.single { grid-template-columns: 1fr; }
/* Line up heading, intro and list across side-by-side groups */
.svc-groups:not(.single) .svc-group { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start; }
.svc-group h3 { font-size: 21px; font-weight: 500; }
.svc-group > p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.svc-group ul { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.svc-group li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.svc-groups.single ul { columns: 2; column-gap: 48px; }
.svc-groups.single li { break-inside: avoid; }

.svc-band { padding-block: clamp(56px, 7vw, 88px); }
.svc-band.wash { background: var(--wash); }
.svc-band .svc, .svc-band .svc:first-of-type { padding-block: 0; border-top: 0; }

/* About / team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.person { display: grid; gap: 18px; align-content: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; background: var(--wash); border: 1px dashed var(--ink-3); display: grid; place-items: center; text-align: center; color: var(--ink-3); font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.portrait img { width: 34%; filter: var(--logo-filter); opacity: .25; margin-bottom: 14px; }
.person h3 { font-size: 30px; font-weight: 400; }
.person .role { font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.placeholder { border: 1px dashed var(--ink-3); padding: 14px 16px; color: var(--ink-3); font-size: 15px; }

.photo { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.bio { font-size: 16px; gap: 14px; }
.bio p:first-child { font-size: 1em; }
.bio-list { list-style: none; margin: -4px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.bio-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }

.email-link { font-family: var(--display); font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--ink-3); width: fit-content; user-select: all; }
.email-link:hover { border-bottom-color: var(--ink); }
.legal-doc { max-width: 72ch; display: grid; gap: 16px; color: var(--ink-2); font-size: 16px; }
.legal-doc h2 { font-size: 26px; font-weight: 400; color: var(--ink); margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.legal-doc ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc .updated { font-family: var(--display); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* Candidates */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.steps > div + div { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps h3 { font-size: 22px; font-weight: 400; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
.draft-tag { display: inline-block; font: 500 12px var(--display); letter-spacing: .14em; text-transform: uppercase; border: 1px dashed var(--ink-3); color: var(--ink-3); padding: 4px 10px; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.contact > * { min-width: 0; }
.routes { display: flex; border: 1px solid var(--ink); margin-bottom: 32px; }
.routes button { flex: 1; background: transparent; color: var(--ink); border: 0; padding: 14px 16px; font: 500 14px var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.routes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
form { display: grid; gap: 22px; }
label { display: grid; gap: 8px; font-family: var(--display); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
input, textarea, select { font: 400 17px var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-3); padding: 10px 0; border-radius: 0; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-note { font-size: 14px; color: var(--ink-3); }
.form-msg { border-left: 2px solid var(--ink); padding: 10px 16px; background: var(--wash); font-size: 15px; }
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-side .item { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 6px; }
.contact-side .item span { color: var(--ink-2); }

/* Footer */
footer { border-top: 1px solid var(--ink); }
footer .wrap { padding-block: 56px 40px; display: grid; gap: 40px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: start; }
.foot-top img { width: 210px; filter: var(--logo-filter); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.foot-nav a { text-decoration: none; font-family: var(--display); color: var(--ink-2); }
.foot-nav a:hover { color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.legal a { color: var(--ink-3); }

/* Page transitions */
.page { animation: rise .5s ease both; }
@keyframes rise { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } .btn .arrow, .tile { transition: none; } }

/* Responsive */
@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); font-weight: 500; }
  .nav a.nav-cta { margin-top: 16px; text-align: center; padding: 14px; }
  .split, .contact, .team { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why li, .why li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .why li:nth-child(odd) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps > div + div { padding-left: 0; border-left: 0; }
  .band .wrap { grid-template-columns: 1fr; align-items: start; }
  .quote { grid-template-columns: 1fr; }
  .quote img { width: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .brand img { width: 156px; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile, .tile:nth-child(3) { padding: 26px 0; border-left: 0; }
  .svc-groups, .row2 { grid-template-columns: 1fr; }
  .svc-groups.single ul { columns: 1; }
  .portrait { max-width: 360px; }
}