/* Sixty Cycle Electric — "Colour code": flat blocks in the conductor colours. No gradients, no shadows. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
:root {
  --black: #111417;
  --red: #e5312b;
  --blue: #1746d1;
  --white: #fff;
  --green: #1e9e57;
  --pad: clamp(18px, 3vw, 44px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
h1, h2 { font-weight: 900; font-stretch: 118%; letter-spacing: -0.035em; line-height: 0.92; }
h2 { font-size: clamp(44px, 6.4vw, 96px); text-transform: uppercase; }
h3 { font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.work :focus-visible, .name :focus-visible, .area :focus-visible, .foot :focus-visible, .hero :focus-visible { outline-color: var(--white); }

/* ribbon */
.ribbon { background: #000; color: #fff; font-size: 14px; font-weight: 800; padding: 9px var(--pad); }

/* buttons: flat */
.btn {
  display: inline-block; border: 0; border-radius: 6px; padding: 14px 24px; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s;
}
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #000; }
.hero .btn-black:hover, .top .btn-black:hover { background: #33383d; }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--black); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--black); }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--pad);
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.mark { width: 68px; height: 68px; flex: none; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; }
.mark line { stroke-width: 1.6; }
.wordmark { font-weight: 900; font-stretch: 118%; font-size: 27px; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); font-weight: 800; font-size: 18px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--red); }
.nav .phone { border-left: 2px solid var(--black); padding-left: clamp(14px, 2.2vw, 30px); font-weight: 900; white-space: nowrap; }
.menu-btn { display: none; }

/* hero */
.hero { background: var(--red); color: #fff; overflow: hidden; }
.hero-in { position: relative; container-type: inline-size; max-width: 1680px; margin: 0 auto; }
.hero-art { display: block; width: 100%; height: auto; }
.hero-60 { font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 62%; font-size: 690px; letter-spacing: -0.04em; fill: #fff; }
.hero-wave { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1340; stroke-dashoffset: 1340; animation: draw 2.2s .2s cubic-bezier(.6, 0, .2, 1) forwards; }
.hero-wave-in { stroke: var(--red); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-copy { position: absolute; left: 35.5cqw; top: 3cqw; bottom: 2.4cqw; width: 35cqw; display: flex; flex-direction: column; justify-content: space-between; }
.hero h1 { font-size: 4.75cqw; font-stretch: 108%; white-space: nowrap; }
.hero-foot p { font-weight: 800; font-size: 2.3cqw; line-height: 1.02; letter-spacing: -0.02em; max-width: 31cqw; }
.hero-btns { display: flex; gap: 2cqw; margin-top: 1.6cqw; margin-left: -6cqw; }
.hero-btns .btn { font-size: max(15px, 1.7cqw); padding: 1cqw 1.9cqw; white-space: nowrap; }
.hero-photo { position: absolute; right: 0; top: 3.6cqw; bottom: 3.6cqw; width: 29.5cqw; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-weight: 800; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; background: var(--black); color: #fff; font-size: 14px; padding: 6px 12px; }

/* services */
.services { padding: clamp(14px, 1.6vw, 24px) var(--pad) clamp(28px, 3.4vw, 52px); }
.svc { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: clamp(28px, 5vw, 76px); }
.svc li { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); padding: 12px 0 10px; border-bottom: 3px solid var(--black); transition: color .15s; }
.svc li:nth-child(4), .svc li:nth-child(7) { border-bottom: 0; }
.svc li:hover { color: var(--red); }
.num { font-weight: 900; font-stretch: 112%; font-size: clamp(52px, 6.6vw, 98px); line-height: 0.86; letter-spacing: -0.05em; min-width: 1.5em; }
.svc h3 { font-size: clamp(24px, 2.7vw, 40px); }
.svc p { margin-top: 5px; color: var(--black); max-width: 25em; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.15; }

/* work */
.work { background: var(--blue); color: #fff; padding: clamp(18px, 2vw, 30px) var(--pad) clamp(26px, 3vw, 44px); }
.work h2 { margin-bottom: clamp(14px, 1.6vw, 24px); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.work-grid img { aspect-ratio: 16 / 9.4; object-fit: cover; }
.work-grid figcaption { padding: 10px 14px 0; font-size: clamp(15px, 1.4vw, 20px); }
.work-grid b { display: block; font-weight: 900; font-size: clamp(18px, 1.75vw, 25px); letter-spacing: -0.02em; }
.sample-note { margin-top: 18px; font-size: 14px; opacity: .85; }

/* name */
.name { background: var(--black); color: #fff; display: grid; grid-template-columns: minmax(0, 39fr) minmax(0, 61fr); }
.name-copy { padding: clamp(20px, 2.4vw, 36px) var(--pad) clamp(24px, 2.6vw, 40px); }
.name h2 { font-size: clamp(34px, 3.9vw, 60px); white-space: nowrap; }
.name-wave { display: block; width: min(100%, 470px); margin: 14px 0 6px; overflow: visible; fill: none; stroke: #fff; stroke-linecap: round; }
.name-wave line { stroke-width: 4; }
.name-wave path { stroke-width: 5; }
.name-wave .pulse { fill: var(--red); stroke: none; offset-path: path("M0 75"); animation: trip 1s linear infinite; }
@keyframes trip { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.name-copy p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; max-width: 30em; }
.name-copy b { font-weight: 900; }
.name-copy .mark-note { margin-top: 12px; font-size: 15px; font-weight: 500; opacity: .8; }
.wires { display: grid; grid-template-columns: repeat(5, 1fr); }
.wires li { padding: clamp(18px, 2vw, 30px) clamp(12px, 1.6vw, 26px); }
.wires h3 { font-size: clamp(22px, 2.5vw, 38px); margin-bottom: 14px; }
.wires p { font-size: clamp(14px, 1.22vw, 18px); line-height: 1.2; }
.w-black { background: #000; }
.w-red { background: var(--red); }
.w-blue { background: var(--blue); }
.w-white { background: #fff; color: var(--black); }
.w-green { background: var(--green); }

/* process */
.process { display: grid; grid-template-columns: minmax(0, 27fr) minmax(0, 73fr); gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 2.6vw, 40px) var(--pad) clamp(30px, 3.4vw, 52px); align-items: start; }
.process h2 { font-size: clamp(34px, 4.2vw, 64px); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; padding-bottom: 54px; }
.steps::after { content: ""; position: absolute; left: 22px; right: calc(25% - 22px); bottom: 19px; height: 7px; background: var(--red); }
.steps li { position: relative; padding-right: 18px; }
.steps li::after { content: ""; position: absolute; left: 0; bottom: -54px; width: 44px; height: 44px; border: 8px solid var(--red); border-radius: 50%; background: #fff; z-index: 1; box-sizing: border-box; }
.steps h3 { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(17px, 1.6vw, 24px); min-height: 2.2em; }
.steps h3 span { font-size: 2.1em; line-height: .78; letter-spacing: -0.04em; }
.steps p { margin-top: 10px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.18; padding-bottom: 18px; max-width: 15em; }

/* area */
.area { background: var(--green); color: #fff; display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); align-items: center; gap: 20px; padding: clamp(18px, 2vw, 30px) var(--pad) clamp(22px, 2.4vw, 36px); }
.area h2 { font-size: clamp(48px, 6.6vw, 100px); }
.area-copy > p:first-of-type { font-weight: 800; font-size: clamp(19px, 2vw, 29px); letter-spacing: -0.02em; margin-top: 10px; }
.towns { font-weight: 900; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: -0.01em; }
.area-copy > .town-note { font-size: 17px; font-weight: 700; margin-top: 8px; letter-spacing: 0; max-width: 24em; }
.map { display: block; }
.map img { width: 100%; max-width: 760px; margin: 0 auto; }

/* quote */
.quote { display: grid; grid-template-columns: minmax(0, 27fr) minmax(0, 73fr); gap: clamp(20px, 3vw, 44px); padding: clamp(24px, 2.6vw, 40px) var(--pad) clamp(28px, 3vw, 46px); }
.quote h2 { font-size: clamp(56px, 7.6vw, 116px); text-transform: none; letter-spacing: -0.045em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; align-content: start; }
.form .wide { grid-column: 1 / -1; }
.form label { position: relative; display: block; }
.form label span { position: absolute; left: 18px; top: 13px; font-weight: 800; font-size: 17px; pointer-events: none; transition: transform .12s, font-size .12s; transform-origin: left top; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 700; color: var(--black); background: #fff;
  border: 3px solid var(--black); border-radius: 0; padding: 22px 16px 6px; min-height: 52px; appearance: none;
}
.form textarea { resize: vertical; display: block; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 0h20L10 12z' fill='%23111417'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; cursor: pointer; }
.form label:focus-within span, .form label.filled span { transform: translateY(-9px) scale(.72); }
.form label:has(select) span { transform: translateY(-9px) scale(.72); }
.form :is(input, select, textarea):focus { outline: 0; border-color: var(--blue); }
.form .bad :is(input, select, textarea) { border-color: var(--red); }
.form .bad span { color: var(--red); }
.form-msg { font-weight: 800; padding: 14px 18px; background: var(--green); color: #fff; }
.form-msg.err { background: var(--black); }
.form .btn { font-size: 22px; padding: 13px; }

/* footer */
.foot { background: #000; color: #fff; display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); padding: 22px var(--pad); }
.foot .mark { stroke: #fff; }
.foot .phone { font-weight: 900; font-size: 22px; text-decoration: none; border-left: 2px solid #fff; padding: 10px 0 10px clamp(18px, 3vw, 40px); white-space: nowrap; }
.foot p { border-left: 2px solid #fff; padding: 4px 0 4px clamp(18px, 3vw, 40px); font-size: 16px; font-weight: 700; }

/* tablet and phone */
@media (max-width: 1140px) {
  .menu-btn { display: grid; gap: 6px; width: 52px; height: 48px; padding: 11px; background: var(--black); border: 0; border-radius: 6px; cursor: pointer; align-content: center; }
  .menu-btn span { display: block; height: 4px; background: #fff; transition: transform .15s, opacity .15s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--pad) 18px; border-bottom: 4px solid var(--black); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-top: 3px solid var(--black); font-size: 22px; font-weight: 900; }
  .nav .phone { border-left: 0; padding-left: 0; }
  .nav .btn { margin-top: 6px; }
  .mark { width: 54px; height: 54px; }
  .wordmark { font-size: 22px; }
  html { scroll-padding-top: 76px; }
}
@media (max-width: 860px) {
  .hero-art { width: 168%; margin-top: -4%; }
  .hero-copy { position: static; width: auto; padding: 0 var(--pad); margin-top: -3%; display: block; }
  .hero h1 { font-size: clamp(44px, 12.6cqw, 96px); }
  .hero-foot p { font-size: clamp(22px, 5.6cqw, 34px); max-width: none; margin-top: 16px; }
  .hero-btns { margin: 18px 0 0; gap: 12px; flex-wrap: wrap; }
  .hero-btns .btn { font-size: 18px; padding: 14px 20px; flex: 1 1 auto; }
  .hero-photo { position: relative; top: auto; bottom: auto; width: auto; margin: 26px 0 0 var(--pad); height: 74cqw; max-height: 520px; }
  .svc { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .svc li:nth-child(4) { border-bottom: 3px solid var(--black); }
  .work-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-grid figcaption { padding-left: 0; }
  .name, .process, .area, .quote { grid-template-columns: 1fr; }
  .wires { grid-template-columns: 1fr; }
  .wires li { display: grid; grid-template-columns: 6.4em 1fr; gap: 14px; align-items: start; padding: 18px var(--pad); }
  .wires h3 { margin: 0; font-size: 25px; }
  .wires p { font-size: 16px; }
  .steps { grid-template-columns: 1fr; padding: 0 0 0 64px; gap: 22px; }
  .steps::after { left: 19px; right: auto; top: 12px; bottom: 30px; width: 7px; height: auto; }
  .steps li { padding: 0; }
  .steps li::after { left: -64px; top: 0; bottom: auto; }
  .steps h3 { min-height: 44px; align-items: center; font-size: 23px; }
  .steps p { padding: 0; margin-top: 4px; max-width: none; font-size: 16px; }
  .form { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot .phone, .foot p { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-wave { animation: none; stroke-dashoffset: 0; }
  .name-wave .pulse { animation: none; offset-distance: 25%; }
}
