
/* Layout idea: the page reads like a fabricator's paperwork. A product schedule, photos framed as drawing sheets with title blocks, and a quote form that asks for opening sizes in mm. */
:root {
  --bg: #F4F6FA; --paper: #FFFFFF; --ink: #333333; --muted: #746C81; --head: #484879; --line: #D6D6D6;
  --blue: #0056A7; --accent: #699CFC; --focus: #0056A7; --wa: #25D366; --on-blue: #FFFFFF; --on-blue-2: #D6D6D6; --tint: #EAF0F8;
  --font: "Ubuntu", Verdana, system-ui, sans-serif; --mono: "Ubuntu Mono", "Courier New", monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: rgba(0,0,0,.06) 0 1px 6px, rgba(0,0,0,.12) 0 2px 24px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2A2A31; --paper: #333333; --ink: #FFFFFF; --muted: #D6D6D6; --head: #9FBEFF; --line: #5a5668; --focus: #699CFC; --tint: #363646; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2A2A31; --paper: #333333; --ink: #FFFFFF; --muted: #D6D6D6; --head: #9FBEFF; --line: #5a5668; --focus: #699CFC; --tint: #363646; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 clamp(17px, .6vw + 14px, 20px)/1.55 var(--font); }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); }
.label { font: 700 15px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 45px; object-fit: cover; border-radius: 3px; flex: none; }
.brand b { display: block; font-size: 20px; color: var(--head); line-height: 1.1; }
.brand span { display: block; font-size: 15px; color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; font-size: 17px; }
.top nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .3s; }
.top nav a:hover { border-color: var(--accent); }
.top nav .tel { font-family: var(--mono); font-weight: 700; color: var(--blue); }
:root[data-theme="dark"] .top nav .tel { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top nav .tel { color: var(--accent); } }

/* Hero */
.hero { background: linear-gradient(rgba(0,86,167,.9), rgba(0,86,167,.9)), url("img/hero-bg.jpg") center/cover; color: var(--on-blue); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px; }
.hero .label { color: var(--on-blue-2); }
.hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -.01em; }
.hero p.lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.1rem, 1.4vw + .6rem, 1.45rem); color: var(--on-blue); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 17px/1 var(--font); padding: 18px 28px; border: 0; border-radius: 25px; background: var(--wa); color: #1b1f22; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: transform .3s, filter .3s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: none; filter: brightness(.95); }
.hero .plain { color: var(--on-blue); font-size: 17px; text-underline-offset: 4px; }
.hero :focus-visible { outline-color: #fff; }

/* Photo sheet: a job photo with dimension lines and a title block, like a shop drawing */
.sheet { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.sheet .plate { position: relative; padding: 34px 34px 30px 18px; }
.sheet .plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.dim-w { position: absolute; left: 18px; right: 34px; top: 8px; height: 14px; border-left: 1px solid var(--muted); border-right: 1px solid var(--muted); }
.dim-w::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px solid var(--muted); }
.dim-h { position: absolute; top: 34px; bottom: 30px; right: 8px; width: 14px; border-top: 1px solid var(--muted); border-bottom: 1px solid var(--muted); }
.dim-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 6px; border-left: 1px solid var(--muted); }
.dim-w i, .dim-h i { position: absolute; background: var(--paper); font: 700 13px/1 var(--mono); color: var(--muted); padding: 1px 6px; font-style: normal; }
.dim-w i { left: 50%; top: 0; transform: translateX(-50%); }
.dim-h i { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.block { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.block div { padding: 10px 16px; border-right: 1px solid var(--line); min-width: 0; }
.block div:last-child { border-right: 0; }
.block span { display: block; font: 700 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.block b { display: block; font-weight: 500; font-size: 16px; line-height: 1.35; }
.block--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero .sheet { box-shadow: 0 10px 40px rgba(0,0,0,.25); }

/* Sections */
section { padding-block: 84px; }
.head { max-width: 40rem; }
.head h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 700; color: var(--head); }
.head p { margin-top: 14px; color: var(--muted); }

/* Product schedule */
.schedule { margin-top: 40px; background: var(--paper); border: 1px solid var(--line); }
.sched-head, .sched-row { display: grid; grid-template-columns: 76px 132px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 24px; }
.sched-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: 12px; }
.sched-head span { font: 700 14px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sched-row { border-bottom: 1px solid var(--line); transition: background .3s; }
.sched-row:last-child { border-bottom: 0; }
.sched-row:hover { background: var(--tint); }
.code { font: 700 17px var(--mono); color: var(--blue); }
:root[data-theme="dark"] .code { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .code { color: var(--accent); } }
.thumb { width: 132px; height: 88px; border: 1px solid var(--line); background: #1b1f26; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 70px; height: 54px; color: var(--accent); }
.sched-row h3 { font-size: 21px; color: var(--head); }
.sched-row p { margin-top: 4px; font-size: 17px; color: var(--muted); }
.sched-row .types { margin-top: 8px; font: 400 15px var(--mono); color: var(--ink); }
.ask { font: 700 16px var(--font); color: var(--blue); text-decoration: none; border: 1.5px solid var(--blue); border-radius: 25px; padding: 10px 20px; white-space: nowrap; transition: background .3s, color .3s; }
.ask:hover { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .ask { color: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .ask:hover { background: var(--accent); color: #1b1f22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ask { color: var(--accent); border-color: var(--accent); } :root:not([data-theme="light"]) .ask:hover { background: var(--accent); color: #1b1f22; } }

/* Work */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.work .sheet .plate { padding: 14px; }
.work .block { grid-template-columns: 1fr; }
.work .block div { border-right: 0; border-bottom: 1px solid var(--line); }
.work .block div:last-child { border-bottom: 0; }
.next { display: grid; align-content: center; gap: 14px; padding: 28px; border: 2px dashed var(--accent); background: transparent; min-width: 0; }
.next h3 { font-size: 24px; color: var(--head); }
.next p { color: var(--muted); }
.next a { color: var(--blue); font-weight: 700; }
:root[data-theme="dark"] .next a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .next a { color: var(--accent); } }

/* Steps */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps li { position: relative; padding-top: 34px; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 8px; left: 0; right: -24px; border-top: 2px solid var(--accent); }
.steps li:last-child::before { right: 0; border-top-style: dotted; }
.steps li::after { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--blue); }
.steps h3 { font-size: 21px; color: var(--head); }
.steps p { margin-top: 6px; font-size: 17px; color: var(--muted); }

/* Why */
.why { background: var(--blue); color: var(--on-blue); }
.why .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.why h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.why .label { color: var(--on-blue-2); }
.why li { position: relative; padding: 16px 0 16px 38px; border-top: 1px solid rgba(255,255,255,.3); font-size: 19px; }
.why li:last-child { border-bottom: 1px solid rgba(255,255,255,.3); }
.why li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 16px; height: 8px; border-left: 3px solid var(--wa); border-bottom: 3px solid var(--wa); transform: rotate(-45deg); }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.facts { margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 14px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.facts a { font-family: var(--mono); font-weight: 700; }
.form { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.form .bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 24px; background: var(--tint); border-bottom: 1px solid var(--line); }
.form .fields { display: grid; gap: 18px; padding: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 16px; font-weight: 500; }
.field small { color: var(--muted); font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: 400 18px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; transition: border-color .3s, box-shadow .3s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.field textarea { min-height: 96px; resize: vertical; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.status { min-height: 1.4em; font-size: 16px; color: var(--muted); }
.status a { color: var(--blue); font-weight: 700; }
:root[data-theme="dark"] .status a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status a { color: var(--accent); } }
.err { color: #CC3366; }
:root[data-theme="dark"] .err { color: #FF8FB0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #FF8FB0; } }
.form .btn { width: 100%; }

footer { background: var(--blue); color: var(--on-blue); padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
footer img { width: 76px; height: auto; border-radius: 3px; }
footer .who { display: flex; align-items: center; gap: 18px; }
footer p { font-size: 16px; }
footer small { color: var(--on-blue-2); font-size: 15px; }

@media (max-width: 900px) {
  .hero .wrap, .why .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .wrap { padding-block: 48px; }
  section { padding-block: 60px; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps li:nth-child(2)::before { right: 0; }
}
@media (max-width: 720px) {
  .sched-head { display: none; }
  .sched-row { grid-template-columns: 108px minmax(0, 1fr); gap: 6px 16px; padding: 18px 16px; }
  .sched-row .code { grid-column: 1 / -1; }
  .thumb { width: 108px; height: 76px; }
  .sched-row .ask { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::before { right: 0 !important; }
  .row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .top nav { gap: 4px 18px; }
  .block--3 { grid-template-columns: minmax(0, 1fr); }
  .block--3 div { border-right: 0; border-bottom: 1px solid var(--line); }
  .form .fields { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* Detail pages and linked images */
.thumb a { display: block; width: 100%; height: 100%; }
.thumb img { object-fit: contain; transition: transform .3s; }
.thumb a:hover img { transform: scale(1.05); }
.sched-row h3 a { text-decoration: none; }
.sched-row h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.plate--dark img { background: #1b1f26; object-fit: contain; }
.sheet a.shot { display: block; }
.photo img { aspect-ratio: 3 / 4 !important; object-fit: cover; }
.hero .photo { max-width: 400px; justify-self: center; width: 100%; }
.sheet a.shot img { transition: filter .3s; }
.sheet a.shot:hover img { filter: brightness(1.06); }
.crumbs { font: 400 16px var(--mono); color: var(--on-blue-2); }
.crumbs a { color: var(--on-blue); text-underline-offset: 3px; }
.page-hero .wrap { padding-block: 56px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.codepill { display: inline-block; margin-top: 18px; font: 700 15px var(--mono); letter-spacing: .08em; padding: 6px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 25px; }
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.about p + p { margin-top: 16px; }
.about .body { max-width: 40rem; }
.need { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.need h3 { font-size: 21px; color: var(--head); }
.need ul { margin-top: 12px; }
.need li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: 18px; }
.need li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 14px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.opts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--paper); border: 1px solid var(--line); }
.opts div { padding: 22px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.opts div:nth-child(2n) { border-right: 0; }
.opts div:nth-last-child(-n+2):nth-child(2n+1), .opts div:last-child { border-bottom: 0; }
.opts h3 { font-size: 21px; color: var(--head); }
.opts p { margin-top: 6px; font-size: 17px; color: var(--muted); }
.jobs { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; }
.others { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.others a { font: 500 16px var(--font); text-decoration: none; padding: 9px 16px; border: 1px solid var(--line); border-radius: 25px; background: var(--paper); transition: border-color .3s; }
.others a:hover { border-color: var(--blue); }
.others a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cta-bottom { margin-top: 24px; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); gap: 32px; } .page-hero .wrap { padding-block: 40px; } }
@media (max-width: 720px) { .opts { grid-template-columns: minmax(0, 1fr); } .opts div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .opts div:last-child { border-bottom: 0 !important; } .jobs { grid-template-columns: minmax(0, 1fr); } }
