/*Color Palette

#01161e

#124559

#598392

#aec3b0

#eff6e0
*/

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: DM Mono;
  background-color: #eff6e0;
  color: #598392;
}

/* HEADER */

.header {
  align-items: center;
  background-color: #eff6e0;
  display: flex;
  justify-content: space-between; /* Pushes logo left, navigation right */
  padding: 16px 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: /* smooth transition for when the boarder/padding changes */
    border-bottom 0.2s ease,
    padding 0.2s ease;
}

.header--scrolled {
  /* this is for JS when scrolling down */
  border-bottom: 1px solid rgba(18, 69, 89, 0.2);
  padding: 16px 0;
  transition: bottom-border 0.5s ease;
}

.header .logo {
  margin-left: 10%;
}

.header .navigation {
  margin-right: 10%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #124559;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
}

/* NAVIGATION */

.nav-list {
  display: flex;
  font-family: DM Sans;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #124559;
  font-size: 14px;
  position: relative;
  padding-bottom: 4px;
}

/* makes a slide in underline when hovered over */

.nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #01161e;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-link:hover {
  color: #01161e;
}

/* HERO SECTION */

.hero {
  background-color: #eff6e0;
  padding: 80px 10% 40px 10%;
}

.hero__container {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 1fr 1fr;
  row-gap: 30px;
  width: 100%;
}

.header__brand {
  grid-column: 1;
}

.hero__header {
  color: #598392;
  font-family:
    DM mono,
    monospace;
  font-size: 12px;
  letter-spacing: 0.2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero__title {
  color: #01161e;
  font-family: Fraunces, serif;
  font-size: 81px;
  font-weight: 300;
  line-height: 0.9;
  text-transform: lowercase;
}

.hero__subtitle {
  color: #598392;
  font-family: Fraunces, serif;
}

.hero__text {
  align-self: flex-end;
  grid-column: 2;
  margin-bottom: 8px;
  margin-left: auto;
  max-width: 420px;
}

.hero__intro {
  color: #598392;
  font-family:
    DM Sans,
    sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
}

.projects-link {
  align-items: center;
  color: #01161e;
  cursor: default;
  display: inline-flex;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.projects-link::before {
  color: #01161e;
  content: "-";
  display: inline-block;
  margin-right: 8px;
  transform-origin: left center; /* ensures the dash grows outwards to the right */
  transition:
    transform 0.3s ease-out,
    margin-right 0.3s ease-out;
}

.projects-link:hover::before {
  margin-right: 16px;
  transform: scaleX(1.8);
}

.hero__divider {
  border: none;
  border-top: 1px solid rgba(1, 22, 30, 0.2);
  grid-column: 1 / span 2; /* forces line divider to span across the grid base */
  margin-top: 120px;
}

.hero__footer {
  display: flex;
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  grid-column: 1 / span 2; /* forces footer to stretch across the grid base */
  justify-content: space-between;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

/* ABOUT SECTION */

.about-section {
  background-color: #eff6e0;
  padding: 120px 10%;
}

.about__container {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 0.8fr 1.6fr 1.6fr; /* splits the grid into 3 coloums */
  row-gap: 56px;
  width: 100%;
}

.section-chapter {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  grid-column: 1; /* targets desired column */
  letter-spacing: 0.15rem;
}

.section-title {
  color: #01161e;
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 300;
  grid-column: 2 / span 2; /* starts in column 2 and spans accros columns 2 & 3 */
  line-height: 1.15;
  margin-bottom: 24px;
}

.about__description-left {
  color: #598392;
  font-size: 16px;
  font-family: "DM Sans", sans-serif;
  grid-column: 2;
  line-height: 1.6;
}

.about__right-column {
  display: flex;
  flex-direction: column;
  grid-column: 3; /* stacks column elements vertically using flexbox */
}

.about__description-right {
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.services-divider {
  border: none;
  border-top: 1px solid rgba(18, 69, 89, 0.15);
  margin-top: 40px;
  margin-bottom: 40px;
}

.services-description {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 0.1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.services-offer {
  color: #01161e;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 2.2;
  list-style: none; /* removes native bullet points */
}

/* Updated: Added display flex here to handle alignment cleanly */
.services-offer li {
  display: flex;
  align-items: center;
}

.services-offer li::before {
  color: #598392;
  content: "-";
  margin-right: 12px;
}

/* Hide the details by default */
.services-offer .service-tool {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-5px); /* Adds a subtle sliding entry animation */
  transition:
    opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.6s;
}

/* Reveal the details when hovering over the list item */
.services-offer li:hover .service-tool {
  opacity: 0.6;
  visibility: visible;
  transform: translateX(0);
}

/* PROJECTS SECTION */

.projects-section {
  background-color: #e6edda;
  padding: 120px 10%;
}

.projects__header {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 0.8fr 3.2fr; /* splits the grid into 2 coloums */
  row-gap: 16px;
  width: 100%;
  margin-bottom: 96px;
}

.projects-chapter {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  grid-column: 1; /* targets desired column */
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

.projects-title {
  color: #01161e;
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 300;
  grid-column: 2 / span 3; /* starts in column 2 and spans accros columns 2 & 3 */
  line-height: 1.15;
  margin: 0;
}

.projects-subtitle {
  grid-column: 2;
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  max-width: 500px;
  line-height: 1.5;
  margin: 0;
}

.client-list {
  list-style-type: none;
  margin: 40px 0 80px 0;
  padding: 0;
}

.projects-item {
  border-top: 1px solid rgba(18, 69, 89, 0.15);
}

.projects-item:first-child {
  border-top: none;
}

.projects-item:last-child {
  border-bottom: none;
}

.projects-trigger-btn {
  align-items: start;
  background: none;
  border: none;
  column-gap: 48px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 0.3fr 2fr 1.4fr 0.3fr;
  margin-top: 12px;
  padding: 24px 0;
  text-align: left;
  width: 100%;
}

.projects-number {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.projects-name {
  color: #01161e;
  font-family: "Fraunces", serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.projects-name:hover {
  color: #598392;
}

.projects-category {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 14px;
}

.projects-meta-right {
  align-items: center;
  color: #598392;
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  grid-column: 4;
  justify-content: space-between;
  width: 100%;
}

.projects-year {
  letter-spacing: 0.05rem;
}

.projects-icon {
  color: #124559;
  font-size: 18px;
  font-weight: 300;
  transition: transform 0.3s ease-out;
}

.projects-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
  overflow: hidden;
  visibility: hidden;
}

.projects-content[aria-hidden="false"] {
  grid-template-rows: 1fr;
  visibility: visible;
}

.content-inner {
  column-gap: 48px;
  display: grid;
  grid-template-columns: 0.3fr 2fr 1.4fr 0.3fr;
  min-height: 0;
  padding: 8px 0 48px 0;
  align-items: start;
}

.projects__image {
  display: block;
  grid-column: 2;
  height: auto;
  margin-bottom: 0;
  min-width: 100%;
  object-fit: cover;
  width: 100%;
}

.projects-details-box {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  grid-column: 3;
  height: 100%;
  justify-content: space-between;
  margin-bottom: 48px;
}

.projects-description {
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  max-width: 380px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 4px;
}

.tags span {
  background-color: transparent;
  color: #124559;
  border: 1px solid rgba(18, 69, 89, 0.3);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  padding: 6px 14px;
}

.status__container {
  display: grid;
  /* FIXED: Uses your exact 3-column project layout track system */
  grid-template-columns: 0.8fr 1.6fr 1.6fr;
  column-gap: 64px;
  width: 100%;
  margin: 100px 0 160px 0;
}

.status {
  grid-column: 2 / span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border: 1px solid rgba(18, 69, 89, 0.15);
  background-color: transparent;
  padding: 32px 40px;
  margin: 0;
}

.status-text-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status__header {
  display: flex;
  align-items: center;
  gap: 8px; /* Pocket of horizontal space between green orb and letters */
}

.status-light {
  font-size: 10px; /* Snaps the emoji down to a crisp, subtle size */
  display: inline-flex;
}

.status-text {
  color: #124559;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.1rem;
}

.status-pitch {
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
}

.contact-btn {
  align-items: center;
  color: #01161e;
  display: inline-flex;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease-out;
  white-space: nowrap; /* prevents 'get in touch' from wrapping to the next line */
}

.status .contact-btn::after {
  color: #01161e;
  content: "-";
  display: inline-block;
  margin-right: 12px;
  transform-origin: left center; /* ensures the dash grows outwards to the right */
  transition:
    transform 0.3s ease-out,
    margin-left 0.3s ease-out,
    color 0.3s ease-out;
}

.status .contact-btn:hover {
  color: #598392;
}

.status .contact-btn:hover::after {
  color: #598392;
  margin-left: 16px; /* moves the dash further to the right */
  transform: scaleX(5); /* makes the dash grow outwards to the right */
}

/* FEEDBACK SECTION */

.feedback-section {
  background-color: #eff6e0;
  padding: 120px 10%;
}

.feedback__container {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 0.8fr 2.4fr 0.8fr; /* splits the grid into 3 coloums */
  row-gap: 20px;
  width: 100%;
}

.feedback__header {
  display: grid;
  column-gap: 64px;
  grid-column: 1 / span 3;
  grid-template-columns: 0.8fr 3.2fr; /* splits the grid into 2 coloums */
}

.feedback__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  grid-column: 1 / span 3; /* starts in column 1 and spans across columns 1 & 3 */
  border-bottom: 1px solid rgba(18, 69, 89, 0.15);
  background-color: rgba(18, 69, 89, 0.15);
  border-bottom: none;
}

.feedback-item {
  display: grid;
  grid-template-columns: 0.8fr 2fr 1.2fr;
  column-gap: 64px;
  align-items: start;
  padding: 56px 0;
  background-color: #eff6e0;
  border: none;
}

.feedback-client-comment {
  color: #01161e;
  font-family: "fraunces", serif;
  font-size: 20px;
  font-weight: 300;
  grid-column: 2;
  line-height: 1.5;
  margin: 0;
}

.feedback-client__meta {
  align-self: end;
  display: flex;
  flex-direction: column;
  font-style: normal; /* overrides the default italic style of the <cite> element */
  gap: 4px;
  grid-column: 3;
  padding-top: 6px;
}

.feedback-client__name {
  color: #01161e;
  font-family: "DM Mono", monospace;
  font-size: 16px;
  font-weight: 300;
}

.feedback-client__details {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

/* CONTACT SECTION */

.contact-section {
  background-color: #e6edda;
  padding: 120px 10%;
}

.contact__container {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 0.8fr 1.6fr 1.6fr; /* Main 3-column layout */
  width: 100%;
  margin-bottom: 96px;
}

.contact__header {
  display: grid;
  grid-column: 1 / -1; /* Tells the header wrapper to span all 3 main columns */
  grid-template-columns: subgrid; /* Explicitly inherits the 3 columns from the container */
  row-gap: 16px;
}

.contact-chapter {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  grid-column: 1; /* Sits in column 1 */
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

.contact-title {
  color: #01161e;
  font-family: "Fraunces", serif;
  font-size: 48px;
  font-weight: 300;
  grid-column: 2 / span 2; /* Starts at column 2 and spans across 2 columns (cols 2 and 3) */
  line-height: 1.15;
  margin: 0;
}

.contact-subtitle {
  grid-column: 2 / span 2; /* Pushes it back to column 2, underneath the chapter number */
  grid-row: 2; /* Forces it to the next row below the chapter number */
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  max-width: 500px;
  line-height: 1.5;
  margin: 0;
  margin-top: 28px; /* Optional spacing to push it lower like the design image */
  margin-bottom: 64px; /* Optional spacing to push it lower like the design image */
}

.contact__info {
  display: flex;
  grid-column: 2;
  margin-top: 8px;
  margin-bottom: 32px;
}

.contact-email {
  align-self: flex-start;
  border-bottom: 1px solid rgba(18, 69, 89, 0.15);
  color: #124659;
  display: inline-block;
  font-family: "fraunces", serif;
  font-size: 32px;
  font-weight: 300;
  padding-bottom: 8px;
  text-decoration: none;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.contact-email:hover {
  color: #598392;
  cursor: pointer;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 48px;
  grid-column: 2;
  margin-top: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid rgba(18, 69, 89, 0.15);
  padding-bottom: 8px;
}

.input__title {
  color: #598592;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  background-color: transparent; /* makes the input field background transparent */
  border: none; /* removes the default border of the input field */
  color: #01161e;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  outline: none; /* removes the default outline of the input field */
  padding: 4px 0;
  width: 100%;
}

.contact-form textarea {
  min-height: 60px;
  resize: none; /* prevents the user from resizing the textarea */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(89, 131, 146, 0.5);
  font-weight: 300;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background-color: #124659;
  border: none;
  color: #eff6e0;
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1rem;
  margin-top: 24px;
  text-transform: uppercase;

  /* FIXED: Uniform base padding padding on both sides */
  padding: 16px 36px;

  /* FIXED: Animates ONLY the right padding padding to grow the box rightward */
  transition:
    background-color 0.3s ease,
    padding-right 0.3s ease;
}

.btn-submit::after {
  content: "—"; /* Thick em-dash stays perfectly level during scaling */
  display: inline-block;

  /* FIXED: Spacing gap between text and dash line */
  margin-left: 16px;
  color: #eff6e0;

  /* Keeps the transformation origin locked straight to the left side */
  transform-origin: left center;

  /* Smoothly transitions both the length stretch and spacing movement */
  transition:
    transform 0.3s ease,
    margin-left 0.3s ease;
}

/* INTERACTION HOVER TRIGGERS */
.btn-submit:hover {
  background-color: #598392;
  /* FIXED: Left padding stays 36px so text NEVER jumps! Only the right side grows */
  padding-right: 64px;
}

.btn-submit:hover::after {
  /* FIXED: Slides the dash further right along the horizontal axis line */
  margin-left: 24px;
  /* FIXED: Horizontally stretches the dash line smoothly */
  transform: scaleX(2.5);
}

/* FOOTER */

.footer {
  background-color: #e6edda;
  padding: 80px 10% 64px 10%;
  border-top: 1px solid rgba(1, 22, 30, 0.08);
}

.footer__container {
  display: grid;
  column-gap: 64px;
  grid-template-columns: 0.8fr 1.6fr 1.6fr; /* Main 3-column layout */
  row-gap: 40px;
  width: 100%;
}

.footer__top-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  grid-column: 1 / span 3; /* Starts in column 1 and spans across columns 1 & 3 */
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__nav a {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: #01161e;
}

.footer__socials {
  align-items: center;
  display: flex;
  gap: 16px;
}

.social-icons {
  align-items: center;
  font-size: 12px;
  transition: transform 0.2s;
}

.social-icons:hover {
  transform: scaleY(2px);
}

.social-icons img,
.github-logo-svg,
.social-logo-svg {
  filter: invert(47%) sepia(19%) saturate(684%) hue-rotate(149deg)
    brightness(94%) contrast(85%);
  transition: filter 0.2s ease;
}

.social-icons:hover img,
.social-icons:hover .github-logo-svg,
.social-icons:hover .social-logo-svg {
  filter: invert(6%) sepia(21%) saturate(1478%) hue-rotate(156deg)
    brightness(92%) contrast(98%);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(18, 69, 89, 0.15);
  grid-column: 1 / span 3; /* Starts in column 1 and spans across columns 1 & 3 */
  margin: 0;
}

.footer__bottom-row {
  align-items: flex-end;
  column-gap: 64px;
  display: grid;
  grid-template-columns: 0.8fr 1.6fr 1.6fr;
  grid-column: 1 / span 3; /* Starts in column 1 and spans across columns 1 & 3 */
}

.footer__brand {
  grid-column: 1; /* Starts in column 2 and spans across columns 2 */
  justify-self: start;
}

.footer-logo-link {
  text-decoration: none;
}

.footer__logo {
  color: #124559;
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.05;
}

.footer__logo:hover {
  color: #598392;
}

.footer__location {
  align-items: center;
  display: inline-flex;
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  gap: 8px;
  grid-column: 3; /* Starts in column 3 and spans across columns 3 */
  justify-self: end; /* pushes the copyright text to the right side of the column */
  letter-spacing: 0.05rem;
  margin: 0;
  margin-bottom: 16px;
}

.footer__icon {
  filter: invert(47%) sepia(19%) saturate(684%) hue-rotate(149deg)
    brightness(94%) contrast(85%);
  display: inline-block;
}

.footer__copyright {
  color: #598392;
  font-family: "DM Mono", monospace;
  font-size: 12px;
  grid-column: 3; /* Starts in column 3 and spans across columns 3 */
  justify-self: end; /* pushes the copyright text to the right side of the column */
  letter-spacing: 0.02rem;
  margin: 0;
  text-transform: uppercase;
}

/* SENT MSG POP UP LAYOVER */

.sent-msg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(1, 22, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000; /* floats above the sticky header */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1; /* handles fade mechanics */
  pointer-events: auto;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.sent-msg-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* stops users from accidentally clicking things */
} /* when JS removes this class, the modal gracefully glides open */

.sent-msg-card {
  background-color: #eff6e0;
  border: 1px solid rgba(18, 69, 89, 0.2);
  padding: 48px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(1, 22, 30, 0.08); /* soft, subtile editorial ambient drop shadow */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sent-msg__header {
  color: #01161e;
  font-family: "fraunces", serif;
  font-size: 28px;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.sent-msg__image {
  height: 32px;
  width: auto;
  filter: invert(18%) sepia(34%) saturate(986%) hue-rotate(154deg)
    brightness(92%) contrast(98%);
}

.sent-msg-card p {
  color: #598392;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* DEVICES LAYOUT */

@media screen and (max-width: 768px) {
  .header,
  .hero,
  .about-section,
  .projects-section,
  .feedback-section,
  .contact-section,
  .footer {
    padding-left: 6%;
    padding-right: 6%;
  }

  .header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 6%;
  }

  .header .logo,
  .header .navigation {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-list {
    gap: 20px; /* tighter nav link spacing */
  }

  .hero {
    padding-top: 48px;
  }

  .hero__container {
    grid-template-columns: 1fr; /* flattens left and right columns into a vertical stack*/
    row-gap: 40px;
  }

  .hero__text {
    grid-column: 1;
    margin-left: 0;
    max-width: 100%;
  }

  .hero__title {
    font-size: 56px;
  }

  .about__container {
    grid-template-columns: 1fr; /* drops 3 columns down into a single row */
    row-gap: 24px;
  }

  .section-title {
    grid-column: 1;
    font-size: 32px;
  }

  .about__description-left,
  .about__right-column {
    grid-column: 1;
  }

  .services-divider {
    margin: 32px 0 24px 0;
  }

  .projects__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    /*grid-template-columns: 1fr;*/
    margin-bottom: 48px;
  }

  .projects-chapter {
    font-size: 11px;
    letter-spacing: 0.15rem;
    margin-bottom: 4px;
  }

  .projects-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
    /*grid-column: 1;*/
  }

  .projects-subtitle {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    margin: 0;
    margin-top: 8px;
  }

  /* collapses table headers vertically into modern block layouts*/
  .projects-trigger-btn {
    grid-template-columns: 0.2fr 1fr; /*number and title stack row left, rest shifts lower */
    row-gap: 8px;
    padding: 24px 0;
  }

  .projects-category {
    grid-column: 2; /* drops underneath project name neatly */
    font-size: 13px;
  }

  .projects-meta-right {
    grid-column: 2; /*drops underneath category string info line tracks */
  }

  /* re-align drawer inner wrapper on phone viewports */
  .content-inner {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding-top: 16px;
  }

  .projects__image,
  .projects-details-box {
    grid-column: 1;
  }

  .projects-description {
    max-width: 100%;
  }

  .status__container {
    grid-template-columns: 1fr;
    margin: 64px 0 96px 0;
  }

  .status {
    grid-column: 1;
    flex-direction: column; /* stacks text info statements above contact links btn */
    align-items: flex-start;
    gap: 24px;
    padding: 32px 24px;
  }

  .feedback__header {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .feedback-item {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 40px 0;
  }

  .feedback-client-comment {
    grid-column: 1;
    font-size: 18px;
  }

  .feedback-client__meta {
    grid-column: 1;
    align-self: flex-start; /* resets right baseline lock to a neat left-side stack */
  }

  .contact__container {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .contact__header {
    grid-template-columns: 1fr;
  }

  .contact-title {
    grid-column: 1;
    font-size: 36px;
  }

  .contact-subtitle {
    grid-column: 1;
    margin-bottom: 16px;
  }

  .contact__info,
  .contact-form {
    grid-column: 1;
    width: 1000%;
  }

  .contact-form {
    grid-column: 1;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid rgba(18, 69, 89, 0.15);
    padding-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .contact-form input,
  .contact-form textarea {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 4px 0;
    font-size: 16px;
    width: 100%; /*forces the width calculation to stay inside the form-group container */
    box-sizing: border-box;
  }

  .contact-email {
    font-size: 22px; /*shrinks address link scale slightly to prevent word overlapping */
  }

  .footer__container {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .footer__top-row {
    flex-direction: column; /* stacks text links nav above social media SVG blocks */
    align-items: flex-start;
    gap: 32px;
  }

  .footer__nav {
    flex-direction: column; /* vertical link stacks on small viewpoints */
    gap: 16px;
  }

  .footer__bottom-row {
    grid-template-columns: 1fr;
    row-gap: 24px;
    align-items: flex-start;
  }

  .footer__brand,
  .footer__location,
  .footer__copyright {
    grid-column: 1;
    justify-self: start; /* locks all legal info tidy to the left alignment wall */
  }
}
