/* ============================================
   Philip Longobardi Portfolio Consolidated Stylesheet — v2
   Replaces: reset.css, style.css, style-responsive.css, modal.css, top.css
   ============================================ */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-ExtraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET (Meyer v2.0)
   ============================================ */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ============================================
   BASE
   ============================================ */
html, body {
  background-color: #121b24;
}
body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 300;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
::selection {
  background: #fff;
  color: #121b24;
  text-shadow: none;
}
p {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 300;
}
a { text-decoration: none; }
a:focus { outline: none; }
strong { font-weight: 600; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: #121b24;
  z-index: 999;
  transition: opacity 0.15s ease;
}
.preloader .item {
  position: absolute;
  width: 50px;
  height: 50px;
  left: 50%;
  top: 50%;
  margin-left: -25px;
  margin-top: -25px;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  background-color: #374b5a;
  border-radius: 100%;
  animation: scaleout 1s infinite ease-in-out;
}
@keyframes scaleout {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ============================================
   HEADER
   ============================================ */
#fullscreen {
  display: flex;
  position: relative;
  height: 80px;
  justify-content: space-between;
  align-items: center;
  padding: 0 max(60px, calc((100vw - 1340px) / 2));
  box-sizing: border-box;
}
#full {
  position: relative;
  z-index: 97;
}
header .logo > a {
  font-size: 28px;
  font-weight: 100;
  letter-spacing: -1px;
  color: #d9d9d9;
  white-space: nowrap;
  transition: color 0.3s;
}
header .logo > a:hover { color: #1589bf; }
header .topnav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header .topnav > a { color: #bababa; transition: color 0.3s; }
header .topnav a svg {
  color: #bababa;
  stroke: currentColor;
  vertical-align: middle;
  transition: color 0.3s;
}
header .topnav a:hover,
header .topnav a.active,
header .topnav a:active { color: #1589bf; }
header .topnav a:hover svg,
header .topnav a.active svg,
header .topnav a:active svg { color: #1589bf; }

/* Tighten gap between arrow pair */
.nav-arrows { display: flex; align-items: center; gap: 9px; }
.nav-arrows a svg { width: 22px; height: 22px; }

/* Contact page email arrow */
.email-arrow { color: #1589bf; }
.email-arrow svg { stroke: currentColor; vertical-align: middle; }

/* ============================================
   CONTENT / LAYOUT
   ============================================ */
.clear { clear: both; }
.content {
  position: relative;
  width: min(1340px, calc(100vw - 120px));
  margin: 40px auto;
}
.content .hero {
  width: 100%;
  float: left;
  margin-bottom: 120px;
}
.content .text-intro {
  width: min(1340px, calc(100vw - 120px));
  margin: 20px auto 0;
}
.content .text-introMob {
  width: min(1340px, calc(100vw - 120px));
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
}

/* Text intro typography */
.content .text-intro h1 {
  font-size: 38px;
  width: 35%;
  text-transform: uppercase;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 42px;
  margin-bottom: 20px;
}
.content .text-intro h1 a {
  font-size: 38px;
  text-transform: uppercase;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 42px;
}
.content .text-intro h2 {
  font-size: 13px;
  color: #d9d9d9;
  font-weight: 300;
  line-height: 19px;
  letter-spacing: 1px;
  width: 80%;
}
.content .text-intro h3 {
  font-size: 24px;
  width: 80%;
  color: #d9d9d9;
  font-weight: 600;
  line-height: 36px;
  margin-bottom: 20px;
}
.content .text-intro h4 {
  font-size: 38px;
  color: #d9d9d9;
  font-weight: 100;
  letter-spacing: -0.5px;
  transform: scale(1, 0.9);
  float: left;
  line-height: 80px;
  margin-right: 8px;
}
.content .text-intro h4 a {
  font-size: 38px;
  color: #d9d9d9;
  font-weight: 100;
}
.content .text-intro h5 {
  font-size: 15px;
  color: #22afec;
  font-weight: 900;
  line-height: 22px;
  letter-spacing: 1px;
  width: 80%;
  text-transform: uppercase;
  margin-top: 10px;
}
.content .text-intro h5 a {
  font-size: 15px;
  color: #22afec;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.content .text-intro h6 {
  font-size: 38px;
  width: 80%;
  text-transform: uppercase;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 42px;
  margin-bottom: 20px;
}

/* h7 / h8 / h9 are non-standard but used throughout. */
h7 {
  display: block;
  font-size: 24px;
  width: 80%;
  text-transform: uppercase;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 32px;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
}
h8 {
  display: block;
  font-size: 54px;
  text-transform: uppercase;
  width: 90%;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 72px;
  margin-bottom: 20px;
  font-family: 'Roboto', sans-serif;
}
h9 {
  display: inline;
  font-size: 15px;
  color: #737373;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 1px;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif;
}
.content .text-intro p {
  font-size: 15px;
  color: #d9d9d9;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 1px;
  width: 40%;
  margin-top: 10px;
}
.content .text-intro a:link,
.content .text-intro a:visited {
  font-size: 15px;
  color: #d9d9d9;
  font-weight: 300;
  line-height: 22px;
  letter-spacing: 1px;
  text-decoration: none;
}
.content .text-intro a:hover { color: #1589bf; }
.content .text-intro p a {
  font-size: 15px;
  color: #d9d9d9;
  font-weight: 900;
  line-height: 22px;
  letter-spacing: 1px;
}
.content .text-intro hr {
  height: 1px;
  background-color: #b7b7b7;
  border: none;
  width: 100%;
}

/* Layout columns */
.smallhead { width: 100%; position: relative; float: left; margin-bottom: 10px; }
.one-column { width: 40%; position: relative; float: left; margin-bottom: 30px; }
.two-column { width: 60%; position: relative; float: left; margin-bottom: 30px; }
.one-column p { width: 80% !important; }
.two-column p { width: 50% !important; }

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(1340px, calc(100vw - 120px));
  margin: 10px auto;
}
li.grid-item,
li.grid-item-port { position: relative; }
li.grid-item img,
li.grid-item-port img { width: 100%; display: block; }
li.grid-item h2 {
  font-size: 30px;
  bottom: 290px;
  left: 20px;
  position: absolute;
  text-transform: uppercase;
  color: #121b24;
  letter-spacing: -1px;
  font-weight: 100;
  line-height: 50px;
}
.grid-hover,
.grid-hover-port {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #121b24;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}
.grid-hover:hover,
.grid-hover-port:hover { opacity: 0.9; }
.grid-hover h1 {
  font-size: 24px;
  bottom: 60px;
  left: 20px;
  position: absolute;
  text-transform: uppercase;
  color: #f2f2f2;
  letter-spacing: 1px;
  font-weight: 100;
  line-height: 40px;
}
.grid-hover p {
  font-size: 12px;
  bottom: 30px;
  left: 20px;
  position: absolute;
  color: #bababa;
  letter-spacing: 1px;
  font-weight: 300;
  line-height: 50px;
  width: auto !important;
  margin-top: 0;
}

/* Grid item fade-in (driven by JS IntersectionObserver) */
li.grid-item,
li.grid-item-port {
  opacity: 0;
  transition: opacity 0.5s ease;
}
li.grid-item.visible,
li.grid-item-port.visible { opacity: 1; }

/* ============================================
   PREV / NEXT NAV
   ============================================ */
.prev-next {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.prev-next a,
.prev-next button {
  color: #bababa;
  transition: color 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}
.prev-next a svg,
.prev-next button svg {
  stroke: currentColor;
  vertical-align: middle;
  transition: color 0.3s;
}
.prev-next a:hover,
.prev-next button:hover { color: #1589bf; }
.prev-next a.active { color: #1589bf; }
.prev-next .nav-arrows { display: flex; align-items: center; gap: 9px; }

/* ============================================
   MODAL — image lightbox
   ============================================ */
.myImg {
  cursor: pointer;
  transition: filter 0.3s;
}
.myImg:hover { filter: brightness(50%); }

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(18, 27, 36, 1);
  align-items: flex-start;
}
.modal.is-open { display: flex; }

.modal-side {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 80px;
  min-width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.modal-center {
  flex: 1;
  padding-top: 50px;
  padding-bottom: 80px;
  min-height: 100vh;
  box-sizing: border-box;
  cursor: pointer;
}
.modal-content {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  animation: zoom 0.6s ease;
  cursor: pointer;
}
.modal-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.modal-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 768px) {
  .modal-side { display: none; }
}
@media (max-width: 480px) {
  .modal-center { padding-top: 20px; padding-bottom: 40px; }
}
.modal-content--mobile { width: 30% !important; max-width: 425px !important; }
.modal-center:has(.modal-content--mobile) { padding-top: 0; }
.modal-content--email { width: 65% !important; max-width: 1200px !important; }
@keyframes zoom {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Contact page email link */
.email-link { color: #bababa; transition: color 0.3s; }
.email-link svg { stroke: currentColor; vertical-align: middle; transition: color 0.3s; }
.email-link:hover, .email-link:active { color: #1589bf; }

/* ============================================
   CONTACT
   ============================================ */
.contact-one, .contact-two {
  width: 30%;
  padding-right: 3%;
  position: relative;
  float: left;
}
.contact-three { width: 33%; position: relative; float: left; }
.contact-one p, .contact-two p, .contact-three p { width: 95% !important; }

/* ============================================
   APPROACH PAGE
   ============================================ */
.onecol.one-column img { display: none; }
.test.two-column img { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1379px) and (min-width: 1180px) {
  #fullscreen { padding: 0 calc((100vw - 1080px) / 2); }
  #full, .content, .content .text-intro, .content .text-introMob, .portfolio-grid, .prev-next { width: 1080px; }
  .content .text-intro h1 { width: 40% !important; }
  .content .text-intro h2 { width: 60% !important; }
  li.grid-item h2 { font-size: 26px; bottom: 230px; }
}
@media (max-width: 1179px) and (min-width: 1024px) {
  #fullscreen { padding: 0 calc((100vw - 924px) / 2); }
  #full, .content, .content .text-intro, .content .text-introMob, .portfolio-grid, .prev-next { width: 924px; }
  .content .hero { margin-bottom: 110px; }
  .content .text-intro h1 { width: 50% !important; }
  .content .text-intro h2 { width: 80% !important; }
  .grid-hover h1 { font-size: 22px; bottom: 60px; line-height: 20px; }
  .grid-hover p { font-size: 11px; bottom: 40px; line-height: 20px; }
  li.grid-item h2 { font-size: 22px; bottom: 185px; }
}
@media (max-width: 1023px) and (min-width: 731px) {
  #fullscreen { padding: 0 calc((100vw - 700px) / 2); }
  header .logo > a { font-size: 24px; letter-spacing: -0.5px; }
  header .topnav { gap: 16px; }
  #full, .content, .content .text-intro, .content .text-introMob, .portfolio-grid, .prev-next { width: 700px; }
  .content .hero { margin-bottom: 100px; }
  .content .text-intro h1 { width: 60% !important; }
  .content .text-intro h2 { width: 80% !important; }
  h7 { font-size: 20px; }
  .grid-hover h1 { font-size: 16px; bottom: 40px; }
  .grid-hover p { font-size: 10px; bottom: 34px; line-height: 20px; }
  li.grid-item h2 { font-size: 20px; bottom: 135px; }
}
@media (max-width: 730px) and (min-width: 481px) {
  #fullscreen { padding: 0 30px; }
  #full, .content, .content .text-intro, .content .text-introMob, .portfolio-grid, .prev-next { width: 440px; }
  #full { display: block !important; }
  .content .hero { margin-bottom: 80px; }
  .content .text-intro h1 { width: 80% !important; font-size: 32px; line-height: 38px; }
  .content .text-intro h2 { width: 100% !important; }
  .smallhead { width: 80%; }
  .one-column, .two-column { width: 100%; }
  .contact-one, .contact-two, .contact-three { width: 100%; }
  .prev-next { padding-bottom: 20px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-hover h1, .grid-hover p { display: none !important; }
  li.grid-item h2 { font-size: 17px; bottom: 115px; }
  .onecol.one-column img { display: inline !important; }
  .test.two-column { display: none !important; }
  .onecol a.nav { display: none !important; }
  .onecol h2 br { display: none !important; }
  .onecol h9 { display: none !important; }
}
@media (max-width: 480px) {
  #fullscreen { padding: 0 20px; }
  header .logo > a { font-size: 22px; letter-spacing: 0; }
  header .topnav { gap: 14px; }
  #full, .content, .content .text-intro, .content .text-introMob, .portfolio-grid { width: 95%; min-width: 0; }
  .prev-next { max-width: 95%; }
  #full { display: block !important; }
  .content .hero { margin-bottom: 60px; }
  .content .text-intro h1 { width: 80% !important; font-size: 24px; line-height: 28px; }
  .content .text-intro h2,
  .content .text-intro p { width: 100% !important; font-size: 13px; line-height: 19px; }
  .smallhead { width: 80%; }
  .one-column, .two-column { width: 100%; }
  .contact-one, .contact-two, .contact-three { width: 100%; }
  .prev-next { padding-bottom: 20px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .grid-hover h1, .grid-hover p { display: none !important; }
  li.grid-item h2 { font-size: 13px; bottom: 85px; }
  .modal-content { width: 100%; }
  .modal-content--mobile { width: 100% !important; max-width: none !important; transform: translateY(-5.5%);
    clip-path: inset(5.5% 0 16% 0); }
  .modal-content--email { width: 100% !important; max-width: none !important; }
  .onecol.one-column img { display: inline !important; padding-bottom: 40px; }
  .test.two-column { display: none !important; }
  .onecol a.nav { display: none !important; }
  .onecol h2 br { display: none !important; }
  .onecol h9 { display: none !important; }
}
