/* LogMonks — home page.
   Hover rules are written with higher specificity than their base rule so they
   always win, matching the design's `style-hover` behaviour. */

/* ---------- Base ---------- */

html{scroll-behavior:smooth}
body{margin:0;background:#faf8f3;color:#111;font-family:'Instrument Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:#007bff}
*{box-sizing:border-box}
::selection{background:#ffa62b;color:#111}

@keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes draw{from{width:0}to{width:100%}}
@keyframes tint{from{color:#111}to{color:#34c759}}
@keyframes fade{to{opacity:0}}
@keyframes floaty{0%,100%{transform:rotate(-8deg) translateY(0)}50%{transform:rotate(-6deg) translateY(-18px)}}

.c-blue{color:#007bff}
.c-red{color:#ff4f3e}
.c-orange{color:#ffa62b}
.c-green{color:#34c759}
.bg-blue{background:#007bff}
.bg-red{background:#ff4f3e}
.bg-orange{background:#ffa62b}
.bg-green{background:#34c759}

.container{max-width:1400px;margin:0 auto}
.section{padding:clamp(72px,10vh,140px) clamp(20px,4vw,48px)}
.section-title{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(44px,6.4vw,104px);line-height:.92;letter-spacing:-.04em;margin:0}

/* ---------- Cursor follower ---------- */

.cursor{position:fixed;left:0;top:0;width:18px;height:18px;border-radius:50%;background:#007bff;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);mix-blend-mode:multiply;opacity:0;transition:width .25s,height .25s,background .25s,opacity .3s;will-change:transform}

/* ---------- Header ---------- */

.site-header{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:20px clamp(20px,4vw,48px);background:rgba(250,248,243,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(0,0,0,.05)}
.site-header__logo{height:30px;display:block}
.site-nav{display:flex;gap:clamp(16px,2.5vw,32px);align-items:center;font-size:15px;font-weight:500;white-space:nowrap}
.site-nav__link--approach:hover{color:#007bff}
.site-nav__link--products:hover{color:#ff4f3e}
.site-nav__link--industries:hover{color:#34c759}
.site-nav__cta{background:#111;color:#fff;padding:10px 18px;border-radius:999px;transition:background .2s}
.site-nav__cta:hover{background:#007bff;color:#fff}

/* ---------- Mobile tab bar (shown ≤760px) ---------- */

.tabbar{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:60;display:none;gap:4px;padding:6px;background:rgba(11,11,13,.94);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:22px;box-shadow:0 12px 40px -12px rgba(0,0,0,.5)}
.tabbar__link{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;font-size:11px;font-weight:600;letter-spacing:.02em;border-radius:14px;transition:all .2s}
.tabbar__link,.tabbar__link:hover{color:#a9a7a1}
.tabbar__link--home:active{background:#1c1c20;color:#007bff}
.tabbar__link--approach:active{background:#1c1c20;color:#ffa62b}
.tabbar__link--products:active{background:#1c1c20;color:#ff4f3e}
.tabbar__link--idea:active{background:#1c1c20;color:#34c759}
.tabbar__icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center}

/* ---------- Hero ---------- */

.hero{position:relative;min-height:calc(100vh - 71px);display:flex;flex-direction:column;padding:clamp(40px,6vh,80px) clamp(20px,4vw,48px) clamp(32px,5vh,56px);overflow:hidden}
.hero__mark{position:absolute;right:-12vw;bottom:-14vw;width:clamp(420px,62vw,980px);animation:floaty 9s ease-in-out infinite;pointer-events:none}
.hero__inner{margin-top:auto;position:relative;max-width:1400px}
.hero__eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:#555;margin-bottom:22px;animation:rise .7s both}
.hero__dot{width:10px;height:10px;border-radius:50%;background:#34c759;display:inline-block}
.hero__title{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(52px,9.4vw,136px);line-height:.92;letter-spacing:-.04em;margin:0;max-width:11ch;text-wrap:balance;animation:rise .8s .1s both}
/* "idea": a green line draws under it, the word takes the colour, then the line fades (a coloured word that stays underlined reads as a link) */
.hero__word{position:relative;display:inline-block;animation:tint .5s 1.8s both}
.hero__underline{position:absolute;left:0;top:.86em;height:.06em;background:#34c759;border-radius:4px;width:100%;animation:draw .9s 1.2s both,fade .45s 2.3s forwards}
.hero__foot{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px;margin-top:clamp(28px,4vh,44px);animation:rise .8s .25s both}
.hero__lede{margin:0;max-width:440px;font-size:clamp(17px,1.4vw,20px);line-height:1.4;color:#333;text-wrap:pretty}
.hero__actions{display:flex;flex-wrap:wrap;gap:14px}

.btn{padding:18px 28px;border-radius:999px;font-weight:600;font-size:17px;transition:all .25s;display:inline-block;white-space:nowrap}
.btn--solid{background:#111;color:#fff}
.btn--solid:hover{background:#007bff;color:#fff;transform:translateY(-3px)}
.btn--outline{border:2px solid #111;padding:16px 26px}
.btn--outline:hover{background:#111;color:#fff}

/* ---------- Three things ---------- */

.three{background:#f1ede4;color:#111}
.three__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:24px 40px;margin-bottom:clamp(40px,6vh,72px)}
.three__title{max-width:14ch;text-wrap:balance}
.three__intro{margin:0;font-size:clamp(16px,1.3vw,20px);line-height:1.45;color:#444;max-width:380px;text-wrap:pretty}
.three__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,48px)}
.pillar{padding:28px 0 8px;border-top:3px solid var(--accent);min-width:0}
.pillar--red{--accent:#ff4f3e}
.pillar--orange{--accent:#ffa62b}
.pillar--green{--accent:#34c759}
.pillar__no{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:14px;letter-spacing:.12em;color:var(--accent);margin-bottom:18px}
.pillar__title{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(34px,4vw,64px);line-height:.95;letter-spacing:-.04em;margin-bottom:18px;text-wrap:balance}
.pillar__text{margin:0;font-size:clamp(15px,1.2vw,18px);line-height:1.5;color:#444;max-width:360px;text-wrap:pretty}
.three__close{margin:clamp(40px,6vh,72px) 0 0;font-family:'Bricolage Grotesque',sans-serif;font-weight:600;font-size:clamp(20px,2vw,30px);line-height:1.25;letter-spacing:-.02em;max-width:820px;text-wrap:balance}

/* ---------- Approach ---------- */

.approach{background:#0b0b0d;color:#f4f2ec}
.approach__head{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:40px;align-items:end;margin-bottom:clamp(48px,7vh,88px)}
.approach__title{text-wrap:balance}
.approach__intro{margin:0;font-size:clamp(17px,1.3vw,20px);line-height:1.45;color:#a9a7a1;max-width:520px;text-wrap:pretty}

.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px}
.step{position:relative;min-width:0}
.step__card{border:1px solid #26262a;border-radius:18px;padding:30px 26px;min-height:340px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;background:#111114;transition:all .35s cubic-bezier(.2,.8,.2,1)}
.step__card--blue:hover{background:#007bff;border-color:#007bff;color:#fff;transform:translateY(-6px)}
.step__card--red:hover{background:#ff4f3e;border-color:#ff4f3e;color:#fff;transform:translateY(-6px)}
.step__card--orange:hover{background:#ffa62b;border-color:#ffa62b;color:#111;transform:translateY(-6px)}
.step__card--green:hover{background:#34c759;border-color:#34c759;color:#111;transform:translateY(-6px)}
.step__mark{position:absolute;width:280px;opacity:.9;pointer-events:none}
.step__mark--1{right:-120px;top:-70px;transform:rotate(-18deg)}
.step__mark--2{right:-120px;top:-60px;transform:rotate(70deg)}
.step__mark--3{left:-130px;top:-60px;transform:rotate(12deg)}
.step__mark--4{right:-110px;top:-80px;width:300px;transform:rotate(-100deg)}
.step__num{position:relative;align-self:flex-start;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:15px;letter-spacing:.1em;padding:6px 10px;border-radius:999px;background:rgba(11,11,13,.55);backdrop-filter:blur(4px)}
.step__body{position:relative;min-height:170px}
/* wraps (balanced) only when a card is too narrow for the title, e.g. tablets around 761–1026px */
.step__title{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(18px,1.75vw,28px);letter-spacing:-.02em;margin:0 0 12px;line-height:1.1;text-wrap:balance}
.step__text{margin:0;font-size:clamp(14px,1.1vw,16px);line-height:1.5;opacity:.82;text-wrap:pretty}
.step__arrow{position:absolute;right:-30px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;background:#f4f2ec;color:#111;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;z-index:2;box-shadow:0 0 0 6px #0b0b0d}
.steps-hint{display:none;align-items:center;gap:8px;margin-top:14px;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#6d6b66}
.steps-hint__dash{width:18px;height:2px;background:#ffa62b;border-radius:2px}

.approach__foot{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:40px;align-items:start;margin-top:clamp(56px,8vh,96px);padding-top:clamp(32px,4vh,48px);border-top:1px solid #26262a}
.approach__claim{margin:0;font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(28px,3.2vw,48px);line-height:1.05;letter-spacing:-.03em;text-wrap:balance}
.approach__detail{margin:0;font-size:clamp(16px,1.3vw,20px);line-height:1.5;color:#a9a7a1;max-width:560px;text-wrap:pretty}

/* ---------- Work ---------- */

.work{background:#faf8f3}
.work__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:24px;margin-bottom:clamp(36px,5vh,64px)}
.work__all{font-weight:600;font-size:17px;border-bottom:2px solid #111;padding-bottom:2px;white-space:nowrap}
.work__all:hover{color:#ff4f3e;border-color:#ff4f3e}

.products{display:flex;flex-direction:column;border-top:1px solid rgba(0,0,0,.12)}
.product{display:grid;grid-template-columns:72px minmax(0,1.2fr) minmax(0,1.6fr) auto;gap:24px;align-items:center;padding:30px 12px;border-bottom:1px solid rgba(0,0,0,.12);transition:all .3s;position:relative;color:#111}
.product:hover{background:#111;color:#fff;padding-left:28px}
.product__no{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:15px;letter-spacing:.1em;opacity:.55}
.product__name{display:flex;align-items:center;gap:14px}
.product__dot{width:14px;height:14px;border-radius:50%;flex:none}
.product__title{font-family:'Bricolage Grotesque',sans-serif;font-weight:700;font-size:clamp(28px,3vw,44px);letter-spacing:-.03em;line-height:1}
.product__blurb{font-size:clamp(15px,1.2vw,18px);line-height:1.45;opacity:.75;text-wrap:pretty}
.product__tag{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.6;white-space:nowrap}

/* ---------- Industries ---------- */

.industries{background:#007bff;color:#fff;overflow:hidden}
.industries__eyebrow{font-size:13px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.8;margin-bottom:28px}
.industries__list{display:flex;flex-direction:column}
.industry{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;padding:18px 0;border-top:1px solid rgba(255,255,255,.28);transition:padding-left .3s}
.industry:hover{padding-left:24px}
.industry__name{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(40px,7vw,112px);line-height:.95;letter-spacing:-.04em}
.industry__note{font-size:clamp(15px,1.2vw,18px);opacity:.85;max-width:420px;text-wrap:pretty}

/* ---------- Idea ---------- */

.idea{background:#faf8f3}
.idea__grid{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:clamp(32px,5vw,80px);align-items:start}
.idea__title{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(48px,7vw,120px);line-height:.9;letter-spacing:-.04em;margin:0 0 24px;text-wrap:balance}
.idea__lede{margin:0 0 28px;font-size:clamp(17px,1.4vw,21px);line-height:1.45;color:#333;max-width:460px;text-wrap:pretty}
.idea__points{display:flex;flex-direction:column;gap:10px;font-size:15px;color:#555}
.idea__point{display:flex;gap:10px;align-items:center}
.idea__dot{width:8px;height:8px;border-radius:50%}
.idea__mail{text-decoration:underline}
.idea__mail:hover{color:#ffa62b}

.idea-form{background:#111;color:#fff;border-radius:22px;padding:clamp(24px,3vw,40px);display:flex;flex-direction:column;gap:14px}
.idea-form__field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#a9a7a1}
.idea-form__textarea{resize:vertical;background:#faf8f3;color:#111;border:0;border-radius:12px;padding:16px 18px;font:16px/1.5 ui-monospace,Menlo,monospace;outline:none;width:100%}
.idea-form__row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.idea-form__input{background:#1c1c20;color:#fff;border:1px solid #2a2a2e;border-radius:12px;padding:14px 16px;font:16px 'Instrument Sans',sans-serif;outline:none;width:100%}
.idea-form__submit{margin-top:8px;background:#fff;color:#111;border:0;padding:18px 28px;border-radius:999px;font:600 17px 'Instrument Sans',sans-serif;cursor:pointer;transition:all .25s}
.idea-form__submit:hover{background:#34c759;color:#111;transform:translateY(-2px)}

.roles{display:flex;flex-wrap:wrap;gap:8px}
.role{background:transparent;color:#fff;border:1px solid #3a3a3e;padding:11px 16px;min-height:44px;border-radius:999px;font:500 14px 'Instrument Sans',sans-serif;cursor:pointer;transition:all .2s;white-space:nowrap}
.role[aria-pressed="true"]{background:#fff;color:#111;border-color:#fff}

/* ---------- Footer ---------- */

.site-footer{background:#0b0b0d;color:#a9a7a1;padding:clamp(48px,7vh,80px) clamp(20px,4vw,48px) 32px}
.site-footer__inner{max-width:1400px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.site-footer__top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}
.site-footer__logo{height:30px}
.site-footer__nav{display:flex;flex-wrap:wrap;gap:28px;font-size:15px;font-weight:500;white-space:nowrap}
.site-footer__nav a:hover{color:#fff}
.site-footer__motto{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:clamp(40px,10.5vw,200px);line-height:1.1;letter-spacing:-.05em;color:#1c1c20;user-select:none;white-space:nowrap}
.site-footer__legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:13px;border-top:1px solid #1c1c20;padding-top:20px}

/* ---------- Mobile ---------- */

@media (max-width:760px){
  body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  .site-header{padding:14px 20px}
  .site-nav{display:none}
  .tabbar{display:flex}

  .hero{min-height:calc(100svh - 58px);padding:32px 20px 28px}
  .hero__mark{right:-34vw;bottom:-22vw;width:120vw;opacity:.55}
  .hero__title{font-size:clamp(46px,14.5vw,64px);max-width:none}
  .hero__foot{flex-direction:column;align-items:stretch;gap:22px}
  .hero__actions{flex-direction:column}
  .hero__actions .btn{text-align:center;padding:17px 24px}

  .section{padding:56px 20px}
  .section-title,.idea__title{font-size:clamp(38px,11.5vw,52px)}

  .three__grid{display:flex;flex-direction:column;gap:0}
  .pillar{padding:22px 0;border-top-width:2px}
  .pillar__title{font-size:34px;margin-bottom:10px}

  /* the four steps become a full-bleed swipe carousel */
  .steps{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -20px;padding:0 20px 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .steps::-webkit-scrollbar{display:none}
  .step{flex:0 0 82vw;scroll-snap-align:center}
  .step__card{min-height:300px;padding:24px 22px}
  .step__title{font-size:24px}
  .step__text{font-size:15px}
  .step__arrow{display:none}
  .steps-hint{display:flex}

  .product{grid-template-columns:1fr;gap:10px;padding:22px 0;border-radius:0}
  .product__no{display:none}
  .product__tag{order:-1;font-size:11px}
  .product__title{font-size:36px}

  .industry{flex-direction:column;align-items:flex-start;gap:6px}
  .industry__name{font-size:clamp(34px,11vw,48px)}

  .idea__grid{grid-template-columns:1fr;gap:28px}
  .idea-form{border-radius:20px;padding:22px 18px;margin:0 -6px}
  .idea-form__textarea,.idea-form__input{font-size:16px}
  .idea-form__submit{min-height:46px}

  .site-footer__inner{gap:28px}
  .site-footer__nav{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;white-space:normal}
  .site-footer__motto{font-size:clamp(34px,13vw,60px);white-space:normal;line-height:.95}
}

/* ---------- Print ---------- */

@media print{
  @page{margin:.5cm}
  *,*::before,*::after{
    print-color-adjust:exact;-webkit-print-color-adjust:exact;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
    animation-delay:-99s!important;animation-duration:.001s!important;
    animation-iteration-count:1!important;animation-fill-mode:both!important;
    animation-play-state:running!important;transition-duration:0s!important
  }
}
