/* Obfendo — obfendo.com
   Quiet gallery of light fittings; the only colour on the site is the light itself.
   Tokens ---------------------------------------------------------------- */
:root {
  --paper:    #ffffff;   /* tiles, cards */
  --mist:     #f3f3f1;   /* page */
  --graphite: #1d1d1f;   /* text */
  --slate:    #707070;   /* secondary text */
  --hair:     #e2e2df;   /* rules */
  --light:    255, 196, 137;   /* current light colour (rgb), set by the colour-temperature dial */
  --font: 'Jost', 'Futura', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--graphite); background: var(--mist); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--graphite); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type: product names / wordmark in spaced capitals, everything else sentence case */
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { margin: 0 0 1em; max-width: 62ch; }
.muted { color: var(--slate); }

/* Header ------------------------------------------------------------------ */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(243, 243, 241, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--hair); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { text-decoration: none; font-size: 1.05rem; letter-spacing: .42em; font-weight: 500; text-transform: uppercase; padding-left: .42em; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }
.nav a { text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--graphite); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--graphite); margin: 5px 0; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--gut) 24px; background: var(--mist); border-bottom: 1px solid var(--hair); display: none; }
  .nav.open { display: flex; }
  .nav a { font-size: .9rem; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--hair); }
}

/* Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid var(--graphite); background: var(--graphite); color: #fff; text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--graphite); }
.btn.ghost:hover { background: var(--graphite); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero: one fitting in a ceiling, its beam and pool of light follow the dial ---- */
.hero { position: relative; min-height: min(92vh, 860px); overflow: hidden; background: #dcdbd7; isolation: isolate; }
.hero::before { /* the room, a little dim so any light reads as light */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(70% 60% at 50% 88%, rgba(var(--light), .35), transparent 70%), linear-gradient(#e4e3df, #d6d5d0);
}
.hero-ceiling { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: #f3f3f1; border-bottom: 1px solid #cfcfca; }
.hero-fixture { position: absolute; left: 50%; top: 26%; width: clamp(110px, 12vw, 170px); transform: translate(-50%, -50%); mix-blend-mode: multiply; z-index: 2; }
.hero-beam { position: absolute; left: 50%; top: 26%; width: min(78vw, 860px); height: 74%; transform: translateX(-50%); z-index: -1;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(to bottom, rgba(var(--light), .9), rgba(var(--light), .3) 60%, rgba(var(--light), .05));
  filter: blur(14px); }
.hero-pool { position: absolute; left: 50%; bottom: -6%; width: min(90vw, 1000px); height: 26%; transform: translateX(-50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--light), .75), transparent); }
.hero-copy { position: absolute; left: var(--gut); bottom: clamp(32px, 7vh, 72px); max-width: 520px; z-index: 3; }
.hero-copy p { font-size: 1.08rem; color: #2f2f31; margin: 18px 0 26px; }
.hero-dial { position: absolute; right: var(--gut); bottom: clamp(32px, 7vh, 72px); width: min(360px, calc(100% - 2 * var(--gut))); z-index: 3; }
.hero-dial label { display: block; font-size: .8rem; color: #555; margin-bottom: 10px; }
.hero-dial output { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.hero-dial .dial-note { font-size: .9rem; color: #3d3d3f; min-height: 1.5em; }
.cct-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 16px 0 8px; border-radius: 3px; cursor: pointer;
  background: linear-gradient(90deg, rgb(255,158,72), rgb(255,178,104), rgb(255,226,192), rgb(246,241,236), rgb(206,224,255)); outline-offset: 6px; }
.cct-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--graphite); box-shadow: 0 0 0 4px rgba(var(--light), .45); }
.cct-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--graphite); }
.dial-ticks { display: flex; justify-content: space-between; font-size: .72rem; color: #555; }
@media (max-width: 760px) {
  .hero { min-height: 760px; }
  .hero-copy { bottom: auto; top: 44%; right: var(--gut); }
  .hero-dial { bottom: 28px; left: var(--gut); right: var(--gut); width: auto; }
}

/* Sections ----------------------------------------------------------------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 8px 0 0; color: var(--slate); }
.link-line { text-decoration: none; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--graphite); padding-bottom: 4px; }

/* Range: indoor / outdoor */
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--hair); }
.range-col { background: var(--paper); padding: clamp(28px, 4vw, 56px); }
.range-col h3 { font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; margin-bottom: 26px; }
.range-col ul { list-style: none; margin: 0; padding: 0; }
.range-col li a { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--hair); text-decoration: none; font-size: 1.15rem; }
.range-col li a span { color: var(--slate); font-size: .85rem; font-variant-numeric: tabular-nums; }
.range-col li a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 760px) { .range { grid-template-columns: 1fr; } }

/* Product tiles: small fitting, big white square */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tile { text-decoration: none; display: block; }
.tile-frame { aspect-ratio: 1 / 1; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.tile-frame img { width: 100%; height: 100%; object-fit: contain; padding: 18%; mix-blend-mode: multiply; }
.tile-frame .noimg { width: 34px; height: 34px; border: 1px solid #d0d0cc; border-radius: 50%; }
.tile-name { margin-top: 18px; text-align: center; font-size: .92rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; line-height: 1.4; }
.tile-type { text-align: center; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
.tile:hover .tile-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); } .tile-name { font-size: .78rem; letter-spacing: .14em; } }
/* featured row: always six, so 6 / 3 / 2 columns fill evenly */
.grid.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .grid.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .grid.six { grid-template-columns: repeat(2, 1fr); } }

/* Process (a real sequence, so numbered) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: var(--hair); counter-reset: s; }
.steps li { background: var(--mist); padding: 32px 28px 36px; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 22px; color: rgba(29,29,31,.28); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--slate); margin: 0; font-size: .95rem; }

/* Visit / contact band */
.band { background: var(--graphite); color: #f1f1ef; }
.band .muted { color: #a7a7a3; }
.band .btn { background: #fff; color: var(--graphite); border-color: #fff; }
.band .btn.ghost { background: transparent; color: #fff; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } }

/* Products page ------------------------------------------------------------ */
.page-head { padding: clamp(48px, 7vw, 88px) 0 28px; }
.page-head p { color: var(--slate); margin-top: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 40px; }
.seg { display: inline-flex; border: 1px solid var(--graphite); }
.seg button { background: none; border: 0; padding: 10px 20px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: none; border: 1px solid #cfcfcb; padding: 7px 14px; font-size: .86rem; cursor: pointer; border-radius: 999px; }
.chip[aria-pressed="true"] { border-color: var(--graphite); background: var(--paper); }
.chip span { color: var(--slate); margin-left: 6px; font-size: .78rem; }
.search { border: 0; border-bottom: 1px solid var(--graphite); background: transparent; padding: 8px 2px; width: 220px; }
.search:focus { outline: none; border-bottom-width: 2px; }
.count { color: var(--slate); font-size: .9rem; margin: -18px 0 28px; }
.empty { padding: 60px 0; text-align: center; color: var(--slate); }

/* Product page -------------------------------------------------------------- */
.crumbs { font-size: .82rem; color: var(--slate); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: 28px 0 40px; align-items: start; }
.pd-main { background: var(--paper); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-thumbs button { width: 76px; height: 76px; background: var(--paper); border: 1px solid transparent; padding: 6px; cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--graphite); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; line-height: 1.25; }
.pd-type { margin-top: 10px; color: var(--slate); }
.pd-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 6px; padding: 16px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pd-facts div { font-size: .82rem; color: var(--slate); }
.pd-facts b { display: block; color: var(--graphite); font-weight: 500; font-size: 1rem; }
.opt { margin-top: 26px; }
.opt h2 { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.opt ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opt li { border: 1px solid #d3d3cf; background: var(--paper); padding: 6px 12px; font-size: .88rem; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: none; }
.pd-cta { margin-top: 34px; }
.pd-cta p { font-size: .88rem; color: var(--slate); margin-top: 12px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
table.spec th, table.spec td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--hair); white-space: nowrap; }
table.spec th { font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
table.spec td.wrap-ok { white-space: normal; }
.pd-tables { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding-bottom: 40px; }
.pd-tables h2 { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 860px) { .pd, .pd-tables { grid-template-columns: 1fr; } }

/* About / contact ------------------------------------------------------------ */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.facts-list { list-style: none; padding: 0; margin: 0; }
.facts-list li { padding: 16px 0; border-top: 1px solid var(--hair); }
.facts-list li b { display: block; font-weight: 500; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .84rem; color: var(--slate); }
.form input, .form textarea, .form select { border: 1px solid #cfcfcb; background: var(--paper); padding: 12px 14px; font-size: 1rem; color: var(--graphite); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--graphite); outline-offset: 0; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }

/* Footer -------------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--hair); padding: 56px 0 40px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 6px 0; }
.foot-grid a { text-decoration: none; color: var(--slate); }
.foot-grid a:hover { color: var(--graphite); }
.foot-base { margin-top: 44px; color: var(--slate); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
