/* ==========================================================================
   Infinity Development — infdev.dev
   Teal on near-black, alternating dark and light sections, a numbered spine
   down the left edge. Archivo for headings, Barlow for text.
   ========================================================================== */

:root {
  --dark:      #1F2222;
  --dark-2:    #171A1A;
  --dark-3:    #262A2A;
  --light:     #F2F3F3;
  --white:     #FFFFFF;

  --teal:      #2CB1BC;
  --teal-lt:   #5FCBD3;
  --teal-dk:   #1E8F99;

  --on-dark:   #FFFFFF;
  --on-dark-2: #C6CFCF;
  --on-dark-3: #8C9797;
  --on-light:  #1A1D1D;
  --on-light-2:#4E5555;

  --line-dark: #313636;
  --line-light:#DFE2E2;

  --wrap:  1320px;
  --spine: 92px;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--on-dark);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.026em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); letter-spacing: -0.032em; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.014em; }
p  { margin: 0 0 1rem; text-wrap: pretty; }

::selection { background: rgba(44,177,188,.35); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }

/* --------------------------------------------------------------- header --- */

.masthead {
  position: absolute; inset: 0 0 auto; z-index: 50;
  padding-block: 1.6rem;
}
.masthead.is-stuck {
  position: fixed;
  background: rgba(31,34,34,.94);
  backdrop-filter: saturate(150%) blur(10px);
  padding-block: .9rem;
  border-bottom: 1px solid var(--line-dark);
}
.masthead .wrap { display: flex; align-items: center; gap: 1.6rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark { width: 42px; height: 26px; color: var(--teal); flex: none; }
.brand__name {
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--f-display); color: var(--teal); line-height: 1.02;
}
.brand__line { white-space: nowrap; display: block; }
.brand__line--1 { font-size: 1.12rem; font-weight: 700; letter-spacing: .1em; }
.brand__line--2 { font-size: .72rem; font-weight: 600; letter-spacing: .247em; }

.nav { display: flex; gap: 2.6rem; margin-inline: auto; }
.nav a {
  font-size: 1.02rem; font-weight: 500; color: var(--on-dark);
  text-decoration: none; white-space: nowrap; opacity: .92;
}
.nav a:hover { color: var(--teal-lt); opacity: 1; }
@media (max-width: 1000px) { .nav { display: none; } }

/* Corner-bracketed contact link */
.corner {
  position: relative; flex: none; margin-left: auto;
  padding: .7rem 1.1rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  color: var(--on-dark); text-decoration: none; white-space: nowrap;
}
.corner::before, .corner::after {
  content: ""; position: absolute; width: 15px; height: 15px;
  border: 2px solid var(--on-dark); transition: border-color .18s ease;
}
.corner::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.corner:hover { color: var(--teal-lt); }
.corner:hover::before, .corner:hover::after { border-color: var(--teal); }
@media (max-width: 560px) { .corner { font-size: .9rem; padding: .6rem .85rem; } }

/* ----------------------------------------------------------------- hero --- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--dark-2); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,23,23,.86) 0%, rgba(20,23,23,.6) 45%, rgba(20,23,23,.9) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 8rem 4rem; }
.hero__grid { display: grid; grid-template-columns: var(--spine) 1fr; }
@media (max-width: 760px) { .hero__grid { grid-template-columns: 40px 1fr; } }
.hero h1 { margin-bottom: .5em; max-width: 15ch; }
.hero__body { max-width: 62ch; font-size: 1.06rem; color: var(--on-dark-2); }

/* --------------------------------------------------------------- spine --- */

.spine { display: flex; flex-direction: column; align-items: flex-start; }
.spine__num {
  font-family: var(--f-body); font-size: .95rem; font-weight: 500;
  color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1;
}
.spine__line { width: 2px; flex: 1; min-height: 120px; background: var(--teal); margin-top: .85rem; opacity: .85; }

/* ------------------------------------------------------------ sections --- */

.sect { padding-block: clamp(64px, 8vw, 118px); position: relative; overflow: hidden; scroll-margin-top: 84px; }
.sect--dark  { background: var(--dark); color: var(--on-dark); }
.sect--light { background: var(--light); color: var(--on-light); }
.sect--light p { color: var(--on-light-2); }
.sect--dark p  { color: var(--on-dark-2); }

.sect__grid { display: grid; grid-template-columns: var(--spine) 1fr; align-items: stretch; }
@media (max-width: 760px) { .sect__grid { grid-template-columns: 40px 1fr; } }

.sect__label {
  font-size: 1.05rem; font-weight: 500; margin: 0 0 clamp(1.4rem, 3vw, 2.6rem);
  color: inherit; opacity: .78;
}
.sect__head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 60px); align-items: start; margin-bottom: clamp(34px, 5vw, 62px); }
@media (max-width: 900px) { .sect__head { grid-template-columns: 1fr; } }
.sect__head h2 { margin-bottom: 0; }
.sect__intro { font-size: 1.04rem; }
.sect__intro p:last-child { margin-bottom: 0; }

/* Faint ring watermark on the benefits band */
.ring {
  position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 760px; height: 760px; pointer-events: none; opacity: .5;
}
.ring circle { fill: none; stroke: #2B3030; stroke-width: 26; }
@media (max-width: 900px) { .ring { display: none; } }

/* -------------------------------------------------------------- photos --- */

.ph { position: relative; background: var(--dark-3); overflow: hidden; }
.sect--light .ph { background: #DDE1E1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(44,177,188,.07), rgba(0,0,0,.16));
}


/* ------------------------------------------------------------ services --- */

.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 1.8vw, 26px); }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9; color: var(--teal);
  font-variant-numeric: tabular-nums; margin-bottom: -.28em; position: relative; z-index: 2;
  display: block;
}
.svc .ph { aspect-ratio: 4 / 3; margin-bottom: 1.1rem; }
.svc h3 { margin-bottom: .5rem; }
.svc p { font-size: .95rem; margin-bottom: .3rem; }

/* ---------------------------------------------------------- advantages --- */

.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 940px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .adv-grid { grid-template-columns: 1fr; } }

.adv {
  background: var(--white); padding: clamp(1.5rem, 2.4vw, 2.1rem);
  transition: box-shadow .2s ease, transform .2s ease;
}
.adv:hover { box-shadow: 0 10px 34px rgba(26,29,29,.1); transform: translateY(-2px); }
.adv:hover h3 { color: var(--teal-dk); }
.adv__icon { color: var(--teal); margin-bottom: 1.4rem; }
.adv h3 { color: var(--on-light); margin-bottom: .45rem; transition: color .2s ease; }
.adv p { font-size: .95rem; margin-bottom: 0; }

/* ------------------------------------------------------------ benefits --- */

.ben-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3.2vw, 46px) clamp(24px, 3vw, 52px);
  position: relative; z-index: 1;
}
@media (max-width: 940px) { .ben-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ben-grid { grid-template-columns: 1fr; } }
.ben-grid--split { padding-top: clamp(26px, 3.2vw, 46px); border-top: 1px solid var(--line-dark); margin-top: clamp(26px, 3.2vw, 46px); }

.ben__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.7rem, 4.2vw, 3.9rem); line-height: .88; color: var(--teal);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: -.12em;
}
.ben__bar {
  display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -.012em; color: var(--on-dark);
  background: linear-gradient(90deg, var(--teal) 0%, rgba(44,177,188,.28) 100%);
  padding: .42rem .8rem; margin-bottom: .9rem;
}
.ben p { font-size: .96rem; margin-bottom: 0; }

/* ---------------------------------------------------- design & marketing -- */

.dz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
@media (max-width: 860px) { .dz-grid { grid-template-columns: 1fr; } }
.dz-grid--wide { grid-template-columns: 1fr; margin-top: clamp(16px, 2vw, 26px); }

.dz { position: relative; }
.dz .ph { aspect-ratio: 4 / 3.4; }
.dz--wide .ph { aspect-ratio: 21 / 8; }
.dz__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; z-index: 1; }
.dz__cap::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(12,16,16,.72));
}
.dz__title {
  position: relative; font-family: var(--f-display); font-weight: 700; font-size: 1.24rem;
  color: #fff; letter-spacing: -.014em; display: block; margin-bottom: .7rem;
}
.dz__rule { position: relative; display: block; height: 1px; background: rgba(255,255,255,.55); }

/* ------------------------------------------------------------- contact --- */

.contact h2 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); margin-bottom: .35em; }
.contact__body { max-width: 58ch; font-size: 1.05rem; margin-bottom: 2rem; }
.mailbtn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--dark); background: var(--teal); text-decoration: none;
  padding: .95rem 1.7rem; transition: background-color .18s ease;
}
.mailbtn:hover { background: var(--teal-lt); }

/* -------------------------------------------------------------- footer --- */

.footer { background: var(--dark-2); color: var(--on-dark-3); padding-block: clamp(44px, 5vw, 68px) 1.6rem; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: var(--teal-lt); }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: clamp(26px, 4vw, 56px); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 470px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: .9rem; max-width: 40ch; }
.footer__mail { display: inline-block; margin-top: .9rem; color: var(--teal) !important; font-weight: 600; }
.footer h4 { font-family: var(--f-display); font-size: .82rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__base { margin-top: clamp(30px, 4vw, 48px); padding-top: 1.3rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .84rem; }
.footer__base .sp { margin-left: auto; }
@media (max-width: 560px) { .footer__base .sp { margin-left: 0; } }

/* --------------------------------------------------------------- to-top --- */

.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .18s ease;
}
.totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--teal-dk); }
@media (max-width: 560px) { .totop { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

/* ---------------------------------------------------------------- misc --- */

.note {
  border-left: 3px solid var(--teal);
  background: rgba(44,177,188,.09);
  padding: .9rem 1.15rem; font-size: .84rem; line-height: 1.55;
  margin-top: clamp(24px, 3vw, 38px);
}
.note b { color: inherit; font-weight: 700; }
.sect--dark .note { color: var(--on-dark-2); }
.sect--light .note { color: var(--on-light-2); }

.skip { position: absolute; left: -9999px; background: var(--teal); color: #fff; padding: .7rem 1.1rem; z-index: 100; }
.skip:focus { left: 14px; top: 14px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------- small-screen header --- */
/* The full wordmark plus the contact bracket overflow a 390px viewport. */
@media (max-width: 620px) {
  .masthead .wrap { gap: .75rem; }
  .brand { min-width: 0; }
  .brand__mark { width: 32px; height: 20px; }
  .brand__line--1 { font-size: .95rem; letter-spacing: .08em; }
  .brand__line--2 { font-size: .61rem; letter-spacing: .233em; }
}

/* =============================================================== mobile nav */
/* Below 1000px the inline nav is hidden, so the header needs a control that
   opens it. Mirrors the reference: logo stays top-left, close top-right,
   links stacked right of centre over a large translucent disc. */

.burger {
  display: none; margin-left: auto; flex: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  align-items: center; justify-content: center; gap: 7px; flex-direction: column;
}
.burger span { display: block; width: 26px; height: 2px; background: var(--on-dark); }
.burger:hover span { background: var(--teal-lt); }

@media (max-width: 1000px) {
  .corner--desk { display: none; }
  .burger { display: flex; }
}

.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  background: rgba(20,23,23,.14);
  opacity: 0; transition: opacity .24s ease;
  overscroll-behavior: contain;
}
.mmenu[hidden] { display: none; }
/* The header sits under the translucent overlay; its burger would otherwise
   ghost through the close control. */
body.menu-open .masthead { opacity: 0; pointer-events: none; }
.mmenu.is-open { opacity: 1; }

/* The disc is the readable ground — the page shows through everywhere else. */
.mmenu__disc {
  position: absolute; left: -14vw; top: 60px;
  width: 115vw; height: 115vw; max-width: 620px; max-height: 620px;
  border-radius: 50%;
  background: rgba(17,20,20,.88);
  pointer-events: none;
}

.mmenu__bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.6rem 26px 0;
}
.mmenu__close {
  margin-left: auto; flex: none;
  width: 46px; height: 46px; padding: 0;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; color: var(--on-dark);
}
.mmenu__close:hover { color: var(--teal-lt); }

.mmenu__nav {
  position: relative; z-index: 1;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: clamp(1.55rem, 3.8vh, 2.15rem);
  padding: clamp(1.5rem, 4vh, 2.3rem) 5% 3rem 42%;
  overflow-y: auto;
}
.mmenu__nav a {
  font-family: var(--f-body); font-size: clamp(1.15rem, 4.4vw, 1.35rem);
  font-weight: 500; color: var(--on-dark); text-decoration: none;
  text-align: center; white-space: nowrap;
}
.mmenu__nav a:hover { color: var(--teal-lt); }
.mmenu__nav .corner { margin-left: 0; margin-top: .4rem; font-family: var(--f-display); }

@media (max-width: 380px) {
  .mmenu__nav { padding-left: 22%; }
}
