/*
Theme Name: Flexy Engineering
Theme URI: https://flexyengineering.com
Author: Flexy Engineering
Author URI: https://flexyengineering.com
Description: Thème WordPress officiel de Flexy Engineering, reproduisant le site institutionnel et ses pages de services, talents et contact.
Version: 1.7.3
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: flexy-engineering
*/

:root {
  --ink: #071826;
  --navy: #06131e;
  --navy-soft: #0b2334;
  --slate: #52616c;
  --line: #dce4e8;
  --paper: #f5f7f7;
  --white: #ffffff;
  --cyan: #32d0cf;
  --cyan-dark: #058c91;
  --amber: #ff9d3d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
optgroup,
textarea {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}

ol,
ul,
menu {
  list-style: none;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--cyan);
  color: var(--navy);
}

.container {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-inner {
  width: min(1400px, calc(100% - 64px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 5px 8px;
  background: #faf9f6;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.brand-logo {
  width: auto;
  height: 70px;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 540;
}

.site-nav > a:not(.header-cta) {
  position: relative;
  padding: 35px 0;
  opacity: 0.8;
}

.site-nav > a:not(.header-cta)::after {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transition: width 180ms ease;
}

.site-nav > a:hover,
.site-nav > a.active {
  opacity: 1;
}

.site-nav > a:hover::after,
.site-nav > a.active::after {
  width: 100%;
}

.header-cta {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover {
  background: var(--white);
  color: var(--navy);
}

.header-cta svg,
.button svg,
.text-link svg,
.expertise-card svg,
.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 620px;
  height: 82vh;
  max-height: 760px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 17, 28, 0.98) 0%, rgba(4, 17, 28, 0.83) 35%, rgba(4, 17, 28, 0.2) 72%, rgba(4, 17, 28, 0.45) 100%),
    linear-gradient(0deg, rgba(4, 17, 28, 0.74) 0%, transparent 42%),
    url("assets/images/flexy-industrial-hero.png") 63% center / cover no-repeat;
  transform: scale(1.01);
}

.hero-grid,
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 148px;
}

.eyebrow {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow.light {
  color: var(--cyan);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 4.3vw, 62px);
  font-weight: 560;
  letter-spacing: -0.058em;
  line-height: 0.96;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.62);
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero .button {
  min-height: 50px;
  padding-inline: 22px;
}

.button {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: var(--navy);
}

.button-primary:hover {
  background: #5ce2df;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.button-ghost:hover,
.button-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.hero-proof {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof > div {
  min-height: 84px;
  padding: 16px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-proof strong {
  font-size: 16px;
  font-weight: 600;
}

.hero-proof span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
}

.scroll-cue span {
  width: 58px;
  height: 1px;
  display: block;
  background: rgba(255, 255, 255, 0.4);
}

.intro {
  padding: 64px 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.72fr;
  gap: 9%;
}

.display-title {
  max-width: 650px;
  margin: 0;
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.06;
}

.intro-copy {
  padding-top: 50px;
}

.intro-copy p {
  margin: 0 0 18px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.65;
}

.text-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.expertise-section {
  padding: 72px 0;
  background: var(--paper);
}

.section-heading {
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 8%;
  align-items: start;
}

.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 560;
  letter-spacing: -0.048em;
  line-height: 1.04;
}

.section-heading > div > p {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.7;
}

.expertise-section .section-heading h2 {
  font-size: clamp(32px, 2.8vw, 42px);
}

.expertise-section .section-heading > div > p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #cbd6da;
  border-left: 1px solid #cbd6da;
}

.expertise-card {
  position: relative;
  min-height: 275px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #cbd6da;
  border-bottom: 1px solid #cbd6da;
  background: rgba(255, 255, 255, 0.45);
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.expertise-card::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  content: "";
  background: var(--cyan);
  transition: width 240ms ease;
}

.expertise-card:hover {
  z-index: 2;
  background: var(--navy-soft);
  color: var(--white);
  transform: translateY(-6px);
}

.expertise-card:hover::before {
  width: 100%;
}

.expertise-topline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 750;
}

.expertise-card h3 {
  max-width: 300px;
  margin: 36px 0 14px;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.expertise-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.6;
}

.expertise-card:hover p {
  color: rgba(255, 255, 255, 0.68);
}

.expertise-card small {
  margin-top: auto;
  color: #7a898f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.method {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 7%, rgba(50, 208, 207, 0.18), transparent 27%),
    var(--navy);
  color: var(--white);
}

.method::after {
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(50, 208, 207, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(50, 208, 207, 0.035), 0 0 0 140px rgba(50, 208, 207, 0.025);
}

.method-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 12%;
}

.method-sticky h2 {
  margin: 0;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 540;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.method-sticky > p:not(.eyebrow) {
  max-width: 470px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.7;
}

.method-steps {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.method-step {
  min-height: 112px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-step h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 560;
}

.method-step p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.65;
}

.sectors-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 10%;
}

.sectors {
  padding: 72px 0;
}

.sectors .section-heading {
  display: block;
  margin: 0;
}

.sectors .section-heading h2 {
  font-size: clamp(34px, 3vw, 44px);
}

.sector-list {
  border-top: 1px solid var(--line);
}

.sector-row {
  min-height: 78px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, padding 180ms ease;
}

.sector-row:hover {
  padding-left: 28px;
  background: var(--paper);
}

.sector-row strong {
  font-size: 19px;
  font-weight: 580;
}

.sector-row i {
  font-style: normal;
  font-size: 18px;
}

.contact-band {
  padding: 90px 0;
  background: var(--cyan);
  color: var(--navy);
}

.home-page .contact-band {
  padding: 64px 0;
}

.home-page .contact-band h2 {
  font-size: clamp(34px, 3vw, 44px);
}

.contact-band .eyebrow {
  color: var(--navy);
}

.contact-band-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
}

.contact-band h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 570;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.contact-band .button-primary {
  flex: 0 0 auto;
  background: var(--navy);
  color: var(--white);
}

.site-footer {
  padding: 76px 0 26px;
  background: #050f17;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  gap: 7%;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-grid h3 {
  margin: 2px 0 12px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-brand p {
  max-width: 350px;
  margin: 28px 0 16px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand .brand {
  padding: 7px 11px;
}

.footer-brand .brand-logo {
  height: 88px;
}

.footer-brand > span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
}

.footer-contact {
  margin-top: 14px;
  padding-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.footer-bottom div {
  display: flex;
  gap: 24px;
}

.page-hero {
  position: relative;
  min-height: 420px;
  padding: 142px 0 48px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(circle at 82% 30%, rgba(50, 208, 207, 0.22), transparent 24%),
    linear-gradient(130deg, #06131e 0%, #0b2738 100%);
  color: var(--white);
}

.page-hero::after {
  position: absolute;
  right: 6%;
  top: 32%;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(50, 208, 207, 0.32);
  transform: rotate(45deg);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(38px, 3.8vw, 54px);
  font-weight: 560;
  letter-spacing: -0.058em;
  line-height: 0.94;
}

.page-hero > .container > p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  line-height: 1.65;
}

.page-hero--compact {
  min-height: 320px;
  padding: 118px 0 32px;
}

.page-hero--compact::after {
  top: 28%;
  width: 145px;
  height: 145px;
}

.page-hero--compact .eyebrow {
  margin-bottom: 18px;
}

.page-hero--compact > .container > p:last-child {
  margin-top: 16px;
}

.manifesto.section {
  padding: 64px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 8%;
}

.manifesto h2,
.services-intro h2,
.talent-intro h2,
.contact-details h2 {
  max-width: 900px;
  margin: 0 0 36px;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.manifesto h2 {
  margin-bottom: 24px;
  font-size: clamp(31px, 2.9vw, 42px);
}

.manifesto div > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.72;
}

.founder-story {
  background: var(--paper);
}

.founder-story-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 10%;
  align-items: start;
}

.founder-story h2 {
  max-width: 610px;
  margin: 22px 0 0;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.founder-story-copy > p {
  margin: 0 0 24px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.8;
}

.founder-story blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--cyan-dark);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.mission-vision {
  background: var(--navy);
  color: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mission-grid article {
  min-height: 320px;
  padding: 48px 8% 44px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.mission-grid article + article {
  padding-right: 0;
  padding-left: 8%;
  border-right: 0;
}

.mission-grid span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mission-grid h2 {
  margin: auto 0 18px;
  font-size: clamp(32px, 2.9vw, 42px);
  font-weight: 550;
  letter-spacing: -0.05em;
}

.mission-grid p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.values {
  background: var(--paper);
}

.values.section,
.recruitment.section {
  padding: 44px 0;
}

.values .section-heading,
.recruitment .section-heading {
  margin-bottom: 18px;
}

.values .section-heading h2,
.recruitment .section-heading h2 {
  font-size: clamp(30px, 2.7vw, 40px);
}

.values .section-heading > div > p {
  margin-top: 18px;
  font-size: 16px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #cad5da;
  border-left: 1px solid #cad5da;
}

.value-card {
  min-height: 92px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: span 2;
  border-right: 1px solid #cad5da;
  border-bottom: 1px solid #cad5da;
  background: rgba(255, 255, 255, 0.45);
}

.value-card:nth-child(4),
.value-card:nth-child(5) {
  grid-column: span 3;
}

.value-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.42;
}

.difference-grid {
  display: grid;
  grid-template-columns: minmax(300px, 410px) 1fr;
  gap: 8%;
  align-items: center;
}

.difference-visual {
  position: relative;
  width: 100%;
  max-width: 410px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(50, 208, 207, 0.96), rgba(5, 140, 145, 0.88)),
    var(--cyan);
}

.difference-visual::before,
.difference-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(6, 19, 30, 0.16);
}

.difference-visual::before {
  inset: 12%;
  transform: rotate(45deg);
}

.difference-visual::after {
  width: 70%;
  height: 1px;
  background: rgba(6, 19, 30, 0.16);
  box-shadow: 0 80px rgba(6, 19, 30, 0.14), 0 -80px rgba(6, 19, 30, 0.14);
}

.difference-symbol {
  position: relative;
  z-index: 1;
  width: 52%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(6, 19, 30, 0.18));
}

.difference-visual i {
  position: absolute;
  right: -9%;
  bottom: -18%;
  width: 45%;
  height: 45%;
  background: var(--amber);
  transform: rotate(45deg);
}

.difference h2 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.difference > .container > div:last-child > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--slate);
  font-size: 15px;
  line-height: 1.7;
}

.difference-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.difference-tags span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.services-intro {
  background: var(--white);
}

.services-intro-grid {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 8%;
}

.services-intro-grid > p:last-child {
  grid-column: 2;
  max-width: 650px;
  margin: 0;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.8;
}

.service-list {
  padding-bottom: 100px;
  background: var(--paper);
}

.service-row {
  padding: 72px 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 5%;
  scroll-margin-top: 40px;
  border-bottom: 1px solid #cbd6da;
}

.service-copy {
  max-width: 580px;
}

.service-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 580;
  letter-spacing: -0.042em;
  line-height: 1.07;
}

.service-copy p {
  margin: 0;
  color: var(--slate);
  line-height: 1.75;
}

.service-items {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 34px;
}

.service-items li {
  position: relative;
  padding: 12px 0 12px 19px;
  break-inside: avoid;
  border-bottom: 1px solid #d7e0e3;
  color: #31434e;
  font-size: 13px;
  line-height: 1.45;
}

.service-items li::before {
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--cyan-dark);
}

.talent-intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 12%;
}

.talent-intro-grid > div:last-child {
  padding-top: 60px;
}

.talent-intro-grid > div:last-child p {
  color: var(--slate);
  font-size: 17px;
  line-height: 1.8;
}

.profiles {
  background: var(--paper);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cbd6da;
  border-left: 1px solid #cbd6da;
}

.profile-card {
  min-height: 155px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #cbd6da;
  border-bottom: 1px solid #cbd6da;
  background: rgba(255, 255, 255, 0.45);
  transition: background 180ms ease, color 180ms ease;
}

.profile-card:hover {
  background: var(--navy-soft);
  color: var(--white);
}

.profile-card strong {
  margin-top: auto;
  font-size: 18px;
  line-height: 1.35;
}

.recruitment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.recruitment-steps article {
  min-height: 122px;
  padding: 12px 18px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.recruitment-steps article + article {
  padding-left: 18px;
}

.recruitment-steps article:last-child {
  border-right: 0;
}

.recruitment-steps h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
}

.recruitment-steps p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.candidate-band {
  padding: 100px 0;
  background:
    radial-gradient(circle at 80% 40%, rgba(50, 208, 207, 0.2), transparent 24%),
    var(--navy);
  color: var(--white);
}

.candidate-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10%;
  align-items: center;
}

.candidate-grid h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 560;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.candidate-grid p {
  max-width: 650px;
  margin: 26px 0 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 17px;
  line-height: 1.7;
}

.candidate-grid small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 10%;
}

.contact-details > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.8;
}

.contact-details dl {
  margin: 56px 0 0;
  border-top: 1px solid #cad5da;
}

.contact-details dl div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid #cad5da;
}

.contact-details dt {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  font-size: 14px;
}

.contact-form {
  padding: 48px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 24, 38, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 20px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-grid label > span {
  color: #43545f;
  font-size: 11px;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #bfcbd0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.form-grid textarea {
  padding: 14px;
  border: 1px solid #bfcbd0;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 2px 0 var(--cyan-dark);
}

.form-full {
  grid-column: 1 / -1;
}

.consent {
  margin: 26px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.6;
}

.consent input {
  margin-top: 2px;
  accent-color: var(--cyan-dark);
}

.contact-form .button {
  border: 0;
}

.form-notice {
  margin: 16px 0 0;
  color: var(--cyan-dark);
  font-size: 12px;
}

.legal-content {
  background: var(--paper);
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 8%;
}

.legal-grid aside {
  color: var(--slate);
  font-size: 12px;
}

.legal-grid > div {
  max-width: 780px;
}

.legal-grid h2 {
  margin: 54px 0 18px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-grid h2:first-child {
  margin-top: 0;
}

.legal-grid p {
  color: var(--slate);
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1060px) {
  .container,
  .header-inner {
    width: min(100% - 40px, 1240px);
  }

  .site-nav {
    gap: 22px;
  }

  .site-nav > a:not(.header-cta) {
    font-size: 12px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    max-width: 780px;
  }

  .intro-grid,
  .sectors-grid {
    gap: 7%;
  }

  .expertise-card {
    min-height: 290px;
    padding: 24px;
  }

  .contact-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 82px 0;
  }

  .intro,
  .expertise-section,
  .method,
  .sectors {
    padding: 62px 0;
  }

  .values.section,
  .recruitment.section,
  .manifesto.section {
    padding: 52px 0;
  }

  .values.section,
  .recruitment.section {
    padding: 40px 0;
  }

  .page-hero--compact {
    min-height: 310px;
    padding: 108px 0 30px;
  }

  .site-header {
    position: absolute;
  }

  .header-inner {
    height: 78px;
  }

  .menu-toggle {
    display: block;
    color: var(--white);
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    padding: 28px 20px 34px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.header-cta) {
    padding: 15px 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav > a:not(.header-cta)::after {
    display: none;
  }

  .header-cta {
    margin-top: 20px;
    justify-content: center;
  }

  .hero {
    height: auto;
    min-height: 700px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(4, 17, 28, 0.96), rgba(4, 17, 28, 0.62)),
      linear-gradient(0deg, rgba(4, 17, 28, 0.88), transparent 55%),
      url("assets/images/flexy-industrial-hero.png") 63% center / cover no-repeat;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(40px, 8.5vw, 52px);
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof > div {
    min-height: 64px;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero-proof > div:nth-child(3) {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .intro-grid,
  .method-grid,
  .sectors-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-top: 14px;
  }

  .section-heading {
    gap: 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: 245px;
  }

  .expertise-card h3 {
    margin-top: 30px;
  }

  .method-grid {
    gap: 44px;
  }

  .sectors-grid {
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px 8%;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .manifesto-grid,
  .founder-story-grid,
  .services-intro-grid,
  .talent-intro-grid,
  .contact-layout,
  .legal-grid,
  .difference-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-grid article,
  .mission-grid article + article {
    min-height: 270px;
    padding: 40px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .value-grid,
  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .value-card,
  .value-card:nth-child(4),
  .value-card:nth-child(5) {
    grid-column: span 1;
  }

  .difference-grid {
    gap: 60px;
  }

  .difference-visual {
    max-width: 410px;
  }

  .services-intro-grid > p:last-child {
    grid-column: auto;
  }

  .talent-intro-grid > div:last-child {
    padding-top: 0;
  }

  .recruitment-steps {
    grid-template-columns: 1fr 1fr;
  }

  .recruitment-steps article:nth-child(2) {
    border-right: 0;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 70px;
  }
}

@media (max-width: 540px) {
  .container,
  .header-inner {
    width: calc(100% - 30px);
  }

  .brand {
    min-width: 0;
    padding: 4px 6px;
  }

  .brand-logo {
    height: 58px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero h1 span {
    -webkit-text-stroke: 0;
    color: rgba(255, 255, 255, 0.58);
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-proof > div {
    padding-left: 0;
  }

  .display-title,
  .method-sticky h2,
  .home-page .section-heading h2,
  .home-page .contact-band h2 {
    font-size: 31px;
  }

  .intro,
  .expertise-section,
  .method,
  .sectors {
    padding: 54px 0;
  }

  .sector-row {
    grid-template-columns: 1fr 25px;
    padding: 0;
  }

  .sector-row strong {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 20px;
    flex-direction: column;
  }

  .page-hero {
    min-height: 380px;
    padding: 116px 0 38px;
  }

  .page-hero--compact {
    min-height: 295px;
    padding: 96px 0 26px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .manifesto h2,
  .founder-story h2,
  .services-intro h2,
  .talent-intro h2,
  .contact-details h2,
  .difference h2,
  .candidate-grid h2 {
    font-size: 34px;
  }

  .value-grid,
  .profile-grid,
  .recruitment-steps {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 88px;
    padding: 12px 15px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 46px 0;
  }

  .service-items {
    columns: 1;
  }

  .recruitment-steps article,
  .recruitment-steps article + article {
    min-height: 104px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-form {
    padding: 28px 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-full {
    grid-column: auto;
  }

  .contact-details dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.admin-bar .site-header {
  top: 32px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--white);
  color: var(--navy);
}

.generic-page {
  min-height: 60vh;
  padding: 180px 0 100px;
}

.generic-page h1 {
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -0.05em;
}

.generic-page .entry-content {
  max-width: 820px;
  color: var(--slate);
  font-size: 17px;
  line-height: 1.8;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
