/* Simplified Inc. — dark architectural photo background, white company cards */
:root {
  --gray: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #000; color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Full-screen stage with a darkened black-and-white photo behind it */
.stage {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  background: #0b0b0c url("images/bg-ocean.jpg") center / cover no-repeat;
  isolation: isolate;
}
/* Swell is already dark: lighter shade on top of it */
.stage:not([data-bg])::before { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 30%, rgba(0,0,0,.1) 75%, rgba(0,0,0,.45) 100%) !important; }
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.82) 100%),
    rgba(10, 14, 20, 0.35);
}

/* Nav: bigger, set down from the top */
.nav {
  max-width: 1440px; width: 100%; margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 30px; width: auto; filter: drop-shadow(0 1px 10px rgba(0,0,0,.55)); }
.nav-links { display: flex; align-items: center; gap: 44px; font-size: 20px; font-weight: 500; }
.nav-links a { color: rgba(255,255,255,.82); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta { color: #fff; border: 1.5px solid rgba(255,255,255,.7); padding: 10px 26px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links .nav-cta:hover { background: #fff; color: #000; }

/* Companies across the middle */
.companies { flex: 1; display: flex; align-items: center; padding: clamp(40px, 6vh, 72px) var(--gutter) clamp(56px, 9vh, 96px); }
.cards { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 390px)); justify-content: center; gap: clamp(16px, 2vw, 28px); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 32px 80px rgba(0,0,0,.6); }
.card-head { height: 124px; display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.card-head img { width: auto; }
.lg-shellco { height: 52px; }
.lg-yellowpine { height: 84px; }
.lg-toollogix { height: 64px; }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-photo img { transform: scale(1.04); }

/* Contact card: opens in the middle of the page; logo and ocean stay visible */
button.nav-cta { font: inherit; background: transparent; cursor: pointer; }
.companies { transition: opacity .35s ease; }
body.contact-open .companies { opacity: 0; pointer-events: none; }
.contact-card {
  width: min(480px, calc(100vw - 32px)); padding: 48px 40px 40px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px;
  background: rgba(0,0,0,.88); color: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.7); text-align: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.contact-card:focus, .contact-card:focus-visible { outline: none; }
.contact-card[open] { animation: pop .4s cubic-bezier(.2,.7,.2,1); }
.contact-card::backdrop { background: transparent; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; color: rgba(255,255,255,.6); cursor: pointer; }
.contact-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.contact-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #5a86ff; margin: 0 0 10px; }
.contact-card h2 { margin: 0 0 30px; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.contact-line { display: block; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 22px; font-weight: 500; color: #fff; transition: color .2s; }
.contact-line:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.contact-line span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact-line:hover { color: #5a86ff; }
@media (max-width: 600px) { .contact-card { padding: 44px 24px 32px; } .contact-card h2 { font-size: 30px; } .contact-line { font-size: 19px; } }

/* Footer (unchanged look) */
.footer { background: var(--gray); color: var(--text); border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.footer-logo { height: 11px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; font-size: 12px; color: #86868b; }

/* Fade the cards in on load (CSS only, so they can never stay hidden) */
.card { animation: rise .9s cubic-bezier(.2,.7,.2,1) backwards; }
.card:nth-child(2) { animation-delay: .1s; }
.card:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

/* Tablet */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .card-head { height: 104px; }
}

/* Phone */
@media (max-width: 600px) {
  .nav { padding-top: 28px; }
  .nav-logo img { height: 14px; }
  .nav-links { gap: 20px; font-size: 15px; }
  .nav-links .nav-cta { padding: 7px 15px; }
  .stage::before { background: rgba(0, 0, 0, 0.72); }
  .lg-shellco { height: 42px; } .lg-yellowpine { height: 68px; } .lg-toollogix { height: 52px; }
}
@media (max-width: 400px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

