:root {
  --orange: #ff5e25;
  --charcoal: #2a2d33;
  --mist: #e5e5e5;
  --mint: #26ffd4;
  --paper: #f7f7f4;
  --white: #ffffff;
  --ink: #17191d;
  --muted: #686b73;
  --line: rgba(23, 25, 29, .13);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(20, 22, 25, .14);
  --max: 1260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--mint); color: var(--charcoal); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 247, 244, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand img { width: 245px; }
.main-nav { display: flex; align-items: center; gap: 34px; font-weight: 700; font-size: .92rem; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--orange); }
.nav-cta { padding: 12px 18px; background: var(--charcoal); color: var(--white); border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: none; padding: 10px; }
.menu-toggle span { display: block; width: 28px; height: 2px; background: var(--charcoal); margin: 6px; }

.hero {
  position: relative;
  min-height: calc(100vh - 92px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
  padding: 80px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--mist);
}
.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  right: -190px;
  top: -190px;
  background: var(--mint);
  filter: blur(1px);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    linear-gradient(135deg, transparent 42%, var(--charcoal) 43% 48%, transparent 49%),
    linear-gradient(45deg, transparent 42%, var(--charcoal) 43% 48%, transparent 49%);
  background-size: 78px 78px;
  mask-image: linear-gradient(to right, transparent, black 50%, transparent);
}
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow, .section-label {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .98;
}
h1 { font-size: clamp(4rem, 8vw, 8.6rem); max-width: 820px; margin-bottom: 28px; }
h2 { font-size: clamp(2.5rem, 5vw, 5.1rem); margin-bottom: 26px; }
.hero-text { max-width: 680px; font-size: clamp(1rem, 1.7vw, 1.28rem); color: #484b52; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 48px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.14); }
.button-primary { background: var(--orange); color: var(--white); }
.button-ghost { border-color: var(--charcoal); background: transparent; color: var(--charcoal); }
.button-dark { background: var(--charcoal); color: var(--white); }
.button-small { min-height: 40px; padding: 0 16px; background: var(--charcoal); color: var(--white); border: 0; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-strip span { padding: 8px 12px; border: 1px solid rgba(42,45,51,.2); border-radius: 999px; font-size: .78rem; font-weight: 700; }

.hero-visual { min-height: 590px; }
.power-card {
  position: absolute;
  inset: 50px 0 auto 40px;
  min-height: 430px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--charcoal);
  border-radius: 34px;
  color: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.power-card::after {
  content: "";
  position: absolute;
  width: 68%;
  height: 8px;
  bottom: 40px;
  left: 44px;
  background: var(--orange);
  box-shadow: 110px -190px 0 var(--mint);
}
.power-card p { position: relative; z-index: 2; font-size: 1.35rem; max-width: 360px; margin: 0; }
.brand-mark { position: relative; width: 230px; height: 140px; }
.brand-mark i, .brand-mark b, .brand-mark em, .brand-mark strong {
  position: absolute; display: block; background: var(--orange); transform: skew(-20deg); border-radius: 3px;
}
.brand-mark i { width: 32px; height: 28px; left: 10px; top: 58px; }
.brand-mark b { width: 34px; height: 110px; left: 62px; top: 10px; }
.brand-mark em { width: 92px; height: 32px; left: 108px; top: 24px; }
.brand-mark strong { width: 112px; height: 32px; left: 96px; top: 76px; }
.hero-stat { position: absolute; z-index: 3; padding: 18px 22px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); }
.hero-stat strong { display: block; font-family: "Oswald"; font-size: 2.4rem; line-height: 1; color: var(--orange); }
.hero-stat span { font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.stat-one { left: 0; bottom: 48px; }
.stat-two { right: -16px; top: 24px; background: var(--mint); }

.section { max-width: var(--max); margin: 0 auto; padding: 130px 24px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: start; }
.intro-grid p { font-size: 1.15rem; color: var(--muted); }
.text-link { display: inline-flex; gap: 10px; margin-top: 20px; font-weight: 800; border-bottom: 2px solid var(--orange); }

.section-dark {
  max-width: none;
  background: var(--charcoal);
  color: var(--white);
  padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: end; margin-bottom: 58px; }
.section-heading p { color: #aeb1b8; max-width: 480px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.12); }
.service-card {
  position: relative; min-height: 410px; padding: 30px; background: var(--charcoal); overflow: hidden;
}
.service-card:nth-child(2) { background: var(--orange); }
.service-card:nth-child(3) { background: var(--mint); color: var(--charcoal); }
.service-number { font-family: "Oswald"; font-size: 4rem; color: rgba(255,255,255,.22); }
.service-card:nth-child(3) .service-number { color: rgba(42,45,51,.2); }
.service-card h3 { margin-top: 90px; font-size: 1.5rem; }
.service-card p { color: rgba(255,255,255,.74); }
.service-card:nth-child(3) p { color: rgba(42,45,51,.75); }
.service-card::after { content: ""; position: absolute; width: 120px; height: 14px; right: -25px; top: 62px; background: currentColor; transform: rotate(-15deg); opacity: .25; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.project-media { aspect-ratio: 4 / 3; background: var(--mist); position: relative; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background:
  linear-gradient(135deg, var(--charcoal) 0 48%, var(--orange) 48% 72%, var(--mint) 72%);
}
.project-placeholder span { width: 82px; height: 82px; border: 12px solid rgba(255,255,255,.75); border-left-color: transparent; transform: rotate(45deg); }
.project-body { padding: 28px; }
.project-category { color: var(--orange); font-size: .75rem; text-transform: uppercase; font-weight: 800; letter-spacing: .12em; }
.project-body h3 { font-size: 1.35rem; margin: 8px 0; }
.project-body p { color: var(--muted); }

.quality-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--mint); border-radius: 32px; overflow: hidden; }
.quality-copy { padding: 70px; }
.quality-list { background: var(--charcoal); color: var(--white); padding: 30px 60px; display: grid; align-content: center; }
.quality-list div { display: grid; grid-template-columns: 60px 1fr; align-items: center; min-height: 86px; border-bottom: 1px solid rgba(255,255,255,.14); }
.quality-list span { color: var(--orange); font-weight: 800; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  margin: 0; padding: 80px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--orange); color: var(--white);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 720px; margin-bottom: 0; }

.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; }
.contact-info > p { color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 35px; }
.contact-cards > * { padding: 18px; background: var(--mist); border-radius: 14px; }
.contact-cards small, .contact-cards strong { display: block; }
.contact-cards small { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 800; }
.contact-cards strong { margin-top: 4px; font-size: .9rem; }

.contact-form { padding: 38px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 700; font-size: .84rem; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px;
  padding: 14px 15px; color: var(--ink); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,94,37,.12); }
textarea { resize: vertical; }
.form-footer { display: flex; gap: 22px; align-items: center; justify-content: space-between; }
.checkbox { display: flex; align-items: flex-start; grid-template-columns: 18px 1fr; margin: 0; font-weight: 500; color: var(--muted); }
.checkbox input { width: 18px; margin-top: 4px; }
.form-status { min-height: 24px; margin: 12px 0 0; font-weight: 700; }
.form-status.success { color: #17805a; }
.form-status.error { color: #b42c20; }

footer {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  padding: 42px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--charcoal); color: var(--white);
}
.footer-brand img { width: 170px; filter: brightness(0) invert(1); }
footer div span { display: block; color: #aeb1b8; font-size: .8rem; }
.footer-links { display: flex; gap: 22px; }
footer p { margin: 0; color: #aeb1b8; font-size: .8rem; }

.subhero { position: relative; overflow: hidden; min-height: 560px; display: grid; align-items: end; padding: 100px max(24px, calc((100vw - var(--max)) / 2)); background: var(--charcoal); color: var(--white); }
.subhero > div:not(.hero-pattern) { position: relative; z-index: 2; max-width: 900px; }
.subhero h1 { font-size: clamp(4rem, 8vw, 8rem); }
.subhero p { max-width: 680px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.team-photo { aspect-ratio: 4 / 4.7; background: var(--mist); position: relative; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--mist), #c9cbd0); }
.avatar-placeholder::before { content: ""; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--charcoal); box-shadow: 0 140px 0 60px var(--charcoal); opacity: .12; }
.team-card-body { padding: 26px; }
.team-role { color: var(--orange); font-size: .75rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.team-card h3 { margin: 6px 0; font-size: 1.35rem; }
.team-card p { color: var(--muted); }

.admin-page { background: #ececec; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--charcoal); }
.login-card { width: min(480px, 100%); padding: 44px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.login-card img { width: 230px; margin-bottom: 35px; }
.login-card h1 { font-size: 3.5rem; }
.login-card .button { width: 100%; }
.admin-shell { min-height: 100vh; grid-template-columns: 250px 1fr; }
.admin-shell:not([hidden]) { display: grid; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 18px; background: var(--charcoal); color: var(--white); }
.admin-logo { background: var(--white); padding: 14px; border-radius: 12px; }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 38px; }
.admin-tab, .admin-logout { border: 0; background: transparent; color: inherit; text-align: left; padding: 13px 14px; border-radius: 10px; font-weight: 700; }
.admin-tab:hover, .admin-tab.active { background: var(--orange); }
.admin-logout { margin-top: auto; color: #c9cbd0; }
.admin-main { min-width: 0; padding: 36px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-bottom: 30px; }
.admin-topbar h1 { font-size: 3.4rem; margin: 0; }
.admin-actions { display: flex; gap: 10px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-grid label, .editor-card { padding: 20px; margin: 0; background: var(--white); border-radius: 16px; }
.admin-grid label.wide { grid-column: 1 / -1; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.collection-toolbar p { margin: 0; font-weight: 800; }
.editor-list { display: grid; gap: 16px; }
.editor-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.editor-card-grid label { margin: 0; }
.editor-card-grid .wide { grid-column: 1 / -1; }
.editor-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.remove-button, .message-delete { border: 0; background: #ffe0da; color: #9a2c18; padding: 8px 11px; border-radius: 9px; font-weight: 800; }
.image-upload-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.image-upload-row input[type=file] { background: var(--paper); }
.upload-trigger { border: 0; background: var(--mint); padding: 0 14px; border-radius: 10px; font-weight: 800; }
.message-list { display: grid; gap: 14px; }
.message-card { background: var(--white); border-radius: 16px; padding: 22px; border-left: 5px solid var(--orange); }
.message-card.read { opacity: .68; border-left-color: var(--mist); }
.message-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.message-meta { color: var(--muted); font-size: .8rem; }
.message-actions { display: flex; gap: 8px; }
.message-toggle { border: 0; background: var(--mint); padding: 8px 11px; border-radius: 9px; font-weight: 800; }
.message-card blockquote { margin: 18px 0 0; padding: 16px; background: var(--paper); border-radius: 12px; white-space: pre-wrap; }
.save-status { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; background: var(--charcoal); color: var(--white); border-radius: 12px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.save-status.show { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { min-height: 480px; max-width: 640px; width: 100%; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .project-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; }
  .quality-copy { padding: 46px; }
  .quality-list { padding: 30px 40px; }
  .admin-shell:not([hidden]) { grid-template-columns: 210px 1fr; }
}

@media (max-width: 760px) {
  .site-header { height: 76px; }
  .brand img { width: 190px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch;
    padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-top: 70px; }
  h1 { font-size: clamp(3.7rem, 18vw, 6.2rem); }
  h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero-visual { min-height: 390px; }
  .power-card { inset: 20px 10px auto; min-height: 320px; padding: 28px; }
  .brand-mark { transform: scale(.75); transform-origin: left top; }
  .stat-one { bottom: 8px; left: 0; }
  .stat-two { right: 0; top: 0; }
  .section { padding: 86px 20px; }
  .intro-grid, .section-heading, .quality-panel { grid-template-columns: 1fr; gap: 28px; }
  .service-grid, .project-grid, .team-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  .quality-copy, .quality-list { padding: 34px 24px; }
  .cta-band { align-items: flex-start; flex-direction: column; padding: 64px 20px; }
  .form-row, .contact-cards { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .subhero { min-height: 500px; padding-bottom: 70px; }
  .admin-shell:not([hidden]) { display: block; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { display: flex; overflow-x: auto; margin-top: 20px; }
  .admin-tab { white-space: nowrap; }
  .admin-logout { margin-top: 12px; }
  .admin-main { padding: 20px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; flex-wrap: wrap; }
  .admin-grid, .editor-card-grid { grid-template-columns: 1fr; }
  .admin-grid label.wide, .editor-card-grid .wide { grid-column: auto; }
  .message-head { flex-direction: column; }
}
