/* Hallmark · built: the project · redesign: polish · genre: modern-minimal · hero: search-led · nav: masthead · footer: operator and documents · signature: service search · job: enquire */
/* Hallmark · critique: serif display broke the requested visual system; one sans family and restrained contrast restore continuity. */
:root {
  --paper: #faf9f7;
  --sand: #eeebe6;
  --plum: #211924;
  --plum-light: #eee8ef;
  --ink: #241d28;
  --muted: #615766;
  --line: #dbd2dd;
  --page: min(100% - 112px, 1280px);
  --transition: 220ms cubic-bezier(.22, .61, .36, 1);
  --font-sans: Manrope, system-ui, sans-serif;
  font-family: var(--font-sans);
  background: var(--paper);
  --on-dark: #fdfafd;
  --dark-divider: #ffffff2e;
  --masthead-caption: #d4c9d5;
  --dark-hover: #d9baff;
  --masthead-email: #e1d3e6;
  --masthead-button: #f7f1f8;
  --masthead-button-hover: #e9ddeb;
  --dark-focus: #dbb8ff;
  --white: #fff;
  --result-ink: #463e4a;
  --button-border: #d2bddb;
  --result-hover: #f1e8ff;
  --case-ink: #504654;
  --case-border: #78657c;
  --portrait-surface: #ddd5df;
  --portrait-inset: #eae2ec;
  --profile-ink: #e4d9e5;
  --profile-link: #e5c9ff;
  --inquiry-surface: #eae3ed;
  --field-border: #c7b8cc;
  --field-surface: #faf8fa;
}
html, body { overflow-x: clip; }
body { background: var(--paper); }
h1, h2, h3 { overflow-wrap: break-word; min-width: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(44px, 5.6vw, 82px); font-weight: 840; }
.button { border-radius: 100px; transition: background var(--transition), color var(--transition), border-color var(--transition); }

.button:active { opacity: .8; }
.button:disabled { background: var(--sand); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

.masthead { background: var(--plum); color: var(--on-dark); }
.masthead-inner { display: flex; align-items: center; gap: clamp(22px, 3.3vw, 54px); min-height: 102px; padding-block: 16px; }
.signature { display: inline-flex; align-items: center; gap: 14px; }
.signature strong { font-size: 21px; font-weight: 720; line-height: 1; letter-spacing: -.043em; }
.signature span { border-left: 1px solid var(--dark-divider); padding-left: 14px; color: var(--masthead-caption); max-width: 96px; font-size: 12px; line-height: 1.4; }
.masthead-nav { margin-inline: auto; display: flex; gap: clamp(19px, 2.6vw, 36px); white-space: nowrap; }
.masthead-nav a, .masthead-contact a { font-size: 14px; font-weight: 560; }
.masthead-nav a:hover, .masthead-contact a:hover { color: var(--dark-hover); }
.masthead-contact { display: grid; gap: 3px; white-space: nowrap; }
.masthead-contact a:first-child { font-size: 16px; font-weight: 750; }
.masthead-contact a:last-child { color: var(--masthead-email); }
.masthead-cta { flex: none; color: var(--plum); background: var(--masthead-button); font-size: 14px; min-height: 48px; gap: 9px; padding: 6px 7px 6px 17px; }
.masthead-cta span { display: grid; place-items: center; background: var(--masthead-button-hover); border-radius: 50%; width: 31px; height: 31px; }
.masthead-cta:hover { color: var(--plum); background: var(--masthead-button-hover); }
.masthead :focus-visible, .profile :focus-visible { outline-color: var(--dark-focus); }

.hero { padding-block: clamp(42px, 5vw, 76px) clamp(41px, 5vw, 72px); }
.search { background: var(--white); border-color: var(--purple); margin-top: 30px; border-radius: 16px; }
.search-button { border-radius: 10px; }
.tab { font-weight: 650; }
.results-layout.wide { grid-template-columns: minmax(0, 1fr); }
.results-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(22px, 3.3vw, 50px); align-items: start; }
.results-list .result { padding: 17px 0 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.results-list .result-message, .results-list .more { grid-column: 1 / -1; justify-self: start; }
.results-list .result-title { font-size: clamp(20px, 1.9vw, 27px); font-weight: 740; margin-top: 7px; }
.results-list .result-description { color: var(--result-ink); line-height: 1.52; font-size: 15px; }
.results-list .more { border-radius: 100px; background: transparent; border-color: var(--button-border); }
.results-list .more:hover { background: var(--result-hover); }

.cases { background: var(--sand); }
.section-pair { padding-block: clamp(41px, 5vw, 69px); align-items: center; }
.section-pair h2, .profile h2, .approach h2, .inquiry h2 {
  font-weight: 720;
  letter-spacing: -.052em;
}
.section-pair p { color: var(--case-ink); }
.cases .outline { border-color: var(--case-border); color: var(--plum); }
.cases .outline:hover { background: var(--plum); color: var(--white); }

.profile { background: var(--plum); color: var(--on-dark); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); align-items: center; gap: clamp(44px, 8vw, 114px); padding-block: clamp(54px, 7.5vw, 110px); }
.portraits { position: relative; min-width: 0; margin: 0; aspect-ratio: 1.22; overflow: hidden; background: var(--portrait-surface); isolation: isolate; }
.portraits::before { content: ""; position: absolute; inset: 15% 12% 0; background: var(--portrait-inset); border-radius: 50% 50% 0 0; }
.portrait { position: absolute; width: auto; object-fit: contain; bottom: -1%; height: 85%; }
.portrait-glasses { left: 8%; height: 81%; }
.portrait-denim { left: 34%; z-index: 1; height: 92%; }
.portrait-phone { right: 8%; height: 84%; }
.profile h2, .inquiry h2 { font-size: clamp(46px, 5.5vw, 77px); line-height: .97; }
.profile p { max-width: 45ch; margin-top: 21px; color: var(--profile-ink); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.6; }
.profile p + p { margin-top: 10px; }
.profile-link { display: inline-block; margin-top: 26px; color: var(--profile-link); font-weight: 660; text-decoration: underline; text-underline-offset: 5px; }

.approach { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(35px, 7vw, 105px); padding-block: clamp(60px, 8vw, 116px); }
.approach h2 { font-size: clamp(38px, 4.8vw, 65px); }
.approach-list { margin: 0; }
.approach-list > div { border-top: 1px solid var(--line); padding-block: 18px 23px; }
.approach-list > div:last-child { padding-bottom: 0; }
.approach-list dt { font-size: clamp(18px, 1.8vw, 23px); font-weight: 720; }
.approach-list dd { margin: 8px 0 0; color: var(--muted); max-width: 58ch; line-height: 1.55; font-size: 16px; }

.inquiry { background: var(--inquiry-surface); }
.inquiry-grid { display: grid; grid-template-columns: .94fr 1.06fr; gap: clamp(30px, 8vw, 110px); padding-block: clamp(58px, 8vw, 110px); align-items: end; }
.inquiry-links { display: flex; flex-wrap: wrap; gap: 10px 21px; margin-top: 25px; }
.inquiry-links a { font-weight: 640; text-decoration: underline; text-underline-offset: 4px; }
.inquiry-links a:hover { color: var(--purple-dark); }
.inquiry .contact-form { gap: 13px; }
.inquiry .contact-form textarea { border-radius: 9px; border-color: var(--field-border); background: var(--field-surface); }
.inquiry .contact-form .button { min-height: 49px; padding-inline: 23px; }
.form-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-consent { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; margin-block: 4px; }
.form-consent input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--purple); }
.form-consent label { font-size: 14px; line-height: 1.5; font-weight: 600; cursor: pointer; }
.form-consent .form-note { margin-top: 4px; }
.form-consent a, .legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.operator strong { font-size: 15px; }
.operator p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-links a { font-size: 13px; font-weight: 500; }

@media (max-width: 1050px) {
  :root { --page: calc(100% - 72px); }
  .masthead-inner { gap: 21px; }
  .masthead-nav { gap: 17px; }
  .signature span { display: none; }
  .results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  :root { --page: calc(100% - 48px); }
  .masthead-nav { display: none; }
  .masthead-contact { margin-left: auto; }
  .profile-grid, .approach, .inquiry-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-copy { grid-row: 1; }
  .portraits { max-width: 540px; }
  .profile h2 br, .inquiry h2 br { display: none; }
}
@media (max-width: 540px) {
  :root { --page: calc(100% - 36px); }
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 8px; padding-block: 15px; }
  .masthead-contact { text-align: right; }
  .masthead-contact a:first-child { font-size: 14px; }
  .masthead-contact a:last-child { font-size: 13px; }
  .masthead-cta { justify-self: start; min-height: 40px; padding: 4px 5px 4px 13px; }
  .masthead-cta span { width: 27px; height: 27px; }
  .signature strong { font-size: 19px; }
  h1 { font-size: clamp(33px, 9vw, 45px); }
  .hero { padding-top: 32px; }
  .search { margin-top: 21px; border-radius: 12px; }
  .search-button { border-radius: 7px; }
  .results-list { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .section-pair, .profile-grid, .approach, .inquiry-grid { padding-block: 43px; }
  .profile-grid, .inquiry-grid { gap: 24px; }
  .approach { gap: 21px; }
  .profile h2, .inquiry h2 { font-size: clamp(37px, 10vw, 52px); }
  .legal-links { display: grid; }
}

:root {
  --nav-offset: 120px;
  --field-error: #a31d38;
}
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
section[id] { scroll-margin-top: var(--nav-offset); }
.masthead-nav a, .masthead-contact a, .legal-links a, .profile-link, .result-title {
  transition: color var(--transition), text-decoration-color var(--transition);
}
.field-float { position: relative; }
.field-float > label {
  position: absolute; inset: 17px auto auto 15px; color: var(--muted);
  font-weight: 550; pointer-events: none; transform-origin: left top;
  transition: transform var(--transition), color var(--transition);
}
.field-float > :is(input, textarea) {
  width: 100%; padding: 26px 15px 10px; border: 1px solid var(--field-border);
  border-radius: 9px; background: var(--field-surface); color: var(--ink);
}
.inquiry .field-float textarea { padding: 26px 15px 10px; }
.field-float > :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label {
  transform: translateY(-9px) scale(.8);
}
.field-float > :disabled { opacity: .75; }
.field-error { color: var(--field-error); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.field-error:empty { display: none; }
.field-float > [aria-invalid="true"] { border-color: var(--field-error); }
.form-consent > [aria-invalid="true"] { outline: 2px solid var(--field-error); outline-offset: 3px; }
.lead-trap { position: absolute; width: 1px; height: 1px; overflow: clip; clip-path: inset(50%); }
.document { padding-block: 35px 80px; }
.document h1 { font-size: clamp(30px, 5vw, 60px); margin-block: 20px 30px; }
.document h2 { font-size: clamp(23px, 3vw, 36px); margin-block: 28px 12px; }
.document p, .document li { max-width: 70ch; line-height: 1.65; margin-block: 8px; }
.document p a { color: var(--purple-dark); text-decoration: underline; }
@media (max-width: 540px) {
  :root { --nav-offset: 134px; }
}
@media (prefers-reduced-motion: reduce) {
  .field-float > label { transition: none; }
}

:root {
  --lead-scrim: #2119249c;
  --lead-shadow: #21192433;
}
.lead-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: clamp(22px, 5vw, 38px);
  border: 0;
  border-top: 4px solid var(--purple-dark);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 24px 80px var(--lead-shadow);
}
.lead-dialog::backdrop { background: var(--lead-scrim); }
html:has(.lead-dialog[open]) { overflow-y: hidden; }
.lead-dialog h2 { margin: 0 40px 8px 0; font-size: clamp(25px, 5vw, 36px); line-height: 1.16; }
.lead-intro { margin: 0 0 16px; color: var(--muted); }
.lead-dialog .contact-form { display: grid; gap: 12px; }
.lead-dialog textarea { min-height: 88px; resize: vertical; }
.lead-dialog .form-note { margin: 4px 0 0; }
.lead-dialog .button { width: 100%; min-height: 49px; }
.lead-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--plum-light);
  color: var(--ink);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition);
}
.lead-close:hover { background: var(--purple-dark); color: var(--white); }
.lead-dialog :focus-visible { outline: 2px solid var(--purple-dark); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .lead-dialog[open] { animation: lead-appear 200ms ease-out; }
}
@keyframes lead-appear {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
