/* sunview-elberly.ch: silver and graphite, light and dark. No fonts, scripts or images from other hosts. */

:root {
  color-scheme: light;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --bg: #f3f4f6;
  --bg-2: #e8eaee;
  --surface: rgb(255 255 255 / 0.72);
  --surface-solid: #ffffff;
  --ink: #121418;
  --ink-2: #363b43;
  --muted: #646b76;
  --line: #d3d7dd;
  --line-strong: #b6bcc5;
  --glow: rgb(255 255 255 / 0.9);
  --shadow: 0 1px 2px rgb(18 20 24 / 0.06), 0 18px 40px -22px rgb(18 20 24 / 0.35);

  /* Headings: polished steel on light ground. */
  --metal-text: linear-gradient(100deg, #15181d 0%, #5b626c 22%, #1b1e24 44%, #7d8590 66%, #15181d 88%, #5b626c 100%);
  /* Buttons, badges, hairlines: brushed silver. */
  --metal: linear-gradient(180deg, #fbfcfd 0%, #dfe3e8 45%, #c3c9d1 55%, #e9ecef 100%);
  --metal-edge: linear-gradient(135deg, #ffffff, #a9b0ba 30%, #eef0f3 50%, #8f97a2 75%, #ffffff);
  --metal-ink: #15181d;

  --radius: 22px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0b0d;
    --bg-2: #111318;
    --surface: rgb(24 27 33 / 0.66);
    --surface-solid: #16191e;
    --ink: #eceef1;
    --ink-2: #c3c8cf;
    --muted: #8f96a1;
    --line: #262a31;
    --line-strong: #3a3f48;
    --glow: rgb(255 255 255 / 0.12);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 60px -28px rgb(0 0 0 / 0.9);
    --metal-text: linear-gradient(100deg, #8d949e 0%, #f5f7f9 20%, #aeb4bd 40%, #ffffff 58%, #8a919b 78%, #dfe2e6 100%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-2: #111318;
  --surface: rgb(24 27 33 / 0.66);
  --surface-solid: #16191e;
  --ink: #eceef1;
  --ink-2: #c3c8cf;
  --muted: #8f96a1;
  --line: #262a31;
  --line-strong: #3a3f48;
  --glow: rgb(255 255 255 / 0.12);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 60px -28px rgb(0 0 0 / 0.9);
  --metal-text: linear-gradient(100deg, #8d949e 0%, #f5f7f9 20%, #aeb4bd 40%, #ffffff 58%, #8a919b 78%, #dfe2e6 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 520px);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface-solid); padding: 8px 14px; border-radius: 10px; }

/* ---------- Metal ---------- */
.metal-text {
  background: var(--metal-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--metal-edge);
}
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-metal {
  color: var(--metal-ink);
  background: var(--metal);
  border: 1px solid #a3aab4;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 10px 24px -12px rgb(0 0 0 / 0.55);
}
.btn-metal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.85) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-metal:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* A card with a silver hairline that brightens on hover. */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--line-strong), var(--line) 40%, var(--line) 60%, var(--line-strong));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background .3s ease;
}
.card:hover::before { background: var(--metal-edge); }
.card:hover { transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img {
  width: 34px; height: 34px; padding: 5px; border-radius: 10px;
  background: linear-gradient(160deg, #2a2e35, #0d0f12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 1px #9aa1ab55, 0 6px 14px -8px rgb(0 0 0 / 0.6);
}
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 8px; }
.site-nav + .tools { margin-left: 8px; }
.lang, .theme-toggle {
  display: inline-grid; place-items: center;
  height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: 600 13px/1 var(--font); letter-spacing: .06em; text-decoration: none; cursor: pointer;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.theme-toggle[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  animation: sheen 9s ease-in-out infinite;
}
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure { position: relative; margin: 0; }
.frame {
  position: relative; border-radius: 28px; padding: 6px;
  background: var(--metal-edge);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.7);
}
.frame img { border-radius: 23px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.frame::after {
  content: ""; position: absolute; inset: 6px; border-radius: 23px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.18), transparent 35%);
}
.hero-figure figcaption {
  position: absolute; left: -22px; bottom: 34px;
  padding: 14px 18px; font-size: 14px; line-height: 1.35;
}
.hero-figure figcaption strong { display: block; font-size: 15px; }
.hero-figure figcaption span { color: var(--muted); }

/* Key facts under the hero. */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; margin-top: 56px; }
.fact { padding: 18px 22px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2 {
  margin: 14px 0 12px; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 18px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 28px 26px 30px; }
.service .num { font: 600 13px/1 var(--font); letter-spacing: .14em; color: var(--muted); }
.service h3 { margin: 18px 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Brands */
.brands { display: grid; gap: 22px; }
.brand-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.brand-card.flip .brand-media { order: 2; }
.brand-body { padding: 44px 44px 48px; display: flex; flex-direction: column; gap: 14px; }
.brand-body h3 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1.05; }
.brand-body p { margin: 0; color: var(--ink-2); }
.brand-body .btn { align-self: flex-start; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.brand-media { position: relative; min-height: 340px; overflow: hidden; border-radius: 0 var(--radius) var(--radius) 0; }
.brand-card.flip .brand-media { border-radius: var(--radius) 0 0 var(--radius); }
.brand-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.brand-card:hover .brand-media img { transform: scale(1.04); }
.brand-media.phone-stage {
  display: grid; place-items: center; padding: 40px 0;
  background: radial-gradient(60% 60% at 50% 40%, var(--glow), transparent 70%), linear-gradient(160deg, var(--bg-2), var(--bg));
}
.phone {
  position: relative; width: 230px; padding: 9px; border-radius: 38px;
  background: var(--metal-edge);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / 0.75);
  transform: rotate(-4deg);
  transition: transform .6s ease;
}
.brand-card:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone img { position: static; border-radius: 30px; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

/* Full-bleed picture band */
.band { position: relative; padding: 0; min-height: 440px; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(8 9 11 / 0.78)); }
.band blockquote { margin: 0; padding: 0 0 56px; color: #f3f5f7; }
.band blockquote p { margin: 0; max-width: 22em; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.band blockquote footer { margin-top: 14px; color: #c3c8cf; font-size: 15px; }

.principle { padding: 30px 28px; }
.principle .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--metal); border: 1px solid #a3aab4; color: var(--metal-ink);
  box-shadow: inset 0 1px 0 #fff;
}
.principle .icon svg { width: 22px; height: 22px; }
.principle h3 { margin: 20px 0 8px; font-size: 19px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Board */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; }
.person { display: flex; gap: 20px; align-items: center; padding: 26px; }
.avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 22px; letter-spacing: .02em;
  color: var(--metal-ink); background: var(--metal); border: 1px solid #a3aab4;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -14px rgb(0 0 0 / 0.6);
}
.person h3 { margin: 0; font-size: 19px; }
.person p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Team photos: drop img/team-1.webp (both, landscape), team-2.webp and team-3.webp (portraits) into
   site/img/ and they cover the placeholder; until then the silver placeholder shows. */
.photos { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.photo {
  position: relative; margin: 0; border-radius: var(--radius); padding: 5px;
  background: var(--metal-edge); box-shadow: var(--shadow);
}
.photo.main { grid-row: span 2; }
.photo .slot {
  position: relative; overflow: hidden; height: 100%; min-height: 220px; border-radius: 18px;
  display: grid; place-items: center; text-align: center; color: #c3c8cf;
  padding-bottom: 48px;
  background:
    radial-gradient(70% 60% at 50% 35%, rgb(255 255 255 / 0.10), transparent 70%),
    linear-gradient(160deg, #23272e, #0c0e11);
}
.photo.main .slot { min-height: 460px; }
.photo .slot span { display: grid; gap: 10px; justify-items: center; font-size: 14px; letter-spacing: .04em; }
.photo .slot img { width: 54px; height: 54px; opacity: .9; }
.photo .slot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--src) center / cover no-repeat;
}
.photo figcaption {
  position: absolute; left: 18px; bottom: 18px; z-index: 1;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #f3f5f7; background: rgb(10 11 13 / 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
@media (max-width: 860px) {
  .photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo.main { grid-column: span 2; grid-row: auto; }
  .photo.main .slot { min-height: 0; aspect-ratio: 3 / 2; }
  .photo .slot { min-height: 0; aspect-ratio: 4 / 5; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; }
.contact-main { padding: 44px; }
.contact-main h2 { margin: 14px 0 12px; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.08; }
.contact-main p { color: var(--ink-2); margin: 0 0 28px; }
.contact-list { display: grid; gap: 12px; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.contact-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.contact-list a:hover { border-color: var(--ink); }
.address { padding: 36px; font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.address strong { font-size: 19px; margin-bottom: 4px; }
.address .muted { color: var(--muted); }
.address .verify { margin-top: auto; padding-top: 20px; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { margin: 0; line-height: 1.7; }
.legal-line strong { color: var(--ink); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; margin: 16px 0 12px; }
.legal .intro { color: var(--ink-2); margin: 0 0 40px; }
.legal h2 { font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .panel { padding: 28px 30px; }
.legal dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 10px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.legal .updated { margin-top: 48px; color: var(--muted); font-size: 14px; }

/* ---------- Motion ---------- */
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.frame img { animation: drift 14s ease-out both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .site-nav { display: none; }
  .tools, .site-nav + .tools { margin-left: auto; }
  .hero { padding-top: 44px; }
  .hero-grid, .contact-grid, .brand-card { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; }
  .hero-figure figcaption { left: 12px; bottom: 12px; }
  .brand-card.flip .brand-media { order: 0; }
  .brand-media, .brand-card.flip .brand-media { border-radius: var(--radius) var(--radius) 0 0; min-height: 260px; }
  .brand-body { padding: 30px 26px 34px; }
  .grid-3, .people { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .contact-main, .address { padding: 28px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
  .contact-list div { grid-template-columns: 1fr; gap: 0; }
}
