/* Ryterna Modul — design mockup v2 "Built like a product".
   Brand kept: logo, burgundy #940224, Ubuntu. Everything else is new. */
@font-face { font-family: "Ubuntu"; font-weight: 400; font-display: swap; src: url("fonts/ubuntu-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 500; font-display: swap; src: url("fonts/ubuntu-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-weight: 700; font-display: swap; src: url("fonts/ubuntu-700-latin.woff2") format("woff2"); }

:root {
  --red: #940224; --red-deep: #5e0117; --red-soft: #f3e4e8;
  --ink: #171414; --steel: #3d3838; --text: #4a4545; --mute: #6b6464;
  --concrete: #d9d6d2; --paper: #f2f1ef; --white: #fff; --line: #e2dfdb;
  --font: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px); --max: 1280px; --cell: 56px;
  --ease: cubic-bezier(.2,.7,.1,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.t-xl { font-size: clamp(40px, 5.6vw, 76px); }
.t-l { font-size: clamp(30px, 3.6vw, 48px); }
.t-m { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; max-width: 58ch; color: var(--steel); }
.mark { display: inline-block; width: .5em; height: .5em; background: var(--red); vertical-align: baseline; margin-right: .45em; }
.note { font-size: 14px; color: var(--mute); line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* grid texture: the module cell */
.cells { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: var(--cell) var(--cell); }
.cells--red { background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font-weight: 500; font-size: 16px; background: var(--ink); color: #fff; border: 2px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--red { background: var(--red); border-color: var(--red); } .btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--line { background: transparent; color: var(--ink); } .btn--line:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; } .btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); } .btn--ghost:hover { background: #fff; color: var(--red); border-color: #fff; }
.more { font-weight: 500; color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.more:hover { color: var(--ink); border-color: var(--ink); }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.hdr .logo img { width: 190px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-color: var(--red); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 15px; margin-left: 10px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin: 16px 0 0; }
  .burger { display: block; }
  .hdr .logo img { width: 150px; }
}

/* hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--concrete); font-size: 15px; color: var(--steel); }
.proof b { color: var(--ink); font-weight: 700; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* estimator */
.est { background: var(--red); color: #fff; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 60px -30px rgba(94,1,23,.6); }
.est h2 { color: #fff; font-size: 24px; }
.est p { color: rgba(255,255,255,.8); font-size: 15px; }
.est label { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75); margin-bottom: 8px; }
.est .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.est select, .est output { width: 100%; height: 48px; padding: 0 14px; background: #fff; color: var(--ink); border: 0; border-radius: 0; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23171414' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.est .slider { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.est .slider output { width: 72px; display: grid; place-items: center; font-weight: 700; background-image: none; }
.est input[type=range] { width: 100%; accent-color: #fff; height: 32px; margin: 0; }
.est .out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.25); margin-top: 4px; }
.est .out div { background: var(--red); padding: 16px 14px; }
.est .out b { display: block; font-size: 30px; font-weight: 700; line-height: 1; color: #fff; }
.est .out span { font-size: 13px; color: rgba(255,255,255,.8); display: block; margin-top: 6px; }
.est .bar { height: 10px; display: flex; background: rgba(255,255,255,.18); }
.est .bar i { display: block; height: 100%; background: #fff; transition: width .5s var(--ease); }
.est .bar i + i { background: rgba(255,255,255,.55); }
.est .legend { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.85); }
.est .btn { margin-top: 4px; }
.est .fine { font-size: 12px; color: rgba(255,255,255,.8); }
@media (max-width: 520px) { .est .out { grid-template-columns: 1fr; } }

/* section scaffolding */
.sec { padding: clamp(64px, 8vw, 120px) 0; }
.sec--paper { background: var(--paper); }
.sec--ink { background: var(--ink); color: #c9c3c3; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.sec--red { background: var(--red); color: rgba(255,255,255,.85); }
.sec--red h2, .sec--red h3 { color: #fff; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { max-width: 56ch; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* POV: argument + comparison bars */
.pov { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.pov ol { counter-reset: n; display: grid; gap: 22px; margin-top: 32px; }
.pov li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.pov li::before { content: counter(n); font-weight: 700; color: var(--red); font-size: 28px; line-height: 1; }
.pov li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.cmp { background: var(--paper); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); }
.cmp h3 { font-size: 18px; margin-bottom: 20px; }
.cmp .g { display: grid; gap: 14px; }
.cmp .r { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; font-size: 14px; }
.cmp .tr { position: relative; height: 26px; background: #fff; border: 1px solid var(--line); }
.cmp .tr i { position: absolute; top: 4px; bottom: 4px; left: var(--l); width: var(--w); }
.cmp .tr i.a { background: var(--concrete); } .cmp .tr i.b { background: var(--red); } .cmp .tr i.c { background: var(--ink); }
.cmp .lbl { color: var(--ink); font-weight: 500; }
.cmp .sub { color: var(--mute); font-size: 13px; margin: 10px 0 2px; }
.cmp .scale { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin-top: 10px; font-size: 12px; color: var(--mute); }
.cmp .scale div { display: flex; justify-content: space-between; }
.cmp .save { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.cmp .save b { font-size: 40px; color: var(--red); font-weight: 700; line-height: 1; }
@media (max-width: 860px) { .pov { grid-template-columns: 1fr; } .cmp .r, .cmp .scale { grid-template-columns: 110px 1fr; } }

/* systems table */
.systems { width: 100%; border-collapse: collapse; font-size: 15px; }
.systems th, .systems td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.systems thead th { font-size: 22px; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.systems thead th small { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-top: 4px; }
.systems tbody th { font-weight: 500; color: var(--ink); width: 18%; }
.systems td.vol, .systems th.vol { background: var(--red-soft); }
.systems thead th.vol { background: var(--red); color: #fff; } .systems thead th.vol small { color: rgba(255,255,255,.8); }
.systems .pick { font-weight: 500; }
.systems .pick a { color: var(--red); }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 760px) { .systems { min-width: 720px; } }

/* VOL feature */
.vol-feat .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; }
.vol-feat .img { position: relative; min-height: 420px; }
.vol-feat .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vol-feat .img figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12px; color: #fff; background: rgba(23,20,20,.6); padding: 4px 8px; }
.vol-feat .txt { background: var(--ink); color: #c9c3c3; padding: clamp(32px, 4vw, 64px); }
.vol-feat .txt h2 { color: #fff; }
.vol-feat .txt p { margin-top: 18px; max-width: 48ch; }
.vol-feat dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.vol-feat dt { font-size: 13px; color: #9a9393; }
.vol-feat dd { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; margin-top: 4px; }
.vol-feat .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .vol-feat .wrap { grid-template-columns: 1fr; } .vol-feat .img { min-height: 280px; } }

/* cost + problems */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.drivers { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.drivers li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.drivers b { color: var(--ink); font-weight: 500; }
.drivers span { color: var(--mute); font-size: 14px; }
.split { margin-top: 28px; }
.split .bar { display: flex; height: 44px; }
.split .bar i { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 500; padding: 0 12px; overflow: hidden; white-space: nowrap; }
.split .bar i:nth-child(1) { background: var(--red); } .split .bar i:nth-child(2) { background: var(--red-deep); } .split .bar i:nth-child(3) { background: var(--ink); } .split .bar i:nth-child(4) { background: var(--steel); }
.split .keys { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; font-size: 13px; color: var(--mute); }
.honest { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.honest li { background: #fff; padding: 20px 22px; }
.honest b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 6px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* case study */
.case { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; border: 1px solid rgba(255,255,255,.12); }
.case .img { position: relative; min-height: 380px; }
.case .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case .txt { padding: clamp(28px, 3.5vw, 56px); background: #1f1b1b; }
.case .kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); }
.case .kpi b { display: block; font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.case .kpi span { display: block; font-size: 13px; color: #9a9393; margin-top: 6px; }
.case blockquote { margin: 24px 0 0; padding: 18px 20px; background: rgba(255,255,255,.06); color: #fff; font-size: 18px; line-height: 1.4; }
.case cite { display: block; font-style: normal; font-size: 14px; color: #9a9393; margin-top: 10px; }
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.certs li { border: 1px solid rgba(255,255,255,.2); padding: 12px 16px; font-size: 14px; color: #fff; }
.certs li small { display: block; color: #9a9393; font-size: 12px; margin-top: 2px; }
.more-cases { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.more-cases a { background: var(--ink); padding: 20px 22px; display: grid; gap: 6px; transition: background .2s; }
.more-cases a:hover { background: #2a2525; }
.more-cases b { color: #fff; font-weight: 500; }
.more-cases span { font-size: 13px; color: #9a9393; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } .case .img { min-height: 240px; } .more-cases { grid-template-columns: 1fr; } }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.person .ph { aspect-ratio: 4/4.6; background: var(--concrete); position: relative; overflow: hidden; }
.person .ph::after { content: ""; position: absolute; left: 50%; bottom: -10%; width: 70%; height: 55%; transform: translateX(-50%); background: #c4bfba; border-radius: 50% 50% 0 0; }
.person .ph::before { content: ""; position: absolute; left: 50%; top: 22%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); background: #c4bfba; border-radius: 50%; }
.person h3 { font-size: 20px; margin-top: 16px; }
.person p { font-size: 15px; margin-top: 4px; }
.person .q { margin-top: 10px; color: var(--steel); }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } .person .ph { aspect-ratio: 16/9; } }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 500; font-size: 19px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 28px; font-weight: 400; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.contact h2 { color: #fff; }
.contact .ways { margin-top: 28px; display: grid; gap: 14px; font-size: 17px; }
.contact .ways a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); }
.contact .ways span { color: rgba(255,255,255,.65); display: block; font-size: 14px; }
.form { background: #fff; padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; color: var(--text); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--concrete); padding: 12px 14px; background: #fff; color: var(--ink); border-radius: 0; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--red); outline: none; }
.form .note { font-size: 13px; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } .form .row { grid-template-columns: 1fr; } }

/* footer */
.ftr { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.ftr .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.ftr .logo img { width: 170px; margin-bottom: 16px; }
.ftr h4 { font-size: 15px; margin-bottom: 12px; }
.ftr li + li { margin-top: 8px; }
.ftr a:hover { color: var(--red); }
.ftr .bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--mute); }
@media (max-width: 860px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr .cols { grid-template-columns: 1fr; } }

/* inner page: case study */
.page-top { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 72px) 0; }
.crumbs { font-size: 14px; color: var(--mute); margin-bottom: 20px; }
.crumbs a:hover { color: var(--red); }
.page-top h1 { max-width: 18ch; }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.facts div { background: #fff; padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--mute); }
.facts dd { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.article .body > * + * { margin-top: 20px; }
.article .body h2 { font-size: 28px; margin-top: 44px; }
.article .body p { max-width: 68ch; }
.article .body figure { margin: 32px 0; }
.article .body figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.aside { position: sticky; top: 100px; display: grid; gap: 24px; }
.aside .box { border: 1px solid var(--line); padding: 22px; }
.aside h3 { font-size: 17px; margin-bottom: 12px; }
.aside .box ul li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.aside .box ul li b { color: var(--ink); font-weight: 500; }
.aside .cta { background: var(--red); color: #fff; padding: 22px; }
.aside .cta h3 { color: #fff; }
.aside .cta p { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 16px; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .aside { position: static; } .facts { grid-template-columns: repeat(2, 1fr); } }

/* mockup badge */
.mock { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 8px 12px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .est .bar i { transition: none; } }

/* Mobile refinements after first review */
.drivers li { grid-template-columns: 1fr; gap: 4px; }
.tbl-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
html, body { overflow-x: clip; }
@media (max-width: 520px) {
  .est .row { grid-template-columns: 1fr; }
  .case .kpi { gap: 12px; }
  .case .kpi b { font-size: 26px; white-space: nowrap; }
  .vol-feat dl { grid-template-columns: 1fr; }
}
