/* ==========================================================================
   eyeHand — site styles
   One file for the whole site. Sections follow the page order.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Futura BT"; font-weight: 300; src: url("../fonts/futura-bt-light.woff2") format("woff2"), url("../fonts/futura-bt-light.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Futura BT"; font-weight: 400; src: url("../fonts/futura-bt-book.woff2") format("woff2"), url("../fonts/futura-bt-book.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Futura BT"; font-weight: 500; src: url("../fonts/futura-bt-medium.woff2") format("woff2"), url("../fonts/futura-bt-medium.woff") format("woff"); font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --orange: #f56706;
  --orange-dark: #d95a04;
  --text: #818181;
  --text-strong: #4c4c4c;
  --dark: #303030;
  --bg: #f6f6f6;
  --white: #fff;
  --footer: #333;
  --footer-bottom: #232323;
  --display: "Futura BT", "Century Gothic", "Avenir", sans-serif;
  --body: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1100px;
  --header-h: 100px;
  --header-h-small: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-small); }
body { margin: 0; font: 400 14px/26px var(--body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4, h5 { color: var(--dark); margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.orange { color: var(--orange); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 13px/1 var(--ui); letter-spacing: 1px; text-transform: uppercase; padding: 12px 22px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-light { background: var(--white); color: #000; width: 100%; text-align: center; font-weight: 400; font-size: 15px; }
.btn-light:hover { background: var(--dark); color: var(--white); }
.btn-dark { background: transparent; border-color: var(--dark); color: var(--dark); }
.btn-dark:hover { background: var(--dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--dark); color: var(--dark); font-size: 12px; padding: 9px 17px; }
.btn-outline:hover { background: var(--dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); transition: height .3s, background .3s, box-shadow .3s; }
.page .site-header, .site-header.is-scrolled { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.site-header.is-scrolled { height: var(--header-h-small); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 84px; width: auto; transition: height .3s; }
.is-scrolled .logo img { height: 46px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 0 17px; font: 600 13px/var(--header-h) var(--ui); letter-spacing: 1px; text-transform: uppercase; color: #f26722; transition: line-height .3s; }
.is-scrolled .main-nav > ul > li > a { line-height: var(--header-h-small); }
.main-nav > ul > li > a:hover { color: var(--dark); }
.main-nav .sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--dark); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.main-nav > ul > li:last-child .sub { left: auto; right: 0; }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { display: block; padding: 8px 20px; font: 600 11px/16px var(--ui); letter-spacing: 1px; text-transform: uppercase; color: #9d9d9d; }
.main-nav .sub a:hover { color: var(--white); }
.menu-toggle { display: none; }
.home main { padding-top: 0; }
.page main { padding-top: var(--header-h); }

/* ---------- Hero video ---------- */
.hero { position: relative; background: #000; }
.hero-video { width: 100%; max-height: 100vh; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots { gap: 4px; }
.hero-dots button { width: 32px; height: 32px; border: 0; background: transparent; padding: 0; cursor: pointer; opacity: .85; position: relative; }
.hero-dots button::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid var(--white); }
.hero-dots button.active::before { background: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-title { font: 500 38px/1.1 var(--display); letter-spacing: 1px; text-transform: uppercase; color: var(--orange); text-align: center; margin: 0 0 40px; }
.section-title.left { text-align: left; }
.section-title.light { color: var(--white); }
.lead { font: 400 28px/48px var(--display); color: var(--text-strong); }
.lead strong { font-weight: 500; }
.subtitle { font: 400 23px/1.4 var(--ui); color: #434242; text-align: center; margin-top: -20px; }

/* Full-width photo strips between sections */
.band { height: 500px; background: center / cover no-repeat; }

/* Parallax (js/main.js): the photo moves slower than the page, on every device.
   Without JavaScript the photo simply stays still. */
.parallax { position: relative; overflow: hidden; }
.parallax.js-parallax { background-image: none !important; }
.parallax-bg { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: center / cover no-repeat; will-change: transform; z-index: 0; pointer-events: none; }

/* ---------- Intro ---------- */
.intro .two-col { grid-template-columns: 535px 1fr; }
.intro-animation { justify-self: center; }

/* ---------- Applications ---------- */
.apps { padding-bottom: 0; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.app-tile { position: relative; display: block; overflow: hidden; background: #000; }
.app-tile img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform .4s, opacity .4s; }
.app-title { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font: 600 22px/1.3 var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--white); background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.app-tile:hover .app-title, .app-tile:focus .app-title { opacity: 1; }
.app-tile:hover img { transform: scale(1.04); }

/* ---------- About ---------- */
.about .lead { font-size: 26px; line-height: 46px; }
.about-row { grid-template-columns: 1fr 380px; margin-top: 30px; }
.about-photo { border-radius: 50%; }

/* ---------- Join the team ---------- */
.join-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-top: 40px; }
.join-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.join-card img { width: 200px; }
.join-panel { margin-top: 60px; font: 400 17px/30px var(--display); color: var(--text-strong); }
.join-panel .two-col { align-items: start; }
.join-panel h3 { font: 600 17px/1.3 var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.join-title { max-width: 230px; margin-bottom: 20px; }

/* ---------- Contact form ---------- */
.contact { background: var(--orange); color: var(--white); }
.contact-intro { text-align: center; font: 400 18px/1.5 var(--ui); margin-top: -20px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; max-width: 900px; margin: 30px auto 0; font: 400 14px/1.4 var(--ui); }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 16px/1.4 var(--ui); border-radius: 0; -webkit-appearance: none; appearance: none; padding: 12px 14px; border: 0; background: var(--white); color: var(--dark); width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form select { padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23303030' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.contact-form :focus { outline: 2px solid var(--dark); outline-offset: 1px; }
.contact-form .btn-dark { border-color: var(--white); color: var(--white); }
.contact-form .btn-dark:hover { background: var(--white); color: var(--orange); }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-actions { display: flex; align-items: center; gap: 20px; }
.form-status { margin: 0; font-weight: 600; }
.form-note { margin: 0; font-size: 13px; opacity: .9; }
.hp { position: absolute; left: -9999px; }

/* ---------- Social ---------- */
.socials { background: center / cover no-repeat; padding: 120px 0; position: relative; }
.socials::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); z-index: 1; }
.social-row { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 30px; color: var(--white); }
.social:hover { color: var(--white); }
.social-icon { width: 138px; height: 138px; border: 2px solid var(--white); border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.social-icon svg { width: 56px; height: 56px; fill: var(--white); transition: fill .2s; }
.social:hover .social-icon { background: var(--white); }
.social:hover .social-icon svg { fill: var(--orange); }
.social-label { font: 600 14px/1 var(--ui); text-transform: uppercase; letter-spacing: 1px; }
.social-label::before { content: ""; display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--text); }
.footer-cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; padding: 70px 20px 60px; }
.site-footer h5 { font: 600 15px/1.5 var(--ui); letter-spacing: 1px; text-transform: uppercase; color: var(--white); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--white); }
.footer-logo { width: 150px; margin-bottom: 16px; }
.footer-bottom { background: var(--footer-bottom); display: flex; align-items: center; justify-content: center; gap: 24px; padding: 4px 20px; font-size: 12px; }
.footer-bottom img { width: 150px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 26px; bottom: 26px; width: 54px; height: 54px; border: 2px solid var(--white); border-radius: 50%; background: rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.to-top::before { content: ""; position: absolute; left: 50%; top: 52%; width: 14px; height: 14px; border-left: 3px solid var(--white); border-top: 3px solid var(--white); transform: translate(-50%, -30%) rotate(45deg); }
.to-top.show { opacity: 1; pointer-events: auto; }
body.lightbox-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; }
.lb-image { max-width: min(1000px, 90vw); max-height: 85vh; width: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font: 300 60px/1 var(--ui); padding: 10px 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 14px; font-size: 48px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; margin: 0; }

/* ---------- Blog list + posts ---------- */
.page-title { padding: 50px 0 30px; }
.page-title .container { max-width: 860px; }
.page-title h1 { font: 600 38px/1.1 var(--ui); letter-spacing: 1px; text-transform: uppercase; }
.page-title h1::after { content: ""; display: block; width: 22px; height: 2px; background: var(--dark); margin-top: 26px; }
.crumb { margin: 0; font: 600 13px/1 var(--ui); letter-spacing: 1px; text-transform: uppercase; }
.blog-list { display: grid; gap: 40px; max-width: 860px; padding-bottom: 80px; }
.blog-list, .post { margin-left: auto; margin-right: auto; }
.post-card { background: var(--white); padding: 30px; }
.card-image img { width: calc(100% + 60px); max-width: none; margin: -30px -30px 24px; aspect-ratio: 5 / 3; object-fit: cover; }
.post-card h2, .post-header h1 { font: 600 24px/1.4 var(--ui); letter-spacing: 1px; text-transform: uppercase; }
.post-card h2 a { color: var(--dark); }
.post-card h2 a:hover { color: var(--orange); }
.post-meta { color: #bebebe; font-weight: 500; margin-bottom: 8px; }
.post { max-width: 860px; background: var(--white); padding: 40px; margin-bottom: 80px; }
.post-header h1 { font-size: 28px; }
.post-featured { width: 100%; margin: 10px 0 30px; }
.post-body { font-size: 15px; line-height: 27px; }
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--ui); margin-top: 1.4em; }
.post-body figure { margin: 30px 0; }
.post-body img { margin: 10px auto; }
.post-tags { color: #bebebe; font-size: 13px; border-top: 1px solid #eee; padding-top: 16px; margin-top: 30px; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .intro .two-col, .about-row, .two-col { grid-template-columns: 1fr; }
  .app-grid { gap: 10px; }
  .lead { font-size: 22px; line-height: 38px; }
  .about .lead { font-size: 21px; line-height: 36px; }
  .band { height: 320px; background-attachment: scroll; }
  .join-cards { gap: 20px; }
  .about-photo { max-width: 320px; justify-self: center; }
}

/* ---------- Menu button: tablets and phones (touch screens can't hover) ---------- */
@media (max-width: 1000px) {
  :root { --header-h: 70px; --header-h-small: 60px; }
  html { scroll-padding-top: 70px; }
  .logo img { height: 52px; }
  .is-scrolled .logo img { height: 42px; }
  .site-header { background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .menu-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -10px; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--orange); content: ""; transition: transform .2s, background .2s; }
  .menu-toggle span { top: 21px; }
  .menu-toggle span::before { left: 0; top: -7px; }
  .menu-toggle span::after { left: 0; top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); max-height: 0; overflow: hidden; transition: max-height .3s; box-shadow: 0 6px 10px rgba(0,0,0,.08); }
  .main-nav.open { max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .main-nav > ul { flex-direction: column; padding: 10px 0; }
  .main-nav > ul > li > a, .is-scrolled .main-nav > ul > li > a { line-height: 48px; padding: 0 20px; }
  .main-nav .sub, .main-nav > ul > li:last-child .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; padding: 0 0 6px 16px; min-width: 0; }
  .main-nav .sub a { color: var(--text); padding: 12px 20px; }
  .home main { padding-top: var(--header-h); }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .site-footer li { margin-bottom: 0; }
  .site-footer li a, .footer-cols p a { display: inline-block; padding: 8px 0; }
  .crumb a { display: inline-block; padding: 12px 0; }
  .post-card h2 a { display: inline-block; padding: 4px 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .lb-image { max-width: 100vw; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 4px; transform: none; font-size: 48px; }
  .lb-count { bottom: 26px; }
  .hero-video { aspect-ratio: 16 / 9; max-height: none; }
  .section { padding: 50px 0; }
  .section-title { font-size: 30px; }
  .app-grid, .join-cards, .contact-form { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .social-icon { width: 100px; height: 100px; }
  .social-icon svg { width: 40px; height: 40px; }
  .footer-cols { grid-template-columns: 1fr; padding: 50px 20px; }
  .footer-bottom { flex-direction: column; gap: 4px; padding: 10px; }
  .post { padding: 24px; }
  .post-card { padding: 22px; }
  .card-image img { width: calc(100% + 44px); margin: -22px -22px 20px; }
  .app-title { opacity: 1; background: linear-gradient(transparent 50%, rgba(0,0,0,.6)); align-items: flex-end; font-size: 18px; }
}

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