/*
Theme Name: Velican
Theme URI: https://velican.solutions
Description: Steampunk one-page theme for Velican Solutions. Interim leadership and international group structuring.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: velican
*/

@font-face { font-family: 'Bevan'; src: url('assets/fonts/bevan-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fell SC'; src: url('assets/fonts/im-fell-english-sc-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('assets/fonts/alegreya-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('assets/fonts/alegreya-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('assets/fonts/alegreya-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #e5d2ad;
  --paper-hi: #efe2c6;
  --paper-lo: #d8c096;
  --ink: #2c1d0c;
  --ink-2: #4b3720;
  --sepia: #6f5434;
  --sepia-2: #9c7f57;
  --brass: #a8834d;
  --brass-hi: #d9bb84;
  --brass-lo: #6e4f26;
  --copper: #8a3f1c;
  --night: #2a1c0c;
  --night-2: #3a2914;
  --on-night: #ead9b8;
  --on-night-2: #bfa47a;
  --display: 'Bevan', 'Rockwell', 'Clarendon', Georgia, serif;
  --label: 'Fell SC', 'Palatino Linotype', Georgia, serif;
  --serif: 'Alegreya', Georgia, 'Times New Roman', serif;
  --rivet: radial-gradient(circle at 35% 35%, #f3e1b8 0 1px, #b8945c 1.6px 3px, #4a3317 3.6px, transparent 4.4px);
  --cog: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='%236f5434'%3E%3Cpath d='M8.6 1h2.8l.4 2.3 1.6.7 1.9-1.4 2 2-1.4 1.9.7 1.6 2.3.4v2.8l-2.3.4-.7 1.6 1.4 1.9-2 2-1.9-1.4-1.6.7-.4 2.3H8.6l-.4-2.3-1.6-.7-1.9 1.4-2-2 1.4-1.9-.7-1.6L1 11.4V8.6l2.3-.4.7-1.6-1.4-1.9 2-2 1.9 1.4 1.6-.7z'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='3' fill='%23efe2c6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.55;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,245,220,.55), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(90,60,20,.18), transparent 60%);
  -webkit-font-smoothing: antialiased; position: relative;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .005em; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--copper); text-decoration: none; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
main { overflow-x: clip; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--paper-hi); color: var(--ink); padding: 10px 16px; }
:focus-visible { outline: 2px dashed var(--copper); outline-offset: 3px; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .22; z-index: 60; mix-blend-mode: multiply; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 56px; padding-right: 56px; }
.label { font-family: var(--label); font-size: 17px; letter-spacing: .14em; color: var(--sepia); display: flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 18px; height: 18px; background: var(--cog) center / contain no-repeat; flex: none; }

/* plates with rivets and double frame, like the logo banner */
.plate {
  position: relative; background-color: var(--paper-hi);
  background-image: var(--rivet), var(--rivet), var(--rivet), var(--rivet), linear-gradient(180deg, rgba(255,255,255,.35), rgba(120,90,40,.08));
  background-size: 14px 14px, 14px 14px, 14px 14px, 14px 14px, 100% 100%;
  background-position: left 12px top 12px, right 12px top 12px, left 12px bottom 12px, right 12px bottom 12px, 0 0;
  background-repeat: no-repeat;
  border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: inset 0 0 0 6px var(--paper-hi), inset 0 0 0 7.5px var(--sepia-2), 0 3px 0 rgba(44,29,12,.25), 0 14px 30px -18px rgba(44,29,12,.6);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px;
  font-family: var(--label); font-size: 20px; letter-spacing: .08em; color: var(--paper-hi);
  background: linear-gradient(180deg, #4a3319, var(--ink)); border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--brass), 0 3px 0 var(--brass-lo);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--brass-hi), 0 4px 0 var(--brass-lo); }
.btn .gear-ico { transition: transform .6s; }
.btn:hover .gear-ico { transform: rotate(90deg); }
.btn-brass {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  font-family: var(--label); font-size: 17px; letter-spacing: .08em; color: var(--ink);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #8e6a36); border: 2px solid var(--ink); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.7), 0 2px 0 var(--brass-lo);
}
.btn-brass:hover { color: var(--ink); filter: brightness(1.06); }
.link-under { font-family: var(--label); font-size: 18px; letter-spacing: .06em; color: var(--ink-2); border-bottom: 1.5px solid var(--sepia-2); padding-bottom: 1px; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.medallion { position: relative; width: 64px; height: 64px; flex: none; }
.medallion img { position: absolute; inset: 9px; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-hi); border: 1.5px solid var(--ink); }
.medallion svg { position: absolute; inset: 0; width: 64px; height: 64px; }
.brand:hover .medallion svg { animation: spin 6s linear infinite; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1; }
.wordmark-top { font-family: var(--display); font-size: 25px; letter-spacing: .04em; padding: 5px 12px 4px; border: 2px solid var(--ink); background: var(--paper-hi); box-shadow: inset 0 0 0 2px var(--paper-hi), inset 0 0 0 3px var(--sepia-2); }
.wordmark-sub { font-family: var(--label); font-size: 12px; letter-spacing: .32em; padding: 3px 10px 2px 14px; margin-top: -1px; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 8px 8px; background: var(--paper-lo); }
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--label); font-size: 18px; letter-spacing: .08em; }
.nav a { color: var(--ink-2); position: relative; }
.nav a:hover { color: var(--copper); }
.header-rule { height: 10px; margin: 0 56px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--sepia-2); background: repeating-linear-gradient(90deg, transparent 0 22px, var(--sepia-2) 22px 24px); opacity: .9; }

/* hero */
.hero { padding-top: 40px; padding-bottom: 32px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.hero-copy { grid-column: span 6; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: 54px; line-height: 1.08; }
.hero-lead { font-size: 21px; color: var(--ink-2); max-width: 560px; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 6px; }
.hero-art { grid-column: span 6; position: relative; display: flex; justify-content: center; }
.hero-art .emblem { position: relative; z-index: 2; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 10px 18px rgba(60,40,15,.18)); }
.hero-art .bg-gear { position: absolute; z-index: 1; opacity: .16; color: var(--ink); }
.hero-art .bg-gear.g1 { width: 300px; top: -10px; left: -20px; animation: spin 60s linear infinite; }
.hero-art .bg-gear.g2 { width: 200px; bottom: 40px; right: -10px; animation: spinback 40s linear infinite; }
.steam { display: none; position: absolute; z-index: 3; width: 14px; height: 14px; border-radius: 50%; background: rgba(250,240,220,.9); filter: blur(3px); opacity: 0; animation: steam 6s ease-out infinite; }
.steam.s1 { right: 17%; top: 22%; }
.steam.s2 { right: 17%; top: 22%; animation-delay: 2s; }
.steam.s3 { right: 17%; top: 22%; animation-delay: 4s; }

/* gauges on a pipe */
.gauges { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.gauges::before { content: ''; position: absolute; left: 0; right: 0; top: 60px; height: 18px; border: 2px solid var(--ink); border-radius: 9px; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 45%, var(--brass-lo)); z-index: 0; }
.gauge { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.gauge-dial { width: 138px; height: 138px; flex: none; }
.gauge-dial .needle { transform-origin: 70px 70px; animation: tremble 5s ease-in-out infinite; }
.gauge:nth-child(2) .needle { animation-delay: -1.7s; }
.gauge:nth-child(3) .needle { animation-delay: -3.1s; }
.gauge-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; margin-top: 70px; }
.gauge-text strong { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.gauge-text span { font-family: var(--label); font-size: 15px; letter-spacing: .08em; color: var(--sepia); line-height: 1.3; }

/* pipe divider */
.divider { display: block; width: 100%; height: 64px; margin: 56px 0 8px; color: var(--ink); }
.divider .valve { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }

/* sections */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.section-head h2 { font-size: 40px; line-height: 1.12; }
.who { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 40px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 36px 38px; }
.card h3 { font-size: 27px; display: flex; align-items: center; gap: 12px; }
.card p { color: var(--ink-2); }
.card-ico { width: 40px; height: 40px; flex: none; }

.services { padding-top: 24px; padding-bottom: 16px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.svc { display: flex; flex-direction: column; gap: 18px; padding: 40px 40px 34px; scroll-margin-top: 24px; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc-num { font-family: var(--display); font-size: 18px; color: var(--paper-hi); background: var(--ink); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--paper-hi), 0 0 0 4.5px var(--ink); }
.svc h2 { font-size: 32px; line-height: 1.12; }
.svc p { color: var(--ink-2); }
.svc-ico { width: 72px; height: 72px; color: var(--ink); }
.svc:hover .svc-ico .turn { animation: spin 4s linear infinite; }
.svc-ico .turn { transform-box: fill-box; transform-origin: center; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px dashed var(--sepia-2); }
.list li::before { content: ''; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; background: var(--cog) center / contain no-repeat; }

/* boiler room (dark) */
.boiler { position: relative; margin-top: 72px; background-color: var(--night); color: var(--on-night); background-image: repeating-linear-gradient(90deg, rgba(255,230,180,.025) 0 2px, transparent 2px 120px), radial-gradient(ellipse at 50% 0%, rgba(200,150,80,.18), transparent 60%); }
.boiler::before, .boiler::after { content: ''; position: absolute; left: 0; right: 0; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16 V9 H6 L8 2 H24 L26 9 H32 V16 Z' fill='%232a1c0c'/%3E%3C/svg%3E") repeat-x; }
.boiler::before { top: -15px; }
.boiler::after { bottom: -15px; transform: scaleY(-1); }
.approach { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.approach h2 { color: var(--on-night); }
.approach .label { color: var(--brass-hi); }
.approach .label::before { filter: invert(.85) sepia(1) saturate(1.4); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ''; position: absolute; left: 50px; right: 16%; top: 38px; height: 14px; border: 2px solid #120b03; border-radius: 7px; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 45%, var(--brass-lo)); }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step-gear { position: relative; width: 92px; height: 92px; color: var(--brass-hi); }
.step-gear svg { width: 92px; height: 92px; transition: transform 1.2s; }
.step:hover .step-gear svg { transform: rotate(120deg); }
.step-gear b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--night); }
.step h3 { font-size: 28px; color: var(--on-night); }
.step p { color: var(--on-night-2); }

/* record: work order plate with stamp */
.record-wrap { padding-top: 104px; padding-bottom: 24px; }
.record { padding: 56px 56px 48px; }
.tag { position: absolute; top: -18px; left: 48px; font-family: var(--label); font-size: 16px; letter-spacing: .14em; padding: 6px 16px; color: var(--ink); background: linear-gradient(180deg, var(--brass-hi), var(--brass)); border: 2px solid var(--ink); border-radius: 3px; }
.stamp { position: absolute; top: 34px; right: 44px; font-family: var(--display); font-size: 22px; letter-spacing: .08em; color: var(--copper); border: 3px double var(--copper); padding: 6px 14px; transform: rotate(-8deg); opacity: .78; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: start; }
.record-copy { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
.record-copy h2 { font-size: 36px; line-height: 1.15; }
.record-copy p { font-style: italic; color: var(--sepia); }
.record ol { list-style: none; margin: 0; padding: 40px 0 0; counter-reset: rec; }
.record li { counter-increment: rec; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--sepia-2); }
.record li::before { content: counter(rec, upper-roman) '.'; font-family: var(--label); font-size: 18px; color: var(--sepia); min-width: 34px; }

/* contact */
.contact { position: relative; padding-top: 104px; padding-bottom: 112px; overflow: hidden; scroll-margin-top: 0; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.contact h2 { font-size: 48px; line-height: 1.08; }
.contact-copy { display: flex; flex-direction: column; gap: 18px; }
.contact-copy p { font-size: 20px; color: var(--ink-2); max-width: 520px; }
.contact-cta { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 36px 40px; }
.contact-cta .mail { font-family: var(--label); font-size: 19px; letter-spacing: .06em; color: var(--ink-2); }
.contact .big-gear { position: absolute; right: -120px; top: 20px; width: 420px; opacity: .08; color: var(--ink); animation: spin 90s linear infinite; }

/* footer */
.site-footer { position: relative; background: var(--night); color: var(--on-night-2); margin-top: 16px; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Cpath d='M0 16 V9 H6 L8 2 H24 L26 9 H32 V16 Z' fill='%232a1c0c'/%3E%3C/svg%3E") repeat-x; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 36px; font-size: 15px; }
.site-footer a { color: var(--on-night-2); font-family: var(--label); letter-spacing: .06em; }
.site-footer a:hover { color: var(--brass-hi); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* inner pages */
.page-sheet { padding-top: 56px; padding-bottom: 104px; min-height: calc(100vh - 260px); }
.entry { max-width: 820px; padding: 48px 56px; }
.entry h1 { font-size: 42px; line-height: 1.12; margin-bottom: 28px; }
.entry h2 { font-size: 26px; margin: 36px 0 10px; }
.entry h3 { font-size: 21px; margin: 26px 0 8px; }
.entry p, .entry ul, .entry ol { margin: 0 0 16px; color: var(--ink-2); }
.entry a { text-decoration: underline; text-underline-offset: 3px; }

/* motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinback { to { transform: rotate(-360deg); } }
@keyframes tremble { 0%,100% { transform: rotate(0deg); } 20% { transform: rotate(4deg); } 45% { transform: rotate(-3deg); } 70% { transform: rotate(6deg); } }
@keyframes steam { 0% { transform: translate(0,0) scale(.6); opacity: 0; } 15% { opacity: .8; } 100% { transform: translate(26px,-110px) scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1100px) {
  .hero h1 { font-size: 44px; }
  .nav { gap: 20px; font-size: 16px; }
  .gauge-dial { width: 110px; height: 110px; }
  .gauges::before { top: 47px; }
  .gauge-text { margin-top: 56px; }
}
@media (max-width: 900px) {
  body { font-size: 18px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-rule { margin: 0 20px; }
  .nav { display: none; }
  .site-header .btn-brass { font-size: 15px; padding: 0 12px; white-space: nowrap; }
  .wordmark-top { font-size: 20px; }
  .medallion { width: 52px; height: 52px; }
  .medallion svg { width: 52px; height: 52px; }
  .medallion img { inset: 7px; width: 38px; height: 38px; }
  .hero { padding-top: 16px; }
  .hero-grid, .two, .svc-grid, .record-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy, .hero-art { grid-column: auto; }
  .hero-art { order: -1; }
  .hero-art .emblem { max-width: 340px; }
  .hero-art .bg-gear.g1 { width: 200px; }
  .hero-art .bg-gear.g2 { width: 130px; }
  .hero h1 { font-size: 36px; }
  .gauges { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gauges::before { top: 0; bottom: 0; left: 44px; right: auto; width: 14px; height: auto; }
  .gauge-dial { width: 100px; height: 100px; }
  .gauge-text { margin-top: 0; }
  .section-head h2, .contact h2 { font-size: 32px; }
  .card, .svc { padding: 30px 26px; }
  .svc h2 { font-size: 27px; }
  .svc-ico { width: 56px; height: 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps::before { left: 29px; right: auto; top: 40px; bottom: 60px; width: 14px; height: auto; }
  .step { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: start; }
  .step-gear { grid-row: span 2; width: 72px; height: 72px; }
  .step-gear svg { width: 72px; height: 72px; }
  .step-gear b { font-size: 24px; }
  .step h3 { font-size: 24px; padding-top: 18px; }
  .btn { font-size: 17px; letter-spacing: .04em; padding: 0 18px; }
  .approach { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .record { padding: 44px 24px 32px; }
  .stamp { position: static; align-self: flex-start; display: inline-block; margin-bottom: 8px; font-size: 18px; }
  .record-grid { gap: 8px; }
  .record ol { padding-top: 8px; }
  .record-copy h2 { font-size: 28px; }
  .contact { padding-top: 72px; padding-bottom: 80px; }
  .contact-cta { padding: 28px 24px; }
  .entry { padding: 32px 24px; }
  .entry h1 { font-size: 32px; }
}
@media (max-width: 480px) {
  .site-header .btn-brass { display: none; }
}
