/* ===== CSS VARIABLES (design tokens) ===== */
:root{
  --ink:#1c1b19;              /* near-black, used for text and dark backgrounds */
  --limestone:#ede9e1;        /* main light background color */
  --limestone-dim:#e2ddd2;    /* slightly darker off-white, for secondary text on dark bg */
  --stone:#a69c8e;            /* muted taupe, used as a secondary/neutral accent */
  --moss:#5c6b57;             /* green accent color, used sparingly for emphasis */
  --white:#ffffff;            /* pure white, used for hero text */
  --max:1000px;               /* the max width for centered content columns */
  --edge:clamp(20px, 5vw, 64px); /* responsive side padding: min 20px, max 64px, scales with viewport */
  --display: 'Space Grotesk', sans-serif; /* font for headings */
  --body: 'Inter', sans-serif;            /* font for paragraph text */
  --mono: 'IBM Plex Mono', monospace;     /* font for labels/eyebrows/captions */
}

/* ===== RESET ===== */
*{
  margin:0;        /* removes default browser margins on every element */
  padding:0;        /* removes default browser padding on every element */
  box-sizing:border-box; /* makes width/height include padding and border, not add to them */
}

html{
  scroll-behavior:smooth; /* animates jumps to #anchors instead of snapping instantly */
}

body{
  background:var(--limestone); /* page background color */
  color:var(--ink);            /* default text color */
  font-family:var(--body);     /* default font */
  line-height:1.5;             /* space between lines of text, for readability */
  -webkit-font-smoothing:antialiased; /* smoother font rendering on Mac/iOS */
}

img, video{
  display:block;    /* removes the small gap under inline images/videos */
  max-width:100%;   /* prevents images/videos from overflowing their container */
}

a{
  color:inherit; /* links take the text color of their parent instead of default blue */
}

/* ===== EYEBROW LABEL (small uppercase tag above headings) ===== */
.eyebrow{
  font-family:var(--mono);
  font-size:0.72rem;
  letter-spacing:0.14em;      /* spaces out the letters for a "label" feel */
  text-transform:uppercase;   /* forces all-caps regardless of how it's typed in HTML */
  color:var(--moss);
  display:flex;                /* lets us line up the little dash and the text */
  align-items:center;
  gap:10px;                    /* space between the dash and the text */
}
.eyebrow::before{
  content:"";                  /* generates an empty decorative element */
  width:18px; height:1px;      /* makes it a thin horizontal line */
  background:var(--moss);
  display:inline-block;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal{
  opacity:0;                   /* starts invisible */
  transform:translateY(24px);  /* starts shifted down 24px */
  transition:opacity .8s ease, transform .8s ease; /* animates both properties over 0.8s */
}
.reveal.is-visible{
  opacity:1;        /* fades in */
  transform:translateY(0); /* slides up into place */
}
/* .is-visible is added by JavaScript when the element scrolls into view */

@media (prefers-reduced-motion: reduce){
  /* Respects users who have "reduce motion" turned on in their OS settings */
  html{ scroll-behavior:auto; }         /* disable smooth scroll */
  .reveal{ opacity:1; transform:none; transition:none; } /* show content immediately, no animation */
  *{ animation:none !important; transition:none !important; } /* kill all other animations/transitions */
}

/* ===== NAV BAR ===== */
.nav{
  position:fixed;      /* stays pinned to the viewport while scrolling */
  top:0; left:0; right:0; /* stretches full width, pinned to the top */
  z-index:100;          /* keeps it above other page content */
  display:flex;
  align-items:center;
  justify-content:space-between; /* logo on the left, links on the right */
  padding:22px var(--edge);
  color:var(--white);   /* white text/icons over the video hero */
  transition:background .35s ease, color .35s ease, padding .35s ease; /* smooth transition when scrolled state changes */
}
.nav.scrolled{
  /* Applied by JS once the user scrolls down */
  background:rgba(28,27,25,0.92); /* dark semi-transparent background */
  backdrop-filter:blur(6px);      /* blurs whatever is behind the nav bar */
  padding-top:14px;               /* shrinks the nav bar slightly */
  padding-bottom:14px;
}
.nav__mark{
  font-family:var(--display);
  font-weight:700;      /* bold */
  font-size:1.15rem;
  letter-spacing:0.04em;
  text-decoration:none; /* removes the underline from the link */
}
.nav__mark span{
  color:var(--stone);   /* colors just the "." in "FIELD." differently */
}
.nav__links{
  display:flex;
  gap:36px;              /* spacing between nav items */
  list-style:none;        /* removes bullet points from the <ul> */
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.nav__links a{
  text-decoration:none;
  position:relative;     /* needed so the ::after underline can be positioned against this link */
  padding-bottom:4px;    /* gives room for the underline below the text */
}
.nav__links a::after{
  content:"";
  position:absolute; left:0; bottom:0;
  width:0; height:1px;   /* starts with zero width — invisible */
  background:currentColor;
  transition:width .3s ease; /* animates the width change on hover */
}
.nav__links a:hover::after{
  width:100%; /* grows to full width on hover, creating an underline effect */
}

.nav__toggle{
  display:none;          /* hidden by default; only shown on mobile via media query below */
  background:none;
  border:none;
  color:var(--white);
  width:28px; height:20px;
  position:relative;      /* needed for the ::before/::after lines to position against it */
  cursor:pointer;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after{
  content:"";
  position:absolute; left:0; right:0;
  height:1px;
  background:currentColor;
  /* Together these three make the 3 horizontal lines of a hamburger icon */
}
.nav__toggle::before{ top:0; }     /* top line */
.nav__toggle span{ top:9px; }      /* middle line */
.nav__toggle::after{ bottom:0; }   /* bottom line */

/* ===== HERO SECTION ===== */
.hero{
  position:relative;     /* establishes a positioning context for the absolutely-positioned children */
  height:100svh;         /* full screen height (svh = "small viewport height", accounts for mobile browser UI) */
  min-height:520px;      /* prevents the hero from getting too short on very short screens */
  width:100%;
  overflow:hidden;        /* clips anything (like a zoomed video) that overflows the box */
  background:var(--ink);  /* fallback color while the video loads */
}
.hero__media{
  position:absolute; inset:0; /* stretches to fill all four edges of the parent */
  width:100%; height:100%;
  object-fit:cover;       /* scales the video to cover the box without distorting it */
  filter:saturate(0.85) brightness(0.72); /* slightly desaturates and darkens the video */
}
.hero__scrim{
  position:absolute; inset:0; /* also fills the hero completely, sitting on top of the video */
  background:linear-gradient(180deg, rgba(28,27,25,0.35) 0%, rgba(28,27,25,0.15) 45%, rgba(28,27,25,0.75) 100%);
  /* Gradient: darker at top, lighter in the middle, darkest at the bottom (behind the text) */
}

/* Decorative corner crop marks */
.crop{
  position:absolute;
  width:26px; height:26px;
  border-color:rgba(237,233,225,0.55);
  z-index:3;               /* sits above the video and scrim */
}
.crop--tl{ top:24px; left:24px; border-top:1px solid; border-left:1px solid; } /* top-left corner bracket */
.crop--tr{ top:24px; right:24px; border-top:1px solid; border-right:1px solid; } /* top-right corner bracket */
.crop--bl{ bottom:24px; left:24px; border-bottom:1px solid; border-left:1px solid; } /* bottom-left corner bracket */
.crop--br{ bottom:24px; right:24px; border-bottom:1px solid; border-right:1px solid; } /* bottom-right corner bracket */

.hero__coord{
  position:absolute;
  top:28px; right:60px;
  font-family:var(--mono);
  font-size:0.72rem;
  letter-spacing:0.08em;
  color:rgba(237,233,225,0.7);
  text-align:right;
  z-index:3;
}
@media (max-width:600px){
  .hero__coord{ display:none; } /* hides the coordinate label on small screens to reduce clutter */
}

.hero__content{
  position:relative;      /* stacks above the video/scrim (via z-index below) */
  z-index:3;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end; /* pushes the headline/text to the bottom of the hero */
  padding:0 var(--edge) 64px;
  color:var(--white);
}
.hero__eyebrow{
  font-family:var(--mono);
  font-size:0.75rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--limestone-dim);
  margin-bottom:18px;
}
.hero__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(2.6rem, 8vw, 6.4rem); /* responsive font size: min 2.6rem, scales with viewport, caps at 6.4rem */
  line-height:0.98;        /* tight line spacing for a bold, large headline */
  letter-spacing:-0.01em;  /* slightly tighter letter spacing, common for large display type */
  max-width:16ch;          /* limits line length to ~16 characters wide, forcing a wrap */
}
.hero__title em{
  font-style:normal;   /* cancels the browser's default italic styling on <em> */
  color:var(--stone);  /* recolors the emphasized words instead */
}
.hero__sub{
  margin-top:24px;
  max-width:44ch;        /* keeps the paragraph a readable line length */
  font-size:1rem;
  color:rgba(237,233,225,0.85);
  border-top:1px solid rgba(237,233,225,0.3); /* thin divider line above the paragraph */
  padding-top:20px;
}
.hero__scroll{
  position:absolute;
  bottom:28px; left:50%;
  transform:translateX(-50%); /* centers it horizontally regardless of its width */
  z-index:3;
  width:1px; height:44px;     /* a thin vertical line */
  background:rgba(237,233,225,0.5);
  overflow:hidden;             /* clips the moving highlight inside this line */
}
.hero__scroll::after{
  content:"";
  position:absolute; left:0; top:-100%;
  width:100%; height:100%;
  background:var(--white);
  animation:scrollLine 2.2s ease-in-out infinite; /* runs the keyframe animation below, forever */
}
@keyframes scrollLine{
  0%{ top:-100%; }   /* starts above the visible line */
  60%{ top:100%; }   /* travels down past the bottom */
  100%{ top:100%; }  /* holds there until the animation restarts */
}

/* ===== GENERIC SECTION SPACING ===== */
section{ position:relative; } /* gives every <section> a positioning context, just in case */
.section{
  padding:110px var(--edge); /* generous top/bottom spacing, responsive side spacing */
}
.section--tight{
  padding-top:80px; padding-bottom:80px; /* an alternate, smaller spacing option (utility class) */
}
.wrap{
  max-width:var(--max); /* constrains content to 1000px */
  margin:0 auto;         /* centers it horizontally */
}

.section__head{
  max-width:var(--max);
  margin:0 auto 56px;    /* centers the block and adds space below it */
}
.section__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(1.8rem, 3.4vw, 2.6rem); /* responsive heading size */
  letter-spacing:-0.01em;
  margin-top:14px;
  max-width:20ch;
}

/* ===== TWO-COLUMN GALLERY ===== */
.gallery{
  max-width:var(--max);  /* the 1000px centered column requested in the brief */
  margin:0 auto;
  display:flex;
  flex-direction:column;  /* stacks each project pair vertically */
  gap:96px;                /* space between project pairs */
}
.pair{
  display:grid;
  grid-template-columns:1fr 1fr; /* two equal-width columns: image and text */
  gap:48px;                       /* space between the two columns */
  align-items:center;             /* vertically centers text against the image */
}
.pair--reverse .pair__media{ order:2; } /* moves the image to the second position (right side) */
.pair--reverse .pair__text{ order:1; }  /* moves the text to the first position (left side) */

.pair__media{
  aspect-ratio:4/5;    /* keeps a consistent portrait ratio regardless of the source image size */
  overflow:hidden;      /* clips the image when it's scaled up on hover */
  background:var(--stone); /* fallback color while the image loads */
}
.pair__media img, .pair__media video{
  width:100%; height:100%;
  object-fit:cover;     /* fills the box without distorting the image */
  transition:transform .8s ease; /* smoothly animates the zoom on hover */
}
.pair__media:hover img,
.pair__media:hover video{
  transform:scale(1.04); /* slightly zooms the image in when hovered */
}

.pair__index{
  font-family:var(--mono);
  font-size:0.72rem;
  color:var(--stone);
  letter-spacing:0.08em;
}
.pair__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(1.4rem, 2.4vw, 1.9rem);
  margin:12px 0 16px;
  letter-spacing:-0.01em;
}
.pair__text p{
  color:#4a4844;   /* slightly softer than pure black for body copy */
  font-size:0.98rem;
  max-width:38ch;   /* keeps paragraph line length readable */
}
.pair__meta{
  margin-top:22px;
  display:flex;
  gap:22px;           /* spacing between the category/location/year tags */
  font-family:var(--mono);
  font-size:0.72rem;
  color:var(--moss);
  letter-spacing:0.04em;
  flex-wrap:wrap;      /* lets tags wrap to a new line on narrow screens instead of overflowing */
}

@media (max-width:760px){
  /* On tablets/phones, stack the two columns instead of side-by-side */
  .pair, .pair--reverse{
    grid-template-columns:1fr; /* single column */
    gap:24px;
  }
  .pair--reverse .pair__media,
  .pair--reverse .pair__text{ order:initial; } /* cancels the reverse order so image is always on top on mobile */
}

/* ===== FULL-WIDTH VIDEO BREAK ===== */
.break{
  position:relative;
  width:100%;
  height:78vh;         /* takes up most of the viewport height */
  min-height:420px;
  overflow:hidden;
  background:var(--ink); /* fallback while video loads */
}
.break img, .break video{
  width:100%; height:100%;
  object-fit:cover;     /* fills the full-width section without distortion */
  filter:saturate(0.9) brightness(0.9); /* slightly muted, consistent with the hero video */
}
.break__caption{
  position:absolute;
  left:var(--edge); bottom:36px;
  z-index:2;
  color:var(--white);
  font-family:var(--mono);
  font-size:0.78rem;
  letter-spacing:0.06em;
  max-width:340px;
  border-left:1px solid rgba(237,233,225,0.5); /* small vertical accent line before the text */
  padding-left:16px;
}

/* ===== STUDIO / STATS STRIP ===== */
.strip{
  background:var(--ink);   /* dark full-width background */
  color:var(--limestone);
}
.strip__wrap{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr 1fr; /* text column slightly wider than the stats column */
  gap:64px;
  padding:100px var(--edge);
}
.strip__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing:-0.01em;
  max-width:16ch;
  margin-top:14px;
}
.strip p{
  color:var(--stone);
  max-width:42ch;
  margin-top:20px;
}
.stat-list{
  display:flex;
  flex-direction:column;
  gap:26px;               /* space between each stat row */
  border-top:1px solid rgba(166,156,142,0.3); /* divider above the first stat */
  padding-top:26px;
}
.stat{
  display:flex;
  justify-content:space-between; /* pushes the number left and the label right */
  align-items:baseline;           /* aligns their text baselines even though font sizes differ */
  border-bottom:1px solid rgba(166,156,142,0.2); /* divider under each stat row */
  padding-bottom:22px;
}
.stat__num{
  font-family:var(--display);
  font-size:2.2rem;
  font-weight:600;
  color:var(--white);
}
.stat__label{
  font-family:var(--mono);
  font-size:0.72rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--stone);
  text-align:right;
  max-width:16ch;   /* wraps long labels onto multiple lines instead of stretching too wide */
}
@media (max-width:760px){
  .strip__wrap{
    grid-template-columns:1fr; /* stacks the two columns on smaller screens */
    padding-top:70px; padding-bottom:70px;
  }
}

/* ===== DARK VARIANT FOR .section ===== */
.section--dark{
  background:var(--ink);
  color:var(--limestone);
}
.section--dark .pair__text p{
  color:var(--limestone-dim); /* the paragraph has a hardcoded dark color otherwise */
}

/* ===== CTA (CALL TO ACTION) SECTION ===== */
.cta{
  padding:120px var(--edge);
  text-align:center;
}
.cta__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(2rem, 5vw, 3.4rem);
  max-width:18ch;
  margin:18px auto 34px;  /* centers the block and adds space above/below */
  letter-spacing:-0.01em;
}
.cta__btn{
  display:inline-flex;    /* lets us center the arrow next to the text */
  align-items:center;
  gap:12px;                 /* space between "Get in touch" and the arrow */
  font-family:var(--mono);
  font-size:0.8rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--ink);
  border:1px solid var(--ink); /* outlined button style */
  padding:16px 30px;
  transition:background .3s ease, color .3s ease; /* smooth color-swap animation on hover */
}
.cta__btn:hover{
  background:var(--ink);      /* fills solid on hover */
  color:var(--limestone);     /* flips text to light color for contrast */
}

/* ===== FOOTER ===== */
footer{
  background:var(--ink);
  color:var(--limestone);
  padding:70px var(--edge) 30px; /* more padding on top, less on bottom */
}
.footer__logo{
  text-align:center;
  margin-bottom:56px;
}
.footer__mark{
  display:inline-flex;
  flex-direction:column;  /* stacks the SVG icon above the wordmark */
  align-items:center;
  gap:10px;
}
.footer__mark svg{ width:40px; height:40px; }
.footer__mark-text{
  font-family:var(--display);
  font-weight:700;
  font-size:1.3rem;
  letter-spacing:0.06em;
}
.footer__mark-text span{ color:var(--stone); } /* colors the "." differently, matching the nav logo */

.footer__grid{
  max-width:var(--max);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, 1fr); /* three equal-width columns */
  gap:40px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(166,156,142,0.25); /* divider line before the bottom bar */
}
.footer__col h4{
  font-family:var(--mono);
  font-size:0.7rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--stone);
  margin-bottom:16px;
}
.footer__col p, .footer__col a{
  display:block;           /* stacks each line/link vertically */
  text-decoration:none;
  font-size:0.95rem;
  color:var(--limestone-dim);
  margin-bottom:8px;
}
.footer__col a:hover{ color:var(--white); } /* brightens links on hover */

.footer__bottom{
  max-width:var(--max);
  margin:0 auto;
  display:flex;
  justify-content:space-between; /* copyright on the left, socials on the right */
  align-items:center;
  padding-top:24px;
  font-family:var(--mono);
  font-size:0.7rem;
  letter-spacing:0.04em;
  color:var(--stone);
  flex-wrap:wrap;       /* wraps to two lines on narrow screens instead of overflowing */
  gap:12px;
}
.footer__social{
  display:flex;
  gap:20px;    /* spacing between Instagram / LinkedIn / Pinterest links */
}
.footer__social a{ text-decoration:none; color:var(--stone); }
.footer__social a:hover{ color:var(--white); }

@media (max-width:700px){
  .footer__grid{
    grid-template-columns:1fr; /* stacks footer columns on mobile */
    gap:32px;
    text-align:center;
  }
  .footer__bottom{
    justify-content:center; /* centers copyright/social row on mobile */
    text-align:center;
  }
}

/* ===== MOBILE NAV MENU ===== */
@media (max-width:820px){
  .nav__links{
    position:fixed;
    inset:0;                /* covers the entire screen when open */
    background:var(--ink);
    flex-direction:column;   /* stacks links vertically */
    justify-content:center;
    align-items:center;
    gap:40px;
    font-size:1rem;
    transform:translateY(-100%); /* hidden above the screen by default */
    transition:transform .4s ease; /* slides down smoothly when opened */
  }
  .nav__links.open{
    transform:translateY(0); /* slides into view; JS adds this class on click */
  }
  .nav__toggle{
    display:block; /* shows the hamburger button only at this screen width and below */
  }
}

/* ---------- Process Timeline ---------- */
.process{
  padding:110px var(--edge);
}

.process__head{
  max-width:100%;
  margin:0 auto 70px;
}
.process__title{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing:-0.01em;
  margin-top:14px;
  max-width:22ch;
}

/* Timeline track */
.track{
  max-width:100%;
  margin:0 auto;
  position:relative;
}

/* the horizontal connecting line, desktop */
.track__line{
  position:absolute;
  top:11px;
  left:0; right:0;
  height:1px;
  background:var(--stone);
}

.steps{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:24px;
  position:relative;
}

.step{
  position:relative;
  padding-top:34px;
}

/* node marker on the line */
.step__node{
  position:absolute;
  top:0; left:0;
  width:23px; height:23px;
  border-radius:50%;
  background:var(--limestone);
  border:1px solid var(--moss);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--mono);
  font-size:0.68rem;
  color:var(--moss);
  z-index:2;
}

.step__index{
  font-family:var(--mono);
  font-size:0.68rem;
  color:var(--stone);
  letter-spacing:0.06em;
  margin-bottom:10px;
  display:block;
}

.step__title{
  font-family:var(--display);
  font-weight:600;
  font-size:1.02rem;
  letter-spacing:-0.005em;
  margin-bottom:8px;
}

.step__duration{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--mono);
  font-size:0.74rem;
  color:var(--ink);
  background:rgba(92,107,87,0.08);
  border:1px solid rgba(92,107,87,0.25);
  padding:5px 10px;
  border-radius:3px;
}
.step__duration::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--moss);
  display:inline-block;
  flex-shrink:0;
}

/* Total strip */
.total{
  max-width:100%;
  margin:64px auto 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid rgba(166,156,142,0.4);
  padding-top:24px;
  flex-wrap:wrap;
  gap:12px;
}
.total__label{
  font-family:var(--mono);
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--stone);
}
.total__value{
  font-family:var(--display);
  font-weight:600;
  font-size:1.15rem;
}

/* Mobile: stack vertically */
@media (max-width:820px){
  .track__line{
    top:0; bottom:0; left:11px; right:auto;
    width:1px; height:auto;
  }
  .steps{
    grid-template-columns:1fr;
    gap:44px;
  }
  .step{
    padding-top:0;
    padding-left:44px;
  }
  .step__node{
    top:-2px; left:0;
  }
}

.clickable-video{
  cursor:pointer;
}