/* FPOIATO: light, corporate layout. Palette comes from the logo: navy, gray, white. */
:root {
  --navy: #0B256D;
  --navy-dark: #081B52;
  --navy-wash: #E7EBF5;
  --gray: #737373;
  --gray-text: #565B66;
  --ink: #131B33;
  --rule: #D6DAE3;
  --paper: #F3F5F9;
  --white: #FFFFFF;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --lab: 148px; /* width of the label column in the working-day chart */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.12; letter-spacing: -0.015em; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid #5B7BD6; outline-offset: 2px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.button { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1; padding: 15px 22px; border-radius: 4px; text-decoration: none; background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.button:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.button-plain { background: transparent; color: var(--navy); border-color: var(--rule); }
.button-plain:hover { background: var(--paper); border-color: var(--navy); }
.button-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.button-white:hover { background: var(--navy-wash); border-color: var(--navy-wash); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand span { font-family: var(--display); font-weight: 900; font-size: 25px; letter-spacing: 0.01em; color: var(--navy); }
.site-nav { display: flex; gap: 26px; }
.site-nav a { font-size: 15.5px; font-weight: 500; text-decoration: none; color: var(--gray-text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.lang { display: flex; gap: 2px; }
.lang button { font-family: var(--display); font-size: 13.5px; font-weight: 700; border: 0; border-radius: 4px; background: transparent; color: var(--gray); padding: 6px 8px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy-wash); color: var(--navy); }
.head-cta { padding: 12px 18px; font-size: 15px; }

/* Hero */
.hero { padding: 84px 0 72px; }
.hero h1 { font-size: clamp(40px, 6.1vw, 82px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; max-width: 15ch; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 36px; }
.hero-lede { font-size: 20px; line-height: 1.55; color: var(--gray-text); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* Working-day chart: the two offset bars echo the two offset panels of the logo */
.day { margin-top: 64px; background: var(--paper); border-radius: 10px; padding: 36px 40px 28px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.day-head h2 { font-size: 24px; font-weight: 800; white-space: nowrap; }
.day-head p { font-size: 16px; color: var(--gray-text); text-align: right; max-width: 46em; }
.day-chart { position: relative; }
.day-layer { position: absolute; left: var(--lab); right: 0; top: -22px; bottom: 34px; pointer-events: none; }
.day-overlap { position: absolute; top: 0; bottom: 0; left: var(--ov-left, 23.08%); width: var(--ov-width, 53.85%); background: #DCE2F1; border-left: 1px dashed var(--navy); border-right: 1px dashed var(--navy); }
.day-overlap span { position: absolute; top: 3px; left: 10px; font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.day-now { position: absolute; top: 0; bottom: -6px; left: var(--now-left, 50%); width: 2px; background: var(--ink); z-index: 3; }
.day-now span { position: absolute; top: 3px; left: 8px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); padding: 0 6px; border-radius: 3px; white-space: nowrap; }
.day-now.flip span { left: auto; right: 8px; }
.day-line { position: relative; display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; padding: 7px 0; }
.day-who { line-height: 1.25; }
.day-who b { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 16.5px; }
.day-who span { font-size: 14.5px; color: var(--gray-text); }
.day-track { position: relative; height: 52px; }
.day-bar { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 22px; color: var(--white); font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); z-index: 2; }
.day-bar-us { background: var(--gray); left: var(--us-left, 23.08%); width: var(--us-width, 61.54%); }
.day-bar-br { background: var(--navy); left: var(--br-left, 7.69%); width: var(--br-width, 69.23%); }
.day-axis { position: relative; height: 34px; margin-left: var(--lab); border-top: 1px solid var(--rule); margin-top: 10px; }
.day-axis span { position: absolute; top: 8px; font-size: 13px; color: var(--gray); transform: translateX(-50%); white-space: nowrap; }
.day-axis span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 6px; background: var(--gray); }
.day-axis span:first-child { transform: none; }
.day-axis span:first-child::before { left: 0; }

/* Section blocks */
.block { padding: 104px 0; }
.block-tint { background: var(--paper); }
.block-navy { background: var(--navy); color: var(--white); }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.block-head h2, .company h2, .faq-grid h2 { font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; letter-spacing: -0.025em; }
.block-head p { font-size: 18px; color: var(--gray-text); max-width: 34em; }
.block-navy h2, .block-navy h3 { color: var(--white); }
.block-navy .block-head p { color: #C5CEE8; }

/* Services */
.services { border-top: 2px solid var(--navy); }
.service { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--rule); }
.service h3 { font-size: 27px; font-weight: 700; }
.service p { color: var(--gray-text); }
.service li { position: relative; padding-left: 18px; font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.service li + li { margin-top: 8px; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 6px; background: var(--navy); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }

/* Track record */
.record-row { display: grid; grid-template-columns: 2fr 6fr 4fr; gap: 40px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.2); align-items: start; }
.record-labels { padding: 0 0 12px; border-top: 0; font-size: 14px; color: #A9B6DB; }
.record-sector { font-size: 15.5px; color: #C5CEE8; padding-top: 3px; }
.record-row p b { display: block; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.record-row p span { color: #C5CEE8; font-size: 16.5px; }
.record-result { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.25; }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.model { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.model + .model { border-left: 1px solid var(--rule); }
.model h3 { font-size: 20px; font-weight: 800; padding: 22px 24px; background: var(--navy-wash); }
.model:nth-child(even) h3 { background: var(--paper); }
.model dl { display: contents; }
.model dl div { padding: 16px 24px; border-top: 1px solid var(--rule); }
.model dl div:last-child { padding-bottom: 24px; }
.model dt { font-size: 13.5px; color: var(--gray); margin-bottom: 2px; }
.model dd { font-size: 16px; font-weight: 500; line-height: 1.4; }
.steps-title { font-size: 24px; font-weight: 800; margin: 72px 0 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 22px 28px 0 0; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(step); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 15px; border-radius: 50%; }
.steps b { display: block; font-family: var(--display); font-size: 18px; color: var(--navy); margin-top: 8px; }
.steps span { display: block; font-size: 15.5px; color: var(--gray-text); }

/* Team */
.founder { display: grid; grid-template-columns: 132px 1fr; gap: 32px; align-items: start; background: var(--white); border-radius: 10px; padding: 32px; }
.founder img { width: 132px; height: 132px; object-fit: cover; border-radius: 6px; }
.founder h3 { font-size: 26px; font-weight: 800; }
.founder-role { font-weight: 600; color: var(--navy); margin: 4px 0 12px; }
.founder p:last-child { color: var(--gray-text); max-width: 62em; }
.roster { margin-top: 20px; background: var(--white); border-radius: 10px; padding: 8px 32px; }
.roster-row { display: grid; grid-template-columns: 3fr 1.2fr 5fr 3.5fr; gap: 32px; padding: 24px 0; align-items: start; }
.roster-row + .roster-row { border-top: 1px solid var(--rule); }
.roster-labels { padding: 16px 0 12px; font-size: 14px; color: var(--gray); }
.roster-row b { font-family: var(--display); font-size: 18.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.roster-years { font-weight: 600; }
.roster-row span { font-size: 16px; }
.roster-row:not(.roster-labels) span:nth-child(3) { color: var(--gray-text); }
.roster-stack { font-size: 15px !important; font-weight: 500; }
.roster-note { margin-top: 20px; font-size: 16px; color: var(--gray-text); }

/* Company */
.company { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.company-text p { margin-top: 20px; font-size: 18px; color: var(--gray-text); }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; border-top: 2px solid var(--navy); }
.terms li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.terms b { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.terms span { font-size: 15.5px; color: var(--gray-text); line-height: 1.5; display: block; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.faq details { background: var(--white); border-radius: 8px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 60px 20px 24px; font-family: var(--display); font-size: 18.5px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 24px 22px; color: var(--gray-text); max-width: 46em; }

/* Contact */
.contact { background: var(--navy); color: var(--white); padding: 80px 0; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.contact h2 { color: var(--white); font-size: clamp(32px, 3.8vw, 50px); font-weight: 800; letter-spacing: -0.025em; }
.contact p { margin-top: 14px; font-size: 18px; color: #C5CEE8; max-width: 36em; }
.contact .button { flex-shrink: 0; padding: 18px 28px; font-size: 17px; }

/* Footer */
.site-foot { padding: 44px 0; }
.foot-row { display: grid; grid-template-columns: auto 1fr auto; gap: 56px; align-items: center; }
.foot-row img { width: 170px; height: auto; }
.foot-col p { font-size: 15px; color: var(--gray-text); line-height: 1.6; }
.foot-col b { color: var(--ink); }
.foot-links { display: flex; gap: 18px; }

/* Tablet */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .block-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .service { grid-template-columns: 1fr 1fr; gap: 12px 40px; }
  .service h3 { grid-column: 1 / -1; }
  .models { grid-template-columns: 1fr 1fr; }
  .model:nth-child(3) { border-left: 0; }
  .model:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .model:nth-child(3) h3 { background: var(--paper); }
  .model:nth-child(4) h3 { background: var(--navy-wash); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .roster-labels { display: none; }
  .roster-row { grid-template-columns: 1fr 1fr; gap: 8px 32px; }
  .roster-row b { grid-column: 1 / -1; }
  .roster-row span:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .company, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-row { flex-direction: column; align-items: flex-start; gap: 28px; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --lab: 0px; }
  body { font-size: 16.5px; }
  .wrap { width: calc(100% - 40px); }
  .head-row { height: 64px; gap: 12px; }
  .head-cta { display: none; }
  .brand span { font-size: 22px; }
  .hero { padding: 48px 0 56px; }
  .hero-lede { font-size: 18px; }
  .hero-actions { flex-wrap: wrap; }
  .day { margin-top: 44px; padding: 26px 20px 18px; }
  .day-head { flex-direction: column; gap: 8px; margin-bottom: 46px; }
  .day-layer { top: -26px; }
  .day-head p { text-align: left; }
  .day-line { display: block; padding: 8px 0; }
  .day-who { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; position: relative; z-index: 2; }
  .day-who b { font-size: 15px; }
  .day-track { height: 40px; }
  .day-bar { font-size: 12.5px; padding: 0 14px; }
  .day-bar-br span { font-size: 0; }
  .day-bar-br span::after { content: attr(data-short); font-size: 12.5px; }
  .block { padding: 68px 0; }
  .block-head { margin-bottom: 36px; }
  .service { grid-template-columns: 1fr; padding: 28px 0; }
  .service h3 { font-size: 23px; }
  .record-labels { display: none; }
  .record-row { grid-template-columns: 1fr; gap: 6px; padding: 26px 0; }
  .record-result { margin-top: 8px; padding-left: 14px; border-left: 3px solid #8FA3D9; font-size: 18.5px; }
  .models { grid-template-columns: 1fr; }
  .model + .model { border-left: 0; border-top: 1px solid var(--rule); }
  .steps { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .founder img { width: 104px; height: 104px; }
  .roster { padding: 4px 24px; }
  .roster-row { grid-template-columns: 1fr; }
  .roster-row span:nth-child(3) { grid-row: auto; }
  .terms { grid-template-columns: 1fr; }
  .contact { padding: 64px 0; }
  .foot-row { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
